Rename make_restrict_var_constraints to make_param_constraints
[official-gcc.git] / gcc / ChangeLog
blob3613a68543e7141f920a698d947457803ba458f6
1 2015-11-03  Tom de Vries  <tom@codesourcery.com>
3         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
4         (make_param_constraints): ... this.  Add and handle restrict_name
5         parameter.  Handle is_full_var case.
6         (intra_create_variable_infos): Use make_param_constraints.
8 2015-11-03  Tom de Vries  <tom@codesourcery.com>
10         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
11         make_copy_constraint call with make_constraint_from call.
13 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
15         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
16         PIE executables.
18 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
20         * builtins.h (fold_fma): Move to fold-const-call.h.
21         * builtins.c: Include fold-const-call.h.
22         (mathfn_built_in_2): New function, split out from...
23         (mathfn_built_in_1): ...here.
24         (do_real_to_int_conversion, fold_const_builtin_pow)
25         (fold_const_builtin_logb, fold_const_builtin_significand)
26         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
27         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
28         (fold_builtin_sincos): Use fold_const_call to handle constants.
29         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
30         checks for ERROR_MARK.  Use fold_const_call to handle constant
31         folds for math functions.
32         (fold_fma): Move to fold-const-call.c.
33         * fold-const.c: Include fold-const-call.h.
34         * Makefile.in (OBJS): Add fold-const-call.o.
35         (PLUGIN_HEADERS): Add fold-const-call.h.
36         * realmpfr.h (real_from_mpfr): Allow the format to be specified
37         directly.
38         * realmpfr.c (real_from_mpfr): Likewise.
39         * fold-const-call.h, fold-const-call.c: New files.
41 2015-11-02  Julian Brown  <julian@codesourcery.com>
43         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
44         brackets and semicolon.  
46 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
48         Revert:
49         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
51         PR tree-optimization/65963
52         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
53         as equivalent MULT_EXPRs.
55 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
57         PR middle-end/68166
58         * fold-const.c: Include "md5.h".
60 2015-11-01  Jeff Law <jeff@redhat.com>
62         * vmsdbgout.c: Revert unused header file reduction patch.
64         * config/mcore/mcore.c: Include regs.h.
66 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
68         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
70 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
72         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
73         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
74         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
76 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
78         * ggc-common.c: Restore needed header for checking=release.
80 2015-10-31  Tom de Vries  <tom@codesourcery.com>
82         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
84 2015-10-31  Tom de Vries  <tom@codesourcery.com>
86         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
87         existing varinfo for arguments.
89 2015-10-31  Tom de Vries  <tom@codesourcery.com>
91         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
92         create_function_info_for.  Dump constraints generated during
93         create_function_info_for. Move intra_create_variable_infos call and
94         function-return-values-escape bit to ...
95         (create_function_info_for): ... here, and merge
96         intra_create_variable_infos call with argument loop.  Add and handle
97         nonlocal_p parameter.
99 2015-10-31  Tom de Vries  <tom@codesourcery.com>
101         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
102         updating is alap, and seperated from preceding code.  Make sure
103         insert_vi_for_tree is seperated from surrounding code.
105 2015-10-31  Tom de Vries  <tom@codesourcery.com>
107         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
109 2015-10-30  Jeff Law <jeff@redhat.com>
110             Nathan Sidwell  <nathan@acm.org>
112         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
113         args.
114         (MOVE_MAX): Set to 8.
116 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
118         * cgraph.c: Include context.h for offloading.
119         * varpool.c: Include context.h and omp-low.h.
121 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
123         * rtl.h (contains_symbol_ref_p): Declare.
124         (SYMBOL_REF_P): Define.
125         * rtlanal.c (contains_symbol_ref_p: New function.
126         * lra-constraints.c (contains_symbol_ref_p): Remove.
127         * var-tracking.c (contains_symbol_ref): Remove.
128         (track_expr_p): Use contains_symbol_ref_p instead of
129         contains_symbol_ref.
131 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
133         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
134         * fold-const.c (get_array_ctor_element_at_index): New.
135         (fold): Remove binary-search through CONSTRUCTOR, call previous.
137         * fold-const.h (get_array_ctor_element_at_index): New.
139 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
141         * Makefile.in (OBJS): Add multiple_target.o.
142         * attrib.c (make_attribute): Moved from config/i386/i386.c
143         * config/i386/i386.c (make_attribute): Deleted.
144         * multiple_target.c (create_dispatcher_calls): New.
145         (get_attr_len): Ditto.
146         (get_attr_str): Ditto.
147         (separate_attrs): Ditto.
148         (is_valid_asm_symbol): Ditto.
149         (create_new_asm_name): Ditto.
150         (create_target_clone): Ditto.
151         (expand_target_clones): Ditto.
152         (ipa_target_clone): Ditto.
153         (ipa_dispatcher_calls): Ditto.
154         * passes.def (pass_target_clone): Two new ipa passes.
155         * tree-pass.h (make_pass_target_clone): Ditto.
156         * doc/extend.texi (target_clones): New attribute description.
158 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
160         PR rtl-optimization/68106
161         * lra-remat.c (input_regno_present_p): Process hard regs
162         explicitly present in machine description insns.
163         (call_used_input_regno_present_p): Ditto.
164         (calculate_gen_cands): Ditto.
165         (do_remat): Ditto.
167 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
169         * config/arm/neon-testgen.ml: Fix comment typo.
171 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
173         * rtlanal.c (reg_set_p): Expand function comment.
175 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
177         * alias.c: Remove unused headers.
178         * asan.c: Likewise.
179         * attribs.c: Likewise.
180         * auto-inc-dec.c: Likewise.
181         * auto-profile.c: Likewise.
182         * bb-reorder.c: Likewise.
183         * bitmap.c: Likewise.
184         * bt-load.c: Likewise.
185         * builtins.c: Likewise.
186         * caller-save.c: Likewise.
187         * calls.c: Likewise.
188         * ccmp.c: Likewise.
189         * cfg.c: Likewise.
190         * cfganal.c: Likewise.
191         * cfgbuild.c: Likewise.
192         * cfgcleanup.c: Likewise.
193         * cfgexpand.c: Likewise.
194         * cfghooks.c: Likewise.
195         * cfgloop.c: Likewise.
196         * cfgloopanal.c: Likewise.
197         * cfgloopmanip.c: Likewise.
198         * cfgrtl.c: Likewise.
199         * cgraph.c: Likewise.
200         * cgraphbuild.c: Likewise.
201         * cgraphclones.c: Likewise.
202         * cgraphunit.c: Likewise.
203         * cilk-common.c: Likewise.
204         * combine-stack-adj.c: Likewise.
205         * combine.c: Likewise.
206         * compare-elim.c: Likewise.
207         * convert.c: Likewise.
208         * coverage.c: Likewise.
209         * cppbuiltin.c: Likewise.
210         * cprop.c: Likewise.
211         * cse.c: Likewise.
212         * cselib.c: Likewise.
213         * data-streamer-in.c: Likewise.
214         * data-streamer-out.c: Likewise.
215         * data-streamer.c: Likewise.
216         * dbxout.c: Likewise.
217         * dce.c: Likewise.
218         * ddg.c: Likewise.
219         * debug.c: Likewise.
220         * df-core.c: Likewise.
221         * df-problems.c: Likewise.
222         * df-scan.c: Likewise.
223         * dfp.c: Likewise.
224         * dojump.c: Likewise.
225         * dominance.c: Likewise.
226         * domwalk.c: Likewise.
227         * double-int.c: Likewise.
228         * dse.c: Likewise.
229         * dumpfile.c: Likewise.
230         * dwarf2asm.c: Likewise.
231         * dwarf2cfi.c: Likewise.
232         * dwarf2out.c: Likewise.
233         * emit-rtl.c: Likewise.
234         * except.c: Likewise.
235         * explow.c: Likewise.
236         * expmed.c: Likewise.
237         * expr.c: Likewise.
238         * final.c: Likewise.
239         * fixed-value.c: Likewise.
240         * fold-const.c: Likewise.
241         * function.c: Likewise.
242         * fwprop.c: Likewise.
243         * gcse.c: Likewise.
244         * generic-match-head.c: Likewise.
245         * ggc-common.c: Likewise.
246         * gimple-builder.c: Likewise.
247         * gimple-expr.c: Likewise.
248         * gimple-fold.c: Likewise.
249         * gimple-iterator.c: Likewise.
250         * gimple-low.c: Likewise.
251         * gimple-match-head.c: Likewise.
252         * gimple-pretty-print.c: Likewise.
253         * gimple-ssa-isolate-paths.c: Likewise.
254         * gimple-ssa-strength-reduction.c: Likewise.
255         * gimple-streamer-in.c: Likewise.
256         * gimple-streamer-out.c: Likewise.
257         * gimple-walk.c: Likewise.
258         * gimple.c: Likewise.
259         * gimplify-me.c: Likewise.
260         * gimplify.c: Likewise.
261         * godump.c: Likewise.
262         * graph.c: Likewise.
263         * graphds.c: Likewise.
264         * haifa-sched.c: Likewise.
265         * hw-doloop.c: Likewise.
266         * ifcvt.c: Likewise.
267         * init-regs.c: Likewise.
268         * internal-fn.c: Likewise.
269         * ipa-chkp.c: Likewise.
270         * ipa-comdats.c: Likewise.
271         * ipa-cp.c: Likewise.
272         * ipa-devirt.c: Likewise.
273         * ipa-icf-gimple.c: Likewise.
274         * ipa-icf.c: Likewise.
275         * ipa-inline-analysis.c: Likewise.
276         * ipa-inline-transform.c: Likewise.
277         * ipa-inline.c: Likewise.
278         * ipa-polymorphic-call.c: Likewise.
279         * ipa-profile.c: Likewise.
280         * ipa-prop.c: Likewise.
281         * ipa-pure-const.c: Likewise.
282         * ipa-ref.c: Likewise.
283         * ipa-reference.c: Likewise.
284         * ipa-split.c: Likewise.
285         * ipa-utils.c: Likewise.
286         * ipa-visibility.c: Likewise.
287         * ipa.c: Likewise.
288         * ira-build.c: Likewise.
289         * ira-color.c: Likewise.
290         * ira-conflicts.c: Likewise.
291         * ira-costs.c: Likewise.
292         * ira-emit.c: Likewise.
293         * ira-lives.c: Likewise.
294         * ira.c: Likewise.
295         * jump.c: Likewise.
296         * langhooks.c: Likewise.
297         * lcm.c: Likewise.
298         * lists.c: Likewise.
299         * loop-doloop.c: Likewise.
300         * loop-init.c: Likewise.
301         * loop-invariant.c: Likewise.
302         * loop-iv.c: Likewise.
303         * loop-unroll.c: Likewise.
304         * lower-subreg.c: Likewise.
305         * lra-assigns.c: Likewise.
306         * lra-coalesce.c: Likewise.
307         * lra-constraints.c: Likewise.
308         * lra-eliminations.c: Likewise.
309         * lra-lives.c: Likewise.
310         * lra-remat.c: Likewise.
311         * lra-spills.c: Likewise.
312         * lra.c: Likewise.
313         * lto-cgraph.c: Likewise.
314         * lto-compress.c: Likewise.
315         * lto-opts.c: Likewise.
316         * lto-section-in.c: Likewise.
317         * lto-section-out.c: Likewise.
318         * lto-streamer-in.c: Likewise.
319         * lto-streamer-out.c: Likewise.
320         * lto-streamer.c: Likewise.
321         * mcf.c: Likewise.
322         * mode-switching.c: Likewise.
323         * modulo-sched.c: Likewise.
324         * optabs.c: Likewise.
325         * opts-global.c: Likewise.
326         * passes.c: Likewise.
327         * plugin.c: Likewise.
328         * postreload-gcse.c: Likewise.
329         * postreload.c: Likewise.
330         * predict.c: Likewise.
331         * print-tree.c: Likewise.
332         * profile.c: Likewise.
333         * real.c: Likewise.
334         * realmpfr.c: Likewise.
335         * recog.c: Likewise.
336         * ree.c: Likewise.
337         * reg-stack.c: Likewise.
338         * regcprop.c: Likewise.
339         * reginfo.c: Likewise.
340         * regrename.c: Likewise.
341         * regstat.c: Likewise.
342         * reload.c: Likewise.
343         * reload1.c: Likewise.
344         * reorg.c: Likewise.
345         * resource.c: Likewise.
346         * rtl-chkp.c: Likewise.
347         * rtl-error.c: Likewise.
348         * rtlanal.c: Likewise.
349         * rtlhooks.c: Likewise.
350         * sanopt.c: Likewise.
351         * sched-deps.c: Likewise.
352         * sched-ebb.c: Likewise.
353         * sched-rgn.c: Likewise.
354         * sdbout.c: Likewise.
355         * sel-sched-dump.c: Likewise.
356         * sel-sched-ir.c: Likewise.
357         * sel-sched.c: Likewise.
358         * sese.c: Likewise.
359         * shrink-wrap.c: Likewise.
360         * simplify-rtx.c: Likewise.
361         * stack-ptr-mod.c: Likewise.
362         * statistics.c: Likewise.
363         * stmt.c: Likewise.
364         * stor-layout.c: Likewise.
365         * store-motion.c: Likewise.
366         * stringpool.c: Likewise.
367         * symtab.c: Likewise.
368         * target-globals.c: Likewise.
369         * targhooks.c: Likewise.
370         * toplev.c: Likewise.
371         * tracer.c: Likewise.
372         * trans-mem.c: Likewise.
373         * tree-affine.c: Likewise.
374         * tree-call-cdce.c: Likewise.
375         * tree-cfg.c: Likewise.
376         * tree-cfgcleanup.c: Likewise.
377         * tree-chkp-opt.c: Likewise.
378         * tree-chkp.c: Likewise.
379         * tree-chrec.c: Likewise.
380         * tree-complex.c: Likewise.
381         * tree-data-ref.c: Likewise.
382         * tree-dfa.c: Likewise.
383         * tree-diagnostic.c: Likewise.
384         * tree-dump.c: Likewise.
385         * tree-eh.c: Likewise.
386         * tree-emutls.c: Likewise.
387         * tree-if-conv.c: Likewise.
388         * tree-inline.c: Likewise.
389         * tree-into-ssa.c: Likewise.
390         * tree-iterator.c: Likewise.
391         * tree-loop-distribution.c: Likewise.
392         * tree-nested.c: Likewise.
393         * tree-nrv.c: Likewise.
394         * tree-object-size.c: Likewise.
395         * tree-outof-ssa.c: Likewise.
396         * tree-parloops.c: Likewise.
397         * tree-phinodes.c: Likewise.
398         * tree-predcom.c: Likewise.
399         * tree-pretty-print.c: Likewise.
400         * tree-profile.c: Likewise.
401         * tree-scalar-evolution.c: Likewise.
402         * tree-sra.c: Likewise.
403         * tree-ssa-address.c: Likewise.
404         * tree-ssa-alias.c: Likewise.
405         * tree-ssa-ccp.c: Likewise.
406         * tree-ssa-coalesce.c: Likewise.
407         * tree-ssa-copy.c: Likewise.
408         * tree-ssa-dce.c: Likewise.
409         * tree-ssa-dse.c: Likewise.
410         * tree-ssa-forwprop.c: Likewise.
411         * tree-ssa-ifcombine.c: Likewise.
412         * tree-ssa-live.c: Likewise.
413         * tree-ssa-loop-ch.c: Likewise.
414         * tree-ssa-loop-im.c: Likewise.
415         * tree-ssa-loop-ivcanon.c: Likewise.
416         * tree-ssa-loop-ivopts.c: Likewise.
417         * tree-ssa-loop-manip.c: Likewise.
418         * tree-ssa-loop-niter.c: Likewise.
419         * tree-ssa-loop-prefetch.c: Likewise.
420         * tree-ssa-loop-unswitch.c: Likewise.
421         * tree-ssa-loop.c: Likewise.
422         * tree-ssa-math-opts.c: Likewise.
423         * tree-ssa-operands.c: Likewise.
424         * tree-ssa-phiopt.c: Likewise.
425         * tree-ssa-phiprop.c: Likewise.
426         * tree-ssa-pre.c: Likewise.
427         * tree-ssa-propagate.c: Likewise.
428         * tree-ssa-reassoc.c: Likewise.
429         * tree-ssa-scopedtables.c: Likewise.
430         * tree-ssa-sink.c: Likewise.
431         * tree-ssa-strlen.c: Likewise.
432         * tree-ssa-structalias.c: Likewise.
433         * tree-ssa-tail-merge.c: Likewise.
434         * tree-ssa-ter.c: Likewise.
435         * tree-ssa-threadupdate.c: Likewise.
436         * tree-ssa-uncprop.c: Likewise.
437         * tree-ssa-uninit.c: Likewise.
438         * tree-ssa.c: Likewise.
439         * tree-ssanames.c: Likewise.
440         * tree-stdarg.c: Likewise.
441         * tree-streamer-in.c: Likewise.
442         * tree-streamer-out.c: Likewise.
443         * tree-streamer.c: Likewise.
444         * tree-switch-conversion.c: Likewise.
445         * tree-tailcall.c: Likewise.
446         * tree-vect-data-refs.c: Likewise.
447         * tree-vect-generic.c: Likewise.
448         * tree-vect-loop-manip.c: Likewise.
449         * tree-vect-loop.c: Likewise.
450         * tree-vect-patterns.c: Likewise.
451         * tree-vect-slp.c: Likewise.
452         * tree-vect-stmts.c: Likewise.
453         * tree-vectorizer.c: Likewise.
454         * tree-vrp.c: Likewise.
455         * tree.c: Likewise.
456         * tsan.c: Likewise.
457         * ubsan.c: Likewise.
458         * value-prof.c: Likewise.
459         * var-tracking.c: Likewise.
460         * varasm.c: Likewise.
461         * varpool.c: Likewise.
462         * vmsdbgout.c: Likewise.
463         * vtable-verify.c: Likewise.
464         * web.c: Likewise.
465         * wide-int-print.cc: Likewise.
466         * wide-int.cc: Likewise.
467         * xcoffout.c: Likewise.
469 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
471         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
472         between pass numbering and execution order.
474 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
476         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
477         check for dependencies.
479 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
481         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
482         CDI_DOMINATORS.
484 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
486         * real.h (format_helper): New.
487         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
488         (real_from_target, real_nan, real_2expN, real_value_truncate)
489         (significand_size, real_from_string2, exact_real_inverse)
490         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
491         (real_round, real_isinteger, real_from_integer): Replace
492         machine_mode arguments with format_helper arguments.
493         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
494         (real_from_integer, real_nan, real_2expN, real_convert)
495         (real_value_truncate, exact_real_truncate, real_to_target)
496         (real_from_target, significand_size, real_powi, real_trunc)
497         (real_floor, real_ceil, real_round, real_isinteger): Replace
498         machine_mode arguments with format_helper arguments.
499         (real_to_target_fmt, real_from_target_fmt): Delete.
500         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
501         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
502         argument with real_format.
503         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
505 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
507         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
508         (fixed_to_decimal, fixed_convert_from_real)
509         (real_convert_from_fixed): Fix mode arguments to real_2expN.
511 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
513         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
514         SCALAR_FLOAT_MODE_P.
516 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
518         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
519         (completely_scalarize): Comment zero-length arrays.
520         (get_access_replacement): Correct comment re. precondition.
522 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
524         * config/i386/i386.c (get_builtin_code_for_version): Set priority
525         for PROCESSOR_ZNVER1.
526         (enum processor_model): Add M_AMDFAM17H_znver1.
527         (struct arch_names_table): Likewise.
528         * doc/extend.texi: ADD znver1.
530 2015-10-30  Richard Biener  <rguenther@suse.de>
532         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
533         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
534         zeros to be folded to VECTOR_CSTs.
535         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
536         * fold-const.c (fold): Use build_vector_from_ctor.
538 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
540         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
541         "mov %0.h[0], %1.h[0] to "neon_move".
542         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
543         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
544         "mov_imm".
545         (*cmovsi_insn_uxtw): Likewise.
547 2015-10-30  Tom de Vries  <tom@codesourcery.com>
549         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
550         unsigned, and initialize, and use initial value instead of hardcoded
551         constant.  Add generic constraints dumping section.  Don't dump global
552         initializers constraints dumping section if empty.  Don't update
553         variable from if unused.
555 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
557         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
558         flag_checking and/or CHECKING_P to eliminate conditional compilation
559         on ENABLE_CHECKING.
560         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
561         * config/bfin/bfin.c (hwloop_optimize): Likewise.
562         * config/i386/i386.c (ix86_print_operand_address): Likewise.
563         (output_387_binary_op): Likewise.
564         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
565         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
566         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
567         Likewise.
568         * config/rs6000/rs6000.h: Likewise.
569         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
571 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
573         * config/sh/sh.opt (mfdpic): Add missing period.
575 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
577         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
578         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
579         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
580         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
581         mcore_base_register_rtx_p, mcore_legitimate_index_p,
582         mcore_legitimate_address_p): New functions.
583         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define. 
585 2015-10-29  Jeff Law  <law@redhat.com>
587         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
588         method.
589         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
590         * tree-ssa-threadedge.c
591         (record_temporary_equivalences_from_stmts_at_dest): Remove
592         backedge_seen argument and associated code which invalidated
593         equivalences based on the value of that argument.
594         (thread_through_normal_block): Corresponding changes.
596 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
598         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
599         function earlier in the file.
600         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
601         df_regs_ever_live_p.
603 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
605         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
606         by ignoring it.
608 2015-10-29  Richard Henderson  <rth@redhat.com>
610         PR target/68124
611         PR rtl-opt/67609
612         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
613         sse check to the exact conditions of PR 67609.
615 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
617         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
618         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
619         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
620         of the traditional names that TFmode uses for handling IEEE
621         extended double. If -mfloat128, add KFmode functions for all of
622         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
623         make TFmode use the same emulation functions as KFmode.
624         (init_float128_ibm): Likewise.
625         (init_float128_ieee): Likewise.
626         (rs6000_generate_compare): For IEEE 128-bit floating point
627         comparisons, call the unordered comparison function instead of the
628         ordered comparison function.
629         (rs6000_expand_float128_convert): Deal with operands that are
630         memory operands. Restructure the code to use a switch statement on
631         the mode. Add support for TFmode defaulting to either IBM extended
632         double or IEEE 128-bit floating point. If the underlying types are
633         the same, use a move instead of a conversion function.
634         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
635         use for IEEE 128-bit floating point constants with -mfloat128.
636         (rs6000_c_mode_for_suffix): Likewise.
637         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
638         128-bit floating point with IBM extended double floating point.
639         (rs6000_invalid_binary_op): Likewise.
640         (rs6000_gen_le_vsx_permute): On little endian systems generate a
641         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
642         types that can go in vector registers.
643         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
644         point types that can go in vector registers on little endian
645         PowerPC systems.
646         (mark_swaps_for_removal): Likewise.
647         (rs6000_analyze_swaps): Likewise.
648         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
650         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
651         rework IEEE 128-bit floating point insns to deal with TFmode being
652         either IBM extended double or IEEE 128-bit floating point.
653         (IFKF): Likewise.
654         (IBM128): Update iterator to add condition that the mode is IBM
655         extended double.
656         (IEEE128): New iterator for IEEE 128-bit floating point.
657         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
658         (FLOAT128): Likewise.
659         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
660         iterator.
661         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
662         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
663         instead of hard coding TFmode or KFmode.
664         (negtf2_internal): Likewise.
665         (neg<mode>2_internal): Likewise.
666         (abs<mode>2): Likewise.
667         (abstf2_internal): Likewise.
668         (abs<mode>2_internal): Likewise.
669         (ieee_128bit_neg<mode>2): Likewise.
670         (ieee_128bit_neg<mode>2_internal): Likewise.
671         (ieee_128bit_abs<mode>2): Likewise.
672         (ieee_128bit_abs<mode>2_internal): Likewise.
673         (ieee_128bit_nabs<mode>2): Likewise.
674         (ieee_128bit_nabs<mode>2_internal): Likewise.
675         (extendiftf2): Add explicit conversions between 128-bit floating
676         point types. Drop the old conversions that had become unwieldy.
677         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
678         (extendifkf2): Likewise.
679         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
680         (extendtfkf2): Likewise.
681         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
682         (trunciftf2): Likewise.
683         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
684         (truncifkf2): Likewise.
685         (float<SDI:mode><IFKF:mode>2): Likewise.
686         (trunckftf2): Likewise.
687         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
688         (trunctfif2): Likewise.
689         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
690         (extenddftf2): Rework 128-bit floating point conversions to
691         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
692         KFmode expanders into one function.
693         (extenddf<mode>2): Likewise.
694         (extenddftf2_fprs): Likewise.
695         (extenddf<mode>2_fprs): Likewise.
696         (extenddftf2_vsx): Likewise.
697         (extenddf<mode>2_vsx): Likewise.
698         (extendsftf2): Likewise.
699         (extendsf<mode>2): Likewise.
700         (trunctfdf2): Likewise.
701         (trunc<mode>df2): Likewise.
702         (trunctfdf2_internal1): Likewise.
703         (trunc<mode>df2_internal1): Likewise.
704         (trunctfdf2_internal2): Likewise.
705         (trunc<mode>df2_internal2): Likewise.
706         (trunctfsf2): Likewise.
707         (trunc<mode>sf2): Likewise.
708         (trunctfsf2_fprs): Likewise.
709         (trunc<mode>sf2_fprs): Likewise.
710         (floatsit2f): Likewise.
711         (floatsi<mode>2): Likewise.
712         (fix_trunc_helper): Likewise.
713         (fix_trunc_helper<mode>): Likewise.
714         (fix_trunctfsi2): Likewise.
715         (fix_trunc<mode>si2): Likewise.
716         (fix_trunctfsi2_fprs): Likewise.
717         (fix_trunc<mode>si2_fprs): Likewise.
718         (fix_trunctfsi2_internal): Likewise.
719         (fix_trunc<mode>si2_internal): Likewise.
720         (fix_trunctfdi2): Likewise.
721         (fix_trunc<mode>di2): Likewise.
722         (fixuns_trunctf<mode>2): Likewise.
723         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
724         (floatditf2): Likewise.
725         (floatdi<mode>2): Likewise.
726         (floatuns<mode>tf2): Likewise.
727         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
728         (cmptf_internal1): Use a mode iterator to add support for both
729         types (IFmode, TFmode) that support IBM extended double.
730         (cmp<mode>_internal1): Likewise.
731         (cmptf_internal2): Likewise.
732         (cmp<mode>_internal2): Likewise.
734         * doc/extend.texi (Floating Types): Document __ibm128 and
735         __float128 on PowerPC.
737         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
738         -mfloat128 and -mno-float128.
740 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
742         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
743         floating point modes that can go in vector registers.
744         (MODES_TIEABLE_P): Move tests for vector modes before tests for
745         scalar floating point, so that IEEE 128-bit floating point that
746         can go in vector registers bind with vectors and not FP.
747         (struct rs6000_args): Add libcall field.
749         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
750         and -mfloat128-software switches.  Replace them with a binary
751         -mfloat128 switch.
752         (-mfloat128): Likewise.
754         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
755         128-bit floating point types in GPRs, even if the appropriate
756         option enabling the type was not used.
757         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
758         debugging.
759         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
760         pre-decrement on IEEE 128-bit floating point values.
761         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
762         is IEEE 128-bit floating point.
763         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
764         128-bit floating point types that can go in vector registers.
765         (rs6000_option_override_internal): Change -mfloat128-none and
766         -mfloat128-software to -mfloat128, and move code to be near other
767         VSX option handling.
768         (rs6000_option_override_internal): Disable -mfloat128 if we don't
769         have the Altivec ABI.
770         (rs6000_init_builtins): Don't make TFmode use either IFmode or
771         KFmode floating point nodes. Instead, have three separate nodes.
772         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
773         eventually moving the long double default to IEEE 128-bit floating
774         point.
775         (rs6000_opt_masks): Add -mfloat128.
776         (struct rs6000_opt_var): Fix typo in comment.
777         (init_cumulative_args): Initialize libcall field in
778         CUMULATIVE_ARGS.
779         (rs6000_function_arg): Treat library functions as if they had
780         prototypes to prevent IEEE 128-bit support functions from passing
781         arguments in both GPRs and vector registers.
782         (rs6000_arg_partial_bytes): Likewise.
784         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
785         an option that can be turned on via -mcpu=<xxx>.
787         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
788         longer used.
790         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
791         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
792         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
793         double is IBM extended double.
795         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
796         SUBREGs.
798 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
800         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
801         * genconditions.c: Define CHECKING_P in the generated code.
802         * genextract.c: Use flag_checking in insn_extract.
803         * gengtype.c (main): Remove conditional compilation.
804         * gengtype.h: Likewise.
806 2015-10-29  Jeff Law  <law@redhat.com>
808         PR tree-optimization/67892
809         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
810         in comment.
811         (thread_through_normal_block): If we have seen a backedge, then
812         do nothing.  No longer call find_jump_threads_backwards here.
813         (thread_across_edge): Use find_jump_threads_backwards to find
814         jump threads if the old style threader was not successful.
815         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
816         gsi_last_nondebug_bb.  Return NULL if the block does not end
817         with a control statement.
818         (find_jump_threads_backwards): Setup code moved here from
819         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
820         single edge argument instead of name & block.
821         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
822         prototype.
824 2015-10-29  Tom de Vries  <tom@codesourcery.com>
826         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
827         types.
829 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
831         * omp-low.c (lower_omp_target): Remove unreachable code & merge
832         ifs.
834 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
836         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
838 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
840         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
841         guard_bb0 and use guard_bb throughout.
843 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
845         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
846         unnecessary label.
848 2015-10-29  Richard Biener  <rguenther@suse.de>
850         PR middle-end/68142
851         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
852         overflow.
854 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
856         * alias.c: Reorder #include statements and remove duplicates.
857         * asan.c: Likewise.
858         * attribs.c: Likewise.
859         * auto-inc-dec.c: Likewise.
860         * auto-profile.c: Likewise.
861         * bb-reorder.c: Likewise.
862         * bt-load.c: Likewise.
863         * builtins.c: Likewise.
864         * caller-save.c: Likewise.
865         * calls.c: Likewise.
866         * ccmp.c: Likewise.
867         * cfg.c: Likewise.
868         * cfganal.c: Likewise.
869         * cfgbuild.c: Likewise.
870         * cfgcleanup.c: Likewise.
871         * cfgexpand.c: Likewise.
872         * cfghooks.c: Likewise.
873         * cfgloop.c: Likewise.
874         * cfgloopanal.c: Likewise.
875         * cfgloopmanip.c: Likewise.
876         * cfgrtl.c: Likewise.
877         * cgraph.c: Likewise.
878         * cgraphbuild.c: Likewise.
879         * cgraphclones.c: Likewise.
880         * cgraphunit.c: Likewise.
881         * cilk-common.c: Likewise.
882         * combine-stack-adj.c: Likewise.
883         * combine.c: Likewise.
884         * compare-elim.c: Likewise.
885         * convert.c: Likewise.
886         * coverage.c: Likewise.
887         * cppbuiltin.c: Likewise.
888         * cprop.c: Likewise.
889         * cse.c: Likewise.
890         * cselib.c: Likewise.
891         * data-streamer-in.c: Likewise.
892         * data-streamer-out.c: Likewise.
893         * data-streamer.c: Likewise.
894         * dbxout.c: Likewise.
895         * dce.c: Likewise.
896         * ddg.c: Likewise.
897         * debug.c: Likewise.
898         * df-core.c: Likewise.
899         * df-problems.c: Likewise.
900         * df-scan.c: Likewise.
901         * dfp.c: Likewise.
902         * dojump.c: Likewise.
903         * dominance.c: Likewise.
904         * double-int.c: Likewise.
905         * dse.c: Likewise.
906         * dumpfile.c: Likewise.
907         * dwarf2asm.c: Likewise.
908         * dwarf2cfi.c: Likewise.
909         * dwarf2out.c: Likewise.
910         * emit-rtl.c: Likewise.
911         * except.c: Likewise.
912         * explow.c: Likewise.
913         * expmed.c: Likewise.
914         * expr.c: Likewise.
915         * final.c: Likewise.
916         * fixed-value.c: Likewise.
917         * fold-const.c: Likewise.
918         * function.c: Likewise.
919         * fwprop.c: Likewise.
920         * gcse.c: Likewise.
921         * generic-match-head.c: Likewise.
922         * ggc-common.c: Likewise.
923         * gimple-builder.c: Likewise.
924         * gimple-expr.c: Likewise.
925         * gimple-fold.c: Likewise.
926         * gimple-iterator.c: Likewise.
927         * gimple-low.c: Likewise.
928         * gimple-match-head.c: Likewise.
929         * gimple-pretty-print.c: Likewise.
930         * gimple-ssa-isolate-paths.c: Likewise.
931         * gimple-ssa-strength-reduction.c: Likewise.
932         * gimple-streamer-in.c: Likewise.
933         * gimple-streamer-out.c: Likewise.
934         * gimple-walk.c: Likewise.
935         * gimple.c: Likewise.
936         * gimplify-me.c: Likewise.
937         * gimplify.c: Likewise.
938         * godump.c: Likewise.
939         * graph.c: Likewise.
940         * graphite-poly.c: Likewise.
941         * haifa-sched.c: Likewise.
942         * hw-doloop.c: Likewise.
943         * ifcvt.c: Likewise.
944         * incpath.c: Likewise.
945         * init-regs.c: Likewise.
946         * internal-fn.c: Likewise.
947         * ipa-chkp.c: Likewise.
948         * ipa-comdats.c: Likewise.
949         * ipa-cp.c: Likewise.
950         * ipa-devirt.c: Likewise.
951         * ipa-icf-gimple.c: Likewise.
952         * ipa-icf.c: Likewise.
953         * ipa-inline-analysis.c: Likewise.
954         * ipa-inline-transform.c: Likewise.
955         * ipa-inline.c: Likewise.
956         * ipa-polymorphic-call.c: Likewise.
957         * ipa-profile.c: Likewise.
958         * ipa-prop.c: Likewise.
959         * ipa-pure-const.c: Likewise.
960         * ipa-ref.c: Likewise.
961         * ipa-reference.c: Likewise.
962         * ipa-split.c: Likewise.
963         * ipa-utils.c: Likewise.
964         * ipa-visibility.c: Likewise.
965         * ipa.c: Likewise.
966         * ira-build.c: Likewise.
967         * ira-color.c: Likewise.
968         * ira-conflicts.c: Likewise.
969         * ira-costs.c: Likewise.
970         * ira-emit.c: Likewise.
971         * ira-lives.c: Likewise.
972         * ira.c: Likewise.
973         * jump.c: Likewise.
974         * langhooks.c: Likewise.
975         * lcm.c: Likewise.
976         * lists.c: Likewise.
977         * loop-doloop.c: Likewise.
978         * loop-init.c: Likewise.
979         * loop-invariant.c: Likewise.
980         * loop-iv.c: Likewise.
981         * loop-unroll.c: Likewise.
982         * lower-subreg.c: Likewise.
983         * lra-assigns.c: Likewise.
984         * lra-coalesce.c: Likewise.
985         * lra-constraints.c: Likewise.
986         * lra-eliminations.c: Likewise.
987         * lra-lives.c: Likewise.
988         * lra-remat.c: Likewise.
989         * lra-spills.c: Likewise.
990         * lra.c: Likewise.
991         * lto-cgraph.c: Likewise.
992         * lto-compress.c: Likewise.
993         * lto-opts.c: Likewise.
994         * lto-section-in.c: Likewise.
995         * lto-section-out.c: Likewise.
996         * lto-streamer-in.c: Likewise.
997         * lto-streamer-out.c: Likewise.
998         * lto-streamer.c: Likewise.
999         * mode-switching.c: Likewise.
1000         * modulo-sched.c: Likewise.
1001         * omp-low.c: Likewise.
1002         * optabs.c: Likewise.
1003         * opts-global.c: Likewise.
1004         * passes.c: Likewise.
1005         * plugin.c: Likewise.
1006         * postreload-gcse.c: Likewise.
1007         * postreload.c: Likewise.
1008         * predict.c: Likewise.
1009         * print-tree.c: Likewise.
1010         * profile.c: Likewise.
1011         * real.c: Likewise.
1012         * realmpfr.c: Likewise.
1013         * recog.c: Likewise.
1014         * ree.c: Likewise.
1015         * reg-stack.c: Likewise.
1016         * regcprop.c: Likewise.
1017         * reginfo.c: Likewise.
1018         * regrename.c: Likewise.
1019         * regstat.c: Likewise.
1020         * reload.c: Likewise.
1021         * reload1.c: Likewise.
1022         * reorg.c: Likewise.
1023         * resource.c: Likewise.
1024         * rtl-chkp.c: Likewise.
1025         * rtl-error.c: Likewise.
1026         * rtlanal.c: Likewise.
1027         * rtlhooks.c: Likewise.
1028         * sanopt.c: Likewise.
1029         * sched-deps.c: Likewise.
1030         * sched-ebb.c: Likewise.
1031         * sched-rgn.c: Likewise.
1032         * sese.c: Likewise.
1033         * shrink-wrap.c: Likewise.
1034         * simplify-rtx.c: Likewise.
1035         * stack-ptr-mod.c: Likewise.
1036         * statistics.c: Likewise.
1037         * stmt.c: Likewise.
1038         * stor-layout.c: Likewise.
1039         * store-motion.c: Likewise.
1040         * stringpool.c: Likewise.
1041         * symtab.c: Likewise.
1042         * target-globals.c: Likewise.
1043         * targhooks.c: Likewise.
1044         * toplev.c: Likewise.
1045         * tracer.c: Likewise.
1046         * trans-mem.c: Likewise.
1047         * tree-affine.c: Likewise.
1048         * tree-call-cdce.c: Likewise.
1049         * tree-cfg.c: Likewise.
1050         * tree-cfgcleanup.c: Likewise.
1051         * tree-chkp-opt.c: Likewise.
1052         * tree-chkp.c: Likewise.
1053         * tree-chrec.c: Likewise.
1054         * tree-complex.c: Likewise.
1055         * tree-data-ref.c: Likewise.
1056         * tree-dfa.c: Likewise.
1057         * tree-diagnostic.c: Likewise.
1058         * tree-dump.c: Likewise.
1059         * tree-eh.c: Likewise.
1060         * tree-emutls.c: Likewise.
1061         * tree-if-conv.c: Likewise.
1062         * tree-inline.c: Likewise.
1063         * tree-into-ssa.c: Likewise.
1064         * tree-iterator.c: Likewise.
1065         * tree-loop-distribution.c: Likewise.
1066         * tree-nested.c: Likewise.
1067         * tree-nrv.c: Likewise.
1068         * tree-object-size.c: Likewise.
1069         * tree-outof-ssa.c: Likewise.
1070         * tree-parloops.c: Likewise.
1071         * tree-phinodes.c: Likewise.
1072         * tree-predcom.c: Likewise.
1073         * tree-pretty-print.c: Likewise.
1074         * tree-profile.c: Likewise.
1075         * tree-scalar-evolution.c: Likewise.
1076         * tree-sra.c: Likewise.
1077         * tree-ssa-address.c: Likewise.
1078         * tree-ssa-alias.c: Likewise.
1079         * tree-ssa-ccp.c: Likewise.
1080         * tree-ssa-coalesce.c: Likewise.
1081         * tree-ssa-copy.c: Likewise.
1082         * tree-ssa-dce.c: Likewise.
1083         * tree-ssa-dom.c: Likewise.
1084         * tree-ssa-dse.c: Likewise.
1085         * tree-ssa-forwprop.c: Likewise.
1086         * tree-ssa-ifcombine.c: Likewise.
1087         * tree-ssa-live.c: Likewise.
1088         * tree-ssa-loop-ch.c: Likewise.
1089         * tree-ssa-loop-im.c: Likewise.
1090         * tree-ssa-loop-ivcanon.c: Likewise.
1091         * tree-ssa-loop-ivopts.c: Likewise.
1092         * tree-ssa-loop-manip.c: Likewise.
1093         * tree-ssa-loop-niter.c: Likewise.
1094         * tree-ssa-loop-prefetch.c: Likewise.
1095         * tree-ssa-loop-unswitch.c: Likewise.
1096         * tree-ssa-loop.c: Likewise.
1097         * tree-ssa-math-opts.c: Likewise.
1098         * tree-ssa-operands.c: Likewise.
1099         * tree-ssa-phiopt.c: Likewise.
1100         * tree-ssa-phiprop.c: Likewise.
1101         * tree-ssa-pre.c: Likewise.
1102         * tree-ssa-propagate.c: Likewise.
1103         * tree-ssa-reassoc.c: Likewise.
1104         * tree-ssa-sccvn.c: Likewise.
1105         * tree-ssa-scopedtables.c: Likewise.
1106         * tree-ssa-sink.c: Likewise.
1107         * tree-ssa-strlen.c: Likewise.
1108         * tree-ssa-structalias.c: Likewise.
1109         * tree-ssa-tail-merge.c: Likewise.
1110         * tree-ssa-ter.c: Likewise.
1111         * tree-ssa-threadedge.c: Likewise.
1112         * tree-ssa-threadupdate.c: Likewise.
1113         * tree-ssa-uncprop.c: Likewise.
1114         * tree-ssa-uninit.c: Likewise.
1115         * tree-ssa.c: Likewise.
1116         * tree-ssanames.c: Likewise.
1117         * tree-stdarg.c: Likewise.
1118         * tree-streamer-in.c: Likewise.
1119         * tree-streamer-out.c: Likewise.
1120         * tree-streamer.c: Likewise.
1121         * tree-switch-conversion.c: Likewise.
1122         * tree-tailcall.c: Likewise.
1123         * tree-vect-data-refs.c: Likewise.
1124         * tree-vect-generic.c: Likewise.
1125         * tree-vect-loop-manip.c: Likewise.
1126         * tree-vect-loop.c: Likewise.
1127         * tree-vect-patterns.c: Likewise.
1128         * tree-vect-slp.c: Likewise.
1129         * tree-vect-stmts.c: Likewise.
1130         * tree-vectorizer.c: Likewise.
1131         * tree-vrp.c: Likewise.
1132         * tree.c: Likewise.
1133         * tsan.c: Likewise.
1134         * ubsan.c: Likewise.
1135         * value-prof.c: Likewise.
1136         * var-tracking.c: Likewise.
1137         * varasm.c: Likewise.
1138         * varpool.c: Likewise.
1139         * vtable-verify.c: Likewise.
1140         * web.c: Likewise.
1141         * wide-int-print.cc: Likewise.
1142         * wide-int.cc: Likewise.
1143         * xcoffout.c: Likewise.
1145 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
1147         * Makefile.in (NO_PIE_CFLAGS): New.
1148         (NO_PIE_FLAG): Likewise.
1149         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1150         (NO_PIE_FLAG_FOR_BUILD): Likewise.
1151         (BUILD_NO_PIE_CFLAGS): Likewise.
1152         (BUILD_NO_PIE_FLAG): Likewise.
1153         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
1154         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
1155         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
1156         $(BUILD_NO_PIE_CFLAGS).
1157         (BUILD_CXXFLAGS): Likewise.
1158         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
1159         $(BUILD_NO_PIE_FLAG).
1160         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
1161         (BUILD_NO_PIE_FLAG): Likewise.
1162         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1163         (NO_PIE_FLAG_FOR_BUILD): Likewise.
1164         * configure: Regenerated.
1166 2015-10-29  Richard Biener  <rguenther@suse.de>
1168         PR middle-end/56956
1169         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
1170         unsigned conditonal negation to ABS_EXPR.
1172 2015-10-29  Richard Biener  <rguenther@suse.de>
1174         * gimple-match-head.c (gimple_simplify): Remove premature checking
1175         of builtin_decl_implicit of function calls we simplify.
1177 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
1179         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
1180         (get_computation_cost_at): Ditto.
1181         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
1182         and inv_expr_id.
1184 2015-10-28  Tom de Vries  <tom@codesourcery.com>
1186         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
1187         superfluous code.
1189 2015-10-28  Jason Merrill  <jason@redhat.com>
1191         * Makefile.in (TAGS): Include libcpp and libiberty.
1193 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
1195         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
1196         (extract_omp_for_data): Remove OpenACC special handling of
1197         chunking.
1199         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
1200         (struct parallel): Update comment.
1201         (nvptx_reorg): Likewise.
1202         (nvptx_neuter): Cleanup whitespace.
1204 2015-10-28  Richard Henderson  <rth@redhat.com>
1206         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
1208 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1210         PR target/67839
1211         * config/avr/predicates.md (low_io_address_operand): Don't
1212         consider MODE when computing upper bound.
1213         (io_address_operand): Likewise.
1215 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
1217         * fold-const.c (operand_equal_p): Do not verify that types are
1218         compatible for MEM_REFs.
1220 2015-10-28  Richard Biener  <rguenther@suse.de>
1222         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
1223         in simplifying VEC_COND_EXPR conditions.
1225 2015-10-28  Tom de Vries  <tom@codesourcery.com>
1227         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
1228         into vi_next of a full_var.
1230 2015-10-28  Tom de Vries  <tom@codesourcery.com>
1232         * tree-ssa-structalias.c (new_var_info, make_heapvar)
1233         (make_constraint_from_restrict, make_constraint_from_global_restrict)
1234         (create_function_info_for, create_variable_info_for_1)
1235         (create_variable_info_for): Add and handle add_id parameter.
1236         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
1237         (init_base_vars): Add extra argument to calls to new_var_info.
1238         (get_vi_for_tree): Add extra argument to call to
1239         create_variable_info_for.
1240         (process_constraint, do_deref, process_all_all_constraints): Add extra
1241         argument to calls to new_scalar_tmp_constraint_exp.
1242         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
1243         argument to calls to make_heapvar.
1244         (make_restrict_var_constraints): Add extra argument to call to
1245         make_constraint_from_global_restrict.
1246         (intra_create_variable_infos): Add extra argument to call to
1247         create_variable_info_for_1.
1248         (ipa_pta_execute): Add extra argument to call to
1249         create_function_info_for.
1251 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1253         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
1254         (sibcall_value): Likewise.
1256 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
1258         * config/nvptx/nvptx.h (struct machine_function): Add
1259         axis_predicate.
1260         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
1261         nvptx_expand_oacc_join): Declare.
1262         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
1263         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
1264         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
1265         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
1266         UNSPECV_JOINING, UNSPECV_JOIN): New.
1267         (BITS, BITD): New mode iterators.
1268         (br_true_uni, br_false_uni): New.
1269         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
1270         (oacc_dim_size, oacc_dim_pos): New.
1271         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
1272         (oacc_fork, oacc_join): New.
1273         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
1274         (worker_load<mode>, worker_store<mode>): New.
1275         (nvptx_barsync): New.
1276         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
1277         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
1278         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
1279         worker_bcast_sym): New.
1280         (nvptx_option_override): Initialize worker broadcast buffer.
1281         (nvptx_emit_forking, nvptx_emit_joining): New.
1282         (nvptx_init_axis_predicate): New.
1283         (nvptx_declare_function_name): Init axis predicates.
1284         (nvptx_expand_call): Add fork/join markers around routine call.
1285         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
1286         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
1287         (nvptx_gen_vcast): New.
1288         (struct wcast_data_t): New.
1289         (enum propagate_mask): New.
1290         (nvptx_gen_wcast): New.
1291         (nvptx_print_operand): Add 'S' case.
1292         (struct parallel): New.
1293         (parallel::parallel, parallel::~parallel): New.
1294         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
1295         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
1296         nvptx_find_par, nvptx_discover_pars): New.
1297         (nvptx_propagate): New.
1298         (vprop_gen, nvptx_vpropagate): New.
1299         (wprop_gen, nvptx_wpropagate): New.
1300         (nvptx_wsync): New.
1301         (nvptx_single, nvptx_skip_par): New.
1302         (nvptx_process_pars, nvptx_neuter_pars): New.
1303         (ntptx_reorg): Split blocks, generate parallel structure, apply
1304         neutering.
1305         (nvptx_cannot_copy_insn_p): New.
1306         (nvptx_file_end): Emit worker broadcast decl.
1307         (nvptx_goacc_fork_join): New.
1308         (TARGET_CANNOT_COPY_INSN_P): Override.
1309         (TARGET_GOACC_FORK_JOIN): Override.
1311 2015-10-28  Richard Biener  <rguenther@suse.de>
1313         * fold-const.c (negate_expr_p): Adjust the division case to
1314         properly avoid introducing undefined overflow.
1315         (fold_negate_expr): Likewise.
1317 2015-10-28  Richard Biener  <rguenther@suse.de>
1319         PR tree-optimization/65962
1320         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1321         Avoid creating loop carried dependences also for outer loops
1322         of the loop a use to replace is in.
1324 2015-10-28  Richard Biener  <rguenther@suse.de>
1326         * common.opt (fchecking): New flag controlling flag_checking.
1327         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
1328         * timevar.c (timer::print): Adjust output.
1329         * doc/invoke.texi (fchecking): Document.
1331 2015-10-28  Richard Biener  <rguenther@suse.de>
1333         PR middle-end/68067
1334         * fold-const.c (negate_expr_p): We cannot negate plus or minus
1335         if overflow is not wrapping.  Likewise multiplication unless
1336         one operand is constant and not power of two.
1337         (fold_negate_expr): Adjust accordingly.
1339 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1341         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
1342         fields.
1343         (is_oacc_parallel, is_oacc_kernels): New.
1344         (enclosing_target_ctx): May return NULL.
1345         (ctx_in_oacc_kernels_region): New.
1346         (check_oacc_kernel_gwv): New.
1347         (oacc_loop_or_target_p): Delete.
1348         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
1349         operands.  Strip reductions fro kernels.
1350         (scan_omp_target): Don't calculate gwv mask.
1351         (lower_oacc_head_mark, lower_oacc_loop_marker,
1352         lower_oacc_head_tail): New.
1353         (struct oacc_collapse): New.
1354         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
1355         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1356         Remove OpenACC handling.
1357         (expand_oacc_for): New.
1358         (expand_omp_for): Call expand_oacc_for.
1359         (lower_omp_for): Call lower_oacc_head_tail.
1361 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
1363         * attribs.c (check_attribute_tables): New function, broken out from...
1364         (init_attributes): Use it.
1365         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
1366         gcc_checking_assert and checking_* functions to eliminate
1367         ENABLE_CHECKING conditionals.
1368         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
1369         (pass_expand::execute): Likewise.
1370         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1371         * cgraphunit.c (mark_functions_to_output): Likewise.
1372         (cgraph_node::expand_thunk): Likewise.
1373         (symbol_table::compile): Likewise.
1374         * ddg.c (add_cross_iteration_register_deps): Likewise.
1375         (create_ddg_all_sccs): Likewise.
1376         * df-core.c (df_finish_pass, df_analyze): Likewise.
1377         * diagnostic-core.h: Likewise.
1378         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
1379         * dominance.c (calculate_dominance_info): Likewise.
1380         * dwarf2out.c (add_AT_die_ref): Likewise.
1381         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
1382         (loc_list_from_tree, gen_lexical_block_die): Likewise.
1383         gen_type_die_with_usage, gen_type_die): Likewise.
1384         (dwarf2out_decl): Likewise.
1385         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
1386         * except.c (duplicate_eh_regions): Likewise.
1387         * fwprop.c (register_active_defs, update_df_init): Likewise.
1388         (fwprop_init, fwprop_done): Likewise.
1389         (update_uses): Likewise.
1390         * ggc-page.c (ggc_grow): Likewise.
1391         * gimplify.c (gimplify_body): Likewise.
1392         (gimplify_hasher::equal): Likewise.
1393         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
1394         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
1395         Likewise.
1396         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
1397         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
1398         * hash-table.h (::find_empty_slot_for_expand): Likewise.
1399         * ifcvt.c (if_convert): Likewise.
1400         * ipa-cp.c (ipcp_propagate_stage): Likewise.
1401         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
1402         (odr_type_p, odr_types_equivalent_p): Likewise.
1403         (add_type_duplicate, get_odr_type): Likewise.
1404         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1405         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1406         (sem_item_optimizer::verify_classes): Likewise.
1407         (sem_item_optimizer::traverse_congruence_split): Likewise.
1408         (sem_item_optimizer::checking_verify_classes): New.
1409         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
1410         method.
1411         * cfgrtl.c (commit_edge_insertions): Likewise.
1412         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
1413         (rtl_flow_call_edges_add): Likewise.
1414         * cgraph.c (symbol_table::create_edge): Likewise.
1415         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1416         * cgraph.h (symtab_node): Likewise.
1417         (symtab_node::checking_verify_symtab_nodes): Define.
1418         (cgraph_node::checking_verify_cgraph_nodes): Define.
1419         * cfghooks.h (checking_verify_flow_info): Define.
1420         * cfgloop.h (checking_verify_loop_structure): Define.
1421         * dominance.h (checking_verify_dominators): Define.
1422         * et-forest.c: Fix comment.
1423         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
1424         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1425         ENABLE_CHECKING conditionals.
1426         * ipa-inline-transform.c (save_inline_function_body): Likewise.
1427         * ipa-inline.c (inline_small_functions): Likewise.
1428         (early_inliner): Likewise.
1429         * ipa-inline.h (estimate_edge_growth): Likewise.
1430         * ipa-visibility.c (function_and_variable_visibility): Likewise.
1431         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1432         (ipa_single_use): Likewise.
1433         * ira-int.h: Likewise.
1434         * ira.c (ira): Likewise.
1435         * loop-doloop.c (doloop_optimize_loops): Likewise.
1436         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
1437         * loop-invariant.c (move_loop_invariants): Likewise.
1438         * lra-assigns.c (lra_assign): Likewise.
1439         * lra-constraints.c (lra_constraints): Likewise.
1440         * lra-eliminations.c (lra_eliminate): Likewise.
1441         * lra-int.h (struct lra_reg): Likewise.
1442         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1443         (lra_create_live_ranges_1): Likewise.
1444         * lra-remat.c (create_remat_bb_data): Likewise.
1445         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
1446         (lra): Likewise.
1447         (check_rtl): Always define. Remove incorrect guard around
1448         extract_constrain_insn call.
1449         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
1450         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1451         ENABLE_CHECKING conditionals.
1452         * lto-streamer-out.c (DFS::DFS): Likewise.
1453         (lto_output): Likewise.
1454         * lto-streamer.c (lto_streamer_init): Likewise.
1455         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
1456         expand_omp_target, execute_expand_omp): Likewise.
1457         (lower_omp_target): Likewise.
1458         * passes.c (execute_function_todo): Likewise.
1459         (execute_todo, execute_one_pass): Likewise.
1460         (verify_curr_properties): Always define.
1461         * predict.c (tree_estimate_probability: Use flag_checking,
1462         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1463         ENABLE_CHECKING conditionals.
1464         (propagate_freq): Likewise.
1465         * pretty-print.c (pp_format): Likewise.
1466         * real.c (real_to_decimal_for_mode): Likewise.
1467         * recog.c (split_all_insns): Likewise.
1468         * regcprop.c (kill_value_one_regno): Likewise.
1469         (copy_value): Likewise.
1470         (validate_value_data): Define unconditionally.
1471         * reload.c: Fix comment.
1472         * timevar.c: Include options.h
1473         * tree-ssa.h (checking_verify_ssa): Define.
1474         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
1475         * sched-deps.c (CHECK): Remove unused macro.
1476         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
1477         gcc_checking_assert and checking_* functions to eliminate
1478         ENABLE_CHECKING conditionals.
1479         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
1480         * sel-sched.c (struct moveop_static_params): Likewise.
1481         (find_best_reg_for_expr, move_cond_jump): Likewise.
1482         (move_op_orig_expr_not_found): Likewise.
1483         (code_motion_process_successors, move_op): Likewise.
1484         * ssa-iterators.h (first_readonly_imm_use): Likewise.
1485         (next_readonly_imm_use): Likewise.
1486         * store-motion.c (compute_store_table): Likewise.
1487         * symbol-summary.h (function_summary::function_summary): Likewise.
1488         * target.h (cumulative_args_t): Likewise.
1489         (get_cumulative_args, pack_cumulative_args): Likewise.
1490         * timevar.c: (timer::print): Likewise.
1491         * trans-mem.c (ipa_tm_execute): Likewise.
1492         * tree-cfg.c (move_stmt_op): Likewise.
1493         (move_sese_region_to_fn): Likewise.
1494         (gimple_flow_call_edges_add): Likewise.
1495         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1496         Likewise.
1497         * tree-eh.c (remove_unreachable_handlers): Likewise.
1498         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1499         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
1500         * tree-into-ssa.c (update_ssa): Likewise.
1501         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
1502         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
1503         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
1504         * tree-predcom.c (suitable_component_p): Likewise.
1505         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
1506         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
1507         * tree-ssa-live.c (verify_live_on_entry): Likewise.
1508         * tree-ssa-live.h (register_ssa_partition): Likewise.
1509         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
1510         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
1511         (tree_transform_and_unroll_loop): Likewise.
1512         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1513         * tree-ssa-operands.c (get_expr_operands): Likewise.
1514         * tree-ssa-propagate.c (replace_exp_1): Likewise.
1515         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1516         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1517         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
1518         * tree-ssanames.c (release_ssa_name_fn): Likewise.
1519         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
1520         * tree-vect-loop-manip.c
1521         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1522         (slpeel_checking_verify_cfg_after_peeling): Likewise.
1523         (vect_do_peeling_for_loop_bound): Likewise.
1524         (vect_do_peeling_for_alignment): Likewise.
1525         * tree-vrp.c (supports_overflow_infinity): Likewise.
1526         (set_value_range): Likewise.
1527         * tree.c (free_lang_data_in_cgraph): Likewise.
1528         * value-prof.c (gimple_remove_histogram_value): Likewise.
1529         (free_hist): Likewise.
1530         * var-tracking.c (canonicalize_values_star): Likewise.
1531         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1533 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1535         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1536         IFN_GOACC_LOOP): New.
1537         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1538         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1539         IFN_UNIQUE_OACC_TAIL_MARK.
1540         (enum ifn_goacc_loop_kind): New.
1541         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1542         IFN_UNIQUE_OACC_JOIN cases.
1543         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1544         (expand_GOACC_LOOP): New.
1545         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1546         * omp-low.c: Include gimple-pretty-print.h.
1547         (struct oacc_loop): New.
1548         (enum oacc_loop_flags): New.
1549         (oacc_thread_numbers): New.
1550         (oacc_xform_loop): New.
1551         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1552         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1553         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1554         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1555         oacc_loop_discovery): New.
1556         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1557         oacc_loop_process): New.
1558         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1559         (execute_oacc_device_lower): Discover & process loops.  Process
1560         internal fns.
1561         * target.def (goacc.fork_join): Change sense of hook, clarify
1562         documentation.
1563         * doc/tm.texi: Regenerated.
1565 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1567         * target-insns.def (oacc_fork, oacc_join): Define.
1568         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1569         (goacc.fork_join): New GOACC hook.
1570         * targhooks.h (default_goacc_fork_join): Declare.
1571         * omp-low.c (default_goacc_forkjoin): New.
1572         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1573         * doc/tm.texi: Regenerate.
1575 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1577         * omp-low.c (oacc_init_rediction_array): New.
1578         (oacc_initialize_reduction_data): Initialize array.
1580 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1582         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1584 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
1585         
1586         * internal-fn.c (expand_UNIQUE): New.
1587         * internal-fn.h (enum ifn_unique_kind): New.
1588         * internal-fn.def (IFN_UNIQUE): New.
1589         * target-insns.def (unique): Define.
1590         * gimple.h (gimple_call_internal_unique_p): New.
1591         * gimple.c (gimple_call_same_target_p): Check internal fn
1592         uniqueness.
1593         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1594         * tree-ssa-threadedge.c
1595         (record_temporary_equivalences_from_stmts): Likewise.
1596         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1598 2015-10-27  Richard Henderson  <rth@redhat.com>
1600         PR rtl-opt/67609
1601         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1602         narrowing subregs on SSE and MMX registers.
1603         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1604         appear to be sub-words of multi-register pseudos must be rejected.
1605         * doc/tm.texi: Regenerate.
1607 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1609         PR target/68102
1610         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1611         operands[0] is a reg before taking its REGNO in split condition.
1612         (*movdi_aarch64): Likewise.
1614 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1616         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1617         Handle floating point inner modes properly.
1619 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
1621         * tree-vect-looop.c
1622         (vectorizable_live_operation): Change iterator.
1624 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1625             Aditya Kumar  <aditya.k7@samsung.com>
1627         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1628           function to schedule based on isl_schedule_node.
1629         (get_schedule_map_st): New schedule optimizer based on
1630         isl_schedule_node.
1631         (scop_get_domains): New. Return the isl_union_set containing the
1632         domains of all the pbbs.
1633         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1635 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1637         PR target/67215
1638         * calls.c (prepare_call_address): Don't handle -fno-plt here.
1639         * config/i386/i386.c (ix86_expand_call): Generate indirect call
1640         via GOT for -fno-plt.  Support indirect call via GOT for x32.
1641         * config/i386/predicates.md (sibcall_memory_operand): Allow
1642         GOT memory operand.
1644 2015-10-27  Richard Biener  <rguenther@suse.de>
1646         PR tree-optimization/68104
1647         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1648         strided access check ...
1649         (vect_compute_data_refs_alignment): ... here.
1651 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
1652             Joseph Myers  <joseph@codesourcery.com>
1653             Mark Shinwell  <shinwell@codesourcery.com>
1654             Andrew Stubbs  <ams@codesourcery.com>
1655             Rich Felker <dalias@libc.org>
1657         * config.gcc: Handle --enable-fdpic.
1658         * config/sh/constraints.md (Ccl): New constraint.
1659         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1660         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1661         __SH_FDPIC__.
1662         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1663         library functions.
1664         * config/sh/sh-protos.h (function_symbol_result): New struct.
1665         (function_symbol): Return function_symbol_result.
1666         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1667         declarations.
1668         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1669         target hook.
1670         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1671         (sh_option_override): Force -fPIC if FDPIC is in effect.
1672         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1673         UNSPEC_GOTOFFFUNCDESC cases.
1674         (prepare_move_operands): Use FDPIC initial GOT register for
1675         TLS-related GOT access; inhibit cross-section address offset constants
1676         for FDPIC.
1677         (sh_assemble_integer): New function.
1678         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1679         PC-relative call sites.
1680         (expand_ashiftrt): Adapt invocation of function_symbol.
1681         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1682         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1683         UNSPEC_GOTOFFFUNCDESC.
1684         (legitimize_pic_address): Resolve function symbols to function
1685         descriptors for FDPIC.  Do not use GOT-relative addressing for local
1686         data that may be read-only on FDPIC.
1687         (sh_emit_storesi, sh_emit_storehi): New functions.
1688         (sh_trampoline_init): Generate FDPIC trampolines.
1689         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1690         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1691         (sh_output_mi_thunk): Generate FDPIC call.
1692         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
1693         FDPIC, generate call site labels to use PC-relative addressing rather
1694         than GOT-relative addressing.
1695         (sh_conditional_register_usage): Make PIC register fixed and call used
1696         when FDPIC is in effect.
1697         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1698         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1699         sh_get_fdpic_reg_initial_val): New functions.
1700         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1701         Handle -mfdpic.
1702         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1703         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1704         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1705         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1706         FDPIC_SELF_SPECS.
1707         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1708         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1709         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1710         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1711         constants.
1712         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1713         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1714         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1715         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1716         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1717         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1718         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1719         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1720         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1721         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1722         block_move_real, block_lump_real, block_move_real_i4,
1723         block_lump_real_i4): Add support for FDPIC calls.
1724         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1725         call_value_pop): Adjust for new function_symbol signature.
1726         * config/sh/sh.opt (-mfdpic): New option.
1727         * doc/install.texi (Options specification): Document --enable-fdpic.
1728         * doc/invoke.texi (SH Options): Document -mfdpic.
1731 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
1733         PR tree-optimization/65963
1734         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some LSHIFT_EXPRs
1735         as equivalent MULT_EXPRs.
1737 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1739         PR target/67929
1740         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1741         * config/arm/constraints.md (Dp): Update callsite.
1742         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1744 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1746         * builtins.c (fold_builtin_load_exponent): Rename to...
1747         (fold_const_builtin_load_exponent): ...this and only handle
1748         constant arguments.
1749         (fold_builtin_2): Update accordingly.
1750         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1752 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1754         * builtins.c (fold_builtin_logb): Rename to...
1755         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1756         (fold_builtin_significand): Rename to...
1757         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1758         (fold_builtin_1): Update accordingly.
1760 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1762         * builtins.c (fold_builtin_fmin_fmax): Delete.
1763         (fold_builtin_2): Handle constant fmin and fmax arguments here.
1764         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1766 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
1768         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1769         for register extension into sign and zero register extension.
1770         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
1771         for sign and zero register extension.
1772         (cortexa57_addrcost_table): Likewise.
1773         (xgene1_addrcost_table): Likewise.
1775 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1777         * fold-const.c (fold_minmax): Delete.
1778         (fold_binary_loc): Don't call it.
1779         * match.pd: Add rules previously handled by fold_minmax.
1781 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1783         * builtins.c (fold_builtin_fma): Remove constant handling.
1784         (fold_builtin_3): Handle constant fma arguments here.
1786 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1788         * builtins.c (fold_builtin_fabs): Remove constant handling.
1789         (fold_builtin_abs): Likewise.
1791 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1793         * builtins.c (fold_builtin_copysign): Delete.
1794         (fold_builtin_2): Handle constant copysign arguments here.
1795         * match.pd: Add rules previously handled by fold_builtin_copysign.
1797 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1799         * builtins.c (fold_builtin_signbit): Delete.
1800         (fold_builtin_2): Handle constant signbit arguments here.
1801         * match.pd: Add rules previously handled by fold_builtin_signbit.
1803 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1805         * match.pd: Handle sqrt(x) cmp 0 specially.
1807 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
1809         * tree-vect-generic.c (expand_vector_operations_1): Check
1810         optab type before using it.
1812 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1814         * config/aarch64/aarch64-protos.h
1815         (struct tune_params): Add autoprefetcher_model field.
1816         * config/aarch64/aarch64.c: Include params.h
1817         (generic_tunings): Specify autoprefetcher_model value.
1818         (cortexa53_tunings): Likewise.
1819         (cortexa57_tunings): Likewise.
1820         (cortexa72_tunings): Likewise.
1821         (thunderx_tunings): Likewise.
1822         (xgene1_tunings): Likewise.
1823         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
1824         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
1825         (aarch64_override_options_internal): Set
1826         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
1828 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1830         * builtins.c (fold_builtin_exponent): Delete.
1831         (fold_builtin_2): Handle constant expN arguments here.
1832         * match.pd: Fold expN(logN(x)) -> x.
1834 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1836         * builtins.c (fold_builtin_powi): Delete.
1837         (fold_builtin_2): Handle constant powi arguments here.
1838         * match.pd: Add rules previously handled by fold_builtin_powi.
1840 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1842         * builtins.c (fold_builtin_pow): Delete in favor of...
1843         (fold_const_builtin_pow): ...this new function.  Only handle constant
1844         arguments.
1845         (fold_builtin_2): Update accordingly.
1846         * match.pd: Add rules previously handled by fold_builtin_pow.
1848 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1850         * builtins.c (fold_builtin_hypot): Delete.
1851         (fold_builtin_2): Handle constant hypot arguments here.
1852         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
1853         hypot(x, x) to fabs(x)*sqrt(2).
1855 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
1857         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
1858         instead of make_ssa_name if not yet in SSA form.
1860 2015-10-27  Richard Biener  <rguenther@suse.de>
1862         * cfg.c (free_edge): Add function argument and use it instead of cfun.
1863         (clear_edges): Likewise.
1864         * cfg.h (clear_edges): Adjust prototype.
1865         * cfgexpand.c (pass_expand::execute): Adjust.
1866         * cfgloop.c (release_recorded_exits): Add function argument and use
1867         it instead of cfun.
1868         * cfgloop.h (release_recorded_exits): Adjust prototype.
1869         (loops_state_satisfies_p): Add overload with function argument.
1870         (loops_state_set): Likewise.
1871         (loops_state_clear): Likewise.
1872         (struct loop_iterator): Add function argument to constructor
1873         and iterator and use it instead of cfun.
1874         (FOR_EACH_LOOP_FN): New macro.
1875         (loop_optimizer_finalize): Add overload with function argument.
1876         * loop-init.c (loop_optimizer_init): Adjust.
1877         (fix_loop_structure): Likewise.
1878         (loop_optimizer_finaliz): Add function argument and use it
1879         instead of cfun.
1880         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
1881         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
1882         * cgraph.c (release_function_body): Do not push/pop cfun.
1883         * final.c (rest_of_clean_state): Adjust.
1884         * graphite.c (graphite_finalize): Likewise.
1885         * tree-ssa-copy.c (fini_copy_prop): Likewise.
1886         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1887         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
1888         (tree_unroll_loops_completely): Likewise.
1889         (pass_complete_unrolli::execute): Likewise.
1890         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
1891         Add function argument and use it instead of cfun.
1892         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
1893         Adjust prototype.
1894         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
1895         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
1896         instead of cfun.
1897         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
1898         * tree-ssanames.c (fini_ssanames): Add function argument and use it
1899         instead of cfun.
1900         * tree-ssanames.c (fini_ssanames): Adjust prototype.
1901         * tree-vrp.c (execute_vrp): Adjust.
1902         * value-prof.c (free_histograms): Add function argument and use it
1903         instead of cfun.
1904         * value-prof.h (free_histograms): Adjust prototype.
1906 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
1908         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
1909         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
1910         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
1912 2015-10-27  Tom de Vries  <tom@codesourcery.com>
1914         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
1915         field_type.
1917 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
1919         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
1920         (inv_can_prop_to_addr_use): New function.
1921         (record_use): Call can_prop_to_addr_uses, set the new field.
1922         (get_inv_cost): Count cost if inv can't be propagated into its
1923         address uses.
1925 2015-10-26  Doug Evans  <dje@google.com>
1927         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
1929 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
1931         * match.pd (fold_widened_comparison): Apply simplifications to all
1932         integral types.
1934 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
1936         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
1937         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
1938         * doc/tm.texi: Regenerated.
1939         * reorg.c (dbr_schedule): Use new hook.
1940         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
1942 2015-10-26  Jeff Law  <law@redhat.com>
1944         PR tree-optimization/68013
1945         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1946         Make sure the first block in the path is in VISITED_BBs.
1948 2015-10-26  Richard Biener  <rguenther@suse.de>
1949         Dominik Vogt  <vogt@linux.vnet.ibm.com>
1951         PR middle-end/67443
1952         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
1953         Properly prune ref->ref for accesses outside of ref.
1955 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
1957         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
1958         new statements to be inserted if inplace.  Allow calls to have
1959         nonempty sequences.
1961 2015-10-26  Richard Biener  <rguenther@suse.de>
1963         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
1964         (do_valueize): New function.
1965         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
1966         replace_uses_by.
1967         * tree-ssa-threadedge.c: Remove builtins.h include, include
1968         gimple-fold.h
1969         (fold_assignment_stmt): Remove.
1970         (threadedge_valueize): New function.
1971         (record_temporary_equivalences_from_stmts): Use
1972         gimple_fold_stmt_to_constant_1, note additional cleanup
1973         opportunities.
1975 2015-10-26  Richard Biener  <rguenther@suse.de>
1977         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
1978         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
1980 2015-10-26  Alan Hayward <alan.hayward@arm.com>
1982         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
1983         VEC_COND_EXPR types.
1985 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1987         * auto-inc-dec.c (insert_move_insn_before): Delete.
1988         (attempt_change): Remember to cost the simple move in the
1989         FORM_PRE_ADD and FORM_POST_ADD cases.
1991 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1993         PR target/68091
1994         * config/sh/sh.c (sh_vector_mode_supported_p): Use
1995         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
1997 2015-10-26  Tom de Vries  <tom@codesourcery.com>
1999         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
2000         factored out of ...
2001         (intra_create_variable_infos): ... here.
2003 2015-10-26  Tom de Vries  <tom@codesourcery.com>
2005         * tree-ssa-structalias.c (intra_create_variable_infos): Add
2006         restrict_pointer_p and recursive_restrict_p variables.
2008 2015-10-26  Tom de Vries  <tom@codesourcery.com>
2010         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
2011         get_vi_for_tree call.
2013 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2015         PR middle-end/67989
2016         * optabs.c (expand_atomic_compare_and_swap): Handle case when
2017         ptarget_oval or ptarget_bool are const0_rtx.
2019 2015-10-26  Christian Bruel  <christian.bruel@st.com>
2021         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2022         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
2023         * cp/method.c (implicitly_declare_fn): Likewise.
2024         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
2025         * java/class.c (add_method_1): Likewise.
2027 2015-10-26  Richard Biener  <rguenther@suse.de>
2029         * alloc-pool.h (base_pool_allocator): Use placement new.
2030         (base_pool_allocator::remove): Likewise.  Compute size outside of
2031         flag_checking.
2033 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2035         * builtins.c (do_real_to_int_conversion): New function.
2036         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
2037         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
2038         arguments here.
2039         * match.pd: Add rules previously handled by fold_fixed_mathfn
2040         and fold_builtin_int_roundingfn.
2042 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
2044         * match.pd: Use macros to define built-in operator lists.
2046 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
2047             Richard Biener  <rguenther@suse.de>
2049         * genmatch.c (dt_simplify::gen): Skip captures that are
2050         part of the result.
2051         (parser::parse_expr): Allow captures in results too.
2052         * builtins.c (fold_builtin_cexp): Delete.
2053         (fold_builtin_1): Handle constant cexp arguments here.
2054         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
2056 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
2058         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
2059         conditional compilation.
2060         (base_pool_allocator::remove): Use flag_checking.
2062 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
2064         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
2066         PR middle-end/68079
2067         * dojump.c (do_compare_and_jump): Canonicalize both function and
2068         method types.
2070 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
2072         PR target/68084
2073         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
2074         for =@ccae.
2076 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2078         PR ipa/pr67600
2079         * ipa-polymorphic-call.c
2080         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
2081         instance offset with offset of outer type.
2083 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2085         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
2087 2015-10-23  Caroline Tice  <cmtice@google.com>
2089         (from Richard Biener
2090         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
2091         call to iterative_hash_host_wide_int.
2093 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
2095         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
2096         Define as yes.
2098 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2100         * tree-vect-generic.c (expand_vector_operations_1): Check
2101         optab exists before use it.
2103 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2105         * tree-vect-generic.c (expand_vector_condition): Avoid
2106         uninitialized variable warning.
2108 2015-10-23  Jeff Law  <law@redhat.com>
2110         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
2111         here.  Instead...
2112         (execute_todo): Call it here.
2113         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
2114         statistics
2115         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
2117 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
2118             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2120         * config.gcc (enable_secureplt): Add *-linux*-musl*.
2122 2015-10-23  Jeff Law  <law@redhat.com>
2124         PR tree-optimization/67830
2125         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
2126         Explicitly verify the mask has no bits outside the type of
2127         the innermost operands.
2129 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
2130             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2132         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2133         (MUSL_DYNAMIC_LINKER64): Define.
2134         (GNU_USER_DYNAMIC_LINKER32): Update.
2135         (GNU_USER_DYNAMIC_LINKER64): Update.
2136         (CHOOSE_DYNAMIC_LINKER): Update.
2138         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
2139         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
2140         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2141         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2142         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2143         (CHOOSE_DYNAMIC_LINKER): Update.
2144         (INCLUDE_DEFAULTS): Redefine.
2146         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
2148 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2150         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
2151         comparing addresses.
2153 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
2155         * fold-const.c (operand_equal_p): Handle matching of vector
2156         constructors.
2158 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
2160         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
2162 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
2163             Andrew Pinski  <apinski@cavium.com>
2165         PR rtl-optimization/67736
2166         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
2167         of gen_lowpart.
2169 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2171         PR middle-end/68066
2172         * tree.c (build_truth_vector_type): Support BLK mode
2173         returned for boolean vector.
2175 2015-10-23  Alan Hayward <alan.hayward@arm.com>
2177         PR tree-optimization/65947
2178         * tree-vect-loop.c
2179         (vect_is_simple_reduction_1): Find condition reductions.
2180         (vect_model_reduction_cost): Add condition reduction costs.
2181         (get_initial_def_for_reduction): Add condition reduction initial var.
2182         (vect_create_epilog_for_reduction): Add condition reduction epilog.
2183         (vectorizable_reduction): Condition reduction support.
2184         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
2185         * doc/sourcebuild.texi (Vector-specific attributes): Document
2186         vect_max_reduc
2188 2015-10-23  Richard Biener  <rguenther@suse.de>
2190         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
2191         and builtins.def.
2193 2015-10-23  Richard Biener  <rguenther@suse.de>
2194             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2196         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
2197         into (A ^ B) - B to match.pd
2198         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
2200         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
2201         New simplifier.
2202         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
2203         New simplifier.
2204         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
2205         New simplifier.
2206         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
2207         New simplifier.
2208         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
2209         INTEGER_CST@1)): New simplifier.
2211 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
2213         * builtins.c (integer_valued_real_p): Move to fold-const.c.
2214         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
2215         (fold_builtin_ceil, fold_builtin_round): Delete.
2216         (fold_builtin_1): Handle constant trunc, floor, ceil and round
2217         arguments here.
2218         * convert.c (convert_to_real): Remove narrowing of rounding
2219         functions.
2220         * fold-const.h (integer_valued_real_unary_p)
2221         (integer_valued_real_binary_p, integer_valued_real_call_p)
2222         (integer_valued_real_single_p, integer_valued_real_p): Declare.
2223         * fold-const.c (tree_single_nonnegative_warnv_p): Move
2224         name_registered_for_update_p check to SSA_NAME case statement.
2225         Don't call tree_simple_nonnegative_warnv_p for SSA names.
2226         (integer_valued_real_unary_p, integer_valued_real_binary_p)
2227         (integer_valued_real_call_p, integer_valued_real_single_p)
2228         (integer_valued_real_invalid_p): New functions.
2229         (integer_valued_real_p): Move from fold-const.c and rework
2230         to call the functions above.  Handle SSA names.
2231         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
2232         * gimple-fold.c (gimple_assign_integer_valued_real_p)
2233         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
2234         (gimple_stmt_integer_valued_real_p): New functions.
2235         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
2236         Fold f(x)->x for the same f if x is known to be integer-valued.
2237         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
2238         the result.  Canonicalize floor(x) as trunc(x) if x is
2239         nonnegative.
2241 2015-10-23  Tom de Vries  <tom@codesourcery.com>
2243         * tree-ssa-structalias.c (intra_create_variable_infos): Use
2244         make_constraint_from.
2246 2015-10-23  Tom de Vries  <tom@codesourcery.com>
2248         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
2249         setting of is_full_var in case of a single field.
2251 2015-10-22  Martin Sebor  <msebor@redhat.com>
2253         PR driver/68043
2254         * config/i386/i386.opt: Add missing periods to the ends of sentences.
2255         * config/msp430/msp430.opt: Same.
2257 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
2259         * doc/extend.exp (Global Register Variables): Rewrite.
2261 2015-10-22  Jeff Law  <law@redhat.com>
2263         * genattrtab.c (main): If we do not have any annul-true or annul-false
2264         slots, then write out a dummy eligible_for_annul_true or
2265         eligible_for_annul_false as needed.
2267 2015-10-22  Nick Clifton  <nickc@redhat.com>
2269         * config/msp430/msp430.opt: Add -msilicon-errata and
2270         -msilicon-errata-warn.
2271         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
2272         assembler.
2273         * doc/invoke.texi: Document new options.
2275 2015-10-22  Richard Biener  <rguenther@suse.de>
2277         PR tree-optimization/58497
2278         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
2279         (expand_vector_operations_1): Use it.  Lower operations on
2280         all uniform vectors to scalar operations if the HW supports it.
2282 2015-10-22  Richard Biener  <rguenther@suse.de>
2284         PR tree-optimization/19049
2285         PR tree-optimization/65962
2286         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
2287         to strided accesses if single-element interleaving doesn't work.
2289 2015-10-22  Richard Biener  <rguenther@suse.de>
2291         PR middle-end/68046
2292         PR middle-end/61893
2293         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
2294         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
2295         (expand_unop): Likewise.
2297 2015-10-22  Richard Biener  <rguenther@suse.de>
2299         * fold-const.c (fold_addr_of_array_ref_difference): Properly
2300         convert operands before folding a MINUS_EXPR.
2301         (fold_binary_loc): Move simplification of MINUS_EXPR on
2302         converted POINTER_PLUS_EXPRs ...
2303         * match.pd: ... here.
2305 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2307         * builtins.c (fold_builtin_tan): Delete.
2308         (fold_builtin_1): Handle constant tan arguments here.
2309         * match.pd: Simplify (tan (atan x)) to x.
2311 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
2313         * builtins.c (fold_builtin_cproj): Delete.
2314         (fold_builtin_1): Handle constant arguments here.
2315         (build_complex_cproj): Move and rename to...
2316         * tree.c: (build_complex_inf): ...this.
2317         * tree.h (build_complex_inf): Declare.
2318         * match.pd: Fold cproj(x)->x if x has no infinity.
2319         Use build_complex_inf for existing cproj rules.
2321 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2323         PR target/68015
2324         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
2325         already have a comparison result.
2327 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2329         PR target/63304
2330         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
2331         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
2332         (aarch64_classify_address): Likewise.
2333         (aarch64_secondary_reload): Likewise.
2334         (aarch64_override_options_after_change_1): Adjust.
2335         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2336         Use aarch64_nopcrelative_literal_loads.
2337         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2338         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2339         Declare.
2341 2015-10-21  Martin Sebor  <msebor@redhat.com>
2343         PR driver/68043
2344         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
2345         (print_filtered_help): Reference aliased option's name and encourage
2346         readers to use it in preference to the alias if the former is not
2347         documented.  Mention when using an option is diagnosed.
2348         * gcc.c (display_help): End each sentence with a period.
2350         * common.opt: End each sentence that describes an option with
2351         a period.
2352         * config/aarch64/aarch64.opt: Same.
2353         * config/alpha/alpha.opt: Same.
2354         * config/arc/arc.opt: Same.
2355         * config/arm/arm.opt: Same.
2356         * config/avr/avr.opt: Same.
2357         * config/bfin/bfin.opt: Same.
2358         * config/c6x/c6x.opt: Same.
2359         * config/cr16/cr16.opt: Same.
2360         * config/cris/cris.opt: Same.
2361         * config/cris/linux.opt: Same.
2362         * config/darwin.opt: Same.
2363         * config/epiphany/epiphany.opt: Same.
2364         * config/fr30/fr30.opt: Same.
2365         * config/frv/frv.opt: Same.
2366         * config/ft32/ft32.opt: Same.
2367         * config/g.opt: Same.
2368         * config/h8300/h8300.opt: Same.
2369         * config/i386/cygming.opt: Same.
2370         * config/i386/djgpp.opt: Same.
2371         * config/i386/i386.opt: Same.
2372         * config/i386/interix.opt: Same.
2373         * config/i386/mingw-w64.opt: Same.
2374         * config/i386/mingw.opt: Same.
2375         * config/ia64/ia64.opt: Same.
2376         * config/ia64/ilp32.opt: Same.
2377         * config/iq2000/iq2000.opt: Same.
2378         * config/linux.opt: Same.
2379         * config/lm32/lm32.opt: Same.
2380         * config/lynx.opt: Same.
2381         * config/m32c/m32c.opt: Same.
2382         * config/m32r/m32r.opt: Same.
2383         * config/m68k/ieee.opt: Same.
2384         * config/m68k/m68k.opt: Same.
2385         * config/mcore/mcore.opt: Same.
2386         * config/mep/mep.opt: Same.
2387         * config/microblaze/microblaze.opt: Same.
2388         * config/mips/mips.opt: Same.
2389         * config/mmix/mmix.opt: Same.
2390         * config/mn10300/mn10300.opt: Same.
2391         * config/moxie/moxie.opt: Same.
2392         * config/msp430/msp430.opt: Same.
2393         * config/nios2/elf.opt: Same.
2394         * config/nios2/nios2.opt: Same.
2395         * config/nvptx/nvptx.opt: Same.
2396         * config/pa/pa-hpux.opt: Same.
2397         * config/pa/pa-hpux1010.opt: Same.
2398         * config/pa/pa-hpux1111.opt: Same.
2399         * config/pa/pa-hpux1131.opt: Same.
2400         * config/pa/pa.opt: Same.
2401         * config/pa/pa64-hpux.opt: Same.
2402         * config/pdp11/pdp11.opt: Same.
2403         * config/rl78/rl78.opt: Same.
2404         * config/rs6000/476.opt: Same.
2405         * config/rs6000/aix64.opt: Same.
2406         * config/rs6000/darwin.opt: Same.
2407         * config/rs6000/linux64.opt: Same.
2408         * config/rs6000/rs6000.opt: Same.
2409         * config/rs6000/sysv4.opt: Same.
2410         * config/s390/s390.opt: Same.
2411         * config/s390/tpf.opt: Same.
2412         * config/sh/sh.opt: Same.
2413         * config/sol2.opt: Same.
2414         * config/sparc/long-double-switch.opt: Same.
2415         * config/sparc/sparc.opt: Same.
2416         * config/spu/spu.opt: Same.
2417         * config/stormy16/stormy16.opt: Same.
2418         * config/tilegx/tilegx.opt: Same.
2419         * config/tilepro/tilepro.opt: Same.
2420         * config/v850/v850.opt: Same.
2421         * config/vax/vax.opt: Same.
2422         * config/visium/visium.opt: Same.
2423         * config/vms/vms.opt: Same.
2424         * config/vxworks.opt: Same.
2425         * config/xtensa/xtensa.opt: Same.
2427 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2428             Sebastian Pop  <s.pop@samsung.com>
2430         * graphite-scop-detection.c (parameter_index_in_region): Update call to
2431         invariant_in_sese_p_rec.
2432         * graphite-sese-to-poly.c (extract_affine): Same.
2433         * sese.c (invariant_in_sese_p_rec): Pass in an extra
2434         parameter has_vdefs.
2435         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
2436         variable depends on virtual definitions in the current region.
2437         * sese.h (invariant_in_sese_p_rec): Update declaration.
2439 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2440             Sebastian Pop  <s.pop@samsung.com>
2442         * graphite-scop-detection.c (build_scops): Do not handle scops
2443         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
2444         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
2446 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
2448         * config.in: Regenerate.
2449         * configure: Regenerate.
2450         * configure.ac (CHECKING_P): Define.
2451         * system.h: Use CHECKING_P.
2453 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2455         PR ipa/67056
2456         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
2457         is negative we don't know the type.
2458         (check_stmt_for_type_change): Skip constructors of non-polymorphic
2459         types as those won't help devirutalization.
2461 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2463         * fold-const.c (operand_equal_p): Add code matching empty constructors.
2465 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
2467         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
2468         comments.
2469         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
2470         Add comments on sign of the result.
2471         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
2472         Recurse on operand #1 instead of operand #0.
2473         <CEIL_MOD_EXPR>: Do not recurse.
2474         <ROUND_MOD_EXPR>: Likewise.
2476 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2478         * cfgrtl.c (pass_free_cfg::execute): Adjust.
2479         * final.c (dbr_sequence_length): Always define.
2480         (shorten_branches): Adjust.
2481         * genattr-common.c (main): Always define DELAY_SLOTS.
2482         * genattr.c (main): Unconditionally declare functions and define
2483         macros related to delay slots.
2484         * genattrtab.c (write_eligible_delay): Adjust.
2485         (main): Always write out delay slot functions.
2486         * opts.c (default_options_table): Adjust.
2487         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
2488         (redirect_with_delay_list_safe_p): Likewise.
2489         (fill_simple_delay_slots): Likewise.
2490         (fill_slots_from_thread): Likewise.
2491         (make_return_insns): Likewise.
2492         (dbr_schedule): Likewise.
2493         (rest_of_handle_delay_slots): Likewise.
2494         (pass_delay_slots::gate): Likewise.
2495         * toplev.c (process_options): Likewise.
2497 2015-10-21  Richard Henderson  <rth@redhat.com>
2499         * targhooks.c (default_addr_space_pointer_mode): Remove check
2500         for generic address space.
2501         (default_addr_space_address_mode): Likewise.
2502         (default_addr_space_valid_pointer_mode): Likewise.
2503         (default_addr_space_legitimate_address_p): Likewise.
2504         (default_addr_space_legitimize_address): Likewise.
2505         * target.def (addr_space.pointer_mode): Update documentation
2506         of default behavior.
2507         (addr_space.address_mode): Likewise.
2508         * tm.texi: Update.
2510         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
2511         address spaces.
2513 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
2515         * builtins.c (fold_builtin_cabs): Delete.
2516         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
2517         * match.pd: Add rules previously handled by fold_builtin_cabs.
2519 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
2521         * fold-const.h (fold_strip_sign_ops): Delete.
2522         * fold-const.c (fold_strip_sign_ops): Likewise.
2523         (fold_unary_loc, fold_binary_loc): Remove calls to it.
2524         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2525         (fold_builtin_ccos): Delete.
2526         (fold_builtin_pow): Don't call fold_strip_sign_ops.
2527         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2528         Remove fndecl argument.
2529         (fold_builtin_1): Update calls accordingly.  Handle constant
2530         cos, cosh, ccos and ccosh here.
2532 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
2534         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2535         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2536         * common.opt (fssa-backprop): New option.
2537         * fold-const.h (negate_mathfn_p): Declare.
2538         * fold-const.c (negate_mathfn_p): Make public.
2539         * timevar.def (TV_TREE_BACKPROP): New.
2540         * tree-pass.h (make_pass_backprop): Declare.
2541         * passes.def (pass_backprop): Add.
2542         * gimple-ssa-backprop.c: New file.
2544 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2545             Sebastian Pop  <s.pop@samsung.com>
2547         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2548         Do not call create_empty_if_region_on_edge when cond_expr is true.
2549         (translate_isl_ast_node_for): Check whether a guard has been generated.
2551 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2553         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2554         (operator=): Removed.
2555         (dr_info): Make alias_set number the last argument with default
2556         value of invalid_alias_set.
2557         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2558         of dr_info.
2559         (rewrite_reductions_out_of_ssa): Iterate only through the
2560         basic blocks which are inside region.
2561         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2562         * sese.h (struct sese_l): Removed assignment operator.
2563         (split_region_for_bb): Removed dead code.
2565 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
2567         * graphite-poly.h (struct dr_info): Removed conversion constructor.
2568         (struct scop): Renamed scop::region to scop::scop_info
2569         (scop_set_region): Same.
2570         (SCOP_REGION): Removed
2571         (SCOP_CONTEXT): Removed.
2572         (POLY_SCOP_P): Removed.
2573         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2574         Rename scop->region to scop->scop_info.
2575         (add_parameters_to_ivs_params): Same.
2576         (graphite_regenerate_ast_isl): Same.
2577         * graphite-poly.c (new_scop): Same.
2578         (free_scop): Same.
2579         (print_scop_params): Same.
2580         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2581         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2582         (dot_all_scops_1): Rename scop->region to scop->scop_info.
2583         (scop_detection::nb_pbbs_in_loops): Same.
2584         (find_scop_parameters): Same.
2585         (try_generate_gimple_bb): Same.
2586         (gather_bbs::before_dom_children): Same.
2587         (gather_bbs::after_dom_children): Same.
2588         (build_scops): Same.
2589         * graphite-sese-to-poly.c (build_scop_scattering): Same.
2590         (extract_affine_chrec): Same.
2591         (extract_affine): Same.
2592         (set_scop_parameter_dim): Same.
2593         (build_loop_iteration_domains): Same.
2594         (create_pw_aff_from_tree): Same.
2595         (add_param_constraints): Same.
2596         (build_scop_iteration_domain): Same.
2597         (build_scop_drs): Same.
2598         (analyze_drs_in_stmts): Same.
2599         (insert_out_of_ssa_copy_on_edge): Same.
2600         (rewrite_close_phi_out_of_ssa):Same.
2601         (rewrite_reductions_out_of_ssa):Same.
2602         (handle_scalar_deps_crossing_scop_limits):Same.
2603         (rewrite_cross_bb_scalar_deps):Same.
2604         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2605         (build_poly_scop):Same.
2606         (build_alias_set): Use pointer to dr_info.
2607         * graphite.c (print_graphite_scop_statistics):
2608         (graphite_transform_loops):
2609         * sese.h (struct sese_l): Remove conversion constructor.
2611 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
2613         PR middle-end/67966
2614         * tree.c (verify_type): Verify that TYPE_MODE match
2615         between TYPE_CANONICAL and type.
2616         * expr.c (store_expr_with_bounds): Revert my previous change.
2617         * expmed.c (store_bit_field_1): Revert prevoius change.
2618         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2619         to match for all types.
2621 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
2623         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2624         nesting.
2626 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
2628         * doc/tm.texi: Regenerated.
2629         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2630         * stor-layout.c (layout_type): Use mode to get vector mask size.
2631         * target.def (get_mask_mode): New.
2632         * targhooks.c (default_get_mask_mode): New.
2633         * targhooks.h (default_get_mask_mode): New.
2634         * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
2635         for boolean vector.
2636         * tree.c (MAX_BOOL_CACHED_PREC): New.
2637         (nonstandard_boolean_type_cache): New.
2638         (build_nonstandard_boolean_type): New.
2639         (make_vector_type): Vector mask has no canonical type.
2640         (build_truth_vector_type): New.
2641         (build_same_sized_truth_vector_type): New.
2642         (truth_type_for): Support vector masks.
2643         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2644         (build_truth_vector_type): New.
2645         (build_same_sized_truth_vector_type): New.
2646         (build_nonstandard_boolean_type): New.
2647         * tree-cfg.c (verify_gimple_comparison) Require boolean
2648         vector type for vector comparison.
2649         (verify_gimple_assign_ternary): Likewise.
2650         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2651         condition operand.
2652         * tree-vect-stmts.c (vectorizable_condition): Use boolean
2653         vector type for vector comparison.
2654         * tree-vect-generic.c (elem_op_func): Add new operand to hold
2655         vector type.
2656         (do_unop): Adjust to modified function type.
2657         (do_binop): Likewise.
2658         (do_plus_minus): Likewise.
2659         (do_negate); Likewise.
2660         (expand_vector_piecewise): Likewise.
2661         (do_cond): Likewise.
2662         (do_compare): Use comparison instead of condition.
2663         (expand_vector_divmod): Use boolean vector type for comparison.
2664         (expand_vector_operations_1): Skip scalar mask operations.
2666 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
2668         * omp-low.c (simd_clone_create): Set in_other_partition
2669         for created clones.
2671 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
2673         * doc/extend.exp (Local Register Variables): Rewrite.
2675 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
2677         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2678         and x*x in cases where the operands are sign ops.  Extend these
2679         rules to handle copysign as a sign op (including for cos, cosh
2680         and pow, which already treated negate and abs as sign ops).
2682 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
2684         PR target/68018
2685         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2686         for 64-bit MS_ABI targets also when default incoming stack boundary
2687         is overriden.
2689 2015-10-21  Richard Biener  <rguenther@suse.de>
2691         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2692         cond stmts, enhanced and split out from ...
2693         (vn_phi_eq): ... here.
2695 2015-10-21  Richard Biener  <rguenther@suse.de>
2697         PR middle-end/68031
2698         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2699         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2700         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
2701         make sure they are not registered for update.
2703 2015-10-21  Richard Biener  <rguenther@suse.de>
2705         PR tree-optimization/68026
2706         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2707         unsigned VARYING values.
2709 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
2711         * asan.c (asan_emit_stack_protection): Don't pass local stack to
2712         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2713         NULL and use local stack than.
2714         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2715         in addition to __asan_init.
2716         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2717         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2718         * asan.h (asan_intercepted_p): Handle new string builtins.
2719         * ubsan.c (ubsan_use_new_style_p): New function.
2720         (ubsan_instrument_float_cast): If location is unknown, assign
2721         input_location to loc. Propagate loc to ubsan_create_data if
2722         ubsan_use_new_style_p returned true.
2724 2015-10-21  Jeff Law  <law@redhat.com>
2726         * Makefile.in (OBJS): Remove sched-vis.c
2727         * sched-vis.c: Removed.  Code moved into...
2728         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
2729         * rtl.h: Remove prototypes for functions now living in print-rtl.c
2730         * print-rtl.h Add prototypes for new functions in print-rtl.c.
2731         * auto-inc-dec.c: Include print-rtl.h
2732         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2733         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2735         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2736         ATTRIBUTE_UNUSED.
2738 2015-10-21  Richard Biener  <rguenther@suse.de>
2739             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2741         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2742         to match.pd.
2743         Move (a * (1 << b)) is (a << b) to match.pd.
2744         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2745         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2746         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2748         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2749         New simplifier.
2750         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2751         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2752         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2753         : New simplifier.
2754         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2755         New simplifier.
2756         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2758 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
2759             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2760             Alan Modra  <amodra@gmail.com>
2762         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2763         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2764         (LINK_SPEC): Add %(link_secure_plt).
2765         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2766         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2768 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
2769             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2771         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
2772         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
2774 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2776         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
2777         New function.
2778         (fusion_load_store): Use it.
2779         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
2780         ldp and stp in VD modes.
2781         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
2782         (store_pair<mode>, VD): Likewise.
2784 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
2786         PR rtl-optimization/67609
2787         * lra-splill.c (lra_final_code_change): Don't remove all
2788         sub-registers.
2790 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2792         * simplify-rtx.c (simplify_binary_operation): If either operand was
2793         a constant pool reference use them if all other simplifications failed.
2795 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2797         * config/aarch64/aarch64.md
2798         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
2799         * config/aarch64/aarch64-simd.md
2800         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
2801         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
2802         (aarch64_fpconst_pow_of_2): New function.
2803         (aarch64_vec_fpconst_pow_of_2): Likewise.
2804         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
2805         prototype.
2806         (aarch64_vec_fpconst_pow_of_2): Likewise.
2807         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
2808         (aarch64_fp_vec_pow2): Likewise.
2810 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
2812         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
2813         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
2814         * config/alpha/alpha.c (alpha_function_arg_advance): Update
2815         ALPHA_ARG_SIZE usage.
2816         (alpha_arg_partial_bytes): Ditto.
2818 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2820         PR target/66810
2821         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
2822         error_mark_node decls.
2824 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2826         PR target/67963
2827         PR target/67985
2828         * common/config/i386/i386-common.c (ix86_handle_option): Remove
2829         OPT_miamcu handling.
2830         * config/i386/i386.c (PTA_NO_80387): New macro.
2831         (processor_alias_table): Add PTA_NO_80387 to lakemont.
2832         (ix86_option_override_internal): Update MASK_80387 from
2833         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
2834         SSE math only if 80387 is supported.  Don't change
2835         MASK_FLOAT_RETURNS.
2836         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
2837         80387 is supported.
2838         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
2839         if TARGET_80387 is true and TARGET_IAMCU is false.
2840         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
2841         is true and TARGET_IAMCU_P is false.
2843 2015-10-20  Richard Biener  <rguenther@suse.de>
2845         PR tree-optimization/68017
2846         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
2848 2015-10-20  Martin Liska  <mliska@suse.cz>
2850         * cgraphclones.c (cgraph_node::create_virtual_clone):
2851         Verify cgraph_node.local.versionable instead of calling
2852         tree_versionable_function_p.
2853         * ipa-cp.c (determine_versionability): Save the information
2854         to ipa_node_params summary.
2855         (ipcp_versionable_function_p): Use it.
2856         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
2857         (ipcp_generate_summary): Do not compute cgraph_node
2858         versionability.
2859         * ipa-inline-analysis.c (inline_generate_summary): Compute
2860         versionability for all cgraph nodes.
2861         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
2862         ipa_node_params::versionability.
2863         * ipa-prop.h (struct ipa_node_params): Declare it.
2865 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2867         PR other/67868
2868         * varasm.c (assemble_variable): Move special vtv handling to..
2869         (handle_vtv_comdat_sections): .. here. New function.
2870         (output_object_block): Handle vtv sections.
2872 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2874         PR target/66912
2875         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
2877 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
2879         * doc/extend.texi: Update documentation WRT inline functions.
2881 2015-10-20  Alan Modra  <amodra@gmail.com>
2883         PR go/66870
2884         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
2885         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
2886         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
2888 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
2890         PR rtl-optimization/66790
2891         * df.h (DF_MIR): New macro.
2892         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
2893         (DF_MIR_INFO_BB): New macro.
2894         (DF_MIR_IN, DF_MIR_OUT): New macros.
2895         (struct df_mir_bb_info): New.
2896         (df_mir): New macro.
2897         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
2898         declarations.
2899         (df_mir_get_bb_info): New.
2900         * df-problems.c (struct df_mir_problem_data): New.
2901         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
2902         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
2903         df_mir_confluence_0, df_mir_confluence_n,
2904         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
2905         df_mir_bottom_dump, df_mir_verify_solution_start,
2906         df_mir_verify_solution_end): New.
2907         (problem_MIR): New.
2908         (df_mir_add_problem, df_mir_simulate_one_insn): New.
2909         * timevar.def (TV_DF_MIR): New.
2910         * ree.c: Include bitmap.h
2911         (add_removable_extension): Add an INIT_REGS parameter.  Use it
2912         to skip zero-extensions that may get an uninitialized register.
2913         (find_removable_extensions): Compute must-initialized registers
2914         using the MIR dataflow problem. Update the call to
2915         add_removable_extension.
2916         (find_and_remove_re): Call df_mir_add_problem.
2918 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
2920         * common/config/mn10300/mn10300-common.c
2921         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
2922         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
2924 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
2926         * doc/extend.texi (Explicit Register Variables): Simplify and
2927         avoid unnecessary and confusion abbreviations.  Update cross
2928         references.
2929         doc/implement-c.tex: Update cross reference.
2931 2015-10-19  Jeff Law  <law@redhat.com>
2933         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
2934         that create irreducible loops unless the path elimiantes a multiway
2935         branch.
2937 2015-10-19  Richard Biener  <rguenther@suse.de>
2939         PR tree-optimization/67975
2940         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
2941         * tree-cfg.c (extract_true_false_controlled_edges): Split out
2942         core worker from ...
2943         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
2944         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
2945         instead of block number for PHIs with two or one args.
2946         (vn_phi_eq): Compare edge predicates of PHIs that are in different
2947         blocks.
2949 2015-10-19  Richard Biener  <rguenther@suse.de>
2951         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
2952         (gimple_stmt_nonnegative_warnv_p): Use it.
2953         * match.pd (CPROJ): New operator list.
2954         (cproj (complex ...)): Move simplifications from ...
2955         * builtins.c (fold_builtin_cproj): ... here.
2957 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2959         * config/i386/i386.c (ix86_expand_vector_move): Use
2960         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
2961         alignment.
2963 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2965         * doc/invoke.texi: Replace @optindex with @opindex.
2967 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
2969         PR target/67995
2970         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
2971         arch= is set,  clear all bits in x_ix86_isa_flags, except for
2972         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
2974 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
2976         PR middle-end/68002
2977         * common.opt (fkeep-static-functions): New option.
2978         * doc/invoke.texi: Document it.
2979         * cgraphunit.c (cgraph_node::finalize_function): Use it.
2981 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2983         * sched-int.h (struct autopref_multipass_data_): Remove offset
2984         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
2985         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
2986         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
2987         (autopref_rank_data): New function.
2988         (autopref_rank_for_schedule): Use it.
2989         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
2991 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
2993         PR other/65800
2994         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
2996 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
2998         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
2999         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
3000         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
3001         (STANDARD_STARTFILE_PREFIX_1): New.
3002         (STANDARD_STARTFILE_PREFIX_2): New.
3004 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
3006         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
3007         (darwin_driver_init): Note a version-min when provided on the c/l.
3008         * config/darwin.h (%darwin_minversion): Remove.
3009         * config/i386/darwin.h: Likewise.
3010         * config/rs6000/darwin.h: Likewise.
3011         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
3012         rather than an arbitrary constant.
3014 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
3016         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
3017         PPC, detect conflicts between -arch and multilib settings.  Detect
3018         and warn about conflicts between multiple -arch definitions.
3020 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
3022         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
3024 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3026         * lra-constraints.c (add_next_usage_insn): Change argument type
3027         from rtx to rtx_insn *.
3029 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
3031         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
3032         for Lakemont.
3034 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
3036         * config/tilepro/gen-mul-tables.cc: Adjust include files.
3037         * config/tilegx/mul-tables.c: Regenerate.
3038         * config/tilepro/mul-tables.c: Regenerate.
3040         * config/tilegx/tilegx-c.c: Adjust include files.
3041         * config/tilegx/tilegx.c: Likewise.
3042         * config/tilepro/tilepro-c.c: Likewise.
3043         * config/tilepro/tilepro.c: Likewise.
3044         * config/aarch64/aarch64-builtins.c: Likewise.
3045         * config/aarch64/aarch64.c: Likewise.
3046         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3047         * config/alpha/alpha.c: Likewise.
3048         * config/arc/arc.c: Likewise.
3049         * config/arm/aarch-common.c: Likewise.
3050         * config/arm/arm-builtins.c: Likewise.
3051         * config/arm/arm-c.c: Likewise.
3052         * config/arm/arm.c: Likewise.
3053         * config/avr/avr-c.c: Likewise.
3054         * config/avr/avr-devices.c: Likewise.
3055         * config/avr/avr-log.c: Likewise.
3056         * config/avr/avr.c: Likewise.
3057         * config/bfin/bfin.c: Likewise.
3058         * config/c6x/c6x.c: Likewise.
3059         * config/cr16/cr16.c: Likewise.
3060         * config/cris/cris.c: Likewise.
3061         * config/darwin-c.c: Likewise.
3062         * config/darwin-driver.c: Likewise.
3063         * config/darwin.c: Likewise.
3064         * config/default-c.c: Likewise.
3065         * config/epiphany/epiphany.c: Likewise.
3066         * config/epiphany/mode-switch-use.c: Likewise.
3067         * config/epiphany/resolve-sw-modes.c: Likewise.
3068         * config/fr30/fr30.c: Likewise.
3069         * config/frv/frv.c: Likewise.
3070         * config/ft32/ft32.c: Likewise.
3071         * config/glibc-c.c: Likewise.
3072         * config/h8300/h8300.c: Likewise.
3073         * config/i386/host-cygwin.c: Likewise.
3074         * config/i386/host-mingw32.c: Likewise.
3075         * config/i386/i386-c.c: Likewise.
3076         * config/i386/i386.c: Likewise.
3077         * config/i386/msformat-c.c: Likewise.
3078         * config/i386/winnt-cxx.c: Likewise.
3079         * config/i386/winnt-stubs.c: Likewise.
3080         * config/i386/winnt.c: Likewise.
3081         * config/ia64/ia64-c.c: Likewise.
3082         * config/ia64/ia64.c: Likewise.
3083         * config/iq2000/iq2000.c: Likewise.
3084         * config/lm32/lm32.c: Likewise.
3085         * config/m32c/m32c-pragma.c: Likewise.
3086         * config/m32c/m32c.c: Likewise.
3087         * config/m32r/m32r.c: Likewise.
3088         * config/mcore/mcore.c: Likewise.
3089         * config/mep/mep-pragma.c: Likewise.
3090         * config/mep/mep.c: Likewise.
3091         * config/microblaze/microblaze-c.c: Likewise.
3092         * config/microblaze/microblaze.c: Likewise.
3093         * config/mips/mips-tables.opt
3094         * config/mips/mips.c: Likewise.
3095         * config/mmix/mmix.c: Likewise.
3096         * config/mn10300/mn10300.c: Likewise.
3097         * config/moxie/moxie.c: Likewise.
3098         * config/msp430/msp430-c.c: Likewise.
3099         * config/msp430/msp430.c: Likewise.
3100         * config/nds32/nds32-cost.c: Likewise.
3101         * config/nds32/nds32-fp-as-gp.c: Likewise.
3102         * config/nds32/nds32-intrinsic.c: Likewise.
3103         * config/nds32/nds32-isr.c: Likewise.
3104         * config/nds32/nds32-md-auxiliary.c: Likewise.
3105         * config/nds32/nds32-memory-manipulation.c: Likewise.
3106         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3107         * config/nds32/nds32-predicates.c: Likewise.
3108         * config/nds32/nds32.c: Likewise.
3109         * config/nios2/nios2.c: Likewise.
3110         * config/nvptx/mkoffload.c: Likewise.
3111         * config/nvptx/nvptx.c: Likewise.
3112         * config/pa/pa.c: Likewise.
3113         * config/pdp11/pdp11.c: Likewise.
3114         * config/rl78/rl78-c.c: Likewise.
3115         * config/rl78/rl78.c: Likewise.
3116         * config/rs6000/host-darwin.c: Likewise.
3117         * config/rs6000/rs6000-c.c: Likewise.
3118         * config/rs6000/rs6000-linux.c: Likewise.
3119         * config/rs6000/rs6000.c: Likewise.
3120         * config/rx/rx.c: Likewise.
3121         * config/s390/s390-c.c: Likewise.
3122         * config/s390/s390.c: Likewise.
3123         * config/sh/sh-c.c: Likewise.
3124         * config/sh/sh-mem.cc: Likewise.
3125         * config/sh/sh.c: Likewise.
3126         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3127         * config/sh/sh_treg_combine.cc: Likewise.
3128         * config/sol2-c.c: Likewise.
3129         * config/sol2-cxx.c: Likewise.
3130         * config/sol2-stubs.c: Likewise.
3131         * config/sol2.c: Likewise.
3132         * config/sparc/sparc-c.c: Likewise.
3133         * config/sparc/sparc.c: Likewise.
3134         * config/spu/spu-c.c: Likewise.
3135         * config/spu/spu.c: Likewise.
3136         * config/stormy16/stormy16.c: Likewise.
3137         * config/v850/v850-c.c: Likewise.
3138         * config/v850/v850.c: Likewise.
3139         * config/vax/vax.c: Likewise.
3140         * config/visium/visium.c: Likewise.
3141         * config/vms/vms-c.c: Likewise.
3142         * config/vms/vms.c: Likewise.
3143         * config/vxworks.c: Likewise.
3144         * config/winnt-c.c: Likewise.
3145         * config/xtensa/xtensa.c: Likewise.
3147 2015-10-16  Christian Bruel  <christian.bruel@st.com>
3149         PR target/67745
3150         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
3151         (FUNCTION_BOUNDARY_P): New macro:
3152         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
3153         New hook.
3154         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
3155         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
3156         * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
3157         * gcc/function.c (allocate_struct_function): Call
3158         relayout_function hook.
3159         * gcc/passes.c (rest_of_decl_compilation): Likewise.
3161 2015-10-16  Christian Bruel  <christian.bruel@st.com>
3163         PR target/67745
3164         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
3165         * config/arm/arm.c (arm_option_override_internal): Call
3166         arm_override_options_after_change_1.
3167         (arm_override_options_after_change): New function.
3168         (arm_override_options_after_change_1): Likewise.
3169         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
3171 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3173         Revert:
3174         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3175         empty constructors.
3177 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3179         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
3180         argument is an ADDR_EXPR.
3182 2015-10-16  Richard Biener  <rguenther@suse.de>
3184         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
3185         and get rid of force_gimple_operand_gsi.
3186         (gimple_fold_builtin_memory_chk): Likewise.
3187         (gimple_fold_builtin_stxcpy_chk): Likewise.
3188         (rewrite_to_defined_overflow): Likewise.
3189         (gimple_convert_to_ptrofftype): New function.
3190         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
3192 2015-10-16  Richard Biener  <rguenther@suse.de>
3194         * tree-nested.h (build_addr): Adjust prototype.
3195         * tree-nested.c (build_addr): Remove context argument and use
3196         mark_addressable.
3197         (get_static_chain): Adjust calls to build_addr.
3198         (convert_nl_goto_reference): Likewise.
3199         (convert_tramp_reference_op): Likewise.
3200         (finalize_nesting_tree_1): Likewise.
3201         * value-prof.c (gimple_ic): Likewise.
3202         * gimple-low.c (lower_builtin_setjmp): Likewise.
3203         * tree-parloops.c (take_address_of): Likewise.
3204         (create_call_for_reduction_1): Likewise.
3205         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
3206         (gimple_gen_ic_func_profiler): Likewise.
3208 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3210         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3211         empty constructors.
3213 2015-10-16  Michael Collison  <michael.collison@linaro.org>
3214             Andrew Pinski <andrew.pinski@caviumnetworks.com>
3216         * match.pd ((x < y) && (x < z) -> x < min (y,z),
3217         (x > y) and (x > z) -> x > max (y,z))
3219 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
3220             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3222         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
3223         (DYNAMIC_LINKER): Renamed to ...
3224         (GLIBC_DYNAMIC_LINKER): This.
3225         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
3227 2015-10-15  Marek Polacek  <polacek@redhat.com>
3229         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
3230         gimple_call_builtin instead of is_gimple_call.
3232 2015-10-15  Richard Biener  <rguenther@suse.de>
3234         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
3236 2015-10-15  Richard Biener  <rguenther@suse.de>
3238         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
3239         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
3240         * tree-vect-loop.c (get_initial_def_for_induction): Drop
3241         use of force_gimple_operand in favor of gimple_build.
3242         Use vect_get_new_ssa_name.
3243         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
3244         (vectorizable_mask_load_store): Likewise.
3245         (vectorizable_call): Likewise.
3246         (vectorizable_store): Likewise.
3247         (vectorizable_load): Likewise.
3248         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
3250 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
3252         PR tree-optimization/67945
3253         * tree-pass.h (PROP_gimple_opt_math): New property flag.
3254         * generic-match-head.c (canonicalize_math_p): New function.
3255         * gimple-match-head.c: Include tree-pass.h.
3256         (canonicalize_math_p): New function.
3257         * match.pd: Group math built-in rules into simplifications
3258         and canonicalizations.  Guard the latter with canonicalize_math_p.
3259         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
3260         PROP_gimple_opt_math property.
3262 2015-10-15  Marek Polacek  <polacek@redhat.com>
3264         PR tree-optimization/67953
3265         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
3267 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
3269         * config.gcc: Recognize "." in architecture base name for AArch64.
3271 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
3273         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
3274         ROUND_UP macro.
3275         * config/mips/mips.c (mips_setup_incoming_varargs): Use
3276         ROUND_DOWN to calculate off.
3277         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
3278         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
3279         rounded_size.
3281 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
3283         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
3285 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
3286             Torvald Riegel  <triegel@redhat.com>
3288         PR target/67281
3289         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
3290         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3291         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
3292         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
3293         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
3294         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3295         trechkpt, treclaim, tsr, ttest): New define_expands.
3296         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3297         __TM_FENCE__ for htm.
3298         * doc/extend.texi: Update documentation for htm builtins.
3300 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
3302         PR target/67967
3303         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
3304         REG_CFA_EXPRESSION to aligned SSE stores.
3306 2015-10-14  Jeff Law  <law@redhat.com>
3308         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
3309         num_threaded_edges for successful FSM threads too.
3311 2015-10-14  Richard Biener  <rguenther@suse.de>
3313         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
3314         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
3315         (vect_get_vec_def_for_operand): Remove unused parameter.
3316         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
3317         (vect_create_epilog_for_reduction): Likewise.
3318         (vectorizable_reduction): Likewise.
3319         (vectorizable_live_operation): Likewise.
3320         * tree-vect-patterns.c (type_conversion_p): Likewise.
3321         (vect_recog_vector_vector_shift_pattern): Likewise.
3322         (check_bool_pattern): Likewise.
3323         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3324         (vect_analyze_slp_cost_1): Likewise.
3325         * tree-vect-stmts.c (process_use): Likewise.
3326         (vect_get_vec_def_for_operand): Do not handle reductions.
3327         (vect_get_vec_defs): Adjust.
3328         (vectorizable_mask_load_store): Likewise.
3329         (vectorizable_call): Likewise.
3330         (vectorizable_simd_clone_call): Likewise.
3331         (vect_get_loop_based_defs): Likewise.
3332         (vectorizable_conversion): Likewise.
3333         (vectorizable_assignment): Likewise.
3334         (vectorizable_shift): Likewise.
3335         (vectorizable_operation): Likewise.
3336         (vectorizable_store): Likewise.
3337         (vectorizable_load): Likewise.
3338         (vect_is_simple_cond): Likewise.
3339         (vectorizable_condition): Likewise.
3340         (vect_is_simple_use): Remove unused parameters.
3341         (vect_is_simple_use_1): Adjust and rename.
3343 2015-10-14  Richard Biener  <rguenther@suse.de>
3345         PR tree-optimization/67915
3346         * match.pd: Handle comparisons of addresses of STRING_CSTs.
3347         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
3348         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
3349         stmt folding in favor of GIMPLE one.
3351 2015-10-14  Marek Polacek  <polacek@redhat.com>
3353         PR tree-optimization/67815
3354         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
3355         (reassociate_bb): Call it.
3357 2015-10-14  Richard Biener  <rguenther@suse.de>
3359         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3360         Reset info at start.
3361         (vect_analyze_group_access_1): Add debug print.
3362         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
3363         (vect_compute_single_scalar_iteration_cost): ... to this.
3364         (vect_analyze_loop_2): Adjust.
3365         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
3366         * tree-vectorizer.h: ... here.
3367         (add_stmt_info_to_vec): Remove.
3368         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
3370 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3372         * targhooks.c (default_target_option_pragma_parse): Do not warn if
3373         called on behalf of "#pragma GCC pop_options".
3375 2015-10-14  Tom de Vries  <tom@codesourcery.com>
3377         * cfganal.c (verify_no_unreachable_blocks): New function.
3378         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
3379         verify_no_unreachable_blocks.
3380         cfganal.h (verify_no_unreachable_blocks): Declare.
3382 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
3384         * common.opt: Add flag_checking.
3385         * system.h (CHECKING_P): Define.
3387 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
3388             Aldy Hernandez  <aldyh@redhat.com>
3389             Ilya Verbin  <ilya.verbin@intel.com>
3391         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
3392         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
3393         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
3394         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
3395         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
3396         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
3397         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
3398         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
3399         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
3400         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
3401         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
3402         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
3403         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
3404         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3405         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
3406         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3407         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3408         (struct cgraph_simd_clone_arg): Adjust comment.
3409         * coretypes.h (struct gomp_ordered): New forward decl.
3410         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
3411         set critical clauses to it.
3412         (gimple_build_omp_ordered): Return gomp_ordered * instead of
3413         gimple *.  Add CLAUSES argument, set ordered clauses to it.
3414         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
3415         GIMPLE_OMP_ORDERED.
3416         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
3417         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
3418         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
3419         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
3420         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
3421         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
3422         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
3423         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
3424         renumber
3425         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
3426         (gomp_critical): Add clauses field.
3427         (gomp_ordered): New struct.
3428         (is_a_helper <gomp_ordered *>::test): New inline.
3429         (gimple_build_omp_critical): Add CLAUSES argument.
3430         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
3431         instead of gimple *.
3432         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
3433         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
3434         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
3435         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
3436         inline functions.
3437         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
3438         (dump_gimple_omp_target): Handle enter data and exit data.
3439         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
3440         (dump_gimple_omp_critical): Print clauses.
3441         (dump_gimple_omp_ordered): New function.
3442         (dump_gimple_omp_task): Handle taskloop.
3443         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
3444         GIMPLE_OMP_ORDERED.
3445         * gimple-walk.c (walk_gimple_op): Walk clauses on
3446         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
3447         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
3448         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
3449         (struct gimplify_omp_ctx): Add loop_iter_var,
3450         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
3451         and target_firstprivatize_array_bases fields.
3452         (delete_omp_context): Release loop_iter_var.
3453         (gimplify_bind_expr): Handle ORT_NONE.
3454         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
3455         ORT_COMBINED_TARGET.
3456         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
3457         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
3458         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
3459         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
3460         ctx->target_map_scalars_firstprivate.
3461         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
3462         data sharing clauses.  For data sharing clause with VLA decl
3463         on omp target/target data don't add firstprivate for the pointer.
3464         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
3465         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
3466         the addition of ORT_COMBINED_TARGET.
3467         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
3468         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
3469         pointers as zero length array sections and
3470         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
3471         data sharing.
3472         (omp_check_private): Handle omp_member_access_dummy_var vars.
3473         (find_decl_expr): New function.
3474         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
3475         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
3476         Handle OMP_CLAUSE_GANG separately.  Handle
3477         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3478         clauses.  Diagnose linear clause on combined
3479         distribute {, parallel for} simd construct, unless it is the loop
3480         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
3481         Handle map clauses with COMPONENT_REF.  Initialize
3482         ctx->target_map_scalars_firstprivate,
3483         ctx->target_firstprivatize_array_bases and
3484         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
3485         linear clause even to target region if combined.  Remove
3486         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
3487         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
3488         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
3489         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
3490         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
3491         For linear clause on worksharing loop combined with parallel add
3492         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
3493         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
3494         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
3495         taskloop if needed.
3496         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
3497         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
3498         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
3499         GOMP_MAP_POINTER.
3500         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
3501         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
3502         in target body.  Handle removal of struct mapping if struct is not
3503         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
3504         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
3505         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
3506         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
3507         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
3508         clause appear together.  Handle
3509         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
3510         clause if it has map-type-modifier always.  Handle
3511         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3512         clauses.
3513         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
3514         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
3515         callers.
3516         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
3517         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
3518         iterators in doacross loops.
3519         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
3520         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
3521         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
3522         for the addition of ORT_COMBINED_TARGET.
3523         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3524         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
3525         and OMP_TARGET_EXIT_DATA.
3526         (gimplify_omp_ordered): New function.
3527         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3528         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
3529         Gimplify clauses on OMP_CRITICAL.
3530         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3531         expand_GOMP_SIMD_ORDERED_END): New functions.
3532         * internal-fn.def (GOMP_SIMD_ORDERED_START,
3533         GOMP_SIMD_ORDERED_END): New internal functions.
3534         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3535         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3536         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3537         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3538         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3539         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3540         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3541         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3542         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3543         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3544         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3545         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3546         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3547         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3548         adjust type.
3549         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3550         GOMP_target_data_41, adjust type.
3551         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3552         GOMP_target_update_41, adjust type.
3553         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3554         field.
3555         (struct omp_for_data): Add ordered and simd_schedule fields.
3556         (omp_member_access_dummy_var, unshare_and_remap_1,
3557         unshare_and_remap, is_taskloop_ctx): New functions.
3558         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3559         (extract_omp_for_data): Handle taskloops and doacross loops
3560         and simd schedule modifier.
3561         (omp_adjust_chunk_size): New function.
3562         (get_ws_args_for): Use it.
3563         (lookup_sfield): Change first argument to splay_tree_key,
3564         add overload with first argument tree.
3565         (maybe_lookup_field): Likewise.
3566         (use_pointer_for_field): Handle omp_member_access_dummy_var.
3567         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3568         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3569         (build_outer_var_ref): Add LASTPRIVATE argument, handle
3570         taskloops and omp_member_access_dummy_var vars.
3571         (build_sender_ref): Change first argument to splay_tree_key,
3572         add overload with first argument tree.
3573         (install_var_field): For mask & 8 use &DECL_UID as key instead
3574         of the tree itself.
3575         (fixup_child_record_type): Const qualify *.omp_data_i.
3576         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3577         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3578         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3579         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3580         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3581         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3582         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3583         kinds.
3584         (add_taskreg_looptemp_clauses): New function.
3585         (scan_omp_parallel): Use it.
3586         (scan_omp_task): Likewise.
3587         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3588         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3589         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3590         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
3591         sandwiched taskloop constructs.  Type check
3592         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
3593         region.  Diagnose depend(source) or depend(sink:...) on
3594         target constructs or task/taskloop.
3595         (handle_simd_reference): Use get_name.
3596         (lower_rec_input_clauses): Likewise.  Ignore all
3597         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3598         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
3599         before passing it to omp_clause_{default,copy}_ctor.  Handle
3600         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
3601         lastprivate_firstprivate flag for linear that needs copyin and
3602         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3603         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3604         on taskloop lookup decl in outer context.  Pass true to
3605         build_outer_var_ref lastprivate argument.  Handle
3606         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3607         outside of outer taskloop for.
3608         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3609         OMP_CLAUSE_DECL.
3610         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3611         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
3612         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
3613         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
3614         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3615         abstract origin.  Handle omp_member_access_dummy_var vars.
3616         (expand_parallel_call): Use expand_omp_build_assign.
3617         (expand_task_call): Handle taskloop construct expansion.  Add
3618         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
3619         integers.  Add priority argument to GOMP_task* calls.  Or in
3620         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3621         GOMP_task call.
3622         (expand_omp_build_assign): Add prototype.  Add AFTER
3623         argument, if true emit statements after *GSI_P and continue linking.
3624         (expand_omp_taskreg): Adjust expand_task_call caller.
3625         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3626         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3627         zero_iter2_bb and first_zero_iter2 arguments, handle computation
3628         of counts even for ordered loops.
3629         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3630         (expand_omp_ordered_source, expand_omp_ordered_sink,
3631         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3632         functions.
3633         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
3634         clauses on worksharing loop.  Handle DOACROSS loop expansion.
3635         (expand_omp_for_static_nochunk): Handle linear clauses on
3636         worksharing loop.  Adjust expand_omp_for_init_counts
3637         callers.
3638         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
3639         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
3640         expand_omp_for_init_counts callers.
3641         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3642         functions.
3643         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3644         Handle doacross loops.
3645         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3646         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
3647         GOMP_target_{41,update_41,enter_exit_data} libcalls.
3648         (expand_omp): Don't expand ordered depend constructs here, record
3649         ord_stmt instead for later expand_omp_for_generic.
3650         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3651         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
3652         clause as stand-alone directive.
3653         (lower_omp_ordered_clauses): New function.
3654         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3655         don't lower anything.
3656         (lower_omp_for_lastprivate): Use last _looptemp_ clause
3657         on taskloop for comparison.
3658         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
3659         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3660         expansion for linear adjustments.
3661         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3662         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3663         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
3664         to tree * pointing to the stmt's clauses.
3665         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3666         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3667         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3668         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3669         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3670         clauses.  Always use short kind and 8-bit align shift.
3671         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3672         (struct lower_omp_regimplify_operands_data): New type.
3673         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3674         New functions.
3675         (lower_omp_1): Use lower_omp_regimplify_operands instead of
3676         gimple_regimplify_operands.
3677         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3678         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
3679         clause as stand-alone directive.
3680         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3681         (simd_clone_mangle): Mangle the various linear kinds
3682         per the new ABI.
3683         (simd_clone_adjust_argument_types): Handle
3684         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3685         (simd_clone_init_simd_arrays): Don't do anything for uval.
3686         (simd_clone_adjust): Handle
3687         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3688         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3689         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3690         * omp-low.h (omp_member_access_dummy_var): New prototype.
3691         * passes.def (pass_simduid_cleanup): Schedule another copy of the
3692         pass after all optimizations.
3693         * tree.c (omp_clause_code_name): Add entries for
3694         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3695         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3696         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
3697         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3698         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3699         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
3700         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3701         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3702         clauses.
3703         * tree-core.h (enum omp_clause_linear_kind): New.
3704         (struct tree_omp_clause): Change type of map_kind
3705         from unsigned char to unsigned int.  Add subcode.if_modifier
3706         and subcode.linear_kind fields.
3707         (enum omp_clause_code): Add
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_REDUCTION): Document
3711         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3712         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3713         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3714         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
3715         operand.
3716         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
3717         operand.
3718         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3719         codes.
3720         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3721         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3722         char.
3723         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3724         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3725         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3726         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3727         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3728         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3729         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3730         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3731         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3732         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3733         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3734         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3735         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3736         * tree-inline.c (remap_gimple_stmt): Handle clauses on
3737         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
3738         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3739         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3740         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3741         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3742         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3743         (convert_local_omp_clauses): Likewise.
3744         * tree-pretty-print.c (dump_omp_clause): Handle
3745         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3746         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3747         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3748         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3749         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
3750         GOMP_MAP_FORCE_DEALLOC.  Handle
3751         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3752         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3753         and clauses on OMP_ORDERED and OMP_CRITICAL.
3754         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3755         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3756         (vectorize_loops): Adjust comments.
3757         (pass_simduid_cleanup::execute): Likewise.
3758         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3759         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3760         * wide-int.h (wi::gcd): New.
3762 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
3764         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3765         (ix86_function_arg_advance): Ditto.
3766         (ix86_function_arg): Ditto.
3767         (ix86_gimplify_va_arg): Ditto.
3768         (ix86_class_max_nregs): Ditto.
3769         (inline_memory_move_cost): Ditto.
3770         (ix86_set_reg_reg_cost): Ditto.
3771         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
3773 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
3775         PR middle-end/67912
3776         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
3778 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
3780         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
3781         ROUND_UP macro and UNITS_PER_WORD * 2.
3782         * config/sparc/sparc.c (sparc_compute_frame_size):
3783         Use ROUND_UP and ROUND_DOWN macros where applicable.
3784         (function_arg_record_value, function_arg_record_value_1)
3785         (function_arg_record_value_1): Ditto.
3786         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
3787         alignment to double-word.
3788         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
3789         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
3790         rounded_size.
3792 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
3794         * gcc/rtl.h (print_insn): Fix prototype.
3796 2015-10-13  Tom de Vries  <tom@codesourcery.com>
3798         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
3799         -1.  Add assert that returned entry matches phi argument.
3800         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
3801         free_stmt_vec_info_vec ...
3802         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
3803         with -1.
3805 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
3807         PR tree-optimization/67909, 67947
3808         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
3809         really skip the inner loop.
3811 2015-10-13  Jeff Law  <law@redhat.com>
3813         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3814         Allow single block jump threading paths.
3816 2015-10-13  Tom de Vries  <tom@codesourcery.com>
3818         PR tree-optimization/67476
3819         * doc/invoke.texi (@item parloops-schedule): New item.
3820         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
3821         * tree-parloops.c: Include params-enum.h.
3822         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
3824 2015-10-13  Tom de Vries  <tom@codesourcery.com>
3826         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
3827         * params-enum.h: New file.
3828         * opts.c (handle_param): Handle case that param arg is a string.
3829         * params-list.h: Handle DEFPARAMENUM5 in params.def.
3830         * params.c (find_param): New function, factored out of ...
3831         (set_param_value): ... here.
3832         (param_string_value_p): New function.
3833         * params.h (struct param_info): Add value_names field.
3834         (find_param, param_string_value_p): Declare.
3836 2015-10-13  Tom de Vries  <tom@codesourcery.com>
3838         PR tree-optimization/67476
3839         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
3841 2015-10-13  Richard Biener  <rguenther@suse.de>
3843         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
3844         the data dependence vector.
3845         (vect_peeling_hash_insert): Get the peeling hash table as argument.
3846         (vect_peeling_hash_get_lowest_cost): Likewise.
3847         (vect_enhance_data_refs_alignment): Adjust.
3848         (struct _vect_peel_info, struct _vect_peel_extended_info,
3849         struct peel_info_hasher): Move from ...
3850         * tree-vectorizer.h: ... here.
3851         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
3852         (LOOP_VINFO_PEELING_HTAB): Likewise.
3853         (struct _loop_vec_info): Remove min_profitable_iters and
3854         peeling_htab members.
3855         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
3856         here.
3857         (destroy_loop_vec_info): Adjust.
3858         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
3859         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
3860         to estimate alias versioning cost.
3861         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
3863 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
3865         * real.h (real_isinteger): Declare.
3866         * real.c (real_isinteger): New function.
3867         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
3868         if y is an even integer.
3870 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3872         revert:
3873         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3874         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3875         counts when these are more informative.
3877 2015-10-12  Jeff Law  <law@redhat.com>
3879         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
3880         (fsm_find_control_stmt_paths): Change name of first argument to
3881         more accurately relfect what it really is.  Handle simplification
3882         of GIMPLE_COND after finding a thread path for NAME.
3883         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
3884         nontrivial conditions to be handled by FSM threader.
3885         (thread_through_normal_block): Extract the name to looup via
3886         FSM threader from COND_EXPR.
3888         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
3889         restriction that traced SSA_NAME is a user variable.
3891 2015-10-12  Tom de Vries  <tom@codesourcery.com>
3893         PR tree-optimization/67476
3894         * omp-low.c (expand_omp_for_generic): Add missing phis.
3896 2015-10-12  Tom de Vries  <tom@codesourcery.com>
3898         PR tree-optimization/67476
3899         * omp-low.c (expand_omp_for_generic): Handle simple latch.
3901 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
3903         * config/aarch64/aarch64-simd-builtins.def: Update builtins
3904         tables: add tbl3 and tbx4.
3905         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
3906         (aarch64_tbx4v8qi): New.
3907         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
3908         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
3909         Rewrite using builtin functions.
3910         * config/aarch64/iterators.md (UNSPEC_TBX): New.
3912 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
3914         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
3915         ROUND_UP macro.
3916         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3917         Use ROUND_UP and ROUND_DOWN macros where applicable.
3918         (rs6000_darwin64_record_arg_flush): Ditto.
3919         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
3920         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
3921         rounded_size.
3923 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
3925         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
3926         (AARCH64_ROUND_DOWN): Ditto.
3927         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
3929 2015-10-12  Richard Biener  <rguenther@suse.de>
3931         PR ipa/67783
3932         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
3933         code that analyzes IVs on each stmt but in a cheaper way avoiding
3934         quadratic behavior.
3936 2015-10-12  Nick Clifton  <nickc@redhat.com>
3938         * config/msp430/msp430.c (msp430_mcu_names): Rename to
3939         msp430_mcu_data, add fields for ISA and hardware multiply
3940         support.  Import latest data from the devices.csv file.
3941         (msp430_override_option): Use the data from the new array.
3942         (msp430_use_f5_series_hwmult): Likewise.
3943         (use_32bit_hwmult): Likewise.
3944         (msp430_no_hwmult): Likewise.
3945         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
3946         MCU names.
3947         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
3948         not recognised then no hardware multiply support is assumed and
3949         that only the MSP430 ISA is allowed.
3951 2015-10-12  Richard Biener  <rguenther@suse.de>
3953         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
3954         related code ...
3955         (vect_analyze_loop_2): ... here.
3957 2015-10-11  Jason Merrill  <jason@redhat.com>
3959         PR c++/67557
3960         * expr.c (store_field): Call store_constructor directly when
3961         storing a CONSTRUCTOR into a target smaller than its type.
3962         Guard against unsafe bitwise copy.
3964 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3966         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
3967         counts when these are more informative.
3969 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3971         * tree-profile.c (tree_profiling): Do not clear
3972         pure/const when not instrumenting.
3973         (pass tree_profile): Add dump of symtab.
3975 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
3977         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
3978         addresses.
3979         (fold_addr_of_array_ref_difference): Likewise.
3981 2015-10-11  Jeff Law  <law@redhat.com>
3983         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
3984         tree-ssa-threadbackward.c.
3985         (fsm_find_control_statement_thread_paths): Likewise.
3986         (thread_through_normal_block): Break out FSM bits and move them
3987         into a new function in tree-ssa-threadbackward.c.  Call new function
3988         instead.
3989         Minimize header file usage.
3990         * tree-ssa-threadbackward.h: New file.
3991         * tree-ssa-threadbackward.c: Likewise.
3992         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
3994 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
3996         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
3998 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
4000         PR rtl-optimization/67864
4001         * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
4002         fallthrough edges for conditional jumps.  Don't sort candidate
4003         edges if not optimizing for speed.
4005 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4007         * defaults.h (REVERSE_CONDITION): New default definition.
4008         * jump.c (reversed_comparison_code_parts): Adjust.
4010 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4012         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
4013         check HARD_FRAME_POINTER_IS_ARG_POINTER.
4015 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4017         * defaults.h (FRAME_ADDR_RTX): New default definition.
4018         * builtins.c (expand_builtin_return_addr): Adjust.
4020 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4022         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
4023         * builtins.c (expand_builtin_return_addr): Adjust.
4025 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4027         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
4028         * builtins.c (expand_builtin_return_addr): Adjust.
4029         * doc/tm.texi: Likewise.
4030         * doc/tm.texi.in: Likewise.
4031         * except.c (expand_builtin_unwind_init): Likewise.
4033 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4035         * builtins.c (expand_builtin_return_addr): Adjust.
4036         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
4038 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
4040         * tree.c (type_with_interoperable_signedness): New.
4041         (gimple_canonical_types_compatible_p): Use it.
4042         * tree.h (type_with_interoperable_signedness): Declare
4044 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
4046         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
4047         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
4048         when OEP_ADDRESS_OF is se.
4050 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
4051             Sebastian Pop  <s.pop@samsung.com>
4053         * graphite-dependences.c (scop_get_dependences): Add dump of the
4054         data dependence graph.
4055         * graphite-poly.c (print_isl_union_map): New.
4056         (debug_isl_union_map): New.
4057         * graphite-poly.h (print_isl_union_map): Declare.
4058         (debug_isl_union_map): Declare.
4060 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
4061             Sebastian Pop  <s.pop@samsung.com>
4063         * graphite-poly.c (print_iteration_domain): Remove verbosity.
4064         Remove OpenScop formatting.
4065         (print_iteration_domains): Same.
4066         (debug_iteration_domain): Same.
4067         (debug_iteration_domains): Same.
4068         (print_pdr): Same.
4069         (debug_pdr): Same.
4070         (dump_gbb_cases): Same.
4071         (dump_gbb_conditions): Same.
4072         (print_pdrs): Same.
4073         (debug_pdrs): Same.
4074         (print_pbb_body): Same.
4075         (print_pbb): Same.
4076         (print_scop_params): Same.
4077         (print_scop_context): Same.
4078         (print_scop): Same.
4079         (debug_pbb_domain): Same.
4080         (debug_pbb): Same.
4081         (debug_scop_context): Same.
4082         (debug_scop): Same.
4083         (debug_scop_params): Same.
4084         * graphite-poly.h: Same.
4085         * graphite.c (graphite_transform_loops): Same.
4087 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4089         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4090         call that isn't needed.
4092 2015-10-09  Jeff Law  <law@redhat.com>
4094         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
4095         rather than moving each name to the freelist individually.
4097 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
4099         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
4100         * frame-header-opt.c: New file.
4101         * config/mips/mips-proto.h (mips_register_frame_header_opt):
4102         Add prototype.
4103         * config/mips/mips.c (mips_compute_frame_info): Check
4104         optimize_call_stack flag.
4105         (mips_option_override): Register new frame_header_opt pass.
4106         (mips_frame_info, mips_int_mask, mips_shadow_set,
4107         machine_function): Move these types to...
4108         * config/mips/mips.h: here.
4109         (machine_function): Add does_not_use_frame_header and
4110         optimize_call_stack fields.
4111         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
4112         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
4113         Document new flags.
4114         * config/mips/mips.opt (mframe-header-opt): Add new option.
4116 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
4118         * config/i386/i386.c
4119         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
4120         ROUND_DOWN where applicable.
4122 2015-10-09  Jeff Law  <law@redhat.com>
4124         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
4125         correct statement.
4127 2015-10-09  Renlin Li  <renlin.li@arm.com>
4129         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
4130         operands[0] and operands[2].
4131         (neon_vtrn<mode>_insn): Likewise.
4132         (neon_vzip<mode>_insn): Likewise.
4134 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4136         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
4137         ((X & C2) << C1): Expand to...
4138         (X {&,^,|} C2 << C1): ...This.
4139         ((X & C2) >> C1): Expand to...
4140         (X {&,^,|} C2 >> C1): ...This.
4142 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
4144         PR target/67895
4145         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
4146         Adjust embedded rounding/SAE specifier position.
4147         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
4148         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
4149         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
4150         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
4151         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4152         Likewise.
4153         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
4155 2015-10-09  Martin Jambor  <mjambor@suse.cz>
4157         tree-optimization/67794
4158         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
4159         between types of state,ents but accept original definitions as a
4160         parameter.
4161         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
4162         iterate over definitions.
4164 2015-10-09  James Norris  <jnorris@codesourcery.com>
4166         * config/rs6000/rs6000.c (rs6000_offload_options): New.
4167         (TARGET_OFFLOAD_OPTIONS): New.
4169 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
4171         PR middle-end/67891
4172         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
4174         PR middle-end/67766
4175         * function.c (expand_function_end): Move return value
4176         promotion past the handling of PARALLELs and CONCATs.
4178         PR rtl-optimization/67828
4179         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
4180         (tree_may_unswitch_on): Don't unswitch on expressions
4181         involving undefined values.
4183 2015-10-09  Richard Biener  <rguenther@suse.de>
4185         * genmatch.c (print_operand): Fix formatting.
4186         (dt_node::append_simplify): Warn for multiple simplifiers
4187         that match the same pattern.
4188         * match.pd (log (exp @0)): Remove duplicates.
4190 2015-10-09  Richard Biener  <rguenth@suse.de>
4192         PR target/67366
4193         * gimple-fold.c (optabs-query.h): Include
4194         (gimple_fold_builtin_memory_op): Allow unaligned stores
4195         when movmisalign_optabs are available.
4197 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4199         PR target/67366
4200         * config/arm/arm.md (movmisalign<mode>): New.
4201         * config/arm/iterators.md (HSI): New.
4203 2015-10-09  Richard Biener  <rguenther@suse.de>
4205         PR tree-optimization/67891
4206         * gimple-match.h (gimple_simplified_result_is_gimple_val):
4207         New helper.
4208         (gimple_resimplify1): Declare.
4209         (gimple_resimplify2): Likewise.
4210         (gimple_resimplify3): Likewise.
4211         * gimple-match-head.c (gimple_resimplify1): Export.
4212         (gimple_resimplify2): Likewise.
4213         (gimple_resimplify3): Likewise.
4214         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
4215         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4216         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
4217         to avoid creating stmts without VN info.
4219 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
4221         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
4222         of availability.
4224 2015-10-08  Jeff Law  <law@redhat.com>
4226         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
4227         and release_ssa_name in two places.
4228         (gimple_stringop_fixed_value): Similarly.
4230         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
4231         release_defs.
4233         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
4234         unlink_stmt_vdef and release_ssa_name_fn.
4236         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
4237         release_defs.
4239 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
4241         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
4242         SSE register save area to 16 bytes only if the incoming stack
4243         boundary is no less than 16 bytes.
4245 2015-10-08  Jeff Law  <law@redhat.com>
4247         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
4248         release_ssa_name.  Fix typo in comment.
4250 2015-10-08  Nathan Sidwell  <nathan@acm.org>
4252         * config/nvptx/nvptx.h (struct machine_function): Add comment.
4253         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
4254         may return pointer as well as in memory.
4255         (nvptx_output_return): Likewise.
4257 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
4259         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
4260         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
4261         * match.pd: Add rules previously handled by fold_builtin_sqrt
4262         and fold_builtin_cbrt.
4264 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
4266         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
4267         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
4268         * fold-const.h (tree_unary_nonnegative_warnv_p)
4269         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4270         (tree_expr_nonnegative_warnv_p): Add depth parameters.
4271         * fold-const.c: Include gimple-fold.h and params.h.
4272         (tree_ssa_name_nonnegative_warnv_p): New function.
4273         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
4274         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4275         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
4276         Add a depth parameter and increment it for recursive calls to
4277         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
4278         to handle SSA names.
4279         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
4280         (gimple_stmt_nonnegative_warnv_p): Declare.
4281         * tree-vrp.c (remove_range_assertions): Remove assert that condition
4282         cannot be proven false.
4283         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
4284         (gimple_stmt_nonnegative_warnv_p): Move to...
4285         * gimple-fold.c: ...here.  Add depth parameters and pass them
4286         down to the tree routines.  Accept statements that aren't
4287         assignments or calls but just return false for them.
4288         (gimple_val_nonnegative_real_p): Delete.
4289         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
4290         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
4291         Check HONOR_NANs first.
4293 2015-10-08  Martin Jambor  <mjambor@suse.cz>
4295         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
4296         unnecessary MIN.
4298 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
4300         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
4301         in the tail of outer-loop.
4303 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
4305         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
4306         return UI_NONE.
4308 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
4310         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
4311         "cfghooks.h", add prototypes for introduced new functions.
4312         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
4313         checks on ability of loop unswitching to tree_unswitch_single_loop;
4314         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
4315         on innermost loop check.
4316         (tree_unswitch_single_loop): Add all required checks on ability of
4317         loop unswitching under zero recursive level guard.
4318         (tree_unswitch_outer_loop): New function.
4319         (find_loop_guard): Likewise.
4320         (empty_bb_without_guard_p): Likewise.
4321         (used_outside_loop_p): Likewise.
4322         (get_vop_from_header): Likewise.
4323         (hoist_guard): Likewise.
4324         (check_exit_phi): Likewise.
4326 2015-10-08  Marek Polacek  <polacek@redhat.com>
4328         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
4329         ops element.
4331 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4333         PR c/65345
4334         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
4335         create_tmp_var_raw instead of create_tmp_var.
4337 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
4339         * expr.c (store_expr_with_bounds): Handle aggregate moves from
4340         BLKmode.
4341         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
4342         to define gimple type system; compare aggregates only by size.
4344 2015-10-07  Jeff Law  <law@redhat.com>
4346         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
4347         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
4348         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
4349         unnecessarily.
4351 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
4352             Sebastian Pop  <s.pop@samsung.com>
4354         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
4355         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
4356         (generate_isl_schedule): Same.
4357         * graphite-optimize-isl.c (scop_get_domains): Same.
4358         (apply_schedule_map_to_scop): Same.
4359         * graphite-poly.c (print_iteration_domains): Same.
4360         (remove_gbbs_in_scop): Same.
4361         (new_scop): Same.
4362         (free_scop): Same.
4363         (print_scop): Same.
4364         * graphite-poly.h (struct scop): Rename bbs to pbbs.
4365         (SCOP_BBS): Remove.
4366         * graphite-scop-detection.c (compare_bb_depths): Remove.
4367         (graphite_sort_dominated_info): Remove.
4368         (try_generate_gimple_bb): Move out of scop_detection.
4369         (all_non_dominated_preds_marked_p): Remove.
4370         (build_scop_bbs_1): Remove.
4371         (build_scop_bbs): Remove.
4372         (nb_pbbs_in_loops): Do not use SCOP_BBS.
4373         (find_scop_parameters): Same.
4374         (sese_dom_walker): Rename gather_bbs.
4375         (before_dom_children): Call try_generate_gimple_bb and collect gbb
4376         and pbb.
4377         (build_scops): Call gather_bbs.
4378         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
4379         (add_conditions_to_constraints): Same.
4380         (build_scop_iteration_domain): Same.
4381         (build_scop_drs): Same.
4382         (new_pbb_from_pbb): Same.
4383         * sese.c (new_sese_info): Create bbs.
4384         * sese.h (struct sese_info_t): Add bbs.
4386 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
4388         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4389         encoding in 64-bit mode.
4391 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
4393         PR target/66697
4394         * config/i386/i386.c (ix86_option_override_internal): Always use
4395         8-byte minimum stack boundary in 64-bit mode.
4396         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
4397         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
4398         Add a REG_CFA_EXPRESSION note if needed.
4399         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
4400         (ix86_handle_force_align_arg_pointer_attribute): New.
4401         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
4402         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
4403         with ix86_handle_force_align_arg_pointer_attribute.
4404         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
4406 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
4407             Sebastian Pop  <s.pop@samsung.com>
4409         * graphite-scop-detection.c (parameter_index_in_region): Remove
4410         use of SESE_ADD_PARAMS.
4411         (find_scop_parameters): Same.
4412         * sese.c (new_sese_info): Same.
4413         * sese.h (struct sese_info_t): Remove add_params.
4414         (SESE_ADD_PARAMS): Remove.
4416 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
4417             Sebastian Pop  <s.pop@samsung.com>
4419         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
4420         an sese_info_p.
4421         (copy_def): Same.
4422         (copy_internal_parameters): Same.
4423         (translate_isl_ast_to_gimple): Use an sese_l.
4424         (build_iv_mapping): Same.
4425         * graphite-poly.c (new_sese): Rename new_sese_info.
4426         (free_sese): Rename free_sese_info.
4427         * graphite-poly.h (struct scop): Use an sese_info_p.
4428         (scop_set_region): Same.
4429         * graphite-scop-detection.c (struct sese_l): Moved...
4430         (get_entry_bb): Moved...
4431         (get_exit_bb): Moved...
4432         (parameter_index_in_region_1): Use an sese_info_p.
4433         (parameter_index_in_region): Same.
4434         (scan_tree_for_params): Same.
4435         (find_params_in_bb): Same.
4436         (sese_dom_walker): Use an sese_l.
4437         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
4438         (reduction_phi_p): Same.
4439         (parameter_index_in_region_1): Use an sese_info_p.
4440         (propagate_expr_outside_region): Use an sese_l.
4441         * graphite.c: Replace uses of SCOP_REGION.
4442         * sese.c (sese_record_loop): Use an sese_info_p.
4443         (build_sese_loop_nests): Same.
4444         (sese_build_liveouts_use): Same.
4445         (sese_build_liveouts_bb): Same.
4446         (sese_build_liveouts_bb): Same.
4447         (sese_bad_liveouts_use): Same.
4448         (sese_reset_debug_liveouts_bb): Same.
4449         (sese_build_liveouts): Same.
4450         (new_sese): Renamed new_sese_info.
4451         (free_sese): Renamed free_sese_info.
4452         (set_rename): Use an sese_info_p.
4453         (graphite_copy_stmts_from_block): Same.
4454         (copy_bb_and_scalar_dependences): Same.
4455         (outermost_loop_in_sese_1): Use an sese_l.
4456         (outermost_loop_in_sese): Same.
4457         (if_region_set_false_region): Use an sese_info_p.
4458         (move_sese_in_condition): Same.
4459         (scalar_evolution_in_region): Use an sese_l.
4460         * sese.h (struct sese_l): ... here.
4461         (SESE_ENTRY): Remove.
4462         (SESE_ENTRY_BB): Remove.
4463         (SESE_EXIT): Remove.
4464         (SESE_EXIT_BB): Remove.
4465         (sese_contains_loop): Use an sese_info_p.
4466         (sese_nb_params): Same.
4467         (bb_in_sese_p): Use an sese_l.
4468         (stmt_in_sese_p): Same.
4469         (defined_in_sese_p): Same.
4470         (loop_in_sese_p): Same.
4471         (sese_loop_depth): Same.
4472         (struct ifsese_s): Use an sese_info_p.
4473         (gbb_loop_at_index): Use an sese_l.
4474         (nb_common_loops): Same.
4475         (scev_analyzable_p): Same.
4477 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
4479         * config/i386/i386.c (ix86_conditional_register_usage): Use
4480         CALL_USED_REGISTERS_MASK.
4481         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
4483 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
4485         PR bootstrap/67385
4486         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
4487         * configure: Regenerated.
4489 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
4491         PR target/67850
4492         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
4493         (ix86_set_current_function): This.
4494         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
4496 2015-10-07  Richard Biener  <rguenther@suse.de>
4498         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
4499         (vinfo_for_stmt): Adjust.
4500         (set_vinfo_for_stmt): Likewise.
4501         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
4502         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
4503         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
4504         of inner loop.
4505         (vect_analyze_loop_1): Remove.
4506         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
4507         inner loop when vectorizing an outer loop by splitting out from ...
4508         (vect_analyze_loop_form): ... here.
4510 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4512         PR c/65345
4513         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
4514         Use create_tmp_var_raw instead of create_tmp_var.
4516 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
4518         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
4519         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
4520         * real.c (CACHED_FRACTION): New helper macro.
4521         (dconst_third_ptr): Use it.
4522         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4523         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4524         dconst_sixth.
4525         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4527 2015-10-06  Jeff Law  <law@redhat.com>
4529         PR tree-optimization/67816
4530         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4531         from remove_jump_threads_starting_at.  Accept an edge rather than
4532         a basic block.
4533         * tree-ssa-threadupdate.c (removed_edges): New hash table.
4534         (remove_jump_threads_including): Note edges that get removed from
4535         the CFG for later pruning of jump threading paths including them.
4536         (thread_through_all_blocks): Remove paths which include edges that
4537         have been removed.
4538         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4539         on each outgoing edges when optimizing away a control statement.
4541 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4543         * reorg.c (emit_delay_sequence): Store list of delay slot insns
4544         in a vector instead of rtx_insn_list.
4545         (add_to_delay_list): Likewise.
4546         (delete_from_delay_slot): Likewise.
4547         (optimize_skip): Likewise.
4548         (redirect_with_delay_list_safe_p): Likewise.
4549         (check_annul_list_true_false): Likewise.
4550         (steal_delay_list_from_target): Likewise.
4551         (steal_delay_list_from_fallthrough): Likewise.
4552         (redundant_insn): Likewise.
4553         (fill_simple_delay_slots): Likewise.
4554         (fill_slots_from_thread): Likewise.
4555         (fill_eager_delay_slots): Likewise.
4556         (relax_delay_slots): Likewise.
4558 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
4560         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4561         For -mgpopt=local, also exclude unintialized common symbols.
4562         * doc/invoke.texi (Nios II Options): Document the change.
4564 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4566         * config/aarch64/iterators.md (vwcore): Add missing cases for
4567          V4HF/V8HF modes.
4569 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
4570             Sebastian Pop  <s.pop@samsung.com>
4572         * graphite-poly.c (new_scop): Initialize drs.
4573         * graphite-poly.h (struct dr_info): New.
4574         (struct scop): Add drs.
4575         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4576         (pdr_add_memory_accesses): Same.
4577         (build_poly_dr): Same.
4578         (build_alias_set): Same.
4579         (build_scop_drs): Same.
4580         (build_pbb_drs): Remove.
4581         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4582         * tree-data-ref.h (data_reference): Remove alias_set.
4584 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
4585             Sebastian Pop  <s.pop@samsung.com>
4587         * graphite-poly.c (free_data_refs_aux): Remove.
4588         (free_gimple_poly_bb): Do not call free_data_refs_aux.
4589         * graphite-poly.h (struct base_alias_pair): Remove.
4590         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4591         base_alias_pair and dr->aux.
4592         (build_alias_set): Same.
4593         * tree-data-ref.c (create_data_ref): Initialize alias_set.
4594         * tree-data-ref.h (data_reference): Add alias_set.
4596 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
4597             Sebastian Pop  <s.pop@samsung.com>
4599         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4600         Do not set PDR_BASE_OBJECT_SET.
4601         * graphite-poly.h (poly_dr): Same.
4602         (PDR_BASE_OBJECT_SET): Remove.
4603         (new_poly_dr): Update decl.
4604         * graphite-sese-to-poly.c (build_poly_dr): Update call to
4605         new_poly_dr.
4606         (write_alias_graph_to_ascii_dimacs): Remove.
4607         (write_alias_graph_to_ascii_dot): Remove.
4608         (write_alias_graph_to_ascii_ecc): Remove.
4609         (dr_same_base_object_p): Remove.
4610         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
4611         code.
4612         (build_base_obj_set_for_drs): Remove.
4613         (dump_alias_graphs): Remove.
4614         (build_scop_drs): Remove dead code.
4616 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4617             Peter Bergner  <bergner@vnet.ibm.com>
4619         PR target/67808
4620         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4621         allow registers, but provide insns for the combiner to create for
4622         loads from memory. Separate VSX code from non-VSX code. For
4623         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4624         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4625         so that registers come before memory operations. Drop support from
4626         converting DFmode to TFmode, if the DFmode value is in a GPR
4627         register.
4628         (extenddftf2_fprs): Likewise.
4629         (extenddftf2_internal): Likewise.
4630         (extenddftf2_vsx): Likewise.
4631         (extendsftf2): In the expander, only allow registers, but provide
4632         insns for the combiner to create for stores and loads.
4634 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4636         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4637         from the decl parameter.
4639 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
4641         PR 67861
4642         * gimple-fold.c (gimple_fold_builtin): Add break after
4643         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4645 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
4647         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4648         to scop->isl_context.
4650 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
4652         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4653         (output_probe_stack_range): Rotate the loop and simplify.
4654         (thumb1_expand_prologue): Tweak sorry message.
4655         * config/arm/arm.md (probe_stack): Use bare string.
4657 2015-10-06  Nick Clifton  <nickc@redhat.com>
4659         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4661 2015-10-06  Nick Clifton  <nickc@redhat.com>
4663         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4664         (ATTR_PERSIST): New constant.
4665         (msp430_data_attr): New function - verifies an attribute that only
4666         applies to variables.
4667         (msp430_attributes): Add noinit and persistent attributes.
4668         (noinit_section): New variable.
4669         (presis_section): New variable.
4670         (TARGET_ASM_INIT_SECTIONS): Define.
4671         (msp430_init_sections): New function - initialises the noinit and
4672         persist section variables.
4673         (msp430_select_section): Add support for noinit and persist
4674         attributes.
4675         (msp430_section_type_flags): Likewise.
4676         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
4677         and persistent attributes.
4679 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
4680             Sebastian Pop  <s.pop@samsung.com>
4682         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4683         (no_violations): Remove.
4684         (subtract_commutative_associative_deps): Remove.
4685         (compute_deps): Do not call subtract_commutative_associative_deps.
4686         (transform_is_safe): Remove.
4687         (graphite_legal_transform): Remove.
4688         * graphite-poly.h (graphite_legal_transform): Remove.
4690 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
4692         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4693         which are in this region are passed so gcc_assert and remove redundant
4694         computation.
4695         * sese.c (sese_build_liveouts): Pass only those bbs which are not
4696         in region.
4697         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4698         gcc_assert on that and remove unnecessary computation.
4699         (sese_build_liveouts_use): Same.
4701 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
4703         * graphite-dependences.c (scop_get_reads): Renamed scop->context
4704         to scop->param_context.
4705         (scop_get_must_writes): Same.
4706         (scop_get_may_writes): Same.
4707         (scop_get_original_schedule): Same.
4708         (scop_get_transformed_schedule): Same.
4709         (subtract_commutative_associative_deps): Same.
4710         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4711         (generate_isl_context): Same.
4712         (generate_isl_schedule): Same.
4713         (scop_to_isl_ast): Same.
4714         (graphite_regenerate_ast_isl): Same.
4715         * graphite-optimize-isl.c (scop_get_domains): Same.
4716         (optimize_isl): Renamed scop->context to scop->param_context.
4717         * graphite-poly.c (new_poly_bb): Change the type of argument to
4718         gimple_poly_bb_p.
4719         (new_scop): Renamed scop->context to scop->param_context.
4720         (free_scop): Same.
4721         (print_scop_context): Same.
4722         * graphite-poly.h (new_poly_dr): Change the type of argument from
4723         void* to data_reference_p.
4724         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4725         (new_poly_bb): Change the type of argument from void* to
4726         gimple_poly_bb_p.
4727         (pbb_set_black_box): Same.
4728         (struct scop): Rename context to param_context, ctx to isl_context.
4729         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4730         Move declarations closer to assignment.
4731         (find_params_in_bb): Same.
4732         (find_scop_parameters): Same.
4733         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4734         Global to be used for statement IDs.
4735         (isl_id_for_pbb): Use ssa_name_version_typesize.
4736         (simple_copy_phi_p): Move declarations closer to assignment.
4737         (build_pbb_scattering_polyhedrons): Same.
4738         (build_scop_scattering): Same.
4739         (isl_id_for_ssa_name): Same.
4740         (extract_affine_name): Same.
4741         (extract_affine_int): Same.
4742         (extract_affine): Same.
4743         (set_scop_parameter_dim): Use renamed member.
4744         (build_loop_iteration_domains): Same.
4745         (add_param_constraints): Same.
4746         (build_scop_iteration_domain): Same.
4747         (pdr_add_data_dimensions): Same.
4748         (build_poly_dr): Same.
4749         (build_scop_drs): Move declarations closer to assignment.
4750         (analyze_drs_in_stmts): Same.
4751         (insert_out_of_ssa_copy): Same.
4752         (insert_out_of_ssa_copy_on_edge): Same.
4753         (propagate_expr_outside_region): Same.
4754         (rewrite_phi_out_of_ssa): Same.
4755         (rewrite_degenerate_phi): Same.
4756         (rewrite_reductions_out_of_ssa): Same.
4757         (rewrite_cross_bb_scalar_dependence): Same.
4758         (handle_scalar_deps_crossing_scop_limits): Same.
4759         (rewrite_cross_bb_scalar_deps): Same.
4760         * graphite.c (graphite_transform_loops): Use renamed member.
4762 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
4764         PR c/65345
4765         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4766         create_tmp_var_raw instead of create_tmp_var.
4768 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4770         PR c/65345
4771         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
4772         Use create_tmp_var_raw instead of create_tmp_var.
4774 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
4776         PR target/67849
4777         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
4778         split for upper-bank registers when target does not support
4779         AVX512VL.
4780         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
4781         split when target does not support AVX512VL.
4783 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
4785         PR c/65345
4786         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
4787         Adjust to use create_tmp_var_raw instead of create_tmp_var.
4789 2015-10-06  Nick Clifton  <nickc@redhat.com>
4791         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
4792         multiplication.
4794 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
4796         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
4797         (case ${target}): Add znver1.
4798         * config/i386/cpuid.h(bit_CLZERO):  Define.
4799         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4800         -march=native recognize znver1 processors.
4801         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4802         znver1, clzero def_and_undef.
4803         * config/i386/i386.c (struct processor_costs znver1_cost): New.
4804         (m_znver1): New definition.
4805         (m_AMD_MULTIPLE): Includes m_znver1.
4806         (processor_target_table): Add znver1 entry.
4807         (ix86_target_string) : Add clzero entry.
4808         (static const char *const cpu_names): Add znver1 entry.
4809         (ix86_option_override_internal): Add znver1 instruction sets.
4810         (PTA_CLZERO) :  New definition.
4811         (ix86_option_override_internal): Handle new clzerooption.
4812         (ix86_issue_rate): Add znver1.
4813         (ix86_adjust_cost): Add znver1.
4814         (ia32_multipass_dfa_lookahead): Add znver1.
4815         (has_dispatch): Add znver1.
4816         * config/i386/i386.h (TARGET_znver1): New definition.
4817         (TARGET_CLZERO): Define.
4818         (TARGET_CLZERO_P): Define.
4819         (struct ix86_size_cost): Add TARGET_ZNVER1.
4820         (enum processor_type): Add PROCESSOR_znver1.
4821         * config/i386/i386.md (define_attr "cpu"): Add znver1.
4822         (set_attr znver1_decode): New definitions for znver1.
4823         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
4824         (mclzero): New.
4825         * config/i386/mmx.md (set_attr znver1_decode): New definitions
4826         for znver1.
4827         * config/i386/sse.md (set_attr znver1_decode): Likewise.
4828         * config/i386/x86-tune.def:  Add znver1 tunings.
4829         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
4830         * gcc/doc/invoke.texi: Add details about znver1
4832 2015-10-06  Richard Biener  <rguenther@suse.de>
4834         PR tree-optimization/67859
4835         * tree-ssa-pre.c (create_expression_by_pieces): Properly
4836         discard not inserted stmts.
4838 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
4840         * doc/extend.texi (Template Instantiation): Reorder options and
4841         de-emphasize -frepo.
4842         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
4843         example instead of -frepo.
4845 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
4847         PR c/65345
4848         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
4849         use create_tmp_var_raw rather than create_tmp_var.
4851 2015-10-06  Richard Biener  <rguenther@suse.de>
4853         * tree-vectorizer.h (vec_info): New base class for...
4854         (_loop_vec_info): ... this and ...
4855         (_bb_vec_info): ... this.
4856         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
4857         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
4858         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
4859         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
4860         vect_destroy_datarefs): Adjust interface to take a vec_info *
4861         rather than both a loop_vec_info and a bb_vec_info argument.
4862         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
4863         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
4864         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
4865         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
4866         accordingly.
4867         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
4868         (destroy_loop_vec_info, vect_analyze_loop_2,
4869         vect_is_simple_reduction_1, get_initial_def_for_induction,
4870         vect_create_epilog_for_reduction, vectorizable_reduction,
4871         vectorizable_live_operation, vect_transform_loop): Adjust.
4872         * tree-vect-patterns.c (type_conversion_p,
4873         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
4874         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
4875         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
4876         check_bool_pattern, vect_recog_bool_pattern,
4877         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
4878         * tree-vect-slp.c (vect_get_and_check_slp_defs,
4879         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
4880         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
4881         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
4882         (new_bb_vec_info): Initialize base classs.
4883         * tree-vect-stmts.c (record_stmt_cost, process_use,
4884         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
4885         vectorizable_mask_load_store, vectorizable_call,
4886         vectorizable_simd_clone_call, vectorizable_conversion,
4887         vectorizable_assignment, vectorizable_shift,
4888         vectorizable_operation, vectorizable_store,
4889         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
4890         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
4891         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
4893 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
4895         PR c/65345
4896         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
4897         create_tmp_var_raw rather than create_tmp_var.
4899 2015-10-05  Marek Polacek  <polacek@redhat.com>
4901         * tree-ssa-loop-im.c
4902         (move_computations_dom_walker::before_dom_children): Don't set
4903         SSA_NAME_ANTI_RANGE_P.
4904         * tree-ssa-phiopt.c (value_replacement): Likewise.
4906 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
4907             Sebastian Pop  <s.pop@samsung.com>
4909         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
4911 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
4912             Sebastian Pop  <s.pop@samsung.com>
4914         * graphite-poly.c (new_gimple_poly_bb): ... here.
4915         (free_data_refs_aux): ... here.
4916         (free_gimple_poly_bb): ... here.
4917         (remove_gbbs_in_scop): ... here.
4918         (new_scop): Call new_sese.
4919         (free_scop): Call remove_gbbs_in_scop and free_sese.
4920         * graphite-poly.h (base_alias_pair): ... here.
4921         (new_gimple_poly_bb): Declare.
4922         (free_gimple_poly_bb): Declare.
4923         * graphite-scop-detection.c (parameter_index_in_region_1):
4924         (parameter_index_in_region): ... here.
4925         (scan_tree_for_params): ... here.
4926         (find_params_in_bb): ... here.
4927         (find_scop_parameters): ... here.
4928         (build_scops): Call find_scop_parameters.
4929         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
4930         (free_scops): Move...
4931         (single_pred_cond_non_loop_exit): Move...
4932         (sese_dom_walker::before_dom_children): Move...
4933         (sese_dom_walker::after_dom_children): Move...
4934         (build_poly_scop): Move...
4935         * graphite-sese-to-poly.h (base_alias_pair): Move...
4936         * graphite.c (free_scops): ... here.
4938 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
4939             Sebastian Pop  <s.pop@samsung.com>
4941         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
4942         (trivially_empty_bb_p): Move...
4943         (same_close_phi_node): Move...
4944         (new_gimple_poly_bb): Move...
4945         (compare_bb_depths): Move...
4946         (graphite_sort_dominated_info): Move...
4947         (remove_duplicate_close_phi): Move...
4948         (make_close_phi_nodes_unique): Move...
4949         (canonicalize_loop_closed_ssa): Move...
4950         (canonicalize_loop_closed_ssa_form): Move...
4951         (loop_ivs_can_be_represented): Move...
4952         (single_pred_cond_non_loop_exit): Move...
4953         (graphite_can_represent_init): Move...
4954         (graphite_can_represent_scev): Move...
4955         (stmt_has_simple_data_refs_p): Move...
4956         (stmt_has_side_effects):  Move...
4957         (graphite_can_represent_stmt): Move...
4958         (scop_detection): ... here.
4959         (sese_dom_walker): ... and here.
4960         (build_scops): Call all moved functions.
4961         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
4962         (all_non_dominated_preds_marked_p): Move...
4963         (build_scop_bbs_1): Move...
4964         (build_scop_bbs): Move...
4965         (set_scop_parameter_dim): Move...
4966         (nb_pbbs_in_loops): Move...
4967         (build_poly_scop): Do not call all the moved functions.
4969 2015-10-05  Martin Jambor  <mjambor@suse.cz>
4970             Jan Hubicka  <hubicka@ucw.cz>
4972         * ipa-cp.c (ipcp_alignment_lattice): New type.
4973         (ipcp_param_lattices): Use the above to represent alignment.
4974         (ipcp_alignment_lattice::print): New function.
4975         (print_all_lattices): Use it to print alignment information.
4976         (ipcp_alignment_lattice::top_p): New function.
4977         (ipcp_alignment_lattice::bottom_p): Likewise.
4978         (ipcp_alignment_lattice::set_to_bottom): Likewise.
4979         (ipcp_alignment_lattice::meet_with_1): Likewise.
4980         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
4981         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
4982         (initialize_node_lattices): Likewise.
4983         (propagate_alignment_accross_jump_function): Work with the new class
4984         for alignment lattices.
4985         (propagate_constants_accross_call): Pass only the alignment lattice to
4986         propagate_alignment_accross_jump_function.
4987         (ipcp_store_alignment_results): Work with the new class for alignment
4988         lattices.
4990 2015-10-05  Marek Polacek  <polacek@redhat.com>
4992         PR tree-optimization/67821
4993         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
4995 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
4997         PR other/65021
4998         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
4999         function to...
5000         (mkoffload_cleanup): ... this.  Adjust all users.
5001         (maybe_unlink): Look at save_temps and verbose flags instead of
5002         debug flag.
5003         (main): Parse "-save-temps" flag.
5004         (generate_target_descr_file, generate_target_offloadend_file)
5005         (generate_host_descr_file, prepare_target_image): Pass it on.
5006         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
5007         (mkoffload_cleanup): New function.
5008         (maybe_unlink): Look at save_temps and verbose flags instead of
5009         debug flag.
5010         (main): Instead of calling utils_cleanup, register atexit handler
5011         for mkoffload_cleanup.
5012         (main): Parse "-save-temps" flag.
5013         (compile_native, main): Pass it on.
5014         * lto-wrapper.c (compile_offload_image): Likewise.
5016 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5018         * gimple.h (gimple_op_ptr): Require a non const gimple *.
5019         (gimple_assign_lhs_ptr): Likewise.
5020         (gimple_assign_rhs1_ptr): Likewise.
5021         (gimple_assign_rhs2_ptr): Likewise.
5022         (gimple_assign_rhs3_ptr): Likewise.
5023         (gimple_call_lhs_ptr): Likewise.
5024         (gimple_call_fn_ptr): Likewise.
5025         (gimple_call_chain_ptr): Likewise.
5026                 (gimple_call_arg_ptr): Likewise.
5027                 (gimple_cond_lhs_ptr): Likewise.
5028         (gimple_cond_rhs_ptr): Likewise.
5029         (gimple_switch_index_ptr): Likewise.
5030         (gimple_return_retval_ptr): Likewise.
5032 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5034         * gimple.h (gimple_asm_input_op_ptr): Remove.
5035         (gimple_asm_output_op_ptr): Likewise.
5037 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5039         * gimple.h (gimple_location_ptr): Remove.
5040         * tree-vrp.c (check_all_array_refs): Adjust.
5042 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5044         * tree-ssa-operands.c (build_uses): store tree * instead of
5045         tree.
5046         (finalize_ssa_uses): Adjust.
5047         (append_use): Likewise.
5048         (verify_ssa_operands): Likewise.
5050 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5052         * real.h (build_real_truncate): Declare.
5053         * tree.c (build_real_truncate): New function.
5054         (strip_float_extensions): Use it.
5055         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
5056         (fold_builtin_hypot, fold_builtin_pow): Likewise.
5057         * match.pd: Likewise.
5059 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
5060            Jiong Wang  <jiong.wang@arm.com>
5062         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
5064 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5066         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
5067         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
5068         (aarch64_print_operand, aarch64_float_const_representable_p)
5069         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
5070         instead of REAL_VALUE_FROM_CONST_DOUBLE.
5071         * config/arc/arc.c (arc_print_operand): Likewise.
5072         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
5073         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
5074         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
5075         Likewise.
5076         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
5077         (consttable_16): Likewise.
5078         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
5079         * config/avr/avr.c (avr_print_operand): Likewise.
5080         * config/bfin/bfin.md: Likewise (in a define_split).
5081         * config/c6x/c6x.md: Likewise (in a define_split).
5082         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
5083         (cr16_print_operand): Likewise.
5084         * config/cris/cris.c (cris_print_operand): Likewise.
5085         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
5086         * config/fr30/fr30.c (fr30_print_operand): Likewise.
5087         (fr30_const_double_is_zero): Likewise.
5088         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
5089         * config/frv/frv.md: Likewise (in a define_split).
5090         * config/frv/predicates.md (int_2word_operand): Likewise.
5091         * config/h8300/h8300.c (h8300_print_operand): Likewise.
5092         * config/i386/i386.c (standard_80387_constant_p): Likewise.
5093         (ix86_print_operand, ix86_split_to_parts): Likewise.
5094         * config/i386/i386.md: Likewise (in a define_split).
5095         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
5096         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
5097         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
5098         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
5099         (print_operand): Likewise.
5100         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
5101         * config/mep/mep.md: Likewise (in define_split).
5102         * config/microblaze/microblaze.c (microblaze_const_double_ok)
5103         (print_operand): Likewise.
5104         * config/mips/mips.md (consttable_float): Likewise.
5105         * config/mmix/mmix.c (mmix_intval): Likewise.
5106         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
5107         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
5108         * config/pa/pa.c (pa_singlemove_string): Likewise.
5109         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
5110         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
5111         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
5112         (output_toc): Likewise.
5113         * config/rs6000/rs6000.md: Likewise (in define_splits).
5114         * config/rx/rx.c (rx_print_operand): Likewise.
5115         * config/s390/s390.c (s390_output_pool_entry): Likewise.
5116         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5117         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
5118         (and also in define_splits).
5119         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
5120         (fp_high_losum_p): Likewise.
5121         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
5122         (*movsf_high): Likewise.
5123         * config/spu/spu.c (const_double_to_hwint): Likewise.
5124         * config/v850/v850.c (const_double_split): Likewise.
5125         * config/vax/vax.c (vax_float_literal): Likewise.
5126         * config/visium/visium.c (visium_expand_copysign): Likewise.
5127         * config/visium/visium.md: Likewise (in define_split).
5128         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5129         * config/xtensa/xtensa.c (print_operand): Likewise.
5130         (xtensa_output_literal): Likewise.
5131         * cprop.c (implicit_set_cond_p): Likewise.
5132         * dwarf2out.c (insert_float): Likewise.
5133         * expmed.c (expand_mult, make_tree): Likewise.
5134         * expr.c (compress_float_constant): Likewise.
5135         * rtlanal.c (split_double): Likewise.
5136         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5137         (simplify_const_unary_operation, simplify_binary_operation_1)
5138         (simplify_const_binary_operation): Likewise.
5139         (simplify_const_relational_operation): Likewise.
5140         * varasm.c (output_constant_pool_2): Likewise.
5142 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5144         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
5145         instead of CONST_DOUBLE_FROM_REAL_VALUE.
5146         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
5147         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
5148         instead of CONST_DOUBLE_FROM_REAL_VALUE.
5149         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
5150         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
5151         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
5152         (ix86_emit_swsqrtsf): Likewise.
5153         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
5154         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5155         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5156         * config/pa/pa.c (pa_expand_builtin): Likewise.
5157         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
5158         (rs6000_scale_v2df): Likewise.
5159         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
5160         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
5161         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
5162         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
5163         (vec_ctul): Likewise.
5164         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
5165         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
5166         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
5167         * cse.c (fold_rtx): Likewise.
5168         * emit-rtl.c (immed_double_const): Likewise (in comments).
5169         (init_emit_once): Likewise.
5170         * expr.c (compress_float_constant, expand_expr_real_1)
5171         (const_vector_from_tree): Likewise.
5172         * optabs.c (expand_float, expand_fix): Likewise.
5173         * reg-stack.c (reg_to_stack): Likewise.
5174         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5175         (simplify_const_unary_operation, simplify_binary_operation_1)
5176         (simplify_const_binary_operation, simplify_relational_operation)
5177         (simplify_immed_subreg): Likewise.
5179 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5181         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
5182         * doc/tm.texi: Regenerate.
5183         * real.h (REAL_ARITHMETIC): Delete.
5184         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
5185         (ix86_expand_round_sse4): Use real_arithmetic instead of
5186         REAL_ARITHMETIC.
5187         * config/i386/sse.md (round<mode>2): Likewise.
5188         * rtl.h (rtx_to_tree_code): Likewise (in comment).
5189         * explow.c (rtx_to_tree_code): Likewise (in comment).
5190         * match.pd: Likewise.
5191         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5192         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5193         (expand_pow_as_sqrts): Likewise.
5194         * tree-pretty-print.c (dump_generic_node): Remove code that
5195         was conditional on REAL_ARITHMETIC being undefined.
5197 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5199         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
5200         * doc/tm.texi: Regenerate.
5201         * real.h (real_less): Declare.
5202         (REAL_VALUES_LESS): Delete.
5203         * real.c (real_less): New function.
5204         (real_compare): Use it.
5205         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
5206         of REAL_VALUES_LESS.
5207         * config/microblaze/microblaze.c (microblaze_const_double_ok):
5208         Likewise.
5209         * fold-const.c (fold_convert_const_int_from_real): Likewise.
5210         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5211         (simplify_const_relational_operation): Likewise.
5212         * tree-call-cdce.c (check_pow): Likewise.
5213         (gen_conditions_for_pow_cst_base): Likewise.
5215 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5217         * real.h (REAL_VALUES_IDENTICAL): Delete.
5218         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
5219         instead of REAL_VALUES_IDENTICAL.
5220         * fold-const.c (operand_equal_p): Likewise.
5221         * ipa-icf.c (sem_variable::equals): Likewise.
5222         * tree-complex.c (some_nonzerop): Likewise.
5223         (expand_complex_multiplication): Likewise.
5224         * tree.c (simple_cst_equal): Likewise.
5225         * varasm.c (compare_constant): Likewise.
5227 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
5229         * real.h (real_equal): Declare.
5230         (REAL_VALUES_EQUAL): Delete.
5231         * real.c (real_equal): New function.
5232         (real_compare): Use it.
5233         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
5234         * doc/tm.texi: Regenerate.
5235         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
5236         real_equal instead of REAL_VALUES_EQUAL.
5237         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
5238         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
5239         (fp_const_from_val): Likewise.
5240         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
5241         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
5242         (floating_exact_log2): Likewise.
5243         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5244         * config/vax/vax.c (vax_float_literal): Likewise.
5245         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5246         * cprop.c (implicit_set_cond_p): Likewise.
5247         * expmed.c (expand_mult): Likewise.
5248         * fold-const.c (const_binop): Likewise.
5249         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5250         (simplify_const_binary_operation): Likewise.
5251         (simplify_const_relational_operation): Likewise.
5252         * tree-call-cdce.c (check_pow): Likewise.
5253         (gen_conditions_for_pow_cst_base): Likewise.
5254         * tree-inline.c (estimate_num_insns): Likewise.
5255         * tree-ssa-dom.c (record_equality): Likewise.
5256         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5257         (gimple_expand_builtin_pow): Likewise.
5258         (pass_optimize_widening_mul::execute): Likewise.
5259         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5260         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
5261         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
5263 2015-10-05  Richard Biener  <rguenther@suse.de>
5265         PR ipa/67783
5266         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
5267         consider loop header PHI defs as IVs.
5269 2015-10-05  Richard Biener  <rguenther@suse.de>
5271         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
5272         call handling ...
5273         (create_expression_by_pieces): ... here and build GIMPLE
5274         calls directly.  Use gimple_build API and avoid force_gimple_operand.
5275         (insert_into_preds_of_block): Simplify.
5276         (do_regular_insertion): Add comment.
5278 2015-10-04  Jason Merrill  <jason@redhat.com>
5280         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
5282 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
5284         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
5285         check for general register.
5286         (ix86_emit_save_regs): Ditto.
5287         (ix86_emit_save_regs_using_mov): Ditto.
5288         (ix86_emit_restore_regs_using_pop): Ditto.
5289         (ix86_emit_restore_regs_using_mov): Ditto.
5291 2015-10-03  Marek Polacek  <polacek@redhat.com>
5293         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
5294         (insn-dfatab.o): Likewise.
5296 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
5298         * config.gcc (xtensa*-*-uclinux*): New configuration.
5299         * config/xtensa/uclinux.h: New file.
5300         * config/xtensa/uclinux.opt: New file.
5302 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
5304         * doc/cpp.texi (Standard Predefined Macros): Document value of
5305         __cplusplus for C++14.
5307 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
5309         * gcc.c (process_command): Use spec_machine rather than
5310         spec_host_machine to build tooldir_prefix2.
5312 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
5313             Bernd Schmidt  <bernds@codesourcery.com>
5315         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
5316         (Token, Stmt): Remove structs.
5317         (decls, vars, fns): Remove variables.
5318         (alloc_comment, append_stmt, is_keyword): Remove macros.
5319         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
5320         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
5321         (parse_init, parse_file): Remove functions.
5322         (read_file): Accept a pointer to a length and store into it.
5323         (process): Don't try to parse the input file, just write it out as
5324         a string, but looking for maps.  Also write out the length.
5325         (main): Don't use "-S" to compile PTX code.
5327 2015-10-02  Jeff Law  <law@redhat.com>
5329         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
5330         fixups.
5332 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
5334         PR target/67822
5335         * config/nvptx/mkoffload.c (main): Scan the argument vector for
5336         -fopenmp, and skip generating an offloading image if specified.
5338 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
5340         * system.h (ROUND_UP): New macro definition.
5341         (ROUND_DOWN): Ditto.
5342         * ggc-page.c (ROUND_UP): Remove local macro definition.
5343         (PAGE_ALIGN): Implement using ROUND_UP macro.
5345         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
5346         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
5347         to align values.
5348         (ix86_compute_frame_layout): Ditto.
5349         (ix86_expand_prologue): Ditto.
5350         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
5351         to round down values.
5352         (expand_set_or_movmem_via_rep): Ditto.
5354 2015-10-02  Marek Polacek  <polacek@redhat.com>
5356         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
5358 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
5360         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
5361         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
5362         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
5363         (free_gimple_bb): Renamed free_gimple_poly_bb.
5364         (try_generate_gimple_bb): Hoist loop invariant code.
5365         (analyze_drs_in_stmts): Same.
5366         (build_scop_drs): Call renamed functions.
5367         (new_pbb_from_pbb): Same.
5368         (scop_ivs_can_be_represented): Delete as functionality now moved to
5369         graphite-scop-detection.c
5370         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
5372 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
5374         * graphite-scop-detection.c (stmt_has_side_effects): New function
5375           outlined from stmt_simple_for_scop_p.
5376         (graphite_can_represent_stmt): Same.
5377         (stmt_simple_for_scop_p): Moved code out of this function for better
5378         readability.
5380 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
5382         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
5383         F_AVX512IFMA.
5384         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
5386 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5388         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
5390 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
5392         PR rtl-optimization/67756
5393         * lra-constraints.c (match_reload): Add a new parameter.  Use it
5394         for creating a pseudo with the same value.
5395         (curr_insn_transform): Pass a new argument to match_reload.
5397 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
5399         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
5400         (expand_vec_perm_even_odd_1): Handle V64QImode.
5401         (ix86_expand_vec_perm_const_1): Try expansion with
5402         expand_vec_perm_even_odd_trunc as well.
5403         * config/i386/sse.md (VI124_AVX512F): Rename to ...
5404         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
5405         to V54QI.
5406         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
5407         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
5408         to V32HI and V16SI.
5409         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
5410         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
5411         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
5412         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
5413         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
5414         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
5416 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
5418         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
5419         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
5421 2015-10-02  Jason Merrill  <jason@redhat.com>
5423         PR c/59218
5424         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
5425         (diagnose_tm_1_op): Also diagnose volatile accesses in
5426         transaction_safe function.
5428 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
5430         * system.h (malloc.h): Don't include obsolete header.
5432 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5434         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
5435         (TLS_SECTION_ASM_FLAG): Delete.
5437 2015-10-02  Marek Polacek  <polacek@redhat.com>
5439         PR c/64249
5440         * doc/invoke.texi: Document -Wduplicated-cond.
5441         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
5442         (insn-dfatab.o): Likewise.
5443         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
5444         warning.
5446 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
5448         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
5449         sequences.
5451 2015-10-02  Renlin Li  <renlin.li@arm.com>
5453         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
5455 2015-10-02  Renlin Li  <renlin.li@arm.com>
5457         PR target/66776
5458         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
5460 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5462         PR rtl-optimization/67786
5463         PR rtl-optimization/67787
5464         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
5465         it modifies a reg used in the condition calculation.
5467 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
5469         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
5470         alternatives for reads from memory and moves from general-purpose
5471         registers.
5472         (*aarch64_combinez_be<mode>): Likewise.
5474 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
5476         PR target/51726
5477         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
5478         selectany within this function without need to keep attribute.
5479         (i386_pe_encode_section_info): Remove selectany-code.
5481 2015-10-02  Richard Biener  <rguenther@suse.de>
5483         * tree-ssa-sccvn.c (has_VN_INFO): New function.
5484         (free_scc_vn): Use it.
5485         (visit_use): Remove dead code and refactor to use gassign
5486         and use less indentation.
5488 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5490         PR target/67788
5491         PR target/67789
5492         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
5493         (rs6000_cannot_copy_insn_p): New function.
5494         * config/rs6000/rs6000.md (cannot_copy): New attribute.
5495         (load_toc_v4_PIC_1_normal): Set cannot_copy.
5496         (load_toc_v4_PIC_1_476): Ditto.
5498 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
5500         * graphite-scop-detection.c (struct sese_l): New conversion constructor
5501         so that this type can be pushed into a vec.
5502         (class scop_builder): use sese_l to collect scops.
5503         (get_scops): New getter function.
5504         (remove_intersecting_scops): Use sese_l instead of scops_p.
5505         (intersects): Same.
5506         (add_scop): Same.
5507         (subsumes): Same.
5508         (remove_subscops): Same.
5509         (build_scops): Add scops to vec<scops_p> once all the scops have been
5510         detected.
5512 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
5514         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5515         Renamed type from gimple_bb_p to gimple_poly_bb_p.
5516         (translate_isl_ast_node_user): Same.
5517         * graphite-poly.c (new_poly_bb): Same.
5518         * graphite-poly.h (gbb_from_bb): Same.
5519         * sese.h: Same.
5520         * graphite-sese-to-poly.c (new_gimple_bb):
5521         gimple_bb_p -> gimple_poly_bb_p
5522         (build_scop_scattering): Same.
5523         (find_params_in_bb): Same.
5524         (add_conditions_to_domain): Same.
5525         (sese_dom_walker::before_dom_children): Same.
5526         (analyze_drs_in_stmts): Same.
5527         (new_pbb_from_pbb): Same.
5528         (free_data_refs_aux): New pointer to type base_alias_pair.
5529         * graphite-sese-to-poly.h: Same.
5530         * sese.c (if_region_set_false_region): Fixed Indentation.
5531         (move_sese_in_condition): Same.
5533 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
5534             Aditya Kumar  <aditya.k7@samsung.com>
5536         PR tree-optimization/66980
5537         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5538         when data reference analysis has failed.
5540 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
5541             Aditya Kumar  <aditya.k7@samsung.com>
5543         PR tree-optimization/67754
5544         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5545         scev analysis on the same loop nest as analyze_drs_in_stmts.
5546         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5547         renamed...
5548         (try_generate_gimple_bb): Call outermost_loop_in_sese.
5549         (analyze_drs_in_stmts): Same.
5550         * sese.c (outermost_loop_in_sese): ...here.
5552 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
5553             Aditya Kumar  <aditya.k7@samsung.com>
5555         PR tree-optimization/67754
5556         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5557         recursion on the inner loops.
5559 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5561         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5562         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5563         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5564         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5565         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5567 2015-10-01  Marek Polacek  <polacek@redhat.com>
5569         PR c/65345
5570         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5571         create_tmp_var_raw rather than create_tmp_var.
5573 2015-10-01  Marek Polacek  <polacek@redhat.com>
5575         PR tree-optimization/67769
5576         * tree-ssa-phiopt.c (conditional_replacement): Call
5577         reset_flow_sensitive_info_in_bb.
5578         (minmax_replacement): Likewise.
5579         (abs_replacement): Likewise.
5581 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
5583         * builtins.c: Don't include gomp-constants.h.
5584         (fold_builtin_1): Don't fold acc_on_device here.
5585         * gimple-fold.c: Include gomp-constants.h.
5586         (gimple_fold_builtin_acc_on_device): New.
5587         (gimple_fold_builtin): Call it.
5589 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
5591         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5592         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5594 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
5596         * config/arm/aarch-common-protos.h
5597         (aarch_accumulator_forwarding): New.
5598         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5599         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5600         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5601         * config/arm/cortex-a53.md: Rewrite.
5603 2015-10-01  Richard Biener  <rguenther@suse.de>
5605         * gimple-match.h (mprts_hook): Declare.
5606         * gimple-match.head.c (mprts_hook): Define.
5607         (maybe_push_res_to_seq): Use new hook.
5608         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5609         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5610         (vn_ssa_aux::has_constants): Remove.
5611         * tree-ssa-sccvn.c: Include gimple-match.h.
5612         (VN_INFO_GET): Assert we don't re-use SSA names.
5613         (vn_get_expr_for): Remove.
5614         (expr_has_constants): Likewise.
5615         (stmt_has_constants): Likewise.
5616         (simplify_binary_expression): Likewise.
5617         (simplify_unary_expression): Likewise.
5618         (vn_lookup_simplify_result): New hook.
5619         (visit_copy): Adjust.
5620         (visit_reference_op_call): Likewise.
5621         (visit_phi): Likewise.
5622         (visit_use): Likewise.
5623         (process_scc): Likewise.
5624         (init_scc_vn): Likewise.
5625         (visit_reference_op_load): Likewise.  Use match-and-simplify and
5626         a gimple seq for inserted expressions.
5627         (try_to_simplify): Remove GENERIC stmt combining code.
5628         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5629         * tree-ssa-pre.c (eliminate_insert): Adjust.
5630         (eliminate_dom_walker::before_dom_children): Likewise.
5632 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5634         * doc/invoke.texi (Optimization Options): Add
5635         -freorder-blocks-algorithm=.
5636         (Optimize Options) <-O>: Add -freorder-blocks.
5637         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
5638         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5639         <-freorder-blocks>: Also enabled at levels -O and -Os.
5640         <-freorder-blocks-algorithm=>: Document new option.
5642 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5644         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5645         with flag_reorder_blocks_algorithm.
5646         * common.opt (freorder-blocks-algorithm=): New flag.
5647         (reorder_blocks_algorithm): New enum.
5648         * flag-types.h (reorder_blocks_algorithm): New enum.
5649         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5650         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5652 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5654         * bb-reorder.c: Add intro comment.
5655         (reorder_basic_blocks_software_trace_cache): Print a header to
5656         the dump file.
5657         (edge_order): New function.
5658         (reorder_basic_blocks_simple): New function.
5659         (reorder_basic_blocks): Choose between the STC and the simple
5660         algorithms (always choose the former).
5662 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
5664         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5665         function, factored out from ...
5666         (reorder_basic_blocks): ... here.
5668 2015-10-01  Tom de Vries  <tom@codesourcery.com>
5670         * tree-cfg.c (dump_function_to_file): Dump function attributes using
5671         __attribute__(()) string.  Move dumping of function attributes to before
5672         function name.
5674 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
5676         PR target/66870
5677         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5678         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5679         based on gold linker version.
5680         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5681         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5682         * configure, config.in: Regenerate.
5684 2015-10-01  Alan Modra  <amodra@gmail.com>
5686         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5687         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5688         (rs6000_output_mi_thunk): Likewise.
5690 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
5692         * config/nvptx/mkoffload.c (process): Change offload data format.
5694 2015-09-30  Jeff Law  <law@redhat.com>
5696         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5697         with constant conditions.
5698         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5699         (remove_ctrl_stmt_and_useless_edges): No longer static.
5700         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5701         (remove_ctrl_stmt_and_useless_edges): Likewise.
5703 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
5704             Cesar Philippidis  <cesar@codesourcery.com>
5706         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5707         (TARGET_GOACC_VALIDATE_DIMS): Override.
5708         * target.def (TARGET_GOACC): New target hook prefix.
5709         (validate_dims): New hook.
5710         * targhooks.h (default_goacc_validate_dims): New.
5711         * omp-low.c (oacc_validate_dims): New.
5712         (execute_oacc_device_lower): New.
5713         (default_goacc_validate_dims): New.
5714         (pass_data_oacc_device_lower): New.
5715         (pass_oacc_device_lower): New pass.
5716         (make_pass_oacc_device_lower): New.
5717         * tree-pass.h (make_pass_oacc_device_lower): Declare.
5718         * passes.def (pass_oacc_device_lower): Add it.
5719         * doc/tm.texi: Rebuilt.
5720         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5721         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5723 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5725         PR rtl-optimization/67037
5726         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5728 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
5730         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5731         * passes.c: Include tree-ssanames.h.
5732         (execute_function_todo): Flush the pending free SSA_NAMEs after
5733         eliminating unreachable basic blocks.
5734         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5735         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5736         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5737         (flush_ssanames_freelist): New function.
5738         (release_ssaname_fn): Put released names on the queue.
5739         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5740         * tree-ssanames.h (flush_ssanames_freelist): Declare.
5742 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
5744         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5745         (generate_target_descr_file, generate_target_offloadend_file)
5746         (generate_host_descr_file, prepare_target_image): Pass it on.
5747         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5748         (compile_native, main): Pass it on.
5749         * lto-wrapper.c (compile_offload_image): Likewise.
5751 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
5752             Ilya Verbin  <ilya.verbin@intel.com>
5753             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5755         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5756         (prepare_target_image, main): Refactor argv building to use
5757         obstacks.
5759 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5761         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5762         * config/spu/spu.c (spu_expand_atomic_op): New function.
5763         * config/spu/spu.md (AINT): New mode iterator.
5764         (ATOMIC): New code iterator.
5765         (atomic_name, atomic_pred): New code predicates.
5766         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5767         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5768         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5769         "atomic_<atomic_name>_fetch<mode>"): Likewise.
5771 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
5773         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
5774         debug insns.
5775         (scalar_chain::convert_reg): Likewise.
5777 2015-09-30  Richard Biener  <rguenther@suse.de>
5779         * builtins.c: Add comment that no new simplifications should
5780         be added here.
5782 2015-09-30  Marek Polacek  <polacek@redhat.com>
5784         PR tree-optimization/67690
5785         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
5786         reset_flow_sensitive_info_in_bb.
5787         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
5788         * tree-ssanames.c: Include "gimple-iterator.h".
5789         (reset_flow_sensitive_info_in_bb): New function.
5790         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
5792 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
5794         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
5795         variable, replacing it with...
5796         (offload_abi): ... this new variable.  Adjust all users.
5797         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
5799 2015-09-30  Matthias Klose  <doko@ubuntu.com>
5801         * configure.ac: Remove extraneous ;;.
5802         * configure: Regenerate.
5804 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
5806         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
5807         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
5808         predicate, disallow register for operand 2.
5810 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
5812         * graphite-dependences.c (scop_get_dependences): Moved in down
5813         in order to be visible to its caller.
5814         * graphite-poly.h: Removed compute_deps, and extend_schedule.
5816 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
5817             Aditya Kumar  <aditya.k7@samsung.com>
5819         PR tree-optimization/67754
5820         * graphite-optimize-isl.c (optimize_isl): Call
5821         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
5823 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
5825         * builtins.c (expand_builtin_acc_on_device): Delete.
5826         (expand_builtin): Don't call it.
5827         (fold_builtin_1): Fold acc_on_device.
5829 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
5831         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
5832         (ix86_nsaved_sseregs): Likewise.
5834 2015-09-29  Jeff Law  <law@redhat.com>
5836         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
5837         computation of unused value.
5839         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
5840         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
5841         inline macro expansion.
5843         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
5845         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
5846         (gen_shl_sext): Likewise.
5847         * config/sh/sh.md (divsi3): Likewise.
5848         (imm->ext_dest_operand splitter): Likewise.
5850 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
5851             Aditya Kumar  <aditya.k7@samsung.com>
5853         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
5854         (nb_data_writes_in_bb): Remove.
5855         (split_pbb): Remove.
5856         (split_reduction_stmt): Remove.
5857         (is_reduction_operation_p): Remove.
5858         (phi_contains_arg): Remove.
5859         (follow_ssa_with_commutative_ops): Remove.
5860         (detect_commutative_reduction_arg): Remove.
5861         (detect_commutative_reduction_assign): Remove.
5862         (follow_inital_value_to_phi): Remove.
5863         (edge_initial_value_for_loop_phi): Remove.
5864         (initial_value_for_loop_phi): Remove.
5865         (used_outside_reduction): Remove.
5866         (detect_commutative_reduction): Remove.
5867         (translate_scalar_reduction_to_array_for_stmt): Remove.
5868         (remove_phi): Remove.
5869         (dr_indices_valid_in_loop): Remove.
5870         (close_phi_written_to_memory): Remove.
5871         (translate_scalar_reduction_to_array): Remove.
5872         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
5873         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
5874         (rewrite_commutative_reductions_out_of_ssa): Remove.
5875         (build_poly_scop): Remove call to
5876         rewrite_commutative_reductions_out_of_ssa.
5878 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
5880         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
5881         Add new insn types for vector load and store pairs.
5882         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
5883         types "neon_ldp{,_q}".
5884         * config/arm/cortex-a57.md (neon_load_c): Add insn types
5885         "neon_ldp{,_q}".
5886         (neon_store_complex): Add insn types "neon_stp{,_q}".
5887         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
5888         "neon_{ldp,stp}_q".
5890 2015-09-29  Jeff Law  <law@redhat.com>
5892         * config/rx/constraints.md (Int08): Fix undefined left shift
5893         behaviour.
5894         (Sint08, Sint16, Sint24): Likewise.
5895         * config/rx/rx.c (rx_get_stack_layout): Likewise.
5897         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
5898         behaviour.
5900         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
5901         left shift behaviour.
5902         * config/msp430/constraints.md ('L' constraint): Similarly.
5903         ('Ys' constraint): Similarly.
5905 2015-09-29  Richard Biener  <rguenther@suse.de>
5907         PR tree-optimization/67170
5908         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
5909         the translate function pointer parameter to get the
5910         bool whether to disambiguate only by reference.
5911         (walk_non_aliased_vuses): Likewise.
5912         * tree-ssa-alias.c (maybe_skip_until): Adjust.
5913         (get_continuation_for_phi_1): Likewise.
5914         (get_continuation_for_phi): Likewise.
5915         (walk_non_aliased_vuses): Likewise.
5916         * tree-ssa-sccvn.c (const_parms): New bitmap.
5917         (vn_reference_lookup_3): Adjust for interface change.
5918         Disambiguate parameters pointing to readonly memory.
5919         (free_scc_vn): Free const_parms.
5920         (run_scc_vn): Initialize const_parms from a fn spec attribute.
5922 2015-09-29  Richard Biener  <rguenther@suse.de>
5924         PR tree-optimization/67741
5925         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
5926         builtin calls with correct signature.
5928 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
5930         PR target/65105
5931         * config/i386/i386.c: Include dbgcnt.h.
5932         (has_non_address_hard_reg): New.
5933         (convertible_comparison_p): New.
5934         (scalar_to_vector_candidate_p): New.
5935         (remove_non_convertible_regs): New.
5936         (scalar_chain): New.
5937         (scalar_chain::scalar_chain): New.
5938         (scalar_chain::~scalar_chain): New.
5939         (scalar_chain::add_to_queue): New.
5940         (scalar_chain::mark_dual_mode_def): New.
5941         (scalar_chain::analyze_register_chain): New.
5942         (scalar_chain::add_insn): New.
5943         (scalar_chain::build): New.
5944         (scalar_chain::compute_convert_gain): New.
5945         (scalar_chain::replace_with_subreg): New.
5946         (scalar_chain::replace_with_subreg_in_insn): New.
5947         (scalar_chain::emit_conversion_insns): New.
5948         (scalar_chain::make_vector_copies): New.
5949         (scalar_chain::convert_reg): New.
5950         (scalar_chain::convert_op): New.
5951         (scalar_chain::convert_insn): New.
5952         (scalar_chain::convert): New.
5953         (convert_scalars_to_vector): New.
5954         (pass_data_stv): New.
5955         (pass_stv): New.
5956         (make_pass_stv): New.
5957         (ix86_option_override): Created and register stv pass.
5958         (flag_opts): Add -mstv.
5959         (ix86_option_override_internal): Likewise.
5960         * config/i386/i386.md (SWIM1248x): New.
5961         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
5962         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
5963         (*anddi3_doubleword): New.
5964         (*zext<mode>_doubleword): New.
5965         (*zextsi_doubleword): New.
5966         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
5967         (*<code>di3_doubleword): New.
5968         * config/i386/i386.opt (mstv): New.
5969         * dbgcnt.def (stv_conversion): New.
5971 2015-09-29  Tom de Vries  <tom@codesourcery.com>
5973         * tree-cfg.c (dump_function_to_file): Dump function attributes.
5975 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5977         PR target/67716
5978         * config/sh/sh.c (sh_override_options_after_change): New.
5979         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5980         (sh_option_override): Move align_loops, align_jumps and
5981         align_functions handling into sh_override_options_after_change.
5983 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
5985         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
5986         (nvptx_record_offload_symbol): Record function execution geometry.
5987         * config/nvptx/mkoffload.c (process): Include launch geometry in
5988         function data.
5989         * omp-low.c (oacc_launch_pack): New.
5990         (replace_oacc_fn_attrib): New.
5991         (set_oacc_fn_attrib): New.
5992         (get_oacc_fn_attrib): New.
5993         (expand_omp_target): Create keyed varargs for GOACC_parallel call
5994         generation.
5995         * omp-low.h (get_oacc_fn_attrib): Declare.
5996         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
5997         (DEF_FUNCTION_TYPE_VAR_11): Delete.
5998         * tree.h (OMP_CLAUSE_EXPR): New.
5999         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
6001 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
6002             Sebastian Pop  <s.pop@samsung.com>
6004         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
6006 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
6007             Sebastian Pop  <s.pop@samsung.com>
6009         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
6010         * graphite-scop-detection.c (struct sese_l): New type.
6011         (get_entry_bb): API for getting entry bb of SESE.
6012         (get_exit_bb): API for getting exit bb of SESE.
6013         (class debug_printer): New type.  Simple printer in debug mode.
6014         (trivially_empty_bb_p): New.  Return true when BB is empty or
6015         contains only debug instructions.
6016         (graphite_can_represent_expr): Call scalar_evoution_in_region
6017         instead of analyze_scalar_evolution.  Pass in scop instead of only
6018         the scop entry.
6019         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
6020         scop entry.
6021         (stmt_simple_for_scop_p): Same.
6022         (harmful_stmt_in_bb): Same.
6023         (graphite_can_represent_loop): Deleted.
6024         (struct scopdet_info): Deleted.
6025         (scopdet_basic_block_info): Deleted.
6026         (build_scops_1): Deleted.
6027         (bb_in_sd_region): Deleted.
6028         (find_single_entry_edge): Deleted.
6029         (find_single_exit_edge): Deleted.
6030         (create_single_entry_edge): Deleted.
6031         (sd_region_without_exit): Deleted.
6032         (create_single_exit_edge): Deleted.
6033         (unmark_exit_edges): Deleted.
6034         (mark_exit_edges): Deleted.
6035         (create_sese_edges): Deleted.
6036         (build_graphite_scops): Deleted.
6037         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
6038         (build_scops): Use the new scop_builder to build scops.
6039         (dot_all_scops_1): Use the new pretty printer.  Print loop father
6040         as well.
6041         (loop_body_is_valid_scop): New.  Return true if loop body is a
6042         valid scop.
6043         (class scop_builder): New.  Builds SCoPs for polyhedral
6044         optimizations.
6045         (scop_builder): New constructor.
6046         (static sese_l invalid_sese): sese_l with invalid edges.
6047         (get_sese): Get an sese (from a loop) if possible, invalid_sese
6048         otherwise.
6049         (get_nearest_dom_with_single_entry): Get nearest dominator of a
6050         basic_block with single entry.  Return NULL if we get to the
6051         beginning of a function.
6052         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
6053         a basic_block with single exit.  Return NULL if we get to the
6054         beginning of a function.
6055         (print_sese): Pretty-print SESE.
6056         (merge_sese): Merge two SESEs if possible and return the new SESE.
6057         (build_scop_depth): Start building the SCoP within a loop nest.
6058         (build_scop_breadth): Start building the SCoP at a single loop
6059         depth.  Merge adjacent SESEs if valid.
6060         (can_represent_loop_1): Returns true if Graphite can represent
6061         loop inside SCoP.  Helper for can_represent_loop.
6062         (can_represent_loop): Returns true if Graphite can represent LOOP
6063         and all its nested loops in SCoP.
6064         (loop_is_valid_scop): Returns true if LOOP and all its nests
6065         constitute a valid SCoP.
6066         (region_has_one_loop): Returns true of a region has only one loop.
6067         (add_scop): Add SCoP to the list of valid scops.  Removes an
6068         already existing scop if it intersects with or subsumed by this one.
6069         (harmful_stmt_in_region): Returns true if SCoP has any statment
6070         which cannot be represented by Graphite.
6071         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
6072         (remove_subscops): Remove any SCoP from the list of already found
6073         SCoPs, if subsumed by S1.
6074         (intersects): Return true if region bounded by SCoPs S1 and S2
6075         intersect.
6076         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
6077         * graphite.c (print_graphite_scop_statistics):
6078         (print_graphite_statistics): Print SCoP info while debugging.
6079         (graphite_initialize): Early exit in case number of loops in a
6080         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
6081         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6082         (graphite_finalize):
6083         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
6084         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
6085         (recompute_all_dominators): Recalculate POST_DOMINATORS.
6086         * tree-cfg.c (print_loops): Print the function name while printing
6087         loops.
6089 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
6090             Sebastian Pop  <s.pop@samsung.com>
6092         PR tree-optimization/67700
6093         * graphite-sese-to-poly.c (parameter_index_in_region): Call
6094         invariant_in_sese_p_rec.
6095         (extract_affine): Same.
6096         (rewrite_cross_bb_scalar_deps): Call update_ssa.
6097         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
6098         * sese.h (invariant_in_sese_p_rec): Declare.
6100 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
6102         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
6104 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
6106         Revert:
6107         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6108                     Jiong Wang  <jiong.wang@arm.com>
6110         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6111         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6112         (REG_CLASS_NAMES): Likewise.
6113         (REG_CLASS_CONTENTS): Likewise.
6114         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6115         (aarch64_register_move_cost): Likewise.
6116         (aarch64_load_symref_appropriately): Invoke the new added pattern if
6117         possible.
6118         * config/aarch64/constraints.md (Uc0): New constraint.
6120 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
6122         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
6124 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
6126         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
6127         SECTION_EXCLUDE in XO mapping class.
6129 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
6131         PR target/54236
6132         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
6133         and handle ne and eq codes.
6134         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
6135         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
6136         CONST_INT_P.  Use reverse_condition.
6137         (sh_split_treg_set_expr): Likewise.
6139 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
6141         * config/arm/types.md (type): Add rotate_imm.
6142         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
6143         ROR immediate case.
6144         (*rorsi3_insn_uxtw): Likewise.
6145         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
6146         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
6147         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
6149 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6151         PR rtl-optimization/67481
6152         * ifcvt.c (contains_ccmode_rtx_p): New function.
6153         (insn_valid_noce_process_p): Use it.
6155 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6157         PR rtl-optimization/67456
6158         PR rtl-optimization/67464
6159         PR rtl-optimization/67465
6160         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
6161         move in the mode of x.  Handle combination of complex and simple
6162         block pairs as well as the case when one is empty.
6164 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6166         * doc/gimple.texi: Update references to gimple_statement_base.
6167         * gdbhooks.py: Likewise.
6168         * gimple.h: Likewise.
6170 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
6172         * config/sparc/driver-sparc.c: map LEON to leon3
6174 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
6176         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
6177           and make it inverse to change default
6178         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
6179           supervisor mode
6180         * doc/invoke.texi: Document change of default
6182 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
6184         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
6185         true on %f0 for a target without FPU.
6186         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
6187         without FPU.
6188         (untyped_return): Do not load %f0 for a target without FPU.
6190 2015-09-28  Andrew Pinski  <apinski@cavium.com>
6192         * config/aarch64/aarch64.md (prefetch):
6193         Change the predicate of operand 0 to register_operand.
6195 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
6197         * config/i386/predicates.md (register_sse4nonimm_operand): New
6198         predicate.
6199         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
6200         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
6201         Use register_sse4nonimm_operand as operand 0 predicate.
6202         (*vec_extractv8hi_sse2): Remove insn pattern.
6203         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
6204         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
6206 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
6207             Kaz Kojima  <kkojima@gcc.gnu.org>
6209         PR target/67391
6210         * config/sh/sh-protos.h (sh_lra_p): Declare.
6211         * config/sh/sh.c (sh_lra_p): Make non-static.
6212         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
6213         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
6214         Expand into addsi3_scr if operands[2] if needed.
6215         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
6216         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
6217         (addsi3_scr, *addsi3): New insn_and_split patterns.
6219 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
6221         PR rtl-optimization/64164
6222         PR tree-optimization/67312
6223         PR middle-end/67340
6224         PR middle-end/67490
6225         PR bootstrap/67597
6226         * cfgexpand.c (parm_in_stack_slot_p): Remove.
6227         (ssa_default_def_partition): Remove.
6228         (get_rtl_for_parm_ssa_default_def): Remove.
6229         (set_rtl): Check that RTL assignments match expectations.
6230         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
6231         default def location for params and results.  Record SSA names
6232         or types in REG and MEM attrs, respectively.
6233         (set_parm_rtl): New.
6234         (expand_one_ssa_partition): Drop logic that assigned MEMs with
6235         unassigned addresses.
6236         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
6237         deferred stack alloc vars.
6238         (expand_used_vars): Skip partitions holding parm default defs.
6239         Move adjust_one_expanded_partition_var loop...
6240         (pass_expand::execute): ... here.  Drop redundant assert.
6241         Adjust comments before the final loop over all ssa names.
6242         Require assigned rtl of parms and results to match exactly.
6243         Reset its attributes to match them, not any other variables in
6244         the same partition.
6245         (expand_debug_expr): Use entry value for PARM's default defs
6246         only iff they have zero nondebug uses.
6247         * cfgexpand.h (parm_in_stack_slot_p): Remove.
6248         (get_rtl_for_parm_ssa_default_def): Remove.
6249         (set_parm_rtl): Declare.
6250         * doc/invoke.texi: Improve wording.
6251         * explow.c (promote_decl_mode): Fix promote_function_mode for
6252         result decls not by reference.
6253         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
6254         bypass TYPE_MODE to get the actual vector mode.
6255         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
6256         2015-08-19's changes as follows.  Drop include of
6257         basic-block.h and df.h.
6258         (rtl_for_parm): Remove.
6259         (maybe_reset_rtl_for_parm): Remove.
6260         (parm_in_unassigned_mem_p): Remove.
6261         (use_register_for_decl): Add logic for RESULT_DECLs matching
6262         assign_parms' behavior.
6263         (split_complex_args): Revert.
6264         (assign_parms_augmented_arg_list): Revert.  Add comment
6265         referencing the logic above.
6266         (assign_parm_adjust_stack_rtl): Revert.
6267         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
6268         of SET_DECL_RTL.  Set up a REG if the parm demands so.
6269         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
6270         calls into a single set_parm_rtl.  Set up a temporary RTL
6271         temporarily for expand_assignment.
6272         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
6273         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
6274         (assign_bounds): Revert.
6275         (assign_parms): Revert.  Use set_parm_rtl.
6276         (allocate_struct_function): Relayout result and parms of
6277         non-abstruct functions.
6278         (expand_function_start): Revert.  Use set_parm_rtl.  If the
6279         result is not a hard reg, create a pseudo from the promoted
6280         mode of the default def.  Promote static chain mode.
6281         * tree-outof-ssa.c (remove_ssa_form): Drop unused
6282         partition_has_default_def.  Set up
6283         partitions_for_parm_default_defs.
6284         (finish_out_of_ssa): Remove partition_has_default_def.
6285         Release partitions_for_parm_default_defs.
6286         * tree-outof-ssa.h (struct ssaexpand): Remove
6287         partition_has_default_def.  Add
6288         partitions_for_parm_default_defs.
6289         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
6290         stor-layout.h.
6291         (build_ssa_conflict_graph): Fix conflict-detection of default
6292         defs of even unused default defs of params and results.
6293         (for_all_parms): New.
6294         (create_default_def): New.
6295         (register_default_def): New.
6296         (coalesce_with_default): New.
6297         (create_outofssa_var_map): Create default defs for all parms
6298         and results, and register their partitions.  Add GIMPLE_RETURN
6299         operands as coalesce candidates with results.  Add default
6300         defs of each parm or result as coalesce candidates with its
6301         other defs.  Mark each result def, and each default def of
6302         parms, as used_in_copy.
6303         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
6304         with the ssa names, even anonymous ones.  Drop
6305         parm_in_stack_slot_p calls.  Require same signedness and
6306         alignment.
6307         (coalesce_ssa_name): Add coalesce candidates for all defs of
6308         each parm and result, even unused ones.
6309         (parm_default_def_partition_arg): New type.
6310         (set_parm_default_def_partition): New.
6311         (get_parm_default_def_partitions): New.
6312         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
6313         * tree-ssa-live.c (partition_view_init): Regard unused defs of
6314         parms and results as used.
6315         (verify_live_on_entry): Don't error out just because they're
6316         not live.
6318 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
6320         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6321         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
6322         (output_fde): Don't output length for debug_frame on AIX.
6323         (output_call_frame_info): Don't output length for debug_frame on AIX.
6324         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
6325         HAVE_XCOFF_DWARF_EXTRAS.
6326         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
6327         HAVE_XCOFF_DWARF_EXTRAS.
6328         (output_compilation_unit_header): Don't output length on AIX.
6329         (output_pubnames): Don't output length on AIX.
6330         (output_aranges): Delete argument. Compute length locally. Don't
6331         output length on AIX.
6332         (output_line_info): Don't output length on AIX.
6333         (dwarf2out_finish): Don't compute aranges_length.
6334         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6335         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
6336         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
6337         symbol decoration for AIX.
6338         (rs6000_xcoff_debug_unwind_info): New.
6339         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
6340         for SECTION_DEBUG.
6341         (rs6000_xcoff_declare_function_name): Emit different
6342         .function pseudo-op when DWARF2_DEBUG. Don't call
6343         xcoffout_declare_function for DWARF2_DEBUG.
6344         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
6345         Redefine.
6346         * config/rs6000/aix71.h: New.
6347         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
6348         locations support.
6349         * configure: Regenerate.
6350         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
6351         DWARF support.
6353 2015-09-26  Jeff Law  <law@redhat.com>
6355         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
6356         behaviour.
6357         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
6358         behaviour.
6360         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
6361         behaviour
6363         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
6364         undefined behaviour.
6366         * config/cris/cris.md (asrandb): Fix left shift undefined
6367         behaviour.
6368         (asrandw): Likewise.
6370 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
6372         PR target/61578
6373         * lra-constarints.c (match_reload): Check presence of the input pseudo
6374         in the output operand.
6376 2015-09-25  Tobias Burnus  <burnus@net-b.de>
6378         * doc/invoke.texi (-fsanitize): Minor wording tweak.
6380 2015-09-25  Tobias Burnus  <burnus@net-b.de>
6382         * doc/invoke.texi (-fsanitize): Update URLs.
6384 2015-09-25  Teresa Johnson  <tejohnson@google.com>
6386         * opts.c (finish_options): Unset -freorder-blocks-and-partition
6387         if not using profile.
6389 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6391         PR pretty-print/67567
6392         * pretty-print.c (pp_string): Add gcc_checking_assert.
6393         * pretty-print.h (output_buffer_append_r): Likewise.
6395 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
6397         PR target/67675
6398         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
6399         addr2 individually.  Don't emit logical or insn if one is known to
6400         be aligned approriately.
6401         (sh_expand_cmpnstr): Likewise.
6403 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
6405         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
6406         __builtin_aarch64_fp[sc]r arguments into a register.
6408 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
6410         * config.gcc (x86_archs): Replace lakemount with lakemont.
6411         (with_cpu): Likewise.
6412         (with_arch): Likewise.
6413         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6414         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
6415         __tune_lakemount__ with __tune_lakemont__.
6416         * config/i386/i386.c (lakemount_cost): Renamed to ...
6417         (lakemont_cost): This.
6418         (m_LAKEMOUNT): Renamed to ...
6419         (m_LAKEMONT): This.
6420         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
6421         (processor_target_table): Replace "lakemount" with "lakemont".
6422         (processor_alias_table): Likewise.
6423         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
6424         PROCESSOR_LAKEMONT.
6425         (ix86_adjust_cost): Likewise.
6426         (ia32_multipass_dfa_lookahead): Likewise.
6427         * config/i386/i386.h (processor_type): Likewise.
6428         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
6429         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
6430         Lakemount with Lakemont.
6432 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
6434         * config.gcc (x86_archs): Replace iamcu with lakemount.
6435         (with_cpu): Likewise.
6436         (with_arch): Likewise.
6437         * doc/invoke.texi: Likewise.
6438         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6439         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
6440         __tune_iamcu__ with __tune_lakemount__.
6441         * config/i386/i386.c (iamcu_cost): Renamed to ...
6442         (lakemount_cost): This.
6443         (m_IAMCU): Renamed to ...
6444         (m_LAKEMOUNT): This.
6445         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
6446         (processor_target_table): Replace "iamcu" with "lakemount".
6447         (processor_alias_table): Likewise.
6448         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
6449         PROCESSOR_LAKEMOUNT.
6450         (ix86_adjust_cost): Likewise.
6451         (ia32_multipass_dfa_lookahead): Likewise.
6452         * config/i386/i386.h (processor_type): Likewise.
6453         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
6455 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
6457         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
6458         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
6459         Declare.
6460         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
6461         (pa_expand_compare_and_swap_loop): New.
6462         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
6463         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
6464         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
6465         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
6466         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
6467         Revise.
6469 2015-09-24  Michael Collison  <michael.collison@linaro.org>
6471         PR other/57195
6472         * read-md.c (read_name): Allow mode iterators inside angle
6473         brackets in rtl expressions.
6475 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
6477         PR target/61578
6478         * ira-color.c (update_allocno_cost): Add parameter.
6479         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
6480         parameter.
6482 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6484         PR driver/67640
6485         * opts-common.c (prune_options): Discard all -fdiagnostics-color
6486         but the last one, which is moved to the front to be processed
6487         first.
6488         * opts.c (enable_warning_as_error): Reject options that do not
6489         control warnings.
6491 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
6493         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
6495 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
6497         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
6498         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
6499         (aarch64_cannot_force_const_mem): Likewise.
6500         (aarch64_classify_address): Likewise.
6501         (aarch64_classify_symbolic_expression): Likewise.
6502         (aarch64_print_operand): Likewise.
6503         (aarch64_classify_symbol): Likewise.
6504         (aarch64_mov_operand_p): Likewise.
6505         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
6506         (aarch64_mov_operand): Likewise.
6508 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
6510         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
6511         for info->spe_gp_size.
6513 2015-09-24  Richard Biener  <rguenther@suse.de>
6515         PR lto/67699
6516         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
6517         abstract origins.
6519 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
6521         * tree-object-size.c (plus_stmt_object_size)
6522         (cond_expr_object_size): Change the formal parameters from gimple
6523         to gimple *.
6524         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6525         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6526         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6528 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6530         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6531         Check for ld -type pie on Solaris 11.x and 12.
6532         * configure: Regenerate.
6533         * config.in: Regenerate.
6535         * gcc.c (LD_PIE_SPEC): Allow redefinition.
6537         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6538         (STARTFILE_SPEC): Use it.
6539         (ENDFILE_CRTEND_SPEC): Define.
6540         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6541         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6542         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6543         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6544         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6545         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6546         (ENDFILE_ARCH_SPEC): Define.
6547         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6549 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6551         * configure.ac (gcc_cv_solaris_crts): New test.
6552         * configure. Regenerate.
6553         * config.in: Regenerate.
6554         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6555         HAVE_SOLARIS_CRTS variant.
6557 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6559         * tree-inline.h (count_insns_seq): Delete prototype.
6560         (estimate_num_insns_seq): Define prototype.
6561         * tree-inline.c (count_insns_seq): Delete.
6562         (estimate_num_insns_seq): Remove static qualifier.
6563         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6564         with estimate_num_insns_seq.
6566 2015-09-24  Richard Biener  <rguenther@suse.de>
6568         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6569         members.
6570         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6571         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
6572         offset.
6573         (ao_ref_init_from_vn_reference): Record clique and base in the
6574         built base.
6575         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6577 2015-09-24  Richard Biener  <rguenther@suse.de>
6579         PR tree-optimization/48885
6580         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6581         as not including any restrict tags from other pointers.
6583 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
6585         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6586         character when appending to offload_targets.
6588         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6589         offload targets by commas, not colons.
6590         * config.in: Regenerate.
6591         * configure: Likewise.
6592         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6593         instead of setting up the default offload targets here...
6594         (process_command): ..., do it here.
6595         libgomp/
6596         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6597         targets are separated by commas.
6598         * config.h.in: Regenerate.
6600 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
6601             Nathan Sidwell  <nathan@codesourcery.com>
6603         * omp-low.h (omp_reduction_init_op): Declare.
6604         * omp-low.c (omp_reduction_init_op): New, broken out of ...
6605         (omp_reduction_init): ... here.  Call it.
6606         * tree-parloops.c (initialize_reductions): Use
6607         omp_reduction_init_op.
6609 2015-09-23   Richard Biener  <rguenther@suse.de>
6611         PR middle-end/67662
6612         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6613         undefined overflow unless they will cancel out.
6615 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
6617         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6618         insn emit.
6620 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6622         PR c/49655
6623         * opts.h (write_langs): Declare.
6624         * opts-global.c (write_langs): Make it extern.
6626 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
6628         PR target/67391
6629         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6630         overlapping regs when matching the pattern.
6632 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
6634         * config/aarch64/aarch64-simd.md
6635         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6636         (aarch64_float_truncate_hi_v4sf_le): New.
6637         (aarch64_float_truncate_hi_v4sf_be): Likewise.
6639 2015-09-23  Richard Biener  <rguenther@suse.de>
6641         * tree-ssa-structalias.c (intra_create_variable_infos): Build
6642         representatives for all restrict qualified pointer destinations.
6644 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
6646         * config/i386/i386.md (define_code_attr mshift): New.
6647         (define_mode_iterator SWI1248_AVX512BW): Rename ...
6648         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6649         only.
6650         (define_insn "*k<logic><mode>"): Use new iterator name.
6651         (define_insn "*<mshift><mode>3"): New.
6653 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
6655         PR middle-end/67649
6656         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6657         mark the block as accessible.
6659 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
6661         * function.c (thread_prologue_and_epilogue_insns): Delete
6662         orig_entry_edge argument to try_shrink_wrapping.
6663         * shrink-wrap.c (can_get_prologue): New function.
6664         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6665         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
6666         can_get_prologue where needed.  Remove code that finds a single
6667         edge for the prologue.  Remove code that tests if any reg clobbered
6668         by the prologue is live on the prologue edge.  Remove code that finds
6669         the new prologue edge after duplicating blocks.  Make a new prologue
6670         block and edge.
6671         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6673 2015-09-22  Jeff Law  <law@redhat.com>
6675         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6676         behavior.
6678 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
6680         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
6681         -Wtemplates, -Wnamespaces): Document.
6683 2015-09-22  Tom de Vries  <tom@codesourcery.com>
6685         PR tree-optimization/67671
6686         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6687         pointer references as restrict.
6689 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
6691         * config/nios2/nios2.c (nios2_legitimize_address): When handling
6692         'reg + reloc' cases, allow first operand to be non-REG, and use
6693         force_reg() to enforce address pattern.
6695 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
6697         PR target/67480
6698         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6699         (define_mode_iterator VI12_AVX_AVX512F): New.
6700         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6701         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6702         (define_insn "*<code><mode>3"): ... Into new pattern using
6703         VI12_AVX_AVX512F iterators without masking.
6705 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6707         * config.gcc: Support "skylake-avx512".
6708         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6709         PROCESSOR_SKYLAKE_AVX512.
6710         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6711         (processor_target_table): Add "skylake-avx512".
6712         (PTA_SKYLAKE_AVX512): Define.
6713         (ix86_option_override_internal): Add "skylake_avx512".
6714         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6715         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6716         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6717         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6718         * doc/invoke.texi (skylake-avx512): New.
6720 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6722         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
6723         operand in pattern.
6724         (define_insn "kunpcksi"): Ditto.
6725         (define_insn "kunpckdi"): Ditto.
6727 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6729         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
6730         iterator instead of fixed modes.
6732 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6734         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6735         Adjust declaration.
6736         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6737         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
6738         out_result.  Update to support update-fetch operations.
6739         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6740         Adjust for change to aarch64_gen_atomic_ldop.
6741         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6742         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6743         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6744         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6745         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6747 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6749         * config/aarch64/aarch64-protos.h
6750         (aarch64_atomic_ldop_supported_p): Declare.
6751         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6752         (enum aarch64_atomic_load_op_code): New.
6753         (aarch64_emit_atomic_load_op): New.
6754         (aarch64_gen_atomic_ldop): Update to support load-operate
6755         patterns.
6756         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6757         to an expander.
6758         (aarch64_atomic_<atomic_optab><mode>): New.
6759         (aarch64_atomic_<atomic_optab><mode>_lse): New.
6760         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6761         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6762         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6764 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6766         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6767         (UNSPECV_ATOMIC_LDOP_OR): New.
6768         (UNSPECV_ATOMIC_LDOP_BIC): New.
6769         (UNSPECV_ATOMIC_LDOP_XOR): New.
6770         (UNSPECV_ATOMIC_LDOP_PLUS): New.
6771         (ATOMIC_LDOP): New.
6772         (atomic_ldop): New.
6773         (aarch64_atomic_load<atomic_ldop><mode>): New.
6775 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6777         * config/aarch64/aarch64.md
6778         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
6779         pattern.
6781 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
6783         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6784         Declare.
6785         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
6786         (aarch64_gen_atomic_ldop): New.
6787         (aarch64_split_atomic_op): Fix whitespace and add a comment.
6788         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
6789         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
6790         (atomic_exchange<mode>): Replace with an expander.
6791         (aarch64_atomic_exchange<mode>): New.
6792         (aarch64_atomic_exchange<mode>_lse): New.
6793         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
6794         (aarch64_atomic_swp<mode>): New.
6796 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6798         * tree-inline.c (expand_call_inline): Use inform for extra note.
6799         Do not give a note with UNKNOWN_LOCATION.
6800         Replace input_location with gimple_location (stmt).
6801         Use true/false instead of TRUE/FALSE.
6803 2015-09-22  Tom de Vries  <tom@codesourcery.com>
6805         PR tree-optimization/67666
6806         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
6807         with single field non-conservative.
6809 2015-09-21  David S. Miller  <davem@davemloft.net>
6811         PR/67622
6812         Revert:
6813         2015-09-11  David S. Miller  <davem@davemloft.net>
6815         * config/sparc/constraints.md: Make "U" constraint a real register
6816         constraint.
6817         * config/sparc/sparc.c (TARGET_LRA_P): Define.
6818         (D_MODES, DF_MODES): Add missing cast.
6819         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6820         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6821         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6822         cost to 8.
6823         * config/sparc/sparc.h (PROMOTE_MODE): Define.
6824         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6825         provide these insn when flag_pic.
6827         2015-09-17  David S. Miller  <davem@davemloft.net>
6829         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
6830         Declare.
6831         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
6832         function.
6833         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
6834         (HARD_REGNO_CALLER_SAVE_MODE): Define.
6835         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
6836         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
6837         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
6838         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
6839         provide when flag_pic.
6841 2015-09-21  Jeff Law  <law@redhat.com>
6843         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
6844         behavior.
6846 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6848         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
6850 2015-09-21  Richard Biener  <rguenther@suse.de>
6852         * passes.c (rest_of_decl_compilation): Do not call
6853         dwarf2out_early_global_decl for aliases.
6855 2015-09-21  Richard Biener  <rguenther@suse.de>
6857         PR debug/67664
6858         * dwarf2out.c (add_location_or_const_value_attribute): Remove
6859         attribute parameter.  Early exit if either DW_AT_const_value
6860         or DW_AT_location are present already.
6861         (gen_variable_die): Adjust caller.
6862         (dwarf2out_late_global_decl): Likewise.
6864 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
6866         PR target/67657
6867         * config/sh/sh.c (sh_remove_overlapping_post_inc,
6868         sh_peephole_emit_move_insn): Add new functions.
6869         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
6870         sh_peephole_emit_move_insn): Declere them.
6871         * config/sh/sh.md: Use them in various peephole2 patterns.
6873 2015-09-21  Richard Biener  <rguenther@suse.de>
6875         PR middle-end/67651
6876         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
6877         address with -fno-delete-null-pointer-checks.
6879 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
6881         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
6882         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
6883         (reduc_uplus_v16qi): Remove.
6885         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
6886         (reduc_<VEC_reduc_name>_v2df): Remove.
6887         (reduc_<VEC_reduc_name>_v4sf): Remove.
6888         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
6890         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
6891         gen_ function by removing * prefix.
6892         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
6894 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6896         PR middle-end/60832
6897         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6898         Print i_bound without converting it to a tree.
6900 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
6902         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
6903         operands[4] operands[5] swap with std::swap, removed tmp variable.
6904         (arm_evpc_neon_vzip): Replaced in0/in1 and
6905         out0/out1 swaps with std::swap, removed x variable.
6906         (arm_evpc_neon_vtrn): Replaced in0/int1 and
6907         out0/out1 swaos with std::swap, removed x variable.
6908         (arm_expand_vec_perm_const_1): Replaced
6909         d->op0/d->op1 swap with std::swap, removed x variable.
6910         (arm_evpc_neon_vuzp): Replaced in0/in1 and
6911         out0/out1 swaps with std::swap, removed x variable.
6913 2015-09-21  Jonathan Yong  <10walls@gmail.com>
6915         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6916         sysroot/usr/lib/32api for additional win32 libraries,
6917         fixes failing Cygwin bootstrapping.
6919 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
6921         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
6923 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
6925         PR target/67126
6926         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
6927         (*mov_t_msb_neg): Rewrite negc pattern.
6929 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
6931         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
6932         immediate generation code.
6934 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
6936         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
6937         redundant immediate generation code.
6939 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
6941         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
6942         (AARCH64_NUM_BITMASKS): Remove.
6943         (aarch64_bitmasks_cmp): Remove.
6944         (aarch64_build_bitmask_table): Remove.
6946 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
6948         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
6949         slow immediate matching loops with a faster algorithm.
6951 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
6953         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
6954         faster algorithm.
6956 2015-09-20  Jeff Law  <law@redhat.com>
6958         PR tree-optimization/47679
6959         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
6960         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
6961         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
6962         (thread_through_normal_block): Use record_temporary_equivalences.
6964 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
6966         * coretypes.h (gimple): Change typedef to be a forward declaration.
6967         * gimple.h (gimple_statement_base): rename to gimple.
6968         * (all functions and types using gimple): Adjust.
6969         * *.[ch]: Likewise.
6971 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
6972             David Edelsohn  <dje.gcc@gmail.com>
6974         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
6975         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6976         (EH_FRAME_THROUGH_COLLECT2): Define.
6977         (EH_TABLES_CAN_BE_READ_ONLY): Define.
6978         (ASM_OUTPUT_DWARF_PCREL): Define.
6979         (ASM_OUTPUT_DWARF_DATAREL): Define.
6981 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
6983         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
6984         of TARGET_ELF32.
6986 2015-09-18  Jeff Law  <law@redhat.com>
6988         PR tree-optimization/47679
6989         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
6990         it here ...
6991         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
6992         object.  Update constructor.
6993         (pass_dominator::execute):  Corresponding chagnes to declaration
6994         and initialization of avail_exprs_stack.  Update constructor call
6995         for dom_opt_dom_walker object.
6996         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
6997         it down to children as needed.
6998         (record_equivalences_from_incoming_edge): Likewise.
6999         (eliminate_redundant_computations): Likewise.
7000         (record_equivalences_from_stmt): Likewise.
7001         (simplify_stmt_for_jump_threading): Likewise.
7002         (record_temporary_equivalences): Likewise.
7003         (optimize_stmt): Likewise.
7004         (dom_opt_dom_walker::thread_across_edge): Update access to
7005         avail_exprs_stack object and pass it to children as needed.
7006         (dom_opt_dom_walker::before_dom_children): Similarly.
7007         (dom_opt_dom_walker::after_dom_children): Similarly.
7008         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
7009         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
7010         Add avail_expr_stack argument.  Pass it to children as needed.
7011         (dummy_simplify): Likewise.
7012         (simplify_control_stmt_condition): Likewise.
7013         (thread_around_empty_blocks): Likewise.
7014         (thread_through_normal_block): Likewise.
7015         (thread_across_edge): Likewise.
7016         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7017         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
7019         PR tree-optimization/47679
7020         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
7021         it here ...
7022         (dom_opt_dom_walker): New private member holding the const_and_copies
7023         object.  Update constructor.
7024         (pass_dominator::execute): Corresponding changes to declaration
7025         and initialization of const_and_copies.  Update constructor call
7026         for the dom_opt_dom_walker object.
7027         (record_temporary_equivalences): Accept const_and_copies argument
7028         pass it down to children as needed.
7029         (record_equality): Likewise.
7030         (record_equivalences_from_incoming_edge): Likewise.
7031         (cprop_into_successor_phis, optimize_stmt): Likewise.
7032         (eliminate_redundant_computations): Likewise.
7033         (dom_opt_dom_walker::thread_across_edge): Update access to
7034         const_and_copies object and pass it to children as needed.
7035         (dom_opt_dom_walker::before_dom_children): Similarly.
7036         (dom_opt_dom_walker::after_dom_children): Similarly.
7038         PR tree-optimization/47679
7039         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
7040         it into the avail_exprs_stack class.
7041         (pass_dominator::execute): Corresponding changes to declaration
7042         and initialization of avail_exprs.  Pass avail_exprs to
7043         dump_dominator_optimization_stats.
7044         (record_cond): Extract avail_exprs from avail_exprs_stack.
7045         (lookup_avail_expr): Similarly.
7046         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
7047         position in file.
7048         (dump_dominator_optimization_stats): Make static and prototype.
7049         Add argument for the hash table to dump.
7050         (debug_dominator_optimization_stats): Remove.
7051         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
7052         prototype.
7053         (debug_dominator_optimization_stats): Similarly.
7054         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
7055         "void" in prototype for pop_to_marker method.  Add accessor method
7056         for the underlying avail_exprs table.
7058         * tree-ssa-threadedge.c: Remove trailing whitespace.
7060 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
7062         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
7063         unsigned.
7064         (pa_ldil_cint_p): Likewise.
7065         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
7066         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
7067         Update callers.
7068         * config/pa/pa.md: Likewise.
7070 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
7072         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
7073         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
7074         (diagnostic_show_locus): Likewise.
7075         (diagnostic_print_caret_line): Likewise.
7076         * diagnostic-show-locus.c: New file.
7078 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
7080         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
7081         "back" parameter. Declare label in #if block.
7083 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
7085         PR middle-end/67619
7086         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
7087         the address to a register.
7089 2015-09-18  Jeff Law  <law@redhat.com>
7091         PR tree-optimization/47679
7092         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
7093         * tree-ssa-dom.c: Remove unnecessary header includes.
7094         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
7095         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
7096         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
7097         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
7098         (pass_phi_only_cprop::execute): Likewise.
7099         (make_pass_phi_only_cprop): Likewise.
7100         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
7101         uses of file scoped statics by passing the required objects
7102         as parameters wherever needed.
7104 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
7105             David Edelsohn  <dje.gcc@gmail.com>
7107         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
7108         EH_FRAME_THROUGH_COLLECT2.
7109         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
7110         DW_EH_PE_datarel.
7111         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
7112         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
7113         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
7114         * except.c (switch_to_exception_section): Use a read-only section
7115         even if EH_FRAME_SECTION_NAME is undefined.
7116         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
7117         * collect2.c (write_c_file_stat): Provide dbase on AIX.
7118         (scan_prog_file): Don't export __dso_handle nor
7119         __gcc_unwind_dbase.
7120         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7121         (EH_TABLES_CAN_BE_READ_ONLY): Define.
7122         (ASM_OUTPUT_DWARF_PCREL): Define.
7123         (ASM_OUTPUT_DWARF_DATAREL): Define.
7124         (EH_FRAME_THROUGH_COLLECT2): Define.
7125         (EH_FRAME_IN_DATA_SECTION): Delete.
7126         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
7127         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
7128         Declare.
7129         (rs6000_asm_output_dwarf_datarel): Declare.
7130         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
7131         (rs6000_aix_asm_output_dwarf_datarel): New.
7132         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
7133         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
7134         (EH_FRAME_THROUGH_COLLECT2): Define.
7135         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
7136         (EH_FRAME_THROUGH_COLLECT2): Define.
7137         (EH_TABLES_CAN_BE_READ_ONLY): Define.
7138         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
7139         (EH_FRAME_THROUGH_COLLECT2): New.
7140         (ASM_OUTPUT_DWARF_DATAREL): New.
7141         * doc/tm.texi: Regenerate.
7143 2015-09-18  Richard Biener  <rguenther@suse.de>
7145         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
7146         we're in early phase.
7147         (schedule_generic_params_dies_gen): Likewise.
7148         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
7149         work as possible, retaining unhandled cases.
7150         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
7151         clear out generic_type_instances at the end.
7152         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
7153         (dwarf2out_early_finish): ... here.  Do most of
7154         gen_remaining_tmpl_value_param_die_attribute here.
7156 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
7158         PR tree-optimization/67283
7159         * tree-sra.c (type_consists_of_records_p): Rename to...
7160         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7161         (completely_scalarize_record): Rename to...
7162         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7163         (scalarize_elem): New.
7164         (analyze_all_variable_accesses): Follow renamings.
7166 2015-09-18  Richard Biener  <rguenther@suse.de>
7168         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
7169         in early-dwarf.
7171 2015-09-18  Richard Biener  <rguenther@suse.de>
7173         PR tree-optimization/66142
7174         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
7175         treat MEM[&x] and x the same.
7176         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
7177         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
7178         when we simplified sth.
7179         (vn_reference_maybe_forwprop_address): Likewise.
7180         (valueize_refs_1): When we simplified through
7181         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
7182         set valueized_anything to true.
7183         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
7184         one ref kills the other instead of just a offset-based test.
7185         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
7186         for the operand_equal_p test to compare bases and also compare
7187         sizes.
7189 2015-09-17  Christian Bruel  <christian.bruel@st.com>
7191         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
7193 2015-09-17  Richard Henderson  <rth@redhat.com>
7195         PR libstdc++/65913
7196         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
7197         pointers that encode the alignment of the object.
7199 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7201         PR rtl-optimization/66790
7202         * df-problems.c (LIVE): Amend documentation.
7204 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
7206         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
7207         and optabs-tree.o.
7208         (GTFILES): Replace optabs.c with optabs-libfunc.c.
7209         * genopinit.c (main): Add an include guard to insn-opinit.h.
7210         Protect the rtx_code parts with NUM_RTX_CODE.
7211         * optabs.h: Split parts out to...
7212         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
7213         * optabs.c: Split parts out to...
7214         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
7215         * cilk-common.c: Include optabs-query.h rather than optabs.h.
7216         * fold-const.c: Likewise.
7217         * target-globals.c: Likewise.
7218         * tree-if-conv.c: Likewise.
7219         * tree-ssa-forwprop.c: Likewise.
7220         * tree-ssa-loop-prefetch.c: Likewise.
7221         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
7222         Remove unncessary include files.
7223         * tree-ssa-phiopt.c: Likewise.
7224         * tree-ssa-reassoc.c: Likewise.
7225         * tree-switch-conversion.c: Likewise.
7226         * tree-vect-data-refs.c: Likewise.
7227         * tree-vect-generic.c: Likewise.
7228         * tree-vect-loop.c: Likewise.
7229         * tree-vect-patterns.c: Likewise.
7230         * tree-vect-slp.c: Likewise.
7231         * tree-vect-stmts.c: Likewise.
7232         * tree-vrp.c: Likewise.
7233         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
7234         rather than optabs.h.
7235         * expr.c: Include optabs-tree.h.
7236         * function.c: Likewise.
7238 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7240         PR middle-end/65958
7241         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
7242         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
7243         * config/arm/arm.c: Include common/common-target.h.
7244         (use_return_insn): Return 0 if the static chain register was saved
7245         above a non-APCS frame.
7246         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
7247         (struct scratch_reg): New.
7248         (get_scratch_register_on_entry): New function.
7249         (release_scratch_register_on_entry): Likewise.
7250         (arm_emit_probe_stack_range): Likewise.
7251         (output_probe_stack_range): Likewise.
7252         (arm_expand_prologue): Factor out code dealing with the IP register
7253         for nested function and adjust it for stack checking.
7254         Invoke arm_emit_probe_stack_range if static builtin stack checking
7255         is enabled.
7256         (thumb1_expand_prologue): Sorry out if static builtin stack checking
7257         is enabled.
7258         (arm_expand_epilogue): Add the saved static chain register, if any, to
7259         the amount of pre-pushed registers to pop.
7260         (arm_frame_pointer_required): Return true if static stack checking is
7261         enabled and we want to catch the exception with the EABI unwinder.
7262         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
7263         (UNSPEC_PROBE_STACK_RANGE): Likewise.
7264         * config/arm/arm.md (probe_stack): New insn.
7265         (probe_stack_range): Likewise.
7267 2015-09-17  Richard Biener  <rguenther@suse.de>
7269         * genmatch.c (parser::parse_expr): Improve error message
7270         for mis-placed flags.
7272 2015-09-17  Richard Biener  <rguenther@suse.de>
7274         * passes.c (rest_of_decl_compilation): Always call early_global_decl
7275         debug hook when we created a varpool node.
7276         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
7277         dwarf2out_early_global_decl, when not just add location or
7278         value attributes to existing DIEs.
7280 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
7282         * config/aarch64/aarch64.md (copysigndf3): New.
7283         (copysignsf3): Likewise.
7285 2015-09-17  David S. Miller  <davem@davemloft.net>
7287         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
7288         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
7289         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7290         (HARD_REGNO_CALLER_SAVE_MODE): Define.
7291         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7292         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7293         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7294         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7295         provide when flag_pic.
7297 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
7299         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
7300         object_allocator change.
7302 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
7304         PR tree-optimization/66388
7305         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
7306         (dump_iv): Dump no_overflow information.
7307         (alloc_iv): Initialize new field for struct iv.
7308         (mark_bivs): Count number of no_overflow bivs.
7309         (find_deriving_biv_for_expr, record_biv_for_address_use): New
7310         functions.
7311         (idx_find_step): Call new functions above.
7312         (add_candidate_1, add_candidate): New paramter.
7313         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
7314         (get_computation_aff): Simplify convertion of cand for BIV.
7315         (get_computation_cost_at): Step cand's base if necessary.
7317 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
7319         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
7320         parameter.
7321         (tree_simplify_using_condition): Ditto.
7322         (simplify_using_initial_conditions): Ditto.
7323         (loop_exits_before_overflow): Pass new argument to function
7324         simplify_using_initial_conditions.  Remove case for type conversions
7325         simplification.
7326         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
7327         parameter.
7328         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
7329         in iv base using loop initial conditions.
7331 2015-09-16  Jeff Law  <law@redhat.com>
7333         PR tree-optimization/47679
7334         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
7335         (free_all_edge_infos): Use it.
7336         (allocate_edge_info): Free preexisting edge info data.
7337         (pass_dominator::execute): Set up initial edge info structures.
7338         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
7339         thread_across_edge.
7340         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
7341         If non-null, then push/pop markers appropriately.
7342         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7343         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
7344         thread-across_edge.
7346 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
7348         * config/ft32/ft32.c: Fix the memory address space predicate.
7350 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
7352         PR target/67573
7353         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
7354         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7356 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7358         * toplev.h (check_global_declaration): Remove declaration.
7359         * toplev.c (check_global_declaration): Move to ...
7360         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
7361         (analyze_functions): Update call.
7363 2015-09-16  David S. Miller  <davem@davemloft.net>
7365         * lra-constraints.c (simplify_operand_subreg): Do not assume that
7366         lowpart of a SUBREG has offset zero.
7368 2015-09-16  Jeff Law  <law@redhat.com>
7370         PR tree-optimization/47679
7371         * tree-ssa-dom.c (enum expr_kind): Moved from here to
7372         tree-ssa-scopedtables.h.
7373         (struct hashable_expr, class expr_hash_elt): Likewise.
7374         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
7375         Move associated methods into tree-ssa-scopedtables.c.
7376         (avail_expr_hash, initialize_expr_from_cond): Similarly.
7377         (hashable_expr_equal_p, add_expr_commutative): Likewise.
7378         (add_hashable_expr): Likewise.
7379         (record_cond): Delete element directly.
7380         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
7381         private copy ctor and assignment operator methods.
7382         (expr_elt_hasher): Inline trivial methods.
7383         (initialize_expr_from_cond): Prototype.
7384         * tree-ssa-scopedtables.c: Add necessary includes, functions and
7385         methods that were previously in tree-ssa-dom.c.  Improve various
7386         comments.
7388 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
7390         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
7392 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
7394         PR bootstrap/67587
7395         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7396         fixup_partitions.
7398 2015-09-16  Richard Biener  <rguenther@suse.de>
7400         PR middle-end/67253
7401         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
7402         location of possibly shared trees.
7404 2015-09-16  Richard Biener  <rguenther@suse.de>
7406         PR middle-end/67271
7407         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
7409 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
7411         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
7412         offset and size computations instead of HOST_WIDE_INT.
7414 2015-09-16  Richard Biener  <rguenther@suse.de>
7416         PR middle-end/67442
7417         * fold-const.c (extract_muldiv_1): Properly extend multiplication
7418         result before builting a tree via wide_int_to_tree.
7420 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
7422         * Makefile.in: Add memory-block.cc
7423         (pool_allocator::initialize): Use fixed block size.
7424         (pool_allocator::release): Use memory_block_pool.
7425         (pool_allocator::allocate): Likewise.
7426         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
7427         object pools.
7428         * cfg.c (initialize_original_copy_tables): Likewise.
7429         * cselib.c (elt_list_pool, elt_loc_list_pool,
7430         cselib_val_pool): Likewise.
7431         * df-problems.c (df_chain_alloc): Likewise.
7432         * df-scan.c (df_scan_alloc): Likewise.
7433         * dse.c (cse_store_info_pool, rtx_store_info_pool,
7434         read_info_type_pool, insn_info_type_pool, bb_info_pool,
7435         group_info_pool, deferred_change_pool): Likewise.
7436         * et-forest.c (et_nodes, et_occurrences): Likewise.
7437         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
7438         ipcp_agg_lattice_pool): Likewise.
7439         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
7440         * ipa-profile.c (histogram_pool): Likewise.
7441         * ipa-prop.c (ipa_refdesc_pool): Likewise.
7442         * ira-build.c (live_range_pool, allocno_pool, object_pool,
7443         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
7444         * ira-color.c (update_cost_record_pool): Likewise.
7445         * lra-lives.c (lra_live_range_pool): Likewise.
7446         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
7447         * memory-block.cc: New file.
7448         * memory-block.h: New file.
7449         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
7450         * sched-deps.c (sched_deps_init): Likewise.
7451         * sel-sched-ir.c (sched_lists_pool): Likewise.
7452         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
7453         * tree-sra.c (access_pool): Likewise.
7454         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7455         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
7456         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
7457         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7458         * tree-ssa-strlen.c (strinfo_pool): Likewise.
7459         * tree-ssa-structalias.c (variable_info_pool): Likewise.
7460         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
7461         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
7463 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
7465         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
7466         definition.
7467         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
7468         call0 ABI.
7470 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
7472         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
7473         to pass TLS call argument, according to current ABI.
7474         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
7475         callx0 for TLS call, according to current ABI.
7477 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7479         * tree-eh.c (lower_try_finally_dup_block): Clear location information
7480         on stack restore statements.
7481         (decide_copy_try_finally): Do not consider a stack restore statement as
7482         coming from sources.
7484 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
7486         * config/alpha/alpha.c (alpha_expand_block_clear): Use
7487         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
7489 2015-09-15  Jeff Law  <law@redhat.com>
7491         PR tree-optimization/47679
7492         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
7493         methods and private members.
7494         (avail_exprs_stack): Similarly.  Change type of global
7495         from a pair of expr_hash_elt_t to the new class.
7496         (expr_elt_hasher::hash): Corresponding changes.
7497         (expr_elt_hasher::equal): Similarly.
7498         (avail_expr_hash): Similarly.
7499         (pass_dominator::execute): Similarly.
7500         (dom_opt_dom_walker::thread_across_edge): Similarly.
7501         (record_cond): Similarly.
7502         (dom_opt_dom_walker::before_dom_children): Similarly.
7503         (dom_opt_dom_walker::after_dom_children): Similarly.
7504         (lookup_avail_expr): Likewise.
7505         (initialize_hash_element): Now a expr_hash_elt constructor.
7506         (initialize_hash_element_from_expr): Similarly.
7507         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
7508         (free_expr_hash_elt): Call dtor for the element.
7509         (remove_local_expressions_from_table): Now the "pop_to_marker"
7510         method in the available_exprs_stack class.
7511         (avail_expr_stack::record_expr): Method factored out.
7512         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
7513         Fix formatting.
7514         (hashable_expr_equal_p): Fix formatting.
7516 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
7518         * input.h (location_get_source_line): Drop "expanded_location"
7519         param in favor of a file and line number.
7520         * input.c (location_get_source_line): Likewise.
7521         (dump_location_info): Update for change in signature of
7522         location_get_source_line.
7523         * diagnostic.c (diagnostic_print_caret_line): Likewise.
7525 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7527         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7528         Bump to 4KB for SJLJ exceptions.
7529         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
7530         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7531         * doc/tm.texi: Regenerate.
7533 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7535         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7536         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
7537         Update prototype.
7539 2015-09-15  Richard Biener  <rguenther@suse.de>
7541         PR tree-optimization/67470
7542         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7543         structure for PHI hoisting by inserting a forwarder block
7544         if appropriate.
7546 2015-09-15  Christian Bruel  <christian.bruel@st.com>
7548         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7549         (arm_option_print): New function.
7551 2015-09-15  Christian Bruel  <christian.bruel@st.com>
7553         PR target/52144
7554         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7555         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7556         Remove flags parameter.
7557         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7558         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7559         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7560         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7561         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7562         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7563         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7564         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7566 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7568         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7570         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7571         AARCH64_VALID_SIMD_DREG_MODE.
7573 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7575         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7576         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7577         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7578         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7579         aarch64_ld4_lane<mode>): Combine together, making...
7580         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7581         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7582         aarch64_st4_lane<mode>): Combine together, making...
7583         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7584         * config/aarch64/iterators.md (nregs): Add comment.
7586 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7588         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7589         Change operand mode from <V_TWO_ELEM> to BLK.
7590         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7591         (aarch64_vec_store_lanesoi_lane<mode): Likewise
7592         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7593         (aarch64_ld2_lane<mode>): Likewise.
7594         (aarch64_st2_lane<VQ:mode>): Likewise.
7595         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7597 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7599         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7600         Change operand mode from <V_FOUR_ELEM> to BLK.
7601         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7602         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7603         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7604         (aarch64_ld4_lane<mode>): Likewise.
7605         (aarch64_st4_lane<mode>): Likewise.
7606         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7608 2015-09-15  Richard Biener  <rguenther@suse.de>
7610         PR middle-end/67563
7611         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7612         transfer EH info from old to new stmt.
7613         (replace_call_with_value): Likewise.
7614         (replace_call_with_call_and_fold): Likewise.
7615         (gimple_fold_builtin_memory_op): Likewise.
7616         (gimple_fold_builtin_memset): Likewise.
7617         (gimple_fold_builtin_stpcpy): Likewise.
7618         (gimple_fold_call): Likewise.
7620 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7622         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7623         comment.
7624         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7625         (aarch64_simd_intEI_type_node): Likewise.
7626         (aarch64_simd_builtin_std_type): Remove EImode case.
7627         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7628         * config/aarch64/aarch64-modes.def: Remove EImode.
7630 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7632         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7633         Change operand mode from <V_THREE_ELEM> to BLK.
7634         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7635         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7636         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7637         (aarch64_ld3_lane<mode>): Likewise.
7638         (aarch64_st3_lane<mode>): Likewise.
7639         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7641 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7643         * config/aarch64/aarch64-simd.md
7644         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7645         Change all TImode operands to BLKmode.
7646         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7647         Change all EImode operands to BLKmode.
7648         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7649         Change all OImode operands to BLKmode.
7651         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7652         and call set_mem_size.
7653         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7655         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7657 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
7659         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7660         to...
7661         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7663         (vec_store_lanesci_lane<mode>): Rename to...
7664         (aarch64_vec_store_lanesci_lane<mode>): ...this.
7666         (vec_store_lanesxi_lane<mode>): Rename to...
7667         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7669         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7670         aarch64_st4_lane<mode>): Follow renaming.
7672 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7674         * config/s390/s390.c (s390_const_operand_ok): Add missing
7675         brackets.
7677 2015-09-15  Richard Biener  <rguenther@suse.de>
7679         PR lto/67568
7680         * lto-streamer.h (lto_location_cache::current_sysp): Properly
7681         initialize.
7682         * lto-streamer-out.c (clear_line_info): Likewise.
7684 2015-09-15  Richard Biener  <rguenther@suse.de>
7686         * doc/match-and-simplify.texi: Fix wording.
7688 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
7690         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7691         unnecessary type conversion in op1.
7693 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
7695         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7696         (dup_block_and_redirect): Delete function.
7697         (can_dup_for_shrink_wrapping): New function.
7698         (fix_fake_fallthrough_edge): New function.
7699         (try_shrink_wrapping): Rewrite function.
7700         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7702 2015-09-14  Rich Felker  <dalias@libc.org>
7704         * configure.ac: Change target pattern for sh TLS support
7705         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7706         * configure: Regenerate.
7708 2015-09-14  Jeff Law  <law@redhat.com>
7710         PR tree-optimization/47679
7711         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7712         type rather than void *.
7714 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7716         PR fortran/67460
7717         * diagnostic.c (diagnostic_initialize): Do not set
7718         some_warnings_are_errors.
7719         (diagnostic_finish): Use DK_WERROR count instead.
7720         (diagnostic_report_diagnostic): Do not set
7721         some_warnings_are_errors.
7722         * diagnostic.h (struct diagnostic_context): Remove
7723         some_warnings_are_errors.
7725 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
7727         * config/sparc/predicates.md (const_all_ones_operand): Use
7728         CONSTM1_RTX to simplify definition.
7730 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
7732         PR target/67061
7733         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7734         Handle call insns.
7736 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
7738         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7739         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7740         OPT_fshow_column to handled saved option cases.
7741         (append_compiler_options): Do not skip the above added options.
7743 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7745         PR target/63304
7746         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7747         nopcrelative_literal_loads.
7748         (aarch64_classify_address): Likewise.
7749         (aarch64_constant_pool_reload_icode): Define.
7750         (aarch64_secondary_reload): Handle secondary reloads for
7751         literal pools.
7752         (aarch64_override_options): Handle nopcrelative_literal_loads.
7753         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7754         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7755         Define.
7756         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7757         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7758         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7759         predicate.
7760         * doc/invoke.texi (mpc-relative-literal-loads): Document.
7762 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
7764         PR middle-end/67401
7765         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7766         sync_compare_and_swap_optab libcall to target_oval.
7768 2015-09-14  Marek Polacek  <polacek@redhat.com>
7770         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
7771         value.
7772         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
7774 2015-09-11  Mark Wielaard  <mjw@redhat.com>
7776         PR c/28901
7777         * toplev.c (check_global_declaration): Check and use
7778         warn_unused_const_variable.
7779         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
7780         (-Wunused-variable): Remove non-constant. For C implies
7781         -Wunused-const-variable.
7782         (-Wunused-const-variable): New.
7784 2015-09-14  Richard Biener  <rguenther@suse.de>
7786         * doc/match-and-simplify.texi: Update for changed syntax
7787         of inner ifs and the new switch expression.
7789 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
7791         * config/i386/haswell.md: New file describing Haswell pipeline.
7792         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
7793         haswell-like processors.
7794         (ix86_reassociation_width): Increase reassociation width for 64-bit
7795         Haswell processor family.
7796         * config/i386/i386.md: Introduce haswell cpu and include new md file.
7798 2015-09-14  Richard Biener  <rguenther@suse.de>
7800         * doc/match-and-simplify.texi: Fixup some formatting issues
7801         and document the 's' flag.
7803 2015-09-13  Olivier Hainque  <hainque@adacore.com>
7804             Eric Botcazou  <ebotcazou@adacore.com>
7806         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
7807         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
7808         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
7809         (TARGET_CPU_gr5): Likewise.
7810         (TARGET_CPU_gr6): Likewise.
7811         (MULTILIB_DEFAULTS): Likewise.
7812         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
7813         for mcpu=gr5 and mcpu=gr6.
7814         (MULTILIB_DIRNAMES): Adjust accordingly.
7816 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7818         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
7819         (mem_ref_p): Likewise.
7820         (outermost_indep_loop): Adjust.
7821         (mem_ref_in_stmt): Likewise.
7822         (determine_max_movement): Likewise.
7823         (mem_ref_alloc): Likewise.
7824         (record_mem_ref_loc): Likewise.
7825         (set_ref_stored_in_loop): Likewise.
7826         (mark_ref_stored): Likewise.
7827         (gather_mem_refs_stmt): Likewise.
7828         (mem_refs_may_alias_p): Likewise.
7829         (for_all_locs_in_loop): Likewise.
7830         (struct rewrite_mem_ref_loc): Likewise.
7831         (rewrite_mem_refs): Likewise.
7832         (struct first_mem_ref_loc_1): Likewise.
7833         (first_mem_ref_loc): Likewise.
7834         (struct sm_set_flag_if_changed): Likewise.
7835         (execute_sm_if_changed_flag_set): Likewise.
7836         (execute_sm): Likewise.
7837         (hoist_memory_references):
7838         (struct ref_always_accessed): Likewise.
7839         (ref_always_accessed_p): Likewise.
7840         (refs_independent_p): Likewise.
7841         (record_dep_loop): Likewise.
7842         (ref_indep_loop_p_1): Likewise.
7843         (ref_indep_loop_p_2): Likewise.
7844         (ref_indep_loop_p): Likewise.
7845         (can_sm_ref_p): Likewise.
7846         (find_refs_for_sm): Likewise.
7847         (tree_ssa_lim_finalize): Likewise.
7849 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7851         * dwarf2out.c (dw_attr_ref): Remove typedef.
7852         (dw_line_info_ref): Likewise.
7853         (pubname_ref): Likewise.
7854         (dw_ranges_ref): Likewise.
7855         (dw_ranges_by_label_ref): Likewise.
7856         (comdat_type_node_ref): Likewise.
7857         (get_AT): Adjust.
7858         (get_AT_low_pc): Likewise.
7859         (get_AT_hi_pc): Likewise.
7860         (get_AT_string): Likewise.
7861         (get_AT_flag): Likewise.
7862         (get_AT_unsigned): Likewise.
7863         (get_AT_ref): Likewise.
7864         (get_AT_file): Likewise.
7865         (remove_AT): Likewise.
7866         (print_die): Likewise.
7867         (check_die): Likewise.
7868         (die_checksum): Likewise.
7869         (attr_checksum_ordered): Likewise.
7870         (struct checksum_attributes): Likewise.
7871         (collect_checksum_attributes): Likewise.
7872         (die_checksum_ordered): Likewise.
7873         (same_die_p): Likewise.
7874         (is_declaration_die): Likewise.
7875         (clone_die): Likewise.
7876         (clone_as_declaration): Likewise.
7877         (copy_declaration_context): Likewise.
7878         (break_out_comdat_types): Likewise.
7879         (copy_decls_walk): Likewise.
7880         (output_location_lists): Likewise.
7881         (external_ref_hasher::hash): Likewise.
7882         (optimize_external_refs_1): Likewise.
7883         (build_abbrev_table): Likewise.
7884         (size_of_die): Likewise.
7885         (unmark_all_dies): Likewise.
7886         (size_of_pubnames): Likewise.
7887         (output_die_abbrevs): Likewise.
7888         (output_die): Likewise.
7889         (output_pubnames): Likewise.
7890         (add_ranges_num): Likewise.
7891         (add_ranges_by_labels): Likewise.
7892         (add_high_low_attributes): Likewise.
7893         (gen_producer_string): Likewise.
7894         (dwarf2out_set_name): Likewise.
7895         (new_line_info_table): Likewise.
7896         (prune_unused_types_walk_attribs): Likewise.
7897         (prune_unused_types_update_strings): Likewise.
7898         (prune_unused_types): Likewise.
7899         (resolve_addr): Likewise.
7900         (optimize_location_lists_1): Likewise.
7901         (index_location_lists): Likewise.
7902         (dwarf2out_finish): Likewise.
7904 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7906         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
7908 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7910         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
7911         (dump_asserts_for): Adjust.
7912         (register_new_assert_for): Likewise.
7913         (process_assert_insertions): Likewise.
7914         (insert_range_assertions): Likewise.
7916 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7918         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
7919         and remove typedef.
7920         (new_temp_expr_table): Adjust.
7921         (free_temp_expr_table): Likewise.
7922         (version_to_be_replaced_p): Likewise.
7923         (make_dependent_on_partition): Likewise.
7924         (add_to_partition_kill_list): Likewise.
7925         (remove_from_partition_kill_list): Likewise.
7926         (add_dependence): Likewise.
7927         (finished_with_expr): Likewise.
7928         (process_replaceable): Likewise.
7929         (kill_expr): Likewise.
7930         (kill_virtual_exprs): Likewise.
7931         (mark_replaceable): Likewise.
7932         (find_replaceable_in_bb): Likewise.
7933         (find_replaceable_exprs): Likewise.
7934         (debug_ter): Likewise.
7936 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7938         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
7939         (struct btr_user): Rename from btr_user_s.
7940         (struct btr_def): Rename from btr_def_s.
7941         (find_btr_def_group): Adjust.
7942         (add_btr_def): Likewise.
7943         (new_btr_user): Likewise.
7944         (note_other_use_this_block): Likewise.
7945         (compute_defs_uses_and_gen): Likewise.
7946         (link_btr_uses): Likewise.
7947         (build_btr_def_use_webs): Likewise.
7948         (block_at_edge_of_live_range_p): Likewise.
7949         (btr_def_live_range): Likewise.
7950         (combine_btr_defs): Likewise.
7951         (move_btr_def): Likewise.
7952         (migrate_btr_def): Likewise.
7953         (migrate_btr_defs): Likewise.
7955 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7957         * var-tracking.c (shared_hash_def): Rename to shared_hash.
7958         (shared_hash): Remove typedef.
7959         (struct dataflow_set): Adjust.
7960         (shared_hash_unshare): Likewise.
7961         (dataflow_set_merge): Likewise.
7962         (vt_initialize): Likewise.
7963         (vt_finalize): Likewise.
7965 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7967         * var-tracking.c (struct location_chain): Rename from
7968         location_chain_def.
7969         (struct variable_part): Adjust.
7970         (variable_htab_free): Likewise.
7971         (unshare_variable): Likewise.
7972         (get_init_value): Likewise.
7973         (get_addr_from_local_cache): Likewise.
7974         (drop_overlapping_mem_locs): Likewise.
7975         (val_reset): Likewise.
7976         (struct variable_union_info): Likewise.
7977         (variable_union): Likewise.
7978         (find_loc_in_1pdv): Likewise.
7979         (insert_into_intersection): Likewise.
7980         (intersect_loc_chains): Likewise.
7981         (canonicalize_loc_order_check): Likewise.
7982         (canonicalize_values_mark): Likewise.
7983         (canonicalize_values_star): Likewise.
7984         (canonicalize_vars_star): Likewise.
7985         (variable_merge_over_cur): Likewise.
7986         (remove_duplicate_values): Likewise.
7987         (variable_post_merge_new_vals): Likewise.
7988         (variable_post_merge_perm_vals): Likewise.
7989         (find_mem_expr_in_1pdv): Likewise.
7990         (dataflow_set_preserve_mem_locs): Likewise.
7991         (dataflow_set_remove_mem_locs): Likewise.
7992         (variable_part_different_p): Likewise.
7993         (onepart_variable_different_p): Likewise.
7994         (find_src_set_src): Likewise.
7995         (dump_var): Likewise.
7996         (set_slot_part): Likewise.
7997         (clobber_slot_part): Likewise.
7998         (delete_slot_part): Likewise.
7999         (vt_expand_var_loc_chain): Likewise.
8000         (emit_note_insn_var_location): Likewise.
8001         (vt_finalize): Likewise.
8003 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8005         * dse.c (store_info_t): Remove typedef.
8006         (group_info_t): Likewise.
8007         (const_group_info_t): Likewise.
8008         (deferred_change_t): Likewise.
8009         (get_group_info): Adjust.
8010         (free_store_info): Likewise.
8011         (canon_address): Likewise.
8012         (clear_rhs_from_active_local_stores): Likewise.
8013         (record_store): Likewise.
8014         (replace_read): Likewise.
8015         (check_mem_read_rtx): Likewise.
8016         (scan_insn): Likewise.
8017         (remove_useless_values): Likewise.
8018         (dse_step1): Likewise.
8019         (dse_step2_init): Likewise.
8020         (dse_step2_nospill): Likewise.
8021         (scan_stores_nospill): Likewise.
8022         (scan_reads_nospill): Likewise.
8023         (dse_step3_exit_block_scan): Likewise.
8024         (dse_step3): Likewise.
8025         (dse_step5_nospill): Likewise.
8026         (dse_step6): Likewise.
8028 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8030         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
8031         (alias_set_entry): Remove typedef.
8032         (alias_set_subset_of): Adjust.
8033         (alias_sets_conflict_p): Likewise.
8034         (init_alias_set_entry): Likewise.
8035         (get_alias_set): Likewise.
8036         (new_alias_set): Likewise.
8037         (record_alias_subset): Likewise.
8039 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
8041         * doc/install.texi (Downloading the source): Mark up
8042         contrib/download_prerequisites properly and drop leading "./".
8044 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8046         * config/arc/arc.h: Remove define of STRUCT_VALUE.
8047         * config/lm32/lm32.h: Likewise.
8048         * config/mep/mep.h: Likewise.
8049         * config/visium/visium.h: Likewise.
8050         * system.h: Poison STRUCT_VALUE macro.
8052 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
8054         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
8055         CONSTANT_P operands.
8057 2015-09-11  David S. Miller  <davem@davemloft.net>
8059         * config/sparc/constraints.md: Make "U" constraint a real register
8060         constraint.
8061         * config/sparc/sparc.c (TARGET_LRA_P): Define.
8062         (D_MODES, DF_MODES): Add missing cast.
8063         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8064         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8065         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8066         cost to 8.
8067         * config/sparc/sparc.h (PROMOTE_MODE): Define.
8068         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8069         provide these insn when flag_pic.
8071 2015-09-11  Jeff Law  <law@redhat.com>
8073         PR tree-optimization/47679
8074         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
8075         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
8076         member with m_.  Update inline member functions as necessary.  Add
8077         toplevel comment.
8078         * tree-ssa-scopedtables.c: Update const_and_copies's member
8079         functions to use m_ prefix to access the stack.
8081 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
8083         * graphite-optimize-isl.c (disable_tiling): Remove.
8084         (get_schedule_for_band): Do not use disable_tiling.
8085         (get_prevector_map): Delete function.
8086         (enable_polly_vector): Remove.
8087         (get_schedule_for_band_list): Remove dead code.
8089 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
8091         * graphite-optimize-isl.c (get_tile_map): Refactor.
8092         (get_schedule_for_band): Same.
8093         (getScheduleForBand): Same.
8094         (get_prevector_map): Same.
8095         (get_schedule_for_band_list): Same.
8096         (get_schedule_map): Same.
8097         (get_single_map): Same.
8098         (apply_schedule_map_to_scop): Same.
8099         (optimize_isl): Same.
8101 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8103         PR target/63304
8104         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
8105         (movtf): Delete.
8106         * config/aarch64/iterators.md (GPF_TF_F16): New.
8107         (GPF_F16): Delete.
8109 2015-09-10  Nathan Sidwell  <nathan@acm.org>
8111         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
8112         (nvptx_reorg): Adjust comments.
8114 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
8116         PR bootstrap/67363
8117         * configure.ac: Check if setenv and unsetenv are declared.
8118         * configure: Rebuild.
8119         * config.in: Rebuild.
8120         * system.h: Declare setenv and unsetenv if not declared.
8122 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8124         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
8125         commentary to simplify permute mask adjustment equation.
8126         (special_handling_values): Add SH_VPERM.
8127         (const_load_sequence_p): New function.
8128         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
8129         the mask loaded from the constant pool.
8130         (adjust_vperm): New function.
8131         (handle_special_swappables): Call adjust_vperm.
8132         (dump_swap_insn_table): Handle SH_VPERM.
8134 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
8136         * shrink-wrap.c (requires_stack_frame_p): Remove static.
8137         * shrink-wrap.h (requires_stack_frame_p): Put back.
8139 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
8141         * reload1.c (elimination_costs_in_insn): Locally turn
8142         -Wmaybe-uninitialized into a warning.
8144 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
8146         * shrink-wrap.c (requires_stack_frame_p): Make static.
8147         (prepare_shrink_wrap): Likewise.
8148         (dup_block_and_redirect): Likewise.
8149         * shrink-wrap.h: Remove declarations of those functions.
8151 2015-09-10  Mark Wielaard  <mjw@redhat.com>
8153         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
8155 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
8157         PR target/67506
8158         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
8159         missing simplify_gen_subreg.
8161 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8163         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
8164         the vector element is bigger than 64 bit.
8166 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8168         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
8169         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
8171 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8173         * config/s390/s390.c: Add V1TImode to constant pool modes.
8175 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8177         PR target/67439
8178         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
8179         predicate.  Set predicable_short_it attr to "no".
8181 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
8183         PR rtl-optimization/67421
8184         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
8185         left wide shift tranformation.
8187 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
8189         * common/config/arc/arc-common.c: Remove references to A5.
8190         * config/arc/arc-opts.h: Likewise.
8191         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
8192         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
8193         * config/arc/t-arc-newlib: Likewise.
8195 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
8197         * config/arc/arc.md (length): Fix attribute length for conditional
8198         executed instructions with long immediate.
8200 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8202         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
8203         type for second alternative.
8205 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
8207         * doc/invoke.texi (Downloading GCC): Mention
8208         contrib/download_prerequisites script.
8210 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
8212         PR c++/67523
8213         * gimplify.c (gimplify_omp_for): If inner stmt is not found
8214         for combined loop, assert seen_error () and return GS_ERROR.
8216         PR middle-end/67521
8217         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
8218         if decl is already in outer->variables.
8220         PR middle-end/67517
8221         * gimplify.c (gimplify_scan_omp_clauses): Instead of
8222         asserting that decl is not specified in octx->variables,
8223         break out of the loop if it is.
8225         PR c++/67514
8226         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
8227         iterator is not explicitly determined, but is defined inside
8228         of the combined workshare region, handle it like if it has
8229         DECL_EXPR in OMP_FOR_PRE_BODY.
8231 2015-09-09  Nathan Sidwell  <nathan@acm.org>
8233         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
8234         (*cmp<mode>): Add assembler spacing.
8235         (setcc_int<mode>, set_cc_float<mode>): Likewise.
8236         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
8237         level.
8238         (write_func_decl_from_insn): Refactor argument loops & comma emission.
8239         (nvptx_expand_call): Likewise.
8240         (nvptx_output_call_insn): Likewise.
8241         (nvptx_reorg_subreg): Add spacing.
8243 2015-09-09  Marek Polacek  <polacek@redhat.com>
8245         PR middle-end/67512
8246         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
8247         for comparisons.
8249 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
8251         PR c++/53184
8252         * doc/invoke.texi ([Wsubobject-linkage]): Document.
8254 2015-09-09  Tom de Vries  <tom@codesourcery.com>
8256         * params-list.h: Add missing copyright notice.
8258 2015-09-09  Nathan Sidwell  <nathan@acm.org>
8260         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
8261         sel_truesi, not andsi.
8263 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8265         * config/arm/arm.md (*subsi3_compare0): Rename to...
8266         (subsi3_compare0): ... This.
8267         (modsi3): New define_expand.
8268         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
8269         when operand is power of 2.
8271 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8273         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
8274         (*neg<mode>2_compare0): Rename to...
8275         (neg<mode>2_compare0): ... This.
8276         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
8277         Move check for speed inside the if-then-elses.  Reflect
8278         CSNEG sequence in MOD by power of 2 case.
8280 2015-09-09  Alan Modra  <amodra@gmail.com>
8282         PR target/67378
8283         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
8284         reload replacement for PRE_MODIFY address reg.
8286 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
8288         PR tree-optimization/53852
8289         * config.in: Regenerate.
8290         * configure: Regenerate.
8291         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
8292         * graphite-optimize-isl.c (optimize_isl): Stop computation when
8293         PARAM_MAX_ISL_OPERATIONS is reached.
8294         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
8295         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
8296         result equal to isl_stat_ok as the status now can be isl_error_quota.
8297         (subtract_commutative_associative_deps): Same.
8298         (compute_deps): Same.
8300 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
8301             Sebastian Pop  <s.pop@samsung.com>
8303         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8304         Return the parameter if it was saved in corresponding
8305         parameter_rename_map of the region.
8306         (copy_def): Copy def from sese region to the newly created region.
8307         (copy_internal_parameters): Copy all the internal parameters defined
8308         within a region to the newly created region.
8309         (graphite_regenerate_ast_isl): Copy parameters to the new region before
8310         translating isl to gimple.
8311         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
8312         the loop-nest does not have any data-references.
8313         (build_graphite_scops): Create a scop only when there is at least one
8314         loop inside it.
8315         (contains_only_close_phi_nodes): Deleted.
8316         (print_graphite_scop_statistics): Deleted
8317         (print_graphite_statistics): Deleted
8318         (limit_scops): Deleted.
8319         (build_scops): Removed call to limit_scops.
8320         * sese.c (new_sese): Construct.
8321         (free_sese): Destruct.
8322         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
8323         added.
8324         (set_rename): Pass sese region so that parameters inside the region can
8325         be added to its parameter_rename_map.
8326         (rename_uses): Pass sese region.
8327         (graphite_copy_stmts_from_block): Do not copy parameters that have been
8328         generated in the header of the scop. For each SSA_NAME in the
8329         parameter_rename_map rename its usage.
8330         (invariant_in_sese_p_rec): Return false if tree t is defined outside
8331         sese region.
8332         (scalar_evolution_in_region): If the tree t is invariant just return t.
8333         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
8334         struct sese to keep track of all the parameters which need renaming.
8335         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
8336         any data-refs.
8337         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
8339 2015-09-08  Tom de Vries  <tom@codesourcery.com>
8341         * Makefile.in (generated_files): Add params.list.
8342         (params.list, s-params.list): Add rule.
8343         * params.h (enum compiler_param): Include params-list.h.  Move define
8344         DEFPARAM, include params.def and undef DEFPARAM ...
8345         * params-list.h: ... here.  New file.
8347 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
8349         * pretty-print.h (printer_fn): Fix typo in comment.
8351 2015-09-07  Jeff Law  <law@redhat.com>
8353         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
8355 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8357         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
8358         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
8359         (arm_neon_fp16_hw): New.
8361 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8363         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
8364         UNITS_PER_WORD >= 4.
8366 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8368         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
8369         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
8370         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
8371         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
8372         (aarch64_float_extend_lo_v2df): Rename to...
8373         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
8375         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
8376         (float_extend_lo): Add v4sf.
8378         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
8379         * config/aarch64/iterators.md (VQ_HSF): New iterator.
8380         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
8381         (Vwide): New mode_attr.
8383 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8385         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
8386         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
8387         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
8388         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
8389         V4HF and V8HF variants to iterator.
8391         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
8393         * config/aarch64/iterators.md (VDQF_F16): New.
8394         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
8396 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8398         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
8399         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8400         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
8401         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
8402         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
8403         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8404         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
8405         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
8406         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
8407         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
8408         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
8409         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8410         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
8411         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
8412         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
8413         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
8414         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
8415         vld1q_dup_f16): New.
8417 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8419         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
8420         Reparameterize to...
8421         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
8422         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
8423         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
8425         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
8426         v8hf variant.
8427         (float_truncate_lo_): Use BUILTIN_VDF iterator.
8429         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
8431         * config/aarch64/iterators.md (VDF, Vdtype): New.
8432         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
8434 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8436         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
8437         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
8438         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
8439         Add __builtin_aarch64_simd_hf.
8440         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
8441         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
8442         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
8443         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
8444         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
8445         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
8446         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
8447         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
8448         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
8450         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
8451         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
8452         (VDC, Vdbl): Add V4HF.
8454 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8456         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
8457         V4HFmode and V8HFmode.
8458         (aarch64_split_simd_move): Add case for V8HFmode.
8459         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
8460         (aarch64_simd_builtin_std_type): Handle HFmode.
8461         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
8463         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
8464         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
8465         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
8467         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
8468         Float16x8_t.
8470         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
8471         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
8472         New typedefs.
8473         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
8474         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
8475         vst1q_lane_f16): New.
8476         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
8477         (VALLDI_F16, VALL_F16): New.
8478         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
8479         Add cases for V4HF and V8HF.
8480         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
8482 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8484         * config/arm/arm-builtins.c (VAR11, VAR12): New.
8485         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
8486         vld4_dup): Add v4hf variant.
8487         (vget_high, vget_low): Add v8hf variant.
8488         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
8489         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
8490         v4hf and v8hf variants.
8492         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
8493         (VDX): Add V4HF.
8494         (V_DOUBLE): Add case for V4HF.
8495         (VQX): Add V8HF.
8496         (V_HALF): Add case for V8HF.
8497         (VDQX): Add V4HF, V8HF.
8498         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
8499         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
8501         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
8502         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
8503         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
8504         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
8505         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
8506         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
8507         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
8508         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
8509         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
8511         (neon_vcreate, neon_vreinterpretv8qi<mode>,
8512         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8513         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
8514         Change VDX to VD_RE.
8516         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
8517         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
8518         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
8520         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8521         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8522         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8523         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8524         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8525         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8526         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8527         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8528         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8530 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8532         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8533         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8534         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8535         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8536         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8537         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8538         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8539         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8540         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8541         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8542         New.
8544 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8546         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8548         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8550         * config/arm/arm-builtins.c (v8hf_UP): New.
8551         (arm_init_simd_builtin_types): Initialise Float16x8_t.
8553         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8555         * config/arm/arm_neon.h (float16x8_t): New typedef.
8557 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
8559         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8560         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8561         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8562         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8563         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8564         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8565         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8566         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8567         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8568         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8570 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
8572         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8573         non-alphanumeric characters in the symbol name.
8575 2015-09-07  Marek Polacek  <polacek@redhat.com>
8577         PR inline-asm/67448
8578         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8579         a memory input.
8581 2015-09-07  Marek Polacek  <polacek@redhat.com>
8583         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8585 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
8587         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8588         not warn.
8590 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
8592         PR middle-end/67452
8593         * tree-ssa-live.c: Include cfgloop.h.
8594         (remove_unused_locals): Clear loop->simduid if simduid is about
8595         to be removed from cfun->local_decls.
8597 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8599         PR target/65210
8600         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8601         attribute as well.
8603 2015-09-04  Tom de Vries  <tom@codesourcery.com>
8605         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8607 2015-09-04  Jeff Law  <law@redhat.com>
8609         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8610         unnecessary constructor.  It's now trivial and implemented inside...
8611         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8612         constructor.  Add comments to various methods.  Remove unused
8613         private fields.
8614         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8615         * tree-vrp.c (identify_jump_threads): Likewise.
8616         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8617         indentation issues.
8618         (thread_across_edge): Similarly.
8619         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8620         arguments in constructor call.
8622 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
8624         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8625         temp path contains a '-'.
8627 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8628             Petr Murzin  <petr.murzin@intel.com>
8629             Kirill Yukhin  <kirill.yukhin@intel.com>
8631         * config/i386/i386-builtin-types.def
8632         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8633         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8634         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8635         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8636         * config/i386/i386.c
8637         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8638         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8639         IX86_BUILTIN_SCATTERALTDIV16SI.
8640         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8641         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8642         __builtin_ia32_scatteraltdiv8si.
8643         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8644         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8645         IX86_BUILTIN_SCATTERALTDIV16SI.
8646         (ix86_vectorize_builtin_scatter): New.
8647         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8648         ix86_vectorize_builtin_scatter.
8650 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8651             Petr Murzin  <petr.murzin@intel.com>
8652             Kirill Yukhin  <kirill.yukhin@intel.com>
8654         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8655         * doc/tm.texi: Regenerate.
8656         * target.def: Add scatter builtin.
8657         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8658         for loads/stores in case of gather/scatter accordingly.
8659         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8660         STMT_VINFO_GATHER_P(S).
8661         (vect_check_gather): Rename to ...
8662         (vect_check_gather_scatter): this.
8663         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8664         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8665         (vect_check_gather_scatter): Use it instead of vect_check_gather.
8666         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8667         variable and new checkings for it accordingly.
8668         * tree-vect-stmts.c
8669         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8670         STMT_VINFO_GATHER_P(S).
8671         (vect_check_gather_scatter): Use it instead of vect_check_gather.
8672         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8674 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8676         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8677         define_insn.
8678         (mulv16qi3): New define_expand.
8680 2015-09-03  Martin Sebor  <msebor@redhat.com>
8682         PR c/66516
8683         * doc/extend.texi (Other Builtins): Document when the address
8684         of a built-in function can be taken.
8686 2015-09-03  Richard Biener  <rguenther@suse.de>
8688         * dwarf2out.c (flush_limbo_die_list): Split out from ...
8689         (dwarf2out_early_finish): ... here.
8690         (dwarf2out_finish): Do not call dwarf2out_early_finish but
8691         flush_limbo_die_list.  Assert we have no deferred asm names.
8693 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8695         * optabs.c (expand_binop): Don't create a broadcast vector with a
8696         source element wider than the inner mode.
8698 2015-09-03  Richard Biener  <rguenther@suse.de>
8700         * varasm.c (output_constant): Use fold_convert instead of
8701         wide_int_to_tree.
8703 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8705         PR tree-optimization/65637
8706         * omp-low.c (expand_omp_for_static_chunk): Handle case that
8707         fin_bb has 2 predecessors.
8709 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8711         PR tree-optimization/65637
8712         * omp-low.c (find_phi_with_arg_on_edge): New function.
8713         (expand_omp_for_static_chunk): Fix inner loop phi.
8715 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8717         PR tree-optimization/65637
8718         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8719         that head is NULL.
8721 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8723         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8725 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8727         * doc/invoke.texi (parloops-chunk-size): Add item.
8728         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8729         * tree-parloops.c: Include params.h.
8730         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8731         param parloops-chunk-size is used.
8733 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8735         PR middle-end/67351
8736         * fold-const.c (fold_binary_loc) : Move
8737         Transform (x >> c) << c into x & (-1<<c) or
8738         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8739         types using simplify and match.
8740         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8741         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8743 2015-09-03  Richard Biener  <rguenther@suse.de>
8745         PR ipa/66705
8746         * tree-ssa-structalias.c (ctor_for_analysis): New function.
8747         (create_variable_info_for_1): Use ctor_for_analysis instead
8748         of get_constructor.
8749         (create_variable_info_for): Likewise.
8751 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
8753         PR ipa/67280
8754         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8755         in new callgraph edge.
8757 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
8759         PR target/59810
8760         PR target/63652
8761         PR target/63653
8762         * config/aarch64/aarch64-simd.md
8763         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8764         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8765         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8766         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8768 2015-09-02  Alan Modra  <amodra@gmail.com>
8770         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
8771         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
8772         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
8774 2015-09-02  Alan Modra  <amodra@gmail.com>
8776         PR target/67417
8777         * config/rs6000/predicates.md (current_file_function_operand): Don't
8778         return true for weak symbols.
8779         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
8781 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
8782             Andrew Bennett  <andrew.bennett@imgtec.com>
8784         * config/mips/mips-opts.h (mips_cb_setting): New enum.
8785         * config/mips/mips-protos.h: Add definitions for
8786         mips_output_jump and mips_output_equal_conditional_branch
8787         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
8788         JIC instruction.
8789         (mips_emit_compare): Add support for the MIPS R6 conditional
8790         compact branches.
8791         (mips_process_sync_loop): Likewise.
8792         (mips_output_order_conditional_branch): Likewise.
8793         (mips16_build_call_stub): Change MIPS_CALL to
8794         mips_output_jump.
8795         (mips_print_operand_punctuation): Update 's' case to only
8796         apply to micromips r2.
8797         (mips_adjust_insn_length): Add support for forbidden slot
8798         hazards.
8799         (mips_avoid_hazard): Likewise.
8800         (mips_reorg_process_insns): Likewise.
8801         (mips_output_jump): New function.
8802         (mips_output_equal_conditional_branch): Likewise.
8803         (mips_output_conditional_branch): Use jrc/bc if compact
8804         branch support is enabled.  Ensure the forbidden slots
8805         between the two branch instructions is filled with a nop.
8806         (mips_option_override): Add support to process the compact
8807         branch option and set the correct defaults.  Prevent
8808         non-explict relocs being using for MIPS R6.
8809         (mips_trampoline_init): Add compact branch support.
8810         (mips_mult_zero_zero_cost): Allow zero initialisation of
8811         accumulators with TARGET_DSP.
8812         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
8813         (TARGET_CB_MAYBE): New define.
8814         (TARGET_CB_ALWAYS): New define.
8815         (ISA_HAS_DELAY_SLOTS): New define.
8816         (ISA_HAS_COMPACT_BRANCHES): New define.
8817         (ISA_HAS_JRC): New define.
8818         (MIPS_BRANCH_C): New define.
8819         (MIPS_CALL): Removed.
8820         (MICROMIPS_J): Removed.
8821         * config/mips/mips.md (compact_form): New attr.
8822         (hazard): Add support for forbidden slots.
8823         (define_delay): Add support for compact branches.
8824         (*branch_order<mode>): Likewise.
8825         (*branch_order<mode>_inverted): Likewise.
8826         (*branch_equality<mode>): Likewise.
8827         (*branch_equality<mode>_inverted): Likewise.
8828         (*jump_absolute): Likewise.
8829         (*jump_pic): Likewise.
8830         (indirect_jump): Use mips_output_jump to produce assembly output.
8831         (tablejump_<mode>"): Likewise.
8832         (*<optab>"): Likewise.
8833         (<optab>_internal): Likewise.
8834         (sibcall_internal): Likewise.
8835         (sibcall_value_internal): Likewise.
8836         (sibcall_value_multiple_internal): Likewise.
8837         (call_internal): Likewise.
8838         (call_split): Likewise.
8839         (call_internal_direct): Likewise.
8840         (call_direct_split): Likewise.
8841         (call_value_internal): Likewise.
8842         (call_value_split): Likewise.
8843         (call_value_internal_direct): Likewise.
8844         (call_value_direct_split): Likewise.
8845         (call_value_multiple_internal): Likewise.
8846         (call_value_multiple_split): Likewise.
8847         (mips_get_fcsr_mips16_<mode>): Likewise.
8848         (mips_set_fcsr_mips16_<mode>): Likewise.
8849         (tls_get_tp_mips16_<mode>): Likewise.
8850         * config/mips/mips.opt: Add -mcompact-branches option.
8851         * config/mips/predicates.md (order_operator): Ensure the
8852         conditional compact branches are only used if the ISA them.
8853         * doc/invoke.texi: Document -mcompact-branches option.
8855 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
8857         PR target/61578
8858         * lra-lives.c (process_bb_lives): Process move pseudos with the
8859         same value for copies and preferences
8860         * lra-constraints.c (match_reload): Create match reload pseudo
8861         with the same value from single dying input pseudo.
8863 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
8865         PR target/67405
8866         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
8868 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
8870         * trans-mem.c: Add contributed-by.
8871         * trans-mem.h: Same.
8873 2015-09-01  Richard Biener  <rguenther@suse.de>
8875         * expr.c (expand_expr_real_1): For expanding TERed defs
8876         set the current location to that of the def if not UNKNOWN.
8878 2015-09-01  David Sherwood  <david.sherwood@arm.com>
8880         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
8882 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8884         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
8885         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
8886         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
8887         Include rtl-iter.h.
8888         (noce_simple_bbs): New function.
8889         (noce_try_move): Bail if basic blocks are not simple.
8890         (noce_try_store_flag): Likewise.
8891         (noce_try_store_flag_constants): Likewise.
8892         (noce_try_addcc): Likewise.
8893         (noce_try_store_flag_mask): Likewise.
8894         (noce_try_cmove): Likewise.
8895         (noce_try_minmax): Likewise.
8896         (noce_try_abs): Likewise.
8897         (noce_try_sign_mask): Likewise.
8898         (noce_try_bitop): Likewise.
8899         (bbs_ok_for_cmove_arith): New function.
8900         (noce_emit_all_but_last): Likewise.
8901         (noce_emit_insn): Likewise.
8902         (noce_emit_bb): Likewise.
8903         (noce_try_cmove_arith): Handle non-simple basic blocks.
8904         (insn_valid_noce_process_p): New function.
8905         (contains_mem_rtx_p): Likewise.
8906         (bb_valid_for_noce_process_p): Likewise.
8907         (noce_process_if_block): Allow non-simple basic blocks
8908         where appropriate.
8910 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
8912         * tree-ssa-dom.c (record_equivalences_from_phis,
8913         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
8914         (lookup_avail_expr): Likewise, and remove comment and unused temp.
8916 2015-09-01  Nick Clifton  <nickc@redhat.com>
8918         * config/msp430/msp430.opt (mcpu): Fix typo.
8920 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8922         * config/aarch64/aarch64.c (aarch64_set_current_function):
8923         Re-layout any vector parameters have non-simd layout.
8924         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
8925         Delete.
8926         (aarch64_simd_expand_args): Delete call to the above.
8928 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
8930         * doc/invoke.texi (asan-stack): Add space before option.
8932 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
8934         * tree.h (zerop): New function.
8935         * tree.c (zerop): Likewise.
8936         (element_precision): Handle expressions.
8937         * match.pd (define_predicates): Add zerop.
8938         (x <= +Inf): Fix comment.
8939         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
8940         * fold-const.c (fold_binary_loc): ... here. Remove.
8942 2015-08-31  Richard Biener  <rguenther@suse.de>
8944         PR middle-end/67381
8945         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
8947 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
8949         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
8950         (CEXPI): New operator list.
8951         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
8952         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
8953         Converted from ...
8954         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
8956 2015-08-31  Tom de Vries  <tom@codesourcery.com>
8958         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
8959         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
8960         parameter.
8961         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
8962         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
8963         (rewrite_into_loop_closed_ssa): ... here.
8964         (replace_uses_in_dominated_bbs): Remove function.
8965         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
8966         rewrite_into_loop_closed_ssa_1.
8968 2015-08-31  Michael Matz  <matz@suse.de>
8970         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
8971         enter entry and exit blocks for reverse post order.
8973 2015-08-31  Richard Biener  <rguenther@suse.de>
8975         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
8976         (lto_location_cache::current_sysp): Likewise.
8977         (output_block::current_sysp): Likewise.
8978         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
8979         (lto_location_cache::apply_location_cache): Properly record
8980         system header locations.
8981         (lto_location_cache::input_location): Input whether a file
8982         is a system header.
8983         * lto-streamer-out.c (lto_output_location): Stream whether a file
8984         is a system header.
8986 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8988         PR bootstrap/67363
8989         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
8991 2015-08-31  Tom de Vries  <tom@codesourcery.com>
8993         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
8994         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
8995         Improve function header comments.
8997 2015-08-30  Michael Collison  <michael.collison@linaro.org>
8999         PR other/67320
9000         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
9001         standard names
9003 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9005         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
9006         special_handling bitfield.
9007         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
9008         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
9009         that represents a general xxpermdi.
9010         (insn_is_swappable_p): Add handling for vec_concat of two
9011         doublewords, which maps to a specific xxpermdi.
9012         (adjust_xxpermdi): New function.
9013         (adjust_concat): Likewise.
9014         (handle_special_swappables): Call adjust_xxpermdi and
9015         adjust_concat.
9016         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
9018 2015-08-30  Rich Felker <dalias@libc.org>
9020         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
9021         case instead of sh[123456ble]-*-*.
9023 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
9025         * ira.c (print_unform_and_important_classes,
9026         print_translated_classes): Remove reg_class_names static array.
9027         (print_unform_and_important_classes): Rename to ...
9028         (print_uniform_and_important_classes): ... this.
9029         (ira_debug_allocno_classes): Update accordingly.
9031 2015-08-29  Tom de Vries  <tom@codesourcery.com>
9033         PR tree-optimization/46193
9034         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
9035         clause.
9037 2015-08-28  Jeff Law  <law@redhat.com>
9039         PR lto/66752
9040         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9041         unable to find X NE 0 in the tables, return X as the simplified
9042         condition.
9043         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9044         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
9045         to VISISTED_BBS.
9046         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9047         after removing the control flow statement and unnecessary edges.
9049 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
9051         Revert:
9052         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
9054         PR tree-optimization/67283
9055         * tree-sra.c (type_consists_of_records_p): Rename to...
9056         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9058         (completely_scalarize_record): Rename to...
9059         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
9060         code to:
9061         (scalarize_elem): New.
9063 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
9065         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
9066         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
9067         (aarch64_symbol_type): Likewise.
9068         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9069         Likewise.
9070         (aarch64_expand_mov_immediate): Likewise.
9071         (aarch64_print_operand): Likewise.
9072         (aarch64_classify_tls_symbol): Likewise.
9074 2015-08-28  Richard Biener  <rguenther@suse.de>
9076         * cgraphunit.c (symbol_table::compile): Move early debug generation
9077         and finish...
9078         (symbol_table::finalize_compilation_unit): ... back here and
9079         add a !seen_error () guard.
9081 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
9083         * toplev.c (process_options): Do not use flag_loop_block,
9084         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
9085         flag_loop_optimize_isl.
9087 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
9089         * Makefile.in (OBJS): Remove graphite-blocking.o and
9090         graphite-interchange.o.
9091         * common.opt (floop-strip-mine, floop-interchange, floop-block):
9092         Alias of floop-nest-optimize.
9093         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
9094         Document as alias of -floop-nest-optimize.
9095         * graphite-blocking.c: Remove.
9096         * graphite-interchange.c: Remove.
9097         * graphite-optimize-isl.c: Include dumpfile.h.
9098         (getScheduleForBand): Add dump for tiled loops.  Use
9099         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
9100         * graphite-poly.c (scop_max_loop_depth): Remove.
9101         (print_scattering_function_1): Remove.
9102         (print_scattering_function): Remove.
9103         (print_scattering_functions): Remove.
9104         (debug_scattering_function): Remove.
9105         (debug_scattering_functions): Remove.
9106         (apply_poly_transforms): Remove use of flag_loop_block,
9107         flag_loop_strip_mine, and flag_loop_interchange.
9108         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
9109         PBB_ORIGINAL.
9110         (print_pdr_access_layout): Remove.
9111         (print_pdr): Print ISL representation.
9112         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
9113         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
9114         (free_scop): Same.
9115         (openscop_print_pbb_domain): Remove.
9116         (print_pbb): Remove call to print_scattering_function.
9117         (openscop_print_scop_context): Remove.
9118         (print_scop_context): Do not print matrices anymore.
9119         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
9120         SCOP_TRANSFORMED_SCHEDULE.
9121         (print_isl_set): Add printing of a new line.
9122         (print_isl_map): Same.
9123         (print_isl_aff): Same.
9124         (print_isl_constraint): Same.
9125         (loop_to_lst): Remove.
9126         (scop_to_lst): Remove.
9127         (lst_indent_to): Remove.
9128         (print_lst): Remove.
9129         (debug_lst): Remove.
9130         (dot_lst_1): Remove.
9131         (dot_lst): Remove.
9132         (reverse_loop_at_level): Remove.
9133         (reverse_loop_for_pbbs): Remove.
9134         * graphite-poly.h (pdr_dim_iter_domain): Remove.
9135         (pdr_nb_params): Remove.
9136         (pdr_alias_set_dim): Remove.
9137         (pdr_subscript_dim): Remove.
9138         (pdr_iterator_dim): Remove.
9139         (pdr_parameter_dim): Remove.
9140         (same_pdr_p): Remove.
9141         (struct poly_scattering): Remove.
9142         (struct poly_bb): Remove _original, _transformed, _saved.
9143         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
9144         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
9145         (PBB_NB_LOCAL_VARIABLES): Remove.
9146         (PBB_NB_SCATTERING_TRANSFORM): Remove.
9147         (schedule_to_scattering): Remove.
9148         (number_of_write_pdrs): Remove.
9149         (pbb_dim_iter_domain): Remove.
9150         (pbb_nb_params): Remove.
9151         (pbb_nb_scattering_orig): Remove.
9152         (pbb_nb_scattering_transform): Remove.
9153         (pbb_nb_dynamic_scattering_transform): Remove.
9154         (pbb_nb_local_vars): Remove.
9155         (pbb_iterator_dim): Remove.
9156         (pbb_parameter_dim): Remove.
9157         (psco_scattering_dim): Remove.
9158         (psct_scattering_dim): Remove.
9159         (psct_local_var_dim): Remove.
9160         (psco_iterator_dim): Remove.
9161         (psct_iterator_dim): Remove.
9162         (psco_parameter_dim): Remove.
9163         (psct_parameter_dim): Remove.
9164         (psct_dynamic_dim): Remove.
9165         (psct_static_dim): Remove.
9166         (psct_add_local_variable): Remove.
9167         (new_lst_loop): Remove.
9168         (new_lst_stmt): Remove.
9169         (free_lst): Remove.
9170         (copy_lst): Remove.
9171         (lst_add_loop_under_loop): Remove.
9172         (lst_depth): Remove.
9173         (lst_dewey_number): Remove.
9174         (lst_dewey_number_at_depth): Remove.
9175         (lst_pred): Remove.
9176         (lst_succ): Remove.
9177         (lst_find_pbb): Remove.
9178         (find_lst_loop): Remove.
9179         (lst_find_first_pbb): Remove.
9180         (lst_empty_p): Remove.
9181         (lst_find_last_pbb): Remove.
9182         (lst_contains_p): Remove.
9183         (lst_contains_pbb): Remove.
9184         (lst_create_nest): Remove.
9185         (lst_remove_from_sequence): Remove.
9186         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
9187         (lst_niter_for_loop): Remove.
9188         (pbb_update_scattering): Remove.
9189         (lst_update_scattering_under): Remove.
9190         (lst_update_scattering): Remove.
9191         (lst_insert_in_sequence): Remove.
9192         (lst_replace): Remove.
9193         (lst_substitute_3): Remove.
9194         (lst_distribute_lst): Remove.
9195         (lst_remove_all_before_including_pbb): Remove.
9196         (lst_remove_all_before_excluding_pbb): Remove.
9197         (struct scop): Remove original_schedule, transformed_schedule, and
9198         saved_schedule.
9199         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
9200         (SCOP_SAVED_SCHEDULE): Remove.
9201         (poly_scattering_new): Remove.
9202         (poly_scattering_free): Remove.
9203         (poly_scattering_copy): Remove.
9204         (store_scattering_pbb): Remove.
9205         (store_lst_schedule): Remove.
9206         (restore_lst_schedule): Remove.
9207         (store_scattering): Remove.
9208         (restore_scattering_pbb): Remove.
9209         (restore_scattering): Remove.
9210         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9211         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
9212         compute the scattering polyhedron dimension from the dimension of
9213         pbb->domain.
9214         (build_scop_scattering): Update call to
9215         build_pbb_scattering_polyhedrons.
9216         (build_poly_scop): Remove call to scop_to_lst.
9217         * graphite.c (graphite_transform_loops): Add call to print_scop.
9218         (gate_graphite_transforms): Remove use of flag_loop_block,
9219         flag_loop_interchange, and flag_loop_strip_mine.
9221 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
9223         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
9224         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
9225         -floop-nest-optimize.
9226         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
9227         (generate_luj_sepclass): Remove.
9228         (generate_luj_options): Remove.
9229         (set_options): Remove opt_luj.
9230         (scop_to_isl_ast): Remove opt_luj.
9231         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
9232         flag_loop_unroll_jam.
9233         (getPrevectorMap_full): Remove.
9234         (getScheduleForBandList): Remove map_sepcl.
9235         (getScheduleMap): Same.
9236         (apply_schedule_map_to_scop): Remove sepcl.
9237         (optimize_isl): Same.
9238         * graphite-poly.c (apply_poly_transforms): Remove check for
9239         flag_loop_unroll_jam.
9240         (new_poly_bb): Remove map_sepclass.
9241         * graphite-poly.h (struct poly_bb): Same.
9242         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
9243         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
9244         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
9245         * toplev.c (process_options): Remove flag_loop_unroll_jam.
9247 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
9249         PR target/67317
9250         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
9251         (addqi3_cc): Ditto.
9252         (UNSPEC_ADD_CARRY): Remove.
9253         (addqi3_cconly_overflow): New expander.
9254         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
9255         Adjust for changed add<mode>3_carry.
9256         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
9257         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
9258         (<plusminus_insn><mode>3_carry): Remove expander.
9259         (*<plusminus_insn><mode>3_carry): Split insn pattern to
9260         add<mode>3_carry and sub<mode>3_carry.
9261         (plusminus_carry_mnemonic): Remove code attribute.
9262         (add<mode>3_carry): Canonicalize insn pattern.
9263         (*addsi3_carry_zext): Ditto.
9264         (sub<mode>3_carry): Ditto.
9265         (*subsi3_carry_zext): Ditto.
9266         (adcx<mode>3): Remove insn pattern.
9267         (addcarry<mode>): New insn pattern.
9268         (subborrow<mode>): Ditto.
9269         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
9270         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
9271         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
9272         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
9273         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
9274         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
9275         Rewrite expander to not clobber carry flag chains.
9277 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
9279         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
9280         instead of a rotate.
9282 2015-08-27  Marek Polacek  <polacek@redhat.com>
9284         PR middle-end/67005
9285         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
9286         an entry into an irreducible region.
9288 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9290         * configure: Regenerate.
9292 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
9294         PR tree-optimization/67283
9295         * tree-sra.c (type_consists_of_records_p): Rename to...
9296         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9298         (completely_scalarize_record): Rename to...
9299         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9300         (scalarize_elem): New.
9302 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
9304         * tree-sra.c (completely_scalarize_var): Rename to...
9305         (create_total_scalarization_access): ... Here. Drop call to
9306         completely_scalarize_record.
9308         (analyze_all_variable_accesses): Replace completely_scalarize_var
9309         with create_total_scalarization_access and completely_scalarize_record.
9311 2015-08-27  Alan Modra  <amodra@gmail.com>
9313         PR target/67356
9314         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
9315         for operand 1.
9317 2015-08-27  Richard Biener  <rguenther@suse.de>
9319         * passes.c (rest_of_decl_compilation): Guard early_global_decl
9320         call with !seen_error ().
9321         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
9322         early debug generation and finish...
9323         (symbol_table::compile): ... here to put it after a !seen_error ()
9324         guard.
9326 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9328         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
9329         Solaris 12+.
9331 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9332             Andre Vieira  <andre.simoesdiasvieira@arm.com>
9334         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
9335         (*cb<optab><mode>1): Likewise.
9336         (*tb<optab><mode>1): Likewise.
9337         (*cb<optab><mode>1): Likewise.
9338         * config/aarch64/iterators.md (inv_cb): New code attribute.
9339         (inv_tb): Likewise.
9340         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
9341         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
9343 2015-08-27  Richard Biener  <rguenther@suse.de>
9345         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
9347 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9349         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
9350         trap to fix ICE.
9352 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
9354         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
9355         Add declaration.
9357         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
9358         comment.
9359         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
9360         floating point in VSX registers.
9361         (rs6000_output_move_128bit): Always print out the set insn if we
9362         can't generate an appropriate 128-bit move.
9363         (rs6000_generate_compare): Add support for IEEE 128-bit floating
9364         point in VSX registers comparisons.
9365         (rs6000_expand_float128_convert): Likewise.
9367         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
9368         predicate for only GPR hard registers.
9370         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
9371         modes to iterators. Add new iterators for moving 128-bit values in
9372         scalar FPR registers and VSX registers.
9373         (FMOVE128): Likewise.
9374         (FMOVE128_FPR): Likewise.
9375         (FMOVE128_GPR): Likewise.
9376         (FMOVE128_VSX): Likewise.
9377         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
9378         in VSX registers.
9379         (IFKF): Likewise.
9380         (IBM128): Likewise.
9381         (TFIFKF): Likewise.
9382         (RELOAD): Add IEEE 128-bit floating point modes.
9383         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
9384         floating point in VSX registers modes.
9385         (signbit<mode>2, IBM128 iterator): Likewise.
9386         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
9387         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9388         (negtf2): Likewise.
9389         (neg<mode>2, TFIFKF iterator): Likewise.
9390         (negtf2_internal): Likewise.
9391         (abstf2): Likewise.
9392         (abs<mode>2, TFIFKF iterator): Likewise.
9393         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
9394         VSX insn support for negate, absolute value, and negative absolute
9395         value.
9396         (ieee_128bit_vsx_neg<mode>2): Likewise.
9397         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9398         (ieee_128bit_vsx_abs<mode>2): Likewise.
9399         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9400         (ieee_128bit_vsx_nabs<mode>2): Likewise.
9401         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9402         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
9403         floating point in VSX registers.
9404         (unpack<mode>_dm): Likewise.
9405         (unpack<mode>_nodm): Likewise.
9406         (pack<mode>): Likewise.
9407         (unpackv1ti): Likewise.
9408         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
9409         (packv1ti): Likewise.
9410         (pack<mode>, FMOVE128_VSX iterator): Likewise.
9411         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
9412         registers.
9413         (extenddftf2_internal): Likewise.
9414         (trunctfdf2): Likewise.
9415         (trunctfdf2_internal2): Likewise.
9416         (fix_trunc_helper): Likewise.
9417         (fix_trunctfdi2"): Likewise.
9418         (floatditf2): Likewise.
9419         (floatuns<mode>tf2): Likewise.
9420         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9421         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9422         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9423         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9424         (float<SDI:mode><IFKF:mode>2): Likewise.
9425         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9427 2015-08-26  Renlin Li  <renlin.li@arm.com>
9429         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
9431 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9432             Jiong Wang  <jiong.wang@arm.com>
9434         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
9435         (tlsie_tiny_<mode>): New define_insn.
9436         (tlsie_tiny_sidi): Likewise.
9437         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
9438         SYMBOL_TINY_TLSIE.
9439         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
9440         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9441         SYMBOL_TINY_TLSIE.
9442         (aarch64_expand_mov_immediate): Likewise.
9443         (aarch64_print_operand): Likewise.
9444         (arch64_classify_tls_symbol): Likewise.
9446 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9448         * config/arm/arm-arches.def: Replace single value flags with
9449         an initializer built from ARM_FSET_MAKE_CPU1.
9450         * config/arm/arm-cores.def: Likewise.
9451         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
9452         derivation from the ARM_CORE macro definition, use the given value
9453         instead.
9454         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
9455         ARM_ARCH macro definition, use the given value instead.
9457 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9459         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
9460         feature set.
9461         (struct builtin_description): Replace field mask with field
9462         features.
9463         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
9464         (IWMMXT2_BUILTIN): Likewise.
9465         (IWMMXT2_BUILTIN2): Likewise.
9466         (FP_BUILTIN): Likewise.
9467         (CRC32_BUILTIN): Likewise.
9468         (CRYPTO_BUILTIN): Likewise.
9469         (iwmmx_mbuiltin): Likewise.
9470         (iwmmx2_mbuiltin): Likewise.
9471         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
9472         struct builtin_description.
9474 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9476         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
9477         (struct builtin_description): Change type of mask to unsigned
9478         long.
9479         * config/arm/arm-protos.h (insn_flags): Declare as type
9480         arm_feature_set.
9481         (tune_flags): Likewise.
9482         * config/arm/arm.c (feature_count): New.
9483         (insn_flags): Define as type arm_feature_set.
9484         (tune_flags): Likewise.
9485         (struct processors): Define field flags as type arm_feature_set.
9486         (all_cores): Update for change to struct processors.
9487         (all_architectures): Likewise.
9488         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
9489         macros.
9490         (arm_option_override_internal): Likewise.
9491         (arm_option_override): Likewise.
9493 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9494             Jiong Wang  <jiong.wang@arm.com>
9496         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
9497         tls size for tiny, small, large memory model.
9498         (aarch64_load_symref_appropriately): Support new symbol types.
9499         (aarch64_expand_mov_immediate): Likewise.
9500         (aarch64_print_operand): Likewise.
9501         (aarch64_classify_tls_symbol): Likewise.
9502         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
9503         (aarch64_symbol_type): Likewise.
9504         * config/aarch64/aarch64.md (tlsle): Deleted.
9505         (tlsle12_<mode>): New define_insn.
9506         (tlsle24_<mode>): Likewise.
9507         (tlsle32_<mode>): Likewise.
9508         (tlsle48_<mode>): Likewise.
9509         * doc/sourcebuild.texi (AArch64-specific attributes): Document
9510         "aarch64_tlsle32".
9512 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9514         * config/arm/arm-protos.h (FL_NONE): New.
9515         (FL_ANY): New.
9516         (arm_feature_set): New.
9517         (ARM_FSET_MAKE): New.
9518         (ARM_FSET_MAKE_CPU1): New.
9519         (ARM_FSET_MAKE_CPU2): New.
9520         (ARM_FSET_CPU1): New.
9521         (ARM_FSET_CPU2): New.
9522         (ARM_FSET_EMPTY): New.
9523         (ARM_FSET_ANY): New.
9524         (ARM_FSET_HAS_CPU1): New.
9525         (ARM_FSET_HAS_CPU2): New.
9526         (ARM_FSET_HAS_CPU): New.
9527         (ARM_FSET_ADD_CPU1): New.
9528         (ARM_FSET_ADD_CPU2): New.
9529         (ARM_FSET_DEL_CPU1): New.
9530         (ARM_FSET_DEL_CPU2): New.
9531         (ARM_FSET_UNION): New.
9532         (ARM_FSET_INTER): New.
9533         (ARM_FSET_XOR): New.
9534         (ARM_FSET_EXCLUDE): New.
9535         (AFM_FSET_IS_EMPTY): New.
9536         (ARM_FSET_CPU_SUBSET): New.
9538 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
9540         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9541         SYMBOL_TLSLE to SYMBOL_TLSLE24.
9542         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9543         Likewise.
9544         (aarch64_expand_mov_immediate): Likewise.
9545         (aarch64_print_operand): Likewise.
9546         (aarch64_classify_symbol): Likewise.
9548 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
9550         * config/aarch64/aarch64.opt (mtls-size): New entry.
9551         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9552         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9553         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9555 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
9557         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9558         ARM_CORE entry.  Fix some white-space.
9559         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9560         ARM_CORE definition.
9562 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9564         * fold-const.c (fold_binary_loc) : Move Optimize
9565         root(x)*root(y) as root(x*y) to match.pd.
9566         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9567         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9568         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9569         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9570         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9571         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9572         (mult (exps:s @0) (exps:s @1)) : New simplifier.
9573         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9574         (rdiv @0 (exps:s @1)) : New simplifier.
9576 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
9578         * gcc.c (driver::finalize): Only assign to extra_specs if
9579         [EXTRA_SPECS].
9581 2015-08-25  Marek Polacek  <polacek@redhat.com>
9583         PR middle-end/67330
9584         * varasm.c (declare_weak): Return after giving an error.
9586 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
9588         * gcc-main.c (main): Add params to driver ctor.
9589         * gcc.c (class env_manager): New.
9590         (env): New global.
9591         (env_manager::init): New.
9592         (env_manager::get): New.
9593         (env_manager::xput): New.
9594         (env_manager::restore): New.
9595         Poison getenv and putenv.
9596         (DEFAULT_TARGET_SYSTEM_ROOT): New.
9597         (target_system_root): Update initialization to use
9598         DEFAULT_TARGET_SYSTEM_ROOT.
9599         (struct spec_list): Add field "default_ptr".
9600         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9601         (init_spec): Likewise.
9602         (set_spec): Clear field "default_ptr".
9603         (read_specs): Free "spec" and "buffer".
9604         (xputenv): Reimplement in terms of env_manager.
9605         (process_command): Replace ::getenv calls with calls to the
9606         env_manager singleton.
9607         (process_brace_body): Free string in three places.
9608         (driver::driver): New.
9609         (driver::~driver): New.
9610         (used_arg): Convert from a function to...
9611         (class used_arg_t): ...this class, and...
9612         (used_arg): ...this new global instance.
9613         (used_arg_t::finalize): New function.
9614         (getenv_spec_function): Add "const" to local "value".  Replace
9615         ::getenv call with call to the env_manager singleton.
9616         (path_prefix_reset): New function.
9617         (driver::finalize): New function.
9618         * gcc.h (driver::driver): New.
9619         (driver::~driver): New.
9620         (driver::finalize): New.
9622 2015-08-25  Nathan Sidwell  <nathan@acm.org>
9624         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9625         target doesn't have one.
9627 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
9629         PR target/67346
9630         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9632 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
9634         PR target/67344
9635         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9636         a define_insn, remove second alternative.
9638 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
9639             Joseph Myers  <joseph@codesourcery.com>
9641         * gcc.c (struct switchstr): Expand comment.
9643 2015-08-25  Nathan Sidwell  <nathan@acm.org>
9645         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9646         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9648 2015-08-25  Richard Biener  <rguenther@suse.de>
9650         PR middle-end/67306
9651         * genmatch.c (expr::gen_transform): Verify the result of
9652         builtin_decl_implicit.
9653         (dt_simplify::gen_1): Likewise.
9655 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9657         * config/arm/constraints.md: Also list Cs and US ARM-specific
9658         constraints as used.
9660 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9662         PR target/66609
9663         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9664         UNSPEC_PCREL.
9665         (nonpic_symbol_mentioned_p): Likewise.
9666         (sh_delegitimize_address): Likewise.
9667         (sh_function_ok_for_sibcall): Take into account weak symbols.
9668         (sh_expand_sym_label2reg): New.
9669         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9670         * config/sh/sh.md (UNSPEC_PCREL): New enum.
9671         (call_pcrel): Use sh_expand_sym_label2reg.
9672         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9673         (symPCREL_label2reg) New expand.
9675 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
9677         * graphite-poly.c: Change type of region from void* to sese.
9678         * graphite-poly.h (struct scop): Changing the type of scop::region
9679         from void* to sese. Change accessor macro accordingly.
9680         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9682 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
9684         * graphite-scop-detection.c (stmt_simple_for_scop_p):
9685         Constrain only on INTEGER_TYPE.
9687 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9689         PR target/67211
9690         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9691         -mefficient-unaligned-vsx on ISA 2.7.
9693         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9694         option to a masked option.
9696         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9697         logic for -mefficient-unaligned-vsx so that it is set via an arch
9698         ISA option, instead of being set if -mtune=power8 is set. Move
9699         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9700         near other default option handling.
9702 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9704         * genflags.c (gen_macro): Delete.
9705         (gen_proto): Don't create GEN.*CALL.* macros.
9706         * gensupport.h (get_file_location): Declare.
9707         * gensupport.c (rtx_locs): New variable.
9708         (read_md_rtx): Record rtx locations.
9709         (get_file_location): New function.
9710         * target-insns.def (call, call_pop, call_value, call_value_pop)
9711         (sibcall, sibcall_value): New patterns.
9712         * gentarget-def.c (parse_argument): New function.
9713         (def_target_insn): Use it.  Handle optional operands.  Raise an
9714         error if an .md pattern has the wrong number of operands for the
9715         pattern name.  Remove the names of unused operands from the prototype.
9716         * builtins.c (expand_builtin_apply): Use targetm functions
9717         instead of HAVE_call_value and GEN_CALL_VALUE.
9718         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
9719         and sibcall_value_pop.
9720         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9721         of GEN_CALL.
9722         * config/alpha/alpha.md (untyped_call): Likewise.
9723         * config/iq2000/iq2000.md (untyped_call): Likewise.
9724         * config/m68k/m68k.md (untyped_call): Likewise.
9725         * config/mips/mips.md (untyped_call): Likewise.
9726         * config/pa/pa.md (untyped_call): Likewise.
9727         * config/rs6000/rs6000.md (untyped_call): Likewise.
9728         * config/sparc/sparc.md (untyped_call): Likewise.
9729         * config/tilegx/tilegx.md (untyped_call): Likewise.
9730         * config/tilepro/tilepro.md (untyped_call): Likewise.
9731         * config/visium/visium.md (untyped_call): Likewise.
9732         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9733         gen_call_value instead of GEN_CALL_VALUE.
9734         * config/arm/arm.md (untyped_call): Likewise.
9735         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9736         GEN_CALL.
9738 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9740         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9741         (have_cbranchcc4): New variable.
9742         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9743         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9744         (if_convert): Initialize have_cbranchcc4.
9746 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9748         * builtins.c (expand_cmpstrn): Rename to...
9749         (expand_cmpstrn_or_cmpmem): ...this.
9750         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9751         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9752         Remove mode argument.
9753         (expand_builtin): Update accordingly.
9755 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9757         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9758         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
9759         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9760         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9761         Add predicates for operands 0 and 3.
9762         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9763         operand.
9764         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9765         immediate_operand to nonmemory_operand.
9767 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9769         * df-scan.c (df_insn_info_init_fields): New function, split out
9770         from...
9771         (df_insn_create_insn_record): ...here.
9772         (df_insn_info_free_fields): New function, split out from...
9773         (df_insn_info_delete): ...here.
9774         (df_insn_rescan): Use the new functions instead of freeing and
9775         reallocating the df_insn_info.
9777 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9779         * doc/install.texi (Binaries): Remove links no longer valid.
9781 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
9783         * config/nvptx/mkoffload.c (process): Replace
9784         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
9786 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
9788         PR target/67329
9789         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
9791 2015-08-24  Renlin Li  <renlin.li@arm.com>
9793         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
9794         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
9795         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
9796         * config/arm/constraints.md ("j"): Add check for high code.
9798 2015-08-24  Tom de Vries  <tom@codesourcery.com>
9800         PR tree-optimization/65468
9801         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
9802         chunk_size is one.
9804 2015-08-24  Nathan Sidwell  <nathan@acm.org>
9806         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
9807         change to nvptx_type_from_mode call. Use arg_promotion for both
9808         split and non-split args.
9810 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9812         * target-insns.def (movstr): New pattern.
9813         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
9814         (expand_movstr): Use targetm rather than HAVE_movstr/
9815         CODE_FOR_movstr.
9817 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
9819         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
9820         cast syntax.
9822 2015-08-24  Andrew Pinski  <apinski@cavium.com>
9824         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
9825         AARCH64_EXTRA_TUNING_OPTION.
9826         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
9827         New enum.
9828         (aarch64_extra_tuning_flags): Base the shifted value on the index
9829         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
9830         * config/aarch64/aarch64.c: Remove the last argument to
9831         AARCH64_EXTRA_TUNING_OPTION.
9833 2015-08-23  Nathan Sidwell  <nathan@acm.org>
9835         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
9836         decls.
9837         (nvptx_declare_function_name): Insert formatting tabs for
9838         consistency.
9840 2015-08-23  Tom de Vries  <tom@codesourcery.com>
9842         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
9843         parm_decl, rather than generating a dummy default def in cfun.
9844         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
9845         ssa_name from cfun and child_fn do not share a stmt as def stmt.
9846         (move_stmt_op): Handle PARM_DECl.
9847         (gather_ssa_name_hash_map_from): New function.
9848         (move_sese_region_to_fn): Add default defs for function params, and add
9849         them to vars_map.  Release copied ssa names.
9850         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
9852 2015-08-23  Tom de Vries  <tom@codesourcery.com>
9854         * doc/sourcebuild.texi: Rename vect_no_int_max with
9855         vect_no_int_min_max.  Update description.
9857 2015-08-22  Andrew Pinski  <apinski@cavium.com>
9859          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
9860         * config/aarch64/aarch64-protos.h
9861         (aarch64_fusion_pairs_index): New enum.
9862         (aarch64_fusion_pairs): Base the shifted value on the index instead
9863         Rewrite AARCH64_FUSE_ALL to be based on the end index.
9864         of the argument to AARCH64_FUSION_PAIR.
9865         * config/aarch64/aarch64.c: Remove the last argument to
9866         AARCH64_FUSION_PAIR.
9868 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
9870         * dominance.c (new_zero_array): Define.
9871         (dom_info): Redefine as class with proper encapsulation.
9872         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
9873         Add new members.
9874         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
9875         allocations/deallocations.  Pass function as parameter (instead of
9876         using cfun).
9877         (dom_info::get_idom): Define accessor method.
9878         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
9879         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
9880         (calculate_dominance_info): Adjust to use dom_info class.
9881         (verify_dominators): Likewise.
9883 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
9885         * print-rtl.c (print_rtx): Check the correct range for
9886         flag_dump_unnumbered_links to behave as documented.
9888         PR rtl-optimization/67227
9889         PR rtl-optimization/64164
9890         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
9891         (nonoverlapping_memrefs_p): Test offsets and sizes when given
9892         identical gimple_reg exprs.
9894 2015-08-21  Nathan Sidwell  <nathan@acm.org>
9896         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
9897         expansion.
9898         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
9899         crtl->stack_alignment_needed to determine alignment.
9900         (nvptx_get_drap_rtx): New.
9901         (TARGET_GET_DRAP_RTX): Override.
9902         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
9904 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9906         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
9908 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9910         * configure.ac: Remove uwin* cases.
9911         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
9912         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
9913         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
9914         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
9915         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
9916         i[34567]86-*-uwin*, powerpc-*-beos*.
9918 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
9920         * gencodes.c (gencodes): Print the comma for the preceding
9921         enum value rather than the current one.  Use aliased enum values
9922         rather than #defines for compiled-out patterns.
9923         (main): Update accordingly.  Replace LAST_INSN_CODE with
9924         NUM_INSN_CODES.
9925         * lra.c (insn_code_data): Update accordingly.
9926         (finish_insn_code_data_once, get_static_insn_data): Likewise.
9927         * recog.h (target_recog): Likewise.
9928         (preprocess_insn_constraints): Change parameter to unsigned int.
9929         * recog.c (preprocess_insn_constraints): Likewise.
9930         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
9931         * tree-vect-stmts.c (vectorizable_operation): Simplify.
9933 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9935         PR rtl-optimization/61657
9936         * loop-iv.c (iv_number_of_iterations): Declare up and down as
9937         unsigned.  Remove superflous uint64_t cast.
9939 2014-08-21  Felix Yang  <felix.yang@huawei.com>
9940             Jiji Jiang  <jiangjiji@huawei.com>
9942         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
9943         argument and get builtin function code directly from CALL.
9944         (gimple_stringop_fixed_value): Modified accordingly.
9945         (gimple_stringops_transform, gimple_stringops_values_to_profile):
9946         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
9948 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9950         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
9952 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9954         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
9955         to match.pd.
9956         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
9957         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
9958         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
9959         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
9960         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
9961         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
9962         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
9963         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
9964         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
9965         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
9967         * match.pd (SIN ) : New Operator.
9968         (TAN) : New Operator.
9969         (mult (SQRT@1 @0) @1) : New simplifier.
9970         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
9971         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9972         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
9973         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
9974         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
9975         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
9976         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
9977         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
9978         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
9979         (rdiv @0 (POW:s @1 @2)) : New simplifier.
9981 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
9983         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
9984         loop if EXPR is simplified to const value.
9986 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
9988         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
9989         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
9991 2015-08-21  Richard Biener  <rguenther@suse.de>
9993         PR middle-end/67285
9994         * gimple-fold.c (replace_stmt_with_simplification): Assert
9995         seq is empty when replacing a call with itself but different
9996         arguments.
9997         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
9998         a call require that it is const.
10000 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10002         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
10003         * builtins.c (get_object_alignment_2): Adjust.
10004         * varasm.c (align_variable): Likewise.
10005         (get_variable_align): Likewise.
10006         (build_constant_desc): Likewise.
10007         (force_const_mem): Likewise.
10008         * doc/tm.texi.in: Likewise.
10009         * doc/tm.texi: Regenerate.
10011 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10013         * genconfig.c (main): Always define HAVE_cc0.
10014         * recog.c (rest_of_handle_peephole2): Adjust.
10016 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10018         * reorg.c (relax_delay_slots): Don't use #if to check value of
10019         HAVE_cc0.
10021 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10023         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
10024         * targhooks.c (default_have_conditional_execution): Adjust.
10026 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10028         * rtl.h (rtvec_all_equal_p): Declare.
10029         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
10030         * rtl.c (rtvec_all_equal_p): New function.
10031         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
10032         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
10033         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
10034         * config/arm/arm.c (neon_vdup_constant): Likewise.
10035         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
10036         * config/tilegx/constraints.md (W, Y): Likewise.
10037         * config/tilepro/constraints.md (W, Y): Likewise.
10038         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
10039         (classify_immediate): Use unwrap_const_vec_duplicate.
10040         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
10041         (reg_or_v2s8bit_operand): Likewise.
10042         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
10043         (reg_or_v4s8bit_operand): Likewise.
10045 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10047         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
10048         (vec_shasigma_be): New #define.
10049         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
10050         (VPMSUMH): Likewise.
10051         (VPMSUMW): Likewise.
10052         (VPMSUMD): Likewise.
10053         (VPMSUM): New BU_P8V_OVERLOAD_2.
10054         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
10055         entries for VEC_MADD and VEC_VPMSUM.
10057 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
10059         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
10060         Multiply argument avr_n_flash by 64 to match unit of "KiB".
10061         (avr_pgm_check_var_decl): Same.
10063 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
10065         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
10066         initialization of HFmode scalar type (float16_t) to...
10067         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
10068         code.
10070         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
10072         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
10073         having an -mfp16-format.
10075 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
10077         * config/i386/predicates.md (vector_all_ones_operand): Use
10078         CONSTM1_RTX to simplify definition.
10080 2015-08-20  Richard Biener  <rguenther@suse.de>
10082         * toplev.c (compile_file): Remove loop calling late_global_decl
10083         on all symbols.
10084         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
10085         on decls we assembled.
10087 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
10089         * common/config/aarch64/aarch64-common.c
10090         (AARCH64_CPU_NAME_LENGTH): Delete.
10091         (aarch64_option_extension): New.
10092         (all_extensions): Likewise.
10093         (processor_name_to_arch): Likewise.
10094         (arch_to_arch_name): Likewise.
10095         (all_cores): New.
10096         (all_architectures): Likewise.
10097         (aarch64_get_extension_string_for_isa_flags): Likewise.
10098         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
10099         architecture names.
10100         * config/aarch64/aarch64-protos.h
10101         (aarch64_get_extension_string_for_isa_flags): New.
10102         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
10103         (aarch64_option_print): Get the string to print from
10104         aarch64_get_extension_string_for_isa_flags.
10105         (aarch64_declare_function_name): Likewise.
10106         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
10107         (MCPU_TO_MARCH_SPEC): This.
10108         (ASM_CPU_SPEC): Use it.
10109         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
10110         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
10111         (EXTRA_SPEC_FUNCTIONS): Use it.
10113 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
10115         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
10116         expansion when !ISA_HAS_LWL_LWR.
10117         (mips_block_move_straight): Update the size of elements copied to
10118         account for alignment when !ISA_HAS_LWL_LWR.
10119         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
10121 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
10123         * expr.c (expand_expr_real_2): Check gimple statement during
10124         LSHIFT_EXPR expand.
10126 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
10128         * common.opt (fstack-protector): Initialize to -1.
10129         (fstack-protector-all): Likewise.
10130         (fstack-protector-strong): Likewise.
10131         (fstack-protector-explicit): Likewise.
10132         * configure.ac: Add --enable-default-ssp.
10133         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
10134         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
10135         -1.
10136         * doc/install.texi: Document --enable-default-ssp.
10137         * config.in: Regenerated.
10138         * configure: Likewise.
10140 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
10142         PR rtl-optimization/64164
10143         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
10144         (parm_in_stack_slot_p): ... this.  Disregard mode, what
10145         matters is whether the parm will live in a pseudo or a stack
10146         slot.
10147         (expand_one_ssa_partition): Deal with params without a default
10148         def.  Disregard mode.
10149         * cfgexpand.h: Renamed function declaration.
10150         * tree-ssa-coalesce.c: Adjust.
10151         * function.c (split_complex_args): Allocate stack slot for
10152         unassigned parms before splitting.
10153         (parm_in_unassigned_mem_p): New.  Use it instead of
10154         parm_maybe_byref_p throughout this file.
10155         (assign_parm_setup_block): Use it.  Accept pseudos in the
10156         expand-assigned rtl.
10157         (assign_parm_setup_reg): Drop BLKmode requirement.
10158         (assign_parm_setup_stack): Allocate and fill in the address of
10159         unassigned MEM parms.
10161 2015-08-19  David Sherwood  <david.sherwood@arm.com>
10163         * genmodes.c (emit_mode_unit_size_inline): New function.
10164         (emit_mode_unit_precision_inline): New function.
10165         (emit_insn_modes_h): Emit new #define.  Emit new functions.
10166         (emit_mode_unit_size): New function.
10167         (emit_mode_unit_precision): New function.
10168         (emit_mode_adjustments): Add mode_unit_size adjustments.
10169         (emit_insn_modes_c): Emit new arrays.
10170         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
10171         use new inline methods.
10173 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10175         * config/aarch64/aarch64.c (bit_count): Delete prototype
10176         and definition.
10177         (aarch64_print_operand): Use popcount_hwi instead of the above.
10179 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10181         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
10182         comment.
10184 2015-08-19  Marek Polacek  <polacek@redhat.com>
10186         PR middle-end/67133
10187         * gimple-ssa-isolate-paths.c
10188         (insert_trap_and_remove_trailing_statements): Rename to ...
10189         (insert_trap): ... this.  Don't remove trailing statements; split
10190         block instead.
10191         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
10193 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
10195         PR other/67042
10196         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
10197         conditionalize the whole on __GNUC__.  Add fallback code
10198         depending neither on undefined nor implementation-defined behaviour.
10200 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
10202         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
10203         whitespaces with tab.
10205 2015-08-19  Florian Weimer  <fweimer@redhat.com>
10207         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
10208         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
10209         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
10210         Move Name_Ids instantiation to the Prj.Proc package, to avoid
10211         trampolines.
10213 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10215         * config/arm/arm.c (bounds_check): Use %wd print format
10216         for HOST_WIDE_INT arguments.
10218 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
10220         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
10221         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
10222         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
10223         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
10224         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
10225         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
10226         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
10227         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
10228         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
10229         typedefs.
10231 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
10233         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
10234         function.c, graphite-scop-detection.c, haifa-sched.c,
10235         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
10236         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
10237         varasm.c: Remove typedefs of structs.
10239 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
10241         * config/rs6000/altivec.h (vec_adde): New define.
10242         (vec_addec): Likewise.
10243         (vec_double): Likewise.
10244         (vec_bperm): Likewise.
10245         (vec_gb): Likewise.
10246         * config/rs6000/rs6000-builtin.def (ADDE): New
10247         BU_ALTIVEC_OVERLOAD_3.
10248         (ADDEC): Likewise.
10249         (DOUBLE): New BU_VSX_OVERLOAD_1.
10250         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
10251         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
10252         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
10253         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
10254         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
10255         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
10256         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
10257         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
10258         and P8V_BUILTIN_VEC_VBPERMQ.
10260 2015-08-18  Jason Merrill  <jason@redhat.com>
10262         * print-tree.c (print_node): Handle TREE_BINFO.
10264 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10266         PR middle-end/36757
10267         * builtins.c (expand_builtin_signbit): Add asserts to make sure
10268         we can expand BUILT_IN_SIGNBIT inline.
10269         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
10270         * doc/extend.texi: Document the type-generic __builtin_signbit.
10272 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
10274         PR rtl-optimization/67218
10275         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
10276         (simplify_unary_operation_1): Use it.
10278 2015-08-18  Marek Polacek  <polacek@redhat.com>
10280         PR middle-end/67222
10281         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
10282         if the call isn't valid.
10283         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
10284         gimple_call_builtin_p.
10285         (call_may_clobber_ref_p_1): Likewise.
10286         (stmt_kills_ref_p): Likewise.
10288 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
10290         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
10291         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
10292         (mips_hard_regno_scratch_ok): Likewise.
10293         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
10294         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
10296 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
10298         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
10299         (determine_value_range): Call refine_value_range_using_guard for
10300         each loop initial condition to improve value range.
10302 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
10304         * config/i386/i386.c: Remove include of fibheap.h.
10306 2015-08-17  Richard Biener  <rguenther@suse.de>
10308         PR tree-optimization/67221
10309         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
10310         (sccvn_dom_walker::before_dom_children): Mark backedges of
10311         non-executable blocks as not executable.
10313 2015-08-17  David Sherwood  <david.sherwood@arm.com>
10315         * config/arm/arm.c (neon_element_bits): Replace call to
10316         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
10317         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
10318         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
10319         (neon_vdup_lane<mode>): Likewise.
10320         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
10321         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
10322         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
10323         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
10324         * config/spu/spu.c (arith_immediate_p): Likewise.
10325         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10326         * expr.c (expand_expr_real_2): Likewise.
10327         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
10328         * simplify-rtx.c (simplify_immed_subreg): Likewise.
10329         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10330         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
10331         New variable.
10332         * fold-const.c (fold_binary_loc): Replace call to
10333         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
10334         GET_MODE_UNIT_PRECISION (m).
10336 2015-08-17  Mike Stump  <mikestump@comcast.net>
10338         * config/arm/arm.c (arm_block_move_unaligned_straight):
10339         Emit normal move instead of unaligned load when source or destination
10340         are appropriately aligned.
10342 2015-08-17  Richard Biener  <rguenther@suse.de>
10343             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10345         PR middle-end/16107
10346         * match.pd (div (coss (op @0) : New simplifier.
10348 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
10350         PR rtl-optimization/64164
10351         PR bootstrap/66978
10352         PR middle-end/66983
10353         PR rtl-optimization/67000
10354         PR middle-end/67034
10355         PR middle-end/67035
10356         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10357         * tree-ssa-copyrename.c: Removed.
10358         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10359         -ftree-coalesce-vars.
10360         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10361         * common.opt (ftree-copyrename): Ignore.
10362         (ftree-coalesce-inlined-vars): Likewise.
10363         * doc/invoke.texi: Remove the ignored options above.
10364         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10365         * tree-ssa-coalesce.h: ... here.
10366         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10367         headers required by it.
10368         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10369         across variables when flag_tree_coalesce_vars.  Check register
10370         use and promoted modes to allow coalescing.  Do not coalesce
10371         maybe-byref parms with SSA_NAMEs of other variables, or
10372         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
10373         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10374         with its member functions to tree-ssa-coalesce.c.
10375         (var_map_base_init): Likewise.  Renamed to
10376         compute_samebase_partition_bases.
10377         (partition_view_normal): Drop want_bases parameter.
10378         (partition_view_bitmap): Likewise.
10379         * tree-ssa-live.h: Adjust declarations.
10380         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
10381         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10382         default defs at the entry point.
10383         (dump_part_var_map): New.
10384         (compute_optimized_partition_bases): New, called by...
10385         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10386         of compute_samebase_partition_bases.  Adjust.
10387         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10388         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
10389         (ssa_default_def_partition): New.
10390         (get_rtl_for_parm_ssa_default_def): New.
10391         (align_local_variable, add_stack_var): Support anonymous SSA
10392         names.
10393         (defer_stack_allocation): Likewise.  Declare earlier.
10394         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10395         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10396         Do no record deferred-allocation marker in
10397         SA.partition_to_pseudo.
10398         (expand_stack_vars): Adjust check for the marker in it.
10399         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10400         redundant MEM attr setting.
10401         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10402         from...
10403         (expand_one_stack_var): ... this.  New wrapper to check and
10404         skip already expanded SSA partitions.
10405         (record_alignment_for_reg_var): New, factored out of...
10406         (expand_one_var): ... this.
10407         (expand_one_ssa_partition): New.
10408         (adjust_one_expanded_partition_var): New.
10409         (expand_one_register_var): Check and skip already expanded SSA
10410         partitions.
10411         (expand_used_vars): Don't create DECLs for anonymous SSA
10412         names.  Expand all SSA partitions, then adjust all SSA names.
10413         (pass::execute): Replace the loops that set
10414         SA.partition_to_pseudo from partition leaders and cleared
10415         DECL_RTL for multi-location variables, and that which used to
10416         rename vars and set attrs, with one that clears DECL_RTL and
10417         checks that PARMs and RESULTs default_defs match DECL_RTL.
10418         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10419         * emit-rtl.c: Include stor-layout.h.
10420         (set_reg_attrs_for_parm): Handle NULL decl.
10421         (set_reg_attrs_for_decl_rtl): Take mode from expression if
10422         it's not a DECL.
10423         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
10424         rather than its possibly-NULL DECL.
10425         * explow.c (promote_ssa_mode): New.
10426         * explow.h (promote_ssa_mode): Declare.
10427         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10428         (read_complex_part): Export.
10429         * expr.h (read_complex_part): Declare.
10430         * cfgexpand.h (parm_maybe_byref_p): Declare.
10431         * function.c: Include cfgexpand.h.
10432         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10433         (use_register_for_parm_decl): Wrapper for the above to
10434         special-case the result_ptr.
10435         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10436         (split_complex_args): Take assign_parm_data_all argument.
10437         Pass it to rtl_for_parm.  Set up rtl and context for split
10438         args.  Reset complex parm before fetching its default decl
10439         rtl.
10440         (assign_parms_unsplit_complex): Use the default-def complex
10441         parm rtl if it matches the components.
10442         (assign_parms_augmented_arg_list): Adjust.
10443         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10444         multiple locations.  Recognize split complex args.
10445         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10446         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10447         (assign_parm_setup_block): Prefer SSA-assigned location, and
10448         fill in its address if the memory location of a maybe-byref
10449         parm was not assigned by cfgexpand.
10450         (assign_parm_setup_reg): Likewise.  Adjust its mode as
10451         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
10452         sure passed_pointer parms don't need conversion.  Copy address
10453         or value as needed.
10454         (assign_parm_setup_stack): Prefer SSA-assigned location.
10455         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10456         rtl before testing for pointer bounds.  Special-case result_ptr.
10457         (expand_function_start): Maybe reset DECL_RTL of result.
10458         Prefer SSA-assigned location for result and static chain.
10459         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
10460         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
10461         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10462         anonymous SSA names.  Use promote_ssa_mode.
10463         (get_temp_reg): Likewise.
10464         (remove_ssa_form): Adjust.
10465         * stor-layout.c (layout_decl): Don't set mem attributes of
10466         non-MEMs.
10467         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10468         and get its reg_usage for reg invalidation.
10469         (compute_bb_dataflow): Pass it insn.
10470         (emit_notes_in_bb): Likewise.
10472 2015-08-14  Marek Polacek  <polacek@redhat.com>
10474         * tree-core.h (tree_base): Fix typo.
10476 2015-08-14  Marek Polacek  <polacek@redhat.com>
10478         PR middle-end/67133
10479         * gimple.c (infer_nonnull_range_by_attribute): Check that the
10480         nonnull argument position is not outside function arguments.
10482 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
10484         PR target/67143
10485         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
10486         'lconst_atomic' with 'const_atomic'.
10487         (atomic_fetch_<optab><mode>): Likewise.
10488         (atomic_<optab>_fetch<mode>): Likewise.
10489         * config/aarch64/iterators.md (lconst-atomic): Move below
10490         'const_atomic'.
10491         (const_atomic): New.
10493 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
10494             Bernd Schmidt  <bernds@codesourcery.com>
10496         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
10497         debug options.
10498         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
10499         (DWARF2_DEBUGGING_INFO): Don't define.
10500         * debug.h (dwarf2_lineno_debug_hooks): Declare.
10501         * toplev.c (process_options): Add a case for it.
10502         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
10503         (dwarf2out_init): Skip most initializations if
10504         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
10505         case.
10506         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
10507         DWARF2_LINENO_DEBUGGING_INFO.
10508         * opts.c (set_debug_level): Likewise.
10510 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
10512         * config/arm/types.md (is_neon_type): Add missing types.
10514 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
10516         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
10517         for skylake.
10518         * config/i386/i386.c (PTA_SKYLAKE): New macros.
10519         (processor_alias_table): Add skylake description.
10520         (enum processor_model): Add skylake processor.
10521         (arch_names_table): Add skylake record.
10522         * doc/invoke.texi: Add skylake item.
10524 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
10526         * ira-int.h: Include recog.h.
10527         * ira-build.c: Don't include recog.h.
10528         * ira-color.c: Likewise.
10529         * ira-conflicts.c: Likewise.
10530         * ira-costs.c: Likewise.
10531         * ira-emit.c: Likewise.
10532         * ira-lives.c: Likewise.
10533         * ira.c: Likewise.
10534         * sched-deps.c: Likewise.
10535         * sel-sched.c: Likewise.
10536         * target-globals.c: Likewise.
10538 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
10540         PR bootstrap/55035
10541         * reload1.c (elimination_costs_in_insn): Make it obvious to the
10542         compiler that the n_dups and n_operands loop bounds are invariant.
10544 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10546         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10547         expressions in A and B.
10549 2015-08-13  Richard Biener  <rguenther@suse.de>
10551         * tree.c (nonnull_arg_p): Move from ...
10552         * tree-vrp.c (nonnull_arg_p): ... here.
10553         * tree.h (nonnull_arg_p): Declare.
10554         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10555         here, register ptr != 0 for nonnull_arg_p pointer arguments.
10556         Properly initialize static chain and by-reference result pointer.
10557         (run_scc_vn): Adjust.
10559 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
10561         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10562         TUNE_I6400.
10564 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
10566         * config/aarch64/aarch64-protos.h
10567         (aarch64_gen_atomic_cas): Declare.
10568         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10569         Choose appropriate instruction pattern for the target.
10570         (aarch64_gen_atomic_cas): New.
10571         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10572         (atomic_compare_and_swap<mode>_1): Rename to
10573         aarch64_compare_and_swap<mode>.  Fix some indentation.
10574         (aarch64_compare_and_swap<mode>_lse): New.
10575         (aarch64_atomic_cas<mode>): New.
10577 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
10579         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10580         (TARGET_LSE): New.
10582 2015-08-13  Richard Biener  <rguenther@suse.de>
10584         PR tree-optimization/67191
10585         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10586         assert we value-numbered last stmts operand because it can validly
10587         trigger for unreachable code.
10589 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10591         PR rtl-optimization/67103
10592         * ifcvt.c (noce_try_store_flag_constants): Move
10593         x = (-(test != 0) & (b - a)) + a transformation to...
10594         (noce_try_cmove): ... Here.  Try it if normal conditional
10595         move fails.
10597 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
10599         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10600         pseudo-processors.
10601         * config/mips/mips.md (processor): Remove w32 and w64.
10603 2015-08-13  Richard Biener  <rguenther@suse.de>
10605         PR tree-optimization/66502
10606         PR tree-optimization/67167
10607         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10608         backedge arguments.
10609         (vn_phi_lookup): Adjust.
10610         (vn_phi_insert): Likewise.
10611         (visit_phi): Prefer to value-number to another PHI node
10612         over value-numbering to a PHI argument.
10613         (init_scc_vn): Mark DFS back edges.
10615 2015-08-13  Richard Biener  <rguenther@suse.de>
10617         * gimple.h (gcall::code_): New constant static member.
10618         (gcond::code_): Likewise.
10619         * gimple.c (gcall::code_): Define.
10620         (gcond::code_): Likewise.
10621         (is_a_helper <const gcond *>): Add.
10622         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10623         and forward to a new gcall overload with less checking and a
10624         cheaper way to access the operand.
10625         (gimple_call_lhs_ptr): Likewise.
10626         (gimple_call_set_lhs): Likewise.
10627         (gimple_call_internal_p): Likewise.
10628         (gimple_call_with_bounds_p): Likewise.
10629         (gimple_call_set_with_bounds): Likewise.
10630         (gimple_call_internal_fn): Likewise.
10631         (gimple_call_set_ctrl_altering): Likewise.
10632         (gimple_call_ctrl_altering_p): Likewise.
10633         (gimple_call_fntype): Likewise.
10634         (gimple_call_fn): Likewise.
10635         (gimple_call_fn_ptr): Likewise.
10636         (gimple_call_set_fndecl): Likewise.
10637         (gimple_call_fndecl): Likewise.
10638         (gimple_call_chain): Likewise.
10639         (gimple_call_num_args): Likewise.
10640         (gimple_call_arg): Likewise.
10641         (gimple_call_arg_ptr): Likewise.
10642         (gimple_call_set_arg): Likewise.
10643         (gimple_call_noreturn_p): Likewise.
10644         (gimple_cond_code): Likewise.
10645         (gimple_cond_lhs): Likewise.
10646         (gimple_cond_rhs): Likewise.
10647         (gimple_has_lhs): Reduce checking.
10649 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10651         PR middle-end/25529
10652         * match.pd (div (mult @0 @1) @1) : New simplifier.
10654 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10656         PR target/67071
10657         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10658         predicate to allow construction of vector constants using the
10659         VSLDOI vector shift instruction.
10661         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10662         declaration.
10664         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10665         the number of bytes to be shifted left and filled in with either
10666         all zero or all one bits.
10667         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10668         methods exist.
10669         (output_vec_const_move): On power8, generate XXLORC to generate
10670         a vector constant with all 1's. Do a split if we need to use a
10671         VSLDOI instruction.
10673         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10674         properly test for the MSB.
10676         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10677         vector constants that can be created with VSLDOI.
10679 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
10681         revert:
10682         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10683         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10684         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10685         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10686         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10687         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10688         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10689         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10690         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10692 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
10694         * config/xtensa/constraints.md (define_constraint "Y"): New
10695         constraint.
10696         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10697         * config/xtensa/linux.h (ASM_SPEC): Likewise.
10698         * config/xtensa/predicates.md (move_operand): Match constants
10699         and symbols in the presence of TARGET_AUTO_LITPOOLS.
10700         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10701         immediate references to TLS data.
10702         (xtensa_emit_move_sequence): Don't force constants to memory in
10703         the presence of TARGET_AUTO_LITPOOLS.
10704         (print_operand): Add 'y' format, same as default, but capable of
10705         printing SF mode constants as well.
10706         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10707         (movsf_internal): Add movi pattern that loads literal.
10708         (movsf, movdf): Don't force constants to memory in the presence
10709         of TARGET_AUTO_LITPOOLS.
10710         (movdf_internal): Add 'Y' constraint.
10711         * config/xtensa/xtensa.opt (mauto-litpools): New option.
10712         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10714 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
10716         * config/arm/arm-fpus.def: Replace booleans with feature flags.
10717         Update comment.
10718         * config/arm/arm.c (ARM_FPU): Update macro.
10719         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10720         (TARGET_FP16): Likewise.
10721         (TARGET_CRYPTO): Likewise.
10722         (TARGET_NEON): Likewise.
10723         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
10724         field features.
10726 2015-08-12  Tom de Vries  <tom@codesourcery.com>
10728         PR other/67092
10729         PR other/67098
10730         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
10731         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10732         accordingly.  Mention default for --with-stage1-ldflags.
10734 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
10736         * config/arm/arm.h (arm_fpu_feature_set): New.
10737         (ARM_FPU_FSET_HAS): New.
10738         (FPU_FL_NONE): New.
10739         (FPU_FL_NEON): New.
10740         (FPU_FL_FP16): New.
10741         (FPU_FL_CRYPTO): New.
10743 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10745         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10746         after -mcmodel=large -fPIC sorry.
10748 2015-08-12  Richard Biener  <rguenther@suse.de>
10750         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10751         comparison operand order and commutative ternary op operand order.
10752         (sccvn_dom_walker::cond_stack): New state to track temporary
10753         expressions.
10754         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10755         no longer valid.
10756         (sccvn_dom_walker::record_cond): Add a single temporary conditional
10757         expression.
10758         (sccvn_dom_walker::record_conds): Add a temporary conditional
10759         expressions and all related expressions also true/false.
10760         (sccvn_dom_walker::before_dom_children): Record temporary
10761         expressions based on the controlling condition of a single
10762         predecessor.  When trying to simplify a conditional statement
10763         lookup expressions we might have inserted earlier.
10765 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
10767         PR target/67127
10768         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10769         to ARM core registers.
10771 2015-08-12  Nathan Sidwell  <nathan@acm.org>
10773         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
10774         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
10776 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
10778         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
10779         line with comments.
10780         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
10782 2015-08-12  Richard Biener  <rguenther@suse.de>
10784         * gimple.h (remove_pointer): New trait.
10785         (GIMPLE_CHECK2): New inline template function.
10786         (gassign::code_): New constant static member.
10787         (is_a_helper<const gassign *>): Add.
10788         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
10789         and forward to a new gassign overload with less checking and a
10790         cheaper way to access the operand.
10791         (gimple_assign_lhs_ptr): Likewise.
10792         (gimple_assign_set_lhs): Likewise.
10793         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
10794         Likewise.
10795         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
10796         Likewise.
10797         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
10798         Likewise.
10799         (gimple_assign_rhs_code): Likewise.
10800         * gimple.c (gassign::code_): Define.
10802 2015-08-12  Richard Biener  <rguenther@suse.de>
10804         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10805         Eliminate edges marked as not executable by SCCVN.
10806         * tree-ssa-sccvn.c: Include gimple-iterator.h.
10807         (cond_dom_walker): Rename to sccvn_dom_walker.
10808         (sccvn_dom_walker::before_dom_children): Value-number defs
10809         of all stmts.
10810         (run_scc_vn): Remove loop value-numbering all SSA names.
10811         Drop not visited SSA names to varying.
10813 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
10815         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10816         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10817         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10818         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10819         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10820         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10821         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10822         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10823         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10825 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
10827         PR target/66954
10828         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
10829         to enum feature_priority and feature_list.
10830         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
10831         and isa_names_table.
10833 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
10835         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
10836         vect_induction_def.
10838 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10840         PR c/66098
10841         PR c/66711
10842         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
10843         account when deciding what was the command-line status.
10845 2015-08-11  Nathan Sidwell  <nathan@acm.org>
10847         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
10849         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
10850         we're not the only contributor to target phi.
10852 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
10854         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
10855         FIXED_REG0.
10857 2015-08-11  Tom de Vries  <tom@codesourcery.com>
10859         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
10861 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
10863         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
10864         with CPU_SLM.
10865         * config/i386/i386.md (cpu): Remove knl.
10867 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10869         PR libgomp/65742
10870         PR middle-end/66332
10871         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
10872         open-coded sequence.
10873         * omp-low.c (oacc_process_reduction_data): Remove handline of
10874         GOMP_DEVICE_HOST_NONSHM.
10876         * lto-streamer-in.c (lto_input_mode_table): Adjust to
10877         GET_MODE_INNER changes.
10879 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10880             Ilya Verbin  <ilya.verbin@intel.com>
10882         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
10884 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10886         * doc/options.texi (EnabledBy): Document that the argument must be
10887         a Common option.
10888         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
10889         Not enabled by -Wall.
10890         * optc-gen.awk: Give nicer error messages. Detect if the argument
10891         of EnabledBy is not a Common option.
10892         * common.opt (Wnull-dereference): Not enabled by -Wall.
10893         * opt-functions.awk (lang_enabled_by): Nicer error messages.
10895 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
10897         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
10898         model == 0x4f as Broadwell.
10900 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
10902         PR rtl-optimization/67028
10903         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
10904         Add test to see if a const_int fits in the new mode.
10906 2015-08-07  DJ Delorie  <dj@redhat.com>
10908         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
10910 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
10912         PR rtl-optimization/67029
10913         * ira-color.c: Include "recog.h" before including "ira-int.h".
10914         * target-globals.c: Likewise.
10915         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
10916         adds an alternative_mask argument and use it instead of
10917         preferred_alternatives.
10918         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
10919         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
10920         * sched-deps.c: Include "ira-int.h" after including "ira.h".
10921         (sched_analyze_insn): Update call to
10922         ira_implicitly_set_insn_hard_regs.
10923         * sel-sched.c: Include "ira-int.h" after including "ira.h".
10924         (implicit_clobber_conflict_p): Update call to
10925         ira_implicitly_set_insn_hard_regs.
10927 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
10929         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
10931 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10933         PR target/67002
10934         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
10935         currently_expanding_to_rtl is set.
10937 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
10939         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
10940         * configure: Regenerate.
10942 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10943             Jiong Wang  <jiong.wang@arm.com>
10945         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
10946         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
10947         (REG_CLASS_NAMES): Likewise.
10948         (REG_CLASS_CONTENTS): Likewise.
10949         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
10950         (aarch64_register_move_cost): Likewise.
10951         (aarch64_load_symref_appropriately): Invoke the new added pattern if
10952         possible.
10953         * config/aarch64/constraints.md (Uc0): New constraint.
10955 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
10957         * config/aarch64/constraints.md (Usf): Add the test of
10958         aarch64_is_noplt_call_p.
10960 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
10962         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
10963         declaration.
10964         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
10965         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
10966         (call_symbol): Likewise.
10968 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10970         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
10971         for vectorizing multiplication patterns.
10972         * tree-vectorizer.h: Adjust the number of patterns.
10974 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
10976         * config/i386/sse.md (*vec_concatv2df): Declare added
10977         alternatives as sselog type.
10979 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10981         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
10982         all GPRs.
10984 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10986         * config/s390/s390.c (s390_expand_tbegin): Expand either
10987         tbegin_1_z13 or tbegin_1 depending on VX flag.
10988         * config/s390/s390.md ("tbegin_1_z13"): New expander.
10990 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10992         * config/s390/s390.opt: Clarify description for -mzvector
10993         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
10994         -mzvector.
10996 2015-08-06  Richard Biener  <rguenther@suse.de>
10998         * gimple.h (gimple_call_set_fn): Access op member directly.
10999         (gimple_call_chain_ptr): Likewise.
11000         (gimple_call_set_chain): Likewise.
11001         (gimple_cond_lhs_ptr): Likewise.
11002         (gimple_cond_set_lhs): Likewise.
11003         (gimple_cond_rhs_ptr): Likewise.
11004         (gimple_cond_set_rhs): Likewise.
11005         (gimple_cond_true_label): Likewise.
11006         (gimple_cond_set_true_label): Likewise.
11007         (gimple_cond_set_false_label): Likewise.
11008         (gimple_cond_false_label): Likewise.
11009         (gimple_label_label): Likewise.
11010         (gimple_label_set_label): Likewise.
11011         (gimple_goto_set_dest): Likewise.
11012         (gimple_asm_input_op): Likewise.
11013         (gimple_asm_input_op_ptr): Likewise.
11014         (gimple_asm_set_input_op): Likewise.
11015         (gimple_asm_output_op): Likewise.
11016         (gimple_asm_output_op_ptr): Likewise.
11017         (gimple_asm_set_output_op): Likewise.
11018         (gimple_asm_clobber_op): Likewise.
11019         (gimple_asm_set_clobber_op): Likewise.
11020         (gimple_asm_label_op): Likewise.
11021         (gimple_asm_set_label_op): Likewise.
11022         (gimple_switch_index): Likewise.
11023         (gimple_switch_index_ptr): Likewise.
11024         (gimple_return_retval_ptr): Likewise.
11025         (gimple_return_retval): Likewise.
11026         (gimple_return_set_retval): Likewise.
11027         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
11028         (gimple_switch_label): Likewise.
11029         (gimple_switch_set_label): Likewise.
11031 2015-08-06  Richard Biener  <rguenther@suse.de>
11033         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
11034         bool comparison canonicalization and restrict to integers.
11036 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
11038         * coretypes.h (enum symbol_visibility): Relocate here.
11039         * flag-types.h (enum symbol_visibility): Remove.
11040         * tree-core.h (enum symbol_visibility): Remove.
11042 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
11044         PR target/66870
11045         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
11046         for no_split_stack function attribute along with
11047         flag_split_stack.
11048         (rs6000_expand_split_stack_prologue): Likewise.
11050 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11051             Jeff Law  <law@redhat.com>
11053         PR c/16351
11054         * doc/invoke.texi (Wnull-dereference): New.
11055         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
11056         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
11057         Warn for potential NULL dereferences.
11058         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
11059         * ubsan.c (instrument_nonnull_arg): Call
11060         infer_nonnull_range_by_attribute.
11061         (instrument_nonnull_return): Likewise.
11062         * common.opt (Wnull-dereference); New.
11063         * gimple.c (infer_nonnull_range): Remove bool arguments.
11064         (infer_nonnull_range_by_dereference): New.
11065         (infer_nonnull_range_by_attribute): New.
11066         * gimple.h: Update declarations.
11068 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11070         * gensupport.c (sequence_num): Replace with...
11071         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
11072         ...these new variables.
11073         (init_rtx_reader_args_cb): Update accordingly.
11074         (get_num_code_insns): Likewise.
11075         (read_md_rtx): Rework to use a while loop and get_c_test.
11076         Use the new counters.  Remove redundant DEFINE_SUBST case.
11077         * genoutput.c (gen_split): Delete.
11078         (main): Don't call it.
11080 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11082         * gensupport.h (get_c_test): Declare.
11083         * gensupport.c (get_c_test): New function.
11084         * genconditions.c (main): Use it.
11085         * genrecog.c (validate_pattern): Likewise.
11086         (match_pattern_1): Likewise.  Remove c_test argument.
11087         (match_pattern): Update accordingly and remove c_test argument.
11088         (main): Update accordingly.
11090 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11092         * gensupport.h (get_num_insn_codes): Declare.
11093         * gensupport.c (get_num_insn_codes): New function.
11094         * genattrtab.c (optimize_attrs): Rename max_insn_code to
11095         num_insn_codes.
11096         (main): Likewise.  Use get_num_insn_codes.
11097         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
11099 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11101         PR middle-end/66311
11102         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
11103         is zero- rather than sign-extended.
11105 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
11107         * target-insns.def (can_extend): Delete.
11109 2015-08-05  Richard Biener  <rguenther@suse.de>
11111         PR tree-optimization/67121
11112         * tree-if-conv.c (combine_blocks): Clear range-info produced
11113         by stmts no longer executed conditionally.
11115 2015-08-05  Nick Clifton  <nickc@redhat.com>
11117         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
11118         to allow identical far pointers to remain.
11120 2015-08-05  Richard Biener  <rguenther@suse.de>
11122         PR middle-end/67120
11123         * match.pd: Compare address bases with == if they are decls
11124         or SSA names, not operand_equal_p.  Otherwise fail.
11126 2015-08-05  Richard Biener  <rguenther@suse.de>
11128         PR tree-optimization/67055
11129         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
11130         NULL gimple_block.
11132         * g++.dg/torture/pr67055.C: New testcase.
11134 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
11136         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
11137         noavx512vl.
11138         (define_attr "enabled"): Handle avx521vl and noavx512vl.
11139         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
11140         AVX-512 alternative out of SSE.
11141         (define_insn "*vec_concatv2df"): Ditto.
11143 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
11145         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
11146         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
11147         CODE_FOR_avx_ptestv4di.
11148         * config/i386/sse.md (define_mode_iterator V_AVX): New.
11149         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
11150         (define_insn "avx_ptest256"): Merge this ...
11151         (define_insn "sse4_1_ptest"): And this ...
11152         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
11154 2015-08-05  Richard Biener  <rguenther@suse.de>
11156         PR tree-optimization/67109
11157         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
11158         against too big groups.  Print whether this is a load or store
11159         group.  Rename from ...
11160         (vect_analyze_group_access): ... this which is now a wrapper
11161         dissolving an invalid group.
11162         (vect_analyze_data_ref_accesses): Print whether this is a load
11163         or store group.
11165 2015-08-05  Richard Biener  <rguenther@suse.de>
11167         PR middle-end/67107
11168         * match.pd: Guard const_binop result checking against NULL_TREE
11169         result.
11171 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
11173         * cse.c (cse_insn): Restoring old behaviour for src_eqv
11174          when dest and value in the REG_EQUAL are same and dest
11175          is STRICT_LOW_PART.
11177 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
11179         * config/moxie/moxie.h (PRINT_OPERAND,
11180           PRINT_OPERAND_ADDRESS): Remove macros.
11181         * config/moxie/moxie-protos.h (moxie_print_operand,
11182           moxie_print_operand_address): Remove declaration.
11183         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
11184           TARGET_PRINT_OPERAND_ADDRESS): Define.
11185           (moxie_print_operand, moxie_print_operand_address): Make static.
11187 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11189         PR target/66731
11190         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
11191         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
11193 2015-08-04  Richard Biener  <rguenther@suse.de>
11195         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
11196         generated code.
11197         (dt_operand::gen_gimple_expr): Adjust.
11199 2015-08-04  Richard Biener  <rguenther@suse.de>
11201         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
11202         bool compares on RHS.
11203         * match.pd: Add X ==/!= !X is false/true pattern.
11205 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
11207         * config/aarch64/aarch64.c: Change inner loop statement cost
11208         to be consistent with other targets.
11210 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
11212         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
11213         targets.
11215 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
11217         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
11218         (machine_function): Remove pseudos field.
11220 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11222         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11223         Exit early and use target_option_current_node if processing current
11224         pragma.
11226 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11228         * doc/extend.texi (AArch64 Function Attributes): New node.
11229         (AArch64 Pragmas): Likewise.
11231 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11233         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11234         Initialize simd builtins if TARGET_SIMD.
11235         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11236         Make sure that the builtins are initialized only once no matter how
11237         many times the function is called.
11238         (aarch64_init_builtins): Unconditionally initialize crc builtins.
11239         (aarch64_relayout_simd_param): New function.
11240         (aarch64_simd_expand_args): Use above during argument expansion.
11241         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
11242         simd builtins if TARGET_SIMD.
11243         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
11244         prototype.
11245         (aarch64_relayout_simd_types): Likewise.
11247 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11249         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
11250         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
11251         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
11252         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11253         static keyword.
11254         (aarch64_reset_previous_fndecl): New function.
11255         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
11256         the string.
11257         * config/aarch64/aarch64-c.c: New file.
11258         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
11259         Push and pop options at beginning and end.  Remove ifdef
11260         __ARM_FEATURE_CRC32.
11261         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
11262         Add pragma +nothing+simd and +nothing+crypto where appropriate.
11263         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
11264         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
11265         Define prototype.
11266         (aarch64_register_pragmas): Likewise.
11267         (aarch64_reset_previous_fndecl): Likewise.
11268         (aarch64_process_target_attr): Likewise.
11269         (aarch64_override_options_internal): Likewise.
11271 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11273         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
11274         New function.
11275         (aarch64_can_inline_p): Likewise.
11276         (TARGET_CAN_INLINE_P): Define.
11278 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11280         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11281         Remove static.  Handle OPT_mgeneral_regs_only,
11282         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
11283         OPT_momit_leaf_frame_pointer.
11284         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
11285         (aarch64_attr_opt_type): New enum.
11286         (aarch64_attribute_info): New struct.
11287         (aarch64_handle_attr_arch): New function.
11288         (aarch64_handle_attr_cpu): Likewise.
11289         (aarch64_handle_attr_tune): Likewise.
11290         (aarch64_handle_attr_isa_flags): Likewise.
11291         (aarch64_attributes): New table.
11292         (aarch64_process_one_target_attr): New function.
11293         (num_occurences_in_str): Likewise.
11294         (aarch64_process_target_attr): Likewise.
11295         (aarch64_option_valid_attribute_p): Likewise.
11296         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11297         * config/aarch64/aarch64-protos.h: Include input.h
11298         (aarch64_handle_option): Declare prototype.
11300 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11302         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
11303         * config/aarch64/aarch64.c: Include target-globals.h
11304         (aarch64_previous_fndecl): New variable.
11305         (aarch64_set_current_function): New function.
11306         (TARGET_SET_CURRENT_FUNCTION): Define.
11308 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11310         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
11311         (explicit_arch): Likewise.
11312         (x_aarch64_isa_flags): Likewise.
11313         (mgeneral-regs-only): Mark as Save.
11314         (mfix-cortex-a53-835769): Likewise.
11315         (mcmodel=): Likewise.
11316         (mstrict-align): Likewise.
11317         (momit-leaf-frame-pointer): Likewise.
11318         (mtls-dialect): Likewise.
11319         (master=): Likewise.
11320         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
11321         (aarch64_isa_flags): Remove extern declaration.
11322         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
11323         to indicate success or failure.
11324         (aarch64_validate_march): Likewise.
11325         (aarch64_validate_mtune): Likewise.
11326         (aarch64_isa_flags): Delete.
11327         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
11328         instead of aarch64_isa_flags.
11329         (aarch64_get_tune_cpu): New function.
11330         (aarch64_get_arch): Likewise.
11331         (aarch64_override_options): Use above and set up explicit_tune_core
11332         and explicit_arch.
11333         (aarch64_print_extension): Move earlier in file.  Add isa_flags
11334         argument and use that instead of the global aarch64_isa_flags.
11335         (aarch64_option_save): New function.
11336         (aarch64_option_restore): Likewise.
11337         (aarch64_option_print): Likewise.
11338         (aarch64_declare_function_name): Likewise.
11339         (aarch64_start_file): Delete.
11340         (TARGET_ASM_FILE_START): Do not define.
11341         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
11342         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
11343         Declare prototype.
11345 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11347         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
11348         flag_omit_leaf_frame_pointer to 2.
11350 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11352         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
11353         define to 0 or 1.
11354         (TARGET_FIX_ERR_A53_835769): New macro.
11355         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11356         handling of opts->x_aarch64_fix_a53_err835769.
11357         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
11358         than aarch64_fix_a53_err835769.
11359         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
11360         * config/aarch64/aarch64-linux.h: Likewise.
11362 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
11364         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
11365         ix86_expand_int_movcc as boolean.
11367 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11369         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
11370         (aarch64_cpu_string): Likewise.
11371         (aarch64_tune_string): Likewise.
11372         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
11373         (aarch64_parse_extension): Return aarch64_parse_opt_result.
11374         Add extra argument to put result into.
11375         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
11376         (aarch64_parse_cpu): Add arguments to put results into. Return
11377         aarch64_parse_opt_result.
11378         (aarch64_parse_tune): Likewise.
11379         (aarch64_override_options_after_change_1): New function.
11380         (aarch64_override_options_internal): New function.
11381         (aarch64_validate_mcpu): Likewise.
11382         (aarch64_validate_march): Likewise.
11383         (aarch64_validate_mtune): Likewise.
11384         (aarch64_override_options): Update to reflect above changes.
11385         Move some logic into aarch64_override_options_internal.
11386         Initialize target_option_default_node and target_option_current_node.
11387         (aarch64_override_options_after_change): Move logic into
11388         aarch64_override_options_after_change_1 and call it with global_options.
11389         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
11390         flag values from that.
11392 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11394         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11395         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
11396         * config/aarch64/aarch64.c (struct processor): Add arch field.
11397         (all_architectures): Handle above, move above all_cores.
11398         (all_cores): Handle above.
11399         (aarch64_parse_arch): Handle above changes.
11400         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
11401         above.  Update comments.
11402         (armv8.1-a): Likewise.
11403         * config/aarch64/aarch64-cores.def: Update according to above.
11404         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
11405         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
11406         aarch64_arch_driver_info.
11408 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11410         * config/aarch64/aarch64.c (struct processor): Add ident field.
11411         Rename core sched_core.
11412         (all_cores): Handle above changes.
11413         (all_architectures): Likewise.
11414         (aarch64_parse_arch): Likewise.
11415         (aarch64_override_options): Likewise.
11417 2015-08-04  Richard Biener  <rguenther@suse.de>
11419         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11420         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
11421         comparisons embedded in [VEC_]COND_EXPRs.
11423 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
11425         * tree-if-conv.c: Fix various typos in comments.
11426         * tree-vect-stmts.c: Likewise.
11428 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11430         PR tree-optimization/67043
11431         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
11432         preheader after hoisting invariant in it.
11433         (find_defs): Force recomputation of all luids.
11435 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
11437         * config/rs6000/htm.md (tabort.): Restrict the source operand to
11438         using a base register.
11440 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
11442         * main.c (main): Pass in NULL for toplev's external_timer.
11443         * timevar.c: Include coretypes.h.
11444         (class timer::named_items): New.
11445         (timer::named_items::named_items): New.
11446         (timer::named_items::~named_items): New.
11447         (timer::named_items::push): New.
11448         (timer::named_items::pop): New.
11449         (timer::named_items::print): New.
11450         (timer::timer): Initialize field "m_jit_client_items".
11451         (timer::~timer): New.
11452         (timer::push): Move bulk of implementation to...
11453         (timer::push_internal): ...here.  New function.
11454         (timer::pop): Move bulk of implementation to...
11455         (timer::pop_internal): ...here.  New function.
11456         (timer::push_client_item): New.
11457         (timer::pop_client_item): New.
11458         (timer::print_row): New function, taken from timer::print.
11459         (timer::print): Print "GCC items" header if we also have client
11460         items.  Move row-printing to timer::print_row.  Print any client
11461         items.
11462         (timer::get_topmost_item_name): New method.
11463         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
11464         (TV_JIT_CLIENT_CODE): New.
11465         * timevar.h (timer::push_client_item): New declaration.
11466         (timer::pop_client_item): New declaration.
11467         (timer::get_topmost_item_name): New method.
11468         (timer::push_internal): New declaration.
11469         (timer::pop_internal): New declaration.
11470         (timer::print_row): New declaration.
11471         (timer::named_items): New declaration.
11472         (timer::m_jit_client_items): New field.
11473         (timer): Add friend class named_items.
11474         (auto_timevar::auto_timevar): Add timer param.
11475         (auto_timevar::~auto_timevar): Use field "m_timer".
11476         (auto_timevar::m_timer): New field.
11477         * toplev.c (initialize_rtl): Add g_timer as param when
11478         constructing auto_timevar instance.
11479         (toplev::toplev): Add "external_timer" param, and use it to
11480         initialize the "g_timer" global if non-NULL.
11481         (toplev::~toplev): If this created "g_timer", delete it.
11482         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
11483         with "external_timer" timer *.
11485 2015-08-03  Alexander Basov <coohpt@gmail.com>
11487         PR middle-end/64744
11488         PR middle-end/48470
11489         PR middle-end/43404
11490         * cfgexpand.c (expand_one_var): Add check if stack is going to
11491         be used in naked function.
11492         * expr.c (expand_expr_addr_expr_1): Remove excess checking
11493         whether expression should not reside in MEM.
11494         * function.c (use_register_for_decl): Do not use registers for
11495         non-register things (volatile, float, BLKMode) in naked functions.
11497 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
11499         PR target/67060
11500         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
11501         Adjust splits to match new pattern.
11503 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11505         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
11506         (VEC_M): Likewise.
11507         (VEC_N): Likewise.
11508         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
11509         point in VSX registers.
11511         * config/rs6000/constraints.md (wb constraint): Document unused
11512         w<x> constraint.
11513         (we constraint): Likewise.
11514         (wo constraint): Likewise.
11515         (wp constraint): New constraint for IEEE 128-bit floating point in
11516         VSX registers.
11517         (wq constraint): Likewise.
11519         * config/rs6000/predicates.md (easy_fp_constant): Add support for
11520         IEEE 128-bit floating point in VSX registers.
11521         (easy_scalar_constant): Likewise.
11523         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11524         constraints (wp, wq) for IEEE 128-bit floating point in VSX
11525         registers.
11526         (rs6000_init_hard_regno_mode_ok): Likewise.
11528         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11529         floating point in VSX registers.
11530         (VSX_L): Likewise.
11531         (VSX_M): Likewise.
11532         (VSX_M2): Likewise.
11533         (VSm): Likewise.
11534         (VSs): Likewise.
11535         (VSr): Likewise.
11536         (VSa): Likewise.
11537         (VSv): Likewise.
11538         (vsx_le_permute_<mode>): Add support to properly swap bytes for
11539         IEEE 128-bit floating point in VSX registers on little endian.
11540         (vsx_le_undo_permute_<mode>): Likewise.
11541         (vsx_le_perm_load_<mode>): Likewise.
11542         (vsx_le_perm_store_<mode>): Likewise.
11543         (splitters for IEEE 128-bit fp moves): Likewise.
11545         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11546         wq constraints.
11548         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11549         floating point in VSX registers.
11550         (VM2): Likewise.
11552         * doc/md.text (Machine Constraints): Document wp and wq
11553         constraints on PowerPC.
11555 2015-08-03  Jeff Law  <law@redhat.com>
11557         PR middle-end/66314
11558         PR gcov-profile/66899
11559         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11560         iterate over the jump threading paths when an element in the
11561         jump threading paths array is eliminated.
11563 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
11565         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11567 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
11569         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11570         is_use_properly_guarded the variable def_preds.  Free its
11571         contents before returning.
11572         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11573         (is_use_properly_guarded): Replace local variable def_preds with
11574         a parameter.  Adjust accordingly.  Only update *def_preds if it's
11575         the empty vector.
11577 2015-08-03  Richard Biener  <rguenther@suse.de>
11579         * genmatch.c (simplify::for_subst_vec): New member.
11580         (binary_ok): New helper for for lowering.
11581         (lower_for): Delay substituting operators into result expressions
11582         if we can merge the results eventually again.
11583         (capture_info::walk_result): Adjust for user_id appearing as
11584         result expression operator.
11585         (expr::gen_transform): Likewise.
11586         (dt_simplify::gen_1): Likewise.
11587         (dt_simplify::gen): Pass not substituted operators to tail
11588         functions or initialize local variable with it.
11589         (decision_tree::gen): Adjust function signature.
11590         * match.pd: Fix tests against global code and add default
11591         cases to switch stmts.
11593 2015-08-03  Richard Biener  <rguenther@suse.de>
11595         * genmatch.c (dt_simplify::gen): Create captures array
11596         with an initializer.
11598 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11600         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11601         the host compiler is affected by placement new aliasing bug.
11602         * configure: Regenerate.
11603         * Makefile.in (ALIASING_FLAGS): New variable.
11604         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11606 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11608         PR target/66731
11609         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11610         (negmulsf3_vfp): Likewise.
11611         (muldf3negdf_vfp): Disable for -frounding-math.
11612         (mulsf3negsf_vfp): Likewise.
11613         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11614         fix MULT cost with -frounding-math.
11616 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11618         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11619         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11620         explicit.  Prefer to add the flag whenever possible.
11621         (noce_process_if_block): Try noce_try_store_flag_constants before
11622         noce_try_cmove.
11624 2015-08-03  Richard Biener  <rguenther@suse.de>
11626         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11627         New hash-map to record equivalent transforms.
11628         (dt_node::analyze): Populate the equivalent transforms hash-map.
11629         (dt_simplify::info): Add reference to hash-map entry.
11630         (dt_simplify::gen): If we have split out a function for the
11631         transform, generate a call to it.
11632         (sinfo_hashmap_traits::hash): New function.
11633         (compare_op): New helper function for ...
11634         (sinfo_hashmap_traits::equal_keys): ... this new function.
11635         (decision_tree::gen): Split out common equivalent transforms
11636         into functions.
11638 2015-08-03  Richard Biener  <rguenther@suse.de>
11640         * gimple-fold.c (fold_gimple_assign): Remove folding of
11641         the comparison in COND_EXPRs.
11643 2015-08-03  Richard Biener  <rguenther@suse.de>
11645         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11646         on the rhs of assignments first simplify the embedded
11647         GENERIC condition.
11649 2015-08-03  Richard Biener  <rguenther@suse.de>
11651         PR tree-optimization/66917
11652         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11653         field.
11654         (DR_VECT_AUX): New macro.
11655         (set_dr_misalignment): Adjust.
11656         (dr_misalignment): Likewise.
11657         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11658         Compute whether the base is at least element aligned.
11659         * tree-vect-stmts.c (ensure_base_align): Adjust.
11660         (vectorizable_store): If the base is not element aligned
11661         preserve alignment of the original access if misalignment is unknown.
11662         (vectorizable_load): Likewise.
11664 2015-08-02  Martin Sebor  <msebor@redhat.com>
11666         * c-family/c.opt (-Wframe-address): New warning option.
11667         * doc/invoke.texi (Wframe-address): Document it.
11668         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11669         Clarify possible effects of calling the functions with non-zero
11670         arguments and mention -Wframe-address.
11671         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11673 2015-08-01  Michael Collison  <michael.collison@linaro.org
11674             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11676         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
11677         (*arm_umin_cmp): Likewise.
11679 2015-08-01  Caroline Tice  <cmtice@google.com>
11681         PR 66521
11682         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11683         global variables.
11684         (vtbl_find_mangled_name):  New function.
11685         (vtbl_register_mangled_name):  New function.
11686         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
11687         mangled name in mangled name vectors.
11688         (find_or_create_vtbl_map_node):  Ditto.
11689         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
11690         update recursion_depth on function entry; pass it to every recursive
11691         call; automatically exit if depth > 25 (give up looking at that point).
11692         (verify_bb_vtables):  Initialize recursion_depth and pass it to
11693         var_is_used_for_virtual_call_p.
11694         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11695         global variable decls.
11696         (vtbl_register_mangled_name): New extern function decl.
11698 2015-08-01  Tom de Vries  <tom@codesourcery.com>
11700         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11701         function.
11702         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11703         Declare.
11704         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11705         operation_no_trapping_overflow.  Allow non-overflow operations.
11706         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11707         operations.
11709 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
11711         PR target/67049
11712         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11714 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11716         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11717         Enable for TARGET_32BIT.
11718         (*if_move_neg): Likewise.
11720 2015-07-31  Nick Clifton  <nickc@redhat.com>
11722         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11723         Returns true for __model__.
11724         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11726 2015-07-31  Alan Modra  <amodra@gmail.com>
11728         PR target/66870
11729         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11730         (rs6000_emit_prologue): Set it.
11731         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11733 2015-07-31  Richard Biener  <rguenther@suse.de>
11735         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11736         -> X == (C1 ^ C2) which is already implemented in match.pd.
11737         Remove redundant dispatching to fold_relational_const.
11738         Move unordered self and NaN compares ...
11739         * match.pd: ... as patterns here.  Remove some stray captures
11740         and add a comment.
11742 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
11744         * config/i386/i386.c
11745         (bdesc_special_args): Convert mask type from signed to unsigned for
11746         masked builtins.
11747         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11748         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11749         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11750         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11751         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11752         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11753         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11754         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11755         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11756         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11757         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11758         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11759         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11760         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11761         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11762         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11763         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11764         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11765         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11766         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11767         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11768         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11769         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11770         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
11771         * config/i386/i386-builtin-types.def
11772         (V16QI_FTYPE_V16SI): Remove.
11773         (V8DF_FTYPE_V8SI): Ditto.
11774         (V8HI_FTYPE_V8DI): Ditto.
11775         (V8SI_FTYPE_V8DI): Ditto.
11776         (V8SF_FTYPE_V8DF): Ditto.
11777         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
11778         (V16HI_FTYPE_V16SI): Ditto.
11779         (V16SF_FTYPE_V16HI): Ditto.
11780         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
11781         (V16SF_FTYPE_V16SI): Ditto.
11782         (V4DI_FTYPE_V4DI): Ditto.
11783         (V16SI_FTYPE_V16SF): Ditto.
11784         (V16SF_FTYPE_FLOAT): Ditto.
11785         (V8DF_FTYPE_DOUBLE): Ditto.
11786         (V8DI_FTYPE_INT64): Ditto.
11787         (V8DI_FTYPE_V4DI): Ditto.
11788         (V16QI_FTYPE_V8DI): Ditto.
11789         (UINT_FTYPE_V4SF): Ditto.
11790         (UINT64_FTYPE_V4SF): Ditto.
11791         (UINT_FTYPE_V2DF): Ditto.
11792         (UINT64_FTYPE_V2DF): Ditto.
11793         (V16SI_FTYPE_V16SI): Ditto.
11794         (V8DI_FTYPE_V8DI): Ditto.
11795         (V16SI_FTYPE_PV4SI): Ditto.
11796         (V16SF_FTYPE_PV4SF): Ditto.
11797         (V8DI_FTYPE_PV2DI): Ditto.
11798         (V8DF_FTYPE_PV2DF): Ditto.
11799         (V4DI_FTYPE_PV2DI): Ditto.
11800         (V4DF_FTYPE_PV2DF): Ditto.
11801         (V16SI_FTYPE_PV2SI): Ditto.
11802         (V16SF_FTYPE_PV2SF): Ditto.
11803         (V8DI_FTYPE_PV4DI): Ditto.
11804         (V8DF_FTYPE_PV4DF): Ditto.
11805         (V8SF_FTYPE_FLOAT): Ditto.
11806         (V4SF_FTYPE_FLOAT): Ditto.
11807         (V4DF_FTYPE_DOUBLE): Ditto.
11808         (V8SF_FTYPE_PV4SF): Ditto.
11809         (V8SI_FTYPE_PV4SI): Ditto.
11810         (V4SI_FTYPE_PV2SI): Ditto.
11811         (V8SF_FTYPE_PV2SF): Ditto.
11812         (V8SI_FTYPE_PV2SI): Ditto.
11813         (V16SF_FTYPE_PV8SF): Ditto.
11814         (V16SI_FTYPE_PV8SI): Ditto.
11815         (V8DI_FTYPE_V8SF): Ditto.
11816         (V4DI_FTYPE_V4SF): Ditto.
11817         (V2DI_FTYPE_V4SF): Ditto.
11818         (V64QI_FTYPE_QI): Ditto.
11819         (V32HI_FTYPE_HI): Ditto.
11820         (V8UHI_FTYPE_V8UHI): Ditto.
11821         (V16UHI_FTYPE_V16UHI): Ditto.
11822         (V32UHI_FTYPE_V32UHI): Ditto.
11823         (V2UDI_FTYPE_V2UDI): Ditto.
11824         (V4UDI_FTYPE_V4UDI): Ditto.
11825         (V8UDI_FTYPE_V8UDI): Ditto.
11826         (V4USI_FTYPE_V4USI): Ditto.
11827         (V8USI_FTYPE_V8USI): Ditto.
11828         (V16USI_FTYPE_V16USI): Ditto.
11829         (V2DF_FTYPE_V2DF_UINT64): Ditto.
11830         (V2DI_FTYPE_V2DF_V2DF): Ditto.
11831         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
11832         (V8DF_FTYPE_V8DF_V8DI): Ditto.
11833         (V4SF_FTYPE_V4SF_UINT64): Ditto.
11834         (V4SI_FTYPE_V4SF_V4SF): Ditto.
11835         (V16SF_FTYPE_V16SF_V16SI): Ditto.
11836         (V64QI_FTYPE_V32HI_V32HI): Ditto.
11837         (V32HI_FTYPE_V16SI_V16SI): Ditto.
11838         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
11839         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
11840         (V32HI_FTYPE_V64QI_V64QI): Ditto.
11841         (V32HI_FTYPE_V32HI_V32HI): Ditto.
11842         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
11843         (V16SI_FTYPE_V16SI_V4SI): Ditto.
11844         (V16SI_FTYPE_V16SI_V16SI): Ditto.
11845         (V16SI_FTYPE_V32HI_V32HI): Ditto.
11846         (V16SI_FTYPE_V16SI_SI): Ditto.
11847         (V8DI_FTYPE_V8DI_V8DI): Ditto.
11848         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
11849         (V8DI_FTYPE_V16SI_V16SI): Ditto.
11850         (V8DI_FTYPE_V8DI_V2DI): Ditto.
11851         (QI_FTYPE_QI): Ditto.
11852         (SI_FTYPE_SI): Ditto.
11853         (DI_FTYPE_DI): Ditto.
11854         (QI_FTYPE_QI_QI): Ditto.
11855         (QI_FTYPE_QI_INT): Ditto.
11856         (HI_FTYPE_HI_INT): Ditto.
11857         (SI_FTYPE_SI_INT): Ditto.
11858         (DI_FTYPE_DI_INT): Ditto.
11859         (HI_FTYPE_V16QI_V16QI): Ditto.
11860         (SI_FTYPE_V32QI_V32QI): Ditto.
11861         (DI_FTYPE_V64QI_V64QI): Ditto.
11862         (QI_FTYPE_V8HI_V8HI): Ditto.
11863         (HI_FTYPE_V16HI_V16HI): Ditto.
11864         (SI_FTYPE_V32HI_V32HI): Ditto.
11865         (QI_FTYPE_V4SI_V4SI): Ditto.
11866         (QI_FTYPE_V8SI_V8SI): Ditto.
11867         (QI_FTYPE_V2DI_V2DI): Ditto.
11868         (QI_FTYPE_V4DI_V4DI): Ditto.
11869         (QI_FTYPE_V8DI_V8DI): Ditto.
11870         (HI_FTYPE_V16SI_V16SI): Ditto.
11871         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
11872         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
11873         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
11874         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
11875         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
11876         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
11877         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
11878         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
11879         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
11880         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
11881         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
11882         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
11883         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
11884         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
11885         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
11886         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
11887         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
11888         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
11889         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
11890         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
11891         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
11892         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
11893         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
11894         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
11895         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
11896         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
11897         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
11898         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
11899         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
11900         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
11901         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
11902         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
11903         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
11904         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
11905         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
11906         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
11907         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
11908         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
11909         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
11910         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
11911         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
11912         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
11913         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
11914         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
11915         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
11916         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
11917         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
11918         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
11919         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
11920         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
11921         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
11922         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
11923         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
11924         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
11925         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
11926         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
11927         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
11928         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
11929         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
11930         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
11931         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
11932         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
11933         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
11934         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
11935         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
11936         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
11937         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
11938         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
11939         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
11940         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
11941         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
11942         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
11943         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
11944         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
11945         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
11946         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
11947         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
11948         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
11949         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
11950         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
11951         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
11952         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
11953         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
11954         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
11955         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
11956         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
11957         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
11958         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
11959         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
11960         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
11961         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
11962         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
11963         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
11964         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
11965         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
11966         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
11967         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
11968         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
11969         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
11970         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
11971         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
11972         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
11973         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
11974         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
11975         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
11976         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
11977         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
11978         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
11979         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
11980         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
11981         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
11982         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
11983         (HI_FTYPE_HI): Ditto.
11984         (HI_FTYPE_V16QI): Ditto.
11985         (SI_FTYPE_V32QI): Ditto.
11986         (DI_FTYPE_V64QI): Ditto.
11987         (QI_FTYPE_V8HI): Ditto.
11988         (HI_FTYPE_V16HI): Ditto.
11989         (SI_FTYPE_V32HI): Ditto.
11990         (QI_FTYPE_V4SI): Ditto.
11991         (QI_FTYPE_V8SI): Ditto.
11992         (HI_FTYPE_V16SI): Ditto.
11993         (QI_FTYPE_V2DI): Ditto.
11994         (QI_FTYPE_V4DI): Ditto.
11995         (QI_FTYPE_V8DI): Ditto.
11996         (V16QI_FTYPE_HI): Ditto.
11997         (V32QI_FTYPE_SI): Ditto.
11998         (V64QI_FTYPE_DI): Ditto.
11999         (V8HI_FTYPE_QI): Ditto.
12000         (V16HI_FTYPE_HI): Ditto.
12001         (V32HI_FTYPE_SI): Ditto.
12002         (V4SI_FTYPE_QI): Ditto.
12003         (V4SI_FTYPE_HI): Ditto.
12004         (V8SI_FTYPE_QI): Ditto.
12005         (V8SI_FTYPE_HI): Ditto.
12006         (V2DI_FTYPE_QI): Ditto.
12007         (V4DI_FTYPE_QI): Ditto.
12008         (HI_FTYPE_HI_HI): Ditto.
12009         (SI_FTYPE_SI_SI): Ditto.
12010         (DI_FTYPE_DI_DI): Ditto.
12011         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
12012         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
12013         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
12014         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
12015         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
12016         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
12017         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
12018         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
12019         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
12020         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
12021         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
12022         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
12023         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
12024         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
12025         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
12026         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
12027         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
12028         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
12029         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
12030         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
12031         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
12032         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
12033         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
12034         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
12035         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
12036         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
12037         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
12038         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
12039         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
12040         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
12041         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
12042         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
12043         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
12044         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
12045         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
12046         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
12047         (V16SI_FTYPE_HI): Ditto.
12048         (V8DI_FTYPE_QI): Ditto.
12049         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
12050         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
12051         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
12052         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
12053         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
12054         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
12055         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
12056         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
12057         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
12058         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
12059         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
12060         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
12061         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
12062         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
12063         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
12064         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
12065         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
12066         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
12067         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
12068         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
12069         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
12070         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
12071         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
12072         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
12073         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
12074         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
12075         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
12076         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
12077         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
12078         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
12079         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
12080         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
12081         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
12082         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
12083         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
12084         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
12085         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
12086         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
12087         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
12088         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
12089         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
12090         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
12091         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
12092         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
12093         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
12094         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
12095         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
12096         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
12097         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
12098         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
12099         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
12100         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
12101         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
12102         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
12103         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
12104         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
12105         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
12106         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
12107         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
12108         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
12109         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
12110         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
12111         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
12112         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
12113         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
12114         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
12115         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
12116         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
12117         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
12118         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
12119         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
12120         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
12121         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
12122         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
12123         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
12124         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
12125         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
12126         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
12127         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
12128         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
12129         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
12130         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
12131         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
12132         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
12133         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
12134         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
12135         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
12136         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
12137         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
12138         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
12139         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
12140         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
12141         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
12142         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
12143         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
12144         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
12145         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
12146         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
12147         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
12148         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
12149         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
12150         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
12151         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
12152         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
12153         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
12154         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
12155         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
12156         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
12157         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
12158         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
12159         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
12160         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
12161         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
12162         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
12163         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
12164         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
12165         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
12166         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
12167         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
12168         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
12169         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
12170         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
12171         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
12172         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
12173         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
12174         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
12175         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
12176         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
12177         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
12178         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
12179         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
12180         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
12181         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
12182         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
12183         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
12184         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
12185         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
12186         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
12187         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
12188         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
12189         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
12190         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
12191         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
12192         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
12193         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
12194         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
12195         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
12196         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
12197         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
12198         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
12199         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
12200         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
12201         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
12202         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
12203         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
12204         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
12205         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
12206         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
12207         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
12208         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
12209         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
12210         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
12211         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
12212         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
12213         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
12214         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
12215         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
12216         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
12217         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
12218         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
12219         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
12220         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
12221         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
12222         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
12223         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
12224         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
12225         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
12226         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
12227         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
12228         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
12229         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
12230         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
12231         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
12232         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
12233         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
12234         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
12235         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
12236         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
12237         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
12238         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
12239         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
12240         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
12241         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
12242         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
12243         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
12244         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
12245         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
12246         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
12247         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
12248         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
12249         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
12250         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
12251         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
12252         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
12253         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
12254         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
12255         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
12256         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
12257         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
12258         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
12259         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
12260         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
12261         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
12262         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
12263         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
12264         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
12265         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
12266         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
12267         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
12268         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
12269         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
12270         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
12271         (QI_FTYPE_V8DF_INT_QI): Ditto.
12272         (QI_FTYPE_V4DF_INT_QI): Ditto.
12273         (QI_FTYPE_V2DF_INT_QI): Ditto.
12274         (HI_FTYPE_V16SF_INT_HI): Ditto.
12275         (QI_FTYPE_V8SF_INT_QI): Ditto.
12276         (QI_FTYPE_V4SF_INT_QI): Ditto.
12277         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
12279 2015-07-31  Richard Biener  <rguenther@suse.de>
12281         * gimple-fold.c (fold_gimple_assign): Remove folding of
12282         GIMPLE_BINARY_RHS.
12284 2015-07-31  Tom de Vries  <tom@codesourcery.com>
12286         PR tree-optimization/66846
12287         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
12288         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
12289         (expand_omp_target) [ENABLE_CHECKING]: Same.
12290         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
12291         cfun if !LOOPS_NEED_FIXUP.
12292         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
12293         that omp_for already has its own loop struct.
12294         * tree-parloops.c (create_phi_for_local_result)
12295         (create_call_for_reduction): Handle simple latch bb.
12296         (create_parallel_loop): Add simple latch bb to preserve
12297         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
12298         (gen_parallel_loop): Remove call to cancel_loop_tree.
12299         (parallelize_loops): Skip loops that are inner loops of parallelized
12300         loops.
12301         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
12302         verify_loop_structure.
12304 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
12306         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
12307         * config/v850/v850.md (RV_REGNUM): New constants.
12308         * config/v850/v850.c (v850_libcall_value): New functions.
12309         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
12310         (TARGET_LIBCALL_VALUE): Define.
12312 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
12314         * rtl.h (lowpart_subreg): Move in file.
12315         * loop-iv.c (lowpart_subreg): Move to...
12316         * simplify-rtx.c (lowpart_subreg): ...here.
12317           (simplify_binary_operation_1): Use lowpart_subreg instead of
12318           simplify_gen_subreg.
12319         * expr.c (expand_expr_real_2): Ditto.
12320         * emit-rtl.c (gen_lowpart_common): Ditto.
12321         * combine.c (gen_lowpart_for_combine): Ditto.
12322         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
12323           expand_debug_source_expr): Ditto.
12325 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
12327         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
12328         (expand_builtin_atomic_clear): Remove support for atomic_clear
12329         pattern.
12331 2015-07-30  Richard Biener  <rguenther@suse.de>
12333         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
12334         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
12335         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
12336         redundant operand canonicalization.
12338 2015-07-30  David Sherwood  <david.sherwood@arm.com>
12340         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
12341         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
12342         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
12343         * config/arm/arm.c (neon_valid_immediate): Likewise.
12344         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
12345         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
12346         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
12347         (expand_vec_perm_vpshufb2_vpermq): Likewise.
12348         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
12349         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
12350         * config/i386/sse.md
12351         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
12352         (*ssse3_palignr<mode>_perm): Likewise.
12353         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
12354         * config/spu/spu.c (arith_immediate_p): Likewise.
12355         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12356         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
12358 2015-07-30  Richard Biener  <rguenther@suse.de>
12360         * genmatch.c (decision_tree::gen_gimple): Merge with ...
12361         (decision_tree::gen_generic): ... this into ...
12362         (decision_tree::gen): ... this.
12363         (main): Adjust callers.
12365 2015-07-30  Richard Biener  <rguenther@suse.de>
12367         * genmatch.c (verbose): New global.
12368         (warning_at): Add overload with source_location.
12369         (capture_info::capture_info): Add bool whether generating gimple
12370         or generic.  Add gimple member.
12371         (capture_info::cinfo): Add capture member.
12372         (capture_info::walk_match): Record capture.  Warn on
12373         non-captured leafs.
12374         (capture_info::walk_c_expr): Add more fragments captures cannot
12375         escape through.  Warn on escaped captures.
12376         (dt_simplify::gen_1): Warn on operands we force to have no
12377         side-effects.
12378         (main): Initialize verbose.
12379         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
12381 2015-07-30  Richard Biener  <rguenther@suse.de>
12383         PR middle-end/67053
12384         * match.pd: Allow both operands to independently have conversion
12385         when simplifying compares of addresses.
12387 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
12389         PR target/66217
12390         PR target/67045
12391         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
12392         around those cases that need one.
12394 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
12396         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
12398 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
12400         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
12401         New.  Copied from config/i386/gnu-user.h.
12402         (ASM_COMMENT_START): Likewise.
12403         (DBX_REGISTER_NUMBER): Likewise.
12405 2015-07-29  Richard Biener  <rguenther@suse.de>
12407         * gimple-fold.c (fold_gimple_cond): Remove.
12408         (fold_stmt_1): Do not call it.
12410 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
12412         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
12413         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
12415         * config/aarch64/aarch64-modes.def: Add HFmode.
12417         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12418         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
12420         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
12421         aarch64_promoted_type): New.
12423         (aarch64_float_const_representable_p): Disable HFmode.
12424         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
12425         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
12426         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
12428         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
12429         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
12431         * config/aarch64/iterators.md (GPF_F16): New.
12433 2015-07-29  Richard Biener  <rguenther@suse.de>
12435         * match.pd: Merge address comparison patterns and make them
12436         handle some more cases.
12438 2015-07-29  Richard Biener  <rguenther@suse.de>
12440         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
12441         (parser::parse_capture): Add bool argument on whether to reject
12442         unknown captures.
12443         (parser::parse_expr): Adjust.
12444         (parser::parse_op): Likewise.
12445         (parser::parse_pattern): Likewise.
12447 2015-07-29  Richard Biener  <rguenther@suse.de>
12449         * gimple-fold.c (has_use_on_stmt): New function.
12450         (replace_stmt_with_simplification): Use it to allow
12451         abnormals originally referenced in the stmt.
12452         (fold_stmt_1): Canonicalize operand order.
12454 2015-07-28  David Sherwood  <david.sherwood@arm.com>
12456         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
12457         GET_MODE_INNER unconditionally.
12458         * config/spu/spu.c (arith_immediate_p): Likewise.
12459         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
12460         * expmed.c (synth_mult): Remove check for VOIDmode result from
12461         GET_MODE_INNER.
12462         (expand_mult_const): Likewise.
12463         * fold-const.c (fold_binary_loc): Replace call to element_precision
12464         with call to GET_MODE_PRECISION.
12465         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
12466         m->name.
12467         (emit_mode_inner): Likewise.
12468         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
12469         result check.
12470         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
12471         (GET_MODE_UNIT_PRECISION): Likewise.
12472         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
12473         * simplify-rtx.c (simplify_immed_subreg): Likewise.
12474         * stor-layout.c (bitwise_type_for_mode): Update assert.
12475         (element_precision): Remove.
12477 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12479         * target-insns.def (reload_load_address): New targetm instruction
12480         pattern.
12481         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
12483 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12485         * target-insns.def (atomic_test_and_set): New targetm instruction
12486         pattern.
12487         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
12488         HAVE_*/gen_* interface.
12490 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12492         * target-insns.def (can_extend, ptr_extend): New targetm instruction
12493         patterns.
12494         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
12495         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12496         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
12497         * rtlanal.c (nonzero_bits1): Likewise.
12498         (num_sign_bit_copies1): Likewise.
12500 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12502         * target-insns.def (eh_return): New targetm instruction pattern.
12503         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
12504         interface.
12505         * function.c (thread_prologue_and_epilogue_insns): Remove
12506         preprocessor condition.
12508 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12510         * target-insns.def (indirect_jump): New targetm instruction pattern.
12511         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
12512         interface.
12514 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
12516         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
12517         instead of nonimmediate_operand.  Remove C condiition.
12519 2015-07-28  Richard Biener  <rguenther@suse.de>
12521         * match.pd: Add more simplification of address comparisons.
12523 2015-07-28  Richard Biener  <rguenther@suse.de>
12525         * match.pd: Re-order two cases in comparison with max/min
12526         value simplification to make it apply for bools.
12528 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12530         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12531         Handle simple SIGN_EXTEND or ZERO_EXTEND.
12532         (aarch64_rtx_costs): Properly strip extend or extract before
12533         passing down to rtx costs again.
12535 2015-07-28  Nick Clifton  <nickc@redhat.com>
12537         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12538         Optimizes the case where -mes0 is active and a constant symbolic
12539         address is used.
12540         * config/rl78/rl78-protos.h: Prototype the new function.
12541         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12543 2015-07-28  Tom de Vries  <tom@codesourcery.com>
12545         * tree-parloops.c (reduc_stmt_res): New function.
12546         (initialize_reductions, add_field_for_reduction)
12547         (create_phi_for_local_result, create_loads_for_reductions)
12548         (create_stores_for_reduction, build_new_reduction): Handle case that
12549         reduc_stmt is a phi.
12550         (gather_scalar_reductions): Allow double_reduc reductions.
12552 2015-07-28  Richard Biener  <rguenther@suse.de>
12554         * fold-const.c (fold_comparison): Remove equality folding
12555         of decl addresses ...
12556         * match.pd: ... here and merge with existing pattern.
12558 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12560         PR tree-optimization/66828
12561         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12562         from int64_t to uint64_t.
12564 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12566         * opts-common.c (read_cmdline_option): List DriverOnly enum values
12567         as valid only in the error message of the driver, not in the
12568         messages of the language compilers.
12570 2015-07-27  Tom de Vries  <tom@codesourcery.com>
12572         * tree-parloops.c (gather_scalar_reductions): Simplify function
12573         structure.
12575 2015-07-27  Marek Polacek  <polacek@redhat.com>
12577         * ipa-devirt.c (types_same_for_odr): Fix typo.
12579 2015-07-27  Jason Merrill  <jason@redhat.com>
12581         PR debug/66468
12582         * dwarf2out.c (gen_inlined_subroutine_die): Check
12583         cgraph_function_possibly_inlined_p.
12585 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
12587         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12588         Place integer variant first.
12589         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12591 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
12593         PR/63870
12594         * config/arm/arm-builtins.c (enum arm_builtins):
12595         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12596         (ARM_BUILTIN_NEON_BASE): Rename macro to....
12597         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12598         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12599         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12601 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
12603         PR/63870
12604         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12605         Add qualifier_lane_index.
12606         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12607         (arm_getlane_qualifiers): Use qualifier_lane_index.
12608         (arm_lanemac_qualifiers): Rename to...
12609         (arm_mac_n_qualifiers): ...this.
12610         (LANEMAC_QUALIFIERS): Rename to...
12611         (MAC_N_QUALIFIERS): ...this.
12612         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12613         (arm_setlane_qualifiers): Use qualifier_lane_index.
12614         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12615         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12616         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12617         (arm_expand_neon_builtin): Handle qualifier_lane_index.
12619         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12620         * config/arm/arm.c (bounds_check): Likewise, improve error message.
12621         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12622         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12623         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12624         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12625         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12626         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12627         qualifiers to TERNOP_IMM.
12628         (vdup_lane): Change qualifiers to GETLANE.
12629         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12630         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12631         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12632         vqdmlsl_n): Change qualifiers to MAC_N.
12634         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12635         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12636         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12637         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12638         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12639         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12640         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12641         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12642         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12643         Remove call to neon_lane_bounds.
12645 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
12647         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12648         Place integer variant first.
12650 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
12652         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12653         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12654         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12655         for armv6kz targets.
12656         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12657         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12658         (FL_FOR_ARCH6ZK): Remove.
12659         (FL_FOR_ARCH6KZ): New.
12660         (arm_arch6zk): New declaration.
12661         * config/arm/arm-tables.opt: Regenerate.
12662         * config/arm/arm.c (arm_arch6kz): New.
12663         (arm_option_override): Set arm_arch6kz.
12664         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12665         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12666         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12668 2015-07-27  Marek Polacek  <polacek@redhat.com>
12670         PR c++/66555
12671         PR c/54979
12672         * doc/invoke.texi: Document -Wtautological-compare.
12674 2015-07-27  Richard Biener  <rguenther@suse.de>
12676         * genmatch.c (decision_tree::gen_gimple): Split out large
12677         subtrees into separate functions.
12678         (decision_tree::gen_generic): Likewise.
12680 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
12682         * config/alpha/alpha.c: Use SUBREG_P predicate.
12683         * config/alpha/predicates.md: Ditto.
12685 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12687         * config.host (s390*-*-*): Include driver-native.c only when
12688         building with s390* as host *and* target.
12690 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
12692         PR target/66930
12693         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12694         T bit register modified_between_p check.
12696 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
12698         * config/i386/i386.c: Use SUBREG_P predicate.
12699         * config/i386/i386.md: Ditto.
12700         * config/i386/sse.md: Ditto.
12701         * config/i386/predicates.md: Ditto.
12703 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
12705         PR target/67004
12706         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12707         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12709 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
12711         * Makefile.in: Remove use of TREEBROWSER.
12712         * config.in: Regenerated.
12713         * configure: Regenerated.
12714         * configure.ac: Remove definition of TREEBROWSER.
12715         * tree-browser.c: Removed.
12716         * tree-browser.def: Removed.
12718 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
12720         * graphite-scop-detection.c: Include gimple-pretty-print.h.
12721         (stmt_simple_for_scop_p): Print when a stmt is not handled in
12722         Graphite.
12723         (scopdet_basic_block_info): Print when a loop or bb cannot be
12724         represented in Graphite.
12726 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
12728         PR target/66648
12729         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12730         execution guard when min_size is less than size_needed.
12732 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
12734         * doc/install.texi: Document supported versions of ISL.
12736 2015-07-25  Jeff Law  <law@redhat.com>
12738         Revert:
12739         PR lto/66752
12740         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12741         unable to find X NE 0 in the tables, return X as the simplified
12742         condition.
12743         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12744         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
12745         to VISISTED_BBS.  */
12746         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12747         after removing the control flow statement and unnecessary edges.
12749 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
12751         Revert:
12752         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
12754         PR rtl-optimization/64164
12755         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12756         * tree-ssa-copyrename.c: Removed.
12757         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
12758         -ftree-coalesce-vars.
12759         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12760         * common.opt (ftree-copyrename): Ignore.
12761         (ftree-coalesce-inlined-vars): Likewise.
12762         * doc/invoke.texi: Remove the ignored options above.
12763         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12764         * tree-ssa-coalesce.h: ... here.
12765         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12766         headers required by it.
12767         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12768         across variables when flag_tree_coalesce_vars.  Check register
12769         use and promoted modes to allow coalescing.  Moved to
12770         tree-ssa-coalesce.c.
12771         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12772         with its member functions to tree-ssa-coalesce.c.
12773         (var_map_base_init): Likewise.  Renamed to
12774         compute_samebase_partition_bases.
12775         (partition_view_normal): Drop want_bases parameter.
12776         (partition_view_bitmap): Likewise.
12777         * tree-ssa-live.h: Adjust declarations.
12778         * tree-ssa-coalesce.c: Include explow.h.
12779         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12780         default defs at the entry point.
12781         (dump_part_var_map): New.
12782         (compute_optimized_partition_bases): New, called by...
12783         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12784         of compute_samebase_partition_bases.  Adjust.
12785         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12786         * cfgexpand.c (leader_merge): New.
12787         (get_rtl_for_parm_ssa_default_def): New.
12788         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12789         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12790         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
12791         redundant MEM attr setting.
12792         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
12793         from...
12794         (expand_one_stack_var): ... this.  New wrapper to check and
12795         skip already expanded SSA partitions.
12796         (record_alignment_for_reg_var): New, factored out of...
12797         (expand_one_var): ... this.
12798         (expand_one_ssa_partition): New.
12799         (adjust_one_expanded_partition_var): New.
12800         (expand_one_register_var): Check and skip already expanded SSA
12801         partitions.
12802         (expand_used_vars): Don't create DECLs for anonymous SSA
12803         names.  Expand all SSA partitions, then adjust all SSA names.
12804         (pass::execute): Replace the loops that set
12805         SA.partition_to_pseudo from partition leaders and cleared
12806         DECL_RTL for multi-location variables, and that which used to
12807         rename vars and set attrs, with one that clears DECL_RTL and
12808         checks that PARMs and RESULTs default_defs match DECL_RTL.
12809         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12810         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12811         * explow.c (promote_ssa_mode): New.
12812         * explow.h (promote_ssa_mode): Declare.
12813         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12814         * function.c: Include cfgexpand.h.
12815         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12816         (use_register_for_parm_decl): Wrapper for the above to
12817         special-case the result_ptr.
12818         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12819         (split_complex_args): Take assign_parm_data_all argument.
12820         Pass it to rtl_for_parm.  Set up rtl and context for split
12821         args.
12822         (assign_parms_augmented_arg_list): Adjust.
12823         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12824         multiple locations.  Recognize split complex args.
12825         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12826         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
12827         (assign_parm_setup_block): Prefer SSA-assigned location.
12828         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
12829         if stack_parm is NULL.
12830         (assign_parm_setup_stack): Prefer SSA-assigned location.
12831         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
12832         rtl before testing for pointer bounds.  Special-case result_ptr.
12833         (expand_function_start): Maybe reset DECL_RTL of result.
12834         Prefer SSA-assigned location for result and static chain.
12835         Factor out DECL_RESULT and SET_DECL_RTL.
12836         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12837         anonymous SSA names.  Use promote_ssa_mode.
12838         (get_temp_reg): Likewise.
12839         (remove_ssa_form): Adjust.
12840         * stor-layout.c (layout_decl): Don't set mem attributes of
12841         non-MEMs.
12842         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12843         and get its reg_usage for reg invalidation.
12844         (compute_bb_dataflow): Pass it insn.
12845         (emit_notes_in_bb): Likewise.
12847 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
12849         * config/i386/i386.c (ix86_va_start): Remove
12850         unneeded !TARGET_64BIT check.
12851         (ix86_gimplify_va_arg): Ditto.
12853 2015-07-24  Tom de Vries  <tom@codesourcery.com>
12855         * graphite-sese-to-poly.c (build_poly_scop): Always call
12856         rewrite_commutative_reductions_out_of_ssa.
12858 2015-07-24  Tom de Vries  <tom@codesourcery.com>
12860         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
12861         flag_associative_math to FLOAT_TYPE_P.  Honour
12862         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
12864 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12866         PR c++/64079
12867         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
12868         and "%qD" in warning_at instead of "%q+D" in warning.
12870 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
12872         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
12873         (ix86_function_abi): Cleanup.
12875 2015-07-24  Michael Darling  <darlingm@gmail.com>
12877         PR other/66259
12878         * acinclude.m4: Reflects renaming of configure.in to configure.ac
12879         * configure: Likewise
12880         * configure.ac: Likewise
12881         * doc/install.texi: Likewise
12882         * doc/tm.texi: Likewise
12883         * doc/tm.texi.in: Likewise
12885 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12887         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
12888         manually swapping values.
12889         * cse.c (fold_rtx): Likewise.
12890         * lra-eliminations.c (form_sum): Likewise.
12892 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
12894         PR target/64003
12895         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
12896         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
12897         (*jcc_1, *jcc_2, jump, simple_return_internal)
12898         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
12899         Set length_nobnd attribute instead of length attribute.
12900         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
12901         (length_nobnd): Remove attribute.
12902         (length): Remove length_nobnd processing.
12904 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
12906         * gimplify.c (omp_default_clause): New function.  Reorganize flow
12907         for clarity. Broken out of ...
12908         (omp_notice_variable): ... here.
12910 2015-07-24  Gary Funck  <gary@intrepid.com>
12912         PR middle-end/66984
12913         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
12914         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
12916 2015-07-24  Tom de Vries  <tom@codesourcery.com>
12918         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
12919         exit-first loop transform.
12921 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
12923         PR 66714
12924         * tree-cfg.c (struct replace_decls_d): New struct.
12925         (replace_block_vars_by_duplicates_1): New function.
12926         (replace_block_vars_by_duplicates): Use it to replace the decls
12927         in the value exprs by duplicates.
12929 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12931         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
12932         -shared, -symbolic, -rdynamic.
12934 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12936         PR target/65711
12937         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
12938         -dynamic-linker within %{!static %{!shared, and -rdynamic within
12939         %{!static.
12941 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
12943         PR ipa/66566
12944         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
12945         edge summary is available.
12947 2015-07-24  Richard Biener  <rguenther@suse.de>
12949         * genmatch.c (struct dt_node): Add statistic fields.
12950         (dt_node::analyze): New method.
12951         (decision_tree::gen_gimple): Call analyze on the root node
12952         and print statistics to stderr.
12953         (decision_tree::gen_generic): Likewise.
12955 2015-07-24  Richard Biener  <rguenther@suse.de>
12957         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
12958         against the highest or lowest possible integer ...
12959         * match.pd: ... as patterns here.
12961 2015-07-24  Richard Biener  <rguenther@suse.de>
12963         * genmatch.c (struct capture_info): Add same_as field.
12964         (capture_info::capture_info): Initialize same_as.
12965         (capture_info::walk_match): Compute same_as.
12966         (capture_info::walk_result): Compute stuff for the leader.
12967         (capture_info::walk_c_expr): Likewise.
12968         (dt_simplify::gen_1): Only look at leaders when deciding
12969         to force no side-effects or emit side-effects of omitted operands.
12971 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12973         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
12974         reg note to the GPR -> FPR save instructions.
12976 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12978         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
12979         cheaper.
12980         (s390_expand_insv): Don't generate risbg pattern for constant zero
12981         sources.
12982         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
12983         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
12984         splitters.
12986 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12988         * config/s390/s390.c (s390_reorg): Clean up handling of processors
12989         with
12990         -mtune=
12991         (s390_issue_rate): Likewise.
12992         (s390_sched_reorder): Likewise.
12993         (s390_sched_variable_issue): Likewise.
12994         (s390_loop_unroll_adjust): Likewise.
12995         (s390_option_override):  Likewise.
12997 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12999         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
13000         processor capabilities with -march=native.
13001         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
13002         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
13003         (S390_TARGET_BITS_STRING): Macro to simplify specs.
13005 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13007         * config/s390/s390.c (s390_issue_rate): Handle
13008         PROCESSOR_2094_Z9_EC.
13009         (s390_option_override): Likewise.
13010         (s390_adjust_priority): Likewise.
13012 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13014         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
13015         when cross compiling.
13017 2015-07-24  Richard Biener  <rguenther@suse.de>
13019         * fold-const.c (maybe_canonicalize_comparison_1): Move
13020         A code CST canonicalization ...
13021         * match.pd: ... to a pattern here.
13023 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
13025         Revert:
13026         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
13027         PR target/63521
13028         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13029         (HONOR_REG_ALLOC_ORDER): Define.
13031 2015-07-24  Richard Biener  <rguenther@suse.de>
13033         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
13034         * fold-const.c (fold_comparison): Move parameter does not
13035         alias &local simplification ...
13036         * match.pd: ... as a pattern here.
13038 2015-07-24  Richard Biener  <rguenther@suse.de>
13040         * gimple-fold.c (replace_stmt_with_simplification): Special-case
13041         valueizing call operands.
13042         * gimple-match-head.c (maybe_push_res_to_seq): Take
13043         number of call arguments from ops array.
13044         (do_valueize): New function.
13045         (gimple_simplify): Return true if valueization changed
13046         any operand even if the result didn't simplify further.
13048 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13050         PR middle-end/25530
13051         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
13053 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13055         PR middle-end/25529
13056         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
13058 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13060         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
13061         instruction.
13063 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13065         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
13066         clean up.
13068 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
13070         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
13071         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
13072         targets here.
13073         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
13074         ms_va_list_type_node initialization.
13076 2015-07-23  Jeff Law  <law@redhat.com>
13078         PR lto/66752
13079         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13080         unable to find X NE 0 in the tables, return X as the simplified
13081         condition.
13082         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13083         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
13084         to VISISTED_BBS.  */
13085         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13086         after removing the control flow statement and unnecessary edges.
13088 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13090         * tree-pass.h (get_current_pass_name): Removed.
13092 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
13094         PR rtl-optimization/64164
13095         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13096         * tree-ssa-copyrename.c: Removed.
13097         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
13098         -ftree-coalesce-vars.
13099         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13100         * common.opt (ftree-copyrename): Ignore.
13101         (ftree-coalesce-inlined-vars): Likewise.
13102         * doc/invoke.texi: Remove the ignored options above.
13103         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13104         * tree-ssa-coalesce.h: ... here.
13105         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13106         headers required by it.
13107         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13108         across variables when flag_tree_coalesce_vars.  Check register
13109         use and promoted modes to allow coalescing.  Moved to
13110         tree-ssa-coalesce.c.
13111         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13112         with its member functions to tree-ssa-coalesce.c.
13113         (var_map_base_init): Likewise.  Renamed to
13114         compute_samebase_partition_bases.
13115         (partition_view_normal): Drop want_bases parameter.
13116         (partition_view_bitmap): Likewise.
13117         * tree-ssa-live.h: Adjust declarations.
13118         * tree-ssa-coalesce.c: Include explow.h.
13119         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13120         default defs at the entry point.
13121         (dump_part_var_map): New.
13122         (compute_optimized_partition_bases): New, called by...
13123         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13124         of compute_samebase_partition_bases.  Adjust.
13125         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13126         * cfgexpand.c (leader_merge): New.
13127         (get_rtl_for_parm_ssa_default_def): New.
13128         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13129         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13130         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
13131         redundant MEM attr setting.
13132         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
13133         from...
13134         (expand_one_stack_var): ... this.  New wrapper to check and
13135         skip already expanded SSA partitions.
13136         (record_alignment_for_reg_var): New, factored out of...
13137         (expand_one_var): ... this.
13138         (expand_one_ssa_partition): New.
13139         (adjust_one_expanded_partition_var): New.
13140         (expand_one_register_var): Check and skip already expanded SSA
13141         partitions.
13142         (expand_used_vars): Don't create DECLs for anonymous SSA
13143         names.  Expand all SSA partitions, then adjust all SSA names.
13144         (pass::execute): Replace the loops that set
13145         SA.partition_to_pseudo from partition leaders and cleared
13146         DECL_RTL for multi-location variables, and that which used to
13147         rename vars and set attrs, with one that clears DECL_RTL and
13148         checks that PARMs and RESULTs default_defs match DECL_RTL.
13149         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13150         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13151         * explow.c (promote_ssa_mode): New.
13152         * explow.h (promote_ssa_mode): Declare.
13153         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13154         * function.c: Include cfgexpand.h.
13155         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13156         (use_register_for_parm_decl): Wrapper for the above to
13157         special-case the result_ptr.
13158         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13159         (split_complex_args): Take assign_parm_data_all argument.
13160         Pass it to rtl_for_parm.  Set up rtl and context for split
13161         args.
13162         (assign_parms_augmented_arg_list): Adjust.
13163         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13164         multiple locations.  Recognize split complex args.
13165         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13166         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
13167         (assign_parm_setup_block): Prefer SSA-assigned location.
13168         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
13169         if stack_parm is NULL.
13170         (assign_parm_setup_stack): Prefer SSA-assigned location.
13171         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
13172         rtl before testing for pointer bounds.  Special-case result_ptr.
13173         (expand_function_start): Maybe reset DECL_RTL of result.
13174         Prefer SSA-assigned location for result and static chain.
13175         Factor out DECL_RESULT and SET_DECL_RTL.
13176         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13177         anonymous SSA names.  Use promote_ssa_mode.
13178         (get_temp_reg): Likewise.
13179         (remove_ssa_form): Adjust.
13180         * stor-layout.c (layout_decl): Don't set mem attributes of
13181         non-MEMs.
13182         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13183         and get its reg_usage for reg invalidation.
13184         (compute_bb_dataflow): Pass it insn.
13185         (emit_notes_in_bb): Likewise.
13187 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
13189         PR target/66217
13190         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
13191         prototype.
13192         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
13193         (rs6000_emit_2insn_and): Handle dot forms.
13194         * config/rs6000/rs6000.md (and<mode>3): Adjust.
13195         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
13196         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
13198 2015-07-23  Richard Biener  <rguenther@suse.de>
13200         * generic-match-head.c: Include cgraph.h.
13201         * gimple-match-head.c: Likewise.
13202         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
13203         SSA names.
13204         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
13205         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
13206         pattern.
13208 2015-07-23  Richard Biener  <rguenther@suse.de>
13210         * gimple-fold.c (fold_gimple_cond): Do not require folding
13211         results to pass valid_gimple_rhs_p.
13212         * tree-cfg.h (fold_cond_expr_cond): Remove.
13213         * tree-cfg.c (fold_cond_expr_cond): Likewise.
13214         (make_edges): Do not call it.
13215         * tree-inline.c (tree_function_versioning): Likewise.
13217 2015-07-23  Tom de Vries  <tom@codesourcery.com>
13219         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13220         vect_force_simple_reduction.
13221         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
13222         (vect_is_simple_reduction_1): Add and handle
13223         need_wrapping_integral_overflow parameter.
13224         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
13225         need_wrapping_integral_overflow parameter.
13226         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
13227         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
13228         decl.
13230 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
13232         PR tree-optimization/66926,66951
13233         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
13234         INNER_LOOP and fix up condition for renaming virtual operands.
13236 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13238         * combine.c (try_combine): Use std::swap instead of manually
13239         swapping.
13241 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
13243         * config/mips/i6400.md: New file.
13244         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
13245         (mips64r6): Likewise.
13246         (i6400): Define.
13247         * config/mips/mips-tables.opt: Regenerate.
13248         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
13249         (mips_issue_rate): Add support for i6400.
13250         (mips_multipass_dfa_lookahead): Likewise.
13251         * config/mips/mips.h (TUNE_I6400): Define.
13252         * config/mips/mips.md: Include i6400.md.
13253         (processor): Add i6400.
13254         * doc/invoke.texi (-march=@var{arch}): Add i6400.
13256 2015-07-23  Richard Biener  <rguenther@suse.de>
13258         PR middle-end/66916
13259         * match.pd: Guard widen and sign-change comparison simplification
13260         with single_use.
13262 2015-07-23  Richard Biener  <rguenther@suse.de>
13264         PR tree-optimization/66945
13265         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
13266         ::before_dom_children): Force the propagators idea of
13267         non-executable edges to materialize, not what the folder
13268         chooses.
13270 2015-07-23  Richard Biener  <rguenther@suse.de>
13272         * gimple.h (gimple_cond_make_false): Use 0 != 0.
13273         (gimple_cond_make_true): Use 1 != 0.
13275 2015-07-22  DJ Delorie  <dj@redhat.com>
13277         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
13278         slashes.
13280         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
13281         (ashrhi3): Likewise.
13282         (lshrhi3): Likewise.
13283         (movhi): Take advantage of zero-extend to load small constants.
13284         (movpsi): Likewise.
13285         (and<mode>3): Likewise.
13286         (zero_extendqihi2): Likewise.
13287         (zero_extendqisi2): New.
13288         * config/msp430/constraints.md (N,O): New.
13289         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
13291 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
13293         PR target/66954
13294         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
13295         to enum feature_priority and feature_list.
13296         (fold_builtin_cpu): Add F_AES to enum processor_features
13297         and isa_names_table.
13299 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
13301         PR driver/66737
13302         * config/i386/linux-common.h (MPX_SPEC): Use linker option
13303         for 64bit target only.
13305 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
13307         * config/nvptx/nvptx.c: Expand some comments.
13309 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
13311         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
13312         (cortex_a53_advsimd): ...This.
13314 2015-07-22  Richard Biener  <rguenther@suse.de>
13316         * genmatch.c (expr::gen_transform): Clarify error message
13317         and display location.
13319 2015-07-22  Richard Biener  <rguenther@suse.de>
13321         * genmatch.c (struct operand): Add location member.
13322         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
13323         constructors.
13324         (struct simplify): Remove match_location and result_location
13325         members.
13326         (elsehwere): Adjust.
13328 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
13330         * config/mips/m5100.md: New file.
13331         * config/mips/mips-cpus.def (m5100, m5101): Define.
13332         * config/mips/mips-tables.opt: Regenerate.
13333         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
13334         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
13335         -march=m5101 to -mips32r5.
13336         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
13337         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
13338         !-msoft-float.
13339         * config/mips/mips.md: Include m5100.md.
13340         (processor): Add m5100.
13341         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
13343 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
13345         * config/mips/mips-cpus.def (interaptiv): Define.
13346         * config/mips/mips-tables.opt: Regenerate.
13347         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
13348         -mips32r2.
13349         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
13350         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
13352 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
13354         PR target/63521
13355         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13356         (HONOR_REG_ALLOC_ORDER): Define.
13358 2015-07-22  Richard Biener  <rguenther@suse.de>
13360         PR tree-optimization/66952
13361         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
13362         blocks we end up executing unconditionally reset all SSA
13363         info such as range and alignment.
13364         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
13365         * tree-ssanames.c (reset_flow_sensitive_info): New function.
13367 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
13369         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
13370         typo in attribute.
13372 2015-07-22  Richard Biener  <rguenther@suse.de>
13374         * genmatch.c (parser::parse_result): Properly handle
13375         match with result operands and conditions.
13377 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
13379         PR target/63870
13380         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
13381         Add qualifier_struct_load_store_lane_index.
13382         (aarch64_types_loadstruct_lane_qualifiers): Use
13383         qualifier_struct_load_store_lane_index for lane index argument for
13384         last argument.
13385         (aarch64_types_storestruct_lane_qualifiers): Ditto.
13386         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13387         (aarch64_simd_expand_args): Add new argument describing mode of
13388         builtin. Check lane bounds for arguments with
13389         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13390         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
13391         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13392         (aarch64_simd_expand_builtin): Handle arguments with
13393         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
13394         aarch64_simd_expand_args.
13395         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
13396         vst[234]_lane with BUILTIN_VALLDIF.
13397         * config/aarch64/aarch64-simd.md:
13398         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
13399         endianness reversal on lane index.
13400         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
13401         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
13402         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
13403         (vec_store_lanesci_lane<mode>): Ditto.
13404         (vec_store_lanesxi_lane<mode>): Ditto.
13405         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
13406         reversal of lane index.
13407         (aarch64_ld3_lane<mode>): Ditto.
13408         (aarch64_ld4_lane<mode>): Ditto.
13409         (aarch64_st2_lane<mode>): Ditto.
13410         (aarch64_st3_lane<mode>): Ditto.
13411         (aarch64_st4_lane<mode>): Ditto.
13412         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
13413         to qmode. Add new mode parameter. Update uses.
13414         (__LD3_LANE_FUNC): Ditto.
13415         (__LD4_LANE_FUNC): Ditto.
13416         (__ST2_LANE_FUNC): Ditto.
13417         (__ST3_LANE_FUNC): Ditto.
13418         (__ST4_LANE_FUNC): Ditto.
13420 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
13422         * doc/invoke.texi (Language Independent Options): Rename node to
13423         Diagnostic Message Formatting Options.
13425 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
13427         PR ipa/66424.
13428         * lra-remat.c (operand_to_remat): Prevent using insns with input
13429         subregs processed separately by IRA.
13431 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
13433         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
13434         straight loops.
13435         (single_imm_use): Check for iterator node.
13436         (num_imm_uses): Likewise.
13437         * tree-ssa-operands.c (has_zero_uses_1): Delete.
13438         (single_imm_use_1): Check for iterator node.
13440 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
13441             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13443         * configure.ac: Add check for new options in isl-0.15.
13444         * config.in, configure: Rebuilt.
13445         * graphite-blocking.c: Include <isl/constraint.h>
13446         * graphite-interchange.c,  graphite-poly.c: Likewise.
13447         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
13448         * graphite.c: Likewise.
13449         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
13450         <isl/union_set.h>.
13451         * graphite-dependences.c: Include <isl/constraint.h>.
13452         (max_number_of_out_dimensions): Returns isl_stat.
13453         (extend_schedule_1): Likewise
13454         (extend_schedule): Corresponding changes.
13455         * graphite-optimize-isl.c: Include <isl/constraint.h> and
13456         <isl/union_set.h>.
13457         (getSingleMap): Change return type of isl_stat.
13458         (optimize_isl): Conditionally use
13459         isl_options_set_schedule_serialize_sccs.
13460         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
13461         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
13463 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
13465         PR target/66956
13466         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
13467         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
13469 2015-07-21  Richard Biener  <rguenther@suse.de>
13471         PR tree-optimization/66948
13472         * genmatch.c (capture_info::walk_match): Also recurse to
13473         captures.  Properly compute expr state from captures of
13474         captures.
13475         * match.pd: Add single-use guards to
13476         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
13478 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
13480         * config/nvptx/mkoffload.c (process): Add static destructor call.
13482 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13484         PR middle-end/66915
13485         * match.pd (A - B -> A + (-B)): Don't allow folding
13486         when type if a fixed-point type.
13488 2015-07-20  DJ Delorie  <dj@redhat.com>
13490         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
13491         (iorqi3_real): Likewise for set1.
13493 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
13495         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
13496         for !TARGET_64BIT.
13498 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
13500         * graphite-isl-ast-to-gimple.c:
13501         Refactor so that each function can access 'region'. This will help
13502         maintain a parameter rename_map within a region.
13504 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
13506         * config/rs6000/rs6000.md (*lt0_disi): New.
13508 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
13510         PR target/66217
13511         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
13512         "available letters" comment.
13513         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
13514         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
13515         and_2rld_operand):  Delete.
13516         (and_operand): Adjust.
13517         (rotate_mask_operator): New.
13518         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
13519         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
13520         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13521         extract_ME): Delete.
13522         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13523         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13524         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13525         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13526         rs6000_emit_2insn_and): New.
13527         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13528         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13529         includes_rldic_lshift_p, includes_rldicr_lshift_p,
13530         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13531         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13532         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13533         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13534         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13535         rs6000_emit_2insn_and): New.
13536         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13537         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13538         handling.
13539         <NOT>: Don't fall through to next case.
13540         <AND>: Handle the various rotate-and-mask cases directly.
13541         <IOR>: Always cost as one insn.
13542         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13543         (and<mode>3): Adjust expander for the new patterns.
13544         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13545         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13546         (*and<mode>3_imm_dot_shifted): New.
13547         (*and<mode>3_mask): Delete, rewrite as ...
13548         (and<mode>3_mask): ... New.
13549         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13550         (andsi3_internal0_nomc): Delete.
13551         (*andsi3_internal6): Delete.
13552         (*and<mode>3_2insn): New.
13553         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13554         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13555         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13556         *insvdi_internal3): Delete.
13557         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13558         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13559         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13560         *ior<mode>_mask): New.
13561         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13562         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13563         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13564         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13565         Delete.
13566         (ashr<mode>3): Delete expander.
13567         (*ashr<mode>3): Rename to ...
13568         (ashr<mode>3): ... This.
13569         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13570         (*rotldi3_internal4, *rotldi3_internal5 and split,
13571         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13572         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13573         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13574         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13575         (splitter for loading a mask): Adjust.
13576         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13578 2015-07-20  Marek Polacek  <polacek@redhat.com>
13580         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13581         output_add_clobbers, output_added_clobbers_hard_reg_p,
13582         gen_rtx_scratch): Remove declarations.
13584 2015-07-20  Marek Polacek  <polacek@redhat.com>
13586         PR c++/55095
13587         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13589 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13591         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13592         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13594 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13596         * combine.c (combine_simplify_rtx): Move simplification step
13597         before various transformations/substitutions.
13599 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
13601         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13602         (struct int_traits): Likewise.
13604 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13606         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13607         function to vmsdbgout_function_decl.
13609 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
13611         PR target/66922
13612         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13613         from misaligned positions.
13614         (ix86_expand_pinsr): Reject insertions to misaligned positions.
13616 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
13618         PR middle-end/46851
13619         PR middle-end/60340
13620         * Makefile.in: Removed omega.o.
13621         * common.opt: Document flag fcheck-data-deps as deprecated.
13622         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13623         its associated params: omega-max-vars, omega-max-geqs,
13624         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13625         omega-max-keys, omega-eliminate-redundant-constraints.
13626         * doc/loop.texi: Remove all the section on Omega.
13627         * graphite-blocking.c: Include missing params.h: it used to be
13628         included through tree-data-ref.h and omega.h.
13629         * graphite-isl-ast-to-gimple.c: Same.
13630         * graphite-optimize-isl.c: Same.
13631         * graphite-sese-to-poly.c: Same.
13632         * graphite.c: Same.
13633         * omega.c: Remove.
13634         * omega.h: Remove.
13635         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13636         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13637         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13638         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13639         * passes.def: Remove pass_check_data_deps.
13640         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13641         (dump_conflict_function): Same.
13642         (dump_subscript): Same.
13643         (print_direction_vector): Same.
13644         (print_dir_vectors): Same.
13645         (print_lambda_vector): Same.
13646         (print_dist_vectors): Same.
13647         (dump_data_dependence_relation): Same.
13648         (dump_data_dependence_relations): Same.
13649         (dump_dist_dir_vectors): Same.
13650         (dump_ddrs): Same.
13651         (init_omega_eq_with_af): Removed.
13652         (omega_extract_distance_vectors): Removed.
13653         (omega_setup_subscript): Removed.
13654         (init_omega_for_ddr_1): Removed.
13655         (init_omega_for_ddr): Removed.
13656         (ddr_consistent_p): Removed.
13657         (compute_affine_dependence): Do not use omega to check data
13658         dependences.
13659         (compute_data_dependences_for_bb): Removed.
13660         (analyze_all_data_dependences): Removed.
13661         (tree_check_data_deps): Removed.
13662         * tree-data-ref.h: Do not include omega.h.
13663         (compute_data_dependences_for_bb): Removed.
13664         (tree_check_data_deps): Removed.
13665         * tree-ssa-loop.c (pass_check_data_deps): Removed.
13666         (make_pass_check_data_deps): Removed.
13667         * tree-ssa-phiopt.c: Include params.h.
13668         * tree-vect-data-refs.c: Same.
13669         * tree-vect-slp.c: Same.
13671 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
13673         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13674         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
13675         (mem->fpreg splitters): Ditto.
13676         (general_operand->nonimmediate_operand splitter): Use explicit modes.
13677         Disable DFmode for TARGET_64BIT.
13679 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
13681         PR target/66906
13682         * config/i386/i386.c (ix86_expand_prologue): Replicate static
13683         chain on the stack.
13685 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
13687         * config/nvptx/mkoffload.c (process): Constify host data.
13688         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13689         Constify host data.
13690         (generate_host_descr_file): Likewise.
13692 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
13693             Sebastian Pop  <s.pop@samsung.com>
13695         PR middle-end/61929
13696         * graphite-dependences.c (add_pdr_constraints): Renamed
13697         pdr->extent to pdr->subscript_sizes.
13698         * graphite-interchange.c (build_linearized_memory_access): Add
13699         back all gcc_assert's that the "isl_int to isl_val conversion"
13700         patch has removed.  Refactored.
13701         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13702         * graphite-poly.c (new_poly_dr): Same.
13703         (free_poly_dr): Same.
13704         * graphite-poly.h (struct poly_dr): Same.
13705         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13706         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13707         * graphite-scop-detection.h: Fix space.
13708         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13709         back all gcc_assert's removed by a previous patch.
13710         (wrap): Remove the_isl_ctx global variable that the same patch has
13711         added.
13712         (build_loop_iteration_domains): Same.
13713         (add_param_constraints): Same.
13714         (pdr_add_data_dimensions): Same.  Refactored.
13715         (build_poly_dr): Renamed extent to subscript_sizes.
13717 2015-07-17  Marek Polacek  <polacek@redhat.com>
13719         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13720         * match.pd: ... here.
13722 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
13724         * config/nvptx/mkoffload.c (process): Constify target data.
13725         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13726         Constify target data.
13727         (generate_target_offloadend_file): Likewise.
13729 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
13731         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13732         to allow renaming of PHI arguments on edges incoming from outer
13733         loop header, add corresponding check before start PHI iterator.
13734         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13735         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13736         with true force_vectorize.  Set-up dominator for outer loop too.
13737         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13738         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13739         was marked with force_vectorize and has restricted cfg.
13740         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13741         inner loop.
13742         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13743         do peeling for outer loops.
13745 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
13746             Matthias Klose  <doko@ubuntu.com>
13748         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13749         build-sysroot, sysroot from the `Miscenalleous configure options' to
13750         the `Directories' section and strip trailing `/' from with_sysroot.
13751         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13752         * configure: Regenerated.
13754 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
13756         PR target/66824
13757         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13758         (TARGET_HARD_DF_REGS): Ditto.
13759         (TARGET_HARD_XF_REGS): Ditto.
13760         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13761         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13762         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13763         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13764         (*movsf_internal): Add alternatives 16 and 17. Enable
13765         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13767 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
13769         PR rtl-optimization/66891
13770         * calls.c (expand_call): Wrap precompute_register_parameters with
13771         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
13773 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
13775         * config/nvptx/mkoffload.c (process): Constify mapping variables.
13776         Define target data struct and initialize it.
13778 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
13780         PR rtl-optimization/66626
13781         * ira.h (emit-rtl.h): Include.
13782         (non_spilled_static_chain_regno_p): New.
13783         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
13784         unless it is non spilled static chain pseudo.
13785         (assign_hard_rego): Spill memory profitable allocno unless it is
13786         non spilled static chain pseudo.
13787         (allocno_spill_priority_compare): Put non spilled static chain
13788         pseudo at the end of sorted array.
13789         (improve_allocation): Do nothing if we have static chain and
13790         non-local goto.
13791         (allocno__priority_compare_func): Put non spilled static chain
13792         pseudo at the beginning of sorted array.
13793         (move_spill_restore): Ignore non spilled static chain pseudo.
13794         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
13795         to non spilled static chain pseudo.
13796         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
13797         pseudo at the beginning of sorted array.
13798         (spill_for): Spill non spilled static chain pseudo last.
13799         * lra-constraints.c (lra_constraints): Remove static chain pseudo
13800         check for equivalence.
13802 2015-07-16  Martin Liska  <mliska@suse.cz>
13804         PR ipa/66896.
13805         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
13806         dst_ctx if it does not exist.
13808 2015-07-16  Martin Liska  <mliska@suse.cz>
13810         * hash-set.h (remove): New function.
13811         (iterator): New iteration class for hash_set.
13813 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
13815         * genattrtab.c (make_canonical): Add a file_location parameter.
13816         Use fatal_at rather than fatal.
13817         (get_attr_value): Likewise.  Update call to make_canonical.
13818         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
13819         (make_internal_attr): Update calls accordingly.
13821 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
13823         * read-md.h (message_with_line, error_with_line): Delete.
13824         * read-md.c (message_with_line, error_with_line): Delete.
13825         * gensupport.h: Include read-md.h.
13826         (md_rtx_info): New structure.
13827         (read_md_rtx): Use it.  Return a bool success value.
13828         * gensupport.c (read_md_rtx): Likewise.
13829         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
13830         (main): Update after interface changes.
13831         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
13832         (main): Update after interface changes.
13833         * genattrtab.c (insn_code_number): Delete.
13834         (optimize_attrs): Add a max_insn_code parameter and use it instead
13835         of insn_code_number.
13836         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
13837         Use *_at rather than *_with_line functions.
13838         (gen_insn): Likewise.
13839         (gen_delay): Likewise.
13840         (gen_insn_reserv): Likewise.
13841         (gen_bypass): Take an md_rtx_info rather than an rtx.
13842         (main): Update after interface changes.  Use a local max_insn_code
13843         variable instead of insn_code_number.
13844         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
13845         an rtx.  Use fatal_at rather than fatal.
13846         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
13847         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
13848         (gen_absence_set, gen_final_absence_set, gen_automaton)
13849         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
13850         (main): Update after interface changes.
13851         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
13852         and code number.
13853         (main): Update after interface changes.
13854         * genconditions.c (main): Use new read_md_rtx interface.
13855         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
13856         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
13857         (main): Update after interface changes.
13858         * genemit.c (insn_code_number, insn_index_number): Delete.
13859         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13860         Use fatal_at rather than fatal.
13861         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
13862         rather than fatal.
13863         (gen_split): Likewise.
13864         (main): Update after interface changes.
13865         * genextract.c (line_no): Delete.
13866         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13867         Update call to walk_rtx.
13868         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
13869         rather than message_with_line.
13870         (walk_rtx): Add an md_rtx_info argument.  Update call to
13871         VEC_safe_set_locstr.
13872         (main): Update after interface changes.
13873         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
13874         and lineno.  Use error_at rather than separate message_with_line
13875         calls and have_error assignments.
13876         (main): Update after interface changes.
13877         * genmddump.c (main): Use new read_md_rtx interface.
13878         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
13879         (main): Update after interface changes.
13880         * genoutput.c (next_code_number): Delete.
13881         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
13882         (gen_peephole, gen_expand, gen_split): Likewise.
13883         (note_constraint): Likewise.  Use *_at rather than *_with_line
13884         functions.
13885         (main): Update after interface changes.
13886         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
13887         rtx and lineno.
13888         (main): Update after interface changes.
13889         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
13890         than an rtx and lineno.
13891         (process_define_constraint): Likewise.
13892         (process_define_register_constraint): Likewise.
13893         (main): Update after interface changes.
13894         * genrecog.c (next_insn_code, pattern_lineno): Delete.
13895         (validate_pattern): Replace top-level rtx with an md_rtx_info.
13896         Use *_at rather than *_with_line functions.
13897         (match_pattern_2): Likewise.
13898         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
13899         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
13900         Use *_at rather than *_with_line functions.
13901         * gentarget-def.c (add_insn): New function.
13902         (main): Use it.  Use new read_md_rtx interface.
13904 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
13906         * gensupport.h (compute_test_codes): Take a file_location rather
13907         than a line number.
13908         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
13909         rather than *_with_line functions.
13910         (process_define_predicate): Update call to compute_test_codes.
13911         * genpreds.c (validate_exp): Take a file_location rather than a
13912         line number.  Use *_at functions rather than *_with_line functions.
13913         (process_define_predicate): Update call to validate_exp.
13914         (constraint_data): Replace lineno field with a file_location.
13915         (add_constraint): Take a file_location rather than a line number.
13916         Use *_at functions rather than *_with_line functions.  Fix error
13917         message for address constraints.  Update after changes to
13918         validate_exp, constraint_data and compute_test_codes.
13919         (process_define_constraint): Update accordingly.
13920         (process_define_register_constraint): Likewise.
13922 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
13924         * genoutput.c (data): Use a file_location to record the source
13925         position.
13926         (nothing): Delete.
13927         (idata, idata_end): Remove initialization.
13928         (constraint_data): Replace lineno with a file_location.
13929         (output_insn_data): Update after changes to data.
13930         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
13931         (scan_operands): Likewise, using *_at rather than *_with_line
13932         functions.
13933         (process_template): Likewise.
13934         (validate_insn_alternatives): Likewise.
13935         (validate_insn_operands): Likewise.
13936         (validate_optab_operands): Likewise.
13937         (init_insn_for_nothing): Initialize idata and idata_end.
13938         (note_constraint): Update after changes to constraint_data,
13939         using at rather than with_line functions.
13940         (mdep_constraint_len): Take a file_location rather than a
13941         line number.  Use at rather than with_line functions.
13943 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
13945         * read-md.h (fatal_at): Declare.
13946         * read-md.c (fatal_at): New function.
13947         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
13948         to record the source position.
13949         (check_attr_test): Take a file_location instead of a line number.
13950         Use fatal_at instead of fatal.
13951         (check_attr_value): Update after above changes, using "at"
13952         rather than "with_line" reporting functions.
13953         (convert_set_attr_alternative): Likewise.
13954         (gen_attr): Likewise.
13955         (check_defs): Likewise.  Don't assign to read_md_filename.
13956         (gen_insn): Update initialization after above changes.
13957         (gen_delay): Likewise.
13958         (write_insn_cases): Print the filename for a define_peephole.
13959         (gen_insn_reserv): Take a line number as argument and update
13960         the call to check_attr_test.
13961         (main): Pass a line number to gen_insn_reserv.
13963 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
13965         * read-md.h (file_location): New structure.
13966         (directive_handler_t): Take a file_location rather than a line number.
13967         (message_at, error_at): Declare.
13968         (read_skip_construct): Delete.
13969         * read-md.c (message_with_line_1): Replace with...
13970         (message_at_1): ...this new function.
13971         (message_at, error_at): New functions.
13972         (message_with_line, error_with_line): Update to use message_at_1.
13973         (handle_enum): Take a file_location rather than a line number
13974         and use error_at for error reporting.
13975         (handle_include): Likewise.
13976         (read_skip_construct): Likewise.  Make static.
13977         (handle_file): Update after above changes.  Pass a file_location
13978         rather than a line number to handle_directive.
13979         * gensupport.c (queue_elem): Replace separate filename and lineno
13980         with a file_location.
13981         (queue_pattern): Replace filename and lineno arguments with a
13982         file_location.  Update after change to queue_elem.
13983         (process_define_predicate): Replace lineno argument with a
13984         file_location and use error_at for error reporting.  Update
13985         after above changes.
13986         (process_rtx): Likewise.
13987         (subst_pattern_match): Likewise.
13988         (get_alternatives_number): Likewise.
13989         (alter_predicate_for_insn): Likewise.
13990         (rtx_handle_directive): Likewise.
13991         (is_predicable): Update after above changes, using error_at rather
13992         than error_with_line.
13993         (has_subst_attribute): Likewise.
13994         (identify_predicable_attribute): Likewise.
13995         (alter_attrs_for_subst_insn): Likewise.
13996         (process_one_cond_exec): Likewise.
13997         (process_substs_on_one_elem): Likewise.
13998         (process_define_subst): Likewise.
13999         (check_define_attr_duplicates): Likewise.
14000         (read_md_rtx): Update after change to queue_elem.
14002 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14004         * genoutput.c (next_index_number): Delete.
14005         (data): Remove index_number.
14006         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
14007         (main): Remove manipulation of next_index_number.
14009 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
14011         * genattrtab.c (check_attr_value): Remove handling of null attrs.
14012         (make_canonical): Likewise.
14014 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
14016         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
14017         instead of adjust_address_nv.
14018         (restore_stack_nonlocal): Likewise.
14019         (nonlocal_goto): Likewise.
14021 2015-07-16  Tom de Vries  <tom@codesourcery.com>
14023         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
14024         not have a corresponding loop header phi.
14026 2015-07-16  Tom de Vries  <tom@codesourcery.com>
14028         * tree-parloops.c (create_loads_for_reductions): Handle case that
14029         reduction is unused.
14031 2015-07-16  Richard Biener  <rguenther@suse.de>
14033         PR tree-optimization/66894
14034         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
14035         about deriving NE_EXPR from truncated values.
14037 2015-07-16  Martin Liska  <mliska@suse.cz>
14039         * alloc-pool.h
14040         (object_allocator): Add new class.
14041         (pool_allocator::initialize): Use the underlying class.
14042         (pool_allocator::allocate): Likewise.
14043         (pool_allocator::remove): Likewise.
14044         (operator new): A new generic allocator.
14045         * asan.c (struct asan_mem_ref): Remove unused members.
14046         (asan_mem_ref_new): Replace new operator with
14047         object_allocator::allocate.
14048         (free_mem_ref_resources): Change deallocation.
14049         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
14050         with object_allocator.
14051         * config/sh/sh.c (add_constant): Replace new operator with
14052         object_allocator::allocate.
14053         (sh_reorg): Change call to a release method.
14054         * cselib.c (struct elt_list): Remove unused members.
14055         (new_elt_list): Replace new operator with
14056         object_allocator::allocate.
14057         (new_elt_loc_list): Likewise.
14058         (new_cselib_val): Likewise.
14059         (unchain_one_elt_list): Change delete operator with remove method.
14060         (unchain_one_elt_loc_list): Likewise.
14061         (unchain_one_value): Likewise.
14062         (cselib_finish): Release newly added static allocators.
14063         * cselib.h (struct cselib_val): Remove unused members.
14064         (struct elt_loc_list): Likewise.
14065         * df-problems.c (df_chain_alloc): Replace pool_allocator with
14066         object_allocator.
14067         * df-scan.c (struct df_scan_problem_data): Likewise.
14068         (df_scan_alloc): Likewise.
14069         * df.h (struct dataflow): Likewise.
14070         * dse.c (struct read_info_type): Likewise.
14071         (struct insn_info_type): Likewise.
14072         (struct dse_bb_info_type): Likewise.
14073         (struct group_info): Likewise.
14074         (struct deferred_change): Likewise.
14075         (get_group_info): Likewise.
14076         (delete_dead_store_insn): Likewise.
14077         (free_read_records): Likewise.
14078         (replace_read): Likewise.
14079         (check_mem_read_rtx): Likewise.
14080         (scan_insn): Likewise.
14081         (dse_step1): Likewise.
14082         (dse_step7): Likewise.
14083         * et-forest.c (struct et_occ): Remove unused members.
14084         (et_new_occ): Use allocate instead of new operator.
14085         (et_new_tree): Likewise.
14086         (et_free_tree): Call release method explicitly.
14087         (et_free_tree_force): Likewise.
14088         (et_free_pools): Likewise.
14089         (et_split): Use remove instead of delete operator.
14090         * et-forest.h (struct et_node): Remove unused members.
14091         * ipa-cp.c: Change pool_allocator to object_allocator.
14092         * ipa-inline-analysis.c: Likewise.
14093         * ipa-profile.c: Likewise.
14094         * ipa-prop.c: Likewise.
14095         * ipa-prop.h: Likewise.
14096         * ira-build.c (initiate_cost_vectors): Cast return value.
14097         (ira_allocate_cost_vector): Likewise.
14098         * ira-color.c (struct update_cost_record): Remove unused members.
14099         * lra-int.h (struct lra_live_range): Likewise.
14100         (struct lra_copy): Likewise.
14101         (struct lra_insn_reg): Likewise.
14102         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
14103         * lra.c (new_insn_reg): Replace new operator with allocate method.
14104         (free_insn_regs): Same for operator delete.
14105         (finish_insn_regs): Release new static allocator.
14106         (finish_insn_recog_data): Likewise.
14107         (lra_free_copies): Replace delete operator with remove method.
14108         (lra_create_copy): Replace operator new with allocate method.
14109         (invalidate_insn_data_regno_info): Same for remove method.
14110         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
14111         (free_debug_insn_changes): Replace delete operator with remove method.
14112         (replace_oldest_value_reg): Replace operator new with allocate method.
14113         (pass_cprop_hardreg::execute): Release new static variable.
14114         * sched-deps.c (sched_deps_init): Change pool_allocator to
14115         object_allocator.
14116         * sel-sched-ir.c: Likewise.
14117         * sel-sched-ir.h: Likewise.
14118         * stmt.c (expand_case): Likewise.
14119         (expand_sjlj_dispatch_table): Likewise.
14120         * tree-sra.c (struct access): Remove unused members.
14121         (struct assign_link): Likewise.
14122         (sra_deinitialize): Release newly added static pools.
14123         (create_access_1):Replace operator new with allocate method.
14124         (build_accesses_from_assign): Likewise.
14125         (create_artificial_child_access): Likewise.
14126         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
14127         pool_allocator to object_allocator.
14128         * tree-ssa-pre.c: Likewise.
14129         * tree-ssa-reassoc.c: Likewise.
14130         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14131         * tree-ssa-strlen.c: Likewise.
14132         * tree-ssa-structalias.c: Likewise.
14133         * var-tracking.c (onepart_pool_allocate): New function.
14134         (unshare_variable): Use the newly added function.
14135         (variable_merge_over_cur): Likewise.
14136         (variable_from_dropped): Likewise.
14137         (variable_was_changed): Likewise.
14138         (set_slot_part): Likewise.
14139         (emit_notes_for_differences_1): Likewise.
14140         (vt_finalize): Release newly added static pools.
14142 2015-07-16  Martin Jambor  <mjambor@suse.cz>
14144         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
14145         all uses.  Fix two typos in its general comment.
14146         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
14148 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
14150         * config/i386/linux-common.h (LINK_MPX): New.
14151         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
14152         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
14153         indicating '-z bndplt' support by linker.
14154         * configure: Regenerate.
14155         * config.in: Regenerate.
14157 2015-07-16  Richard Biener  <rguenther@suse.de>
14159         * fold-const.c (fold_widened_comparison): Remove.
14160         (fold_sign_changed_comparison): Likewise.
14161         (fold_comparison): Move widened and sign-changed comparison
14162         simplification ...
14163         * match.pd: ... to patterns here.
14164         * generic-match-head.c: Include target.h.
14165         * gimple-match-head.c: Likewise.
14167 2015-07-16  Richard Biener  <rguenther@suse.de>
14169         * tree-ssa-dom.c (dom_valueize): New function.
14170         (record_temporary_equivalences): Also record equivalences
14171         for dominating stmts that have uses of equivalences we are
14172         about to record.
14174 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
14176         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
14177         add_autoinc_candidates.
14178         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
14179         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
14180         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
14181         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
14182         Call new function.
14183         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
14184         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
14185         Remove parameter struct iv*.  Call add_autoinc_candidates here.
14186         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
14187         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
14188         Call new function.
14189         (find_iv_candidates): Call new functions.
14191 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
14193         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
14194         uninitialized-variable warning.
14196 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14198         PR target/65249
14199         * config/sh/sh.md (movdi): Split simple reg move to two movsi
14200         when the destination is R0.
14202 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
14204         PR target/66866
14205         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
14206         * config/i386/i386.c (ix86_expand_pextr): New function.
14207         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
14208         for non-lowpart subregs.
14209         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
14210         (insv<mode>): Use SWI248 mode iterator.
14211         (insv<mode>_1): Ditto.
14213 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
14214             Sebastian Pop  <s.pop@samsung.com>
14216         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
14217         iterator to use_stmt.
14219 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
14220             Sebastian Pop <s.pop@samsung.com>
14222         * graphite-scop-detection.c (build_scops_1): Discard scops for
14223         which entry==exit.
14225 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
14226             Sebastian Pop <s.pop@samsung.com>
14228         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
14229         case of a return statement in scop.
14231 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
14232             Sebastian Pop <s.pop@samsung.com>
14234         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
14235         INTEGER_TYPE parameters.
14236         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
14237         VECTOR_CST in scan_tree_for_params.
14238         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
14240 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
14242         * gimple-pretty-print.h: Don't include pretty-print.h.
14243         * tree-streamer.h: Don't include lto-streamer.h.
14244         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
14245         * gimple-streamer-in.c: Remove redundant includes.
14246         * gimple-streamer-out.c: Likewise.
14247         * ipa-devirt.c: Likewise.
14248         * ipa-icf.c: Likewise.
14249         * ipa-inline-analysis.c: Likewise.
14250         * ipa-polymorphic-call.c: Likewise.
14251         * ipa-profile.c: Likewise.
14252         * ipa-prop.c: Likewise.
14253         * ipa-pure-const.c: Likewise.
14254         * lto-cgraph.c: Likewise.
14255         * lto-streamer-in.c: Likewise.
14256         * lto-streamer-out.c: Likewise.
14257         * lto-streamer.c: Likewise.
14258         * tree-streamer-in.c: Likewise.
14259         * tree-streamer-out.c: Likewise.
14260         * tree-streamer.c: Likewise.
14262 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
14264         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
14265         include input.h.
14266         * opts.c: Remove multiline #include comment.
14268 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
14270         * config/nvptx/mkoffload.c (process): Add C++ protection to
14271         emitted code.
14273 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14275         PR target/66854
14276         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
14277         null before IEEE 128-bit floating point support patch.
14279 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14281         * simplify-rtx.c (simplify_ternary_operation): Add simplification
14282         for (!c) != {0,...,0} ? a : b for vector modes.
14284 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
14285             Martin Jambor  <mjambor@suse.cz>
14287         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
14288         struct func_body_info* instead of struct ipa_node_params*, expecting
14289         fbi->info to be filled in.  Replace throughout.  Adjust call to
14290         ipa_load_from_parm_agg.
14291         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
14292         instead of struct ipa_node_params*.  Adjust calls to other functions
14293         so that they pass either fbi or fbi->info.
14294         (set_switch_stmt_execution_predicate): Likewise.
14295         (will_be_nonconstant_predicate): Likewise.
14296         (compute_bb_predicates): Likewise.
14297         (estimate_function_body_sizes): Move asserts earlier.  Fill in
14298         struct func_body_info, replace parms_info with fbi.info.  Adjust
14299         calls to functions that now accept struct func_body_info.
14300         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
14301         (struct func_body_info): Likewise.
14302         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
14303         remove static.  Adjust callers.
14304         (ipa_load_from_parm_agg): Remove.
14305         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
14306         (func_body_info): Likewise.
14307         (ipa_load_from_parm_agg): Adjust prototype.
14309 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14311         * gensupport.c (rtx_handle_directive): Adjust.
14312         * read-rtl.c (apply_iterators): Take vector to add rtxs to
14313         instead of expr list rtx.
14314         (add_define_attr_for_define_subst): Likewise.
14315         (add_define_subst_attr): Likewise.
14316         (read_subst_mapping): Likewise.
14317         (read_rtx): Likewise.
14318         * rtl.h (read_rtx): Adjust.
14320 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14322         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
14324 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
14326         PR target/58066
14327         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
14328         (*tls_local_dynamic_base_64_<mode>): Ditto.
14329         (*tls_local_dynamic_base_64_largepic): Ditto.
14330         (tls_global_dynamic_64_<mode>): Update expander pattern.
14331         (tls_local_dynamic_base_64_<mode>): Ditto.
14333 2015-07-15  Richard Biener  <rguenther@suse.de>
14335         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
14336         and bool_var == 1 -> bool_var simplifications ...
14337         * match.pd: ... to patterns here.  Factor out negate_expr_p
14338         cases from the A - B -> A + (-B) patterns as negate_expr_p
14339         predicate and add a -(A + B) -> (-B) - A pattern.
14341 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
14343         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
14345 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
14346             Robert Suchanek  <robert.suchanek@imgtec.com>
14348         * config/mips/mips.c (mips_int_mask): New enum.
14349         (mips_shadow_set): Likewise.
14350         (int_mask): New variable.
14351         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
14352         (machine_function): Add int_mask and use_shadow_register_set.
14353         (mips_attribute_table): Add attribute handlers for interrupt and
14354         use_shadow_register_set.
14355         (mips_interrupt_mask): New static function.
14356         (mips_handle_interrupt_attr): Likewise.
14357         (mips_handle_use_shadow_register_set_attr): Likewise.
14358         (mips_use_shadow_register_set): Change return type to enum
14359         mips_shadow_set.  Add argument handling for use_shadow_register_set
14360         attribute.
14361         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
14362         compare with mips_shadow_set enum.
14363         (mips_compute_frame_info): Add interrupt mask and
14364         use_shadow_register_set to per-function information structure.
14365         Add a stack slot for EPC unconditionally.
14366         (mips_expand_prologue): Compare use_shadow_register_set value
14367         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
14368         masked interrupt register but in EIC mode use K0 and save Cause in K0.
14369         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
14370         copying the stack pointer from the shadow register set.
14371         * config/mips/mips.h (SR_IM0): New define.
14372         * config/mips/mips.md (mips_rdpgpr): Rename to...
14373         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
14374         * doc/extend.texi (Declaring Attributes of Functions): Document
14375         optional arguments for interrupt and use_shadow_register_set
14376         attributes.
14378 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
14380         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
14381         interrupt attribute.
14382         (mips_expand_prologue): Disable the floating point unit in an ISR.
14383         * config/mips/mips.h (SR_COP1): New define.
14385 2015-07-15  Richard Biener  <rguenther@suse.de>
14387         * genmatch.c (parser::peek, parser::peek_ident): Add argument
14388         to tell how many tokens to peek ahead (default 1).
14389         (parser::eat_token, parser::eat_ident): Return token consumed.
14390         (parser::parse_result): Parse new switch statement.
14391         * match.pd: Use case statements where appropriate.
14393 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
14395         PR rtl-optimization/58066
14396         * calls.c (expand_call): Precompute register parameters before stack
14397         alignment is performed.
14399 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
14401         PR rtl-optimization/66838
14402         * postreload.c (reload_cse_move2add): Also process
14403         CALL_INSN_FUNCTION_USAGE when resetting information of
14404         call-clobbered registers.
14406 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14407             Cesar Philippidis  <cesar@codesourcery.com>
14408             Chung-Lin Tang  <cltang@codesourcery.com>
14410         * config/nios2/constraints.md (U, v): New constraints.
14411         * config/nios2/predicates.md (rdprs_dcache_operand): New.
14412         (ldstex_memory_operand): New.
14413         * config/nios2/sync.md: New file.
14414         * config/nios2/nios2.md (unspecv): Add new builtin function
14415         UNSPECV codes.
14416         (rdprs, flushd, flushda, wrpie, eni): New patterns.
14417         (top-level): Include sync.md.
14418         * config/nios2/nios2.c (N2_FTYPES): Add function types for
14419         new builtins.
14420         (N2_BUILTINS): Add arch field setting, add new builtins.
14421         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
14422         for arch field.
14423         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
14424         Also handle ldex/stex/ldsex/stsex builtins.
14425         (nios2_expand_rdprs_builtin): New function.
14426         (nios2_expand_cache_builtin): New function.
14427         (nios2_expand_wrpie_builtin): New function.
14428         (nios2_expand_eni_builtin): New function.
14429         (nios2_expand_builtin): Add arch field handling and new builtin
14430         cases.
14431         * doc/extend.texi (Altera Nios II Built-in Functions): Document
14432         new builtins.
14433         * doc/md.texi (Machine Constraints): Document U and v constraints.
14435 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14436             Cesar Philippidis  <cesar@codesourcery.com>
14437             Chung-Lin Tang  <cltang@codesourcery.com>
14439         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
14440         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
14441         callee_save_reg_size and uses_anonymous_args fields.
14442         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
14443         (nios2_create_cfa_notes): New function.
14444         (nios2_adjust_stack): New function for adjusting stack.
14445         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
14446         Use nios2_adjust_stack.
14447         (nios2_expand_epilogue): Likewise.
14448         (nios2_expand_return): New function.
14449         (nios2_can_use_return_insn): Update for CDX pop.n usage.
14450         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
14451         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
14452         * config/nios2/nios2.md (return): Use nios2_expand_return.
14454 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14455             Cesar Philippidis  <cesar@codesourcery.com>
14456             Chung-Lin Tang  <cltang@codesourcery.com>
14458         * config/nios2/predicates.md (pop_operation): New.
14459         (ldwm_operation, stwm_operation): New.
14460         (nios2_hard_register_operand): New.
14461         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
14462         (ldstwm_operation_p): Declare.
14463         (gen_ldstwm_peep): Declare.
14464         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
14465         (base_reg_adjustment_p): New.
14466         (pop_operation_p): New.
14467         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
14468         (nios2_ldstwm_regset_p): New.
14469         (ldstwm_operation_p): New.
14470         (gen_ldst): New.
14471         (nios2_ldst_parallel): New.
14472         (struct ldswm_operand): Declare.
14473         (compare_ldstwm_operands): New.
14474         (can_use_cdx_ldstw): New.
14475         (gen_ldstwm_peep): New.
14476         * config/nios2/nios2-ldstwm.sml: New.
14477         * config/nios2/nios2.md: Include ldstwm.md.
14478         * config/nios2/ldstwm.md: Generated.
14480 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14481             Cesar Philippidis  <cesar@codesourcery.com>
14482             Chung-Lin Tang  <cltang@codesourcery.com>
14484         * config/nios2/nios2.h (LABEL_ALIGN): Define.
14485         (REG_ALLOC_ORDER): Define.
14486         (ADJUST_REG_ALLOC_ORDER): Define.
14487         (HONOR_REG_ALLOC_ORDER): Define.
14488         (CDX_REG_P): Define.
14489         (ANDCLEAR_INT): Define.
14490         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
14491         (nios2_label_align): Declare.
14492         (nios2_cdx_narrow_form_p): Declare.
14493         (nios2_adjust_reg_alloc_order): Declare.
14494         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
14495         operation.
14496         (nios2_large_unspec_reloc_p): New function, split from...
14497         (nios2_legitimate_pic_operand_p): ...here.
14498         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
14499         (nios2_print_operand_punct_valid_p): New.
14500         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
14501         (split_mem_address): New.
14502         (split_alu_insn): New.
14503         (cdxreg): New.
14504         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
14505         (enum nios2_add_insn_kind): New.
14506         (nios2_add_insn_names, nios2_add_insn_narrow): New.
14507         (nios2_add_insn_classify): New.
14508         (nios2_add_insn_asm): New.
14509         (nios2_cdx_narrow_form_p): New.
14510         (label_align, min_labelno, max_labelno): New.
14511         (nios2_reorg): New.
14512         (nios2_label_align): New.
14513         (nios2_adjust_reg_alloc_order): New.
14514         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14515         (TARGET_MACHINE_DEPENDENT_REORG): Define.
14516         * config/nios2/constraints.md (P): New constraint.
14517         * config/nios2/predicates.md (const_and_operand): New.
14518         (and_operand): New.
14519         (stack_memory_operand): New.
14520         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14521         (length): Update to use nios2_cdx_narrow_form_p().
14522         (type): Add new insn type values.
14523         (control, alu, st, ld, shift): Update insn reservations with
14524         new insn type values.
14525         (*high, *lo_sum): Define new insn patterns for constant generation.
14526         (movqi_internal, movhi_internal, movsi_internal): Reduce
14527         alternatives, update asm template to handle CDX variants, update
14528         type attributes.
14529         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14530         template, update type attributes.
14531         (extendhisi2, extendqi<mode>2): Likewise.
14532         (addsi3): Change to use function for asm string.
14533         (subsi3): Add CDX notation to asm template, update type attributes.
14534         (negsi3, one_cmplsi3): Likewise.
14535         (andsi3): New pattern, specialized from logical patterns.
14536         (<code>si3): Remove and case, combine alternatives, update asm
14537         template.
14538         (<shift_op>si3): Add CDX notation, update type attributes.
14539         (rotrsi3): Update type attribute.
14540         (*merge, extzv, insv): New insn patterns.
14541         (return): Change to define_expand.
14542         (simple_return): Add CDX notation, update type attributes.
14543         (indirect_jump): Add CDX notation.
14544         (jump): Update asm cases, update length attribute expression.
14545         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14546         (nios2_cbranch): Update asm cases and length attribute expression
14547         to handle CDX variants.
14548         (nios2_cmp<code>): Update asm template.
14549         (nop): Add CDX notation, update type attributes.
14550         (trap): Add CDX notation.
14551         (ctrapsi4): Update asm cases and length attribute expression to
14552         handle CDX variant.
14553         * doc/md.texi (Machine Constraints): Document P constraint.
14555 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14556             Cesar Philippidis  <cesar@codesourcery.com>
14557             Chung-Lin Tang  <cltang@codesourcery.com>
14559         * config/nios2/nios2.h (SMALL_INT12): New macro.
14560         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14561         (nios2_valid_addr_expr_p): Use it.
14562         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14563         with implicit "io" instructions on R2.
14564         * config/nios2/constraints.md (w): New constraint.
14565         * config/nios2/predicates.md (ldstio_memory_operand): New.
14566         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14567         operand predicate and constraint.
14568         (ld<bh>io_signed, st<bhw>io>): Likewise.
14569         * doc/md.texi (Machine Constraints): Document w constraint.
14571 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14572             Cesar Philippidis  <cesar@codesourcery.com>
14573             Chung-Lin Tang  <cltang@codesourcery.com>
14575         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14576         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14577         Nios II architecture level.
14578         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14579         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14580         (OPTION_DEFAULT_SPECS): Define.
14581         (ASM_SPEC): Add -march= spec strings.
14582         * config/nios2/nios2.c (nios2_option_override): Check for
14583         conflicts involving new options.
14584         * config.gcc (nios2*-*-*): Support --with-arch=.
14585         * doc/invoke.texi (Option Summary, Nios II Options): Document
14586         -march=, -mbmx, and -mcdx.
14588 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
14590         PR rtl-optimization/66626
14591         * lra-constraints.c (lra_constraints): Prevent equivalence
14592         substitution for static chain pseudo in functions with nonlocal
14593         goto.
14595 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
14597         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14598         (nios2_emit_stack_limit_check): Add size parameter.  Handle
14599         -fstack-limit-symbol as well as -fstack-limit-register.
14600         (nios2_expand_prologue): Emit only a single stack limit check,
14601         even if multiple stack adjustments are required.
14602         (nios2_option_override): Diagnose unsupported combination of -fpic
14603         and -stack-limit-symbol.
14605 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
14607         * Makefile.in (top_srcdir): New.
14608         * configure.ac: Use AM_ZLIB.
14609         * configure: Regeneated.
14611 2015-07-14  Matthias Klose  <doko@ubuntu.com>
14613         PR target/66840
14614         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14616 2015-07-14  Richard Biener  <rguenther@suse.de>
14618         PR tree-optimization/66863
14619         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14620         what we record for conversion use stmt lhs inequalities.
14622 2015-07-14  Richard Biener  <rguenther@suse.de>
14624         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14625         (decision_tree::gen_gimple): Likewise.
14627 2015-07-14  Tom de Vries  <tom@codesourcery.com>
14629         * gcc.c (greater_than_spec_func): Declare forward.
14630         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14631         -ftree-parallelize-loops={0,1}.
14632         (static_spec_functions): Add greater_than_spec_func function with name
14633         "gt".
14634         (greater_than_spec_func): New function.
14636 2015-07-14  Richard Biener  <rguenther@suse.de>
14638         * tree-ssa-dom.c (record_temporary_equivalences): Merge
14639         wideing type conversion case from record_equivalences_from_incoming_edge
14640         and use record_equality to record equivalences.
14641         (record_equivalences_from_incoming_edge): Call
14642         record_temporary_equivalences.
14644 2015-07-14  Richard Biener  <rguenther@suse.de>
14646         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14647         (struct if_expr): New.
14648         (struct with_expr): Likewise.
14649         (is_a_helper): Add helpers for if_expr and with_expr.
14650         (struct simplify): Add simplify_kind enum and member.  Remove
14651         ifexpr_vec member.
14652         (simplify::simplify): Adjust.
14653         (lower_commutative): Adjust.
14654         (lower_opt_convert): Likewise.
14655         (lower_cond): Likewise.
14656         (replace_id): Handle with_expr and if_expr.
14657         (lower_for): Adjust.
14658         (dt_simplify::gen_1): New recursive worker, split out from ...
14659         (dt_simplify::gen): ... here.  Deal with if and with expansion
14660         recursively.
14661         (capture_info::capture_info): Take context argument
14662         (capture_info::walk_result): Only analyze specific result.
14663         (parser::parse_result): New function.
14664         (parser::parse_simplify): Adjust to parse ifs with then end
14665         else case.
14666         (parser::parse_if): Simplify.
14667         (parser::parse_pattern): Pass down simplify kind.
14668         * match.pd: Convert if structure to new syntax.
14670 2015-07-13  Marek Polacek  <polacek@redhat.com>
14672         * rtl.c (rtx_equal_p_cb): Fix typo.
14674 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
14676         * omega.h: Don't include config.h, don't include params.h again if
14677         omega.h has already been included.
14678         * graphite-poly.h: Include sese.h.
14679         * graphite.c: Don't include sese.h, remove needless includes and
14680         minimize includes outside #ifdef HAVE_isl block.
14681         * graphite-blocking.c: Don't include sese.h, remove needless includes,
14682         and wrap entire file in #ifdef HAVE_isl
14683         * graphite-dependences.c: Likewise.
14684         * graphite-interchange.c: Likewise.
14685         * graphite-isl-ast-to-gimple.c: Likewise.
14686         * graphite-optimize-isl.c: Likewise.
14687         * graphite-poly.c: Likewise.
14688         * graphite-scop-detection.c: Likewise.
14689         * graphite-sese-to-poly.c: Likewise.
14691 2015-07-13  Tom de Vries  <tom@codesourcery.com>
14693         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14695 2015-07-13  Renlin Li  <renlin.li@arm.com>
14697         PR rtl/66556
14698         * simplify-rtx.c (simplify_const_relational_operation): Add
14699         side_effects_p checks.
14701 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
14703         * bitmap.h: Fix double word typos.
14704         * builtins.c: Same.
14705         * calls.c: Same.
14706         * cfgloopmanip.c: Same.
14707         * cgraph.c: Same.
14708         * cgraph.h: Same.
14709         * cgraphclones.c: Same.
14710         * combine.c: Same.
14711         * config/aarch64/aarch64-protos.h: Same.
14712         * config/aarch64/aarch64.c: Same.
14713         * config/aarch64/aarch64.md: Same.
14714         * config/arm/arm.md: Same.
14715         * config/arm/arm1020e.md: Same.
14716         * config/arm/arm1026ejs.md: Same.
14717         * config/arm/arm926ejs.md: Same.
14718         * config/arm/fa526.md: Same.
14719         * config/arm/fa606te.md: Same.
14720         * config/arm/fa626te.md: Same.
14721         * config/arm/fa726te.md: Same.
14722         * config/arm/fmp626.md: Same.
14723         * config/darwin.c: Same.
14724         * config/epiphany/epiphany.c: Same.
14725         * config/frv/frv.c: Same.
14726         * config/ft32/ft32.c: Same.
14727         * config/gnu-user.h: Same.
14728         * config/h8300/constraints.md: Same.
14729         * config/i386/i386.c: Same.
14730         * config/i386/i386.md: Same.
14731         * config/iq2000/iq2000.md: Same.
14732         * config/mips/mips.c: Same.
14733         * config/mmix/mmix.md: Same.
14734         * config/moxie/moxie.c: Same.
14735         * config/nds32/nds32.md: Same.
14736         * config/pa/pa.h: Same.
14737         * config/rs6000/aix.h: Same.
14738         * config/rs6000/rs6000.h: Same.
14739         * config/sh/sh.c: Same.
14740         * config/tilegx/tilegx.md: Same.
14741         * config/tilepro/gen-mul-tables.cc: Same.
14742         * cse.c: Same.
14743         * dbxout.c: Same.
14744         * doc/invoke.texi: Same.
14745         * dse.c: Same.
14746         * dwarf2out.c: Same.
14747         * final.c: Same.
14748         * gcc.c: Same.
14749         * genmatch.c: Same.
14750         * gimplify.c: Same.
14751         * hash-table.h: Same.
14752         * internal-fn.c: Same.
14753         * ipa-cp.c: Same.
14754         * ipa-devirt.c: Same.
14755         * ipa-icf.c: Same.
14756         * ipa-icf.h: Same.
14757         * ipa-profile.c: Same.
14758         * ipa-prop.c: Same.
14759         * ipa-prop.h: Same.
14760         * ira.c: Same.
14761         * omp-low.c: Same.
14762         * reg-stack.c: Same.
14763         * regcprop.c: Same.
14764         * reorg.c: Same.
14765         * rtl.h: Same.
14766         * sbitmap.h: Same.
14767         * tree-eh.c: Same.
14768         * tree-inline.c: Same.
14769         * tree-sra.c: Same.
14770         * tree-ssa-dom.c: Same.
14771         * tree-ssa-loop-ivopts.c: Same.
14772         * tree-ssa-structalias.c: Same.
14773         * tree-ssa-tail-merge.c: Same.
14774         * tree-ssa-ter.c: Same.
14775         * tree-ssa-threadupdate.c: Same.
14776         * tree-ssa-uninit.c: Same.
14777         * tree-ssanames.c: Same.
14778         * tree-vect-loop-manip.c: Same.
14779         * tree-vrp.c: Same.
14780         * tree.c: Same.
14781         * valtrack.c: Same.
14782         * vec.h: Same.
14784 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14786         PR middle-end/66726
14787         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
14788         tree_ssa_phiopt_worker): Call it.
14790 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14792         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
14793         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
14794         REG_EQUAL note.
14796 2015-07-11  Marek Polacek  <polacek@redhat.com>
14798         PR middle-end/66353
14799         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
14800         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
14801         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
14802         rather than bb_has_abnormal_call_pred.
14803         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
14804         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
14805         rather than bb_has_abnormal_call_pred.
14807 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
14809         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14810         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
14811         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14812         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
14813         v850_legitimate_address_p): New functions.
14814         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14816 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
14818         PR target/66819
14819         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
14820         indirect sibcall with register arguments if register available
14821         for argument passing.
14822         (init_cumulative_args): Set cfun->machine->arg_reg_available
14823         to (cum->nregs > 0) or to true if function has a variable
14824         argument list.
14825         (function_arg_advance_32): Set cfun->machine->arg_reg_available
14826         to false if cum->nregs <= 0.
14827         * config/i386/i386.h (machine_function): Add arg_reg_available.
14829 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
14831         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
14832         and gen_higpart instead of gen_rtx_SUBREG.
14833         * config/i386/i386.md
14834         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
14835         (read-modify peephole2): Use gen_lowpart instead of
14836         gen_rtx_SUBREG for operand 5.
14838 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
14840         * config/tilepro/gen-mul-tables.cc (main): Change include list for
14841         generated files.
14842         * config/tilepro/mul-tables.c: Regenerate.
14843         * config/tilegx/mul-tables.c: Regenerate.
14845 2015-07-10  Richard Biener  <rguenther@suse.de>
14847         * fold-const.c (distribute_bit_expr): Remove.
14848         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
14849         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
14850         to A & (B | C) and simplifying A << C1 << C2 to ...
14851         * match.pd: ... patterns here.
14853 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
14855         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14856         Mark mem as READONLY and NOTRAP for PIC symbol.
14858 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
14860         * gimple-predict.h: New file.
14861         (gimple_predict_predictor, gimple_predict_set_predictor,
14862         gimple_predict_outcome, gimple_predict_set_outcome,
14863         gimple_build_predict): Relocate here.
14864         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
14865         gimple_predict_outcome, gimple_predict_set_outcome): Move to
14866         gimple-predict.h.
14867         * gimple.c (gimple_build_predict): Move to gimple-predict.h
14868         * basic-block.h: Don't include cfghooks.h.
14869         * backend.h: Don't include predict.h.
14870         * cfghooks.h: Include predict.h.
14871         * gimple-pretty-print.c: Include gimple-predict.h.
14872         * gimplify.c: Likwise.
14873         * predict.c: Adjust includes.
14874         * tree-inline.c: Likewise.
14875         * asan.c: Likewise.
14876         * auto-inc-dec.c: Likewise.
14877         * auto-profile.c: Likewise.
14878         * bb-reorder.c: Likewise.
14879         * builtins.c: Likewise.
14880         * caller-save.c: Likewise.
14881         * calls.c: Likewise.
14882         * cfganal.c: Likewise.
14883         * cfgbuild.c: Likewise.
14884         * cfg.c: Likewise.
14885         * cfgcleanup.c: Likewise.
14886         * cfgexpand.c: Likewise.
14887         * cfghooks.c: Likewise.
14888         * cfgloopanal.c: Likewise.
14889         * cfgloop.c: Likewise.
14890         * cfgloopmanip.c: Likewise.
14891         * cfgrtl.c: Likewise.
14892         * cgraph.c: Likewise.
14893         * cgraphunit.c: Likewise.
14894         * combine.c: Likewise.
14895         * cprop.c: Likewise.
14896         * cse.c: Likewise.
14897         * dce.c: Likewise.
14898         * dojump.c: Likewise.
14899         * dse.c: Likewise.
14900         * except.c: Likewise.
14901         * expmed.c: Likewise.
14902         * expr.c: Likewise.
14903         * final.c: Likewise.
14904         * fold-const.c: Likewise.
14905         * function.c: Likewise.
14906         * fwprop.c: Likewise.
14907         * gcc-plugin.h: Likewise.
14908         * gcse.c: Likewise.
14909         * genattrtab.c: Likewise.
14910         * genemit.c: Likewise.
14911         * gengtype.c: Likewise.
14912         * genopinit.c: Likewise.
14913         * genoutput.c: Likewise.
14914         * genpreds.c: Likewise.
14915         * genrecog.c: Likewise.
14916         * gimple-fold.c: Likewise.
14917         * gimple-iterator.c: Likewise.
14918         * gimple-ssa-isolate-paths.c: Likewise.
14919         * gimple-ssa-strength-reduction.c: Likewise.
14920         * graph.c: Likewise.
14921         * graphite-blocking.c: Likewise.
14922         * graphite.c: Likewise.
14923         * graphite-dependences.c: Likewise.
14924         * graphite-interchange.c: Likewise.
14925         * graphite-isl-ast-to-gimple.c: Likewise.
14926         * graphite-optimize-isl.c: Likewise.
14927         * graphite-poly.c: Likewise.
14928         * graphite-scop-detection.c: Likewise.
14929         * graphite-sese-to-poly.c: Likewise.
14930         * haifa-sched.c: Likewise.
14931         * ifcvt.c: Likewise.
14932         * internal-fn.c: Likewise.
14933         * ipa-cp.c: Likewise.
14934         * ipa-profile.c: Likewise.
14935         * ipa-split.c: Likewise.
14936         * ipa-utils.c: Likewise.
14937         * ira-build.c: Likewise.
14938         * ira-color.c: Likewise.
14939         * ira-conflicts.c: Likewise.
14940         * ira-costs.c: Likewise.
14941         * ira-emit.c: Likewise.
14942         * ira-lives.c: Likewise.
14943         * jump.c: Likewise.
14944         * loop-doloop.c: Likewise.
14945         * loop-init.c: Likewise.
14946         * loop-invariant.c: Likewise.
14947         * loop-unroll.c: Likewise.
14948         * lower-subreg.c: Likewise.
14949         * lra-assigns.c: Likewise.
14950         * lra.c: Likewise.
14951         * lra-coalesce.c: Likewise.
14952         * lra-constraints.c: Likewise.
14953         * lra-lives.c: Likewise.
14954         * lto-cgraph.c: Likewise.
14955         * lto-streamer-in.c: Likewise.
14956         * mode-switching.c: Likewise.
14957         * modulo-sched.c: Likewise.
14958         * omp-low.c: Likewise.
14959         * optabs.c: Likewise.
14960         * passes.c: Likewise.
14961         * postreload.c: Likewise.
14962         * postreload-gcse.c: Likewise.
14963         * profile.c: Likewise.
14964         * recog.c: Likewise.
14965         * regstat.c: Likewise.
14966         * reload1.c: Likewise.
14967         * reorg.c: Likewise.
14968         * rtlanal.c: Likewise.
14969         * sched-ebb.c: Likewise.
14970         * sel-sched-ir.c: Likewise.
14971         * sese.c: Likewise.
14972         * shrink-wrap.c: Likewise.
14973         * simplify-rtx.c: Likewise.
14974         * stmt.c: Likewise.
14975         * store-motion.c: Likewise.
14976         * tracer.c: Likewise.
14977         * trans-mem.c: Likewise.
14978         * tree-call-cdce.c: Likewise.
14979         * tree-cfg.c: Likewise.
14980         * tree-cfgcleanup.c: Likewise.
14981         * tree-chkp.c: Likewise.
14982         * tree-complex.c: Likewise.
14983         * tree-eh.c: Likewise.
14984         * tree-if-conv.c: Likewise.
14985         * tree-loop-distribution.c: Likewise.
14986         * tree-outof-ssa.c: Likewise.
14987         * tree-parloops.c: Likewise.
14988         * tree-predcom.c: Likewise.
14989         * tree-pretty-print.c: Likewise.
14990         * tree-profile.c: Likewise.
14991         * tree-sra.c: Likewise.
14992         * tree-ssa.c: Likewise.
14993         * tree-ssa-coalesce.c: Likewise.
14994         * tree-ssa-dce.c: Likewise.
14995         * tree-ssa-dom.c: Likewise.
14996         * tree-ssa-forwprop.c: Likewise.
14997         * tree-ssa-ifcombine.c: Likewise.
14998         * tree-ssa-loop-ch.c: Likewise.
14999         * tree-ssa-loop-im.c: Likewise.
15000         * tree-ssa-loop-ivcanon.c: Likewise.
15001         * tree-ssa-loop-ivopts.c: Likewise.
15002         * tree-ssa-loop-manip.c: Likewise.
15003         * tree-ssa-loop-prefetch.c: Likewise.
15004         * tree-ssa-loop-unswitch.c: Likewise.
15005         * tree-ssa-math-opts.c: Likewise.
15006         * tree-ssa-phiopt.c: Likewise.
15007         * tree-ssa-pre.c: Likewise.
15008         * tree-ssa-reassoc.c: Likewise.
15009         * tree-ssa-sink.c: Likewise.
15010         * tree-ssa-tail-merge.c: Likewise.
15011         * tree-ssa-threadedge.c: Likewise.
15012         * tree-ssa-threadupdate.c: Likewise.
15013         * tree-switch-conversion.c: Likewise.
15014         * tree-tailcall.c: Likewise.
15015         * tree-vect-data-refs.c: Likewise.
15016         * tree-vect-loop.c: Likewise.
15017         * tree-vect-loop-manip.c: Likewise.
15018         * tree-vectorizer.c: Likewise.
15019         * tree-vrp.c: Likewise.
15020         * ubsan.c: Likewise.
15021         * value-prof.c: Likewise.
15022         * varasm.c: Likewise.
15023         * var-tracking.c: Likewise.
15024         * config/aarch64/aarch64-builtins.c: Likewise.
15025         * config/aarch64/aarch64.c: Likewise.
15026         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15027         * config/alpha/alpha.c: Likewise.
15028         * config/arc/arc.c: Likewise.
15029         * config/arm/arm.c: Likewise.
15030         * config/avr/avr.c: Likewise.
15031         * config/bfin/bfin.c: Likewise.
15032         * config/c6x/c6x.c: Likewise.
15033         * config/cr16/cr16.c: Likewise.
15034         * config/cris/cris.c: Likewise.
15035         * config/darwin.c: Likewise.
15036         * config/darwin-c.c: Likewise.
15037         * config/epiphany/epiphany.c: Likewise.
15038         * config/epiphany/mode-switch-use.c: Likewise.
15039         * config/epiphany/resolve-sw-modes.c: Likewise.
15040         * config/fr30/fr30.c: Likewise.
15041         * config/frv/frv.c: Likewise.
15042         * config/ft32/ft32.c: Likewise.
15043         * config/h8300/h8300.c: Likewise.
15044         * config/i386/i386.c: Likewise.
15045         * config/i386/winnt.c: Likewise.
15046         * config/ia64/ia64.c: Likewise.
15047         * config/iq2000/iq2000.c: Likewise.
15048         * config/lm32/lm32.c: Likewise.
15049         * config/m32c/m32c.c: Likewise.
15050         * config/m32r/m32r.c: Likewise.
15051         * config/m68k/m68k.c: Likewise.
15052         * config/mcore/mcore.c: Likewise.
15053         * config/mep/mep.c: Likewise.
15054         * config/microblaze/microblaze.c: Likewise.
15055         * config/mips/mips.c: Likewise.
15056         * config/mmix/mmix.c: Likewise.
15057         * config/mn10300/mn10300.c: Likewise.
15058         * config/moxie/moxie.c: Likewise.
15059         * config/msp430/msp430.c: Likewise.
15060         * config/nds32/nds32.c: Likewise.
15061         * config/nds32/nds32-cost.c: Likewise.
15062         * config/nds32/nds32-fp-as-gp.c: Likewise.
15063         * config/nds32/nds32-intrinsic.c: Likewise.
15064         * config/nds32/nds32-isr.c: Likewise.
15065         * config/nds32/nds32-md-auxiliary.c: Likewise.
15066         * config/nds32/nds32-memory-manipulation.c: Likewise.
15067         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15068         * config/nds32/nds32-predicates.c: Likewise.
15069         * config/nios2/nios2.c: Likewise.
15070         * config/nvptx/nvptx.c: Likewise.
15071         * config/pa/pa.c: Likewise.
15072         * config/pdp11/pdp11.c: Likewise.
15073         * config/rl78/rl78.c: Likewise.
15074         * config/rs6000/rs6000.c: Likewise.
15075         * config/rx/rx.c: Likewise.
15076         * config/s390/s390.c: Likewise.
15077         * config/sh/sh.c: Likewise.
15078         * config/sh/sh-mem.cc: Likewise.
15079         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15080         * config/sh/sh_treg_combine.cc: Likewise.
15081         * config/sparc/sparc.c: Likewise.
15082         * config/spu/spu.c: Likewise.
15083         * config/stormy16/stormy16.c: Likewise.
15084         * config/tilegx/tilegx.c: Likewise.
15085         * config/tilepro/tilepro.c: Likewise.
15086         * config/v850/v850.c: Likewise.
15087         * config/vax/vax.c: Likewise.
15088         * config/visium/visium.c: Likewise.
15089         * config/xtensa/xtensa.c: Likewise.
15091 2015-07-10  Richard Biener  <rguenther@suse.de>
15093         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
15094         (decision_tree::gen_gimple): Likewise.
15095         (decision_tree::gen_generic): Likewise.
15097 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
15099         PR target/66813
15100         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
15101         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
15103 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
15105         PR middle-end/66820
15106         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
15107         or ORT_TASK contexts.
15108         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
15109         is non-zero.
15111 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15113         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
15114         above function.
15116 2015-07-10  Tom de Vries  <tom@codesourcery.com>
15118         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
15119         insert nit + 1 bound.
15121 2015-07-10  Richard Biener  <rguenther@suse.de>
15123         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
15124         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15125         (if_convertible_loop_p_1): For this always compute bb predicates.
15126         (if_convertible_loop_p): And free them.
15128 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15130         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
15131         in dump message.
15133 2015-07-10  Richard Biener  <rguenther@suse.de>
15135         PR tree-optimization/66823
15136         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
15137         inverted predicate.
15139 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
15141         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
15142         to handle mips[32|64]r3 and mips[32|64]r5.
15144 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
15146         PR middle-end/66633
15147         * tree-nested.c (get_static_chain): Or in a flag into
15148         info->static_chain_added.
15149         (get_frame_field, get_nonlocal_debug_decl): Likewise.
15150         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
15151         2015-07-01 changes.
15152         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
15153         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
15154         add it to clauses.
15156         PR tree-optimization/66718
15157         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
15158         field.
15159         (vect_simd_lane_linear): New function.
15160         (vectorizable_simd_clone_call): Support using linear arguments for
15161         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
15163 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15165         PR target/66821
15166         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
15168 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
15170         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
15171         Use machine mode, not enum machine_mode in the prototype.
15173         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
15174         classify 128-bit floating point support.
15175         (FLOAT128_IBM_P): Likewise.
15176         (FLOAT128_VECTOR_P): Likewise.
15177         (FLOAT128_2REG_P): Likewise.
15178         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
15179         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
15180         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15181         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
15183         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
15184         tests against TFmode/TDmode, since those modes do not use VSX
15185         addresses.
15186         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
15187         support.
15188         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
15189         tests against TFmode, etc.
15190         (invalid_e500_subreg): Add tests against IFmode/KFmode.
15191         (reg_offset_addressing_ok_p): Likewise.
15192         (rs6000_legitimate_offset_address_p): Likewise.
15193         (rs6000_legitimize_address): Likewise.
15194         (rs6000_legitimize_reload_address): Likewise.
15195         (rs6000_legitimate_address_p): Clean up tests against TFmode and
15196         TDmode to use the new helper macros, which will include IFmode and
15197         KFmode.
15198         (rs6000_emit_move): Likewise.
15199         (rs6000_darwin64_record_arg_recurse): Likewise.
15200         (print_operand): Likewise.
15201         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
15202         that uses a single vector register as a vector and not as a
15203         floating point register in terms of the calling sequence.
15204         (rs6000_discover_homogeneous_aggregate): Likewise.
15205         (rs6000_return_in_memory): Likewise.
15206         (init_cumulative_args): Likewise.
15207         (rs6000_function_arg_boundary): Likewise.
15208         (rs6000_function_arg_advance_1): Likewise.
15209         (rs6000_function_arg): Likewise.
15210         (rs6000_pass_by_reference): Likewise.
15211         (rs6000_gimplify_va_arg): Likewise.
15212         (rs6000_secondary_reload_memory): Use machine_mode not enum
15213         machine mode.
15214         (rs6000_split_multireg_move): Use new helper macros.
15215         (spe_func_has_64bit_regs_p): Likewise.
15216         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
15217         (output_toc): Use new helper macros.
15218         (rs6000_register_move_cost): Likewise.
15219         (rs6000_function_value): Add IEEE 128-bit floating point calling
15220         sequence support.
15221         (rs6000_libcall_value): Likewise.
15222         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
15223         floating point support.
15224         (rs6000_vector_mode_supported_p): Likewise.
15226 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
15228         PR rtl-optimization/66782
15229         * lra-int.h (struct lra_insn_recog_data): Add comment about
15230         clobbered hard regs for arg_hard_regs.
15231         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
15232         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
15233         Add condition for processing used hard regs.
15234         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
15235         Process clobbered hard regs.
15237 2015-07-09  Michael Matz  <matz@suse.de>
15239         * genmatch.c (fprintf_indent): New function.
15240         (operand::gen_transform): Add indent parameter.
15241         (expr::gen_transform, c_expr::gen_transform,
15242         capture::gen_transform): Ditto and use fprintf_indent.
15243         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
15244         (dt_operand::gen, dt_operand::gen_predicate,
15245         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
15246         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
15247         (decision_tree::gen_gimple): Adjust calls and indent generated
15248         code.
15249         (decision_tree::gen_generic): Ditto.
15250         (write_predicate): Ditto.
15252 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
15254         PR target/66814
15255         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
15256         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
15257         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
15258         {GENERAL,SSE,MMX}_REG_P where appropriate.
15260 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
15262         * lto-streamer.h: Don't include target.h and alloc-pool.h.
15263         * builtins.c: Adjust includes.
15264         * gimple.c: Likewise.
15265         * ipa-icf.c: Likewise.
15266         * lto-opts.c: Likewise.
15267         * ipa-reference.c: Likewise.
15268         * lto-section-out.c: Likewise.
15269         * lto-streamer-in.c: Likewise.
15270         * lto-streamer-out.c: Likewise.
15271         * opts-global.c: Likewise.
15272         * symtab.c: Likewise.
15273         * tree-chkp.c: Likewise.
15274         * tree-ssa-live.c: Likewise.
15275         * tree-streamer-in.c: Likewise.
15276         * tree-streamer-out.c: Likewise.
15277         * config/darwin.c: Likewise.
15278         * config/i386/winnt.c: Likewise.
15280 2015-07-09  Richard Biener  <rguenther@suse.de>
15282         * genmatch.c (struct expr): Add force_single_use flag.
15283         (expr::expr): Add copy constructor.
15284         (capture_info::walk_match): Gather force_single_use captures.
15285         (expr::gen_transform): Use possibly NULLified sequence.
15286         (dt_simplify::gen): Apply single-use restrictions by NULLifying
15287         seq if any constrained expr is not single-use.
15288         (parser::parse_expr): Refactor to allow multiple flags.  Handle
15289         's' flag to force an expression have a single-use if the pattern
15290         simplifies to more than one statement.
15291         * match.pd: Convert most single_use conditionals to :s flags.
15293 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15295         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
15296         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15297         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
15299 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
15301         * flags.h: Don't include flag-types.h or options.h.
15302         * opts-common.c: Adjust includes.
15303         * opts-global.c: Likewise.
15304         * common/config/epiphany/epiphany-common.c: Likewise.
15306 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15308         PR target/66818
15309         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
15310         for IA MCU.
15312 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15314         PR target/66817
15315         * config/i386/i386.c (ix86_return_in_memory): Return true
15316         if int_size_in_bytes returns negative for IA MCU.
15318 2015-07-09  Marek Polacek  <polacek@redhat.com>
15320         PR tree-optimization/66718
15321         * Makefile.in (OBJS): Add gimple-laddress.o.
15322         * passes.def: Schedule pass_laddress.
15323         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
15324         * tree-pass.h (make_pass_laddress): Declare.
15325         * gimple-laddress.c: New file.
15327 2015-07-09  Richard Biener  <rguenther@suse.de>
15329         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
15331 2015-07-09  Richard Biener  <rguenther@suse.de>
15333         PR tree-optimization/66807
15334         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
15336 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
15338         * function.c (stack_protect_epilogue): Use if rather than switch for
15339         check targetm.have_stack_protect_test.
15341 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15343         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
15344         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
15345         * config/arc/arc.h: Likewise.
15346         * config/arm/arm.h: Likewise.
15347         * config/bfin/bfin.h: Likewise.
15348         * config/epiphany/epiphany.h: Likewise.
15349         * config/frv/frv.h: Likewise.
15350         * config/ia64/ia64.h: Likewise.
15351         * config/iq2000/iq2000.h: Likewise.
15352         * config/lm32/lm32.h: Likewise.
15353         * config/m32r/m32r.h: Likewise.
15354         * config/mcore/mcore.h: Likewise.
15355         * config/mep/mep.h: Likewise.
15356         * config/microblaze/microblaze.h: Likewise.
15357         * config/mips/mips.h: Likewise.
15358         * config/mmix/mmix.h: Likewise.
15359         * config/mn10300/mn10300.h: Likewise.
15360         * config/nds32/nds32.h: Likewise.
15361         * config/nios2/nios2.h: Likewise.
15362         * config/pa/pa.h: Likewise.
15363         * config/rl78/rl78.h: Likewise.
15364         * config/sh/sh.h: Likewise.
15365         * config/sparc/sparc.h: Likewise.
15366         * config/stormy16/stormy16.h: Likewise.
15367         * config/tilegx/tilegx.h: Likewise.
15368         * config/tilepro/tilepro.h: Likewise.
15369         * config/v850/v850.h: Likewise.
15370         * config/xtensa/xtensa.h: Likewise.
15371         * doc/tm.texi: Regenerate.
15372         * doc/tm.texi.in: Adjust.
15373         * combine.c (simplify_set): Likewise.
15374         (simplify_comparison): Likewise.
15375         * expr.c (store_constructor): Likewise.
15376         * internal-fn.c (expand_arith_overflow): Likewise.
15377         * reload.c (push_reload): Likewise.
15378         (find_reloads): Likewise.
15379         (find_reloads_subreg_address): Likewise.
15380         * reload1.c (eliminate_regs_1): Likewise.
15381         * rtlanal.c (nonzero_bits1): Likewise.
15382         (num_sign_bit_copies1): Likewise.
15383         * simplify-rtx.c (simplify_truncation): Likewise.
15385 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15387         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
15388         of AUTO_INC_DEC with the preprocessor.
15389         * combine.c (combine_instructions): Likewise.
15390         (can_combine_p): Likewise.
15391         (try_combine): Likewise.
15392         * emit-rtl.c (try_split): Likewise.
15393         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15394         * lower-subreg.c (resolve_simple_move): Likewise.
15395         * lra.c (update_inc_notes): Likewise.
15396         * recog.c (asm_operand_ok): Likewise.
15397         (constrain_operands): Likewise.
15398         * regrename.c (scan_rtx_address): Likewise.
15399         * reload.c (update_auto_inc_notes): Likewise.
15400         (reg_inc_found_and_valid_p): Likewise.
15401         * reload1.c (reload): Likewise.
15402         (emit_input_reload_insns): Likewise.
15403         (delete_output_reload): Likewise.
15404         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15405         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15407 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15409         * rtl.h: Always define AUTO_INC_DEC.
15410         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
15411         * combine.c (combine_instructions): Likewise.
15412         (can_combine_p): Likewise.
15413         (try_combine): Likewise.
15414         * emit-rtl.c (try_split): Likewise.
15415         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15416         * lower-subreg.c (resolve_simple_move): Likewise.
15417         * lra.c (update_inc_notes): Likewise.
15418         * recog.c (asm_operand_ok): Likewise.
15419         (constrain_operands): Likewise.
15420         * regrename.c (scan_rtx_address): Likewise.
15421         * reload.c (update_auto_inc_notes): Likewise.
15422         (find_equiv_reg): Likewise.
15423         * reload1.c (reload): Likewise.
15424         (reload_as_needed): Likewise.
15425         (choose_reload_regs): Likewise.
15426         (emit_input_reload_insns): Likewise.
15427         (delete_output_reload): Likewise.
15428         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15429         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15431 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15433         * combine.c (can_combine_def_p): Don't check the value of
15434         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
15435         (combinable_i3pat): Likewise.
15436         (mark_used_regs_combine): Likewise.
15437         * regrename.c (rename_chains): Likewise.
15438         * reload.c (find_reloads_address): Likewise.
15439         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15441 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15443         * combine.c (update_rsp_from_reg_equal): Don't check if
15444         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
15445         (reg_nonzero_bits_for_combine): Likewise.
15446         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
15447         1.
15448         * config/frv/frv.h: Likewise.
15449         * config/lm32/lm32.h: Likewise.
15450         * config/mep/mep.h: Likewise.
15451         * config/mips/mips.h: Likewise.
15452         * config/rs6000/rs6000.h: Likewise.
15453         * config/sh/sh.h: Likewise.
15454         * config/tilegx/tilegx.h (enum reg_class): Likewise.
15455         * config/tilepro/tilepro.h: Likewise.
15456         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
15457         * doc/tm.texi: Regenerate.
15458         * doc/tm.texi.in: Adjust.
15459         * rtlanal.c (nonzero_bits1): Likewise.
15461 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15463         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
15464         with the preprocessor.
15465         (combine_instructions): Likewise.
15466         (try_combine): Likewise.
15467         (subst): Likewise.
15468         (distribute_notes): Likewise.
15470 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15472         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
15473         defined.
15474         (simplify_set): Likewise.
15475         * cse.c (cse_insn): Likewise.
15476         * fold-const.c (fold_single_bit_test): Likewise.
15477         (fold_unary_loc): Likewise.
15478         * postreload.c (reload_cse_simplify_set): Likewise.
15479         (reload_cse_simplify_operands): Likewise.
15481 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
15483         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
15484         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
15486 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
15488         PR target/66746
15489         * config/i386/x86intrin.h: Include <adxintrin.h> even if
15490         __iamcu__ is defined.
15492 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
15494         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
15496 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
15498         PR target/66523
15499         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
15500         names from preservation.
15502 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
15504         PR target/66806
15505         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
15506         change for IAMCU.
15507         (function_arg_advance_32): Don't pass vectors in registers for
15508         IAMCU.
15509         (function_arg_32): Likewise.
15510         (ix86_return_in_memory): Don't return vectors in registers for
15511         IAMCU.
15513 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
15515         PR middle-end/66334
15516         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
15517         hard regno live at the start of BB with incoming abnormal edges.
15518         * lra-lives.c (process_bb_lives): Ditto.
15520 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
15522         PR libgomp/65099
15523         * config/nvptx/mkoffload.c (main): Create an offload image only in
15524         64-bit configurations.
15526 2015-07-08  Martin Liska  <mliska@suse.cz>
15528         PR bootstrap/66744
15529         * tree-sra.c (create_access_1): Call ctor without brackets.
15530         (create_artificial_child_access): Likewise.
15532 2015-07-08  Richard Biener  <rguenther@suse.de>
15534         PR tree-optimization/66793
15535         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15536         Properly split the block after stmts ending it.
15538 2015-07-08  Richard Biener  <rguenther@suse.de>
15540         PR tree-optimization/66794
15541         * passes.c (execute_function_todo): Assert that post-dominators
15542         are not computed.
15543         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15544         Free post-dominators.
15546 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15548         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15549         with early exit.
15551 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
15553         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15554         more than or equal 8 and less than 32 when optimizing for size.
15556 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15558         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15559         COSTS_N_INSNS (1) and increment it appropriately throughout the
15560         function.
15562 2015-07-08  Richard Biener  <rguenther@suse.de>
15564         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15566 2015-07-08  Alan Modra  <amodra@gmail.com>
15568         * target.def (rtx_costs): Remove "code" param, add "mode".
15569         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15570         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
15571         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15572         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
15573         call.  Track mode when given in rtx.
15574         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
15575         (default_address_cost): Pass Pmode to rtx_cost.
15576         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15577         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15578         with NULL set.
15579         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
15580         (notreg_cost): Add mode param.  Use it.
15581         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
15582         mode param and pass to set_src_cost.  Update all calls.
15583         (hash_scan_set): Formatting.
15584         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15585         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15586         * hooks.h: Ditto.
15587         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15588         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15589         emit_store_flag): Update set_src_cost and rtx_cost calls.
15590         * auto-inc-dec.c (attempt_change): Likewise.
15591         * calls.c (precompute_register_parameters): Likewise.
15592         * combine.c (expand_compound_operation, make_extraction,
15593         force_to_mode, distribute_and_simplify_rtx): Likewise.
15594         * dojump.c (prefer_and_bit_test): Likewise.
15595         * dse.c (find_shift_sequence): Likewise.
15596         * expr.c (compress_float_constant): Likewise.
15597         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15598         * ifcvt.c (noce_try_sign_mask): Likewise.
15599         * loop-doloop.c (doloop_optimize): Likewise.
15600         * loop-invariant.c (create_new_invariant): Likewise.
15601         * lower-subreg.c (shift_cost, compute_costs): Likewise.
15602         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15603         lshift_cheap_p): Likewise.
15604         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15605         try_replace_in_use, reload_cse_move2add): Likewise.
15606         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15607         Likewise.
15608         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15609         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15610         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15611         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15612         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15613         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
15614         to rtx_cost calls.
15615         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15616         * config/arc/arc.c (arc_rtx_costs): Likewise.
15617         * config/arm/arm.c (arm_rtx_costs): Likewise.
15618         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15619         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15620         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15621         * config/cris/cris.c (cris_rtx_costs): Likewise.
15622         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15623         * config/frv/frv.c (frv_rtx_costs): Likewise.
15624         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15625         * config/i386/i386.c (ix86_rtx_costs): Likewise.
15626         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15627         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15628         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15629         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15630         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15631         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15632         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15633         * config/mep/mep.c (mep_rtx_cost): Likewise.
15634         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15635         * config/mips/mips.c (mips_rtx_costs): Likewise.
15636         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15637         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15638         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15639         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15640         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15641         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15642         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15643         * config/pa/pa.c (hppa_rtx_costs): Likewise.
15644         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15645         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15646         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15647         * config/s390/s390.c (s390_rtx_costs): Likewise.
15648         * config/sh/sh.c (sh_rtx_costs): Likewise.
15649         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15650         * config/spu/spu.c (spu_rtx_costs): Likewise.
15651         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15652         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15653         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15654         * config/v850/v850.c (v850_rtx_costs): Likewise.
15655         * config/vax/vax.c (vax_rtx_costs): Likewise.
15656         * config/visium/visium.c (visium_rtx_costs): Likewise.
15657         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15658         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15659         "code" param, and pass as outer_code to first rtx_cost call.  Pass
15660         mode to rtx_cost calls.
15661         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15662         calls.
15663         (aarch64_rtx_costs_wrapper): Update.
15664         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15665         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15666         rtx_cost calls.
15667         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15668         and rtx_cost calls.
15669         (avr_operand_rtx_cost): Similarly.
15670         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15671         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15672         * config/mips/mips.c (mips_stack_address_p): Comment typo.
15673         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15674         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15675         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15676         rtx_cost.
15677         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15678         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15679         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15680         * doc/tm.texi: Regenerate.
15682 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
15684         * tree-core.h: Include symtab.h.
15685         * rtl.h: Include hard-reg-set.h but not flags.h.
15686         (HARD_CONST): Remove condition compilation involving HARD_CONST since
15687         hard-reg-set.h is always included.
15688         * regs.h: Don't include hard-reg-set.h or rtl.h.
15689         * cfg.h: Include dominance.h.
15690         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15691         * backend.h: New.  Aggregate commonly used backend header files.
15692         * gimple-ssa.h: Don't include tree-hasher.h.
15693         * ssa.h: New.  Aggregate commonly used SSA header files.
15694         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15695         * sel-sched-ir.h: Flatten includes.
15696         * lra-int.h: Flatten completely.
15697         * sel-sched-dump.h: Flatten includes.
15698         * ira-int.h: Flatten includes.
15699         * gimple-streamer.h: Remove all includes.
15700         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15701         * resource.h: Flatten hard-reg-set.h and df.h.
15702         * sched-int.h: Flatten insn-arrt.h and df.h.
15703         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15704         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15705         * genattrtab.c (write_header): Adjust generated includes.
15706         * genautomata.c (main): Likewise.
15707         * genconditions.c (write-header): Likewise.
15708         * genemit.c (main): Likewise.
15709         * gengtype.c (open_base_files): Likewise.
15710         * genopinit.c (main): Likewise.
15711         * genoutput.c (output_prologue): Likewise.
15712         * genpeep.c (main): Likewise.
15713         * genpreds.c (write_insn_preds_c): Likewise.
15714         * genrecog.c (write_header): Likewise.
15715         * alias.c: Adjust includes.
15716         * asan.c: Likewise.
15717         * attribs.c: Likewise.
15718         * auto-inc-dec.c: Likewise.
15719         * auto-profile.c: Likewise.
15720         * bb-reorder.c: Likewise.
15721         * bt-load.c: Likewise.
15722         * builtins.c: Likewise.
15723         * caller-save.c: Likewise.
15724         * calls.c: Likewise.
15725         * ccmp.c: Likewise.
15726         * cfg.c: Likewise.
15727         * cfganal.c: Likewise.
15728         * cfgbuild.c: Likewise.
15729         * cfgcleanup.c: Likewise.
15730         * cfgexpand.c: Likewise.
15731         * cfghooks.c: Likewise.
15732         * cfgloop.c: Likewise.
15733         * cfgloopanal.c: Likewise.
15734         * cfgloopmanip.c: Likewise.
15735         * cfgrtl.c: Likewise.
15736         * cgraph.c: Likewise.
15737         * cgraphbuild.c: Likewise.
15738         * cgraphclones.c: Likewise.
15739         * cgraphunit.c: Likewise.
15740         * cilk-common.c: Likewise.
15741         * combine-stack-adj.c: Likewise.
15742         * combine.c: Likewise.
15743         * compare-elim.c: Likewise.
15744         * convert.c: Likewise.
15745         * coverage.c: Likewise.
15746         * cppbuiltin.c: Likewise.
15747         * cprop.c: Likewise.
15748         * cse.c: Likewise.
15749         * cselib.c: Likewise.
15750         * data-streamer-in.c: Likewise.
15751         * data-streamer-out.c: Likewise.
15752         * data-streamer.c: Likewise.
15753         * dbxout.c: Likewise.
15754         * dce.c: Likewise.
15755         * ddg.c: Likewise.
15756         * debug.c: Likewise.
15757         * df-core.c: Likewise.
15758         * df-problems.c: Likewise.
15759         * df-scan.c: Likewise.
15760         * dfp.c: Likewise.
15761         * dojump.c: Likewise.
15762         * dominance.c: Likewise.
15763         * domwalk.c: Likewise.
15764         * double-int.c: Likewise.
15765         * dse.c: Likewise.
15766         * dumpfile.c: Likewise.
15767         * dwarf2asm.c: Likewise.
15768         * dwarf2cfi.c: Likewise.
15769         * dwarf2out.c: Likewise.
15770         * emit-rtl.c: Likewise.
15771         * et-forest.c: Likewise.
15772         * except.c: Likewise.
15773         * explow.c: Likewise.
15774         * expmed.c: Likewise.
15775         * expr.c: Likewise.
15776         * final.c: Likewise.
15777         * fixed-value.c: Likewise.
15778         * fold-const.c: Likewise.
15779         * function.c: Likewise.
15780         * fwprop.c: Likewise.
15781         * gcc-plugin.h: Likewise.
15782         * gcse-common.c: Likewise.
15783         * gcse.c: Likewise.
15784         * generic-match-head.c: Likewise.
15785         * ggc-page.c: Likewise.
15786         * gimple-builder.c: Likewise.
15787         * gimple-expr.c: Likewise.
15788         * gimple-fold.c: Likewise.
15789         * gimple-iterator.c: Likewise.
15790         * gimple-low.c: Likewise.
15791         * gimple-match-head.c: Likewise.
15792         * gimple-pretty-print.c: Likewise.
15793         * gimple-ssa-isolate-paths.c: Likewise.
15794         * gimple-ssa-strength-reduction.c: Likewise.
15795         * gimple-streamer-in.c: Likewise.
15796         * gimple-streamer-out.c: Likewise.
15797         * gimple-walk.c: Likewise.
15798         * gimple.c: Likewise.
15799         * gimplify-me.c: Likewise.
15800         * gimplify.c: Likewise.
15801         * godump.c: Likewise.
15802         * graph.c: Likewise.
15803         * graphite-blocking.c: Likewise.
15804         * graphite-dependences.c: Likewise.
15805         * graphite-interchange.c: Likewise.
15806         * graphite-isl-ast-to-gimple.c: Likewise.
15807         * graphite-optimize-isl.c: Likewise.
15808         * graphite-poly.c: Likewise.
15809         * graphite-scop-detection.c: Likewise.
15810         * graphite-sese-to-poly.c: Likewise.
15811         * graphite.c: Likewise.
15812         * haifa-sched.c: Likewise.
15813         * hw-doloop.c: Likewise.
15814         * ifcvt.c: Likewise.
15815         * init-regs.c: Likewise.
15816         * internal-fn.c: Likewise.
15817         * ipa-chkp.c: Likewise.
15818         * ipa-comdats.c: Likewise.
15819         * ipa-cp.c: Likewise.
15820         * ipa-devirt.c: Likewise.
15821         * ipa-icf-gimple.c: Likewise.
15822         * ipa-icf.c: Likewise.
15823         * ipa-inline-analysis.c: Likewise.
15824         * ipa-inline-transform.c: Likewise.
15825         * ipa-inline.c: Likewise.
15826         * ipa-polymorphic-call.c: Likewise.
15827         * ipa-profile.c: Likewise.
15828         * ipa-prop.c: Likewise.
15829         * ipa-pure-const.c: Likewise.
15830         * ipa-ref.c: Likewise.
15831         * ipa-reference.c: Likewise.
15832         * ipa-split.c: Likewise.
15833         * ipa-utils.c: Likewise.
15834         * ipa-visibility.c: Likewise.
15835         * ipa.c: Likewise.
15836         * ira-build.c: Likewise.
15837         * ira-color.c: Likewise.
15838         * ira-conflicts.c: Likewise.
15839         * ira-costs.c: Likewise.
15840         * ira-emit.c: Likewise.
15841         * ira-lives.c: Likewise.
15842         * ira.c: Likewise.
15843         * jump.c: Likewise.
15844         * langhooks.c: Likewise.
15845         * lcm.c: Likewise.
15846         * loop-doloop.c: Likewise.
15847         * loop-init.c: Likewise.
15848         * loop-invariant.c: Likewise.
15849         * loop-iv.c: Likewise.
15850         * loop-unroll.c: Likewise.
15851         * lower-subreg.c: Likewise.
15852         * lra-assigns.c: Likewise.
15853         * lra-coalesce.c: Likewise.
15854         * lra-constraints.c: Likewise.
15855         * lra-eliminations.c: Likewise.
15856         * lra-lives.c: Likewise.
15857         * lra-remat.c: Likewise.
15858         * lra-spills.c: Likewise.
15859         * lra.c: Likewise.
15860         * lto-cgraph.c: Likewise.
15861         * lto-compress.c: Likewise.
15862         * lto-opts.c: Likewise.
15863         * lto-section-in.c: Likewise.
15864         * lto-section-out.c: Likewise.
15865         * lto-streamer-in.c: Likewise.
15866         * lto-streamer-out.c: Likewise.
15867         * lto-streamer.c: Likewise.
15868         * mcf.c: Likewise.
15869         * mode-switching.c: Likewise.
15870         * modulo-sched.c: Likewise.
15871         * omega.c: Likewise.
15872         * omp-low.c: Likewise.
15873         * optabs.c: Likewise.
15874         * opts-global.c: Likewise.
15875         * passes.c: Likewise.
15876         * plugin.c: Likewise.
15877         * postreload-gcse.c: Likewise.
15878         * postreload.c: Likewise.
15879         * predict.c: Likewise.
15880         * print-rtl.c: Likewise.
15881         * print-tree.c: Likewise.
15882         * profile.c: Likewise.
15883         * real.c: Likewise.
15884         * realmpfr.c: Likewise.
15885         * recog.c: Likewise.
15886         * ree.c: Likewise.
15887         * reg-stack.c: Likewise.
15888         * regcprop.c: Likewise.
15889         * reginfo.c: Likewise.
15890         * regrename.c: Likewise.
15891         * regstat.c: Likewise.
15892         * reload.c: Likewise.
15893         * reload1.c: Likewise.
15894         * reorg.c: Likewise.
15895         * resource.c: Likewise.
15896         * rtl-chkp.c: Likewise.
15897         * rtlanal.c: Likewise.
15898         * rtlhooks.c: Likewise.
15899         * sanopt.c: Likewise.
15900         * sched-deps.c: Likewise.
15901         * sched-ebb.c: Likewise.
15902         * sched-rgn.c: Likewise.
15903         * sched-vis.c: Likewise.
15904         * sdbout.c: Likewise.
15905         * sel-sched-dump.c: Likewise.
15906         * sel-sched-ir.c: Likewise.
15907         * sel-sched.c: Likewise.
15908         * sese.c: Likewise.
15909         * shrink-wrap.c: Likewise.
15910         * simplify-rtx.c: Likewise.
15911         * stack-ptr-mod.c: Likewise.
15912         * stmt.c: Likewise.
15913         * stor-layout.c: Likewise.
15914         * store-motion.c: Likewise.
15915         * stringpool.c: Likewise.
15916         * symtab.c: Likewise.
15917         * target-globals.c: Likewise.
15918         * targhooks.c: Likewise.
15919         * toplev.c: Likewise.
15920         * tracer.c: Likewise.
15921         * trans-mem.c: Likewise.
15922         * tree-affine.c: Likewise.
15923         * tree-browser.c: Likewise.
15924         * tree-call-cdce.c: Likewise.
15925         * tree-cfg.c: Likewise.
15926         * tree-cfgcleanup.c: Likewise.
15927         * tree-chkp-opt.c: Likewise.
15928         * tree-chkp.c: Likewise.
15929         * tree-chrec.c: Likewise.
15930         * tree-complex.c: Likewise.
15931         * tree-data-ref.c: Likewise.
15932         * tree-dfa.c: Likewise.
15933         * tree-diagnostic.c: Likewise.
15934         * tree-dump.c: Likewise.
15935         * tree-eh.c: Likewise.
15936         * tree-emutls.c: Likewise.
15937         * tree-if-conv.c: Likewise.
15938         * tree-inline.c: Likewise.
15939         * tree-into-ssa.c: Likewise.
15940         * tree-iterator.c: Likewise.
15941         * tree-loop-distribution.c: Likewise.
15942         * tree-nested.c: Likewise.
15943         * tree-nrv.c: Likewise.
15944         * tree-object-size.c: Likewise.
15945         * tree-outof-ssa.c: Likewise.
15946         * tree-parloops.c: Likewise.
15947         * tree-phinodes.c: Likewise.
15948         * tree-predcom.c: Likewise.
15949         * tree-pretty-print.c: Likewise.
15950         * tree-profile.c: Likewise.
15951         * tree-scalar-evolution.c: Likewise.
15952         * tree-sra.c: Likewise.
15953         * tree-ssa-address.c: Likewise.
15954         * tree-ssa-alias.c: Likewise.
15955         * tree-ssa-ccp.c: Likewise.
15956         * tree-ssa-coalesce.c: Likewise.
15957         * tree-ssa-copy.c: Likewise.
15958         * tree-ssa-copyrename.c: Likewise.
15959         * tree-ssa-dce.c: Likewise.
15960         * tree-ssa-dom.c: Likewise.
15961         * tree-ssa-dse.c: Likewise.
15962         * tree-ssa-forwprop.c: Likewise.
15963         * tree-ssa-ifcombine.c: Likewise.
15964         * tree-ssa-live.c: Likewise.
15965         * tree-ssa-loop-ch.c: Likewise.
15966         * tree-ssa-loop-im.c: Likewise.
15967         * tree-ssa-loop-ivcanon.c: Likewise.
15968         * tree-ssa-loop-ivopts.c: Likewise.
15969         * tree-ssa-loop-manip.c: Likewise.
15970         * tree-ssa-loop-niter.c: Likewise.
15971         * tree-ssa-loop-prefetch.c: Likewise.
15972         * tree-ssa-loop-unswitch.c: Likewise.
15973         * tree-ssa-loop.c: Likewise.
15974         * tree-ssa-math-opts.c: Likewise.
15975         * tree-ssa-operands.c: Likewise.
15976         * tree-ssa-phiopt.c: Likewise.
15977         * tree-ssa-phiprop.c: Likewise.
15978         * tree-ssa-pre.c: Likewise.
15979         * tree-ssa-propagate.c: Likewise.
15980         * tree-ssa-reassoc.c: Likewise.
15981         * tree-ssa-sccvn.c: Likewise.
15982         * tree-ssa-scopedtables.c: Likewise.
15983         * tree-ssa-sink.c: Likewise.
15984         * tree-ssa-strlen.c: Likewise.
15985         * tree-ssa-structalias.c: Likewise.
15986         * tree-ssa-tail-merge.c: Likewise.
15987         * tree-ssa-ter.c: Likewise.
15988         * tree-ssa-threadedge.c: Likewise.
15989         * tree-ssa-threadupdate.c: Likewise.
15990         * tree-ssa-uncprop.c: Likewise.
15991         * tree-ssa-uninit.c: Likewise.
15992         * tree-ssa.c: Likewise.
15993         * tree-ssanames.c: Likewise.
15994         * tree-stdarg.c: Likewise.
15995         * tree-streamer-in.c: Likewise.
15996         * tree-streamer-out.c: Likewise.
15997         * tree-streamer.c: Likewise.
15998         * tree-switch-conversion.c: Likewise.
15999         * tree-tailcall.c: Likewise.
16000         * tree-vect-data-refs.c: Likewise.
16001         * tree-vect-generic.c: Likewise.
16002         * tree-vect-loop-manip.c: Likewise.
16003         * tree-vect-loop.c: Likewise.
16004         * tree-vect-patterns.c: Likewise.
16005         * tree-vect-slp.c: Likewise.
16006         * tree-vect-stmts.c: Likewise.
16007         * tree-vectorizer.c: Likewise.
16008         * tree-vrp.c: Likewise.
16009         * tree.c: Likewise.
16010         * tsan.c: Likewise.
16011         * ubsan.c: Likewise.
16012         * valtrack.c: Likewise.
16013         * value-prof.c: Likewise.
16014         * var-tracking.c: Likewise.
16015         * varasm.c: Likewise.
16016         * varpool.c: Likewise.
16017         * vmsdbgout.c: Likewise.
16018         * vtable-verify.c: Likewise.
16019         * web.c: Likewise.
16020         * wide-int.cc: Likewise.
16021         * xcoffout.c: Likewise.
16022         * config/aarch64/aarch64-builtins.c: Likewise.
16023         * config/aarch64/aarch64.c: Likewise.
16024         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16025         * config/alpha/alpha.c: Likewise.
16026         * config/arc/arc.c: Likewise.
16027         * config/arm/aarch-common.c: Likewise.
16028         * config/arm/arm-builtins.c: Likewise.
16029         * config/arm/arm-c.c: Likewise.
16030         * config/arm/arm.c: Likewise.
16031         * config/avr/avr-c.c: Likewise.
16032         * config/avr/avr-log.c: Likewise.
16033         * config/avr/avr.c: Likewise.
16034         * config/bfin/bfin.c: Likewise.
16035         * config/c6x/c6x.c: Likewise.
16036         * config/cr16/cr16.c: Likewise.
16037         * config/cris/cris.c: Likewise.
16038         * config/darwin-c.c: Likewise.
16039         * config/darwin.c: Likewise.
16040         * config/epiphany/epiphany.c: Likewise.
16041         * config/epiphany/mode-switch-use.c: Likewise.
16042         * config/epiphany/resolve-sw-modes.c: Likewise.
16043         * config/fr30/fr30.c: Likewise.
16044         * config/frv/frv.c: Likewise.
16045         * config/ft32/ft32.c: Likewise.
16046         * config/h8300/h8300.c: Likewise.
16047         * config/i386/i386-c.c: Likewise.
16048         * config/i386/i386.c: Likewise.
16049         * config/i386/msformat-c.c: Likewise.
16050         * config/i386/winnt-cxx.c: Likewise.
16051         * config/i386/winnt-stubs.c: Likewise.
16052         * config/i386/winnt.c: Likewise.
16053         * config/ia64/ia64-c.c: Likewise.
16054         * config/ia64/ia64.c: Likewise.
16055         * config/iq2000/iq2000.c: Likewise.
16056         * config/lm32/lm32.c: Likewise.
16057         * config/m32c/m32c-pragma.c: Likewise.
16058         * config/m32c/m32c.c: Likewise.
16059         * config/m32r/m32r.c: Likewise.
16060         * config/m68k/m68k.c: Likewise.
16061         * config/mcore/mcore.c: Likewise.
16062         * config/mep/mep-pragma.c: Likewise.
16063         * config/mep/mep.c: Likewise.
16064         * config/microblaze/microblaze-c.c: Likewise.
16065         * config/microblaze/microblaze.c: Likewise.
16066         * config/mips/mips.c: Likewise.
16067         * config/mmix/mmix.c: Likewise.
16068         * config/mn10300/mn10300.c: Likewise.
16069         * config/moxie/moxie.c: Likewise.
16070         * config/msp430/msp430-c.c: Likewise.
16071         * config/msp430/msp430.c: Likewise.
16072         * config/nds32/nds32-cost.c: Likewise.
16073         * config/nds32/nds32-fp-as-gp.c: Likewise.
16074         * config/nds32/nds32-intrinsic.c: Likewise.
16075         * config/nds32/nds32-isr.c: Likewise.
16076         * config/nds32/nds32-md-auxiliary.c: Likewise.
16077         * config/nds32/nds32-memory-manipulation.c: Likewise.
16078         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16079         * config/nds32/nds32-predicates.c: Likewise.
16080         * config/nds32/nds32.c: Likewise.
16081         * config/nios2/nios2.c: Likewise.
16082         * config/nvptx/nvptx.c: Likewise.
16083         * config/pa/pa.c: Likewise.
16084         * config/pdp11/pdp11.c: Likewise.
16085         * config/rl78/rl78-c.c: Likewise.
16086         * config/rl78/rl78.c: Likewise.
16087         * config/rs6000/rs6000-c.c: Likewise.
16088         * config/rs6000/rs6000.c: Likewise.
16089         * config/rx/rx.c: Likewise.
16090         * config/s390/s390-c.c: Likewise.
16091         * config/s390/s390.c: Likewise.
16092         * config/sh/sh-c.c: Likewise.
16093         * config/sh/sh-mem.cc: Likewise.
16094         * config/sh/sh.c: Likewise.
16095         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16096         * config/sh/sh_treg_combine.cc: Likewise.
16097         * config/sol2-c.c: Likewise.
16098         * config/sol2-cxx.c: Likewise.
16099         * config/sol2-stubs.c: Likewise.
16100         * config/sol2.c: Likewise.
16101         * config/sparc/sparc-c.c: Likewise.
16102         * config/sparc/sparc.c: Likewise.
16103         * config/spu/spu-c.c: Likewise.
16104         * config/spu/spu.c: Likewise.
16105         * config/stormy16/stormy16.c: Likewise.
16106         * config/tilegx/mul-tables.c: Likewise.
16107         * config/tilegx/tilegx-c.c: Likewise.
16108         * config/tilegx/tilegx.c: Likewise.
16109         * config/tilepro/mul-tables.c: Likewise.
16110         * config/tilepro/tilepro-c.c: Likewise.
16111         * config/tilepro/tilepro.c: Likewise.
16112         * config/v850/v850-c.c: Likewise.
16113         * config/v850/v850.c: Likewise.
16114         * config/vax/vax.c: Likewise.
16115         * config/visium/visium.c: Likewise.
16116         * config/vms/vms-c.c: Likewise.
16117         * config/vms/vms.c: Likewise.
16118         * config/vxworks.c: Likewise.
16119         * config/xtensa/xtensa.c: Likewise.
16121 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
16123         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
16124         Remove operand constraints.  Change operand 2 predicate to
16125         nonmemory operand.  Limit const_int values to mode bitsize.  Only
16126         allow const_int values less than 32 when optimizing for size.
16127         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
16128         Remove operand constraints.
16129         (*bt<mode>): Use SImode for const_int values less than 32.
16130         (regmode): Remove mode attribute.
16132 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
16134         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16135         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
16136           moxie_legitimate_address_p): New functions.
16137           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16139 2015-07-07  Tom de Vries  <tom@codesourcery.com>
16141         PR tree-optimization/66642
16142         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
16143         header comment.  Rename split_edge variable to edge_at_split.  Split
16144         exit edge to create new loop exit bb.  Insert loop exit phis in new
16145         loop exit bb.
16147 2015-07-07  Tom de Vries  <tom@codesourcery.com>
16149         * tree-cfg.c (get_virtual_phi): New function.
16150         * tree-cfg.h (get_virtual_phi): Declare.
16151         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
16152         (rewrite_virtuals_into_loop_closed_ssa): New function.
16153         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
16154         Declare.
16155         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
16156         (transform_to_exit_first_loop_alt): Use
16157         rewrite_virtuals_into_loop_closed_ssa.
16159 2015-07-07  Richard Biener  <rguenther@suse.de>
16161         * fold-const.c (fold_binary_loc): Move
16162         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
16163         * match.pd: ... here.
16164         Add (X * C1) % C2 -> 0 simplification pattern derived from
16165         extract_muldiv_1.
16167 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
16169         PR target/66780
16170         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
16171         change for target/65249.
16173 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
16175         * symtab.c (address_matters_1): Fix typo in comment above.
16176         (can_increase_alignment_p): Likewise.
16178 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16180         * function.c (free_after_compilation): Clear PROP_cfg in
16181         f->curr_properties.
16183 2015-07-07  Richard Biener  <rguenther@suse.de>
16185         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
16186         add which use to.
16187         (add_control_edge): Remove excessive vertical space in dumping.
16188         (process_ssa_edge_worklist): Simulate at most one statement and
16189         return whether we did.  Do not simulate PHIs if they are in a
16190         BB not yet simulated.
16191         (ssa_propagate): Adjust to always drain the BB worklist whenever
16192         a BB is available there, likewise the VARYING edges list before
16193         the interesting edge list.
16195 2015-07-07  Christian Bruel  <christian.bruel@st.com>
16197         PR target/52144
16198         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
16200 2015-07-07  Richard Biener  <rguenther@suse.de>
16202         PR middle-end/66739
16203         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
16204         A - B.
16206 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
16208         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
16209         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
16210         Copy operand 0 to a temporary if !ext_register_operand.  Remove
16211         ancient extract_bit_field workaround.
16212         (insv<mode>_1): Rename from mov<mode>_insv_1.
16213         (*insvqi): Rename from *movqi_insv_2.
16214         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
16215         for renamed insvsi_1.
16216         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
16218 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
16220         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
16221         call to nvptx_reorg_subreg.
16223 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
16225         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
16226         * graphite-dependencies.c, graphite-interchange.c,
16227         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
16228         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
16229         Likewise.
16231 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
16233         * match.pd: Remove element_mode inside HONOR_*.
16234         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
16235         (~X | X -> -1, ~X ^ X -> -1): Merge.
16236         * tree.c (build_each_one_cst): New function.
16237         * tree.h (build_each_one_cst): Likewise.
16239 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16241         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16242         PROCESSOR_IAMCU.
16244 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
16246         * config.gcc <mips*-*-*>: Add fused-madd.opt.
16247         * config/mips/mips.opt (mfused-madd): Remove.
16248         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
16249         * config/mips/mips.h (TARGET_MIPS8000): New.
16250         (ISA_HAS_FP_MADD4_MSUB4): Remove.
16251         (ISA_HAS_FP_MADDF_MSUBF): Remove.
16252         (ISA_HAS_FP_MADD3_MSUB3): Remove.
16253         (ISA_HAS_NMADD4_NMSUB4): Remove.
16254         (ISA_HAS_NMADD3_NMSUB3): Remove.
16255         (ISA_HAS_FUSED_MADD4): New.
16256         (ISA_HAS_UNFUSED_MADD4): New.
16257         (ISA_HAS_FUSED_MADDF): New.
16258         (ISA_HAS_FUSED_MADD3): New.
16259         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
16260         (*fma<mode>4_madd3) New.
16261         (*fma<mode>4_madd4) New.
16262         (*fma<mode>4_maddf) New.
16263         (fms<mode>4) New.
16264         (*fms<mode>4_msub3) New.
16265         (*fms<mode>4_msub4) New.
16266         (fnma<mode>4) New.
16267         (*fnma<mode>4_nmadd3) New.
16268         (*fnma<mode>4_nmadd4) New.
16269         (fnms<mode>4) New.
16270         (*fnms<mode>4_nmsub3) New.
16271         (*fnms<mode>4_nmsub4) New.
16272         (*madd4<mode>) Modify to be unfused only.
16273         (*msub4<mode>) Modify to be unfused only.
16274         (*nmadd4<mode>) Modify to be unfused only.
16275         (*nmsub4<mode>) Modify to be unfused only.
16276         (*madd3<mode>) Remove.
16277         (*msub3<mode>) Remove.
16278         (*nmadd3<mode>) Remove.
16279         (*nmsub3<mode>) Remove.
16280         (*nmadd3<mode>_fastmath) Remove.
16281         (*nmsub3<mode>_fastmath) Remove.
16282         (*nmadd4<mode>_fastmath) Update condition.
16283         (*nmsub4<mode>_fastmath) Update condition.
16285 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
16287         PR target/65956
16288         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
16289         alignment attribute, exploring one level down for records and arrays.
16291 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
16293         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
16294         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
16295         Copy operand 1 to a temporary if !ext_register_operand.  Remove
16296         ancient extract_bit_field workaround.
16297         (*extv<mode>): Rename from *mov<mode>_extv_1.
16298         (*extvqi): Rename from *movqi_extv_1.
16299         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
16300         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
16301         to a temporary if !ext_register_operand.  Remove ancient
16302         extract_bit_field workaround.
16303         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
16304         (*extzvqi): Rename from *movqi_extzv_2.
16305         (*testqi_ext_3): Remove modes from const_int_operand predicated
16306         operands.  Add "n" constraint.
16307         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
16308         operand.  Add "J" constraint.
16309         (*btsq, *btrq, *btcq peephole2s): Remove mode from
16310         const_0_to_63 predicated operand.
16311         (regmode): New insn attribute.
16312         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
16313         to nonmemory_operand.  Use regmode insn attribute.
16314         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
16315         (*jcc_bt<mode>_mask): Remove mode from operand 3.
16316         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
16317         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
16318         operands.  Use "N" constraint instead of "n".
16320 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
16322         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
16324 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16326         PR target/66749
16327         * config/i386/i386.c (iamcu_cost): New.
16328         (m_IAMCU): Likewise.
16329         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
16330         (processor_target_table): Add an entry for "iamcu".
16331         (processor_alias_table): Likewise.
16332         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
16333         (ix86_adjust_cost): Likewise.
16334         (ia32_multipass_dfa_lookahead): Likewise.
16335         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
16336         * config/i386/x86-tune.def: Updated for m_IAMCU.
16338 2015-07-06  Richard Biener  <rguenther@suse.de>
16340         PR tree-optimization/66772
16341         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
16342         values are available in the PHI node BB when there are
16343         still unexecutable edges.
16345 2015-07-06  Richard Biener  <rguenther@suse.de>
16347         PR tree-optimization/66767
16348         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16349         Make sure to build the alignment test on a SSA name without
16350         final alignment info valid only if the alignment test
16351         evaluates to true.
16353 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
16355         PR target/66620
16356         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
16357         loop start when inserting LSETUP.
16359 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
16361         PR target/53383
16362         * config/i386/i386.c (ix86_option_override_internal): Allow
16363         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
16365 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16367         * read-md.c (decimal_string): Rename to ...
16368         (md_decimal_string): ... this.
16369         (handle_enum): Reflect this.
16371 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16373         PR target/66731
16374         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
16376 2015-07-06  Richard Biener  <rguenther@suse.de>
16378         PR middle-end/66759
16379         * match.pd: Add missing constraint of y to REAL_CST in
16380         REAL_CST - x CMP y to y - CST CMP x simplification.
16382 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
16384         PR tree-optimization/66757
16385         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
16387 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
16388             Sandra Loosemore <sandra@codesourcery.com>
16390         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
16391         Delete extern declaration.
16392         (gprel_constant_p): Add extern declaration.
16393         * config/nios2/constraints.md ("S"): Use gprel_constant_p
16394         instead of nios2_symbol_ref_in_small_data_p.
16395         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
16396         (nios2_symbol_ref_in_small_data_p): Make static.
16397         (gprel_constant_p): Make non-static.
16399 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
16401         * doc/fragments.texi (Target Fragment): Convert debian.org
16402         link to use https.
16403         * doc/install.texi (Configuration): Ditto.
16405 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
16407         PR tree-optimization/66718
16408         * tree-vect-stmts.c (vectorizable_call): Replace uses of
16409         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
16411         PR tree-optimization/66718
16412         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
16413         vectorizable_load, vectorizable_condition): Move vectype,
16414         nunits, ncopies computation after checking what kind of statement
16415         stmt is.
16417 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16419         * target-insns.def (extv, extzv, insv): New targetm instruction
16420         patterns.
16421         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
16422         interface.
16423         * recog.c (simplify_while_replacing): Likewise.
16425 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16427         * target-insns.def (doloop_begin, doloop_end): New targetm
16428         instruction patterns.
16429         * loop-init.c: Include target.h.
16430         (pass_loop2::gate): Use the new targetm patterns instead of
16431         HAVE_*/gen_* interface.
16432         (pass_rtl_doloop::gate): Likewise.
16433         (pass_rtl_doloop::execute): Remove preprocessor condition.
16434         * hw-doloop.c: Build unconditionally.
16435         * loop-doloop.c: Likewise.
16436         (doloop_optimize): Use the new targetm patterns instead of
16437         HAVE_*/gen_* interface.
16438         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
16439         * modulo-sched.c (doloop_register_get): Likewise.
16441 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16443         * target-insns.def (clear_cache): New targetm instruction pattern.
16444         * builtins.c (expand_builtin___clear_cache): Use it instead of
16445         HAVE_*/gen_* interface.
16447 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16449         * target-insns.def (allocate_stack, check_stack, probe_stack)
16450         (probe_stack_address, split_stack_prologue, split_stack_space_check):
16451         New targetm instruction patterns.
16452         * explow.c (allocate_dynamic_stack_space): Use them instead of
16453         HAVE_*/gen_* interface.
16454         (emit_stack_probe): Likewise.
16455         (probe_stack_range): Likewise.
16456         * function.c (thread_prologue_and_epilogue_insns): Likewise.
16458 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16460         * target-insns.def (stack_protect_set, stack_protect_test): New
16461         targetm instruction patterns.
16462         * cfgexpand.c (stack_protect_prologue): Use them instead of
16463         HAVE_*/gen_* interface.
16464         * function.c (stack_protect_epilogue): Likewise.
16466 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16468         * expr.h (gen_move_insn_uncast): Delete.
16469         * expr.c (gen_move_insn_uncast): Delete.
16471 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16473         * target-insns.def (restore_stack_block, restore_stack_function)
16474         (restore_stack_nonlocal, save_stack_block, save_stack_function)
16475         (save_stack_nonlocal): New targetm instruction patterns.
16476         * builtins.c (expand_builtin_apply): Use them instead of
16477         HAVE_*/gen_* interface.
16478         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
16480 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16482         * target-insns.def (trap): New targetm instruction pattern.
16483         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
16484         interface.
16485         * explow.c (allocate_dynamic_stack_space): Likewise.
16486         * ifcvt.c (find_if_header): Likewise.
16488 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16490         * target-insns.def (prefetch): New targetm instruction pattern.
16491         * tree-ssa-loop-prefetch.c: Include targeth.
16492         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
16493         of HAVE_*/gen_* interface.
16494         * builtins.c (expand_builtin_prefetch): Likewise.
16495         * toplev.c (process_options): Likewise.
16497 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16499         * target-insns.def (untyped_call, untyped_return): New targetm
16500         instruction patterns.
16501         * builtins.c (expand_builtin_apply): Use them instead of
16502         HAVE_*/gen_* interface.
16503         (result_vector): Define unconditionally.
16505 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16507         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
16508         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
16509         (nonlocal_goto_receiver): New targetm instruction patterns.
16510         * builtins.c (expand_builtin_setjmp_setup): Use them instead
16511         of HAVE_*/gen_* interface.
16512         (expand_builtin_setjmp_receiver): Likewise.
16513         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16514         * except.c (expand_dw2_landing_pad_for_region): Likewise.
16516 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
16518         * target.def: Add code_for_* hooks.
16519         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
16520         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16521         * target-insns.def (casesi, tablejump): New targetm instruction
16522         patterns.
16523         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16524         (do_tablejump): Likewise.
16525         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16526         (expand_sjlj_dispatch_table): Likewise.
16527         * targhooks.c (default_case_values_threshold): Likewise.
16529 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
16531         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16532         Use rtx_insn * instead of rtx.
16533         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16534         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16535         (nios2_call_tls_get_addr): Likewise.
16536         (nios2_emit_expensive_div): Likewise.
16537         (nios2_emit_move_sequence): Change return type to bool.
16538         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16539         Change return type to bool.
16541 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16543         PR target/66747
16544         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16546 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
16548         PR target/66114
16549         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16550         of register_operand.  Remove constraint.
16552 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
16554         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16555         the first argument.
16557 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
16559         * attribs.c (decl_attributes): Guard inform with the return value
16560         of the preceding warning.
16562 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
16564         * doc/invoke.texi (moverride): Move to correct section.
16566 2015-07-03  Richard Biener  <rguenther@suse.de>
16568         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16569         Copy from tree.c
16570         (dt_operand::gen_gimple_expr): After valueizing operands
16571         re-canonicalize operand order for commutative tree codes.
16573 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
16575         PR target/66746.
16576         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16577         is defined.
16578         (__crc32w): Likewise.
16579         (__crc32d): Likewise.
16580         (__rdpmc): Likewise.
16581         (__rdtscp): Likewise.
16582         (_rdpmc): Likewise.
16583         (_rdtscp): Likewise.
16584         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16585         is defined.
16587 2015-07-03  Richard Biener  <rguenther@suse.de>
16589         * fold-const.c (fold_mathfn_compare): Remove.
16590         (fold_inf_compare): Likewise.
16591         (fold_comparison): Move floating point comparison simplifications...
16592         * match.pd: ... to patterns here.  Introduce simple_comparisons
16593         operator list and use it for patterns formerly in fold_comparison.
16595 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
16597         PR tree-optimization/66119
16598         * toplev.c (process_options): Don't set up default values for
16599         the sra_max_scalarization_size_{speed,size} parameters.
16600         * tree-sra (analyze_all_variable_accesses): If no values
16601         have been set for the sra_max_scalarization_size_{speed,size}
16602         parameters, call get_move_ratio to get target defaults.
16604 2015-07-03  Richard Biener  <rguenther@suse.de>
16606         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16607         * match.pd: ... here.
16609 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
16611         PR target/37072
16612         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16613         is not actually the default on FreeBSD.
16615 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16617         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16618         definition.
16619         (CMPGE_8HI): Likewise.
16620         (CMPGE_4SI): Likewise.
16621         (CMPGE_2DI): Likewise.
16622         (CMPGE_U16QI): Likewise.
16623         (CMPGE_U8HI): Likewise.
16624         (CMPGE_U4SI): Likewise.
16625         (CMPGE_U2DI): Likewise.
16626         (CMPLE_16QI): Likewise.
16627         (CMPLE_8HI): Likewise.
16628         (CMPLE_4SI): Likewise.
16629         (CMPLE_2DI): Likewise.
16630         (CMPLE_U16QI): Likewise.
16631         (CMPLE_U8HI): Likewise.
16632         (CMPLE_U4SI): Likewise.
16633         (CMPLE_U2DI): Likewise.
16634         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16635         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16636         ALTIVEC_BUILTIN_VEC_CMPLE.
16637         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16638         floating-point vector modes.
16639         (vector_nlt<mode>): New define_expand.
16640         (vector_nltu<mode>): Likewise.
16641         (vector_ngt<mode>): Likewise.
16642         (vector_ngtu<mode>): Likewise.
16644 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
16646         PR rtl-optimization/66706
16647         * combine.c (make_compound_operation): If an AND of SUBREG of
16648         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16650 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
16652         * tree-pass.h (make_pass_ch_vect): New.
16653         * passes.def: Add pass_ch_vect just before pass_if_conversion.
16655         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16656         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16657         make_pass_ch_vect): New.
16658         (pass_ch): Extend ch_base.
16660         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16661         (ch_base::copy_headers): ...here.
16663 2015-07-02  Richard Biener  <rguenther@suse.de>
16665         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16666         * fold-const.c (get_pointer_modulus_and_residue): Remove.
16667         (fold_binary_loc): Implement (T)ptr & CST in terms of
16668         get_pointer_alignment_1.
16669         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16670         Make sure to build the alignment test on a SSA name without
16671         final alignment info valid only after the prologue.
16673 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
16675         * config/cris/cris.md ("epilogue"): Remove condition.
16676         ("prologue"): Ditto.
16678 2015-07-02  Richard Biener  <rguenther@suse.de>
16680         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16681         parameter to record a condition that is false.
16682         (record_conditions): When recording an extra NE_EXPR that is
16683         true also record a EQ_EXPR that is false.
16685 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
16687         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16688         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16689         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
16690         (set_iv, find_interesting_uses_address, add_candidate_1): New
16691         argument to alloc_iv.
16692         (find_interesting_uses_op, find_interesting_uses_cond): Don't
16693         duplicate struct iv.
16694         (free_loop_data): Don't free struct iv explicitly.
16695         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16697 2015-07-01  DJ Delorie  <dj@redhat.com>
16699         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16700         (LIB_SPEC): Add.
16701         (SUPPORTS_DISCRIMINATOR): Define.
16703 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
16705         PR bootstrap/66685
16706         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16707         there are no CALLs in the same pattern.
16709 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16711         PR rtl-optimization/61047
16712         * rtlanal.c (get_initial_register_offset): New function.
16713         (rtx_addr_can_trap_p_1): Check offsets of stack references.
16715 2015-07-01  Richard Biener  <rguenther@suse.de>
16717         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16718         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16719         ~X CMP C -> X CMP' ~C to ...
16720         * match.pd: ... patterns here.
16722 2015-07-01  Nick Clifton  <nickc@redhat.com>
16724         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16725         a 16-bit value into a 20-bit memory slot.
16727 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
16729         * doc/sourcebuild.texi (AArch64-specific attributes): Document
16730         "aarch64_tiny", "aarch64_small", "aarch64_large",
16731         "aarch64_little_endian", "aarch64_big_endian".
16733 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
16735         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16736         Document "aarch64_small_fpic".
16738 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
16740         * configure.ac: Add check for aarch64 assembler -fpic relocation
16741         modifier support.
16742         * configure: Regenerate.
16743         * config.in: Regenerate.
16744         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16745         to -fPIC if not support of -fpic relocation modifier in assembler.
16747 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
16749         PR bootstrap/66685
16750         * rtl.c (classify_insn): Handle returns in PARALLELs.
16752 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
16754         PR middle-end/66633
16755         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16756         to true if the function is nested and if not optimizing.
16757         (convert_local_omp_clauses): Initialize need_frame to true if the
16758         function contains nested functions and if not optimizing.
16760 2015-07-01  Richard Biener  <rguenther@suse.de>
16762         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16763         (X & Y) ^ Y -> ~X & Y transforms to ...
16764         * match.pd: ... here.
16766 2015-07-01  Richard Biener <rguenther@suse.de>
16768         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16769         of converts to avoid uninteresting noise from the conversion
16770         simplifying patterns.
16772 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
16774         * config/c6x/c6x.c (try_rename_operands): Do not depend on
16775         gcc_assert evaluating its argument for side-effect.
16777 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
16779         PR target/64833
16780         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
16781         flag_pic is set.
16783 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
16785         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
16786         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
16787         (hash_scc): Add this_ref_p and ref_p parameters and pass them
16788         to the inner DFS walk.
16790 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16792         * target-insns.def (jump): New targetm instruction pattern.
16793         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
16794         instead of gen_jump.
16795         (fix_up_crossing_landing_pad): Likewise.
16796         (add_labels_and_missing_jumps): Likewise.
16797         (fix_crossing_conditional_branches): Likewise.
16798         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16799         (force_nonfallthru_and_redirect): Likewise.
16800         * cse.c (cse_insn): Likewise.
16801         * expmed.c (expand_divmod): Likewise.
16802         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
16803         * haifa-sched.c (init_before_recovery): Likewise.
16804         (sched_create_recovery_edges): Likewise.
16805         * ifcvt.c (find_cond_trap): Likewise.
16806         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
16807         (expand_float, expand_fix): Likewise.
16808         * stmt.c (emit_jump): Likewise.
16810 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16812         * defaults.h (HAVE_load_multiple, gen_load_multiple)
16813         (HAVE_store_multiple, gen_store_multiple): Delete.
16814         * target-insns.def (load_multiple, store_multiple): New targetm
16815         instruction patterns.
16816         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
16817         of HAVE_*/gen_* interface.
16819 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16821         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
16822         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
16823         (gen_mem_signal_fence): Delete.
16824         * target-insns.def (mem_signal_fence, mem_thread_fence)
16825         (memory_barrier): New targetm instruction patterns.
16826         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
16827         interface.
16828         (expand_mem_signal_fence): Likewise.
16830 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16832         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
16833         * target-insns.def (epilogue, prologue, sibcall_prologue): New
16834         targetm instruction patterns.
16835         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
16836         interface.
16837         * calls.c (expand_call): Likewise.
16838         * cfgrtl.c (cfg_layout_finalize): Likewise.
16839         * df-scan.c (df_get_entry_block_def_set): Likewise.
16840         (df_get_exit_block_use_set): Likewise.
16841         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
16842         * final.c (final_start_function): Likewise.
16843         * function.c (thread_prologue_and_epilogue_insns): Likewise.
16844         (reposition_prologue_and_epilogue_notes): Likewise.
16845         * reorg.c (find_end_label): Likewise.
16846         * toplev.c (process_options): Likewise.
16848 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
16850         * typed-splay-tree.h: New file.
16852 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
16854         PR debug/66691
16855         * lra-int.h (lra_substitute_pseudo): Add a parameter.
16856         (lra_substitute_pseudo_within_insn): Ditto.
16857         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
16858         of constant.
16859         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
16860         to lra_substitute_pseudo.
16861         * lra-lives.c (process_bb_lives): Add an argument to
16862         lra_substitute_pseudo_within_insn call.
16863         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
16864         argument to lra_substitute_pseudo and
16865         lra_substitute_pseudo_within_insn calls.
16866         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
16868 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
16870         * configure: Regenerated.
16872 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
16874         * config.gcc: Support i[34567]86-*-elfiamcu target.
16875         * config/i386/iamcu.h: New.
16876         * config/i386/i386.opt: Add -miamcu.
16877         * doc/invoke.texi: Document -miamcu.
16878         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
16879         off x87/MMX/SSE/AVX codegen for -miamcu.
16880         * config/i386/i386-c.c (ix86_target_macros_internal): Define
16881         __iamcu/__iamcu__ for -miamcu.
16882         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
16883         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
16884         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
16885         * config/i386/i386.c (ix86_option_override_internal): Ignore and
16886         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
16887         MCU by default.  Default long double to 64-bit for Intel MCU.
16888         Turn on -freg-struct-return for Intel MCU.  Issue an error when
16889         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
16890         AVX is turned on.
16891         (function_arg_advance_32): Pass value whose size is no larger
16892         than 8 bytes in registers for Intel MCU.
16893         (function_arg_32): Likewise.
16894         (ix86_return_in_memory): Return value whose size is no larger
16895         than 8 bytes in registers for Intel MCU.
16896         (iamcu_alignment): New function.
16897         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
16898         true.
16899         (ix86_local_alignment): Don't increase alignment for Intel MCU.
16900         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
16901         true.
16903 2015-06-30  Marek Polacek  <polacek@redhat.com>
16905         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
16906         both operands of the resulting expression.
16908         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
16909         the final expression with the operand's type and then convert
16910         it to the type of the expression.
16912 2015-06-30  Richard Biener  <rguenther@suse.de>
16914         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
16915         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
16916         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
16917         * match.pd: ... to patterns here.
16919 2015-06-30  Richard Biener  <rguenther@suse.de>
16921         PR tree-optimization/66704
16922         * tree-vect-data-refs.c (vect_setup_realignment): Use
16923         make_ssa_name for non-SSA name source.
16925 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
16927         PR middle-end/66702
16928         * omp-low.c (simd_clone_adjust): Handle addressable linear
16929         or uniform parameters or non-gimple type uniform parameters.
16931 2015-06-30  Richard Biener  <rguenther@suse.de>
16933         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
16934         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
16935         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
16936         * match.pd: ... here.
16937         Add a few cases of A - B -> A + (-B) when B "easily" negates.
16938         Move (x & y) | x -> x and friends before
16939         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
16941 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
16943         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
16944         -mfix-ut699 is not specified.
16945         (leon3_load): Rename into...
16946         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
16947         is specified.
16949 2015-06-30  Marek Polacek  <polacek@redhat.com>
16951         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
16952         * match.pd: ... here.
16954 2015-06-30  Richard Biener  <rguenther@suse.de>
16956         * target-insns.def (canonicalize_funcptr_for_compare): Add.
16957         * fold-const.c (build_range_check): Replace uses of
16958         HAVE_canonicalize_funcptr_for_compare.
16959         (fold_widened_comparison): Likewise.
16960         (fold_sign_changed_comparison): Likewise.
16961         * dojump.c: Include "target.h".
16962         (do_compare_and_jump): Replace uses of
16963         HAVE_canonicalize_funcptr_for_compare and
16964         gen_canonicalize_funcptr_for_compare.
16965         * expr.c (do_store_flag): Likewise.
16967 2015-06-30  Tom de Vries  <tom@codesourcery.com>
16969         PR tree-optimization/66652
16970         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
16971         max_loop_iterations to determine if nit + 1 overflows.
16973 2015-06-30  Richard Biener  <rguenther@suse.de>
16975         * tree-vrp.c (register_edge_assert_for_2): Also register
16976         asserts for dominating conversion results.
16978 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
16980         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
16981         field in struct iv.
16983 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
16985         PR target/66509
16986         * configure.ac: Fix filds and fildq test for 64-bit.
16987         * configure: Regenerated.
16989 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
16991         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
16992         (nvptx_reorg): Here.  Keep the non-subreg pieces.
16994 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
16996         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
16997         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
16999 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
17001         * config/i386/i386.md (*jcc_1): Use %! in asm template.
17002         Set attribute "length_nobnd" instead of "length".
17003         (*jcc_2): Ditto.
17004         (jump): Ditto.
17005         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
17007 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
17009         * config/nios2/nios2.c (nios2_delegitimize_address): Make
17010         assert less restrictive.
17012 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17014         PR fortran/66605
17015         * cgraphunit.c (cgraph_node::finalize_function): Do not call
17016         do_warn_unused_parameter.
17017         * function.c (do_warn_unused_parameter): Move from here.
17018         * function.h (do_warn_unused_parameter): Do not declare.
17020 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17022         PR target/65697
17023         * gcc.target/arm/armv-sync-comp-swap.c: New.
17024         * gcc.target/arm/armv-sync-op-acquire.c: New.
17025         * gcc.target/arm/armv-sync-op-full.c: New.
17026         * gcc.target/arm/armv-sync-op-release.c: New.
17028 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17030         PR target/65697
17031         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
17032         initial acquire barrier with final barrier.
17034 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17036         PR target/65697
17037         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
17038         initial acquire barrier with final barrier.
17040 2015-06-29  Richard Henderson  <rth@redhat.com>
17042         * config/i386/constraints.md (Bf): New constraint.
17043         * config/i386/i386-c.c (ix86_target_macros): Define
17044         __GCC_ASM_FLAG_OUTPUTS__.
17045         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
17046         as flags outputs.
17047         * doc/extend.texi (FlagOutputOperands): Document them.
17049 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
17051         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
17052         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
17053         unspec name.
17054         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
17055         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
17056         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
17057         (aarch64_symbol_context): Ditto.
17058         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
17059         and use new pattern name.
17060         (aarch64_expand_mov_immediate): Ditto.
17061         (aarch64_print_operand): Ditto.
17062         (aarch64_classify_tls_symbol): Ditto.
17064 2015-06-29  Marek Polacek  <polacek@redhat.com>
17065             Marc Glisse  <marc.glisse@inria.fr>
17067         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
17068         * match.pd: ... pattern here.
17070 2015-06-29  Tom de Vries  <tom@codesourcery.com>
17072         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
17073         function structure.
17075 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17077         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
17078         feature description, split out the native option, add a link to
17079         the feature documentation, rearrange and slightly rewrite text.
17080         (Aarch64 options, -mcpu): Likewise.
17081         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
17082         +rdma implies Adv. SIMD.
17084 2015-06-29  Marek Polacek  <polacek@redhat.com>
17086         PR c/66322
17087         * function.c (stack_protect_epilogue): Remove a cast to int.
17088         * doc/invoke.texi: Update -Wswitch-bool description.
17090 2015-06-29  Richard Biener  <rguenther@suse.de>
17092         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
17093         * fold-const.c (fold_binary_loc): Move &A - &B simplification
17094         via ptr_difference_const ...
17095         * match.pd: ... here.
17096         When matching (X ^ Y) == Y also match with swapped operands.
17098 2015-06-29  Richard Biener  <rguenther@suse.de>
17100         * lto-streamer.h (LTO_major_version): Bump to 5.
17102 2015-06-29  Richard Biener  <rguenther@suse.de>
17104         PR tree-optimization/66677
17105         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
17106         STMT_VINFO_VEC_STMT clobbering less strict.
17108 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
17110         PR middle-end/64130
17111         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
17112         division, compute max and min when value ranges for dividend and
17113         divisor are available.
17115 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
17116             Sandra Loosemore <sandra@codesourcery.com>
17118         * regrename.h (regrename_do_replace): Change to return bool.
17119         * regrename.c (rename_chains): Check return value of
17120         regname_do_replace.
17121         (regrename_do_replace): Re-validate the modified insns and
17122         return bool status.
17123         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
17124         Update to match rename_chains changes.
17125         * config/c6x/c6x.c (try_rename_operands): Assert that
17126         regrename_do_replace returns true.
17128 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
17130         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
17131         operand 2 here.  Use copy_addr_to_reg to copy non-index
17132         register operand 2 to a temporary.
17133         (<mode>_stx): Ditto for operand 1.
17134         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
17135         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
17136         (ix86_store_bounds): Ditto.
17138 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
17140         * print-tree.c (print_node) [TREE_VEC]: Print its length.
17142 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
17144         * gimple.c (gimple_call_set_fndecl): Remove.
17145         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
17146         build1_loc directly instead of build_fold_addr_expr_loc.
17148 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
17150         * hash-map.h (hash_map::traverse): Use the definition of the
17151         Key typedef rather than the typedef itself.
17153 2015-06-26  Martin Jambor  <mjambor@suse.cz>
17155         PR debug/66301
17156         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
17157         NULL instead of calling dump_enabled_p.
17159 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17161         * config/aarch64/aarch64.opt: (override): New.
17162         * doc/invoke.texi (override): Document.
17163         * config/aarch64/aarch64.c (aarch64_flag_desc): New
17164         (aarch64_fusible_pairs): Likewise.
17165         (aarch64_tuning_flags): Likewise.
17166         (aarch64_tuning_override_function): Likewise.
17167         (aarch64_tuning_override_functions): Likewise.
17168         (aarch64_parse_one_option_token): Likewise.
17169         (aarch64_parse_boolean_options): Likewise.
17170         (aarch64_parse_fuse_string): Likewise.
17171         (aarch64_parse_tune_string): Likewise.
17172         (aarch64_parse_one_override_token): Likewise.
17173         (aarch64_parse_override_string): Likewise.
17174         (aarch64_override_options): Parse the -override string if it
17175         is present.
17177 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17179         * config/aarch64/aarch64-protos.h (tune_params): Remove
17180         const from members.
17181         (aarch64_tune_params): Remove const, change to no longer be
17182         a pointer.
17183         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
17184         change to no longer be a pointer, initialize to generic_tunings.
17185         (aarch64_min_divisions_for_recip_mul): Change dereference of
17186         aarch64_tune_params to member access.
17187         (aarch64_reassociation_width): Likewise.
17188         (aarch64_rtx_mult_cost): Likewise.
17189         (aarch64_address_cost): Likewise.
17190         (aarch64_branch_cost): Likewise.
17191         (aarch64_rtx_costs): Likewise.
17192         (aarch64_register_move_cost): Likewise.
17193         (aarch64_memory_move_cost): Likewise.
17194         (aarch64_sched_issue_rate): Likewise.
17195         (aarch64_builtin_vectorization_cost): Likewise.
17196         (aarch64_override_options): Take a copy of the selected tuning
17197         struct in to aarch64_tune_params, rather than just setting
17198         a pointer, change dereferences of aarch64_tune_params to member
17199         accesses.
17200         (aarch64_override_options_after_change): Change dereferences of
17201         aarch64_tune_params to member access.
17202         (aarch64_macro_fusion_p): Likewise.
17203         (aarch_macro_fusion_pair_p): Likewise.
17204         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
17206 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17208         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
17209         (aarch64_tune_flags): Likewise.
17210         (AARCH64_TUNE_FMA_STEERING): Likewise.
17211         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
17212         to AARCH64_FL_USE_FMA_STEERING_PASS.
17213         (cortex-a57.cortex-a53): Likewise.
17214         (cortex-a72): Use cortexa72_tunings.
17215         (cortex-a72.cortex-a53): Likewise.
17216         (exynos-m1): Likewise.
17217         * config/aarch64/aarch64-protos.h (tune_params): Add
17218         a field: extra_tuning_flags.
17219         * config/aarch64/aarch64-tuning-flags.def: New.
17220         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
17221         (aarch64_extra_tuning_flags): Likewise.
17222         (aarch64_tune_params): Declare here.
17223         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
17224         (cortexa53_tunings): Likewise.
17225         (cortexa57_tunings): Likewise.
17226         (thunderx_tunings): Likewise.
17227         (xgene1_tunings): Likewise.
17228         (cortexa72_tunings): New.
17229         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
17230          (gate): Check against aarch64_tune_params.
17231         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
17232         aarch64-protos.h.
17234 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17236         * config/aarch64/aarch64-fusion-pairs.def: New.
17237         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
17238         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
17239         aarch64_fusion_pairs.
17240         (AARCH64_FUSE_MOV_MOVK): Likewise.
17241         (AARCH64_FUSE_ADRP_ADD): Likewise.
17242         (AARCH64_FUSE_MOVK_MOVK): Likewise.
17243         (AARCH64_FUSE_ADRP_LDR): Likewise.
17244         (AARCH64_FUSE_CMP_BRANCH): Likewise.
17246 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
17248         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
17249         SYMBOL_SMALL_GOT_28K.
17250         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
17251         relocation modifiers.
17252         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
17253         (ldr_got_small_28k_<mode>): New.
17254         (ldr_got_small_28k_sidi): New.
17255         * config/aarch64/iterators.md (got_modifier): New mode iterator.
17256         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
17257         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17258         SYMBOL_SMALL_GOT_28K.
17259         (aarch64_rtx_costs): Add costs for new instruction sequences.
17260         (initialize_aarch64_code_model): Initialize new model.
17261         (aarch64_classify_symbol): Recognize new model and new symbol classification.
17262         (aarch64_asm_preferred_eh_data_format): Support new model.
17263         (aarch64_load_symref_appropriately): Generate new instruction
17264         sequences for -fpic.
17265         (TARGET_USE_PSEUDO_PIC_REG): New definition.
17266         (aarch64_use_pseudo_pic_reg): New function.
17268 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
17270         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17271         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
17272         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
17273         (aarch64_expand_mov_immediate): Ditto.
17274         (aarch64_print_operand): Ditto.
17275         (aarch64_classify_symbol): Ditto.
17277 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
17279         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
17281 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
17283         PR bootstrap/66638
17284         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
17285         assertion failed.  Remove assertion itself.
17287 2015-06-26  Richard Biener  <rguenther@suse.de>
17289         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
17290         and -A CMP CST -> A CMP -CST which is redundant with a pattern
17291         in match.pd.
17292         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
17293         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
17294         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
17295         * match.pd: ... patterns here.
17297 2015-06-26  Marek Polacek  <polacek@redhat.com>
17299         * match.pd ((x | y) & ~(x & y) -> x ^ y,
17300         (x | y) & (~x ^ y) -> x & y): New patterns.
17302 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
17304         * rtl.h (emit): Add an optional boolean parameter to control
17305         whether barriers are emitted.
17306         * emit-rtl.c (emit): Likewise.
17307         * gensupport.c (get_emit_function): Return null rather than "emit".
17308         * genemit.c (gen_emit_seq): Handle the null return value.
17309         Don't emit barriers after the final instruction in the sequence.
17310         * gentarget-def.c (main): Don't emit barriers after the instruction.
17312 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17314         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
17315         TARGET_UNIFIED_ASM.
17317 2015-06-26  Richard Biener  <rguenther@suse.de>
17319         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
17321 2015-06-26  Richard Biener  <rguenther@suse.de>
17323         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
17324         irrespective on whether the inner operation has a single use
17325         of both off are constant.
17327 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
17328             Segher Boessenkool  <segher@kernel.crashing.org>
17330         PR target/66412
17331         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
17332         before doing PUT_MODE or PUT_CODE on operands to avoid
17333         in-place RTX modification.
17335 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
17337         * gentarget-def.c (def_target_insn): Cast return of strtol to
17338         unsigned int.
17340 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
17342         * gimple.h (gimple_call_set_fn): Move inline function.
17343         * gimple.c (gimple_call_set_fn): Relocate here.
17345 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
17347         PR target/65979
17348         PR target/66611
17349         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
17350         the replacement insn will work.
17352 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
17354         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
17355         by default.
17357 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
17359         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
17360         * cgraph.h: Include ipa-ref.h and plugin-api.h.
17361         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
17362         (symtab_node::address_can_be_compared_p): Move function.
17363         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
17364         definition here.
17365         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
17366         * auto-profile.c: Likewise.
17367         * bb-reorder.c: Likewise.
17368         * builtins.c: Likewise.
17369         * calls.c: Likewise.
17370         * cfgexpand.c: Likewise.
17371         * cgraphbuild.c: Likewise.
17372         * cgraphclones.c: Likewise.
17373         * cgraphunit.c: Likewise.
17374         * combine.c: Likewise.
17375         * coverage.c: Likewise.
17376         * data-streamer-in.c: Likewise.
17377         * data-streamer-out.c: Likewise.
17378         * data-streamer.c: Likewise.
17379         * dbxout.c: Likewise.
17380         * dwarf2out.c: Likewise.
17381         * except.c: Likewise.
17382         * expr.c: Likewise.
17383         * final.c: Likewise.
17384         * fold-const.c: Likewise.
17385         * ggc-page.c: Likewise.
17386         * gimple-fold.c: Likewise.
17387         * gimple-iterator.c: Likewise.
17388         * gimple-pretty-print.c: Likewise.
17389         * gimple-streamer-in.c: Likewise.
17390         * gimple-streamer-out.c: Likewise.
17391         * gimple.c: Likewise.
17392         * gimplify.c: Likewise.
17393         * ipa-chkp.c: Likewise.
17394         * ipa-comdats.c: Likewise.
17395         * ipa-cp.c: Likewise.
17396         * ipa-devirt.c: Likewise.
17397         * ipa-icf-gimple.c: Likewise.
17398         * ipa-icf.c: Likewise.
17399         * ipa-inline-analysis.c: Likewise.
17400         * ipa-inline-transform.c: Likewise.
17401         * ipa-inline.c: Likewise.
17402         * ipa-polymorphic-call.c: Likewise.
17403         * ipa-profile.c: Likewise.
17404         * ipa-prop.c: Likewise.
17405         * ipa-pure-const.c: Likewise.
17406         * ipa-ref.c: Likewise.
17407         * ipa-reference.c: Likewise.
17408         * ipa-split.c: Likewise.
17409         * ipa-utils.c: Likewise.
17410         * ipa-visibility.c: Likewise.
17411         * ipa.c: Likewise.
17412         * langhooks.c: Likewise.
17413         * lto-cgraph.c: Likewise.
17414         * lto-compress.c: Likewise.
17415         * lto-opts.c: Likewise.
17416         * lto-section-in.c: Likewise.
17417         * lto-section-out.c: Likewise.
17418         * lto-streamer-in.c: Likewise.
17419         * lto-streamer-out.c: Likewise.
17420         * lto-streamer.c: Likewise.
17421         * omp-low.c: Likewise.
17422         * opts-global.c: Likewise.
17423         * passes.c: Likewise.
17424         * predict.c: Likewise.
17425         * print-tree.c: Likewise.
17426         * profile.c: Likewise.
17427         * ree.c: Likewise.
17428         * sanopt.c: Likewise.
17429         * stor-layout.c: Likewise.
17430         * symtab.c: Likewise.
17431         * toplev.c: Likewise.
17432         * trans-mem.c: Likewise.
17433         * tree-cfg.c: Likewise.
17434         * tree-chkp.c: Likewise.
17435         * tree-eh.c: Likewise.
17436         * tree-emutls.c: Likewise.
17437         * tree-inline.c: Likewise.
17438         * tree-nested.c: Likewise.
17439         * tree-parloops.c: Likewise.
17440         * tree-pretty-print.c: Likewise.
17441         * tree-profile.c: Likewise.
17442         * tree-sra.c: Likewise.
17443         * tree-ssa-alias.c: Likewise.
17444         * tree-ssa-live.c: Likewise.
17445         * tree-ssa-loop-ivcanon.c: Likewise.
17446         * tree-ssa-loop-ivopts.c: Likewise.
17447         * tree-ssa-pre.c: Likewise.
17448         * tree-ssa-sccvn.c: Likewise.
17449         * tree-ssa-strlen.c: Likewise.
17450         * tree-ssa-structalias.c: Likewise.
17451         * tree-streamer-in.c: Likewise.
17452         * tree-streamer-out.c: Likewise.
17453         * tree-streamer.c: Likewise.
17454         * tree-switch-conversion.c: Likewise.
17455         * tree-tailcall.c: Likewise.
17456         * tree-vect-data-refs.c: Likewise.
17457         * tree-vect-stmts.c: Likewise.
17458         * tree-vectorizer.c: Likewise.
17459         * tree.c: Likewise.
17460         * tsan.c: Likewise.
17461         * ubsan.c: Likewise.
17462         * value-prof.c: Likewise.
17463         * varasm.c: Likewise.
17464         * varpool.c: Likewise.
17465         * config/arm/arm.c: Likewise.
17466         * config/bfin/bfin.c: Likewise.
17467         * config/c6x/c6x.c: Likewise.
17468         * config/cris/cris.c: Likewise.
17469         * config/darwin-c.c: Likewise.
17470         * config/darwin.c: Likewise.
17471         * config/i386/i386.c: Likewise.
17472         * config/i386/winnt.c: Likewise.
17473         * config/microblaze/microblaze.c: Likewise.
17474         * config/mips/mips.c: Likewise.
17475         * config/rs6000/rs6000.c: Likewise.
17476         * config/rx/rx.c: Likewise.
17477         * config/s390/s390.c: Likewise.
17478         * config/tilegx/mul-tables.c: Likewise.
17480 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17482         * config/aarch64/aarch64.c, config/alpha/alpha.c,
17483         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
17484         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
17485         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
17486         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17487         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17488         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17489         config/microblaze/microblaze.c, config/mips/mips.c,
17490         config/mmix/mmix.c, config/mn10300/mn10300.c,
17491         config/moxie/moxie.c, config/msp430/msp430.c,
17492         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17493         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17494         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17495         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17496         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17497         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17498         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
17499         target-def.h include.
17500         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
17502 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17504         * Makefile.in (TARGET_DEF): Add target-insns.def.
17505         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
17506         (build/gentarget-def.o): New rule.
17507         (genprogrtl): Add target-def.
17508         * target-insns.def, gentarget-def.c: New files.
17509         * target.def: Add targetm.have_* and targetm.gen_* hooks,
17510         based on the contents of target-insns.def.
17511         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
17512         (HAVE_return, gen_return): Delete.
17513         * target-def.h: Include insn-target-def.h.
17514         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
17515         instead of direct calls.  Rely on them to do the appropriate assertions.
17516         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
17517         (convert_jumps_to_returns): Use targetm interface instead of
17518         direct calls.
17519         (thread_prologue_and_epilogue_insns): Likewise.
17520         * reorg.c (find_end_label, dbr_schedule): Likewise.
17521         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17522         * shrink-wrap.c (convert_to_simple_return): Likewise.
17523         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17525 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17527         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17528         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17529         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17530         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17531         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17532         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17533         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17534         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17535         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17536         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17537         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17538         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17539         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17540         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17541         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17542         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17543         includes to end.
17545 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17547         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17548         (unbounded_int_hashmap_traits::key_type): Likewise.
17549         * hash-map.h (hash_map): Get the key type from the traits.
17550         * hash-traits.h (default_hash_traits): By default, inherit from the
17551         template parameter.
17552         * alias.c (alias_set_traits): Delete.
17553         (alias_set_entry_d::children): Use alias_set_hash as the first
17554         template parameter.
17555         (record_alias_subset): Update accordingly.
17556         * except.c (tree_hash_traits): Delete.
17557         (type_to_runtime_map): Use tree_hash as the first template parameter.
17558         (init_eh): Update accordingly.
17559         * genmatch.c (capture_id_map_hasher): Delete.
17560         (cid_map_t): Use nofree_string_hash as first template parameter.
17561         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17562         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17563         Use symbol_compare_hash as the first template parameter in
17564         subdivide_hash_map.
17565         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17566         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17567         template parameter.
17568         * passes.c (pass_registry_hasher): Delete.
17569         (name_to_pass_map): Use nofree_string_hash as the first template
17570         parameter.
17571         (register_pass_name): Update accordingly.
17572         * sanopt.c (sanopt_tree_map_traits): Delete.
17573         (sanopt_tree_triplet_map_traits): Delete.
17574         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17575         template parameter.
17576         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17577         the first template parameter.
17578         * sese.c (rename_map_hasher): Delete.
17579         (rename_map_type): Use tree_ssa_name_hash as the first template
17580         parameter.
17581         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17582         (function_summary::m_map): Use map_hash as the first template
17583         parameter.
17584         (function_summary::release): Update accordingly.
17585         * tree-if-conv.c (phi_args_hash_traits): Delete.
17586         (predicate_scalar_phi): Use tree_operand_hash as the first template
17587         parameter to phi_arg_map.
17588         * tree-inline.h (dependence_hasher): Delete.
17589         (copy_body_data::dependence_map): Use dependence_hash as the first
17590         template parameter.
17591         * tree-inline.c (remap_dependence_clique): Update accordingly.
17592         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17593         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17594         parameter.
17595         (addr_stridxptr): Update accordingly.
17596         * value-prof.c (profile_id_traits): Delete.
17597         (cgraph_node_map): Use profile_id_hash as the first template
17598         parameter.
17599         (init_node_map): Update accordingly.
17600         * config/alpha/alpha.c (string_traits): Delete.
17601         (machine_function::links): Use nofree_string_hash as the first
17602         template parameter.
17603         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17604         * config/m32c/m32c.c (pragma_traits): Delete.
17605         (pragma_htab): Use nofree_string_hash as the first template parameter.
17606         (m32c_note_pragma_address): Update accordingly.
17607         * config/mep/mep.c (pragma_traits): Delete.
17608         (pragma_htab): Use nofree_string_hash as the first template parameter.
17609         (mep_note_pragma_flag): Update accordingly.
17610         * config/mips/mips.c (mips16_flip_traits): Delete.
17611         (mflip_mips16_htab): Use nofree_string_hash as the first template
17612         parameter.
17613         (mflip_mips16_use_mips16_p): Update accordingly.
17614         (local_alias_traits): Delete.
17615         (mips16_local_aliases): Use nofree_string_hash as the first template
17616         parameter.
17617         (mips16_local_alias): Update accordingly.
17619 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17621         * hash-map-traits.h (default_hashmap_traits): Delete.
17623 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17625         * hash-map-traits.h (unbounded_hashmap_traits): New class.
17626         (unbounded_int_hashmap_traits): Likewise.
17627         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17629 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17631         * ipa-icf.h (symbol_compare_hash): New class.
17632         (symbol_compare_hashmap_traits): Use it.
17633         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17634         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17635         (mem_alloc_description::reverse_mem_map_t): Remove redundant
17636         default_hashmap_traits.
17637         * sanopt.c (sanopt_tree_triplet_hash): New class.
17638         (sanopt_tree_triplet_map_traits): Use it.
17640 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17642         * gengtype-parse.c (require_template_declaration): Allow '+' in
17643         template parameters.  Consolidate cases.
17644         * hash-traits.h (int_hash): New class.
17645         * alias.c (alias_set_hash): New structure.
17646         (alias_set_traits): Use it.
17647         * symbol-summary.h (function_summary::map_hash): New class.
17648         (function_summary::summary_hashmap_traits): Use it.
17649         * tree-inline.h (dependence_hash): New class.
17650         (dependence_hasher): Use it.
17651         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17652         * value-prof.c (profile_id_hash): New class.
17653         (profile_id_traits): Use it.
17655 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17657         * config/mips/mips.c (mips16_flip_traits): Use it.
17658         (local_alias_traits, mips16_local_aliases): Convert from a map of
17659         rtxes to a map of symbol names.
17660         (mips16_local_alias): Update accordingly.
17662 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17664         * hash-traits.h (string_hash, nofree_string_hash): New classes.
17665         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17666         * passes.c (pass_registry_hasher): Likewise.
17667         * config/alpha/alpha.c (string_traits): Likewise.
17668         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17669         * config/m32c/m32c.c (pragma_traits): Likewise.
17670         * config/mep/mep.c (pragma_traits): Likewise.
17672 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17674         * tree-hash-traits.h (tree_hash): New class.
17675         * except.c: Include tree-hash-traits.h.
17676         (tree_hash_traits): Use tree_hash.
17678 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17680         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17681         * sese.c: Include tree-hash-traits.h.
17682         (rename_map_hasher): Use tree_ssa_name_hasher.
17684 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17686         * tree-hash-traits.h (tree_decl_hash): New class.
17687         * tree-ssa-strlen.c: Include tree-hash-traits.h.
17688         (stridxlist_hash_traits): Use tree_decl_hash.
17690 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17692         * tree-hash-traits.h: New file.
17693         (tree_operand_hash): New class.
17694         * sanopt.c: Include tree-hash-traits.h.
17695         (sanopt_tree_map_traits): Use tree_operand_hash.
17696         * tree-if-conv.c: Include tree-hash-traits.h.
17697         (phi_args_hash_traits): Use tree_operand_hash.
17698         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17699         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17701 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17703         * hash-map-traits.h: Include hash-traits.h.
17704         (simple_hashmap_traits): New class.
17705         * mem-stats.h (hash_map): Change the default traits to
17706         simple_hashmap_traits<default_hash_traits<Key> >.
17708 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17710         * hash-table.h: Update comments.
17712 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17714         * hash-traits.h (default_hash_traits): New structure.
17715         * hash-set.h (default_hashset_traits): Delete.
17716         (hash_set): Use default_hash_traits<Key> instead of
17717         default_hashset_traits.  Delete hash_entry type and use Key directly.
17718         * ipa-devirt.c (pair_traits): Delete.
17719         (default_hash_traits <type_pair>): Override.
17720         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17721         (odr_types_equivalent_p, add_type_duplicate): Likewise.
17723 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17725         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17727 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17729         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17730         (has_is_empty, is_empty_helper): Delete.
17731         (has_mark_deleted, mark_deleted_helper): Delete.
17732         (has_mark_empty, mark_empty_helper): Delete.
17733         (hash_table::is_deleted): Call the Descriptor unconditionally.
17734         (hash_table::is_empty): Likewise.
17735         (hash_table::mark_deleted): Likewise.
17736         (hash_table::mark_empty): Likewise.
17738 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17740         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
17741         redundant typedefs and members.
17742         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
17743         redundant typedefs.
17744         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17745         * ipa-devirt.c (odr_name_hasher): Likewise.
17746         (polymorphic_call_target_hasher): Likewise.
17747         * ira-costs.c (cost_classes_hasher): Likewise.
17748         * statistics.c (stats_counter_hasher): Likewise.
17749         * trans-mem.c (log_entry_hasher): Likewise.
17750         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17751         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17752         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17753         * var-tracking.c (variable_hasher): Likewise.
17754         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17755         Remove redundant typedefs and members.
17757 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17759         * hash-traits.h (ggc_cache_hasher): Rename to...
17760         (ggc_cache_remove): ...this and remove typedefs.
17761         (ggc_cache_ptr_hash): New class.
17762         * hash-table.h: Update commentary.
17763         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17764         rather than ggc_cache_hasher.
17765         (const_wide_int_hasher, reg_attr_hasher): Likewise.
17766         (const_double_hasher, const_fixed_hasher): Likewise.
17767         * function.c (insn_cache_hasher): Likewise.
17768         * trans-mem.c (tm_wrapper_hasher): Likewise.
17769         * tree.h (tree_decl_map_cache_hasher): Likewise.
17770         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
17771         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
17772         * ubsan.c (tree_type_map_cache_hasher): Likewise.
17773         * varasm.c (tm_clone_hasher): Likewise.
17774         * config/i386/i386.c (dllimport_hasher): Likewise.
17775         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
17776         (tree_hasher): Likewise.
17778 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17780         * hash-traits.h (ggc_hasher): Rename to...
17781         (ggc_remover): ...this and remove typedefs.
17782         (ggc_cache_hasher): Update accordingly.  Add typedefs.
17783         (ggc_ptr_hash): New class.
17784         * hash-table.h: Update comment.
17785         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
17786         ggc_hasher.
17787         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
17788         (tree_descriptor_hasher): Likewise.
17789         * cgraph.c (function_version_hasher): Likewise.
17790         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
17791         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
17792         (dw_loc_list_hasher, addr_hasher): Likewise.
17793         * function.h (used_type_hasher): Likewise.
17794         * function.c (temp_address_hasher): Likewise.
17795         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
17796         * libfuncs.h (libfunc_hasher): Likewise.
17797         * lto-streamer.h (decl_state_hasher): Likewise.
17798         * optabs.c (libfunc_decl_hasher): Likewise.
17799         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
17800         * varasm.c (section_hasher, object_block_hasher): Likewise.
17801         (const_rtx_desc_hasher): Likewise.
17802         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
17803         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
17805 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17807         * hash-traits.h (free_ptr_hash): New class.
17808         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
17809         rather than typed_free_remove.  Remove redudant typedefs.
17810         (external_ref_hasher): Likewise.
17811         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
17812         (ehspec_hasher): Likewise.
17813         * ggc-common.c (saving_hasher): Likewise.
17814         * gimplify.c (gimplify_hasher): Likewise.
17815         * haifa-sched.c (delay_i2_hasher): Likewise.
17816         * loop-invariant.c (invariant_expr_hasher): Likewise.
17817         * loop-iv.c (biv_entry_hasher): Likewise.
17818         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
17819         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
17820         * tree-cfg.c (locus_discrim_hasher): Likewise.
17821         * tree-eh.c (finally_tree_hasher): Likewise.
17822         * tree-into-ssa.c (var_info_hasher): Likewise.
17823         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
17824         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
17825         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
17826         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
17827         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
17828         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
17829         (shared_bitmap_hasher): Likewise.
17830         * tree-ssa-threadupdate.c (redirection_data): Likewise.
17831         * tree-vectorizer.h (peel_info_hasher): Likewise.
17832         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
17833         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
17835 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17837         * hash-table.h: Update comments.
17838         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
17839         (nofree_ptr_hash): New class.
17840         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
17841         than typed_noop_remove.  Remove redudant typedefs.
17842         * attribs.c (attribute_hasher): Likewise.
17843         * cfg.c (bb_copy_hasher): Likewise.
17844         * cselib.c (cselib_hasher): Likewise.
17845         * dse.c (invariant_group_base_hasher): Likewise.
17846         * dwarf2cfi.c (trace_info_hasher): Likewise.
17847         * dwarf2out.c (macinfo_entry_hasher): Likewise.
17848         (comdat_type_hasher, loc_list_hasher): Likewise.
17849         * gcse.c (pre_ldst_expr_hasher): Likewise.
17850         * genmatch.c (id_base): Likewise.
17851         * genrecog.c (test_pattern_hasher): Likewise.
17852         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
17853         * haifa-sched.c (delay_i1_hasher): Likewise.
17854         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
17855         * ipa-icf.h (congruence_class_group_hash): Likewise.
17856         * ipa-profile.c (histogram_hash): Likewise.
17857         * ira-color.c (allocno_hard_regs_hasher): Likewise.
17858         * lto-streamer.h (string_slot_hasher): Likewise.
17859         * lto-streamer.c (tree_entry_hasher): Likewise.
17860         * plugin.c (event_hasher): Likewise.
17861         * postreload-gcse.c (expr_hasher): Likewise.
17862         * store-motion.c (st_expr_hasher): Likewise.
17863         * tree-sra.c (uid_decl_hasher): Likewise.
17864         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
17865         (ssa_name_var_hash): Likewise.
17866         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
17867         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
17868         * tree-ssa-pre.c (pre_expr_d): Likewise.
17869         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
17870         * vtable-verify.h (registration_hasher): Likewise.
17871         * vtable-verify.c (vtbl_map_hasher): Likewise.
17872         * config/arm/arm.c (libcall_hasher): Likewise.
17873         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
17874         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
17875         * config/sol2.c (comdat_entry_hasher): Likewise.
17876         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
17877         (print_fold_checksum, fold_checksum_tree): Likewise.
17878         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
17879         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
17880         (fold_build_call_array_loc): Likewise.
17881         * tree-ssa-ccp.c (gimple_htab): Likewise.
17882         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
17883         rather than pointer_type.
17885 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17887         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
17888         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
17890 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17892         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
17893         (ggc_hasher::ggc_mx): Likewise.
17894         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
17895         that duplicate ggc_hasher ones.
17897 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17899         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
17900         (gt_cleare_cache): Check here for deleted and empty entries.
17901         Replace handle_cache_entry with a call to keep_cache_entry.
17902         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
17903         (ggc_cache_hasher::keep_cache_entry): New function.
17904         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
17905         (tm_wrapper_hasher::keep_cache_entry): New function.
17906         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
17907         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17908         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
17909         (type_cache_hasher::keep_cache_entry): New function.
17910         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
17911         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
17912         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
17913         (tree_type_map_cache_hasher::keep_cache_entry): New function.
17914         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
17915         (tm_clone_hasher::keep_cache_entry): New function.
17916         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
17917         (dllimport_hasher::keep_cache_entry): New function.
17919 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17921         * hash-table.h: Include hash-traits.h.
17922         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
17923         (ggc_cache_hasher): Move to...
17924         * hash-traits.h: ...this new file.
17926 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
17928         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
17929         struct cl_optimization.
17930         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
17931         * tree.c (make_node_stat): Allocate cl_optimization struct.
17932         (copy_node_stat): Allocate and copy cl_optimization struct.
17934 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
17936         * function.h (struct incoming_args): Move struct.
17937         (pass_by_reference, reference_callee_copied): Remove prototypes.
17938         * emit-rtl.h (struct incoming_args): Relocate struct here.
17939         * calls.h (pass_by_reference, reference_callee_copied): Relocate
17940         prototypes here.
17941         * function.c (pass_by_reference, reference_callee_copied): Move.
17942         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
17943         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
17944         * ipa-chkp.c: Include calls.h.
17946 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
17948         * alias.h (alias_set_type): Move typedef.
17949         * coretypes.h (alias_set_type): Relocate typedef here.
17950         * rtl.h: Don't include alias.h.
17952 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
17954         * cgraph.h (cgraph_rtl_info): Move to rtl.h
17955         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
17956         and instance.
17957         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
17958         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
17959         doesn't exist.
17960         * calls.c: Include hard-reg-set.h before rtl.h.
17961         * ira.c: Likewise.
17963 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17964             Vladimir Makarov  <vmakarov@redhat.com>
17966         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
17967         Add assert.
17969 2015-06-25  Richard Biener  <rguenther@suse.de>
17971         * fold-const.c (fold_binary_loc): Move simplification of
17972         (X <<>> C1) & C2 ...
17973         * match.pd: ... here.
17975 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
17977         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
17979 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
17981         * match.pd: Add patterns for vec_conds between 1 and 0.
17983 2015-06-25  Richard Biener  <rguenther@suse.de>
17985         * tree-vect-stmts.c (vectorizable_conversion): Do not set
17986         STMT_VINFO_VEC_STMT for SLP.
17987         (vectorizable_store): Likewise.
17988         (vectorizable_load): Likewise.
17989         (vect_transform_stmt): Catch SLP vectorization clobbering
17990         STMT_VINFO_VEC_STMT.
17992 2015-06-25  Richard Biener  <rguenther@suse.de>
17994         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
17995         dumping.
17996         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
17997         cleanup resulting dead code and parameters.
17998         (vect_transform_slp_perm_load): Adjust.
18000 2015-06-25  Nick Clifton  <nickc@redhat.com>
18002         * config/bfin/bfin.c (bfin_expand_prologue): Set
18003         current_function_static_stack_size if flag_stack_usage_info is set.
18004         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
18005         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
18006         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18007         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
18009 2015-06-25  Tom de Vries  <tom@codesourcery.com>
18011         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
18012         comment that the generated IV is unsigned.
18014 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18016         PR target/29693
18017         * config/arm/arm.c (arm_dbx_register_number): Return
18018         DWARF_FRAME_REGISTERS by default.
18020 2015-06-25  Tom de Vries  <tom@codesourcery.com>
18022         * dominance.c (calculate_dominance_info): Fix verify_dominators call
18023         argument.  Call verify_dominator when reusing dominator info.
18025 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
18027         PR target/66563
18028         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
18029         an additional element of the unspec vector.  Modify indices
18030         of operands.
18031         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
18032         * config/sh/sh.c (prepare_move_operands): Pass incremented
18033         const_int to gen_GOTaddr2picreg.
18034         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
18036 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
18038         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
18039         Condition on TARGET_FLOAT.
18041 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
18043         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
18044         and (no)crypto.
18046 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
18048         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
18050         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
18051         aarch64_err_no_fpadvsimd.
18053         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
18054         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
18055         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
18056         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
18057         Turn error into assert, test TARGET_FLOAT.
18058         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
18059         TARGET_FLOAT.
18061 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
18063         PR debug/66482
18064         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
18066 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
18068         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
18070 2015-06-24  Renlin Li <renlin.li@arm.com>
18072         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
18073         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
18075 2015-06-24  Richard Biener  <rguenther@suse.de>
18077         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
18078         (main): Likewise.
18079         (lower_opt_convert): Support lowering of conditional view_convert.
18080         (parser::parse_operation): Likewise.
18081         (parser::parse_for): Likewise.
18083 2015-06-24  Renlin Li  <renlin.li@arm.com>
18085         * varasm.c (emit_local): Use unsigned int for align variable.
18087 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18089         PR target/63408
18090         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
18091         for negative numbers.
18093 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18095         PR rtl-optimization/66306
18096         * reload.c (find_reloads): Swap the match_dup info for
18097         commutative operands.
18099 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18101         * config/s390/vx-builtins.md
18102         ("vec_scatter_element<mode>_<non_vec_int>")
18103         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
18104         attribute with bhfgq.
18106 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18108         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
18110 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18112         * config/s390/s390-builtin-types.def: Add flag to indicate the
18113         options under which the function type is needed.
18114         * config/s390/s390-builtins.def: Add flag to indicate the options
18115         under which the builtin is enabled.
18116         * config/s390/s390-builtins.h: Add flags parameter to macro
18117         definitions.
18118         (bflags_for_builtin): New function.
18119         (flags_for_builtin): Renamed to ...
18120         (opflags_for_builtin): ... this.
18121         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
18122         flags_for_builtin to bflags_for_builtin and
18123         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
18124         * config/s390/s390.c: Add initialization of bflags_builtin and
18125         opflags_builtin arrays.
18126         Remove code for flags_builtin.
18127         (s390_init_builtins): Only create builtin function types if one of
18128         their flags is active.
18129         Only create builtins if all of their flags are active.
18130         (s390_expand_builtin): Rename flags_for_builtin to
18131         opflags_for_builtin.
18133 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18135         * config/s390/vecintrin.h: Remove internal builtins.
18137 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18139         * config/s390/s390.c (s390_secondary_reload): Fix check for
18140         GENERAL_REGS register class.
18142 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18144         * config/s390/s390.c (s390_support_vector_misalignment): Call
18145         default implementation for !TARGET_VX.
18147 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18149         * config/s390/s390.c (s390_legitimate_constant_p): Add
18150         TARGET_VX check.
18152 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18154         * config/s390/s390.c (s390_vector_abi): New variable definition.
18155         (s390_check_type_for_vector_abi): New function.
18156         (TARGET_ASM_FILE_END): New macro definition.
18157         (s390_asm_file_end): New function.
18158         (s390_function_arg): Call s390_check_type_for_vector_abi.
18159         (s390_gimplify_va_arg): Likewise.
18160         * configure: Regenerate.
18161         * configure.ac: Check for .gnu_attribute Binutils feature.
18163 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
18165         PR target/65803
18166         * config/bfin/bfin.c (hwloop_optimize): Initialize
18167         JUMP_LABEL for newly created jump.
18169 2015-06-23  Tristan Gingold  <gingold@adacore.com>
18171         * collect-utils.c (collect_wait): Unlink the response file here
18172         instead of...
18173         (do_wait): ...here.
18174         (utils_cleanup): ...and here.
18176 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
18178         * df-scan.c: Don't include target-def.h.
18179         * targhooks.c: Likewise.
18180         * config/arm/arm-c.c: Likewise.
18181         * config/i386/i386-c.c: Likewise.
18182         * config/nds32/nds32-cost.c: Likewise.
18183         * config/nds32/nds32-fp-as-gp.c: Likewise.
18184         * config/nds32/nds32-intrinsic.c: Likewise.
18185         * config/nds32/nds32-isr.c: Likewise.
18186         * config/nds32/nds32-md-auxiliary.c: Likewise.
18187         * config/nds32/nds32-memory-manipulation.c: Likewise.
18188         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18189         * config/nds32/nds32-predicates.c: Likewise.
18191 2015-06-23  Richard Biener  <rguenther@suse.de>
18193         PR tree-optimization/66636
18194         * tree-vect-stmts.c (vectorizable_store): Properly compute the
18195         def type for further defs for strided stores.
18197 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
18199         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
18200         conditional selects.
18201         (setcc_int<mode>, setcc_float<mode>): Reformat.
18203 2015-06-23  Marek Polacek  <polacek@redhat.com>
18205         * match.pd ((x + y) - (x | y) -> x & y,
18206         (x + y) - (x & y) -> x | y): New patterns.
18208 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
18210         PR 65711
18211         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
18212         '-dynamic-linker' within %{!shared: ...}.
18214 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
18216         PR target/66560
18217         * config/i386/predicates.md (addsub_vm_operator): New predicate.
18218         (addsub_vs_operator): Ditto.
18219         (addsub_vs_parallel): Ditto.
18220         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
18221         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
18222         Put minus RTX before plus and adjust vec_merge selector.
18223         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
18224         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
18225         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
18226         (addsub vec_merge splitters): New combiner splitters.
18227         (addsub vec_select/vec_concat splitters): Ditto.
18229 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
18231         PR tree-optimization/66449
18232         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
18233         POINTER_PLUS_EXPR for pointers.
18235 2015-06-23  Alan Modra  <amodra@gmail.com>
18237         * rtlanal.c (commutative_operand_precedence): Correct comments.
18238         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
18239         declaration.  Return an int.  Distinguish REG,REG return from
18240         others.
18241         (struct simplify_plus_minus_op_data): Make local to function.
18242         (simplify_plus_minus): Don't set canonicalized if merely sorting
18243         registers.  Avoid packing ops if nothing changes.  White space fixes.
18245 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
18247         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
18248         -fdump-ada-spec is passed but not if -fsyntax-only is.
18250 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
18252         PR bootstrap/63740
18253         * lra-lives.c (process_bb_lives): Check insn copying the same
18254         reload pseudo and don't create a copy for it.
18256 2015-06-22  Tom de Vries  <tom@codesourcery.com>
18258         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
18259         for cond_stmt.
18261 2015-06-22  Tom de Vries  <tom@codesourcery.com>
18263         * builtins.def (DEF_GOMP_BUILTIN): Test
18264         'flag_tree_parallelize_loops > 1' instead of
18265         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
18267 2015-06-22  Tom de Vries  <tom@codesourcery.com>
18269         * dominance.c (calculate_dominance_info): Verify dominators if
18270         early-out.
18272 2015-06-22  Marek Polacek  <polacek@redhat.com>
18274         * match.pd ((x ^ y) ^ (x | y) -> x & y,
18275         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
18276         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
18277         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
18279 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
18281         PR target/65871
18282         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
18283         cost of embedded comparison.
18285 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18287         PR target/65914
18288         * config/rs6000/predicates.md (altivec_register_operand): Permit
18289         virtual stack registers.
18290         (vsx_register_operand): Likewise.
18291         (vfloat_operand): Likewise.
18292         (vint_operand): Likewise.
18293         (vlogical_operand): Likewise.
18295 2015-06-22  Richard Biener  <rguenther@suse.de>
18297         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
18298         and single_scalar_iteration_cost members.
18299         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
18300         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
18301         (vect_get_single_scalar_iteration_cost): Remove.
18302         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18303         Use LOOP_VINFO_SCALAR_ITERATION_COST.
18304         * tree-vect-loop.c (destroy_loop_vec_info): Free
18305         scalar_cost_vec.
18306         (vect_get_single_scalar_iteration_cost): Compute result into
18307         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
18308         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
18309         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
18310         (vect_estimate_min_profitable_iters): Use them.
18312 2015-06-22  Christian Bruel  <christian.bruel@st.com>
18314         PR target/52144
18315         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
18316         (TARGET_INSERT_ATTRIBUTES): Define.
18317         (thumb_flipper): New var.
18318         * config/arm/arm.opt (-mflip-thumb): New switch.
18320 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
18321             Martin Liska  <mliska@suse.cz>
18323         PR ipa/65908
18324         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
18325         construction of arg_types.
18326         (sem_function::sem_function): Likewise.
18327         (sem_function::~sem_function): Remove destruction of arg_types.
18328         (sem_function::compatible_parm_types_p): New function.
18329         (sem_function::equals_wpa): Reorg matching of return values
18330         and parameter types.
18331         (sem_function::equals_private): Reorg mathcing of argument types.
18332         (sem_function::parse_tree_args): Remove.
18333         * ipa-icf.h (init_wpa): Do not call it.
18334         (parse_tree_args): Remove.
18335         (compatible_parm_types_p): Declare.
18336         (result_type): Remove.
18337         (arg_types): Remove.
18339 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
18341         PR ipa/66351
18342         * ipa-polymorphic-call.c
18343         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
18344         initializing alias oracle; fix formating; set base_alias_set if it
18345         is known.
18347 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
18349         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
18350         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
18351         (find_inc): Likewise.
18352         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
18353         swapping.
18354         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18355         * df-scan.c (df_swap_refs): Remove.
18356         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
18357         * dominance.c (link_roots): Use std::swap instead of manually swapping.
18358         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
18359         * fold-const.c (fold_relational_const): Likewise.
18360         * genattrtab.c (simplify_test_exp): Likewise.
18361         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
18362         gimple_simplify): Likewise.
18363         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
18364         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
18365         * ipa-devirt.c (add_type_duplicate): Likewise.
18366         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
18367         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
18368         * lra.c (lra_create_copy): Likewise.
18369         * lto-streamer-out.c (DFS::DFS): Likewise.
18370         * modulo-sched.c (get_sched_window): Likewise.
18371         * omega.c (omega_pretty_print_problem): Likewise.
18372         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
18373         * reload1.c (reloads_unique_chain_p): Likewise.
18374         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
18375         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
18376         use std::swap.
18377         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
18378         manually swapping.
18379         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
18380         predicate_mem_writes): Likewise.
18381         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
18382         * tree-predcom.c (combine_chains): Likewise.
18383         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
18384         refs_may_alias_p_1): Likewise.
18385         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
18386         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18387         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
18388         number_of_iterations_cond): Likewise.
18389         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18390         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18391         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18392         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
18393         * tree-vrp.c (extract_range_from_binary_expr_1,
18394         extract_range_from_unary_expr_1): Likewise.
18396 2015-06-20  Marek Polacek  <polacek@redhat.com>
18398         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
18400 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
18402         PR target/66591
18403         * config/sh/sh.c (prepare_move_operands): Replace subreg
18404         index term with R0 for base and index addressing.
18406 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
18408         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
18409         op1 is an fp zero.
18410         (movsf_aarch64): Change condition from register_operand to
18411         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
18412         load1.  Change type for alternative 7 to store1.
18413         (movdf_aarch64): Likewise.
18415 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
18417         * config/vax/vax.md: Adjust sign/zero extend patterns to
18418         handle SUBREGs in operands[1].
18420 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18422         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
18423         of manually swapping.
18424         (expand_vec_perm_interleave2): Likewise.
18426 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
18428         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
18429         reuse bounds created for abnormal ssa names.
18431 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
18433         * config/nvptx/nvptx.md (allocate_stack): Rename to...
18434         (allocate_stack_<mode>): ... this, and add :P on both
18435         match_operand and unspec.
18436         (allocate_stack): New expander.
18438 2015-06-19  Christian Bruel  <christian.bruel@st.com>
18440         PR target/66541
18441         PR target/52144
18442         * config/arm/arm.c (arm_set_current_function): Handle
18443         explicit default options.
18445 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
18447         * config/i386/i386.md (*movsicc_noc_zext): New insn.
18448         (zero-extended cmove with mem peephole2): New pattern.
18449         (cmove with mem peephole2): Merge patterns.
18451 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
18453         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
18455 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
18457         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
18458         * config/mips/mips.md (*madd4<mode>): Ditto.
18459         (*nmadd3<mode>) Ditto.
18460         (*nmadd4<mode>_fastmath): Ditto.
18461         (*nmadd3<mode>_fastmath): Ditto.
18462         (*nmsub4<mode>): Ditto.
18463         (*nmsub3<mode>): Ditto.
18464         (*nmsub4<mode>_fastmath): Ditto.
18465         (*nmsub3<mode>_fastmath): Ditto.
18467 2015-06-18  Michael Matz  <matz@suse.de>
18469         PR middle-end/66253
18470         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
18471         grouped strided stores.
18472         (vectorizable_load): Don't use the DR from first_stmt in
18473         the non-SLP grouped strided case.
18475 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18477         PR target/66569
18478         * function.c (assign_bounds): Add arguments assign_regs,
18479         assign_special, assign_bt.
18480         (assign_parms): For vararg functions handle bounds in BT
18481         and special slots after incoming vararg bounds.
18483 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18485         PR middle-end/66568
18486         * cfgexpand.c (expand_return): Handle missing bounds.
18487         (expand_gimple_stmt_1): Likewise.
18488         * tree-chkp.c (chkp_expand_zero_bounds): New.
18489         * tree-chkp.h (chkp_expand_zero_bounds): New.
18491 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18493         PR middle-end/66567
18494         * ipa-chkp.c (chkp_maybe_create_clone): Require
18495         functions to be instrumentable.
18496         * tree-chkp.c (chkp_replace_function_pointer): Use
18497         chkp_instrumentable_p instead of attribute check.
18499 2015-06-18  Richard Biener  <rguenther@suse.de>
18501         PR tree-optimization/66510
18502         * tree-vect-stmts.c (vectorizable_load): Properly compute the
18503         number of vector loads for SLP permuted loads.
18504         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
18505         check the stride for loop vectorization.
18506         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
18507         vectorization factor.
18508         (vect_analyze_group_access): If the group size is not a power
18509         of two require a epilogue loop.
18510         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
18511         compute and optimizing and alias test pruning after final
18512         vectorization factor computation.
18513         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
18514         vector alignment.
18515         (vect_transform_slp_perm_load): Properly compute the original
18516         number of vector load stmts.
18518 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
18520         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18521         "unlikely character , in @var" warning.
18523 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
18525         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18526         (ix86_function_arg_advance): Ditto.
18527         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
18529 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
18531         * function.h (struct rtl_data): Remove struct and accessor macros.
18532         * emit-rtl.h (struct rtl_data): Relocate to here.
18533         * Makefile.in (GTFILES): Add emit-rtl.h.
18534         * df-core.c: Include emit-rtl.h.
18535         * genattrtab.c: Likewise.
18536         * genconditions.c: Likewise.
18537         * genpreds.c: Likewise.
18538         * genrecog.c: Likewise.
18539         * regcprop.c: Likewise.
18540         * resource.c: Likewise.
18541         * sched-rgn.c: Likewise.
18542         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18543         * config/i386/winnt.c: Likewise.
18545 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
18547         PR middle-end/66429
18548         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18549         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
18550         and has_force_vectorize_loops flags from cfun into
18551         child_cfun.
18552         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18553         if simduid is non-NULL.
18554         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18555         * passes.def (pass_simduid_cleanup): Add new pass after loop
18556         passes.
18557         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18558         indirection from htab argument's type.
18559         (shrink_simd_arrays): New function.
18560         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
18561         Don't call adjust_simduid_builtins if there are no loops.
18562         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18563         (pass_simduid_cleanup::execute): New method.
18564         (make_pass_simduid_cleanup): New function.
18566 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
18568         * tree-core.h (tree_target_option): Make opts field a pointer to a
18569         cl_target_option instead of an instance of the struct.
18570         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18571         the structure.
18572         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18573         TARGET_OPTION_NODE.
18574         (copy_node_stat): Allocate and copy struct cl_target_option.
18576 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
18578         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18579         Remove conditional exposure of prototypes.
18580         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18581         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
18582         definitions in tree.h with functions.
18583         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18584         anon_aggrname_p.
18585         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18587 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
18589         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18590         (*cmp<mode>_signed): ... this.
18591         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18592         (*cmp<mode>_unsigned): ... this.  Remove %b.
18594 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
18596         * coretypes.h: Include input.h and as-a.h.
18597         * rtl.h: Include input.h and as-a.h for generator files.
18598         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18599         * vec.c: Don't include diagnostic-core.h.
18600         * alias.c: Do not include input.h, line-map.h or is-a.h.
18601         * asan.c: Likewise.
18602         * attribs.c: Likewise.
18603         * auto-inc-dec.c: Likewise.
18604         * auto-profile.c: Likewise.
18605         * bb-reorder.c: Likewise.
18606         * bt-load.c: Likewise.
18607         * builtins.c: Likewise.
18608         * caller-save.c: Likewise.
18609         * calls.c: Likewise.
18610         * ccmp.c: Likewise.
18611         * cfg.c: Likewise.
18612         * cfganal.c: Likewise.
18613         * cfgbuild.c: Likewise.
18614         * cfgcleanup.c: Likewise.
18615         * cfgexpand.c: Likewise.
18616         * cfghooks.c: Likewise.
18617         * cfgloop.c: Likewise.
18618         * cfgloop.h: Likewise.
18619         * cfgloopanal.c: Likewise.
18620         * cfgloopmanip.c: Likewise.
18621         * cfgrtl.c: Likewise.
18622         * cgraph.c: Likewise.
18623         * cgraphbuild.c: Likewise.
18624         * cgraphclones.c: Likewise.
18625         * cgraphunit.c: Likewise.
18626         * cilk-common.c: Likewise.
18627         * combine-stack-adj.c: Likewise.
18628         * combine.c: Likewise.
18629         * compare-elim.c: Likewise.
18630         * convert.c: Likewise.
18631         * coverage.c: Likewise.
18632         * cppbuiltin.c: Likewise.
18633         * cprop.c: Likewise.
18634         * cse.c: Likewise.
18635         * cselib.c: Likewise.
18636         * data-streamer-in.c: Likewise.
18637         * data-streamer-out.c: Likewise.
18638         * data-streamer.c: Likewise.
18639         * dbxout.c: Likewise.
18640         * dce.c: Likewise.
18641         * ddg.c: Likewise.
18642         * debug.c: Likewise.
18643         * df-core.c: Likewise.
18644         * df-problems.c: Likewise.
18645         * df-scan.c: Likewise.
18646         * df.h: Likewise.
18647         * dfp.c: Likewise.
18648         * diagnostic-core.h: Likewise.
18649         * diagnostic.c: Likewise.
18650         * dojump.c: Likewise.
18651         * dominance.c: Likewise.
18652         * domwalk.c: Likewise.
18653         * double-int.c: Likewise.
18654         * dse.c: Likewise.
18655         * dumpfile.c: Likewise.
18656         * dumpfile.h: Likewise.
18657         * dwarf2asm.c: Likewise.
18658         * dwarf2cfi.c: Likewise.
18659         * dwarf2out.c: Likewise.
18660         * emit-rtl.c: Likewise.
18661         * et-forest.c: Likewise.
18662         * except.c: Likewise.
18663         * explow.c: Likewise.
18664         * expmed.c: Likewise.
18665         * expr.c: Likewise.
18666         * final.c: Likewise.
18667         * fixed-value.c: Likewise.
18668         * fold-const.c: Likewise.
18669         * function.c: Likewise.
18670         * fwprop.c: Likewise.
18671         * gcc-plugin.h: Likewise.
18672         * gcse.c: Likewise.
18673         * generic-match-head.c: Likewise.
18674         * ggc-page.c: Likewise.
18675         * gimple-builder.c: Likewise.
18676         * gimple-expr.c: Likewise.
18677         * gimple-fold.c: Likewise.
18678         * gimple-iterator.c: Likewise.
18679         * gimple-low.c: Likewise.
18680         * gimple-match-head.c: Likewise.
18681         * gimple-pretty-print.c: Likewise.
18682         * gimple-ssa-isolate-paths.c: Likewise.
18683         * gimple-ssa-strength-reduction.c: Likewise.
18684         * gimple-streamer-in.c: Likewise.
18685         * gimple-streamer-out.c: Likewise.
18686         * gimple-streamer.h: Likewise.
18687         * gimple-walk.c: Likewise.
18688         * gimple.c: Likewise.
18689         * gimplify-me.c: Likewise.
18690         * gimplify.c: Likewise.
18691         * godump.c: Likewise.
18692         * graph.c: Likewise.
18693         * graphite-blocking.c: Likewise.
18694         * graphite-dependences.c: Likewise.
18695         * graphite-interchange.c: Likewise.
18696         * graphite-isl-ast-to-gimple.c: Likewise.
18697         * graphite-optimize-isl.c: Likewise.
18698         * graphite-poly.c: Likewise.
18699         * graphite-scop-detection.c: Likewise.
18700         * graphite-sese-to-poly.c: Likewise.
18701         * graphite.c: Likewise.
18702         * haifa-sched.c: Likewise.
18703         * hw-doloop.c: Likewise.
18704         * ifcvt.c: Likewise.
18705         * init-regs.c: Likewise.
18706         * input.c: Likewise.
18707         * internal-fn.c: Likewise.
18708         * ipa-chkp.c: Likewise.
18709         * ipa-comdats.c: Likewise.
18710         * ipa-cp.c: Likewise.
18711         * ipa-devirt.c: Likewise.
18712         * ipa-icf-gimple.c: Likewise.
18713         * ipa-icf.c: Likewise.
18714         * ipa-inline-analysis.c: Likewise.
18715         * ipa-inline-transform.c: Likewise.
18716         * ipa-inline.c: Likewise.
18717         * ipa-polymorphic-call.c: Likewise.
18718         * ipa-profile.c: Likewise.
18719         * ipa-prop.c: Likewise.
18720         * ipa-pure-const.c: Likewise.
18721         * ipa-ref.c: Likewise.
18722         * ipa-reference.c: Likewise.
18723         * ipa-split.c: Likewise.
18724         * ipa-utils.c: Likewise.
18725         * ipa-visibility.c: Likewise.
18726         * ipa.c: Likewise.
18727         * ira-build.c: Likewise.
18728         * ira-color.c: Likewise.
18729         * ira-conflicts.c: Likewise.
18730         * ira-costs.c: Likewise.
18731         * ira-emit.c: Likewise.
18732         * ira-lives.c: Likewise.
18733         * ira.c: Likewise.
18734         * jump.c: Likewise.
18735         * langhooks.c: Likewise.
18736         * lcm.c: Likewise.
18737         * loop-doloop.c: Likewise.
18738         * loop-init.c: Likewise.
18739         * loop-invariant.c: Likewise.
18740         * loop-iv.c: Likewise.
18741         * loop-unroll.c: Likewise.
18742         * lower-subreg.c: Likewise.
18743         * lra-assigns.c: Likewise.
18744         * lra-coalesce.c: Likewise.
18745         * lra-constraints.c: Likewise.
18746         * lra-eliminations.c: Likewise.
18747         * lra-lives.c: Likewise.
18748         * lra-remat.c: Likewise.
18749         * lra-spills.c: Likewise.
18750         * lra.c: Likewise.
18751         * lto-cgraph.c: Likewise.
18752         * lto-compress.c: Likewise.
18753         * lto-opts.c: Likewise.
18754         * lto-section-in.c: Likewise.
18755         * lto-section-out.c: Likewise.
18756         * lto-streamer-in.c: Likewise.
18757         * lto-streamer-out.c: Likewise.
18758         * lto-streamer.c: Likewise.
18759         * mcf.c: Likewise.
18760         * mode-switching.c: Likewise.
18761         * modulo-sched.c: Likewise.
18762         * omega.c: Likewise.
18763         * omp-low.c: Likewise.
18764         * optabs.c: Likewise.
18765         * opts-global.c: Likewise.
18766         * opts.h: Likewise.
18767         * passes.c: Likewise.
18768         * plugin.c: Likewise.
18769         * postreload-gcse.c: Likewise.
18770         * postreload.c: Likewise.
18771         * predict.c: Likewise.
18772         * pretty-print.h: Likewise.
18773         * print-rtl.c: Likewise.
18774         * print-tree.c: Likewise.
18775         * profile.c: Likewise.
18776         * real.c: Likewise.
18777         * realmpfr.c: Likewise.
18778         * recog.c: Likewise.
18779         * ree.c: Likewise.
18780         * reg-stack.c: Likewise.
18781         * regcprop.c: Likewise.
18782         * reginfo.c: Likewise.
18783         * regrename.c: Likewise.
18784         * regstat.c: Likewise.
18785         * reload.c: Likewise.
18786         * reload1.c: Likewise.
18787         * reorg.c: Likewise.
18788         * resource.c: Likewise.
18789         * rtl-chkp.c: Likewise.
18790         * rtl-error.c: Likewise.
18791         * rtlanal.c: Likewise.
18792         * rtlhooks.c: Likewise.
18793         * sanopt.c: Likewise.
18794         * sched-deps.c: Likewise.
18795         * sched-ebb.c: Likewise.
18796         * sched-rgn.c: Likewise.
18797         * sched-vis.c: Likewise.
18798         * sdbout.c: Likewise.
18799         * sel-sched-dump.c: Likewise.
18800         * sel-sched-ir.c: Likewise.
18801         * sel-sched.c: Likewise.
18802         * sese.c: Likewise.
18803         * shrink-wrap.c: Likewise.
18804         * simplify-rtx.c: Likewise.
18805         * stack-ptr-mod.c: Likewise.
18806         * statistics.c: Likewise.
18807         * stmt.c: Likewise.
18808         * stor-layout.c: Likewise.
18809         * store-motion.c: Likewise.
18810         * streamer-hooks.c: Likewise.
18811         * stringpool.c: Likewise.
18812         * symtab.c: Likewise.
18813         * target-globals.c: Likewise.
18814         * targhooks.c: Likewise.
18815         * toplev.c: Likewise.
18816         * tracer.c: Likewise.
18817         * trans-mem.c: Likewise.
18818         * tree-affine.c: Likewise.
18819         * tree-browser.c: Likewise.
18820         * tree-call-cdce.c: Likewise.
18821         * tree-cfg.c: Likewise.
18822         * tree-cfgcleanup.c: Likewise.
18823         * tree-chkp-opt.c: Likewise.
18824         * tree-chkp.c: Likewise.
18825         * tree-chrec.c: Likewise.
18826         * tree-complex.c: Likewise.
18827         * tree-data-ref.c: Likewise.
18828         * tree-dfa.c: Likewise.
18829         * tree-diagnostic.c: Likewise.
18830         * tree-dump.c: Likewise.
18831         * tree-eh.c: Likewise.
18832         * tree-emutls.c: Likewise.
18833         * tree-if-conv.c: Likewise.
18834         * tree-inline.c: Likewise.
18835         * tree-into-ssa.c: Likewise.
18836         * tree-iterator.c: Likewise.
18837         * tree-loop-distribution.c: Likewise.
18838         * tree-nested.c: Likewise.
18839         * tree-nrv.c: Likewise.
18840         * tree-object-size.c: Likewise.
18841         * tree-outof-ssa.c: Likewise.
18842         * tree-parloops.c: Likewise.
18843         * tree-phinodes.c: Likewise.
18844         * tree-predcom.c: Likewise.
18845         * tree-pretty-print.c: Likewise.
18846         * tree-profile.c: Likewise.
18847         * tree-scalar-evolution.c: Likewise.
18848         * tree-sra.c: Likewise.
18849         * tree-ssa-address.c: Likewise.
18850         * tree-ssa-alias.c: Likewise.
18851         * tree-ssa-ccp.c: Likewise.
18852         * tree-ssa-coalesce.c: Likewise.
18853         * tree-ssa-copy.c: Likewise.
18854         * tree-ssa-copyrename.c: Likewise.
18855         * tree-ssa-dce.c: Likewise.
18856         * tree-ssa-dom.c: Likewise.
18857         * tree-ssa-dse.c: Likewise.
18858         * tree-ssa-forwprop.c: Likewise.
18859         * tree-ssa-ifcombine.c: Likewise.
18860         * tree-ssa-live.c: Likewise.
18861         * tree-ssa-loop-ch.c: Likewise.
18862         * tree-ssa-loop-im.c: Likewise.
18863         * tree-ssa-loop-ivcanon.c: Likewise.
18864         * tree-ssa-loop-ivopts.c: Likewise.
18865         * tree-ssa-loop-manip.c: Likewise.
18866         * tree-ssa-loop-niter.c: Likewise.
18867         * tree-ssa-loop-prefetch.c: Likewise.
18868         * tree-ssa-loop-unswitch.c: Likewise.
18869         * tree-ssa-loop.c: Likewise.
18870         * tree-ssa-math-opts.c: Likewise.
18871         * tree-ssa-operands.c: Likewise.
18872         * tree-ssa-phiopt.c: Likewise.
18873         * tree-ssa-phiprop.c: Likewise.
18874         * tree-ssa-pre.c: Likewise.
18875         * tree-ssa-propagate.c: Likewise.
18876         * tree-ssa-reassoc.c: Likewise.
18877         * tree-ssa-sccvn.c: Likewise.
18878         * tree-ssa-scopedtables.c: Likewise.
18879         * tree-ssa-sink.c: Likewise.
18880         * tree-ssa-strlen.c: Likewise.
18881         * tree-ssa-structalias.c: Likewise.
18882         * tree-ssa-tail-merge.c: Likewise.
18883         * tree-ssa-ter.c: Likewise.
18884         * tree-ssa-threadedge.c: Likewise.
18885         * tree-ssa-threadupdate.c: Likewise.
18886         * tree-ssa-uncprop.c: Likewise.
18887         * tree-ssa-uninit.c: Likewise.
18888         * tree-ssa.c: Likewise.
18889         * tree-ssanames.c: Likewise.
18890         * tree-stdarg.c: Likewise.
18891         * tree-streamer-in.c: Likewise.
18892         * tree-streamer-out.c: Likewise.
18893         * tree-streamer.c: Likewise.
18894         * tree-switch-conversion.c: Likewise.
18895         * tree-tailcall.c: Likewise.
18896         * tree-vect-data-refs.c: Likewise.
18897         * tree-vect-generic.c: Likewise.
18898         * tree-vect-loop-manip.c: Likewise.
18899         * tree-vect-loop.c: Likewise.
18900         * tree-vect-patterns.c: Likewise.
18901         * tree-vect-slp.c: Likewise.
18902         * tree-vect-stmts.c: Likewise.
18903         * tree-vectorizer.c: Likewise.
18904         * tree-vrp.c: Likewise.
18905         * tree.c: Likewise.
18906         * tsan.c: Likewise.
18907         * ubsan.c: Likewise.
18908         * valtrack.c: Likewise.
18909         * value-prof.c: Likewise.
18910         * var-tracking.c: Likewise.
18911         * varasm.c: Likewise.
18912         * varpool.c: Likewise.
18913         * vmsdbgout.c: Likewise.
18914         * vtable-verify.c: Likewise.
18915         * web.c: Likewise.
18916         * wide-int.cc: Likewise.
18917         * xcoffout.c: Likewise.
18918         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
18919         * common/common-targhooks.c: Likewise.
18920         * config/aarch64/aarch64-builtins.c: Likewise.
18921         * config/aarch64/aarch64.c: Likewise.
18922         * config/alpha/alpha.c: Likewise.
18923         * config/arc/arc.c: Likewise.
18924         * config/arm/aarch-common.c: Likewise.
18925         * config/arm/arm-builtins.c: Likewise.
18926         * config/arm/arm-c.c: Likewise.
18927         * config/arm/arm.c: Likewise.
18928         * config/avr/avr-c.c: Likewise.
18929         * config/avr/avr-log.c: Likewise.
18930         * config/avr/avr.c: Likewise.
18931         * config/bfin/bfin.c: Likewise.
18932         * config/c6x/c6x.c: Likewise.
18933         * config/cr16/cr16.c: Likewise.
18934         * config/cris/cris.c: Likewise.
18935         * config/darwin-c.c: Likewise.
18936         * config/darwin.c: Likewise.
18937         * config/default-c.c: Likewise.
18938         * config/epiphany/epiphany.c: Likewise.
18939         * config/epiphany/mode-switch-use.c: Likewise.
18940         * config/epiphany/resolve-sw-modes.c: Likewise.
18941         * config/fr30/fr30.c: Likewise.
18942         * config/frv/frv.c: Likewise.
18943         * config/ft32/ft32.c: Likewise.
18944         * config/glibc-c.c: Likewise.
18945         * config/h8300/h8300.c: Likewise.
18946         * config/i386/i386-c.c: Likewise.
18947         * config/i386/i386.c: Likewise.
18948         * config/i386/msformat-c.c: Likewise.
18949         * config/i386/winnt-cxx.c: Likewise.
18950         * config/i386/winnt-stubs.c: Likewise.
18951         * config/i386/winnt.c: Likewise.
18952         * config/ia64/ia64-c.c: Likewise.
18953         * config/ia64/ia64.c: Likewise.
18954         * config/iq2000/iq2000.c: Likewise.
18955         * config/lm32/lm32.c: Likewise.
18956         * config/m32c/m32c-pragma.c: Likewise.
18957         * config/m32c/m32c.c: Likewise.
18958         * config/m32r/m32r.c: Likewise.
18959         * config/m68k/m68k.c: Likewise.
18960         * config/mcore/mcore.c: Likewise.
18961         * config/mep/mep-pragma.c: Likewise.
18962         * config/mep/mep.c: Likewise.
18963         * config/microblaze/microblaze-c.c: Likewise.
18964         * config/microblaze/microblaze.c: Likewise.
18965         * config/mips/mips.c: Likewise.
18966         * config/mmix/mmix.c: Likewise.
18967         * config/mn10300/mn10300.c: Likewise.
18968         * config/moxie/moxie.c: Likewise.
18969         * config/msp430/msp430-c.c: Likewise.
18970         * config/msp430/msp430.c: Likewise.
18971         * config/nds32/nds32-cost.c: Likewise.
18972         * config/nds32/nds32-fp-as-gp.c: Likewise.
18973         * config/nds32/nds32-intrinsic.c: Likewise.
18974         * config/nds32/nds32-isr.c: Likewise.
18975         * config/nds32/nds32-md-auxiliary.c: Likewise.
18976         * config/nds32/nds32-memory-manipulation.c: Likewise.
18977         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18978         * config/nds32/nds32-predicates.c: Likewise.
18979         * config/nds32/nds32.c: Likewise.
18980         * config/nios2/nios2.c: Likewise.
18981         * config/nvptx/nvptx.c: Likewise.
18982         * config/pa/pa.c: Likewise.
18983         * config/pdp11/pdp11.c: Likewise.
18984         * config/rl78/rl78-c.c: Likewise.
18985         * config/rl78/rl78.c: Likewise.
18986         * config/rs6000/rs6000-c.c: Likewise.
18987         * config/rs6000/rs6000.c: Likewise.
18988         * config/rx/rx.c: Likewise.
18989         * config/s390/s390-c.c: Likewise.
18990         * config/s390/s390.c: Likewise.
18991         * config/sh/sh-c.c: Likewise.
18992         * config/sh/sh-mem.cc: Likewise.
18993         * config/sh/sh.c: Likewise.
18994         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18995         * config/sh/sh_treg_combine.cc: Likewise.
18996         * config/sol2-c.c: Likewise.
18997         * config/sol2-cxx.c: Likewise.
18998         * config/sol2-stubs.c: Likewise.
18999         * config/sol2.c: Likewise.
19000         * config/sparc/sparc-c.c: Likewise.
19001         * config/sparc/sparc.c: Likewise.
19002         * config/spu/spu-c.c: Likewise.
19003         * config/spu/spu.c: Likewise.
19004         * config/stormy16/stormy16.c: Likewise.
19005         * config/tilegx/mul-tables.c: Likewise.
19006         * config/tilegx/tilegx-c.c: Likewise.
19007         * config/tilegx/tilegx.c: Likewise.
19008         * config/tilepro/mul-tables.c: Likewise.
19009         * config/tilepro/tilepro-c.c: Likewise.
19010         * config/tilepro/tilepro.c: Likewise.
19011         * config/v850/v850-c.c: Likewise.
19012         * config/v850/v850.c: Likewise.
19013         * config/vax/vax.c: Likewise.
19014         * config/visium/visium.c: Likewise.
19015         * config/vms/vms-c.c: Likewise.
19016         * config/vms/vms.c: Likewise.
19017         * config/vxworks.c: Likewise.
19018         * config/winnt-c.c: Likewise.
19019         * config/xtensa/xtensa.c: Likewise.
19021 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
19023         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
19024         function.
19025         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
19027 2015-06-17  Richard Biener  <rguenther@suse.de>
19029         PR tree-optimization/66251
19030         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
19031         stmts for SLP strided stores.
19033         Revert
19034         2015-05-22  Richard Biener  <rguenther@suse.de>
19036         PR tree-optimization/66251
19037         * tree-vect-stmts.c (vectorizable_conversion): Properly
19038         set STMT_VINFO_VEC_STMT even for the SLP case.
19040         2015-05-26  Michael Matz  <matz@suse.de>
19042         PR middle-end/66251
19043         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
19044         STMT_VINFO_VEC_STMT, also with SLP.
19046 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
19048         PR target/56766
19049         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
19050         (*avx_addsubv4df3_1s): Ditto.
19051         (*sse3_addsubv2df3_1): Ditto.
19052         (*sse3_addsubv2df3_1s): Ditto.
19053         (*avx_addsubv8sf3_1): Ditto.
19054         (*avx_addsubv8sf3_1s): Ditto.
19055         (*sse3_addsubv4sf3_1): Ditto.
19056         (*sse3_addsubv4sf3_1s): Ditto.
19058 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
19060         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
19061         (SYSROOT_SUFFIX_SPEC): Update.
19062         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
19063         (STARTFILE_PREFIX_SPEC): Update.
19064         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
19065         (MULTILIB_REQUIRED): New.
19066         (MULTILIB_OSDIRNAMES): New.
19067         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
19068         (MULTILIB_REQUIRED): New.
19069         (MULTILIB_OSDIRNAMES): New.
19071 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
19073         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
19074         * config/aarch64/aarch64-options-extensions.def: Update "fP",
19075         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
19076         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
19077         (AARCH64_FL_PAN): New.
19078         (AARCH64_FL_LOR): New.
19079         (AARCH64_FL_RDMA): New.
19080         (AARCH64_FL_FOR_ARCH8_1): New.
19081         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
19082         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
19084 2015-06-16  Martin Liska  <mliska@suse.cz>
19086         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
19087         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
19088         guard.
19090 2015-06-16  Richard Biener  <rguenther@suse.de>
19092         * tree-vect-stmts.c (vectorizable_store): Adjust.
19093         (vectorizable_load): Likewise.
19094         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19095         Simplify.
19096         (vect_create_data_ref_ptr): Likewise.
19097         (bump_vector_ptr): Adjust.
19099 2015-06-16  Richard Biener  <rguenther@suse.de>
19101         * tree-vect-stmts.c (vectorizable_load): Properly start loads
19102         with the first element if this is grouped loads.
19104 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
19106         * config/arm/arm-protos.h (struct tune_params): Rename
19107         log_op_non_sc to log_op_non_short_circuit, and rename enum
19108         values to expand SC to SHORT_CIRCUIT.
19109         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
19110         to LOG_OP_NON_SHORT_CIRCUIT.
19111         (arm_fastmul_tune):Likewise
19112         (arm_strongarm_tune): Likewise.
19113         (arm_xscale_tune): Likewise.
19114         (arm_9e_tune): Likewise.
19115         (arm_marvell_pj4_tune): Likewise.
19116         (arm_v6t2_tune): Likewise.
19117         (arm_cortex_tune): Likewise.
19118         (arm_cortex_a8_tune): Likewise.
19119         (arm_cortex_a7_tune): Likewise.
19120         (arm_cortex_a15_tune): Likewise.
19121         (arm_cortex_a53_tune): Likewise.
19122         (arm_cortex_a57_tune): Likewise.
19123         (arm_xgene1_tune): Likewise.
19124         (arm_cortex_a5_tune): Likewise.
19125         (arm_cortex_a9_tune): Likewise.
19126         (arm_cortex_a12_tune): Likewise.
19127         (arm_v7m_tune): Likewise.
19128         (arm_cortex_m7_tune): Likewise.
19129         (arm_v6m_tune): Likewise.
19130         (arm_fa726te_tune): Likewise.
19132 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
19134         * altivec.md: Delete UNSPEC_VMLADDUHM.
19135         (mulv4si3_p8): New pattern.
19136         (mulv4si3): Use it for POWER8.
19137         (mulv8hi3): Use vmladduhm with zero addend.
19138         (altivec_vmladduhm): Descriptive RTL.
19140 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
19142         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
19143         to use neon_move instead of mov_imm.
19144         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
19145         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
19147         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
19148         aarch64_float_const_zero_rtx_p check before TFmode check.
19149         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
19150         an fp zero.
19151         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
19152         code and attributes to match.  Change condition from register_operand
19153         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
19154         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
19155         to store2.
19157 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
19159         PR debug/66535
19160         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
19161         there is no parent.
19163 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
19165         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
19166         HOST_WIDE_INT parameter.
19168 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
19170         PR ipa/66181
19171         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
19172         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
19173         TYPE_NO_FORCE_BLK.
19174         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
19176 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
19178         * rtl.h (classify_insn): Declare.
19179         * emit-rtl.c (classify_insn): Move to...
19180         * rtl.c: ...here and add generator support.
19181         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
19182         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
19183         * genemit.c (gen_emit_seq): New function.
19184         (gen_expand, gen_split): Use it.
19186 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
19188         * tree.c (make_vector_stat): Fix comment to state that the
19189         function returns a VECTOR_CST.
19191 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
19193         * gensupport.h (add_implicit_parallel): Declare.
19194         * genrecog.c (add_implicit_parallel): Move to...
19195         * gensupport.c (add_implicit_parallel): ...here.
19196         (process_one_cond_exec): Use it.
19197         * genemit.c (gen_insn): Likewise.
19199 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
19201         PR bootstrap/66448
19202         * passes.c (rest_of_decl_compilation): Do not register globals for
19203         early debug if they are declared in built-ins.
19205 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
19207         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
19209 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19211         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
19212         manually swapping.
19213         (noce_try_cmove_arith): Likewise.
19214         (noce_get_alt_condition): Likewise.
19216 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19218         * common/config/i386/i386-common.c
19219         (OPTION_MASK_ISA_MWAITX_SET): New.
19220         (ix86_handle_option): Handle mwaitx.
19221         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
19222         (x86_64-*-*): Likewise.
19223         * config/i386/mwaitxintrin.h: New header.
19224         * config/i386/cpuid.h (bit_MWAITX):  Define.
19225         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19226         MWAITX support.
19227         * config/i386/i386.opt (mwaitx): New.
19228         * config/i386/i386-builtin-types.def
19229         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
19230         * config/i386/i386-c.c: Define __MWAITX__ if needed.
19231         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
19232         (PTA_MWAITX): New.
19233         (ix86_option_override_internal): Handle new option.
19234         (processor_alias_table): Added PTA_MWAITX.
19235         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
19236         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
19237         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
19238         IX86_BUILTIN_MONITORX  built-ins.
19239         * config/i386/i386.h (TARGET_MWAITX): New.
19240         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
19241         UNSPEC_MONITORX.
19242         (mwaitx):  New pattern.
19243         (monitorx_<mode>): New pattern.
19244         * config/i386/x86intrin.h: Include mwaitxintrin.h.
19245         * doc/extend.texi: Document monitorx and mwaitx builtins.
19246         * doc/invoke.texi: Document -mmwaitx option.
19248 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
19250         * emit-rtl.c (need_atomic_barrier_p): Mask model with
19251         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
19253 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
19255         * dbxout.c (xcoff_debug_hooks): Provide a function for
19256         register_main_translation_unit hook.
19258 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
19260         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
19261         variants cases from switch.
19262         (rs6000_post_atomic_barrier): Same.
19263         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
19264         (rs6000_expand_atomic_exchange): Same.
19265         (rs6000_expand_atomic_op): Same.
19266         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
19267         SYNC variants cases from switch.
19268         (atomic_load): Same.
19269         (atomic_store): Same.
19271 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
19273         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
19274         CONST_INT for goto.
19276 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
19278         PR bootstrap/66448
19279         * dwarf2out.c (check_die): Check for common duplicate attributes.
19280         (add_location_or_const_value_attribute): Do not add duplicate
19281         attributes.
19282         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
19283         time around.
19284         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
19285         (gen_type_die_with_usage): Call check_die.
19286         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
19288 2015-06-11  Jason Merrill  <jason@redhat.com>
19290         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
19291         dies.
19293 2015-06-11  Marek Polacek  <polacek@redhat.com>
19295         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
19297 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
19299         PR bootstrap/66252
19300         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
19301         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
19302         (*addx_extend_sp32): Fix pasto.
19303         (*subx_extend): Rename into...
19304         (*subx_extend_sp32): ...this.
19305         (*adddi3_extend_sp32): Add earlyclobber.
19306         (*subdi3_insn_sp32): Likewise.
19307         (*subdi3_extend_sp32): Likewise.
19308         (*and_not_di_sp32): Likewise.
19309         (*or_not_di_sp32): Likewise.
19310         (*xor_not_di_sp32): Likewise.
19311         (*negdi2_sp32): Likewise.
19312         (*one_cmpldi2_sp32): Likewise.
19314 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
19316         * debug.h (struct gcc_debug_hooks): Add a
19317         register_main_translation_unit hook.
19318         * debug.c (do_nothing_debug_hooks): Provide a function for this
19319         new hook.
19320         * dbxout.c (dbx_debug_hooks): Likewise.
19321         * sdbout.c (sdb_debug_hooks): Likewise.
19322         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19323         * dwarf2out.c (main_translation_unit): New global variable.
19324         (dwarf2out_register_main_translation_unit): New function
19325         implementing the new hook.
19326         (dwarf2_debug_hooks): Assign
19327         dwarf2out_register_main_translation_unit to this new hook.
19328         (dwarf2out_init): Associate any main translation unit to
19329         comp_unit_die ().
19331 2015-06-11  Marek Polacek  <polacek@redhat.com>
19333         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
19335 2015-06-11  Marek Polacek  <polacek@redhat.com>
19337         * match.pd: Use single_use throughout.
19339 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19341         * config/arm/arm.c (arm_option_params_internal): When optimising
19342         for speed set max_insns_skipped when arm_restrict_it.
19344 2015-06-11  Christian Bruel  <christian.bruel@st.com>
19346         PR target/52144
19347         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
19348          macros in ...
19349         (arm_cpu_builtins): New function.
19350         (arm_pragma_target_parse): Call arm_cpu_builtins.
19351         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
19352         (arm_register_target_pragmas): Likewise.
19353         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
19354          Call arm_register_target_pragmas.
19355         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
19356         (arm_pragma_target_parse): Likewise.
19358 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
19360         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
19361         of the second operand.
19363 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
19365         PR target/66473
19366         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
19367         to prepare mask operand for AVX512 modes.
19369 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
19371         PR target/66474
19372         * doc/md.texi (Machine Constraints): Document that on the PowerPC
19373         if you use a constraint that targets a VSX register, you must use
19374         %x<n> in the template.
19376 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
19378         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
19379         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
19380         (define_insn "trap"): New definition.
19382 2015-06-10  Richard Biener  <rguenther@suse.de>
19384         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
19385         out from ...
19386         (vect_supported_load_permutation_p): ... here.  Handle
19387         supportable permutations in reductions.
19388         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
19389         for vectorizing strided group loads.
19391 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
19393         PR target/66470
19394         * config/i386/i386.c (ix86_split_long_move): For collisions
19395         involving direct tls segment refs, move the UNSPEC_TP possibly
19396         wrapped in ZERO_EXTEND out of the address for lea, to each of
19397         the memory loads.
19399 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19401         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
19402         dmb sy. Adjust tabs.
19404 2015-06-10  Tom de Vries  <tom@codesourcery.com>
19406         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
19408 2015-06-10  Martin Liska  <mliska@suse.cz>
19410         PR bootstrap/66471
19411         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
19412         all enum values in mem_alloc_origin.
19413         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
19414         name.
19415         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
19416         * bitmap.c (bitmap_register): Likewise.
19417         (dump_bitmap_statistics): Likewise.
19418         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
19419         (ggc_record_overhead): Likewise.
19420         * hash-map.h: Likewise.
19421         * hash-set.h: Likewise.
19422         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
19423         * hash-table.h: Likewise.
19424         * vec.c (vec_prefix::register_overhead): Likewise.
19425         (vec_prefix::release_overhead): Likewise.
19426         (dump_vec_loc_statistics): Likewise.
19428 2015-06-09  Christian Bruel  <christian.bruel@st.com>
19430         PR target/52144
19431         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
19432         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
19433         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
19434         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
19435         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
19436         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
19437         (arm_valid_target_attribute_p): Likewise.
19438         (arm_set_current_function, arm_can_inline_p): Likewise.
19439         (arm_valid_target_attribute_rec): Likewise.
19440         (arm_previous_fndecl): New variable.
19441         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19442         (TARGET_CAN_INLINE_P): Define.
19443         (arm_asm_trampoline_template): Emit mode.
19444         (arm_file_start): Don't set unified syntax.
19445         (arm_declare_function_name): Set unified syntax and mode.
19446         (arm_option_override): Init target_option_default_node.
19447         and target_option_current_node.
19448         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
19449         (*call_symbol): Likewise.
19450         * doc/extend.texi: Document ARM/Thumb target attribute.
19451         * doc/invoke.texi: Likewise.
19453 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
19455         Revert:
19456         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
19457         PR rtl-optimization/64164
19458         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19459         * tree-ssa-copyrename.c: Removed.
19460         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19461         -ftree-coalesce-vars.
19462         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19463         * common.opt (ftree-copyrename): Ignore.
19464         (ftree-coalesce-inlined-vars): Likewise.
19465         * doc/invoke.texi: Remove the ignored options above.
19466         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19467         * tree-ssa-coalesce.h: ... here.
19468         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19469         headers required by it.
19470         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19471         across variables when flag_tree_coalesce_vars.  Check register
19472         use and promoted modes to allow coalescing.  Moved to
19473         tree-ssa-coalesce.c.
19474         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19475         with its member functions to tree-ssa-coalesce.c.
19476         (var_map_base_init): Likewise.  Renamed to
19477         compute_samebase_partition_bases.
19478         (partition_view_normal): Drop want_bases parameter.
19479         (partition_view_bitmap): Likewise.
19480         * tree-ssa-live.h: Adjust declarations.
19481         * tree-ssa-coalesce.c: Include explow.h.
19482         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19483         default defs at the entry point.
19484         (dump_part_var_map): New.
19485         (compute_optimized_partition_bases): New, called by...
19486         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19487         of compute_samebase_partition_bases.  Adjust.
19488         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19489         * cfgexpand.c (leader_merge): New.
19490         (get_rtl_for_parm_ssa_default_def): New.
19491         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19492         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19493         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19494         redundant MEM attr setting.
19495         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19496         from...
19497         (expand_one_stack_var): ... this.  New wrapper to check and
19498         skip already expanded SSA partitions.
19499         (record_alignment_for_reg_var): New, factored out of...
19500         (expand_one_var): ... this.
19501         (expand_one_ssa_partition): New.
19502         (adjust_one_expanded_partition_var): New.
19503         (expand_one_register_var): Check and skip already expanded SSA
19504         partitions.
19505         (expand_used_vars): Don't create DECLs for anonymous SSA
19506         names.  Expand all SSA partitions, then adjust all SSA names.
19507         (pass::execute): Replace the loops that set
19508         SA.partition_to_pseudo from partition leaders and cleared
19509         DECL_RTL for multi-location variables, and that which used to
19510         rename vars and set attrs, with one that clears DECL_RTL and
19511         checks that PARMs and RESULTs default_defs match DECL_RTL.
19512         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19513         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19514         * explow.c (promote_ssa_mode): New.
19515         * explow.h (promote_ssa_mode): Declare.
19516         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19517         * function.c: Include cfgexpand.h.
19518         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19519         (use_register_for_parm_decl): Wrapper for the above to
19520         special-case the result_ptr.
19521         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19522         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19523         multiple locations.
19524         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19525         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19526         (assign_parm_setup_block): Prefer SSA-assigned location.
19527         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19528         if stack_parm is NULL.
19529         (assign_parm_setup_stack): Prefer SSA-assigned location.
19530         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19531         rtl before testing for pointer bounds.  Special-case result_ptr.
19532         (expand_function_start): Maybe reset DECL_RTL of result.
19533         Prefer SSA-assigned location for result and static chain.
19534         Factor out DECL_RESULT and SET_DECL_RTL.
19535         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19536         anonymous SSA names.  Use promote_ssa_mode.
19537         (get_temp_reg): Likewise.
19538         (remove_ssa_form): Adjust.
19539         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19540         and get its reg_usage for reg invalidation.
19541         (compute_bb_dataflow): Pass it insn.
19542         (emit_notes_in_bb): Likewise.
19543         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19544         fail assert on conversion between unsigned types.
19546 2015-06-09  Tom de Vries  <tom@codesourcery.com>
19548         PR tree-optimization/65460
19549         * omp-low.c (expand_omp_target): Set parallelized_function on
19550         cgraph_node for child_fn.
19552 2015-06-09  Tom de Vries  <tom@codesourcery.com>
19554         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19555         parallelized_function before add_new_function.
19557 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
19559         * gcc-plugin.h: Move decls to plugin.h and include it.
19560         * plugin.h: Relocate decls from gcc-plugin.h
19561         * ggc-page.c: Include required header files.
19562         * passes.c: Likewise.
19563         * cgraphunit.c: Likewise.
19565 2015-06-09  Tom de Vries  <tom@codesourcery.com>
19567         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19569 2015-06-09  Jason Merrill  <jason@redhat.com>
19571         PR bootstrap/66448
19572         * toplev.c (check_global_declaration): Don't warn about a clone.
19574 2015-06-09  Marek Polacek  <polacek@redhat.com>
19576         PR tree-optimization/66299
19577         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19578         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19579         patterns.
19581 2015-06-09  Richard Biener  <rguenther@suse.de>
19583         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19584         (vect_analyze_slp_instance): Instead do not falsely drop
19585         load permutations.
19587 2015-06-09  Richard Biener  <rguenther@suse.de>
19589         PR middle-end/66423
19590         * match.pd: Handle A % (unsigned)(1 << B).
19592 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
19594         * varasm.c (output_object_block_htab): Remove.
19595         (output_object_block_compare): New.
19596         (output_object_blocks): Sort named object_blocks before outputting
19597         them.
19599 2015-06-09  Richard Biener  <rguenther@suse.de>
19601         PR tree-optimization/66419
19602         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19603         consider GROUP_GAP when detecting a perfect subchain.
19605 2015-06-09  Nick Clifton  <nickc@redhat.com>
19607         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19608         place read only data in the .frodata section.
19610 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
19612         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19613         (atomic_store<mode>): Likewise.
19615 2015-06-09  Richard Biener  <rguenther@suse.de>
19617         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19619 2015-06-09  Richard Biener  <rguenther@suse.de>
19621         PR middle-end/66413
19622         * tree-inline.c (insert_init_debug_bind): Unshare value.
19624 2015-06-09  Richard Biener  <rguenther@suse.de>
19626         PR tree-optimization/66396
19627         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19628         Rename virtual operands.
19630 2015-06-09  Tom de Vries  <tom@codesourcery.com>
19632         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19633         always return false.
19635 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
19637         PR rtl-optimization/64164
19638         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19639         * tree-ssa-copyrename.c: Removed.
19640         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19641         -ftree-coalesce-vars.
19642         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19643         * common.opt (ftree-copyrename): Ignore.
19644         (ftree-coalesce-inlined-vars): Likewise.
19645         * doc/invoke.texi: Remove the ignored options above.
19646         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19647         * tree-ssa-coalesce.h: ... here.
19648         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19649         headers required by it.
19650         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19651         across variables when flag_tree_coalesce_vars.  Check register
19652         use and promoted modes to allow coalescing.  Moved to
19653         tree-ssa-coalesce.c.
19654         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19655         with its member functions to tree-ssa-coalesce.c.
19656         (var_map_base_init): Likewise.  Renamed to
19657         compute_samebase_partition_bases.
19658         (partition_view_normal): Drop want_bases parameter.
19659         (partition_view_bitmap): Likewise.
19660         * tree-ssa-live.h: Adjust declarations.
19661         * tree-ssa-coalesce.c: Include explow.h.
19662         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19663         default defs at the entry point.
19664         (dump_part_var_map): New.
19665         (compute_optimized_partition_bases): New, called by...
19666         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19667         of compute_samebase_partition_bases.  Adjust.
19668         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19669         * cfgexpand.c (leader_merge): New.
19670         (get_rtl_for_parm_ssa_default_def): New.
19671         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19672         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19673         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19674         redundant MEM attr setting.
19675         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19676         from...
19677         (expand_one_stack_var): ... this.  New wrapper to check and
19678         skip already expanded SSA partitions.
19679         (record_alignment_for_reg_var): New, factored out of...
19680         (expand_one_var): ... this.
19681         (expand_one_ssa_partition): New.
19682         (adjust_one_expanded_partition_var): New.
19683         (expand_one_register_var): Check and skip already expanded SSA
19684         partitions.
19685         (expand_used_vars): Don't create DECLs for anonymous SSA
19686         names.  Expand all SSA partitions, then adjust all SSA names.
19687         (pass::execute): Replace the loops that set
19688         SA.partition_to_pseudo from partition leaders and cleared
19689         DECL_RTL for multi-location variables, and that which used to
19690         rename vars and set attrs, with one that clears DECL_RTL and
19691         checks that PARMs and RESULTs default_defs match DECL_RTL.
19692         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19693         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19694         * explow.c (promote_ssa_mode): New.
19695         * explow.h (promote_ssa_mode): Declare.
19696         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19697         * function.c: Include cfgexpand.h.
19698         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19699         (use_register_for_parm_decl): Wrapper for the above to
19700         special-case the result_ptr.
19701         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19702         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19703         multiple locations.
19704         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19705         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19706         (assign_parm_setup_block): Prefer SSA-assigned location.
19707         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19708         if stack_parm is NULL.
19709         (assign_parm_setup_stack): Prefer SSA-assigned location.
19710         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19711         rtl before testing for pointer bounds.  Special-case result_ptr.
19712         (expand_function_start): Maybe reset DECL_RTL of result.
19713         Prefer SSA-assigned location for result and static chain.
19714         Factor out DECL_RESULT and SET_DECL_RTL.
19715         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19716         anonymous SSA names.  Use promote_ssa_mode.
19717         (get_temp_reg): Likewise.
19718         (remove_ssa_form): Adjust.
19719         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19720         and get its reg_usage for reg invalidation.
19721         (compute_bb_dataflow): Pass it insn.
19722         (emit_notes_in_bb): Likewise.
19723         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19724         fail assert on conversion between unsigned types.
19726 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
19728         PR debug/58315
19729         * tree-inline.c (reset_debug_binding): New.
19730         (reset_debug_bindings): Likewise.
19731         (expand_call_inline): Call it.
19733 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
19735         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19736         TYPE_STRING_FLAG.
19738 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
19740         * lto-streamer-out.c (lto_output_location): Stream
19741         reserved locations correctly.
19742         * lto-streamer-in.c (lto_output_location): Likewise.
19744 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
19746         * coretypes.h: Include hash-table.h and hash-set.h for host files.
19747         * ggc.h: Don't include statistics.h>
19748         * hash-map.h: Remove all includes.
19749         * hash-set.h: Likewise.
19750         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19751         the include list. Remove <new>.
19752         * inchash.h: Remove all includes.
19753         * mem-stats.h: Likewise.
19754         * vec.h: No special processing for generators or ggc.
19755         * alias.c : Adjust include files.
19756         * alloc-pool.c : Likewise.
19757         * alloc-pool.h : Likewise.
19758         * asan.c : Likewise.
19759         * attribs.c : Likewise.
19760         * auto-inc-dec.c : Likewise.
19761         * auto-profile.c : Likewise.
19762         * bb-reorder.c : Likewise.
19763         * bitmap.c : Likewise.
19764         * bitmap.h : Likewise.
19765         * bt-load.c : Likewise.
19766         * builtins.c : Likewise.
19767         * caller-save.c : Likewise.
19768         * calls.c : Likewise.
19769         * ccmp.c : Likewise.
19770         * cfg.c : Likewise.
19771         * cfganal.c : Likewise.
19772         * cfgbuild.c : Likewise.
19773         * cfgcleanup.c : Likewise.
19774         * cfgexpand.c : Likewise.
19775         * cfghooks.c : Likewise.
19776         * cfgloop.c : Likewise.
19777         * cfgloop.h : Likewise.
19778         * cfgloopanal.c : Likewise.
19779         * cfgloopmanip.c : Likewise.
19780         * cfgrtl.c : Likewise.
19781         * cgraph.c : Likewise.
19782         * cgraphbuild.c : Likewise.
19783         * cgraphclones.c : Likewise.
19784         * cgraphunit.c : Likewise.
19785         * cilk-common.c : Likewise.
19786         * combine-stack-adj.c : Likewise.
19787         * combine.c : Likewise.
19788         * compare-elim.c : Likewise.
19789         * context.c : Likewise.
19790         * convert.c : Likewise.
19791         * coverage.c : Likewise.
19792         * cppbuiltin.c : Likewise.
19793         * cprop.c : Likewise.
19794         * cse.c : Likewise.
19795         * cselib.c : Likewise.
19796         * data-streamer-in.c : Likewise.
19797         * data-streamer-out.c : Likewise.
19798         * data-streamer.c : Likewise.
19799         * data-streamer.h : Likewise.
19800         * dbxout.c : Likewise.
19801         * dce.c : Likewise.
19802         * ddg.c : Likewise.
19803         * debug.c : Likewise.
19804         * df-core.c : Likewise.
19805         * df-problems.c : Likewise.
19806         * df-scan.c : Likewise.
19807         * df.h : Likewise.
19808         * dfp.c : Likewise.
19809         * dojump.c : Likewise.
19810         * dominance.c : Likewise.
19811         * domwalk.c : Likewise.
19812         * double-int.c : Likewise.
19813         * dse.c : Likewise.
19814         * dumpfile.c : Likewise.
19815         * dwarf2asm.c : Likewise.
19816         * dwarf2cfi.c : Likewise.
19817         * dwarf2out.c : Likewise.
19818         * emit-rtl.c : Likewise.
19819         * et-forest.c : Likewise.
19820         * except.c : Likewise.
19821         * except.h : Likewise.
19822         * explow.c : Likewise.
19823         * expmed.c : Likewise.
19824         * expr.c : Likewise.
19825         * final.c : Likewise.
19826         * fixed-value.c : Likewise.
19827         * fold-const.c : Likewise.
19828         * function.c : Likewise.
19829         * fwprop.c : Likewise.
19830         * gcc-plugin.h : Likewise.
19831         * gcc.c : Likewise.
19832         * gcse-common.c : Likewise.
19833         * gcse.c : Likewise.
19834         * genattrtab.c : Likewise.
19835         * genautomata.c : Likewise.
19836         * genconditions.c : Likewise.
19837         * genemit.c : Likewise.
19838         * generic-match-head.c : Likewise.
19839         * genextract.c : Likewise.
19840         * gengtype-state.c : Likewise.
19841         * gengtype.c : Likewise.
19842         * genhooks.c : Likewise.
19843         * genmatch.c : Likewise.
19844         * genmodes.c : Likewise.
19845         * genrecog.c : Likewise.
19846         * gensupport.c : Likewise.
19847         * ggc-common.c : Likewise.
19848         * ggc-internal.h : Likewise.
19849         * ggc-none.c : Likewise.
19850         * ggc-page.c : Likewise.
19851         * gimple-builder.c : Likewise.
19852         * gimple-expr.c : Likewise.
19853         * gimple-fold.c : Likewise.
19854         * gimple-iterator.c : Likewise.
19855         * gimple-low.c : Likewise.
19856         * gimple-match-head.c : Likewise.
19857         * gimple-pretty-print.c : Likewise.
19858         * gimple-ssa-isolate-paths.c : Likewise.
19859         * gimple-ssa-strength-reduction.c : Likewise.
19860         * gimple-ssa.h : Likewise.
19861         * gimple-streamer-in.c : Likewise.
19862         * gimple-streamer-out.c : Likewise.
19863         * gimple-streamer.h : Likewise.
19864         * gimple-walk.c : Likewise.
19865         * gimple.c : Likewise.
19866         * gimplify-me.c : Likewise.
19867         * gimplify.c : Likewise.
19868         * godump.c : Likewise.
19869         * graph.c : Likewise.
19870         * graphds.c : Likewise.
19871         * graphite-blocking.c : Likewise.
19872         * graphite-dependences.c : Likewise.
19873         * graphite-interchange.c : Likewise.
19874         * graphite-isl-ast-to-gimple.c : Likewise.
19875         * graphite-optimize-isl.c : Likewise.
19876         * graphite-poly.c : Likewise.
19877         * graphite-scop-detection.c : Likewise.
19878         * graphite-sese-to-poly.c : Likewise.
19879         * graphite.c : Likewise.
19880         * haifa-sched.c : Likewise.
19881         * hard-reg-set.h : Likewise.
19882         * hw-doloop.c : Likewise.
19883         * ifcvt.c : Likewise.
19884         * inchash.c : Likewise.
19885         * incpath.c : Likewise.
19886         * init-regs.c : Likewise.
19887         * input.c : Likewise.
19888         * internal-fn.c : Likewise.
19889         * ipa-chkp.c : Likewise.
19890         * ipa-comdats.c : Likewise.
19891         * ipa-cp.c : Likewise.
19892         * ipa-devirt.c : Likewise.
19893         * ipa-icf-gimple.c : Likewise.
19894         * ipa-icf.c : Likewise.
19895         * ipa-inline-analysis.c : Likewise.
19896         * ipa-inline-transform.c : Likewise.
19897         * ipa-inline.c : Likewise.
19898         * ipa-polymorphic-call.c : Likewise.
19899         * ipa-profile.c : Likewise.
19900         * ipa-prop.c : Likewise.
19901         * ipa-pure-const.c : Likewise.
19902         * ipa-ref.c : Likewise.
19903         * ipa-reference.c : Likewise.
19904         * ipa-split.c : Likewise.
19905         * ipa-utils.c : Likewise.
19906         * ipa-visibility.c : Likewise.
19907         * ipa.c : Likewise.
19908         * ira-build.c : Likewise.
19909         * ira-color.c : Likewise.
19910         * ira-conflicts.c : Likewise.
19911         * ira-costs.c : Likewise.
19912         * ira-emit.c : Likewise.
19913         * ira-lives.c : Likewise.
19914         * ira.c : Likewise.
19915         * jump.c : Likewise.
19916         * langhooks.c : Likewise.
19917         * lcm.c : Likewise.
19918         * libfuncs.h : Likewise.
19919         * lists.c : Likewise.
19920         * loop-doloop.c : Likewise.
19921         * loop-init.c : Likewise.
19922         * loop-invariant.c : Likewise.
19923         * loop-iv.c : Likewise.
19924         * loop-unroll.c : Likewise.
19925         * lower-subreg.c : Likewise.
19926         * lra-assigns.c : Likewise.
19927         * lra-coalesce.c : Likewise.
19928         * lra-constraints.c : Likewise.
19929         * lra-eliminations.c : Likewise.
19930         * lra-lives.c : Likewise.
19931         * lra-remat.c : Likewise.
19932         * lra-spills.c : Likewise.
19933         * lra.c : Likewise.
19934         * lto-cgraph.c : Likewise.
19935         * lto-compress.c : Likewise.
19936         * lto-opts.c : Likewise.
19937         * lto-section-in.c : Likewise.
19938         * lto-section-out.c : Likewise.
19939         * lto-streamer-in.c : Likewise.
19940         * lto-streamer-out.c : Likewise.
19941         * lto-streamer.c : Likewise.
19942         * lto-streamer.h : Likewise.
19943         * mcf.c : Likewise.
19944         * mode-switching.c : Likewise.
19945         * modulo-sched.c : Likewise.
19946         * omega.c : Likewise.
19947         * omp-low.c : Likewise.
19948         * optabs.c : Likewise.
19949         * opts-global.c : Likewise.
19950         * opts.h : Likewise.
19951         * passes.c : Likewise.
19952         * plugin.c : Likewise.
19953         * postreload-gcse.c : Likewise.
19954         * postreload.c : Likewise.
19955         * predict.c : Likewise.
19956         * print-rtl.c : Likewise.
19957         * print-tree.c : Likewise.
19958         * profile.c : Likewise.
19959         * read-md.c : Likewise.
19960         * read-md.h : Likewise.
19961         * read-rtl.c : Likewise.
19962         * real.c : Likewise.
19963         * realmpfr.c : Likewise.
19964         * recog.c : Likewise.
19965         * ree.c : Likewise.
19966         * reg-stack.c : Likewise.
19967         * regcprop.c : Likewise.
19968         * reginfo.c : Likewise.
19969         * regrename.c : Likewise.
19970         * regstat.c : Likewise.
19971         * reload.c : Likewise.
19972         * reload1.c : Likewise.
19973         * reorg.c : Likewise.
19974         * resource.c : Likewise.
19975         * rtl-chkp.c : Likewise.
19976         * rtl.c : Likewise.
19977         * rtl.h : Likewise.
19978         * rtlanal.c : Likewise.
19979         * rtlhash.c : Likewise.
19980         * rtlhash.h : Likewise.
19981         * rtlhooks.c : Likewise.
19982         * sanopt.c : Likewise.
19983         * sched-deps.c : Likewise.
19984         * sched-ebb.c : Likewise.
19985         * sched-rgn.c : Likewise.
19986         * sched-vis.c : Likewise.
19987         * sdbout.c : Likewise.
19988         * sel-sched-dump.c : Likewise.
19989         * sel-sched-ir.c : Likewise.
19990         * sel-sched-ir.h : Likewise.
19991         * sel-sched.c : Likewise.
19992         * sese.c : Likewise.
19993         * shrink-wrap.c : Likewise.
19994         * shrink-wrap.h : Likewise.
19995         * simplify-rtx.c : Likewise.
19996         * stack-ptr-mod.c : Likewise.
19997         * statistics.c : Likewise.
19998         * stmt.c : Likewise.
19999         * stor-layout.c : Likewise.
20000         * store-motion.c : Likewise.
20001         * stringpool.c : Likewise.
20002         * symtab.c : Likewise.
20003         * target-globals.c : Likewise.
20004         * targhooks.c : Likewise.
20005         * tlink.c : Likewise.
20006         * toplev.c : Likewise.
20007         * tracer.c : Likewise.
20008         * trans-mem.c : Likewise.
20009         * tree-affine.c : Likewise.
20010         * tree-affine.h : Likewise.
20011         * tree-browser.c : Likewise.
20012         * tree-call-cdce.c : Likewise.
20013         * tree-cfg.c : Likewise.
20014         * tree-cfgcleanup.c : Likewise.
20015         * tree-chkp-opt.c : Likewise.
20016         * tree-chkp.c : Likewise.
20017         * tree-chrec.c : Likewise.
20018         * tree-complex.c : Likewise.
20019         * tree-data-ref.c : Likewise.
20020         * tree-dfa.c : Likewise.
20021         * tree-diagnostic.c : Likewise.
20022         * tree-dump.c : Likewise.
20023         * tree-eh.c : Likewise.
20024         * tree-eh.h : Likewise.
20025         * tree-emutls.c : Likewise.
20026         * tree-hasher.h : Likewise.
20027         * tree-if-conv.c : Likewise.
20028         * tree-inline.c : Likewise.
20029         * tree-inline.h : Likewise.
20030         * tree-into-ssa.c : Likewise.
20031         * tree-iterator.c : Likewise.
20032         * tree-loop-distribution.c : Likewise.
20033         * tree-nested.c : Likewise.
20034         * tree-nrv.c : Likewise.
20035         * tree-object-size.c : Likewise.
20036         * tree-outof-ssa.c : Likewise.
20037         * tree-parloops.c : Likewise.
20038         * tree-phinodes.c : Likewise.
20039         * tree-predcom.c : Likewise.
20040         * tree-pretty-print.c : Likewise.
20041         * tree-profile.c : Likewise.
20042         * tree-scalar-evolution.c : Likewise.
20043         * tree-sra.c : Likewise.
20044         * tree-ssa-address.c : Likewise.
20045         * tree-ssa-alias.c : Likewise.
20046         * tree-ssa-ccp.c : Likewise.
20047         * tree-ssa-coalesce.c : Likewise.
20048         * tree-ssa-copy.c : Likewise.
20049         * tree-ssa-copyrename.c : Likewise.
20050         * tree-ssa-dce.c : Likewise.
20051         * tree-ssa-dom.c : Likewise.
20052         * tree-ssa-dse.c : Likewise.
20053         * tree-ssa-forwprop.c : Likewise.
20054         * tree-ssa-ifcombine.c : Likewise.
20055         * tree-ssa-live.c : Likewise.
20056         * tree-ssa-loop-ch.c : Likewise.
20057         * tree-ssa-loop-im.c : Likewise.
20058         * tree-ssa-loop-ivcanon.c : Likewise.
20059         * tree-ssa-loop-ivopts.c : Likewise.
20060         * tree-ssa-loop-manip.c : Likewise.
20061         * tree-ssa-loop-niter.c : Likewise.
20062         * tree-ssa-loop-prefetch.c : Likewise.
20063         * tree-ssa-loop-unswitch.c : Likewise.
20064         * tree-ssa-loop.c : Likewise.
20065         * tree-ssa-math-opts.c : Likewise.
20066         * tree-ssa-operands.c : Likewise.
20067         * tree-ssa-phiopt.c : Likewise.
20068         * tree-ssa-phiprop.c : Likewise.
20069         * tree-ssa-pre.c : Likewise.
20070         * tree-ssa-propagate.c : Likewise.
20071         * tree-ssa-reassoc.c : Likewise.
20072         * tree-ssa-sccvn.c : Likewise.
20073         * tree-ssa-scopedtables.c : Likewise.
20074         * tree-ssa-sink.c : Likewise.
20075         * tree-ssa-strlen.c : Likewise.
20076         * tree-ssa-structalias.c : Likewise.
20077         * tree-ssa-tail-merge.c : Likewise.
20078         * tree-ssa-ter.c : Likewise.
20079         * tree-ssa-threadedge.c : Likewise.
20080         * tree-ssa-threadupdate.c : Likewise.
20081         * tree-ssa-uncprop.c : Likewise.
20082         * tree-ssa-uninit.c : Likewise.
20083         * tree-ssa.c : Likewise.
20084         * tree-ssanames.c : Likewise.
20085         * tree-stdarg.c : Likewise.
20086         * tree-streamer-in.c : Likewise.
20087         * tree-streamer-out.c : Likewise.
20088         * tree-streamer.c : Likewise.
20089         * tree-streamer.h : Likewise.
20090         * tree-switch-conversion.c : Likewise.
20091         * tree-tailcall.c : Likewise.
20092         * tree-vect-data-refs.c : Likewise.
20093         * tree-vect-generic.c : Likewise.
20094         * tree-vect-loop-manip.c : Likewise.
20095         * tree-vect-loop.c : Likewise.
20096         * tree-vect-patterns.c : Likewise.
20097         * tree-vect-slp.c : Likewise.
20098         * tree-vect-stmts.c : Likewise.
20099         * tree-vectorizer.c : Likewise.
20100         * tree-vectorizer.h : Likewise.
20101         * tree-vrp.c : Likewise.
20102         * tree.c : Likewise.
20103         * tsan.c : Likewise.
20104         * ubsan.c : Likewise.
20105         * valtrack.c : Likewise.
20106         * valtrack.h : Likewise.
20107         * value-prof.c : Likewise.
20108         * var-tracking.c : Likewise.
20109         * varasm.c : Likewise.
20110         * varpool.c : Likewise.
20111         * vec.c: Likewise.
20112         * vmsdbgout.c : Likewise.
20113         * vtable-verify.c : Likewise.
20114         * vtable-verify.h : Likewise.
20115         * web.c : Likewise.
20116         * wide-int.cc : Likewise.
20117         * xcoffout.c : Likewise.
20118         * config/aarch64/aarch64-builtins.c : Likewise.
20119         * config/aarch64/aarch64.c : Likewise.
20120         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
20121         * config/alpha/alpha.c : Likewise.
20122         * config/arc/arc.c : Likewise.
20123         * config/arm/aarch-common.c : Likewise.
20124         * config/arm/arm-builtins.c : Likewise.
20125         * config/arm/arm-c.c : Likewise.
20126         * config/arm/arm.c : Likewise.
20127         * config/avr/avr-c.c : Likewise.
20128         * config/avr/avr-log.c : Likewise.
20129         * config/avr/avr.c : Likewise.
20130         * config/bfin/bfin.c : Likewise.
20131         * config/c6x/c6x.c : Likewise.
20132         * config/cr16/cr16.c : Likewise.
20133         * config/cris/cris.c : Likewise.
20134         * config/darwin-c.c : Likewise.
20135         * config/darwin.c : Likewise.
20136         * config/default-c.c : Likewise.
20137         * config/epiphany/epiphany.c : Likewise.
20138         * config/epiphany/mode-switch-use.c : Likewise.
20139         * config/epiphany/resolve-sw-modes.c : Likewise.
20140         * config/fr30/fr30.c : Likewise.
20141         * config/frv/frv.c : Likewise.
20142         * config/ft32/ft32.c : Likewise.
20143         * config/glibc-c.c : Likewise.
20144         * config/h8300/h8300.c : Likewise.
20145         * config/i386/i386-c.c : Likewise.
20146         * config/i386/i386.c : Likewise.
20147         * config/i386/msformat-c.c : Likewise.
20148         * config/i386/winnt-cxx.c : Likewise.
20149         * config/i386/winnt-stubs.c : Likewise.
20150         * config/i386/winnt.c : Likewise.
20151         * config/ia64/ia64-c.c : Likewise.
20152         * config/ia64/ia64.c : Likewise.
20153         * config/iq2000/iq2000.c : Likewise.
20154         * config/lm32/lm32.c : Likewise.
20155         * config/m32c/m32c-pragma.c : Likewise.
20156         * config/m32c/m32c.c : Likewise.
20157         * config/m32r/m32r.c : Likewise.
20158         * config/m68k/m68k.c : Likewise.
20159         * config/mcore/mcore.c : Likewise.
20160         * config/mep/mep-pragma.c : Likewise.
20161         * config/mep/mep.c : Likewise.
20162         * config/microblaze/microblaze-c.c : Likewise.
20163         * config/microblaze/microblaze.c : Likewise.
20164         * config/mips/mips.c : Likewise.
20165         * config/mmix/mmix.c : Likewise.
20166         * config/mn10300/mn10300.c : Likewise.
20167         * config/moxie/moxie.c : Likewise.
20168         * config/msp430/msp430-c.c : Likewise.
20169         * config/msp430/msp430.c : Likewise.
20170         * config/nds32/nds32-cost.c : Likewise.
20171         * config/nds32/nds32-fp-as-gp.c : Likewise.
20172         * config/nds32/nds32-intrinsic.c : Likewise.
20173         * config/nds32/nds32-isr.c : Likewise.
20174         * config/nds32/nds32-md-auxiliary.c : Likewise.
20175         * config/nds32/nds32-memory-manipulation.c : Likewise.
20176         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
20177         * config/nds32/nds32-predicates.c : Likewise.
20178         * config/nds32/nds32.c : Likewise.
20179         * config/nios2/nios2.c : Likewise.
20180         * config/nvptx/nvptx.c : Likewise.
20181         * config/pa/pa.c : Likewise.
20182         * config/pdp11/pdp11.c : Likewise.
20183         * config/rl78/rl78-c.c : Likewise.
20184         * config/rl78/rl78.c : Likewise.
20185         * config/rs6000/rs6000-c.c : Likewise.
20186         * config/rs6000/rs6000.c : Likewise.
20187         * config/rx/rx.c : Likewise.
20188         * config/s390/s390-c.c : Likewise.
20189         * config/s390/s390.c : Likewise.
20190         * config/sh/sh-c.c : Likewise.
20191         * config/sh/sh-mem.cc : Likewise.
20192         * config/sh/sh.c : Likewise.
20193         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
20194         * config/sh/sh_treg_combine.cc : Likewise.
20195         * config/sol2-c.c : Likewise.
20196         * config/sol2-cxx.c : Likewise.
20197         * config/sol2-stubs.c : Likewise.
20198         * config/sol2.c : Likewise.
20199         * config/sparc/sparc-c.c : Likewise.
20200         * config/sparc/sparc.c : Likewise.
20201         * config/spu/spu-c.c : Likewise.
20202         * config/spu/spu.c : Likewise.
20203         * config/stormy16/stormy16.c : Likewise.
20204         * config/tilegx/mul-tables.c : Likewise.
20205         * config/tilegx/tilegx-c.c : Likewise.
20206         * config/tilegx/tilegx.c : Likewise.
20207         * config/tilepro/mul-tables.c : Likewise.
20208         * config/tilepro/tilepro-c.c : Likewise.
20209         * config/tilepro/tilepro.c : Likewise.
20210         * config/v850/v850-c.c : Likewise.
20211         * config/v850/v850.c : Likewise.
20212         * config/vax/vax.c : Likewise.
20213         * config/visium/visium.c : Likewise.
20214         * config/vms/vms-c.c : Likewise.
20215         * config/vms/vms.c : Likewise.
20216         * config/vxworks.c : Likewise.
20217         * config/winnt-c.c : Likewise.
20218         * config/xtensa/xtensa.c : Likewise.
20220 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
20222         PR lto/65378
20223         * ipa-utils.h (warn_types_mismatch): Update prototype.
20224         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
20225         parameters.
20226         (type_mismatch_p): New function.
20227         (warn_types_mismatch): Reorg to work better on non-C++ types.
20228         (odr_types_equivalent_p): Add loc1/loc2 parameters.
20229         (add_type_duplicate): Update.
20231 2015-06-08  Tom de Vries  <tom@codesourcery.com>
20233         PR rtl-optimization/66444
20234         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
20235         call_used_regs.
20237 2015-06-08  Richard Biener  <rguenther@suse.de>
20239         PR tree-optimization/66422
20240         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
20241         block after inserted gcc_unreachable.
20243 2015-06-08  Nick Clifton  <nickc@redhat.com>
20245         * config/rx/rx.c (rx_function_value): Do not promote vector types.
20246         (rx_promote_function_mode): Likewise.
20247         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
20249 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
20251         * genattrtab.c (insn_alternatives): Change type from int *
20252         to uint64_t *.
20253         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
20254         (get_attr_value): Change type of num_alt to uint64_t.
20255         (compute_alternative_mask): Change return type from
20256         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
20257         (make_alternative_compare, mk_attr_alt): Change argument type
20258         from int to uint64_t.
20259         (simplify_test_exp): Change type of i from int to uint64_t.
20260         Shift ((uint64_t) 1) instead of 1 up.
20261         (main): Adjust oballocvec first argument from int to uint64_t.
20262         Shift ((uint64_t) 1) instead of 1 up.
20264 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
20266         PR other/65366
20267         * gdbhooks.py: Import sys.
20268         (intptr): New function.  Replace int(...) by intptr(...).
20270 2015-06-08  Richard Biener  <rguenther@suse.de>
20272         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
20273         adjustment for gaps at the end of a SLP load group properly.
20274         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
20275         all permutations we can generate.
20276         (vect_transform_slp_perm_load): Use the correct group-size.
20278 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
20280         * genmatch.c (expr::gen_transform): For conditions, guess the type
20281         from the second operand.
20283 2015-06-08  Tom de Vries  <tom@codesourcery.com>
20285         PR tree-optimization/66442
20286         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
20287         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
20288         if the loop latch is not a singleton.  Use
20289         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
20291 2015-06-08  Marek Polacek  <polacek@redhat.com>
20293         PR sanitizer/66452
20294         * toplev.c (check_global_declaration): Don't warn about artificial
20295         decls.
20297 2015-06-08  Tom de Vries  <tom@codesourcery.com>
20299         PR tree-optimization/66436
20300         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
20301         dump file.
20302         * gimplify.c: Add tree-dump.h include.
20303         (gimplify_function_tree): Dump function to gimple dump file.
20304         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
20305         dump file.
20307 2015-06-08  Tom de Vries  <tom@codesourcery.com>
20309         PR tree-optimization/66435
20310         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
20311         function.
20313 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
20315         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
20316         of ptr_type_node to not be ptr_to_node.
20317         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
20318         TREE_TYPE of pointers.
20319         * gimple-expr.c (useless_type_conversion): Reorder the check for
20320         function pointers and TYPE_CANONICAL.
20322 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
20324         PR bootstrap/66319
20325         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
20326         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
20327         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
20328         later.
20329         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
20330         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
20331         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
20332         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
20333         and non iso if unix2003.
20335 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
20337         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
20339 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
20341         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
20342         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
20343         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
20344         except.c, final.c, function.c, gcse-common.c, genemit.c,
20345         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
20346         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
20347         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
20348         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
20349         more derived ones.
20351 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
20353         * combine.c (combine_split_insns): Remove cast.
20354         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
20355         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
20356         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
20357         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
20358         * genemit.c (gen_split): Change return type of generated functions to
20359         rtx_insn.
20360         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
20361         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
20362         gen_peephole2_* functions.
20363         (print_subroutine, main): Likewise.
20364         * recog.c (peephole2_optimize): Remove cast.
20365         (peep2_next_insn): Promote return type to rtx_insn.
20366         * recog.h (peep2_next_insn): Fix prototype.
20367         * rtl.h (try_split, split_insns): Likewise.
20369 2015-06-06  DJ Delorie  <dj@redhat.com>
20371         * config/msp430/msp430.c (msp430_asm_integer): Support addition
20372         and subtraction too.
20374 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
20376         PR target/66410
20377         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
20378         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
20379         instead of Snd.  Disparage Sid/z alternative with '^'.
20381 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
20383         * dwarf2out.c: Remove deferred_locations*.
20384         (dwarf2_debug_hooks): Add early_finish hook.
20385         Remove global_decl hook.
20386         Add early_global_decl and late_global_decl hook.
20387         New global early_dwarf.
20388         New structure set_early_dwarf.
20389         (output_die): Indicate whether a DIE was generated early
20390         when generating assembly with -dA.
20391         (struct limbo_die_struct): Document created_for field.
20392         Remove file_table_last_lookup.
20393         (remove_AT): Return TRUE if successful.
20394         (remove_child_TAG): Clear die_parent.
20395         (reparent_child): New function abstracted from...
20396         (splice_child_die): ...here.
20397         (new_die): ICE if a DIE ends up in limbo too late.
20398         (check_die): New.
20399         (defer_location): Remove.
20400         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
20401         (fill_variable_array_bounds): New.
20402         (decl_start_label): Call fill_variable_array_bounds.
20403         (gen_formal_parameter_die): Rewrite to reuse previously generated
20404         DIEs.
20405         (gen_subprogram_die): Same.
20406         (gen_variable_die): Same.
20407         (gen_const_die): Same.
20408         (gen_label_die): Same.
20409         (gen_lexical_block_die): Same.
20410         (decl_will_get_specification_p): New.
20411         (local_function_static): New.
20412         (gen_struct_or_union_type_die): Fill in variable-length fields.
20413         (gen_typedef_die): Fill in variable-length typedefs.
20414         (gen_tagged_type_die): Gracefully return on error_mark_node.
20415         Handle re-entrancy.
20416         (gen_type_die_with_usage): Handle variable-length types.
20417         Remove duplicate code for ARRAY_TYPE case.
20418         (process_scope_var): Only process imported modules during early
20419         dwarf.
20420         (dwarf2out_early_global_decl): New.
20421         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
20422         (dwarf2out_type_decl): Set early_dwarf while calling
20423         dwarf2out_decl.
20424         (dwarf2out_decl): Verify that we did not recreate a previously
20425         generated DIE.
20426         Do not return on DECL_EXTERNALs in VAR_DECLs.
20427         Abstract some code to local_function_static.
20428         (lookup_filename): Remove use of file_table_last_lookup.
20429         Gracefully exit on missing file_name.
20430         (dwarf2out_finish): Verify limbo list.
20431         Remove deferred_locations_list use.
20432         Move deferred_asm_name and limbo flushing to...
20433         (dwarf2out_early_finish): ...here.  New.
20434         (dwarf2out_c_finalize): Remove set of deferred_location_list,
20435         deferred_asm_name, and file_table_last_lookup.
20436         * cgraph.h (referred_to_p): Add default argument.
20437         * cgraphunit.c (referred_to_p): Add and handle include_self
20438         argument.
20439         (analyze_functions): Add first_time argument.
20440         Call check_global_declaration for all symbols.
20441         Call late_global_decl for nodes for moribund nodes.
20442         (finalize_compilation_unit): Add new argument to
20443         analyze_functions.
20444         Call early_global_decl for functions.
20445         Call early_finish debug hook.
20446         * dbxout.c (dbxout_early_global_decl): New.
20447         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
20448         (dbx_debug_hooks): Add new hooks.
20449         (xcoff_debug_hooks): Same.
20450         * debug.c (do_nothing_debug_hooks): Add early_finish field.
20451         Add early and late debug hooks.
20452         Remove global_decl hook.
20453         * debug.h (struct gcc_debug_hooks): Add early_finish,
20454         early_global_decl, and late_global_decl fields.
20455         Remove global_decl field.
20456         Document gcc_debug_hooks.
20457         * gengtype.c (output_typename): Remove.
20458         * godump.c (go_early_global_decl): New.
20459         (go_late_global_decl): New.
20460         (go_global_decl): Remove.
20461         (dump_go_spec_init): Remove global_decl.  Add
20462         {early,late}_global_decl.
20463         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
20464         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
20465         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
20466         (write_global_declarations): Remove.
20467         (global_decl_processing): New.
20468         * langhooks.h (struct lang_hooks_for_decls): Remove
20469         final_write_globals field.
20470         Add post_compilation_parsing_cleanups field.
20471         * passes.c (rest_of_decl_compilation): Call early_global_decl.
20472         * sdbout.c: Add early and late_global_decl hooks.  Remove
20473         sdbout_global_decl hook.
20474         Add early_finish field for sdb_debug_hooks.
20475         (sdbout_global_decl): Remove.
20476         (sdbout_early_global_decl): New.
20477         (sdbout_late_global_decl): New.
20478         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
20479         * toplev.c (check_global_declaration): Rename from
20480         check_global_declaration_1.
20481         Adapt to use symtab infrastructure.
20482         (check_global_declarations): Remove.
20483         (emit_debug_global_declarations): Remove.
20484         (compile_file): Remove call to final_write_globals langhook.
20485         Run the actual compilation process.
20486         Perform any post compilation parser cleanups.
20487         Generate late debug info.
20488         * toplev.h (check_global_declaration): New.
20489         (check_global_declaration_1): Remove.
20490         (check_global_declarations): Remove.
20491         (write_global_declarations): Remove.
20492         (emit_debug_global_declarations): Remove.
20493         (global_decl_processing): New.
20494         * tree-core.h (struct tree_block): Add DIE field.
20495         * tree.h (BLOCK_DIE): New.
20496         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
20497         throughout.
20498         (vmsdbgout_early_global_decl): New.
20499         (vmsdbgout_late_global_decl): New.
20500         Add early_finish debug hook field to vmsdbg_debug_hooks.
20501         Remove vmsdbgout_decl to vmsdbgout_function_decl.
20502         Add early and late_global_decl debug hooks.
20504 2015-06-05  Julian Brown  <julian@codesourcery.com>
20505             Sandra Loosemore  <sandra@codesourcery.com>
20507         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
20508         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
20509         to print-sysroot-suffix.sh script.
20511 2015-06-05  Tom de Vries  <tom@codesourcery.com>
20513         merge from gomp4 branch:
20514         2015-05-28  Tom de Vries  <tom@codesourcery.com>
20516         PR tree-optimization/65443
20517         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
20518         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
20519         (try_transform_to_exit_first_loop_alt): New function.
20520         (transform_to_exit_first_loop): Use
20521         try_transform_to_exit_first_loop_alt.
20523 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
20525         * builtins.c (expand_builtin_atomic_compare_exchange): Call
20526         emit_cmp_and_jump_insns with the mode of target.
20528 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20530         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20532 2015-06-04  DJ Delorie  <dj@redhat.com>
20534         * config/msp430/msp430.md (movsi_s): New.  Special case for
20535         storing a 20-bit symbol into a 32-bit register.
20536         * config/msp430/msp430.c (msp430_subreg): Add support for it.
20537         * config/msp430/predicates.md (msp430_symbol_operand): New.
20539 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
20541         * c-family/c-common.c (noplt): New attribute.
20542         (handle_noplt_attribute): New handler.
20543         * calls.c (prepare_call_address): Check for noplt
20544         attribute.
20545         * config/i386/i386.c (ix86_expand_call): Check
20546         for noplt attribute.
20547         (ix86_nopic_noplt_attribute_p): New function.
20548         (ix86_output_call_insn): Output indirect call for non-pic
20549         no plt calls.
20550         * doc/extend.texi (noplt): Document new attribute.
20551         * doc/invoke.texi: Document new attribute.
20553 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
20555         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20556         real.h, and fixed-value.h when included in host source files.
20557         * double-int.h: Remove redundant #includes listed above.
20558         * fixed-value.h: Likewise.
20559         * real.h: Likewise.
20560         * wide-int.h: Likewise.
20561         * inchash.h: Likewise.
20562         * rtl.h: Add some include files When included from a generator file.
20563         * target.h: Remove wide-int.h and insn-modes.h from the include list.
20564         * internal-fn.h: Don't include coretypes.h.
20565         * alias.c: Adjust includes for restructured coretypes.h.
20566         * asan.c: Likewise.
20567         * attribs.c: Likewise.
20568         * auto-inc-dec.c: Likewise.
20569         * auto-profile.c: Likewise.
20570         * bb-reorder.c: Likewise.
20571         * bt-load.c: Likewise.
20572         * builtins.c: Likewise.
20573         * caller-save.c: Likewise.
20574         * calls.c: Likewise.
20575         * ccmp.c: Likewise.
20576         * cfg.c: Likewise.
20577         * cfganal.c: Likewise.
20578         * cfgbuild.c: Likewise.
20579         * cfgcleanup.c: Likewise.
20580         * cfgexpand.c: Likewise.
20581         * cfghooks.c: Likewise.
20582         * cfgloop.c: Likewise.
20583         * cfgloop.h: Likewise.
20584         * cfgloopanal.c: Likewise.
20585         * cfgloopmanip.c: Likewise.
20586         * cfgrtl.c: Likewise.
20587         * cgraph.c: Likewise.
20588         * cgraphbuild.c: Likewise.
20589         * cgraphclones.c: Likewise.
20590         * cgraphunit.c: Likewise.
20591         * cilk-common.c: Likewise.
20592         * combine-stack-adj.c: Likewise.
20593         * combine.c: Likewise.
20594         * compare-elim.c: Likewise.
20595         * convert.c: Likewise.
20596         * coverage.c: Likewise.
20597         * cppbuiltin.c: Likewise.
20598         * cprop.c: Likewise.
20599         * cse.c: Likewise.
20600         * cselib.c: Likewise.
20601         * data-streamer-in.c: Likewise.
20602         * data-streamer-out.c: Likewise.
20603         * data-streamer.c: Likewise.
20604         * dbxout.c: Likewise.
20605         * dce.c: Likewise.
20606         * ddg.c: Likewise.
20607         * debug.c: Likewise.
20608         * df-core.c: Likewise.
20609         * df-problems.c: Likewise.
20610         * df-scan.c: Likewise.
20611         * df.h: Likewise.
20612         * dfp.c: Likewise.
20613         * dojump.c: Likewise.
20614         * dominance.c: Likewise.
20615         * domwalk.c: Likewise.
20616         * double-int.c: Likewise.
20617         * dse.c: Likewise.
20618         * dumpfile.c: Likewise.
20619         * dwarf2asm.c: Likewise.
20620         * dwarf2cfi.c: Likewise.
20621         * dwarf2out.c: Likewise.
20622         * dwarf2out.h: Likewise.
20623         * emit-rtl.c: Likewise.
20624         * et-forest.c: Likewise.
20625         * except.c: Likewise.
20626         * explow.c: Likewise.
20627         * expmed.c: Likewise.
20628         * expr.c: Likewise.
20629         * final.c: Likewise.
20630         * fixed-value.c: Likewise.
20631         * fold-const.c: Likewise.
20632         * function.c: Likewise.
20633         * fwprop.c: Likewise.
20634         * gcc-plugin.h: Likewise.
20635         * gcse.c: Likewise.
20636         * generic-match-head.c: Likewise.
20637         * ggc-page.c: Likewise.
20638         * gimple-builder.c: Likewise.
20639         * gimple-expr.c: Likewise.
20640         * gimple-fold.c: Likewise.
20641         * gimple-iterator.c: Likewise.
20642         * gimple-low.c: Likewise.
20643         * gimple-match-head.c: Likewise.
20644         * gimple-pretty-print.c: Likewise.
20645         * gimple-ssa-isolate-paths.c: Likewise.
20646         * gimple-ssa-strength-reduction.c: Likewise.
20647         * gimple-streamer-in.c: Likewise.
20648         * gimple-streamer-out.c: Likewise.
20649         * gimple-streamer.h: Likewise.
20650         * gimple-walk.c: Likewise.
20651         * gimple.c: Likewise.
20652         * gimplify-me.c: Likewise.
20653         * gimplify.c: Likewise.
20654         * godump.c: Likewise.
20655         * graph.c: Likewise.
20656         * graphite-blocking.c: Likewise.
20657         * graphite-dependences.c: Likewise.
20658         * graphite-interchange.c: Likewise.
20659         * graphite-isl-ast-to-gimple.c: Likewise.
20660         * graphite-optimize-isl.c: Likewise.
20661         * graphite-poly.c: Likewise.
20662         * graphite-scop-detection.c: Likewise.
20663         * graphite-sese-to-poly.c: Likewise.
20664         * graphite.c: Likewise.
20665         * haifa-sched.c: Likewise.
20666         * hooks.h: Likewise.
20667         * hw-doloop.c: Likewise.
20668         * ifcvt.c: Likewise.
20669         * incpath.c: Likewise.
20670         * init-regs.c: Likewise.
20671         * internal-fn.c: Likewise.
20672         * ipa-chkp.c: Likewise.
20673         * ipa-comdats.c: Likewise.
20674         * ipa-cp.c: Likewise.
20675         * ipa-devirt.c: Likewise.
20676         * ipa-icf-gimple.c: Likewise.
20677         * ipa-icf.c: Likewise.
20678         * ipa-inline-analysis.c: Likewise.
20679         * ipa-inline-transform.c: Likewise.
20680         * ipa-inline.c: Likewise.
20681         * ipa-polymorphic-call.c: Likewise.
20682         * ipa-profile.c: Likewise.
20683         * ipa-prop.c: Likewise.
20684         * ipa-pure-const.c: Likewise.
20685         * ipa-ref.c: Likewise.
20686         * ipa-reference.c: Likewise.
20687         * ipa-split.c: Likewise.
20688         * ipa-utils.c: Likewise.
20689         * ipa-visibility.c: Likewise.
20690         * ipa.c: Likewise.
20691         * ira-build.c: Likewise.
20692         * ira-color.c: Likewise.
20693         * ira-conflicts.c: Likewise.
20694         * ira-costs.c: Likewise.
20695         * ira-emit.c: Likewise.
20696         * ira-lives.c: Likewise.
20697         * ira.c: Likewise.
20698         * jump.c: Likewise.
20699         * langhooks.c: Likewise.
20700         * lcm.c: Likewise.
20701         * loop-doloop.c: Likewise.
20702         * loop-init.c: Likewise.
20703         * loop-invariant.c: Likewise.
20704         * loop-iv.c: Likewise.
20705         * loop-unroll.c: Likewise.
20706         * lower-subreg.c: Likewise.
20707         * lra-assigns.c: Likewise.
20708         * lra-coalesce.c: Likewise.
20709         * lra-constraints.c: Likewise.
20710         * lra-eliminations.c: Likewise.
20711         * lra-lives.c: Likewise.
20712         * lra-remat.c: Likewise.
20713         * lra-spills.c: Likewise.
20714         * lra.c: Likewise.
20715         * lto-cgraph.c: Likewise.
20716         * lto-compress.c: Likewise.
20717         * lto-opts.c: Likewise.
20718         * lto-section-in.c: Likewise.
20719         * lto-section-out.c: Likewise.
20720         * lto-streamer-in.c: Likewise.
20721         * lto-streamer-out.c: Likewise.
20722         * lto-streamer.c: Likewise.
20723         * mcf.c: Likewise.
20724         * mode-switching.c: Likewise.
20725         * modulo-sched.c: Likewise.
20726         * omega.c: Likewise.
20727         * omp-low.c: Likewise.
20728         * optabs.c: Likewise.
20729         * opts-global.c: Likewise.
20730         * passes.c: Likewise.
20731         * plugin.c: Likewise.
20732         * postreload-gcse.c: Likewise.
20733         * postreload.c: Likewise.
20734         * predict.c: Likewise.
20735         * print-rtl.c: Likewise.
20736         * print-tree.c: Likewise.
20737         * profile.c: Likewise.
20738         * real.c: Likewise.
20739         * realmpfr.c: Likewise.
20740         * realmpfr.h: Likewise.
20741         * recog.c: Likewise.
20742         * ree.c: Likewise.
20743         * reg-stack.c: Likewise.
20744         * regcprop.c: Likewise.
20745         * reginfo.c: Likewise.
20746         * regrename.c: Likewise.
20747         * regs.h: Likewise.
20748         * regstat.c: Likewise.
20749         * reload.c: Likewise.
20750         * reload1.c: Likewise.
20751         * reorg.c: Likewise.
20752         * resource.c: Likewise.
20753         * rtl-chkp.c: Likewise.
20754         * rtlanal.c: Likewise.
20755         * rtlhooks.c: Likewise.
20756         * sanopt.c: Likewise.
20757         * sched-deps.c: Likewise.
20758         * sched-ebb.c: Likewise.
20759         * sched-rgn.c: Likewise.
20760         * sched-vis.c: Likewise.
20761         * sdbout.c: Likewise.
20762         * sel-sched-dump.c: Likewise.
20763         * sel-sched-ir.c: Likewise.
20764         * sel-sched.c: Likewise.
20765         * sese.c: Likewise.
20766         * shrink-wrap.c: Likewise.
20767         * shrink-wrap.h: Likewise.
20768         * simplify-rtx.c: Likewise.
20769         * stack-ptr-mod.c: Likewise.
20770         * statistics.c: Likewise.
20771         * stmt.c: Likewise.
20772         * stor-layout.c: Likewise.
20773         * store-motion.c: Likewise.
20774         * stringpool.c: Likewise.
20775         * symtab.c: Likewise.
20776         * target-globals.c: Likewise.
20777         * targhooks.c: Likewise.
20778         * toplev.c: Likewise.
20779         * tracer.c: Likewise.
20780         * trans-mem.c: Likewise.
20781         * tree-affine.c: Likewise.
20782         * tree-affine.h: Likewise.
20783         * tree-browser.c: Likewise.
20784         * tree-call-cdce.c: Likewise.
20785         * tree-cfg.c: Likewise.
20786         * tree-cfgcleanup.c: Likewise.
20787         * tree-chkp-opt.c: Likewise.
20788         * tree-chkp.c: Likewise.
20789         * tree-chrec.c: Likewise.
20790         * tree-complex.c: Likewise.
20791         * tree-data-ref.c: Likewise.
20792         * tree-dfa.c: Likewise.
20793         * tree-diagnostic.c: Likewise.
20794         * tree-dump.c: Likewise.
20795         * tree-eh.c: Likewise.
20796         * tree-emutls.c: Likewise.
20797         * tree-if-conv.c: Likewise.
20798         * tree-inline.c: Likewise.
20799         * tree-into-ssa.c: Likewise.
20800         * tree-iterator.c: Likewise.
20801         * tree-loop-distribution.c: Likewise.
20802         * tree-nested.c: Likewise.
20803         * tree-nrv.c: Likewise.
20804         * tree-object-size.c: Likewise.
20805         * tree-outof-ssa.c: Likewise.
20806         * tree-parloops.c: Likewise.
20807         * tree-phinodes.c: Likewise.
20808         * tree-predcom.c: Likewise.
20809         * tree-pretty-print.c: Likewise.
20810         * tree-pretty-print.h: Likewise.
20811         * tree-profile.c: Likewise.
20812         * tree-scalar-evolution.c: Likewise.
20813         * tree-sra.c: Likewise.
20814         * tree-ssa-address.c: Likewise.
20815         * tree-ssa-alias.c: Likewise.
20816         * tree-ssa-ccp.c: Likewise.
20817         * tree-ssa-coalesce.c: Likewise.
20818         * tree-ssa-copy.c: Likewise.
20819         * tree-ssa-copyrename.c: Likewise.
20820         * tree-ssa-dce.c: Likewise.
20821         * tree-ssa-dom.c: Likewise.
20822         * tree-ssa-dse.c: Likewise.
20823         * tree-ssa-forwprop.c: Likewise.
20824         * tree-ssa-ifcombine.c: Likewise.
20825         * tree-ssa-live.c: Likewise.
20826         * tree-ssa-loop-ch.c: Likewise.
20827         * tree-ssa-loop-im.c: Likewise.
20828         * tree-ssa-loop-ivcanon.c: Likewise.
20829         * tree-ssa-loop-ivopts.c: Likewise.
20830         * tree-ssa-loop-manip.c: Likewise.
20831         * tree-ssa-loop-niter.c: Likewise.
20832         * tree-ssa-loop-prefetch.c: Likewise.
20833         * tree-ssa-loop-unswitch.c: Likewise.
20834         * tree-ssa-loop.c: Likewise.
20835         * tree-ssa-loop.h: Likewise.
20836         * tree-ssa-math-opts.c: Likewise.
20837         * tree-ssa-operands.c: Likewise.
20838         * tree-ssa-phiopt.c: Likewise.
20839         * tree-ssa-phiprop.c: Likewise.
20840         * tree-ssa-pre.c: Likewise.
20841         * tree-ssa-propagate.c: Likewise.
20842         * tree-ssa-reassoc.c: Likewise.
20843         * tree-ssa-sccvn.c: Likewise.
20844         * tree-ssa-scopedtables.c: Likewise.
20845         * tree-ssa-sink.c: Likewise.
20846         * tree-ssa-strlen.c: Likewise.
20847         * tree-ssa-structalias.c: Likewise.
20848         * tree-ssa-tail-merge.c: Likewise.
20849         * tree-ssa-ter.c: Likewise.
20850         * tree-ssa-threadedge.c: Likewise.
20851         * tree-ssa-threadupdate.c: Likewise.
20852         * tree-ssa-uncprop.c: Likewise.
20853         * tree-ssa-uninit.c: Likewise.
20854         * tree-ssa.c: Likewise.
20855         * tree-ssanames.c: Likewise.
20856         * tree-stdarg.c: Likewise.
20857         * tree-streamer-in.c: Likewise.
20858         * tree-streamer-out.c: Likewise.
20859         * tree-streamer.c: Likewise.
20860         * tree-switch-conversion.c: Likewise.
20861         * tree-tailcall.c: Likewise.
20862         * tree-vect-data-refs.c: Likewise.
20863         * tree-vect-generic.c: Likewise.
20864         * tree-vect-loop-manip.c: Likewise.
20865         * tree-vect-loop.c: Likewise.
20866         * tree-vect-patterns.c: Likewise.
20867         * tree-vect-slp.c: Likewise.
20868         * tree-vect-stmts.c: Likewise.
20869         * tree-vectorizer.c: Likewise.
20870         * tree-vrp.c: Likewise.
20871         * tree.c: Likewise.
20872         * tsan.c: Likewise.
20873         * ubsan.c: Likewise.
20874         * valtrack.c: Likewise.
20875         * value-prof.c: Likewise.
20876         * var-tracking.c: Likewise.
20877         * varasm.c: Likewise.
20878         * varpool.c: Likewise.
20879         * vmsdbgout.c: Likewise.
20880         * vtable-verify.c: Likewise.
20881         * web.c: Likewise.
20882         * wide-int-print.cc: Likewise.
20883         * wide-int-print.h: Likewise.
20884         * wide-int.cc: Likewise.
20885         * xcoffout.c: Likewise.
20886         * config/aarch64/aarch64-builtins.c: Likewise.
20887         * config/aarch64/aarch64.c: Likewise.
20888         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20889         * config/alpha/alpha.c: Likewise.
20890         * config/arc/arc.c: Likewise.
20891         * config/arm/aarch-common.c: Likewise.
20892         * config/arm/arm-builtins.c: Likewise.
20893         * config/arm/arm-c.c: Likewise.
20894         * config/arm/arm.c: Likewise.
20895         * config/avr/avr-c.c: Likewise.
20896         * config/avr/avr-log.c: Likewise.
20897         * config/avr/avr.c: Likewise.
20898         * config/bfin/bfin.c: Likewise.
20899         * config/c6x/c6x.c: Likewise.
20900         * config/cr16/cr16.c: Likewise.
20901         * config/cris/cris.c: Likewise.
20902         * config/darwin-c.c: Likewise.
20903         * config/darwin.c: Likewise.
20904         * config/default-c.c: Likewise.
20905         * config/epiphany/epiphany.c: Likewise.
20906         * config/epiphany/mode-switch-use.c: Likewise.
20907         * config/epiphany/resolve-sw-modes.c: Likewise.
20908         * config/fr30/fr30.c: Likewise.
20909         * config/frv/frv.c: Likewise.
20910         * config/ft32/ft32.c: Likewise.
20911         * config/glibc-c.c: Likewise.
20912         * config/h8300/h8300.c: Likewise.
20913         * config/i386/i386-c.c: Likewise.
20914         * config/i386/i386.c: Likewise.
20915         * config/i386/msformat-c.c: Likewise.
20916         * config/i386/winnt-cxx.c: Likewise.
20917         * config/i386/winnt-stubs.c: Likewise.
20918         * config/i386/winnt.c: Likewise.
20919         * config/ia64/ia64-c.c: Likewise.
20920         * config/ia64/ia64.c: Likewise.
20921         * config/iq2000/iq2000.c: Likewise.
20922         * config/lm32/lm32.c: Likewise.
20923         * config/m32c/m32c-pragma.c: Likewise.
20924         * config/m32c/m32c.c: Likewise.
20925         * config/m32r/m32r.c: Likewise.
20926         * config/m68k/m68k.c: Likewise.
20927         * config/mcore/mcore.c: Likewise.
20928         * config/mep/mep-pragma.c: Likewise.
20929         * config/mep/mep.c: Likewise.
20930         * config/microblaze/microblaze-c.c: Likewise.
20931         * config/microblaze/microblaze.c: Likewise.
20932         * config/mips/mips.c: Likewise.
20933         * config/mmix/mmix.c: Likewise.
20934         * config/mn10300/mn10300.c: Likewise.
20935         * config/moxie/moxie.c: Likewise.
20936         * config/msp430/msp430-c.c: Likewise.
20937         * config/msp430/msp430.c: Likewise.
20938         * config/nds32/nds32-cost.c: Likewise.
20939         * config/nds32/nds32-fp-as-gp.c: Likewise.
20940         * config/nds32/nds32-intrinsic.c: Likewise.
20941         * config/nds32/nds32-isr.c: Likewise.
20942         * config/nds32/nds32-md-auxiliary.c: Likewise.
20943         * config/nds32/nds32-memory-manipulation.c: Likewise.
20944         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20945         * config/nds32/nds32-predicates.c: Likewise.
20946         * config/nds32/nds32.c: Likewise.
20947         * config/nios2/nios2.c: Likewise.
20948         * config/nvptx/nvptx.c: Likewise.
20949         * config/pa/pa.c: Likewise.
20950         * config/pdp11/pdp11.c: Likewise.
20951         * config/rl78/rl78-c.c: Likewise.
20952         * config/rl78/rl78.c: Likewise.
20953         * config/rs6000/rs6000-c.c: Likewise.
20954         * config/rs6000/rs6000.c: Likewise.
20955         * config/rx/rx.c: Likewise.
20956         * config/s390/s390-c.c: Likewise.
20957         * config/s390/s390.c: Likewise.
20958         * config/sh/sh-c.c: Likewise.
20959         * config/sh/sh-mem.cc: Likewise.
20960         * config/sh/sh.c: Likewise.
20961         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20962         * config/sh/sh_treg_combine.cc: Likewise.
20963         * config/sol2-c.c: Likewise.
20964         * config/sol2-cxx.c: Likewise.
20965         * config/sol2-stubs.c: Likewise.
20966         * config/sol2.c: Likewise.
20967         * config/sparc/sparc-c.c: Likewise.
20968         * config/sparc/sparc.c: Likewise.
20969         * config/spu/spu-c.c: Likewise.
20970         * config/spu/spu.c: Likewise.
20971         * config/stormy16/stormy16.c: Likewise.
20972         * config/tilegx/mul-tables.c: Likewise.
20973         * config/tilegx/tilegx-c.c: Likewise.
20974         * config/tilegx/tilegx.c: Likewise.
20975         * config/tilepro/mul-tables.c: Likewise.
20976         * config/tilepro/tilepro-c.c: Likewise.
20977         * config/tilepro/tilepro.c: Likewise.
20978         * config/v850/v850-c.c: Likewise.
20979         * config/v850/v850.c: Likewise.
20980         * config/vax/vax.c: Likewise.
20981         * config/visium/visium.c: Likewise.
20982         * config/vms/vms-c.c: Likewise.
20983         * config/vms/vms.c: Likewise.
20984         * config/vxworks.c: Likewise.
20985         * config/winnt-c.c: Likewise.
20986         * config/xtensa/xtensa.c: Likewise.
20987         * common/config/bfin/bfin-common.c: Likewise.
20989 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
20991         * tree.h (tree_code_for_canonical_type_merging): New function.
20992         * tree.c (gimple_canonical_types_compatible_p): Use
20993         tree_code_for_canonical_type_merging..
20995 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20997         PR c++/66192
20998         PR target/66200
20999         * doc/tm.texi: Regenerate.
21000         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
21001         * target.def (TARGET_RELAXED_ORDERING): Likewise.
21002         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
21003         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
21004         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
21005         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
21006         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
21007         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
21008         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
21010 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21012         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
21013         register fma steering pass.
21014         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
21015         AARCH64_TUNE_FMA_STEERING.
21017 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
21019         * tree.c (verify_type_variant): Verify that type and variant is
21020         compatible.
21021         (gimple_canonical_types_compatible_p): Look for main variants.
21023 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21025         * config.gcc (powerpc*-*-*): Add support for a new configure
21026         option --with-advance-toolchain=<xxx> which overrides using the
21027         default header files, libraries and dynamic linker.
21029         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
21030         specs to support the configure --with-advance-toolchain=<xxx>
21031         option.
21032         (INCLUDE_EXTRA_SPEC): Likewise.
21033         (LINK_OS_EXTRA_SPEC32): Likewise.
21034         (LINK_OK_EXTRA_SPEC64): Likewise.
21035         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
21036         (DYNAMIC_LINKER_PREFIX): Likewise.
21037         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
21038         toolchain support.
21039         (GLIBC_DYNAMIC_LINKER32): Likewise.
21040         (GLIBC_DYNAMIC_LINKER64): Likewise.
21041         (LINK_OS_LINUX_SPEC32): Likewise.
21042         (LINK_OS_LINUX_SPEC64): Likewise.
21044         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
21045         configuration option.
21047 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
21049         PR target/66275
21050         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
21051         to determine current function ABI.
21052         (ix86_function_value_regno_p): Ditto.
21054 2015-06-03  Martin Liska  <mliska@suse.cz>
21056         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
21057         * bitmap.h (struct bitmap_usage): Likewise.
21058         * ggc-common.c (struct ggc_usage): Likewise.
21059         * mem-stats.h (struct mem_location): Likewise.
21060         (struct mem_usage): Likewise.
21061         * vec.c (struct vec_usage): Likewise.
21063 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
21065         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
21066         -Bsymbolic.
21068 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
21070         * doc/plugins.texi (enum plugin_event): New event.
21071         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
21072         and PLUGIN_FINISH_FUNCTION.
21073         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
21074         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
21076 2015-06-03  Richard Biener  <rguenther@suse.de>
21078         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21079         compute GROUP_GAP for the first element.
21080         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
21081         on in-group gaps.
21083 2015-06-03  Nick Clifton  <nickc@redhat.com>
21085         * config/rl78/rl78-real.md: Add peepholes to avoid a register
21086         copy when calling a function.
21087         * config/rl78/rl78.c (need_to_save): Do not push the frame
21088         pointer in an interrupt handler prologue if it is never used.
21090 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21092         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
21094 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
21096         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
21097         reference when cloning alias node.
21099 2015-06-03  Martin Liska  <mliska@suse.cz>
21101         * alloc-pool.h (struct pool_usage): Correct space padding.
21102         * ggc-page.c (ggc_print_statistics): Align columns in a report.
21103         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
21104         * tree.c (dump_tree_statistics): Align columns in a report.
21106 2015-06-03  Martin Liska  <mliska@suse.cz>
21108         * alloc-pool.c (allocate_pool_descriptor): Remove.
21109         (struct pool_output_info): Likewise.
21110         (print_alloc_pool_statistics): Likewise.
21111         (dump_alloc_pool_statistics): Likewise.
21112         * alloc-pool.h (struct pool_usage): New struct.
21113         (pool_allocator::initialize): Change usage of memory statistics
21114         to a new interface.
21115         (pool_allocator::release): Likewise.
21116         (pool_allocator::allocate): Likewise.
21117         (pool_allocator::remove): Likewise.
21118         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
21119         for a pool allocator.
21120         * mem-stats.h (struct mem_location): Add new ctor.
21121         (struct mem_usage): Add counter for number of
21122         instances.
21123         (mem_alloc_description::register_descriptor): New overload of
21124         * mem-stats.h (mem_location::to_string): New function.
21125         * bitmap.h (struct bitmap_usage): Use this new function.
21126         * ggc-common.c (struct ggc_usage): Likewise.
21127         the function.
21129 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
21131         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
21132         of GCC_INSN_FLAGS_H block.
21134 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
21136         * explow.c (plus_constant): Update check after force_const_mem call
21137         to see if the value returned is not a NULL_RTX.
21139 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
21141         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
21142         remove instumentation thunks calling reachable functions.
21143         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
21144         * lto/lto-partition.c (privatize_symbol_name_1): New.
21145         (privatize_symbol_name): Privatize both decl and orig_decl
21146         names for instrumented functions.
21147         * cgraph.c (cgraph_node::verify_node): Add transparent
21148         alias chain check for instrumented node.
21150 2015-06-03  Marek Polacek  <polacek@redhat.com>
21152         PR c/64223
21153         PR c/29358
21154         * tree.c (attribute_value_equal): Handle attribute format.
21155         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
21157 2015-06-03  Richard Biener  <rguenther@suse.de>
21159         PR tree-optimization/63916
21160         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21161         Forward-propagate non-invariant addresses by splicing their
21162         reference ops if the result isn't going to be used by PRE.
21163         (vn_reference_lookup_3): Remove pointless assert.
21165 2015-06-03  Richard Biener  <rguenther@suse.de>
21167         PR tree-optimization/66375
21168         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
21169         add to the evolution before following SSA edges.
21171 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
21173         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
21174         (dump_use, dump_cand, find_induction_variables): Pass new argument
21175         to dump_iv.
21176         (record_use): Preserve the ssa name information in IV.
21178 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
21180         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
21181         NO_MODE_TEST.
21182         (add_mode_tests): Don't add mode tests if the predicate only
21183         accepts scalar constant integers.  Otherwise, allow the mode
21184         of "op" to be VOIDmode if the predicate does accept such integers.
21186 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
21188         PR target/66258
21189         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
21190         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
21191         (aarch64_secondary_reload): Likewise
21192         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
21193         to !TARGET_FLOAT.
21194         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
21195         Likewise.
21197 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
21198             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21200         PR target/65768
21201         * cprop.c (try_replace_reg): Check cost of constants before propagating.
21203 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21205         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
21206         provide access to the IBM extended double floating point mode if
21207         long double is IEEE 128-bit floating point.
21208         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
21209         point if long double is the IBM extended double type.
21211         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
21212         enable adding IEEE 128-bit floating point support.
21213         (-mfloat128-software): Likewise.
21214         (-mfloat128-sw): Likewise.
21216         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
21217         128-bit floating point types to occupy any register if
21218         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
21219         -mfloat128-software is enabled.
21220         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
21221         support.
21222         (rs6000_option_override_internal): Add -mfloat128-* support.
21223         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
21225         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
21226         and float128 type nodes.
21227         (ieee128_float_type_node): Likewise.
21228         (ibm128_float_type_node): Likewise.
21230 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21232         PR target/66136
21233         * config/aarch64/geniterators.sh: Rewrite in awk.
21235 2015-06-02  Martin Liska  <mliska@suse.cz>
21237         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
21238         values to avoid -Wmaybe-uninitialized errors.
21240 2015-06-02  Richard Biener  <rguenther@suse.de>
21242         PR debug/65549
21243         * dwarf2out.c (lookup_context_die): New function.
21244         (resolve_addr): Avoid forcing a full DIE for the
21245         target of a DW_TAG_GNU_call_site during late compilation.
21246         Instead create a stub DIE without a type if we have a
21247         context DIE present.
21249 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
21251         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
21253 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
21255         PR tree-optimization/48052
21256         * cfgloop.h (struct control_iv): New.
21257         (struct loop): New field control_ivs.
21258         * tree-ssa-loop-niter.c : Include "stor-layout.h".
21259         (number_of_iterations_lt): Set no_overflow information.
21260         (number_of_iterations_exit): Init control iv in niter struct.
21261         (record_control_iv): New.
21262         (estimate_numbers_of_iterations_loop): Call record_control_iv.
21263         (loop_exits_before_overflow): New.  Interface factored out of
21264         scev_probably_wraps_p.
21265         (scev_probably_wraps_p): Factor loop niter related code into
21266         loop_exits_before_overflow.
21267         (free_numbers_of_iterations_estimates_loop): Free control ivs.
21268         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
21270 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
21272         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
21273         the target doesn't belong to the current function.
21275 2015-06-02  Marek Polacek  <polacek@redhat.com>
21277         PR middle-end/66345
21278         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
21279         get_maxval_strlen does not produce an INTEGER_CST.
21281 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
21283         * config/arc/constraints.md: Use lower-case names in match_code.
21284         * config/mmix/constraints.md: Likewise.
21286 2015-06-02  Richard Biener  <rguenther@suse.de>
21288         PR tree-optimization/65961
21289         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
21290         check and clarify dump message.
21291         (vect_build_slp_tree): If all children are built up from scalars
21292         build up the parent from scalars instead.
21293         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
21295 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
21297         PR other/65366
21298         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
21299         instead of print ... .
21301 2015-06-02  Alan Modra  <amodra@gmail.com>
21303         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
21304         2014-08-11 change.
21306 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
21308         PR tree-optimization/52563
21309         PR tree-optimization/62173
21310         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
21311         (alloc_iv, set_iv): New parameter.
21312         (determine_biv_step): Delete.
21313         (find_bivs): Inline original determine_biv_step.  Pass new
21314         argument to set_iv.
21315         (idx_find_step): Use no_overflow information for conversion.
21316         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
21317         resolve_mixers handle folded_casts.
21318         (instantiate_scev_name): Change bool parameter to bool pointer.
21319         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
21320         (instantiate_array_ref, instantiate_scev_not): Ditto.
21321         (instantiate_scev_3, instantiate_scev_2): Ditto.
21322         (instantiate_scev_1, instantiate_scev_r): Ditto.
21323         (instantiate_scev_convert, ): Change parameter.  Pass argument
21324         to chrec_convert_aggressive.
21325         (instantiate_scev): Change argument.
21326         (resolve_mixers): New parameter and set it.
21327         (scev_const_prop): New argument.
21328         * tree-scalar-evolution.h (resolve_mixers): New parameter.
21329         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
21330         of chrec_conert_1.
21331         (chrec_convert): New parameter.  Move definition below.
21332         (chrec_convert_aggressive): New parameter and set it.  Call
21333         convert_affine_scev.
21334         * tree-chrec.h (chrec_convert): New parameter.
21335         (chrec_convert_aggressive): Ditto.
21337 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
21339         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
21340         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
21341         the LHS of a no-return call if its type has variable size.
21342         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21343         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
21345 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
21347         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
21348         * config.in: Regenerate.
21350 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
21352         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
21353         consecutive accesses within outer-loop with force_vectorize
21354         for references with zero step in inner-loop.
21356 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
21358         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
21359         rather than from gcc/build directory.
21361 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
21363         PR target/65697
21364         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
21365         for __sync memory models, emit initial loads and final barriers as
21366         appropriate.
21368 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
21370         PR target/65697
21371         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
21372         (aarch64_split_atomic_op): Check for __sync memory models, emit
21373         appropriate initial loads and final barriers.
21375 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
21377         * Makefile.in: Fix gcov dependencies that should
21378         not point to a build folder.
21380 2015-06-01  Richard Biener  <rguenther@suse.de>
21382         Revert
21383         2015-05-29  Richard Biener  <rguenther@suse.de>
21385         PR tree-optimization/66314
21386         * tree-ssa-threadupdate.c (create_block_for_threading): Add
21387         parameter that says which loop the new block belongs to.
21388         (ssa_create_duplicates): Blocks duplicated for the threaded
21389         path belong to the loop of the thread destination.
21391 2015-06-01  Martin Liska  <mliska@suse.cz>
21393         * sched-deps.c: Include pool-alloc.h before
21394         cselib.h header file is included.
21396 2015-06-01  Richard Biener  <rguenther@suse.de>
21398         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
21399         functions.
21401 2015-06-01  Martin Liska  <mliska@suse.cz>
21403         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
21404         a function local variable.
21406 2015-06-01  Martin Liska  <mliska@suse.cz>
21408         * alloc-pool.c (create_alloc_pool): Remove.
21409         (empty_alloc_pool): Likewise.
21410         (free_alloc_pool): Likewise.
21411         (free_alloc_pool_if_empty): Likewise.
21412         (pool_alloc): Likewise.
21413         (pool_free): Likewise.
21414         * alloc-pool.h: Remove old declarations.
21416 2015-06-01  Martin Liska  <mliska@suse.cz>
21418         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
21419         (ira_create_object): Likewise.
21420         (ira_create_allocno): Likewise.
21421         (ira_create_live_range): Likewise.
21422         (copy_live_range): Likewise.
21423         (ira_finish_live_range): Likewise.
21424         (ira_free_allocno_costs): Likewise.
21425         (finish_allocno): Likewise.
21426         (finish_allocnos): Likewise.
21427         (initiate_prefs): Likewise.
21428         (ira_create_pref): Likewise.
21429         (finish_pref): Likewise.
21430         (finish_prefs): Likewise.
21431         (initiate_copies): Likewise.
21432         (ira_create_copy): Likewise.
21433         (finish_copy): Likewise.
21434         (finish_copies): Likewise.
21435         (finish_prefs): Likewise.
21437 2015-06-01  Martin Liska  <mliska@suse.cz>
21439         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
21440         (allocate_and_init_ipcp_value): Likewise.
21441         (ipcp_lattice::add_value): Likewise.
21442         (merge_agg_lats_step): Likewise.
21443         (ipcp_driver): Likewise.
21444         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
21445         (ipa_free_all_structures_after_iinln): Likewise.
21446         * ipa-prop.h: Likewise.
21448 2015-06-01  Martin Liska  <mliska@suse.cz>
21450         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
21451         pool allocator.
21452         (set_hint_predicate): Likewise.
21453         (inline_summary_alloc): Likewise.
21454         (reset_inline_edge_summary): Likewise.
21455         (reset_inline_summary): Likewise.
21456         (set_cond_stmt_execution_predicate): Likewise.
21457         (set_switch_stmt_execution_predicate): Likewise.
21458         (compute_bb_predicates): Likewise.
21459         (estimate_function_body_sizes): Likewise.
21460         (inline_free_summary): Likewise.
21462 2015-06-01  Martin Liska  <mliska@suse.cz>
21464         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
21465         (ipa_edge_duplication_hook): Likewise.
21466         (ipa_free_all_structures_after_ipa_cp): Likewise.
21467         (ipa_free_all_structures_after_iinln): Likewise.
21469 2015-06-01  Martin Liska  <mliska@suse.cz>
21471         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
21472         (ipa_profile_generate_summary): Likewise.
21473         (ipa_profile_read_summary): Likewise.
21474         (ipa_profile): Likewise.
21476 2015-06-01  Martin Liska  <mliska@suse.cz>
21478         * tree-ssa-structalias.c (new_var_info): Use new type-based
21479         pool allocator.
21480         (new_constraint): Likewise.
21481         (init_alias_vars): Likewise.
21482         (delete_points_to_sets): Likewise.
21484 2015-06-01  Martin Liska  <mliska@suse.cz>
21486         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
21487         (free_strinfo): Likewise.
21488         (pass_strlen::execute): Likewise.
21490 2015-06-01  Martin Liska  <mliska@suse.cz>
21492         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
21493         pool allocator.
21494         (vn_reference_insert_pieces): Likewise.
21495         (vn_phi_insert): Likewise.
21496         (visit_reference_op_call): Likewise.
21497         (copy_phi): Likewise.
21498         (copy_reference): Likewise.
21499         (process_scc): Likewise.
21500         (allocate_vn_table): Likewise.
21501         (free_vn_table): Likewise.
21503 2015-06-01  Martin Liska  <mliska@suse.cz>
21505         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
21506         pool allocator.
21507         (add_repeat_to_ops_vec): Likewise.
21508         (get_ops): Likewise.
21509         (maybe_optimize_range_tests): Likewise.
21510         (init_reassoc): Likewise.
21511         (fini_reassoc): Likewise.
21513 2015-06-01  Martin Liska  <mliska@suse.cz>
21515         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
21516         pool allocator.
21517         (bitmap_set_new): Likewise.
21518         (get_or_alloc_expr_for_constant): Likewise.
21519         (get_or_alloc_expr_for): Likewise.
21520         (phi_translate_1): Likewise.
21521         (compute_avail): Likewise.
21522         (init_pre): Likewise.
21523         (fini_pre): Likewise.
21525 2015-06-01  Martin Liska  <mliska@suse.cz>
21527         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21528         (delete_dep_node): Likewise.
21529         (create_deps_list): Likewise.
21530         (free_deps_list): Likewise.
21531         (sched_deps_init): Likewise.
21532         (sched_deps_finish): Likewise.
21534 2015-06-01  Martin Liska  <mliska@suse.cz>
21536         * regcprop.c (free_debug_insn_changes): Use new type-based
21537         pool allocator.
21538         (replace_oldest_value_reg): Likewise.
21539         (pass_cprop_hardreg::execute): Likewise.
21541 2015-06-01  Martin Liska  <mliska@suse.cz>
21543         * ira-build.c (initiate_cost_vectors): Use new type-based
21544         pool allocator.
21545         (ira_allocate_cost_vector): Likewise.
21546         (ira_free_cost_vector): Likewise.
21547         (finish_cost_vectors): Likewise.
21549 2015-06-01  Martin Liska  <mliska@suse.cz>
21551         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21552         pool allocator.
21553         (free_sched_pools): Likewise.
21554         * sel-sched-ir.h (_list_alloc): Likewise.
21555         (_list_remove): Likewise.
21557 2015-06-01  Martin Liska  <mliska@suse.cz>
21559         * stmt.c (add_case_node): Use new type-based pool allocator.
21560         (expand_case): Likewise.
21561         (expand_sjlj_dispatch_table): Likewise.
21563 2015-06-01  Martin Liska  <mliska@suse.cz>
21565         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21566         (free_bb): Likewise.
21567         (pass_cse_reciprocals::execute): Likewise.
21569 2015-06-01  Martin Liska  <mliska@suse.cz>
21571         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21572         (sra_deinitialize) Likewise.
21573         (create_access_1) Likewise.
21574         (build_accesses_from_assign) Likewise.
21575         (create_artificial_child_access) Likewise.
21577 2015-06-01  Martin Liska  <mliska@suse.cz>
21579         * dse.c (get_group_info):Use new type-based pool allocator.
21580         (dse_step0) Likewise.
21581         (free_store_info) Likewise.
21582         (delete_dead_store_insn) Likewise.
21583         (free_read_records) Likewise.
21584         (record_store) Likewise.
21585         (replace_read) Likewise.
21586         (check_mem_read_rtx) Likewise.
21587         (scan_insn) Likewise.
21588         (dse_step1) Likewise.
21589         (dse_step7) Likewise.
21591 2015-06-01  Martin Liska  <mliska@suse.cz>
21593         * df-scan.c (struct df_scan_problem_data):Use new type-based
21594         pool allocator.
21595         (df_scan_free_internal) Likewise.
21596         (df_scan_alloc) Likewise.
21597         (df_grow_reg_info) Likewise.
21598         (df_free_ref) Likewise.
21599         (df_insn_create_insn_record) Likewise.
21600         (df_mw_hardreg_chain_delete) Likewise.
21601         (df_insn_info_delete) Likewise.
21602         (df_free_collection_rec) Likewise.
21603         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21604         (df_sort_and_compress_mws) Likewise.
21605         (df_ref_create_structure) Likewise.
21606         (df_ref_record) Likewise.
21608 2015-06-01  Martin Liska  <mliska@suse.cz>
21610         * df-problems.c (df_chain_create):Use new type-based pool allocator.
21611         (df_chain_unlink_1) Likewise.
21612         (df_chain_unlink) Likewise.
21613         (df_chain_remove_problem) Likewise.
21614         (df_chain_alloc) Likewise.
21615         (df_chain_free) Likewise.
21616         * df.h (struct dataflow) Likewise.
21618 2015-06-01  Martin Liska  <mliska@suse.cz>
21620         * cselib.c (new_elt_list):Use new type-based pool allocator.
21621         (new_elt_loc_list) Likewise.
21622         (unchain_one_elt_list) Likewise.
21623         (unchain_one_elt_loc_list) Likewise.
21624         (unchain_one_value) Likewise.
21625         (new_cselib_val) Likewise.
21626         (cselib_init) Likewise.
21627         (cselib_finish) Likewise.
21629 2015-06-01  Martin Liska  <mliska@suse.cz>
21631         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21632         (sh_reorg) Likewise.
21634 2015-06-01  Martin Liska  <mliska@suse.cz>
21636         * cfg.c (initialize_original_copy_tables):Use new type-based
21637         pool allocator.
21638         (free_original_copy_tables) Likewise.
21639         (copy_original_table_clear) Likewise.
21640         (copy_original_table_set) Likewise.
21642 2015-06-01  Martin Liska  <mliska@suse.cz>
21644         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21645         pool allocator.
21646         (asan_mem_ref_new) Likewise.
21647         (free_mem_ref_resources) Likewise.
21649 2015-06-01  Martin Liska  <mliska@suse.cz>
21651         * var-tracking.c (variable_htab_free):Use new type-based
21652         pool allocator.
21653         (attrs_list_clear) Likewise.
21654         (attrs_list_insert) Likewise.
21655         (attrs_list_copy) Likewise.
21656         (shared_hash_unshare) Likewise.
21657         (shared_hash_destroy) Likewise.
21658         (unshare_variable) Likewise.
21659         (var_reg_delete_and_set) Likewise.
21660         (var_reg_delete) Likewise.
21661         (var_regno_delete) Likewise.
21662         (drop_overlapping_mem_locs) Likewise.
21663         (variable_union) Likewise.
21664         (insert_into_intersection) Likewise.
21665         (canonicalize_values_star) Likewise.
21666         (variable_merge_over_cur) Likewise.
21667         (dataflow_set_merge) Likewise.
21668         (remove_duplicate_values) Likewise.
21669         (variable_post_merge_new_vals) Likewise.
21670         (dataflow_set_preserve_mem_locs) Likewise.
21671         (dataflow_set_remove_mem_locs) Likewise.
21672         (variable_from_dropped) Likewise.
21673         (variable_was_changed) Likewise.
21674         (set_slot_part) Likewise.
21675         (clobber_slot_part) Likewise.
21676         (delete_slot_part) Likewise.
21677         (loc_exp_insert_dep) Likewise.
21678         (notify_dependents_of_changed_value) Likewise.
21679         (emit_notes_for_differences_1) Likewise.
21680         (vt_emit_notes) Likewise.
21681         (vt_initialize) Likewise.
21682         (vt_finalize) Likewise.
21684 2015-06-01  Martin Liska  <mliska@suse.cz>
21686         * ira-color.c (init_update_cost_records):Use new type-based
21687         pool allocator.
21688         (get_update_cost_record) Likewise.
21689         (free_update_cost_record_list) Likewise.
21690         (finish_update_cost_records) Likewise.
21691         (initiate_cost_update) Likewise.
21693 2015-06-01  Martin Liska  <mliska@suse.cz>
21695         * lra.c (init_insn_regs): Use new type-based pool allocator.
21696         (new_insn_reg) Likewise.
21697         (free_insn_reg) Likewise.
21698         (free_insn_regs) Likewise.
21699         (finish_insn_regs) Likewise.
21700         (init_insn_recog_data) Likewise.
21701         (init_reg_info) Likewise.
21702         (finish_reg_info) Likewise.
21703         (lra_free_copies) Likewise.
21704         (lra_create_copy) Likewise.
21705         (invalidate_insn_data_regno_info) Likewise.
21707 2015-06-01  Martin Liska  <mliska@suse.cz>
21709         * lra-lives.c (free_live_range): Use new type-based pool allocator.
21710         (free_live_range_list) Likewise.
21711         (create_live_range) Likewise.
21712         (copy_live_range) Likewise.
21713         (lra_merge_live_ranges) Likewise.
21714         (remove_some_program_points_and_update_live_ranges) Likewise.
21715         (lra_live_ranges_init) Likewise.
21716         (lra_live_ranges_finish) Likewise.
21718 2015-06-01  Martin Liska  <mliska@suse.cz>
21720         * et-forest.c (et_new_occ): Use new type-based pool allocator.
21721         (et_new_tree): Likewise.
21722         (et_free_tree): Likewise.
21723         (et_free_tree_force): Likewise.
21724         (et_free_pools): Likewise.
21725         (et_split): Likewise.
21727 2015-06-01  Martin Liska  <mliska@suse.cz>
21729         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21730         to header file.
21731         * alloc-pool.h (pool_allocator::pool_allocator): New function.
21732         (pool_allocator::release): Likewise.
21733         (inline pool_allocator::release_if_empty): Likewise.
21734         (inline pool_allocator::~pool_allocator): Likewise.
21735         (pool_allocator::allocate): Likewise.
21736         (pool_allocator::remove): Likewise.
21738 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
21740         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21741         in comment.
21743 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
21745         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21746         to fusible_ops.
21747         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
21748         (arm_macro_fusion_p): Likewise.
21749         (arm_macro_fusion_pair_p): Likewise.
21751 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
21753         * config/aarch64/aarch64-protos.h (tune_params): Rename
21754         fuseable_ops to fusible_ops.
21755         * config/aarch64/aarch64.c (generic_tunings): Rename
21756         fuseable_ops to fusible_ops.
21757         (cortexa53_tunings): Likewise.
21758         (cortexa57_tunings): Likewise.
21759         (thunderx_tunings): Likewise.
21760         (xgene1_tunings): Likewise.
21761         (aarch64_macro_fusion_p): Likewise.
21762         (aarch64_macro_fusion_pair_p): Likewise.
21764 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21766         * config/s390/driver-native.c: New file.
21767         * config/s390/x-native: New file.
21768         * config.host: Add new files for s390.
21769         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
21770         and -march=native
21771         * config.gcc: Likewise.
21772         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
21773         * config/s390/s390-opts.h (enum processor_type): Ditto.
21774         * config/s390/s390.c (s390_option_override): Catch unhandled
21775         PROCESSOR_NATIVE
21777 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
21779         PR target/65527
21780         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
21781         redirection for instrumented calls.
21782         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
21783         (append_compiler_options): Append -fcheck-pointer-bounds.
21784         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
21785         (chkp_redirect_edge): New.
21786         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
21787         (chkp_redirect_edge): New.
21789 2015-06-01  Richard Biener  <rguenther@suse.de>
21791         PR tree-optimization/66280
21792         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
21793         def-use walking.
21795 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21797         * config/aarch64/aarch64.md
21798         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
21799         logic_shift_imm.
21801 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
21803         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
21804         Remove obsolete kludge.
21806 2015-06-01  Richard Biener  <rguenther@suse.de>
21808         * tree-ssa-reassoc.c (get_rank): Simplify.
21810 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
21812         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
21813         * configure: Regenerated.
21815 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
21817         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
21818         issue (add space between string literal and macro).
21819         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
21821 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
21823         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
21824         implict or explicit -fPIE or -fpie.
21826 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
21828         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
21830 2015-05-28  DJ Delorie  <dj@redhat.com>
21832         * expmed.c (extract_bit_field_1): Avoid clobbering a
21833         yet-to-be-used base/index register.
21835 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
21837         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
21838         (alias_stats): Add num_universal.
21839         (alias_set_subset_of): Special case pointers; be ready for NULL
21840         children.
21841         (alias_sets_conflict_p): Special case pointers; be ready for NULL
21842         children.
21843         (init_alias_set_entry): Break out from ...
21844         (record_alias_subset): ... here; propagate new fields;
21845         allocate children only when really needed.
21846         (get_alias_set): Do less generous pointer globbing.
21847         (dump_alias_stats_in_alias_c): Update statistics.
21849 2015-05-30  Alan Modra  <amodra@gmail.com>
21851         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
21852         correct block for use of r12.
21853         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
21855 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21857         PR target/66215
21858         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
21859         with -mhotpatch=.
21861 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
21863         PR tree-optimization/66142
21864         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
21865         virtual phis that feed themselves.
21867 2015-05-29  Richard Biener  <rguenther@suse.de>
21869         PR tree-optimization/66314
21870         * tree-ssa-threadupdate.c (create_block_for_threading): Add
21871         parameter that says which loop the new block belongs to.
21872         (ssa_create_duplicates): Blocks duplicated for the threaded
21873         path belong to the loop of the thread destination.
21875 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21877         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
21878         to cleanup-saved-temps.
21879         * doc/sourcebuild.texi (Clean up generated test files): Expand
21880         introduction.
21881         (dg-keep-saved-temps): Document new proc.
21882         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
21883         cleanup-saved-temps): Remove.
21885 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
21887         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
21888         gcc_AC_CHECK_DECLS.
21889         * configure: Regenerate.
21891 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
21893         * config/nios2/linux.h (CPP_SPEC): Define.
21895 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
21897         * config/microblaze/linux.h (CPP_SPEC): Define.
21899 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
21901         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
21902         -pthread is specified.
21904 2015-05-28  Richard Biener  <rguenther@suse.de>
21906         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
21907         (vect_fixup_scalar_cycles_with_patterns): Likewise.
21908         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
21909         after pattern recog.
21910         (vect_create_epilog_for_reduction): Properly handle reductions
21911         with patterns.
21912         (vectorizable_reduction): Likewise.
21913         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
21914         reduction chains.
21915         (vect_get_constant_vectors): Create the correct number of
21916         initial values for reductions.
21917         (vect_schedule_slp_instance): Handle reduction chains that are
21918         type changing properly.
21919         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
21921 2015-05-28  Richard Biener  <rguenther@suse.de>
21923         PR tree-optimization/66142
21924         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
21925         values better in memcpy destination handling.  Handle non-aliasing
21926         we discover here.
21928 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
21930         PR target/63810
21931         * config/darwin-c.c (version_components): New global enum.
21932         (parse_version, version_as_legacy_macro)
21933         (version_as_modern_macro, macosx_version_as_macro): New functions.
21934         (version_as_macro): Remove.
21935         (darwin_cpp_builtins): Use new function.
21937 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
21939         * builtins.c (expand_builtin_acc_on_device): Mark parameters
21940         with ATTRIBUTE_UNUSED.
21942 2015-05-28  Julian Brown  <julian@codesourcery.com>
21944         PR libgomp/65742
21946         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
21947         sequence for !ACCEL_COMPILER.
21949 2015-05-28  Nick Clifton  <nickc@redhat.com>
21951         * config/rx/rx.c (push_regs): New function.  Extracts code from...
21952         (rx_expand_prologue): ... here.  Use push_regs to push even small
21953         spans of registers.
21954         (pop_regs): New function.
21955         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
21956         registers.
21958 2015-05-28  Richard Biener  <rguenther@suse.de>
21960         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
21961         member.
21962         (SLP_INSTANCE_BODY_COST_VEC): Remove.
21963         (vect_update_slp_costs_according_to_vf): Likewise.
21964         (vect_slp_analyze_operations): Update prototype.
21965         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
21966         vect_update_slp_costs_according_to_vf, adjust.
21967         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
21968         (vect_analyze_slp_cost_1): Likewise.
21969         (vect_analyze_slp_cost): Likewise.  Properly deal with
21970         widening reduction ops.  Commit body costs.
21971         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
21972         cost for loops from here.
21973         (vect_slp_analyze_operations): But do it from here when
21974         the vectorization factor is known and stmts are analyzed.
21975         (vect_bb_vectorization_profitable_p): Simplify.
21976         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
21977         (vect_update_slp_costs_according_to_vf): Remove.
21979 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
21980             H.J. Lu  <hongjiu.lu@intel.com>
21982         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
21983         (BUILD_CFLAGS): Likewise.
21984         (BUILD_CXXFLAGS): Likewise.
21985         (LINKER): Add @NO_PIE_FLAG@.
21986         (BUILD_LDFLAGS): Likewise.
21987         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
21988         --enable-default-pie.
21989         * common.opt (fPIE): Initialize to -1.
21990         (fpie): Likewise.
21991         (no-pie): New option.
21992         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
21993         * configure.ac: Add --enable-default-pie.
21994         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
21995         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
21996         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
21997         * gcc.c (NO_PIE_SPEC): New.
21998         (PIE_SPEC): Likewise.
21999         (NO_FPIE1_SPEC): Likewise.
22000         (FPIE1_SPEC): Likewise.
22001         (NO_FPIE2_SPEC): Likewise.
22002         (FPIE2_SPEC): Likewise.
22003         (NO_FPIE2_SPEC): Likewise.
22004         (FPIE_SPEC): Likewise.
22005         (NO_FPIE_SPEC): Likewise.
22006         (NO_FPIC1_SPEC): Likewise.
22007         (FPIC1_SPEC): Likewise.
22008         (NO_FPIC2_SPEC): Likewise.
22009         (FPIC2_SPEC): Likewise.
22010         (NO_FPIC2_SPEC): Likewise.
22011         (FPIC_SPEC): Likewise.
22012         (NO_FPIC_SPEC): Likewise.
22013         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
22014         (FPIE1_OR_FPIC1_SPEC): Likewise.
22015         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
22016         (FPIE2_OR_FPIC2_SPEC): Likewise.
22017         (NO_FPIE_AND_FPIC_SPEC): Likewise.
22018         (FPIE_OR_FPIC_SPEC): Likewise.
22019         (LD_PIE_SPEC): Likewise.
22020         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
22021         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
22022         * config/darwin.h (PIE_SPEC): Renamed to ...
22023         (DARWIN_PIE_SPEC): This.
22024         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
22025         * config/darwin9.h (PIE_SPEC): Renamed to ...
22026         (DARWIN_PIE_SPEC): This.
22027         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
22028         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22029         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
22030         FPIE2_OR_FPIC2_SPEC.
22031         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22032         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22033         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
22034         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22035         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22036         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22037         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
22038         * config/m32r/m32r.h (ASM_SPEC): Likewise.
22039         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
22040         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22041         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22042         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
22043         * config/sparc/linux.h (ASM_SPEC): Likewise.
22044         * config/sparc/linux64.h (ASM_SPEC): Likewise.
22045         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
22046         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
22047         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22048         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22049         * config/sparc/sparc.h (ASM_SPEC): Likewise.
22050         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
22051         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
22052         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
22053         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
22054         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
22055         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
22056         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
22057         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
22058         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
22059         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
22060         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
22061         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
22062         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22063         * config/vax/linux.h (ASM_SPEC): Likewise.
22064         * doc/install.texi: Document --enable-default-pie.
22065         * doc/invoke.texi: Document -no-pie.
22066         * config.in: Regenerated.
22067         * configure: Likewise.
22069 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22071         PR rtl-optimization/66168
22072         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
22073         can_move_invariant_reg.
22075 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
22077         PR target/66148
22078         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
22079         REG_EQUAL note when doing insert.
22081         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
22082         instead of "%d" for 'o' operand.
22084 2015-05-27  Nathan Sidwell  <nathan@acm.org>
22086         PR c++/66270
22087         * tree.c (build_pointer_type_for_mode): Canonical type does not
22088         inherit can_alias_all.
22089         (build_reference_type_for_mode): Likewise.
22091 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22093         * expr.h (array_at_struct_end_p): Move to...
22094         (array_ref_element_size): Likewise.
22095         (component_ref_field_offset): Likewise.
22096         * tree.h (array_ref_element_size): ...here.
22097         (array_at_struct_end_p): Likewise.
22098         (component_ref_field_offset): Likewise.
22099         * expr.c (array_ref_element_size): Move to...
22100         (array_ref_low_bound): Likewise.
22101         (array_at_struct_end_p): Likewise.
22102         (array_ref_up_bound): Likewise.
22103         (component_ref_field_offset): Likewise.
22104         * tree.c (array_ref_element_size): ...here.
22105         (array_ref_low_bound): Likewise.
22106         (array_ref_up_bound): Likewise.
22107         (array_at_struct_end_p): Likewise.
22108         (component_ref_field_offset): Likewise.
22110 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
22111             Szabolcs Nagy  <szabolcs.nagy@arm.com>
22113         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
22115 2015-05-27  Jason Merrill  <jason@redhat.com>
22117         PR bootstrap/66304
22118         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
22119         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
22120         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
22122 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
22124         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
22125         is true.
22127         * statistics.c (statistics_fini_pass): Print pass name.
22129 2015-05-27  Richard Biener  <rguenther@suse.de>
22131         PR tree-optimization/66272
22132         Revert parts of
22133         2014-08-15  Richard Biener  <rguenther@suse.de>
22135         PR tree-optimization/62031
22136         * tree-data-ref.c (dr_analyze_indices): Do not set
22137         DR_UNCONSTRAINED_BASE.
22138         (dr_may_alias_p): All indirect accesses have to go the
22139         formerly DR_UNCONSTRAINED_BASE path.
22140         * tree-data-ref.h (struct indices): Remove
22141         unconstrained_base member.
22142         (DR_UNCONSTRAINED_BASE): Remove.
22144 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
22146         * dwarf2out.c: Remove block_map.
22147         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
22148         (gen_lexical_block_die): Same.
22149         (dwarf2out_function_decl): Remove block_map use.
22150         (dwarf2out_c_finalize): Same.
22151         * tree-core.h (struct tree_block): Add die field.
22152         * tree.h (BLOCK_DIE): New.
22154 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22156         PR target/65358
22157         * expr.c (memory_load_overlap): New function.
22158         (emit_push_insn): When pushing partial args to the stack would
22159         clobber the register part load the overlapping part into a pseudo
22160         and put it into the hard reg after pushing.  Change return type
22161         to bool.  Add bool argument.
22162         * expr.h (emit_push_insn): Change return type to bool.
22163         Add bool argument.
22164         * calls.c (expand_call): Cancel sibcall optimization when encountering
22165         partial argument on targets with ARGS_GROW_DOWNWARD and
22166         !STACK_GROWS_DOWNWARD.
22167         (emit_library_call_value_1): Update callsite of emit_push_insn.
22168         (store_one_arg): Likewise.
22170 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
22172         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
22174 2015-05-27  Martin Liska  <mliska@suse.cz>
22176         * Makefile.in: Add additional dependencies related to memory report
22177         enhancement.
22178         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
22179         * bitmap.c (struct bitmap_descriptor_d): Remove.
22180         (struct loc): Likewise.
22181         (struct bitmap_desc_hasher): Likewise.
22182         (bitmap_desc_hasher::hash): Likewise.
22183         (bitmap_desc_hasher::equal): Likewise.
22184         (get_bitmap_descriptor): Likewise.
22185         (bitmap_register): User new memory descriptor API.
22186         (register_overhead): Likewise.
22187         (bitmap_find_bit): Register nsearches and search_iter statistics.
22188         (struct bitmap_output_info): Remove.
22189         (print_statistics): Likewise.
22190         (dump_bitmap_statistics): Use new memory descriptor.
22191         * bitmap.h (struct bitmap_usage): New class.
22192         * genmatch.c: Extend header file inclusion.
22193         * genpreds.c: Likewise.
22194         * ggc-common.c (struct ggc_usage): New class.
22195         (struct ggc_loc_desc_hasher): Remove.
22196         (ggc_loc_desc_hasher::hash): Likewise.
22197         (ggc_loc_desc_hasher::equal): Likewise.
22198         (struct ggc_ptr_hash_entry): Likewise.
22199         (struct ptr_hash_hasher): Likewise.
22200         (ptr_hash_hasher::hash): Likewise.
22201         (ptr_hash_hasher::equal): Likewise.
22202         (make_loc_descriptor): Likewise.
22203         (ggc_prune_ptr): Likewise.
22204         (dump_ggc_loc_statistics): Use new memory descriptor.
22205         (ggc_record_overhead): Likewise.
22206         (ggc_free_overhead): Likewise.
22207         (final_cmp_statistic): Remove.
22208         (cmp_statistic): Likewise.
22209         (ggc_add_statistics): Liekwise.
22210         (ggc_prune_overhead_list): Likewise.
22211         * hash-map-traits.h: New file.
22212         * hash-map.h (struct default_hashmap_traits): Move the traits to a
22213         separate header file.
22214         * hash-set.h: Pass memory statistics info to ctor.
22215         * hash-table.c (void dump_hash_table_loc_statistics): New function.
22216         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
22217         (hash_table::~hash_table): Register memory release operation.
22218         (hash_table::alloc_entries): Handle memory allocation operation.
22219         (hash_table::expand): Likewise.
22220         * inchash.c (iterative_hash_hashval_t): Move implementation to header
22221         file.
22222         (iterative_hash_host_wide_int): Likewise.
22223         * inchash.h (class hash): Likewise.
22224         * mem-stats-traits.h: New file.
22225         * mem-stats.h: New file.
22226         (mem_location): Add new class.
22227         (mem_usage): Likewise.
22228         (mem_alloc_description): Likewise.
22229         * sese.c: Add new header file inclusision.
22230         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
22231         and hash_set.
22232         * tree-sra.c: Add new header file inclusision.
22233         * vec.c (struct vec_descriptor): Remove.
22234         (hash_descriptor): Likewise.
22235         (struct vec_usage): Likewise.
22236         (struct ptr_hash_entry): Likewise.
22237         (hash_ptr): Likewise.
22238         (eq_ptr): Likewise.
22239         (vec_prefix::register_overhead): Use new memory descriptor API.
22240         (vec_prefix::release_overhead): Likewise.
22241         (add_statistics): Remove.
22242         (dump_vec_loc_statistics): Use new memory descriptor API.
22243         * vec.h (struct vec_prefix): Likewise.
22244         (va_heap::reserve): Likewise.
22245         (va_heap::release): Likewise.
22246         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
22248 2015-05-27  Richard Biener  <rguenther@suse.de>
22250         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
22251         earlier and remove ??? comment.
22252         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
22253         and got called from loop analysis bail out.  Always pass the SLP
22254         node to the vectorizable_* functions.
22255         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
22256         the premature SLP check here.
22257         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
22258         detected SLP stmts.
22259         (vect_detect_hybrid_slp_1): Likewise.
22261 2015-05-26  Jeff Law  <law@redhat.com>
22263         * combine.c (find_split_point): Verify that the shift count is a
22264         constant when choosing (plus (ashift ...)) as a split point.
22266         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
22267         No functional changes.
22269 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
22271         * ipa-polymorphic-call.c
22272         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
22273         case when call target is already known.
22275 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
22277         PR target/65979
22278         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
22279         take into account the case that operands[1] and operands[2]
22280         are the same register.
22282 2015-05-26  Michael Matz  <matz@suse.de>
22284         PR middle-end/66251
22286         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
22287         stores.
22288         (vect_create_vectorized_demotion_stmts): Always set
22289         STMT_VINFO_VEC_STMT, also with SLP.
22290         (vectorizable_store): Handle strided group stores.
22292 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22294         PR target/66049
22295         * config/aarch64/aarch64.md
22296         (*adds_shift_imm_<mode>):  New pattern.
22297         (*subs_shift_imm_<mode>):  Likewise.
22298         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
22299         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22300         (*add_uxt<mode>_shift2): Likewise.
22301         (*add_uxtsi_shift2_uxtw): Likewise.
22302         (*sub_uxt<mode>_shift2): Likewise.
22303         (*sub_uxtsi_shift2_uxtw): Likewise.
22305 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
22307         * config/rs6000/constraints.md (Y, U): Use match_test.
22309 2015-05-26  Christian Bruel  <christian.bruel@st.com>
22311         PR target/52144
22312         * config/arm/arm.c (arm_option_check_internal)
22313         (arm_option_params_internal): Check opts->target_flags to set macros.
22314         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22315         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
22316         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22317         (builtin_define): Replaced with def_or_undef_macro.
22318         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22319         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
22320         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22321         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
22322         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
22323         (TARGET_ARM_FEATURE_LDREX_P)
22324         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
22325         * config/arm/arm-c.c (def_or_undef_macro): New function.
22326         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
22328 2015-05-26  Christian Bruel  <christian.bruel@st.com>
22330         * c-common.h (builtin_define_with_int_value)
22331         (builtin_define_type_sizeof): Declare.
22332         * c-cppbuiltin.c (builtin_define_with_int_value)
22333         (builtin_define_type_sizeof): Externalize.
22334         (builtin_define_std): Cleanup declaration.
22335         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
22336         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
22337         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
22338         (builtin_define, builtin_assert): New macros.
22340 2015-05-26  Richard Biener  <rguenther@suse.de>
22342         PR tree-optimization/66142
22343         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
22344         MEM_REFs for the same base address.
22346 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22348         PR ipa/66181
22349         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
22351 2015-05-26  Jason Merrill  <jason@redhat.com>
22353         * configure.ac: Set CXXFLAGS for ISL test.
22354         * configure: Regenerate.
22356         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
22357         strstr and basename.
22358         * configure: Regenerate.
22360 2015-05-26  Richard Biener  <rguenther@suse.de>
22362         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
22363         X % C -> X & (C - 1) for C being a power-of two to ...
22364         * match.pd: ... patterns.
22366 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
22368         * match.pd (swapped_tcc_comparison): New operator list.
22369         (-A CMP -B): New simplification.
22370         * fold-const.c (fold_comparison): Remove corresponding code.
22372 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
22374         * caller-save.c (init_caller_save): Base temporary register numbers
22375         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
22376         * cfgloopanal.c (init_set_costs): Likewise.
22377         * dojump.c (prefer_and_bit_test): Likewise.
22378         * expr.c (init_expr_target): Likewise.
22379         * ira.c (setup_prohibited_mode_move_regs): Likewise.
22380         * lower-subreg.c (init_lower_subreg): Likewise.
22381         * postreload.c (reload_cse_regs_1): Likewise.
22383 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
22385         * gensupport.h (compute_test_codes): Declare.
22386         * gensupport.c (compute_predicate_codes): Rename to...
22387         (compute_test_codes): ...this.  Generalize error message.
22388         (process_define_predicate): Update accordingly.
22389         * genpreds.c (compute_maybe_allows): Delete.
22390         (add_constraint): Use compute_test_codes to determine whether
22391         something can accept a SUBREG, REG or MEM.
22393 2015-05-26  Torvald Riegel  <triegel@redhat.com>
22395         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
22396         'memory model' to align with C++11; fix description of memory orders;
22397         fix a few typos.
22399 2015-05-26  Richard Biener  <rguenther@suse.de>
22401         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
22402         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
22403         detect whether we apply SLP.  Remove call to
22404         vect_update_slp_costs_according_to_vf.
22405         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
22406         vect_update_slp_costs_according_to_vf from here.  Dispatch
22407         to vect_slp_analyze_operations to analyze SLP stmts.
22408         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
22409         unused bb_vec_info parameter, adjust assert.
22410         (vect_slp_analyze_operations): Pass in the slp instance tree
22411         instead of bb_vec_info.
22412         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
22413         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
22415 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
22417         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
22418         Q_REGS.  Expand comment.
22419         (REG_CLASS_NAMES): Ditto.
22420         (REG_CLASS_CONTENTS): Ditto.
22422 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
22424         PR target/66274
22425         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
22426         when LEGACY_INT_REGNO_P is processed.
22428 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
22430         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
22432 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22434         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
22435         register if not marked dead/unused, before return.
22437 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
22439         PR lto/66180
22440         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
22441         is set; check for assembler name at LTO time.
22442         (type_in_anonymous_namespace): Remove hacks, check that all
22443         anonymous types are called "<anon>"
22444         (odr_type_p): Simplify; add check for "<anon>"
22445         (odr_subtypes_equivalent): Add odr_type_p check.
22446         * tree.c (need_assembler_name_p): Even anonymous namespace needs
22447         assembler name.
22449 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
22451         * ipa-utils.h (method_class_type): Remove.
22452         * cgraphunit.c (walk_polymorphic_call_targets): Use
22453         TYPE_METHOD_BASETYPE.
22454         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
22455         on main variants only.
22456         (method_class_type): Remove.
22457         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
22458         (build_type_inheritance_graph): Likewise.
22459         * ipa-icf.c (sem_function::equals_wpa): Likewise.
22460         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
22461         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
22463 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
22465         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
22466         is_typedef_decl, typedef_variant_p): Constify.
22467         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
22468         is_typedef_decl, typedef_variant_p): Constify.
22470 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22472         * defaults.h (gen_tablejump): New function.
22473         (HAVE_tablejump): Add default value.
22474         * expr.c: Adjust.
22475         * stmt.c: Likewise.
22477 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22479         * defaults.h (gen_store_multiple): New function.
22480         (HAVE_store_multiple): Add default value.
22481         * expr.c (move_block_from_reg): Adjust.
22483 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22485         * defaults.h (gen_load_multiple): New function.
22486         (HAVE_load_multiple): Add default value.
22487         * expr.c (move_block_to_reg): Adjust.
22489 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22491         * defaults.h (gen_mem_signal_fence): New function.
22492         (HAVE_mem_signal_fence): Add default value.
22493         * optabs.c: Adjust.
22495 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22497         * defaults.h (gen_memory_barrier): New function.
22498         (HAVE_memory_barrier): Add default value.
22499         * optabs.c: Adjust.
22501 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22503         * defaults.h (gen_mem_thread_fence): New function.
22504         (HAVE_mem_thread_fence): Add default definition.
22505         * optabs.c: Adjust.
22507 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22509         * combine.c (find_split_point): Check the value of HAVE_lo_sum
22510         instead of if it is defined.
22511         (combine_simplify_rtx): Likewise.
22512         * lra-constraints.c (process_address_1): Likewise.
22513         * config/darwin.c: Adjust.
22514         * genconfig.c (main): Always define HAVE_lo_sum.
22516 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22518         * genmatch.c (parser::parse_operation): Reject expanding
22519         operator-list inside 'for'.
22521 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22523         * genmatch.c (parser::parse_for): Reject iterator if used as
22524         operator-list.
22526 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22528         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22529         after end of id-list.
22531 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
22533         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22534         we do not try to compute canonical type for type that does not need
22535         alias set.
22536         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22537         FUNCITON_TYPE.
22538         * tree.h (type_with_alias_set_p): New.
22540 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
22542         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
22543         function attributes.
22544         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22546 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
22548         * Makefile.in (check_gcc_parallelize): Delete.
22549         (lang_checks_parallelized): Update comment.
22551 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
22553         PR rtl-optimization/66237
22554         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22555         location of an "as_a" cast.
22557 2015-05-22  Jeff Law  <law@redhat.com>
22559         * config/pa/pa.md (non-canonical shift-add insns): Remove.
22560         (peepholes with non-canonical RTL sources): Remove.
22561         (peepholes for indexed stores of FP regs in integer modes): Match and
22562         generate canonical RTL.
22564 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
22566         PR tree-optimization/63387
22567         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22568         ((x ord x) & (y ord y) -> (x ord y),
22569         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22570         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22571         vectors like scalars.
22573 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
22575         * convert.c (convert_to_integer, convert_to_vector): Include the
22576         types in the error message.
22578 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
22580         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22581         simplifications.
22583 2015-05-22  Jeff Law  <law@redhat.com>
22585         * config/pa/pa.md (integer_indexed_store splitters): Use
22586         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
22587         insns -- adjusting the constant 2nd operand accordingly.
22589         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22590         (plus (ashift X log2) Y) if it is a split point.
22592         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22593         out of hppa_legitimize_address to handle both forms of a multiply
22594         by 2, 4 or 8.
22595         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22596         Always generate the ASHIFT variant as the result is not directly
22597         used in a MEM.  Update comments and refactor slightly to improve
22598         readability.
22600 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22602         PR target/65491
22603         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22604         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
22605         (aarch64_composite_type_p): Return false if given type and mode are
22606         for a short vector.
22608 2015-05-22  Richard Biener  <rguenther@suse.de>
22610         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22611         member.
22612         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22613         patterns when determining whether SLP is pure.
22614         (vect_is_slp_reduction): Remove check for pattern stmts.
22615         (vect_is_simple_reduction_1): Remove dead code.
22616         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22617         (vect_get_and_check_slp_defs): Pass in the stmt number.
22618         Allow the first def in a reduction to be not a pattern stmt when
22619         the rest of the stmts def are patterns.
22620         (vect_build_slp_tree_1): Allow tcc_expression codes like
22621         SAD_EXPR and DOT_PROD_EXPR.
22622         (vect_build_slp_tree): Adjust.
22623         (vect_analyze_slp): Refactor and move BB vect error message ...
22624         (vect_slp_analyze_bb_1): ... here.
22626 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
22628         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22629         for CSWTCH temporary.
22631 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22633         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22634         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
22635         unknown unspecs.
22637 2015-05-22  Richard Biener  <rguenther@suse.de>
22639         PR tree-optimization/66251
22640         * tree-vect-stmts.c (vectorizable_conversion): Properly
22641         set STMT_VINFO_VEC_STMT even for the SLP case.
22643 2015-05-22  Marek Polacek  <polacek@redhat.com>
22645         * doc/extend.texi: Use @pxref instead of @xref.
22647 2015-05-22  hiraditya  <hiraditya@msn.com>
22649         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22650         redundant if.
22652 2015-05-22  Richard Biener  <rguenther@suse.de>
22654         PR tree-optimization/65701
22655         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22656         Move peeling cost models into one place.  Peel for alignment
22657         for single loads only if an aligned load is cheaper than
22658         an unaligned load.
22660 2015-05-22  Marek Polacek  <polacek@redhat.com>
22662         PR c/47043
22663         * doc/extend.texi (Enumerator Attributes): New section.
22664         Document syntax of enumerator attributes.
22666 2015-05-22  Richard Biener  <rguenther@suse.de>
22668         * tree-vect-loop.c (get_reduction_op): New function.
22669         (vect_model_reduction_cost): Use it, add reduc_index parameter.
22670         Make ready for BB reductions.
22671         (vect_create_epilog_for_reduction): Use get_reduction_op.
22672         (vectorizable_reduction): Init reduc_index to a valid value.
22673         Adjust vect_model_reduction_cost call.
22674         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22675         operand for reduction defaults.  Add SAD_EXPR support.
22676         Assert we have a neutral op for SLP reductions.
22677         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22678         walking pattern stmt ops only recurse to SSA names.
22680 2015-05-22  Richard Biener  <rguenther@suse.de>
22682         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22683         assert with guard, remove check on detected reduction.
22684         (vect_recog_sad_pattern): Likewise.
22685         (vect_recog_widen_sum_pattern): Likewise.
22687 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22689         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22690         __always_inline__ attribute.
22691         (vaesdq_u8): Likewise.
22692         (vaesmcq_u8): Likewise.
22693         (vaesimcq_u8): Likewise.
22694         (vsha1cq_u32): Likewise.
22695         (vsha1mq_u32): Likewise.
22696         (vsha1pq_u32): Likewise.
22697         (vsha1h_u32): Likewise.
22698         (vsha1su0q_u32): Likewise.
22699         (vsha1su1q_u32): Likewise.
22700         (vsha256hq_u32): Likewise.
22701         (vsha256h2q_u32): Likewise.
22702         (vsha256su0q_u32): Likewise.
22703         (vsha256su1q_u32): Likewise.
22704         (vmull_p64): Likewise.
22705         (vmull_high_p64): Likewise.
22707 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22709         * final.c (final_scan_insn): Don't check HAVE_peephole with the
22710         preprocessor.
22711         * output.h: Likewise.
22712         * genconfig.c (main): Alwways define HAVE_peephole.
22713         * genpeep.c: Don't emit checks of HAVE_peephole.
22715 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22717         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22718         check HAVE_conditional_move with the preprocessor.
22720 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22722         * genconfig.c (main): Always define HAVE_conditional_move.
22723         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22724         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22725         is defined.
22727 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22729         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22730         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22731         and FRAME_POINTER_REGNUM with the preprocessor.
22733 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22735         * defaults.h: Add default for STACK_PUSH_CODE.
22736         * expr.c: Don't redefine STACK_PUSH_CODE.
22737         * recog.c: Likewise.
22739 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22741         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22742         sched-deps.c: Use if instead of preprocessor checks with
22743         STACK_GROWS_DOWNWARD.
22745 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22747         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22748         is defined.
22749         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22750         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22751         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22752         * doc/tm.texi: Regenerate.
22754 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
22756         PR target/66232
22757         * config/i386/constraints.md (Bg): New constraint for GOT memory
22758         operand.
22759         * config/i386/i386.md (*call_got_x32): New pattern.
22760         (*call_value_got_x32): Likewise.
22761         * config/i386/predicates.md (GOT_memory_operand): New predicate.
22763 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
22765         PR tree-optimization/66233
22766         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22767         Simplify.
22769 2015-05-21  Jeff Law  <law@redhat.com>
22771         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
22772         than MULT for shadd sequences.
22774 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
22776         * alias.c (alias_stats): New static var.
22777         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
22778         (dump_alias_stats_in_alias_c): New function.
22779         * alias.h (dump_alias_stats_in_alias_c): Declare.
22780         * tree-ssa-alias.c (dump_alias_stats): Call it.
22782 2015-05-08  Michael Matz  <matz@suse.de>
22784         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
22785         to strided_p.
22786         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
22787         (STMT_VINFO_STRIDED_P): ... this.
22788         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
22789         (vect_verify_datarefs_alignment): Likewise.
22790         (vect_enhance_data_refs_alignment): Likewise.
22791         (vect_analyze_data_ref_access): Likewise.
22792         (vect_analyze_data_refs): Accept strided stores.
22793         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
22794         (vect_model_load_cost): Adjust for macro rename.
22795         (vectorizable_mask_load_store): Likewise.
22796         (vectorizable_load): Likewise.
22797         (vectorizable_store): Open code strided stores.
22799 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22801         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
22802         Document sqrt_insn.
22804 2015-05-21  Richard Biener  <rguenther@suse.de>
22806         PR c++/66211
22807         * match.pd: Guard pattern optimzing (int)(float)int
22808         conversions to apply only on GIMPLE.
22810 2015-05-21  Jeff Law  <law@redhat.com>
22812         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
22813         multiply-accumulate/shift-add insn generation.
22815 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
22817         PR target/54236
22818         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
22819         operands[1] are the same.
22821 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
22823         PR middle-end/66221
22824         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
22825         build_distinct_type_copy to copy bounds.
22827 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22829         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
22830         Change to unsigned int.
22832 2015-05-20  Jeff Law  <law@redhat.com>
22834         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
22835         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
22836         (pa_shadd_constant_p): Allow constants for shadd insns rather
22837         than valid scaling constants for memory addresses.
22838         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
22839         * config/pa/predicates.md (mem_shadd_operand): New predicate.
22840         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
22841         (shift-add insns using ASHIFT): New patterns.
22843 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
22845         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
22846         feasible.
22847         (fix_up_fall_thru_edges): Likewise.
22848         (fix_crossing_conditional_branches): Likewise. Promote jump targets
22849         from to rtx_insn to rtx_code_label where feasible.
22850         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
22851         gen_move_insn (returned type changed to rtx_insn).
22852         * builtins.c (expand_errno_check): Fix arguments of
22853         do_compare_rtx_and_jump (now expects rtx_code_label).
22854         (expand_builtin_acc_on_device): Likewise.
22855         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
22856         invert_jump (now exprects rtx_jump_insn).
22857         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
22858         (construct_init_block): Use rtx_code_label.
22859         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
22860         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
22861         calling redirect_jump.
22862         (patch_jump_insn): Likewise.
22863         (redirect_branch_edge): Likewise.
22864         (force_nonfallthru_and_redirect): Likewise.
22865         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
22866         when suitable.
22867         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
22868         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
22869         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
22870         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
22871         to store the value retured by gen_label_rtx.
22872         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
22873         rtx_jump_insn.
22874         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
22875         (split_branches): Fix calls of redirect_jump.
22876         * dojump.c (jumpifnot): Promote argument type from rtx to
22877         rtx_code_label.
22878         (jumpifnot_1): Likewise.
22879         (jumpif): Likewise.
22880         (jumpif_1): Likewise.
22881         (do_jump_1): Likewise.
22882         (do_jump): Likewise. Use rtx_code_label when feasible.
22883         (do_jump_by_parts_greater_rtx): Likewise.
22884         (do_jump_by_parts_zero_rtx): Likewise.
22885         (do_jump_by_parts_equality_rtx): Likewise.
22886         (do_compare_rtx_and_jump): Likewise.
22887         * dojump.h: Update function prototypes.
22888         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
22889         returns rtx_insn).
22890         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
22891         rtx_jump_insn.
22892         (emit_label_before): Likewise.
22893         (emit_jump_insn_after_noloc): Likewise.
22894         (emit_jump_insn_after_setloc): Likewise.
22895         (emit_jump_insn_after): Likewise
22896         (emit_jump_insn_before_setloc): Likewise.
22897         (emit_jump_insn_before): Likewise.
22898         (emit_label_before): Promote return type to rtx_code_label.
22899         (emit_label): Likewise.
22900         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
22901         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
22902         gen_move_insn.
22903         (emit_stack_restore): Likewise.
22904         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
22905         (do_cmp_and_jump): Likewise.
22906         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
22907         from rtx to rtx_code_label.
22908         (gen_move_insn_uncast): New function.
22909         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
22910         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
22911         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
22912         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
22913         invert_jump_1 and redirect_jump_1.
22914         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
22915         do_compare_rtx_and_jump.
22916         (expand_addsub_overflow): Likewise.
22917         (expand_neg_overflow): Likewise.
22918         (expand_mul_overflow): Likewise.
22919         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
22920         return value of gen_move_insn.
22921         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
22922         * loop-doloop.c (add_test): Use rtx_code_label.
22923         (doloop_modify): Likewise.
22924         (doloop_optimize): Likewise.
22925         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
22926         * lra-constraints.c (emit_spill_move): Remove cast of value returned
22927         by gen_move_insn.
22928         (inherit_reload_reg): Add cast when calling dump_insn_slim.
22929         (split_reg): Likewise.
22930         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
22931         gen_move_insn.
22932         * optabs.c (expand_binop_directly): Remove casts of values returned by
22933         maybe_gen_insn.
22934         (expand_unop_direct): Likewise.
22935         (expand_abs): Likewise.
22936         (maybe_emit_unop_insn): Likewise.
22937         (maybe_gen_insn): Promote return type to rtx_insn.
22938         * optabs.h: Update prototype of maybe_gen_insn.
22939         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
22940         redundant cast.
22941         * recog.c (struct peep2_insn_data): Promote type of insn field to
22942         rtx_insn.
22943         (peep2_reinit_state): Use NULL instead of NULL_RTX.
22944         (peep2_attempt): Remove casts of insn in peep2_insn_data.
22945         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
22946         * recog.h (struct insn_gen_fn): Promote return types of function
22947         pointers and operator ().from rtx to rtx_insn.
22948         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
22949         (fill_eager_delay_slots): Likewise.
22950         (relax_delay_slots): Likewise.
22951         (make_return_insns): Likewise.
22952         (dbr_schedule): Likewise.
22953         (optimize_skips): Likewise.
22954         (reorg_redirect_jump): Likewise.
22955         (fill_slots_from_thread): Likewise.
22956         * reorg.h: Update prototypes.
22957         * resource.c (find_dead_or_set_registers): Use dyn_cast to
22958         rtx_jump_insn instead of check.  Use it's jump_target method.
22959         * rtl.h (rtx_jump_insn::jump_label): Define new method.
22960         (rtx_jump_insn::jump_target): Define new method.
22961         (rtx_jump_insn::set_jump_target): Define new method.
22962         * rtlanal.c (tablejump_p): Promote type of one local variable.
22963         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
22964         (sched_analyze_insn): Likewise.
22965         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
22966         (print_insn): Likewise.
22967         * stmt.c (label_rtx): Promote return type to rtx_insn.
22968         (force_label_rtx): Likewise.
22969         (jump_target_rtx): Define new function.
22970         (expand_label): Use it, get rid of one cast.
22971         (expand_naked_return): Promote rtx to rtx_code_label.
22972         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
22973         (expand_case): Use rtx_code_label instread of rtx where feasible.
22974         (expand_sjlj_dispatch_table): Likewise.
22975         (emit_case_nodes): Likewise.
22976         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
22977         * store-motion.c (insert_store): Make use of new return type of
22978         gen_move_insn and remove a cast.
22979         (replace_store_insn): Likewise.
22981 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
22983         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
22984         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
22986 2015-05-20  Jeff Law  <law@redhat.com>
22988         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
22989         dispose of the jump thread path when the jump threading
22990         opportunity is cancelled.
22992 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22994         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
22995         when printing the caret character.
22997 2015-05-20  Marek Polacek  <polacek@redhat.com>
22999         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
23001 2015-05-20  Marek Polacek  <polacek@redhat.com>
23003         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
23004         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
23005         * gimple-fold.c (canonicalize_bool): Likewise.
23006         (same_bool_result_p): Likewise.
23007         * tree-if-conv.c (parse_predicate): Likewise.
23009 2015-05-20  Marek Polacek  <polacek@redhat.com>
23011         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
23012         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
23014 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23016         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
23017         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
23018         values.
23020 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
23022         * config/mips/mips.h (micromips_globals): Declare.
23024 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
23026         * timevar.def (TV_INITIALIZE_RTL): New.
23027         * toplev.c (initialize_rtl): Use an auto_timevar to account this
23028         function's time to TV_INITIALIZE_RTL.
23030 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
23032         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
23033         gimple_build_nop calls.
23034         (chkp_find_bounds_for_elem): Likewise.
23035         (chkp_get_zero_bounds): Likewise.
23036         (chkp_get_none_bounds): Likewise.
23037         (chkp_get_bounds_by_definition): Likewise.
23038         (chkp_generate_extern_var_bounds): Likewise.
23039         (chkp_get_bounds_for_decl_addr): Likewise.
23040         (chkp_get_bounds_for_string_cst): Likewise.
23042 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
23044         PR tree-optimization/65447
23045         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
23046         (dump_use, dump_uses): Support to dump sub use.
23047         (record_use): New parameters to support sub use.  Remove call to
23048         dump_use.
23049         (record_sub_use, record_group_use): New functions.
23050         (compute_max_addr_offset, split_all_small_groups): New functions.
23051         (group_address_uses, rewrite_use_address): New functions.
23052         (strip_offset): New declaration.
23053         (find_interesting_uses_address): Call record_group_use.
23054         (add_candidate): New assertion.
23055         (infinite_cost_p): Move definition forward.
23056         (add_costs): Check INFTY cost and return immediately.
23057         (get_computation_cost_at): Clear setup cost and dependent bitmap
23058         for sub uses.
23059         (determine_use_iv_cost_address): Compute cost for sub uses.
23060         (rewrite_use_address_1): Rename from old rewrite_use_address.
23061         (free_loop_data): Free sub uses.
23062         (tree_ssa_iv_optimize_loop): Call group_address_uses.
23064 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
23065             Jim Wilson  <jim.wilson@linaro.org>
23067         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
23068         new  fields loadv and storev.
23069         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23070         Initialize loadv and storev.
23071         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
23072         (cortexa53_extra_costs): Likewise.
23073         (cortexa57_extra_costs): Likewise.
23074         (xgene1_extra_costs): Likewise.
23075         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
23076         rtx_costs.
23078 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
23080         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
23081          storev.
23082         (cortexa8_extra_costs): Likewise.
23083         (cortexa5_extra_costs): Likewise.
23084         (cortexa7_extra_costs): Likewise.
23085         (cortexa12_extra_costs): Likewise.
23086         (cortexa15_extra_costs): Likewise.
23087         (v7m_extra_costs): Likewise.
23089 2015-05-20  Jeff Law  <law@redhat.com>
23091         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
23092         instead of open-coded version.  Also delete the jump thread created
23093         within this function.
23095 2015-05-20  Alan Modra  <amodra@gmail.com>
23097         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
23098         stack adjusting insn.  Formatting.
23099         (rs6000_emit_prologue): Track stack adjusting insn, and use of
23100         r12.  If possible, emit first -fsplit-stack arg pointer insn
23101         before stack adjust.  Don't use r12 to save cr if split-stack.
23103 2015-05-20  Alan Modra  <amodra@gmail.com>
23105         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
23106         Define.
23107         (rs6000_supports_split_stack): New function.
23108         * gcc/config/rs6000/rs6000.c (machine_function): Add
23109         split_stack_arg_pointer.
23110         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
23111         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
23112         rather than virtual_incoming_args_rtx.
23113         (rs6000_va_start): Likewise.
23114         (split_stack_arg_pointer_used_p): New function.
23115         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
23116         (morestack_ref): New var.
23117         (gen_add3_const, rs6000_expand_split_stack_prologue,
23118         rs6000_internal_arg_pointer, rs6000_live_on_entry,
23119         rs6000_split_stack_space_check): New functions.
23120         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
23121         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
23122         (UNSPECV_SPLIT_STACK_RETURN): Define.
23123         (split_stack_prologue, load_split_stack_limit,
23124         load_split_stack_limit_di, load_split_stack_limit_si,
23125         split_stack_return, split_stack_space_check): New expands and insns.
23126         * gcc/config/rs6000/rs6000-protos.h
23127         (rs6000_expand_split_stack_prologue): Declare.
23128         (rs6000_split_stack_space_check): Declare.
23130 2015-05-20  Alan Modra  <amodra@gmail.com>
23132         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
23133         (direct_return): Test vrsave_size rather than vrsave_mask.
23134         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
23135         (rs6000_emit_epilogue): Likewise.
23137 2015-05-20  Alan Modra  <amodra@gmail.com>
23139         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
23140         when not saving registers.
23141         (debug_stack_info): Adjust to omit printing unused offsets,
23142         as before.
23143         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
23144         expression.
23146 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23148         PR c++/65835
23149         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
23150         value_type to const char *.
23152 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
23154         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
23155         to build a biarch toolchain again.
23157 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
23159         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
23160         or implicit declarations.
23161         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
23162         into it.
23163         (get_odr_type): Check type has linkage before adding bases.
23164         (register_odr_type): Check that type has linkage before adding it.
23165         (type_known_to_have_no_deriavations_p): Rename to ..
23166         (type_known_to_have_no_derivations_p): This one.
23167         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
23168         (type_known_to_have_no_derivations_p): This one.
23169         * ipa-polymorphic-call.c
23170         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
23171         type has linkage.
23173 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
23175         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
23176         (layout_type): Use RECORD_OR_UNION_TYPE_P.
23178 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23180         * config/s390/s390.c (s390_vector_bool_type_p): New function.
23181         (s390_invalid_binary_op): New function.
23182         (TARGET_INVALID_BINARY_OP): Define macro.
23184 2015-05-19  David Sherwood  <david.sherwood@arm.com>
23186         * loop-invariant.c (create_new_invariant): Don't calculate address cost
23187         if mode is not a scalar integer.
23188         (get_inv_cost): Increase computational cost for unused invariants.
23190 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23192         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
23193         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
23194         * config/s390/s390-builtin-types.def: New file.
23195         * config/s390/s390-builtins.def: New file.
23196         * config/s390/s390-builtins.h: New file.
23197         * config/s390/s390-c.c: New file.
23198         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
23199         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
23200         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
23201         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
23202         prototypes.
23203         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
23204         Include.
23205         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
23206         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
23207         variable definitions.
23208         (s390_const_operand_ok): New function.
23209         (s390_expand_builtin): Rewrite.
23210         (s390_init_builtins): New function.
23211         (s390_handle_vectorbool_attribute): New function.
23212         (s390_attribute_table): Add s390_vector_bool attribute.
23213         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
23214         (s390_branch_condition_mask): Generate masks for new modes.
23215         (s390_expand_vec_compare_cc): New function.
23216         (s390_mangle_type): Add mangling for vector bool types.
23217         (enum s390_builtin): Remove.
23218         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
23219         efpc builtins.
23220         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
23221         s390_cpu_cpp_builtins.
23222         (REGISTER_TARGET_PRAGMAS): New macro.
23223         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
23224         (insn_cmp mode attribute): Add new CC modes.
23225         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
23226         (lcbb): New pattern definition.
23227         * config/s390/s390intrin.h: Include vecintrin.h.
23228         * config/s390/t-s390: New file.
23229         * config/s390/vecintrin.h: New file.
23230         * config/s390/vector.md: Include vx-builtins.md.
23231         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
23232         support.
23234 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23236         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
23237         CCVFHE.
23238         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
23239         (s390_select_ccmode): Likewise.
23240         (s390_canonicalize_comparison): Swap operands if necessary.
23241         (s390_expand_vec_compare_scalar): Expand DFmode compare using
23242         single element vector instructions.
23243         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
23244         (s390_branch_condition_mask): Generate CC masks for the new modes.
23245         * config/s390/s390.md (v0, vf, vd): New mode attributes.
23246         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
23247         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
23248         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
23249         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
23250         (*extend<DSF:mode><BFP:mode>2): New insn definition.
23251         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
23252         (extend<DSF:mode><BFP:mode>2): Turn into expander.
23253         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
23254         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
23255         (sqrt<mode>2): Add vector instruction.
23257 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23259         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
23260         constraints.
23261         * config/s390/predicates.md (const0_operand, constm1_operand)
23262         (constable_operand): Accept vector operands.
23263         * config/s390/s390-modes.def: Add supported vector modes.
23264         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
23265         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
23266         (s390_bytemask_vector_p, s390_expand_vec_strlen)
23267         (s390_expand_vec_compare, s390_expand_vcond)
23268         (s390_expand_vec_init): Add prototypes.
23269         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
23270         (s390_vector_mode_supported_p): New function.
23271         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
23272         (s390_contiguous_bitmask_vector_p): New function.
23273         (s390_bytemask_vector_p): New function.
23274         (s390_split_ok_p): Vector regs don't work either.
23275         (regclass_map): Add VEC_REGS.
23276         (s390_legitimate_constant_p): Handle vector constants.
23277         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
23278         (legitimate_reload_vector_constant_p): New function.
23279         (s390_preferred_reload_class): Handle CONST_VECTOR.
23280         (s390_reload_symref_address):  Likewise.
23281         (s390_secondary_reload): Vector memory instructions only support
23282         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
23283         (s390_emit_ccraw_jump): New function.
23284         (s390_expand_vec_strlen): New function.
23285         (s390_expand_vec_compare): New function.
23286         (s390_expand_vcond): New function.
23287         (s390_expand_vec_init): New function.
23288         (s390_dwarf_frame_reg_mode): New function.
23289         (print_operand): Handle addresses with 'O' and 'R' constraints.
23290         (NR_C_MODES, constant_modes): Add vector modes.
23291         (s390_output_pool_entry): Handle vector constants.
23292         (s390_hard_regno_mode_ok): Handle vector registers.
23293         (s390_class_max_nregs): Likewise.
23294         (s390_cannot_change_mode_class): New function.
23295         (s390_invalid_arg_for_unprototyped_fn): New function.
23296         (s390_function_arg_vector): New function.
23297         (s390_function_arg_float): Remove size variable.
23298         (s390_pass_by_reference): Handle vector arguments.
23299         (s390_function_arg_advance): Likewise.
23300         (s390_function_arg): Likewise.
23301         (s390_return_in_memory): Vector values are returned in a VR if
23302         possible.
23303         (s390_function_and_libcall_value): Handle vector arguments.
23304         (s390_gimplify_va_arg): Likewise.
23305         (s390_call_saved_register_used): Consider the arguments named.
23306         (s390_conditional_register_usage): Disable v16-v31 for non-vec
23307         targets.
23308         (s390_preferred_simd_mode): New function.
23309         (s390_support_vector_misalignment): New function.
23310         (s390_vector_alignment): New function.
23311         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
23312         (TARGET_VECTOR_MODE_SUPPORTED_P)
23313         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
23314         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23315         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
23316         (TARGET_VECTOR_ALIGNMENT): Define target macro.
23317         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
23318         (FIRST_PSEUDO_REGISTER): Increase value.
23319         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
23320         (VECTOR_REG_P): Define macros.
23321         (FIXED_REGISTERS, CALL_USED_REGISTERS)
23322         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
23323         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
23324         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
23325         Add vector registers.
23326         (CANNOT_CHANGE_MODE_CLASS): Call C function.
23327         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
23328         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
23329         memory.
23330         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
23331         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
23332         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
23333         (VR*_REGNUM): New constants.
23334         (ALL): New mode iterator.
23335         (INTALL): Remove mode iterator.
23336         Include vector.md.
23337         (movti): Implement TImode moves for VRs.
23338         Disable TImode splitter for VR targets.
23339         Implement splitting TImode GPR<->VR moves.
23340         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
23341         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
23342         reload<mode>_la_in, reload<mode>_la_out.
23343         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
23344         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
23345         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
23346         (mov<mode> SF SD): Prefer lder, lde for loading.
23347         Add lrl and strl instructions.
23348         Add vector instructions.
23349         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
23350         Call s390_expand_vec_strlen on z13.
23351         (*cc_to_int): Change predicate to nonimmediate_operand.
23352         (addti3): Rename to *addti3.  New expander.
23353         (subti3): Rename to *subti3.  New expander.
23354         * config/s390/vector.md: New file.
23356 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23358         * common/config/s390/s390-common.c (processor_flags_table): Add
23359         z13.
23360         * config.gcc: Add z13.
23361         * config/s390/s390-opts.h (enum processor_type): Add
23362         PROCESSOR_2964_Z13.
23363         * config/s390/s390.c (s390_adjust_priority): Check for
23364         PROCESSOR_2964_Z13.
23365         (s390_reorg): Likewise.
23366         (s390_sched_reorder): Likewise.
23367         (s390_sched_variable_issue): Likewise.
23368         (s390_loop_unroll_adjust): Likewise.
23369         (s390_option_override): Likewise. Default to -mvx when available.
23370         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
23371         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
23372         (TARGET_VX_ABI): Define macros.
23373         macros.
23374         (TARGET_DEFAULT): Add MASK_OPT_VX.
23375         * config/s390/s390.md ("cpu" attribute): Add z13.
23376         ("cpu_facility" attribute): Add vec.
23377         * config/s390/s390.opt (processor_type): Add z13.
23378         (mvx): New options.
23379         * doc/invoke.texi: Add z13 option for -march.
23381 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23383         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
23384         mode check to make sure that only scalar integer values are
23385         accepted.
23387 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
23389         * tree.c (verify_type_variant): Fix #undef.
23390         (gimple_canonical_types_compatible_p): Move here from lto.c
23391         (verify_type): Verify TYPE_CANONICAL compatibility.
23392         * tree.h (gimple_canonical_types_compatible_p): Declare.
23394 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
23396         PR middle-end/66199
23397         * tree.h (OMP_TEAMS_COMBINED): Define.
23398         * gimplify.c (enum gimplify_omp_var_data): Add
23399         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
23400         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
23401         (omp_notice_variable): Accept both ORT_TEAMS
23402         and ORT_COMBINED_TEAMS.  Don't recurse if
23403         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
23404         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
23405         GOVD_FIRSTPRIVATE.
23406         (omp_no_lastprivate): New function.
23407         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
23408         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
23409         notice_outer and set appropriate bits, otherwise make
23410         sure default(none) combined constructs won't complain.
23411         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
23412         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
23413         omp_no_lastprivate either remove the clause or turn it
23414         into OMP_CLAUSE_PRIVATE.
23415         (gimplify_omp_for): Fix up handling of implicit
23416         lastprivate or linear iterators.
23417         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
23418         ORT_COMBINED_TEAMS.
23419         * omp-low.c (lower_omp_for_lastprivate): For combined
23420         for simd use fd.loop.n2 from the for rather than simd.
23422 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23424         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
23425         instead of gen_rtx_raw_REG.
23426         (cris_expand_epilogue): Likewise.
23427         * config/microblaze/microblaze.c (microblaze_classify_address):
23428         Likewise.
23429         * config/sparc/sparc.md: Likewise.
23431 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
23433         * config/alpha/alpha.c (alpha_legitimize_reload_address)
23434         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
23435         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
23436         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
23437         Use CASE_CONST_SCALAR_INT.
23438         (print_operand) <case 'M'>: Use mode_width_operand to check the
23439         value of the constant.
23440         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
23441         * config/alpha/predicates.md (input_operand): Use general_operand
23442         instead of match_code as operand check.
23443         (symbolic_operand): Use match_code with subexpression digits.
23444         * config/alpha/constraints.md (Q): Ditto.
23446 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23448         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
23450 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23452         * config/s390/s390.c (s390_secondary_reload): Fix check for
23453         load/store relative.
23455 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23457         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
23458         alternative_mask to uint64_t.
23460 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
23462         PR tree-optimization/66187
23463         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
23464         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
23465         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
23467 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
23469         * diagnostic.c (diagnostic_report_current_module): Strengthen
23470         local "new_map" from const line_map * to
23471         const line_map_ordinary *.
23472         * genmatch.c (error_cb): Likewise for local "map".
23473         (output_line_directive): Likewise for local "map".
23474         * input.c (expand_location_1): Likewise for local "map".
23475         Pass NULL rather than &map to
23476         linemap_unwind_to_first_non_reserved_loc, since the value is never
23477         read from there, and the value written back not read from here.
23478         (is_location_from_builtin_token): Strengthen local "map" from
23479         const line_map * to const line_map_ordinary *.
23480         (dump_location_info): Strengthen locals "map" from
23481         line_map *, one to const line_map_ordinary *, the other
23482         to const line_map_macro *.
23483         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
23484         const line_map * to const line_map_macro *.
23485         (maybe_unwind_expanded_macro_loc): Add a call to
23486         linemap_check_macro when writing to the "map" field of the
23487         loc_map_pair.
23488         Introduce local const line_map_ordinary * "ord_map", using it in
23489         place of "map" in the part of the function where we know we have
23490         an ordinary map.  Strengthen local "m" from const line_map * to
23491         const line_map_ordinary *.
23493 2015-05-19  Nick Clifton  <nickc@redhat.com>
23495         PR target/66156
23496         * config/msp430/msp430.md (zero_extendhisi2): Add support for
23497         separate source and destination registers.
23499 2015-05-19  Richard Biener  <rguenther@suse.de>
23501         PR tree-optimization/66165
23502         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
23503         for no load permutation.
23505         PR tree-optimization/66185
23506         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
23507         when building the SLP node from scalars.
23509 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
23510             Tristan Gingold  <gingold@adacore.com>
23512         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
23513         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
23514         (expand_stack_restore): Call record_new_stack_level.
23515         (expand_stack_save): Do not call do_pending_stack_adjust.
23516         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
23517         * calls.c (expand_call): Call record_new_stack_level for alloca.
23518         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
23519         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
23520         (update_sjlj_context): New global function.
23521         * except.h (update_sjlj_context): Declare.
23522         * explow.c (record_new_stack_level): New global function.
23523         (allocate_dynamic_stack_space): Call record_new_stack_level.
23524         * explow.h (record_new_stack_level): Declare.
23525         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23526         * cfgrtl.c (duplicate_insn_chain): Likewise.
23528 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23530         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23531         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23532         STACK_GROWS_DOWNWARD as normal if.
23533         (expand_call): Likewise.
23535 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
23537         PR target/54236
23538         * config/sh/sh.md (*round_int_even): New insn_and_split and
23539         accompanying new unnamed split.
23541 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23543         * bitmap.c (bitmap_set_range): Handle count==1 specially.
23544         (bitmap_clear_range): Likewise.
23545         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23546         bitmap_set_range unconditionally.
23547         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23548         * df-scan.c (df_mark_reg): Likewise.
23549         * haifa-sched.c (setup_ref_regs): Likewise.
23550         * sched-rgn.c (update_live_1): Likewise.
23552 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23554         * regs.h (END_HARD_REGNO): Delete.
23555         (END_REGNO): Move to...
23556         * rtl.h: ...here.
23557         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23558         * caller-save.c (mark_set_regs): Likewise.
23559         * combine.c (move_deaths, distribute_notes): Likewise.
23560         * cse.c (invalidate, invalidate_for_call): Likewise.
23561         * df-scan.c (df_ref_record): Likewise.
23562         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23563         (record_last_reg_set_info): Likewise.
23564         * reg-stack.c (convert_regs_exit): Likewise.
23565         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23566         * resource.c (update_live_status): Likewise.
23567         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23569 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23571         * rtl.h (reg_info): Add an nregs field.
23572         (REG_NREGS): Use it.
23573         (SET_REGNO_RAW): Delete.
23574         (set_regno_raw): New function.
23575         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23576         (END_REGNO): Redefine in terms of REG_NREGS.
23577         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23578         SET_REGNO_RAW.
23579         * emit-rtl.c (set_mode_and_regno): Likewise.
23580         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23581         instead of SET_REGNO_RAW.
23583 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23585         * rtl.h (PUT_MODE_RAW): New macro.
23586         (PUT_REG_NOTE_KIND): Use it.
23587         (set_mode_and_regno): Declare.
23588         (gen_raw_REG): Change regno to "unsigned int".
23589         (gen_rtx_REG): Change "unsigned" to "unsigned int".
23590         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23591         use set_mode_and_regno to change the mode of registers.
23592         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23593         * emit-rtl.c (set_mode_and_regno): New function.
23594         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
23595         * caller-save.c (reg_save_code): Use set_mode_and_regno.
23596         * expr.c (init_expr_target): Likewise.
23597         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23598         * postreload.c (reload_cse_simplify_operands): Likewise.
23600 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23602         * caller-save.c (init_caller_save): Use word_mode and
23603         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23604         * expr.c (init_expr_target): Likewise.
23605         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23606         * postreload.c (reload_cse_regs_1): Likewise.
23608 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23610         * rtl.def (REG): Change format to "r".
23611         * rtl.h (rtunion): Remove rt_reg.
23612         (reg_info): New structure.
23613         (rtx_def): Add reg field to main union.
23614         (X0REGATTR): Delete.
23615         (REG_CHECK): New macro.
23616         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23617         * rtl.c (rtx_format): Document "r".
23618         (rtx_code_size): Handle REG specially.
23619         * gengenrtl.c (special_format): Return true for formats
23620         that include 'r'.
23621         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23622         Deal with REG_ATTRS after the field loop.
23623         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23624         * expmed.c (init_expmed): Call gen_raw_REG instead of
23625         gen_rtx_raw_REG.
23626         * expr.c (init_expr_target): Likewise.
23627         * regcprop.c (maybe_mode_change): Likewise.
23628         * varasm.c (make_decl_rtl): Likewise.
23629         * final.c (leaf_renumber_regs_insn): Return early after
23630         handling REGs.
23631         * genemit.c (gen_exp): Handle 'r' fields.
23632         * genpeep.c (match_rtx): Likewise.
23633         * gensupport.c (subst_pattern_match): Likewise.
23634         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23635         (alter_constraints, subst_dup): Likewise.
23636         * read-rtl.c (read_rtx_code): Likewise.
23637         * print-rtl.c (print_rtx): Likewise.
23638         * genrecog.c (find_operand, find_matching_operand): Likewise.
23639         (validate_pattern, match_pattern_2): Likewise.
23640         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23641         (rtx_test::regno_field): New function.
23642         (operator ==, safe_to_hoist_p, transition_parameter_type)
23643         (parameter_type_string, print_parameter_value)
23644         (print_nonbool_test, print_test): Handle new enum values.
23645         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23646         * lra-constraints.c (operands_match_p): Likewise.
23648 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23650         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23651         Change type of new_regno to unsigned int.
23652         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23653         new_regno to unsigned int.
23654         (df_ref_change_reg_with_loc): Remove old_regno parameter.
23655         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
23656         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23657         (SET_REGNO_RAW): Add space after ",".
23659 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23661         * rtl.h (REG_NREGS): New macro
23662         * alias.c (record_set): Use it.
23663         * cfgcleanup.c (mark_effect): Likewise.
23664         * combine.c (likely_spilled_retval_1): Likewise.
23665         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23666         (move_deaths, distribute_notes): Likewise.
23667         * cselib.c (cselib_record_set): Likewise.
23668         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23669         * df-scan.c (df_mark_reg): Likewise.
23670         * dse.c (look_for_hardregs): Likewise.
23671         * dwarf2out.c (reg_loc_descriptor): Likewise.
23672         (multiple_reg_loc_descriptor): Likewise.
23673         * expr.c (write_complex_part, read_complex_part): Likewise.
23674         (emit_move_complex): Likewise.
23675         * haifa-sched.c (setup_ref_regs): Likewise.
23676         * ira-lives.c (mark_hard_reg_live): Likewise.
23677         * lra.c (lra_set_insn_recog_data): Likewise.
23678         * mode-switching.c (create_pre_exit): Likewise.
23679         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23680         (reload_combine_recognize_pattern): Likewise.
23681         (reload_combine_note_use, move2add_record_mode): Likewise.
23682         (reload_cse_move2add): Likewise.
23683         * reg-stack.c (subst_stack_regs_pat): Likewise.
23684         * regcprop.c (kill_value, copy_value): Likewise.
23685         (copyprop_hardreg_forward_1): Likewise.
23686         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23687         (build_def_use): Likewise.
23688         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23689         (deps_analyze_insn): Likewise.
23690         * sched-rgn.c (check_live_1, update_live_1): Likewise.
23691         * sel-sched.c (count_occurrences_equiv): Likewise.
23692         * valtrack.c (dead_debug_insert_temp): Likewise.
23694 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
23696         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23697         * dse.c (note_add_store): Likewise.
23698         * ira-lives.c (mark_hard_reg_dead): Likewise.
23699         * loop-invariant.c (mark_reg_store): Likewise.
23700         (mark_reg_death): Likewise.
23701         * postreload.c (reload_combine): Likewise.
23702         (reload_combine_note_store): Likewise.
23703         (reload_combine_note_use): Likewise.
23704         * recog.c (peep2_reg_dead_p): Likewise.
23706 2015-05-19  Alan Modra  <amodra@gmail.com>
23708         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23709         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23710         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23711         unused predicates.
23712         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23713         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
23714         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23715         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23717 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
23719         * config/mips/mips.md (JOIN_MODE): New mode iterator.
23720         (join2_load_Store<JOIN_MODE:mode>): New pattern.
23721         (join2_loadhi): Likewise.
23722         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23723         load-load and store-stores.
23724         * config/mips/mips.opt (mload-store-pairs): New option.
23725         (TARGET_LOAD_STORE_PAIRS): New macro.
23726         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23727         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23728         * config/mips/mips.c (mips_load_store_bonding_p): New function.
23730 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
23732         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23733         explicit swaps.
23734         * dojump.c (do_compare_rtx_and_jump): Likewise.
23735         * expmed.c (emit_store_flag_1): Likewise.
23736         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23737         * final.c (sprint_ul): Use std::reverse for reversing a string.
23738         * fold-const.c (extract_muldiv_1): Use std::swap.
23739         * genmodes.c (emit_mode_int_n): Likewise.
23740         * ifcvt.c (dead_or_predicable): Likewise.
23741         * ira-build.c (ira_merge_live_ranges): Likewise.
23742         (swap_allocno_copy_ends_if_necessary): Likewise.
23743         * ira.c (ira_setup_alts): Likewise.
23744         * loop-iv.c (iv_analyze_expr): Likewise.
23745         (implies_p): Likewise.
23746         (canon_condition): Likewise.
23747         * lra-constraints.c (swap_operands): Likewise.
23748         * lra-lives.c (lra_merge_live_ranges): Likewise.
23749         * omega.c (swap): Remove.
23750         (bswap): Remove.
23751         (omega_unprotect_1): Use std::swap.
23752         (omega_solve_geq): Likewise.
23753         * optabs.c (expand_binop_directly): Likewise.
23754         (expand_binop): Likewise.
23755         (emit_conditional_move): Likewise.
23756         (emit_conditional_add): Likewise.
23757         * postreload.c (reload_cse_simplify_operands): Likewise.
23758         * reg-stack.c (emit_swap_insn): Likewise.
23759         (swap_to_top): Likewise.
23760         (compare_for_stack_reg): Likewise.
23761         (subst_asm_stack_regs): Likewise.
23762         * reload.c (find_reloads): Likewise.
23763         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23764         * sel-sched.c (invoke_reorder_hooks): Likewise.
23765         (create_block_for_bookkeeping): Likewise.
23766         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23767         (lambda_matrix_right_hermite): Use std::swap.
23768         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23769         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23770         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
23771         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
23772         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
23773         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
23774         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
23775         * tree-vrp.c (compare_ranges): Likewise.
23776         * var-tracking.c (add_with_sets): Likewise.
23777         (vt_find_locations): Likewise.
23779 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
23781         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
23782         pie executables.
23783         (FBSD_ENDFILE_SPEC): Likewise.
23784         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
23785         config/freebsd-spec.h.
23786         (ENDFILE_SPEC): Likewise.
23788 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
23789             Richard Henderson  <rth@redhat.com>
23791         PR target/57032
23792         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
23793         Check for a memory location that is not a reference (using an AND)
23794         to an unaligned location here.
23795         * config/alpha/predicates.md (normal_memory_operand): Remove.
23797 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
23799         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
23800         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
23802 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
23804         * config/mips/mips.c (micromips_globals): New variable.
23805         (mips_set_compression_mode): Save and reinitialize target-dependent
23806         state for microMIPS.
23808 2015-05-18  Martin Liska  <mliska@suse.cz>
23810         * dbgcnt.def: Add new counter.
23811         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
23813 2015-05-18  Martin Liska  <mliska@suse.cz>
23815         * dbgcnt.def: Sort counters.
23816         * opts.c (common_handle_option): Do not compile if
23817         -fdbg-cnt-list is enabled.
23819 2015-05-18  Tom de Vries  <tom@codesourcery.com>
23821         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
23822         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
23823         address operator to va_list operand.
23824         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
23825         unconditionally.
23826         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
23827         operand.
23828         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
23829         * config/s390/s390.c (s390_gimplify_va_arg): Same.
23830         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
23832 2015-05-18  Tom de Vries  <tom@codesourcery.com>
23834         * tree-ssa-tail-merge.c: Fix whitespace.
23836 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
23838         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
23839         cortex-a17, and cortex-a17.cortex-a7.
23841 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
23843         PR target/54236
23844         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
23846 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
23848         PR target/66174
23849         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
23850         QImode inner modes for TARGET_AVX512BW.  Force mask operand
23851         to a register for AVX512F modes.
23853 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
23855         * toplev.c (emit_debug_global_declarations): Do not output debug info
23856         when doing slim LTO objects.
23858 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
23860         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
23861         odr_types_equivalent_p): Declare.
23862         (odr_type_p): Use gcc_checking_assert.
23863         (type_in_anonymous_namespace_p) Declare.
23864         (type_with_linkage_p): Declare.
23865         * common.opt (Wlto-type-mismatch): New warning.
23866         * ipa-devirt.c (compound_type_base): New function.
23867         (odr_or_derived_type_p): New function.
23868         (odr_types_equivalent_p): New function.
23869         (add_type_duplicate): Simplify.
23870         (type_with_linkage_p): Add hack to prevent false positives on C types
23871         (type_in_anonymous_namespace_p): Likewise.
23872         * tree.c (need_assembler_name_p): Use type_with_linkage.
23873         * tree.h (type_in_anonymous_namespace_p): Remove.
23874         * doc/invoke.texi (-Wlto-type-mismatch): Document
23876 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
23878         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
23879         (verify_type): Verify STRING_FLAG.
23881 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23883         PR fortran/44054
23884         * tree-pretty-print.c (percent_K_format): Replace locus pointer
23885         with accessor function.
23886         * tree-diagnostic.c (diagnostic_report_current_function): Use
23887         diagnostic_location function.
23888         (maybe_unwind_expanded_macro_loc): Likewise.
23889         (virt_loc_aware_diagnostic_finalizer): Likewise.
23890         (default_tree_printer): Replace locus pointer with accessor function.
23891         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
23892         (diagnostic_set_info_translated): Initialize second location.
23893         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
23894         (diagnostic_show_locus): Handle two locations. Call
23895         diagnostic_print_caret_line.
23896         (diagnostic_print_caret_line): New.
23897         (default_diagnostic_starter): Use diagnostic_location function.
23898         (diagnostic_report_diagnostic): Use diagnostic_location function.
23899         (verbatim): Do not set text.locus.
23900         * diagnostic.h (struct diagnostic_info): Remove location field.
23901         (struct diagnostic_context): Make caret_chars an array of two.
23902         (diagnostic_location): New inline.
23903         (diagnostic_expand_location): Handle two locations.
23904         (diagnostic_same_line): New inline.
23905         (diagnostic_print_caret_line): Declare.
23906         (CARET_LINE_MARGIN): New constant.
23907         * pretty-print.c (pp_printf): Do not set text.locus.
23908         (pp_verbatim): Do not set text.locus.
23909         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
23910         (struct text_info): Replace locus pointer with locations
23911         array. Add accessor functions.
23913 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
23914             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23916         PR target/65768
23917         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
23918         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
23919          large constants in register instead of splitting them.
23921 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
23923         PR target/66140
23924         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
23925         replacements in memory addresses.
23926         (get_unaligned_address): Ditto.
23928 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
23930         * config/ft32/*: New files for FT32 port.
23931         * doc/install.texi: Add FT32 information.
23932         * doc/invoke.texi: Add FT32 information.
23933         * doc/md.texi: Add FT32 information.
23934         * doc/contrib.texi: Self added.
23936 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
23938         PR tree-optimization/64454
23939         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
23940         (-1 - A -> ~A): Remove unnecessary condition.
23942 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
23944         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
23945         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
23946         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
23948 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
23950         * ipa-chkp.h (chkp_wrap_function): New.
23951         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
23952         (chkp_wrap_function_name): New.
23953         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
23954         to get wrapper name.
23955         * lto-cgraph.c: Include ipa-chkp.h.
23956         (input_cgraph_1): Avoid alias chain for wrappers.
23958 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23960         PR middle-end/66134
23961         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
23962         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
23964 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23966         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
23967         (AARCH64_FL_SLOWMUL): Delete.
23968         (AARCH64_FL_CRC): Redefine to 1<<3.
23969         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
23971 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23973         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
23974         casting.
23976 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
23978         * config/alpha/alpha.md (extendqidi2): Use general_operand
23979         instead of some_operand for operand[1] predicate.
23980         (extendhidi2): Ditto.
23981         (cbranchdi4): Use general_operand instead of some_operand
23982         for operand[1] and operands[2] predicates.
23983         (cstoredi4): Ditto.
23984         * config/alpha/predicates.md (some_operand): Remove unused predicate.
23985         (some_ni_operand): Ditto.
23987 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
23989         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
23990         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
23991         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
23992         low part of the constant using alpha_emit_set_const_1.
23993         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
23995 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
23997         * varasm.c (output_constant_pool_1): Pass down alignment from
23998         constant pool entry's descriptor to output_constant_pool_2.
23999         (output_object_block): Add comment prior to call to
24000         output_constant_pool_1.
24002 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
24004         PR rtl-optimization/65862
24005         * target.def (ira_change_pseudo_allocno_class): New hook.
24006         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
24007         value of the hook.
24008         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
24009         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
24010         hook.
24011         * ira-costs.c (find_costs_and_classes): Call the hook and change
24012         classes when it is necessary.
24013         * doc/tm.texi: Update.
24015 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
24017         * config/i386/i386.md (sibcall_memory): Check that register with
24018         callee address is not also used as one of the arguments, instead
24019         of checking that it is not live after the sibcall.
24020         (sibcall_pop_memory): Ditto.
24021         (sibcall_value_memory): Ditto.
24022         (sibcall_value_pop_memory): Ditto.
24024 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
24026         * generic-match-head.c (types_match): Handle non-types.
24027         * gimple-match-head.c (types_match): Likewise.
24028         * match.pd: Remove unnecessary TREE_TYPE for types_match.
24030 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
24032         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
24033         (csneg3<mode>_insn): Enable expansion of pattern.
24035 2015-05-14  Nick Clifton  <nickc@redhat.com>
24037         * config/rl78/rl78.c (rl78_select_section): Select the correct
24038         default section based upon the category of the decl.
24040 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
24042         PR rtl-optimization/30967
24043         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
24044         destination mode for the cost of scc patterns.
24046 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
24048         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
24049         using SWIM248 mode iterator.
24050         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
24051         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
24052         for operand[2] constraint.
24053         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
24055 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
24057         PR middle-end/66133
24058         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
24059         make sure it is never noreturn, even when the task body does not
24060         return.
24061         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
24062         right before GIMPLE_OMP_RETURN.
24063         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
24064         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
24065         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
24067 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24069         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
24070         * tree-ssa-math-opts.c: Include params.h
24071         (pow_synth_sqrt_info): New struct.
24072         (representable_as_half_series_p): New function.
24073         (get_fn_chain): Likewise.
24074         (print_nested_fn): Likewise.
24075         (dump_fractional_sqrt_sequence): Likewise.
24076         (dump_integer_part): Likewise.
24077         (expand_pow_as_sqrts): Likewise.
24078         (gimple_expand_builtin_pow): Use above to attempt to expand
24079         pow as series of square roots.  Removed now unused variables.
24081 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
24083         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
24084         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
24085         Remove *p0 and *p1 arguments.  Rewrite function.
24086         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
24087         (alpha_split_const_mov): Update calls to alpha_extract_integer and
24088         alpha_emit_set_long_const.
24089         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
24090         (alpha_output_mi_thunk_osf): Ditto.
24091         * config/alpha/alpha.md (movti): Do not check operands[1]
24092         for CONST_DOUBLE.
24094 2015-05-13  Richard Biener  <rguenther@suse.de>
24096         PR tree-optimization/66129
24097         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
24098         commutative.
24099         (vect_schedule_slp_instance): Fix typo.
24101 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
24103         * common.opt (fdump-internal-locations): New option.
24104         * input.c: Include diagnostic-core.h.
24105         (get_end_location): New function.
24106         (write_digit): New function.
24107         (write_digit_row): New function.
24108         (dump_location_range): New function.
24109         (dump_labelled_location_range): New function.
24110         (dump_location_info): New function.
24111         * input.h (dump_location_info): New prototype.
24112         * toplev.c (compile_file): Handle flag_dump_locations.
24114 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
24116         * gimple-expr.h (is_gimple_constant): Reorder.
24117         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
24119 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
24121         * combine.c (simplify_set): When generating a CC set, if the
24122         source already is in the correct mode, do not wrap it in a
24123         compare.  Simplify the rest of that code.
24125 2015-05-13  Richard Biener  <rguenther@suse.de>
24127         PR tree-optimization/66123
24128         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
24129         a taken edge.
24131 2015-05-13  Richard Biener  <rguenther@suse.de>
24133         PR middle-end/66110
24134         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
24135         specially.
24136         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
24138 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
24140         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
24141         * aclocal.m4: Regenerated with automake-1.11.6.
24143 2015-05-13  Tom de Vries  <tom@codesourcery.com>
24145         PR tree-optimization/66010
24146         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
24147         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
24148         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
24149         and rval based on do_deref.
24151 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
24153         PR target/65103
24154         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
24155         link time constants into adress expressions and therefore set
24156         their cost to 0.
24158 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
24160         PR target/66112
24161         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
24162         Use SWI248 iterator instead of SWI.
24163         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
24164         Use eq_attr "alternative" "0" instead of match_test in
24165         length_immediate attribute computation.
24166         (*mulvhi4, *mulvhi4_1): New define_insns.
24168         PR target/66112
24169         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
24170         SIGNED to get precision of non-negative value.
24172 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
24174         PR target/66048
24175         * function.c (diddle_return_value_1): Process bounds first.
24176         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
24177         register.
24179 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24181         PR rtl-optimization/64616
24182         * loop-invariant.c (can_move_invariant_reg): New.
24183         (move_invariant_reg): Call above new function to decide whether
24184         instruction can just be moved, skipping creation of temporary
24185         register.
24187 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
24189         PR target/pr66047.c
24190         * i386.c (ix86_function_sseregparm): Only return -1 if local function
24191         with implied regparm is called from -mno-sse function.
24192         (init_cumulative_args): Output error if ix86_function_sseregparm
24193         return -1 and SSE register would be needed.
24194         (function_arg_advance_32): Likewise.
24195         (function_arg_32): Likewise.
24196         * i386.h (ix86_args): Add decl field.
24198 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
24200         PR ipa/65873
24201         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
24202         inlines across optimization boundary.
24204 2015-05-12  Jason Merrill  <jason@redhat.com>
24206         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
24207         string literal and macro name.
24209 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
24211         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
24212         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
24213         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
24215 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
24217         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
24218         (-Wmisleading-indentation): New option.
24219         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
24221 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
24223         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
24224         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
24225         (alpha_extract_integer): Ditto.
24226         (alpha_legitimate_constant_p): Ditto.
24227         (alpha_split_tmode_pair): Ditto.
24228         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
24229         (alpha_expand_mov): Ditto.
24230         (print_operand): Remove handling of 'H' modifier.
24231         <case 'm'>: Remove CONST_DOUBLE handling.
24232         (summarize_insn): Handle CONST_WIDE_INT.
24233         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
24234         (anddi3): Ditto.
24235         (movti): Handle CONST_WIDE_INT.
24236         * config/alpha/constraints.md ('H'): Remove constraint definition.
24237         ('G'): Do not match MODE_FLOAT class.
24238         * config/alpha/predicates.md (const0_operand): Also match
24239         const_wide_int.
24240         (non_add_const_operand): Ditto.
24241         (non_zero_const_operand): Ditto.
24242         (some_operand): Ditto.
24243         (input_operand): Ditto.  Handle CONST_WIDE_INT.
24244         (and_operand): Do not match const_double.
24245         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
24247 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
24249         PR target/65697
24250         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
24251         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
24252         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
24253         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
24254         is_mm_seq_cst, is_mm_sync): New accessor functions.
24255         * builtins.c (expand_builtin_sync_operation,
24256         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
24257         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
24258         (get_memmodel,  expand_builtin_atomic_compare_exchange,
24259         expand_builtin_atomic_load, expand_builtin_atomic_store,
24260         expand_builtin_atomic_clear): Use new accessor routines.
24261         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
24262         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
24263         (maybe_emit_sync_lock_test_and_set): Use new accessors and
24264         MEMMODEL_SYNC_ACQUIRE.
24265         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
24266         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
24267         expand_atomic_store): Use new accessors.
24268         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
24269         * tsan.c (instrument_builtin_call): Update check for memory model beyond
24270         final enum to use MEMMODEL_LAST.
24271         * c-family/c-common.c: Use new accessor for memmodel_base.
24272         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
24273         accessors.
24274         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
24275         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
24276         mem_thread_fence, *dmb): Likewise.
24277         * config/alpha/alpha.c (alpha_split_compare_and_swap,
24278         alpha_split_compare_and_swap_12): Likewise.
24279         * config/arm/arm.c (arm_expand_compare_and_swap,
24280         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
24281         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
24282         atomic_loaddi): Likewise.
24283         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
24284         Likewise.
24285         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
24286         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
24287         use new accessors.
24288         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
24289         atomic_store<mode>, atomic_compare_and_swap<mode>,
24290         atomic_exchange<mode>): Use new accessors.
24291         * config/mips/mips.c (mips_process_sync_loop): Likewise.
24292         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
24293         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
24294         rs6000_post_atomic_barrier): Add new cases.
24295         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
24296         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
24297         (atomic_load<mode>): Add new cases and use new accessors.
24298         (store_quadpti): Add new cases.
24299         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
24300         accessors.
24301         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
24302         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
24303         model, not 8.
24305 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
24307         * ipa-devirt.c (type_with_linkage_p): New function.
24308         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
24309         type has linkage.
24310         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
24311         (can_be_name_hashed_p): Simplify.
24312         (hash_odr_name): Check that type has linkage before checking if it is
24313         anonymous.
24314         (types_same_for_odr): Likewise.
24315         (odr_name_hasher::equal): Likewise.
24316         (odr_subtypes_equivalent_p): Likewise.
24317         (warn_types_mismatch): Likewise.
24318         (get_odr_type): Likewise.
24319         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
24320         * ipa-utils.h (odr_type_p): Move offline.
24321         * tree.c (need_assembler_name_p): Fix handling of types
24322         without linkages.
24323         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
24325 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
24327         * timevar.c (timevar_enable): Delete in favor of...
24328         (g_timer): New global.
24329         (struct timevar_def): Move to timevar.h inside class timer.
24330         (struct timevar_stack_def): Likewise.
24331         (timevars): Delete global in favor of field "m_timevars" within
24332         class timer in timevar.h
24333         (stack): Likewise, in favor of field "m_stack".
24334         (unused_stack_instances): Likewise, in favor of field
24335         "m_unused_stack_instances".
24336         (start_time): Likewise, in favor of field "m_start_time".
24337         (get_time): Eliminate check for timevar_enable.
24338         (timer::timer): New function, built from part of timevar_init.
24339         (timevar_init): Rewrite idempotency test from using
24340         "timevar_enable" bool to using dynamic allocation of "g_timer".
24341         Move rest of implementation into timer's constructor.
24342         (timevar_push_1): Rename to...
24343         (timer::push): ...this, adding "m_" prefixes to variables that
24344         are now fields of timer.
24345         (timevar_pop_1): Likewise, rename to...
24346         (timer::pop): ...this, and add "m_" prefixes.
24347         (timevar_start): Replace test for "timevar_enable" with one for
24348         "g_timer", and move bulk of implementation to...
24349         (timer::start): ...here, adding "m_" prefixes.
24350         (timevar_stop): Likewise, from here...
24351         (timer::stop): ...to here.
24352         (timevar_cond_start): Likewise, from here...
24353         (timer::cond_start): ...to here.
24354         (timevar_cond_stop): Likewise, from here...
24355         (timer::cond_stop): ...to here.
24356         (validate_phases): Rename to...
24357         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
24358         locals "total" and "tv" const.
24359         (timevar_print): Rename to...
24360         (timer::print): ...this, and add "m_" prefixes.  Make locals
24361         "total" and "tv" const.  Eliminate test for timevar_enable.
24362         * timevar.h (timevar_enable): Eliminate.
24363         (g_timer): New declaration.
24364         (timevar_push_1): Eliminate.
24365         (timevar_pop_1): Eliminate.
24366         (timevar_print): Eliminate.
24367         (class timer): New class.
24368         (timevar_push): Rewrite to use g_timer.
24369         (timevar_pop): Likewise.
24370         * toplev.c (toplev::~toplev): Likewise.
24372 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
24374         * arm-protos.h (arm_sched_autopref): Delete.
24375         (tune_params): Re-organize, use enums for flag values.
24376         (FUSE_OPS): New macro.
24377         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
24378         (ARM_PREFETCH_BENEFICIAL): Likewise.
24379         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
24380         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24381         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
24382         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
24383         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
24384         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
24385         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
24386         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
24387         format.
24388         (arm_option_override, thumb2_reorg, arm_print_tune_info)
24389         (aarch_macro_fusion_pair_p): Update uses of current_tune.
24390         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
24392 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
24394         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
24395         "break".
24397 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
24398             Sandra Loosemore <sandra@codesourcery.com>
24400         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
24401         value.
24402         (REG_CLASS_NAMES): Add "IJMP_REGS".
24403         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
24404         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
24405         use new "c" register constraint.
24406         * config/nios2/constraint.md (c): New register constraint
24407         corresponding to IJMP_REGS.
24409 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24411         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
24412         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
24413         define_splits): Delete, revamp, transmogrify into ...
24414         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
24415         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
24416         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
24417         New.
24419 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24421         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
24422         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
24424 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24426         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
24427         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
24428         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
24429         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
24430         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
24431         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
24432         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
24433         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
24434         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
24435         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24436         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
24437         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
24438         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
24439         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
24440         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
24441         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
24442         and 30 corresponding splitters): Delete.
24444 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24446         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
24447         zero_extract.
24449 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24451         * combine.c (recog_for_combine_1): New function, factored out
24452         from recog_for_combine.
24453         (change_zero_ext): New function.
24454         (recog_for_combine): If recog fails, try again with the pattern
24455         modified by change_zero_ext; if that still fails, restore the
24456         pattern.
24458 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
24460         * combine.c (get_undo_marker): New function.
24461         (undo_to_marker): New function, largely factored out from ...
24462         (undo_all): ... this.  Adjust.
24464 2015-05-12  Richard Biener  <rguenther@suse.de>
24466         PR tree-optimization/66101
24467         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
24468         fixup if we turn a loop exit edge to a fallthru edge.
24470 2015-05-12  Richard Biener  <rguenther@suse.de>
24472         PR tree-optimization/37021
24473         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
24474         (SLP_TREE_TWO_OPERATORS): New define.
24475         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
24476         SLP_TREE_TWO_OPERATORS.
24477         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
24478         SLP node.
24479         (vect_build_slp_tree): Adjust.
24480         (vect_analyze_slp_cost_1): Likewise.
24481         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
24482         emitting two vector stmts and mixing the results.
24484 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24486         * call.c (print_z_candidates): Remove dead code.
24488 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24490         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
24491         and zEC12_simple_fp.
24492         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
24493         to 1.
24495 2015-05-12  Tom de Vries  <tom@codesourcery.com>
24497         PR tree-optimization/66010
24498         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
24499         ifn_va_arg.
24500         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
24501         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
24502         va_lists are passed, and remove corresponding handling.
24503         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
24504         do_deref argument to ifn_va_arg.
24505         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
24506         ifn_va_arg.
24508 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24510         PR target/65955
24511         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
24512         REG before taking its REGNO.
24514 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24516         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
24517         rsp->sign_bit_copies and rsp->nonzero_bits into ...
24518         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
24519         present to get more accurate information about the number of sign bit
24520         copies and non zero bits.
24522 2015-05-12  Richard Biener  <rguenther@suse.de>
24524         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24525         do not allow unrolling.
24527 2015-05-11  Richard Henderson  <rth@redhat.com>
24529         * config/i386/i386-modes.def (CCP): New.
24530         * config/i386/i386.c (put_condition_code): Handle it.
24531         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24533 2015-05-11  Richard Henderson  <rth@redhat.com>
24535         * target.def (md_asm_clobbers): Replace with...
24536         (md_asm_adjust): this.
24537         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24538         (TARGET_MD_ASM_ADJUST): New.
24539         * tm.texi: Rebuild.
24540         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24541         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24542         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24544         * cfgexpand.c (check_operand_nalternatives): Accept vector of
24545         constraints instead of lists of outputs and inputs.
24546         (expand_asm_stmt): Save and restore input_location around the
24547         body of the function.  Move asm data into vectors instead of
24548         building tree lists.  Generate cleanup sequences as needed,
24549         rather than waiting til the end.  Use new md_asm_adjust hook.
24551         * config/vxworks.c: Include vec.h before target.h.
24552         * gimple.c: Likewise.
24553         * incpath.c: Likewise.
24554         * mode-switching.c: Likewise.
24556         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24557         (cris_md_asm_adjust): this.
24558         (TARGET_MD_ASM_CLOBBERS): Remove.
24559         (TARGET_MD_ASM_ADJUST): New.
24560         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24561         (ix86_md_asm_adjust): this.
24562         (TARGET_MD_ASM_CLOBBERS): Remove.
24563         (TARGET_MD_ASM_ADJUST): New.
24564         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24565         (mn10300_md_asm_adjust): this.
24566         (TARGET_MD_ASM_CLOBBERS): Remove.
24567         (TARGET_MD_ASM_ADJUST): New.
24568         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24569         (rs6000_md_asm_adjust): this.
24570         (TARGET_MD_ASM_CLOBBERS): Remove.
24571         (TARGET_MD_ASM_ADJUST): New.
24572         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24573         (visium_md_asm_adjust): this.
24574         (TARGET_MD_ASM_CLOBBERS): Remove.
24575         (TARGET_MD_ASM_ADJUST): New.
24577 2015-05-11  Richard Henderson  <rth@redhat.com>
24579         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24580         if noutputs is zero.
24581         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24583         * cfgexpand.c (expand_asm_operands): Merge into...
24584         (expand_asm_stmt): ... here.
24586         * cfgexpand.c (expand_asm_operands): Don't call
24587         resolve_asm_operand_names.
24588         * stmt.c (resolve_asm_operand_names): Clarify block comment.
24590 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
24592         * dwarf2out.c (gen_member_die): Sanity check that we access
24593         TYPE_MAIN_VARIANT for TYPE_METHODS.
24594         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24595         checking TYPE_METHODS.
24596         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24597         if non-null.
24598         (build_distinct_type_copy): Clear TYPE_METHODS.
24599         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24600         (verify_type): Allow TYPE_METHODS to be error_mark_node.
24601         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24603 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
24605         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24606         (emit_pattern_before_setloc): Likewise.
24608 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
24610         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24611         for define_peephole2s.
24612         (get_peephole2_pattern): New function.
24613         (main): Use it.  Call validate_pattern.
24615 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
24617         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24618         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24619         (Last callee saved reg is different for AVR_TINY architecture)
24621 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
24623         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24624         when looking for memory references.
24626 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
24628         PR target/65753
24629         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24630         via function pointers.
24632 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
24634         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24635         indirect call by forcing address into a pseudo with -fno-plt.
24636         * common.opt (flag_plt): New option.
24637         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24638         ([-fno-plt]): Document.
24640 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
24642         PR bootstrap/66105
24643         * config/rs6000/option-defaults.h: Add space between string literal
24644         and macro name.
24646 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24648         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24649         accross ARM targets.
24651 2015-05-11  Christian Bruel  <christian.bruel@st.com>
24653         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24654         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24656 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
24658         PR rtl-optimization/66076
24659         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24660         Don't grow the heap array if it is already big enough from a
24661         previous iteration.
24663 2015-05-11  Christian Bruel  <christian.bruel@st.com>
24665         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24666         (is_called_in_ARM_mode): Remove.
24667         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24668         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24669         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24670          arm_declare_function_name.
24672 2015-05-11  Christian Bruel  <christian.bruel@st.com>
24674         * config/arm/arm.c (arm_option_override): Reoganized and split into :
24675         (arm_option_params_internal); New function.
24676         (arm_option_check_internal): New function.
24677         (arm_option_override_internal): New function.
24678         (thumb_code, thumb1_code): Remove.
24679         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24680         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24681         (thumb_code, thumb1_code): Remove.
24682         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24684 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
24686         * config/alpha/alpha.c (alpha_emit_set_const_1)
24687         (alpha_emit_set_long_const, alpha_extract_integer)
24688         (alpha_legitimate_constant_p, alpha_split_const_mov)
24689         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24690         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24691         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24692         HOST_WIDE_INT_1U.
24693         * config/alpha/predicates.md (mode_mask_operand): Do not match
24694         const_double RTX.
24695         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24696         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24697         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24698         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24699         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24701 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
24703         PR target/65780
24704         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24705         default_binds_local_p_2.
24706         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24707         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24709 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24711         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24713 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24715         Patch by Richard Biener
24716         * coverage.c (coverage_obj_init): Delay building of type variant
24717         until the type is finished.
24719 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24721         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24722         mismatch between C and C++ type; compoare correctly ARG_TYPES
24723         for non-prototypes and output correctly parameter index for METHOD_TYPE.
24724         (odr_types_equivalent_p): Fix wording of warning about attributes;
24725         it is OK to match prototype and non-prototype.
24727 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24729         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24730         TYPE_ARG_TYPES list.
24731         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24732         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24734 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
24736         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24737         * tree.h (is_lang_specific): Constify.
24739 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
24741         PR tree-optimization/64454
24742         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24743         Rewrite.
24745 2015-05-08  Jason Merrill  <jason@redhat.com>
24747         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24748         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24749         config/darwin.h, config/darwin9.h, config/elfos.h,
24750         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24751         config/microblaze/microblaze.h, config/mips/mips.h,
24752         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24753         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24754         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24755         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24756         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24757         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24758         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24759         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24760         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24761         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24762         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24763         between string literal and macro name.
24765 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24767         * jump.c: Change argument types to rtx_insn *.
24768         * rtl.h: Adjust.
24770 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24772         * lra-constraints.c: Change argument type to rtx_insn *.
24774 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24776         * df-problems.c: Change argument type to rtx_insn *.
24778 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24780         * combine.c: Change argument type to rtx_insn *.
24782 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24784         * rtl.h: Adjust.
24785         * rtlanal.c: Change argument type to rtx_insn *.
24787 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24789         * sched-deps.c: Change argument types to rtx_insn *.
24790         * sched-int.h: Adjust.
24792 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24794         * dwarf2cfi.c: Change argument type to rtx_insn *.
24796 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24798         * ira.c (decrease_live_ranges_number): Changetype of local
24799         variable to rtx_insn *.
24800         * recog.c: Change argument types to rtx_insn *.
24801         * recog.h: Adjust.
24803 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24805         * reorg.c: Change argument types to rtx_insn *.
24807 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24809         * ira-color.c: Change argument types to rtx_insn *.
24810         * lra-eliminations.c: Likewise.
24811         * ira.h: Adjust.
24813 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24815         * gcse.c: Change argument types to rtx_insn *.
24817 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24819         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
24821 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24823         * emit-rtl.c (emit_debug_insn_before): Change argument type to
24824         rtx_insn *.
24825         * rtl.h: Adjust.
24827 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24829         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
24830         * rtl.h: Adjust.
24832 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24834         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
24835         * rtl.h: Adjust.
24837 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24839         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
24840         * rtl.h: Adjust.
24842 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24844         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
24845         * rtl.h: Adjust.
24847 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24849         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
24850         to rtx_insn *.
24851         * rtl.h: Adjust.
24853 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24855         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
24856         to rtx_insn *.
24857         * rtl.h: Likewise.
24859 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24861         * except.c (can_nonlocal_goto): Change type of argument to
24862         rtx_insn *.
24863         * rtl.h: Adjust.
24865 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24867         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
24868         * rtl.h: Adjust.
24870 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24872         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
24873         * cfgrtl.c (can_delete_label_p): Adjust.
24874         * rtl.h: likewise.
24876 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24878         * reorg.c (stop_search_p): Change argument to rtx_insn *.
24880 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24882         * except.c (make_reg_eh_region_note): Change argument to
24883         rtx_insn *.
24884         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
24885         * except.h: Adjust.
24887 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24889         * mode-switching.c (commit_mode_sets): Change type of local
24890         variable from rtx to rtx_insn *.
24892 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
24894         * doc/install.texi (--enable-languages): Add missing jit and lto info.
24895         Add ^ to grep command.
24896         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
24897         arg to last gimple_simplify declaration.  Add missing gimple_build
24898         declaration for built-in function case with four tree args.
24900 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
24901             Szabolcs Nagy  <szabolcs.nagy@arm.com>
24903         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
24904         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
24905         (GNU_USER_DYNAMIC_LINKERN32): Update.
24907 2015-05-08  Richard Biener  <rguenther@suse.de>
24909         PR tree-optimization/66036
24910         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
24911         Handle strided group loads.
24912         (vect_verify_datarefs_alignment): Likewise.
24913         (vect_enhance_data_refs_alignment): Likewise.
24914         (vect_analyze_group_access): Likewise.
24915         (vect_analyze_data_ref_access): Likewise.
24916         (vect_analyze_data_ref_accesses): Likewise.
24917         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
24918         (vectorizable_load): Likewise.
24920 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
24922         * config/rs6000/rs6000.md: Require operand inequality in one
24923         of the peepholes.
24925 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
24926             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
24928         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
24929         from (set ...).
24930         * config/rx/rx.md (movdi, movdf): Likewise.
24931         Likewise for define_peephole2s.
24933 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
24935         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
24936         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
24937         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
24938         vtst_u64): Rewrite using gcc vector extensions.
24940 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
24942         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
24943         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
24945 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
24947         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
24949 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24951         * config/glibc-stdint.h (OPTION_MUSL): Define.
24952         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
24953         Change the definition based on OPTION_MUSL for 64 bit targets.
24954         * config/linux.h (OPTION_MUSL): Redefine.
24955         * config/alpha/linux.h (OPTION_MUSL): Redefine.
24956         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
24957         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
24959 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
24960             Szabolcs Nagy  <szabolcs.nagy@arm.com>
24962         * config.gcc (LIBC_MUSL): New tm_defines macro.
24963         * config/linux.h (OPTION_MUSL): Define.
24964         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
24965         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
24966         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24967         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24968         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24969         * config/linux.opt (mmusl): New option.
24970         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
24971         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24972         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24973         * configure: Regenerate.
24975 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
24976             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
24978         PR target/48904
24979         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
24980         * config/i386/knetbsd-gnu64.h: New file.
24982 2015-05-08  Marek Polacek  <polacek@redhat.com>
24984         PR c/64918
24985         * doc/invoke.texi: Document -Woverride-init-side-effects.
24987 2015-05-07  Marek Polacek  <polacek@redhat.com>
24989         PR c/65179
24990         * doc/invoke.texi: Document -Wshift-negative-value.
24992 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
24994         * gcov-tool.c (do_merge): Refactore to remove int ret.
24995         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
24996         !type == FUNC to type != FUNC.
24997         * reload.h (struct target_reload): Changee to type of
24998         x_spill_indirect_levels from bool to unsigned char.
25000 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
25002         * rtl.h (always_void_p): New function.
25003         * gengenrtl.c (always_void_p): Likewise.
25004         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
25005         with code foo are always VOIDmode.
25006         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
25007         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
25008         compare-elim.c, config/aarch64/aarch64.c,
25009         config/aarch64/aarch64.md, config/alpha/alpha.c,
25010         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
25011         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
25012         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
25013         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25014         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
25015         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
25016         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
25017         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
25018         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
25019         config/ia64/vect.md, config/iq2000/iq2000.c,
25020         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
25021         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
25022         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
25023         config/mep/mep.c, config/microblaze/microblaze.c,
25024         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
25025         config/mn10300/mn10300.c, config/msp430/msp430.c,
25026         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
25027         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
25028         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
25029         config/rs6000/altivec.md, config/rs6000/rs6000.c,
25030         config/rs6000/rs6000.md, config/rs6000/vector.md,
25031         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
25032         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
25033         config/sh/sh.md, config/sh/sh_treg_combine.cc,
25034         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
25035         config/spu/spu.md, config/stormy16/stormy16.c,
25036         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
25037         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
25038         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
25039         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
25040         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
25041         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
25042         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
25043         var-tracking.c: Update calls accordingly.
25045 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
25047         PR middle-end/192
25048         PR middle-end/54303
25049         * varasm.c (function_mergeable_rodata_prefix): New function.
25050         (mergeable_string_section): Use it.
25051         (mergeable_constant_section): Use it.
25053 2015-05-07  Jeff Law  <law@redhat.com>
25055         PR target/39726
25056         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25057         simplifier to narrow arithmetic.
25058         * generic-match-head.c: (types_match, single_use): New functions.
25059         * gimple-match-head.c: (types_match, single_use): New functions.
25061 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25063         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
25064         rtx type.
25066 2015-05-07  Richard Biener  <rguenther@suse.de>
25068         PR tree-optimization/66002
25069         * passes.def: Schedule another pass_merge_phi after ifcombine, right
25070         before phiopt.
25072 2015-05-07  Marek Polacek  <polacek@redhat.com>
25073             Martin Uecker  <uecker@eecs.berkeley.edu>
25075         * doc/invoke.texi: Document -fsanitize=bounds-strict.
25076         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
25077         into SANITIZE_NONDEFAULT.
25078         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
25080 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
25082         PR target/66015
25083         * config/alpha/alpha.c (alpha_override_options_after_change): New.
25084         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
25085         (alpha_override_options): Move align_loops, align_jumps and
25086         align_functions handling into alpha_override_options_after_change.
25088 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
25089             Chris Jones  <chrisj@nvidia.com>
25090             Joshua Conner  <jconner@nvidia.com>
25092         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
25093         linking of crtfastmath.o.
25094         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
25096 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
25098         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
25099         (cstore<mode>4_unsigned_imm): New expander.
25100         (cstore<mode>4): Remove empty constraint strings.  Use the new
25101         expanders.
25103 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
25105         PR target/64208
25106         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
25107         alternatives.
25109 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25111         * config/aarch64/geniterators.sh: Use standard BRE in sed.
25113 2015-05-06  Alan Modra  <amodra@gmail.com>
25115         PR target/66033
25116         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
25117         (UNSPEC_NOP): Define.
25118         (reload_vsx_from_gpr<mode>): Add missing DONE.
25119         (reload_gpr_from_vsx<mode>): Likewise.
25120         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
25121         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
25123 2015-05-06  Christian Bruel  <christian.bruel@st.com>
25125         PR target/66015
25126         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
25127         align_jumps, align_functions into aarch64_override_options_after_change.
25129 2015-05-06  Richard Biener  <rguenther@suse.de>
25131         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
25132         vect_transform_slp_perm_load to check if we support a permutation
25133         for basic-block vectorization.
25135 2015-05-06  Nick Clifton  <nickc@redhat.com>
25137         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
25138         used, even if it is not being used as a frame pointer.
25140 2015-05-05  Jason Merrill  <jason@redhat.com>
25142         * dwarf2out.c (gen_member_die): Don't emit anything for an
25143         anonymous class constructor.
25145 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
25147         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
25148         that it reflects the block structure.
25149         (afdo_propagate_edge): Likewise.
25150         (afdo_calculate_branch_prob): Likewise.
25151         (afdo_annotate_cfg): Likewise.
25152         * cfgcleanup.c (equal_different_set_p): Likewise.
25153         (try_crossjump_to_edge): Likewise.
25154         * cgraph.c (cgraph_node::verify_node): Likewise.
25155         * cgraphunit.c (expand_all_functions): Likewise.
25156         * config/i386/i386.c (ix86_expand_copysign): Likewise.
25157         (exact_dependency_1): Likewise.
25158         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
25159         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
25160         * gensupport.c (process_define_subst): Likewise.
25161         * lto-wrapper.c (merge_and_complain): Likewise.
25162         * tree-if-conv.c (if_convertible_bb_p): Likewise.
25163         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
25164         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
25165         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
25166         * tree-vect-loop.c (vectorizable_reduction): Likewise.
25167         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
25168         * tree-vect-stmts.c (vectorizable_shift): Likewise.
25169         * tree-vrp.c (vrp_finalize): Likewise.
25170         * tree.c (variably_modified_type_p): Likewise.
25172 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
25174         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
25175         on darwin12 and later.
25176         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
25177         file to pass -rdynamic on darwin12 and later.
25178         * config/darwin.opt (rdynamic): Add.
25180 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
25182         * doc/extend.texi (C Extensions): Update menu for moved Variable
25183         Attributes and Type Attributes sections.
25185 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
25187         PR target/65990
25188         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
25189         if rep_8byte stringop strategy was specified for 32-bit target.
25191 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
25193         PR target/65915
25194         * config/i386/i386.md (vector convert to float spltiter): Check for
25195         xmm16+, when splitting scalar float conversion.
25196         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
25198 2015-05-05  Nick Clifton  <nickc@redhat.com>
25200         * config/msp430/msp430-opts.h (enum msp430_regions): New.
25201         * config/msp430/msp430.c (msp430_override_options): Complain if
25202         -mcode-region or -mdata-region is used on a non MSP430X.
25203         (msp430_section_attr): New function.  Checks lower, upper and
25204         either attributes.
25205         (msp430_attribute_table): Add lower, upper and either.
25206         (gen_prefix): New function.  Generates a prefix for a section
25207         name.
25208         (msp430_select_section): New function - handles the choice of
25209         section for an object.  Takes into account memory region
25210         attributes and options.
25211         (msp430_function_section): Use gen_prefix.
25212         (TARGET_SECTION_TYPE_FLAGS): Define.
25213         (msp430_section_type_flags): New function.
25214         (TARGET_ASM_UNIQUE_SECTION): Define.
25215         (msp430_unique_section): New function.
25216         (msp430_output_aligned_decl_common): New function.
25217         (msp430_do_not_relax_short_jumps): New function.
25218         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
25219         Define.
25220         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25221         * config/msp430/msp430-protos.h
25222         (msp430_do_not_relax_short_jumps): New prototype.
25223         (msp430_output_aligned_decl_common): New prototype.
25224         * config/msp430/msp430.md (length): New attribute.
25225         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
25226         then use a long code sequence for short jumps.
25227         * config/msp430/msp430.opt (mcode-region): New.
25228         (mdata-region): New.
25229         * doc/invoke.texi: Document new options.
25230         * doc/extend.texi: Document new attributes.
25232 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
25234         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
25235         (tune_params): Add field branch_costs.
25236         (aarch64_branch_cost): Declare.
25237         * gcc/config/aarch64.c (generic_branch_cost): New.
25238         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
25239         (cortexa53_tunings): Likewise.
25240         (cortexa57_tunings): Likewise.
25241         (thunderx_tunings): Likewise.
25242         (xgene1_tunings): Likewise.
25243         (aarch64_branch_cost): Define.
25244         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
25246 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
25248         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
25249         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
25250         * config/i386/i386.md: Ditto.
25251         * config/i386/winnt.c: Ditto.
25253 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
25255         * doc/extend.texi (__atomic Builtins): Move implementation details
25256         to the end of the description, rewrite opening paragraphs, state
25257         difference with __sync builtins, state C11/C++11 assumptions,
25258         weaken itemized descriptions, add explanation of memory model
25259         behaviour, expand description of compare-exchange, simplify text.
25261 2015-05-05  Renlin Li  <renlin.li@arm.com>
25263         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
25265 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
25267         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
25268         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25269         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
25270         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25271         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
25272         * configure: Regenerate.
25273         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
25274         * doc/install.texi (aarch64*-*-*): Document new
25275         --enable-fix-cortex-a53-843419 option.
25276         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
25277         and -mno-fix-cortex-a53-843419 options.
25279 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
25281         PR target/65871
25282         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
25284 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
25286         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
25287         fix overactive TYPE_MIN_VALUE check and add FIXME for type
25288         compatibility problems.
25290 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
25292         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
25293         constraints.
25294         (cbranchsi4_reg): New.
25295         * config/microblaze/microblaze.c
25296         (microblaze_expand_conditional_branch_reg): New.
25297         * config/microblaze/microblaze-protos.h
25298         (microblaze_expand_conditional_branch_reg): New prototype.
25300 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
25302         * config/microblaze/microblaze.md (peephole2): New.
25304 2015-05-04  Jeff Law  <law@redhat.com>
25306         Revert:
25307         2015-05-04  Jeff Law  <law@redhat.com>
25309         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25310         simplifier to narrow arithmetic.
25311         * generic-match-head.c: (types_match, single_use): New functions.
25312         * gimple-match-head.c: (types_match, single_use): New functions.
25314 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
25316         PR target/65987
25317         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
25318         (split_branches): Likewise.
25320 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
25322         * common.opt (fdelete-null-pointer-checks): Init to -1.
25323         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
25324         override flag_delete_null_pointer_checks default.
25325         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
25326         behavior re address zero.  Better document target-specific behavior.
25327         (-fisolate-errneous-paths-dereference): Mention relationship to
25328         -fdelete-null-pointer-checks.
25330 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
25332         PR tree-optimization/65984
25333         * ubsan.c: Include tree-cfg.h.
25334         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
25335         stmt_could_throw_p test, rename can_throw variable to ends_bb.
25337 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
25339         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
25340         to CONST_DOUBLE_P predicate.
25341         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
25342         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
25343         allow only operands that satisfy standard_sse_constant_p predicate.
25344         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
25345         to CONST_DOUBLE_P predicate.
25347 2015-05-04  Jeff Law  <law@redhat.com>
25349         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25350         simplifier to narrow arithmetic.
25351         * generic-match-head.c: (types_match, single_use): New functions.
25352         * gimple-match-head.c: (types_match, single_use): New functions.
25354 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
25356         * config/arm/arm.c: Restore bootstrap.
25358 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
25360         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
25361         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
25362         as CONST_WIDE_INT, not CONST_DOUBLE.
25363         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
25364         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
25365         (ix86_find_base_term): Do not check for CONST_DOUBLE.
25366         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
25367         (ix86_build_signbit_mask): Rewrite using wide ints.
25368         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
25369         (ix86_rtx_costs): Handle CONST_WIDE_INT.
25370         (find_constant): Ditto.
25371         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
25372         using gen_int_mode.
25373         * config/i386/predicates.md (x86_64_immediate_operand)
25374         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25375         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
25376         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25377         (const0_operand): Also match const_wide_int.
25378         (constm1_operand): Ditto.
25379         (const1_operand): Ditto.
25381 2015-05-04  Richard Biener  <rguenther@suse.de>
25383         PR tree-optimization/65965
25384         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
25385         store groups at gaps.
25387 2015-05-04  Richard Biener  <rguenther@suse.de>
25389         PR tree-optimization/65935
25390         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
25391         then make sure to apply that swapping to the IL.
25393 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
25395         * Makefile.in (PATCHLEVEL_c): New variable.
25396         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
25397         expand the same way as if DEVPHASE_c was non-empty.
25399 2015-05-04  Kai Tietz  <ktietz@redhat.com>
25401         PR target/65559
25402         * lto-wrapper.c (run_gcc): Open filename
25403         in binary-mode.
25405 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
25407         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
25408         sections up in file, to immediately after the Function Attributes
25409         section.
25411 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
25413         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
25415 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25417         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
25418         (insert_partition_copy_on_edge): Adjust.
25419         (insert_rtx_to_part_on_edge): Likewise.
25420         (insert_part_to_rtx_on_edge): Likewise.
25422 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25424         * function.c (set_return_jump_label): Change type of argument to
25425         rtx_insn *.
25426         * function.h (set_return_jump_label): Adjust.
25428 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25430         * reload.h (struct reg_equivs_t): Change type of init to
25431         rtx_insn *.
25432         * ira.c (fix_reg_equiv_init): Adjust.
25433         * reload1.c (eliminate_regs_1): Likewise.
25434         (init_eliminable_invariants): Likewise.
25436 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25438         * cselib.c (fp_setter_insn): Take a rtx_insn *.
25439         * cselib.h (fp_setter_insn): Adjust.
25441 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25443         * recog.c (struct validate_replace_src_data): Change type of
25444         insn field to rtx_insn *.
25445         (validate_replace_src_group): Change type of argument to rtx_insn *.
25446         * recog.h (validate_replace_src_group): Adjust.
25448 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25450         * haifa-sched.c: Change the type of some variables to rtx_insn *.
25451         * sched-deps.c: Likewise.
25452         * sched-int.h: Likewise.
25453         * sched-rgn.c: Likewise.
25454         * sel-sched.c: Likewise.
25456 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25458         to rtx_insn *.
25459         * config/i386/i386.c: Change the type of some arguments to
25460         rtx_insn *.
25461         * config/arm/arm.c: Likewise.
25463 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25465         * lra-constraints.c: Change type of some arguments to rtx_insn *.
25467 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25469         * regcprop.c (kill_autoinc_value): Change type of argument to
25470         rtx_insn *.
25472 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25474         * genrecog.c (print_subroutine): Adjust.
25475         * recog.c (get_bool_attr_mask_uncached): Likewise.
25476         * recog.h (struct recog_data_d): Change the type of insn to
25477         rtx_insn *.
25479 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25481         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
25483 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25485         * df-problems.c (df_set_note): Change type of argument to
25486         rtx_insn *.
25488 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25490         * builtins.c (expand_builtin_trap): Change type of local
25491         variable to rtx_insn *.
25492         (add_sched_insns_for_speculation): Likewise.
25493         (ix86_emit_save_regs): Likewise.
25494         (get_scratch_register_on_entry): Likewise.
25495         (ix86_emit_restore_reg_using_pop): Likewise.
25496         (ix86_emit_leave): Likewise.
25497         (ix86_emit_restore_regs_using_mov): Likewise.
25498         (ix86_expand_epilogue): Likewise.
25499         Likewise.
25500         (rl78_alloc_physical_registers_umul): Likewise.
25501         * cselib.c (discard_useless_locs): Likewise.
25502         (cselib_invalidate_regno): Likewise.
25503         (cselib_invalidate_mem): Likewise.
25504         * function.c (expand_function_start): Likewise.
25505         (emit_use_return_register_into_block): Likewise.
25506         * gcse.c: Likewise.
25507         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
25508         * ifcvt.c (noce_get_alt_condition): Likewise.
25509         * loop-doloop.c (doloop_condition_get): Likewise.
25510         * lra-constraints.c (inherit_in_ebb): Likewise.
25511         * modulo-sched.c (sms_schedule_by_order): Likewise.
25512         * recog.c (next_insn_tests_no_inequality): Likewise.
25513         * reorg.c (emit_delay_sequence): Likewise.
25514         (update_reg_dead_notes): Likewise.
25515         (fix_reg_dead_note): Likewise.
25516         (fill_slots_from_thread): Likewise.
25517         (delete_computation): Likewise.
25519 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
25521         * doc/extend.texi (Variable Attributes): Add menu and proper
25522         @nodes to subsections.  Move Microsoft Windows attributes to
25523         their own subsection.
25524         (Type Attributes): Reorganize introduction to remove duplicate
25525         list of attributes.  Add menu and proper @nodes to subsections.
25526         Alphabetize the main table of common attributes.
25528 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
25530         * match.pd: New simplification patterns.
25531         (x + (x & 1))  -> ((x + 1) & ~1)
25532         (x & ~(x & y)) -> ((x & ~y))
25533         (x | ~(x | y)) -> ((x | ~y))
25535 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25537         * target.def (attribute_table): Mention that struct attribute_spec
25538         is defined in tree-core.h rather than tree.h
25539         * doc/tm.texi: Regenerate.
25541 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
25543         * genrecog.c (test): Rename to rtx_test.  Update rest of file
25544         accordingly.
25546 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
25548         PR translation/65959
25549         * params.h (DEFPARAM): Rename msgid to nocmsgid.
25551 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
25553         * gcc/config/aarch64/aarch64-protos.h (tune_params):
25554         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25555         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25556         Return value depending on target.
25557         (generic_tunings): Initialize new target settings.
25558         (cortexa53_tunings): Likewise.
25559         (cortexa57_tunings): Likewise.
25560         (thunderx_tunings): Likewise.
25561         (xgene1_tunings): Likewise.
25563 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
25565         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25566         Make Cortex-A53 shift costs more accurate.
25568 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25570         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25571         UNSIGNED_FLOAT.
25573 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
25575         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
25576         Calculate cost of op0 and op1 in PLUS and MINUS cases.
25578 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25580         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25581         Add cost of op0 in the compare-with-fpzero case.
25583 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
25585         * builtins.c (fold_builtin_1): Remove spurious second
25586         semicolon.
25587         * cgraph.h (symtab_node::get_availability): Likewise.
25588         * opts.c (common_handle_option): Remove spurious second semicolon.
25589         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25590         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25592 2015-04-30  Caroline Tice  <cmtice@google.com>
25594         PR gcov-profile/65929
25595         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25596         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25597         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25598         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25599         * doc/tm.texi: Regenerate.
25600         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
25601         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25602         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
25603         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25605 2015-04-30  Marek Polacek  <polacek@redhat.com>
25607         * varasm.c (handle_cache_entry): Fix logic.
25609 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25611         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25612         (*extrsi5_insn_uxtw_alt): Likewise.
25613         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25614         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25615         operations.
25617 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25619         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25620         fabd in ABS case.
25622 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25624         * config/aarch64/aarch64.md
25625         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25626         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25627         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25628         appropriately.  Handle alternative EON form.
25630 2015-04-30  Renlin Li  <renlin.li@arm.com>
25632         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25633         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25635 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
25637         PR ipa/65873
25638         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25639         -fstrict-aliasing boundaries.
25641 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25643         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25644         and [SU]MNEGL patterns.
25646 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25648         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25649         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25650         combined arithmetic-shift ops.  Properly handle all shift and extend
25651         operations that can occur in combination with PLUS/MINUS.
25652         Rename maybe_fma to compound_p.
25653         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25654         arithmetic and shift operations.
25656 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25658         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25659         rather than arith_shift cost when costing ADD/MINUS of an
25660         extended value.
25662 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
25664         PR lto/65948
25665         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25666         to itself.
25668 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
25670         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25671         are for the same position.
25673 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
25675         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
25676         vectorize_loops.
25677         (vectorize_loops): Use it.
25679 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
25681         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25682         for aggregate types.
25683         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25684         type to be non_ODR.
25685         * tree.c (need_assembler_name_p): Compute mangled name for
25686         non-fundamental types and integer types.
25688 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
25690         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25691         manual swaps.
25692         * expr.c (expand_expr_real_2): Likewise.
25694 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
25696         * tree.c (build_common_builtin_nodes): Do not build
25697         __builtin_alloca_with_align as equivalent of library alloca.
25699 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
25701         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25702         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25703         bugus variants.
25704         * tree.c: Include print-tree.h and ipa-utils.h
25705         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25706         (free_lang_data_in_cgraph): Call verify_type.
25707         (verify_type_variant): New function.
25708         (verify_type): New function.
25709         * tree.h (verify_type): Declare.
25711 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
25713         * config/mips/mips-cpus.def: (mips4): Change default processor
25714         from PROCESSOR_R8000 to PROCESSOR_R10000.
25716 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
25718         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25719         la/jalr instead of jal.
25721 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
25723         PR target/65871
25724         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25725         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25726         (setcc+movzbl peephole2): Check also clobbered reg.
25727         (setcc+andl peephole2): Ditto.
25729 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
25731         PR libgomp/65099
25732         * config/nvptx/mkoffload.c (target_ilp32): New variable.
25733         (main): Set it depending on "-foffload-abi=[...]".
25734         (compile_native, main): Use it to pass "-m32" or "-m64" to the
25735         compiler.
25737 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
25739         PR target/65770
25740         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25741         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25742         Flip lane index back at assembly time for bigendian.
25744 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
25746         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25747         * gimplify.c (gimplify_omp_workshare): Use it.
25749 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
25751         * Makefile.in (build/genrecog.o): Depend on inchash.h.
25752         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25753         build/inchash.o
25754         * genrecog.c: Rewrite most of the code except for the third page.
25756 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
25758         * inchash.h, inchash.c: Include bconfig.h for build objects.
25759         * Makefile.in (build/inchash.o): New rule.
25761 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
25763         PR target/65924
25764         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25765         number in type attribute expression.
25767 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
25769         * loop-iv.c (canon_condition): Generalize to all types of integer
25770         constant.
25772 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
25774         * gimple-walk.c: Prune duplicate or unneeded includes.
25775         (walk_gimple_asm): Only call parse_input_constraint or
25776         parse_output_constraint if their findings are used.
25777         Honour parse_input_constraint and parse_output_constraint
25778         result.
25780 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
25782         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
25784 2015-04-29  Tom de Vries  <tom@codesourcery.com>
25786         PR tree-optimization/65893
25787         * passes.def (pass_all_optimizations): Move pass_stdarg to after
25788         pass_dce.
25790 2015-04-29  Richard Biener  <rguenther@suse.de>
25792         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25793         compute GROUP_SIZE for basic-block SLP.
25794         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
25795         take into account gaps.
25796         (vect_get_mask_element): Properly reject references to previous
25797         vectors.
25798         (vect_transform_slp_perm_load): Likewise.
25800 2015-04-29  Christian Bruel  <christian.bruel@st.com>
25802         PR target/64835
25803         * config/i386/i386.c (ix86_default_align): New function.
25804         (ix86_override_options_after_change): Call ix86_default_align.
25805         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
25806         (ix86_override_options_after_change): New function.
25808 2015-04-28  Jeff Law  <law@redhat.com>
25810         * tree-ssa-dom.c (record_equality); Fix comment typos.
25812 2015-04-28  Tom de Vries  <tom@codesourcery.com>
25814         PR tree-optimization/65887
25815         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
25817 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
25819         * doc/extend.texi (Declaring Attributes of Functions): Split into
25820         subsections by target.  Alphabetize the table of common attributes.
25821         Rewrite some of the introductory text to reflect the new structure.
25822         Update some cross-references to point to the new subsections.
25823         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
25824         duplicate copies in the discussion of function, label, and type
25825         attributes.
25827 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
25829         PR bootstrap/65910
25830         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
25832 2015-04-28  Jason Merrill  <jason@redhat.com>
25834         PR c++/65734
25835         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
25836         (finalize_type_size): Respect TYPE_USER_ALIGN.
25837         (layout_type) [ARRAY_TYPE]: Likewise.
25839 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
25841         * config/arm/arm.md (*arm_movt): Fix type attribute.
25842         (*cmpsi_shiftsi): Likewise.
25843         (*cmpsi_shiftsi_swp): Likewise.
25844         (*movsicc_insn): Likewise.
25845         (*cond_move): Likewise.
25846         (*if_plus_move): Likewise.
25847         (*if_move_plus): Likewise.
25848         (*if_arith_move): Likewise.
25849         (*if_move_arith): Likewise.
25850         (*if_shift_move): Likewise.
25851         (*if_move_shift): Likewise.
25852         (*arm_movtas_ze): Likewise.
25853         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
25854         redundancy and type attribute.
25855         (*thumb2_movsi_insn): Fix type attribute.
25856         (*thumb2_addsi_short): Likewise.
25857         (thumb2_addsi3_compare0): Likewise.
25858         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
25859         attributes accordingly.
25861 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
25863         PR other/65911
25864         * function.c (pad_to_arg_alignment): Add parentheses.
25866 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
25868         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
25869         libgcc/config/frv/elf-lib.h.
25871 2015-04-28  Tom de Vries  <tom@codesourcery.com>
25873         * tree-call-cdce.c: Fix example in header comment.
25875 2015-04-28  Richard Biener  <rguenther@suse.de>
25877         PR tree-optimization/62283
25878         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
25879         fails fatally and we are vectorizing a basic-block simply
25880         cause the child to be constructed piecewise.
25881         (vect_analyze_slp_cost_1): Adjust.
25882         (vect_detect_hybrid_slp_stmts): Likewise.
25883         (vect_bb_slp_scalar_cost): Likewise.
25884         (vect_get_constant_vectors): For piecewise constructed
25885         constants place them after the last def.
25886         (vect_get_slp_defs): Adjust.
25887         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
25888         externals for basic-block vectorization.
25890 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25892         PR target/63503
25893         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
25894         aarch64-*-*.
25895         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
25896         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
25897         (AARCH64_TUNE_FMA_STEERING): Likewise.
25898         * config/aarch64/aarch64-cores.def: Set
25899         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
25900         FMUL/FMADD instructions.
25901         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
25902         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
25903         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
25904         * config/aarch64/cortex-a57-fma-steering.h: New file.
25905         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25907 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
25909         * gensupport.c (std_preds): Add missing codes to address_operand entry.
25911 2015-04-28  Richard Biener  <rguenther@suse.de>
25913         PR tree-optimization/65851
25914         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
25915         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
25916         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
25917         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
25918         (ccp_visit_phi_node): Adjust.
25919         (evaluate_stmt): For simplifications to SSA names return its
25920         lattice value if that isn't VARYING.  Return immediately when
25921         simplified to a constant.
25922         (visit_assignment): Adjust.
25923         (ccp_visit_stmt): Likewise.
25925 2015-04-28  Tom de Vries  <tom@codesourcery.com>
25927         PR tree-optimization/65818
25928         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
25929         evaluated.
25931 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25933         * calls.c (save_fixed_argument_area): Don't check
25934         ARGS_GROW_DOWNWARD with the preprocessor.
25935         (restore_fixed_argument_area): Likewise.
25936         (mem_overlaps_already_clobbered_arg_p): Likewise.
25937         (check_sibcall_argument_overlap): Likewise.
25938         (expand_call): Likewise.
25939         (emit_library_call_value_1): Likewise.
25940         (store_one_arg): Likewise.
25941         * function.c (assign_parms): Likewise.
25942         (locate_and_pad_parm): Likewise.
25943         (pad_to_arg_alignment): Likewise.
25944         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25946 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25948         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
25949         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
25950         * calls.c (save_fixed_argument_area): Don't chekc if
25951         ARGS_GROW_DOWNWARD is defined.
25952         (restore_fixed_argument_area): Likewise.
25953         (mem_overlaps_already_clobbered_arg_p): Likewise.
25954         (check_sibcall_argument_overlap): Likewise.
25955         (expand_call): Likewise.
25956         (emit_library_call_value_1): Likewise.
25957         (store_one_arg): Likewise.
25958         * function.c (assign_parms): Likewise.
25959         (locate_and_pad_parm): Likewise.
25960         (pad_to_arg_alignment): Likewise.
25961         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
25963 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25965         * defaults.h (gen_epilogue): New function.
25966         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
25967         defined.
25968         * cfgrtl.c (cfg_layout_finalize): Likewise.
25969         * df-scan.c: Likewise.
25970         * function.c (thread_prologue_and_epilogue_insns): Likewise.
25971         (reposition_prologue_and_epilogue_notes): Likewise.
25972         * reorg.c (find_end_label): Likewise.
25973         * toplev.c: Likewise.
25975 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25977         * bb-reorder.c (HAVE_return): Don't check if its undefined.
25978         * defaults.h (gen_simple_return): New function.
25979         (gen_simple_return): Likewise.
25980         (HAVE_return): Add default definition to false.
25981         (HAVE_simple_return): Likewise.
25982         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
25983         HAVE_return and HAVE_simple_return are defined.
25984         * function.c (gen_return_pattern): Likewise.
25985         (convert_jumps_to_returns): Likewise.
25986         (thread_prologue_and_epilogue_insns): Likewise.
25987         * reorg.c (find_end_label): Likewise.
25988         (dbr_schedule): Likewise.
25989         * shrink-wrap.c: Likewise.
25990         * shrink-wrap.h: Likewise.
25992 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25994         * defaults.h (EPILOGUE_USES): Add default definition of false.
25995         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
25996         * resource.c (init_resource_info): Likewise.
25998 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26000         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
26001         to false.
26002         * dwarf2out.c (field_byte_offset): REmove check if
26003         PCC_BITFIELD_TYPE_MATTERS is defined.
26004         * stor-layout.c (layout_decl): Likewise.
26005         (update_alignment_for_field): Likewise.
26006         (place_field): Likewise.
26008 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26010         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
26011         true.
26012         * regrename.c (check_new_reg_p): Remove check if
26013         HARD_REGNO_RENAME_OK is defined.
26014         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
26016 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26018         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
26019         * cse.c (fold_rtx): Likewise.
26020         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
26021         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
26022         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
26023         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
26024         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
26025         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
26026         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
26027         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
26028         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
26029         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
26030         * Likewise.
26031         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
26032         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
26033         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
26034         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
26035         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
26036         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
26037         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
26038         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
26039         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
26040         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
26041         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
26042         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
26043         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
26044         * doc/tm.texi: Regenerate.
26045         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
26046         either true or false.
26048 2015-04-27  Jeff Law  <law@redhat.com>
26050         PR tree-optimization/65217
26051         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
26052         of them has a single use, make sure it is the LHS of the implied
26053         copy.
26055 2015-04-28  Alan Modra  <amodra@gmail.com>
26057         PR target/65810
26058         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
26059         (offsettable_ok_by_alignment): Use minimum of decl and toc
26060         pointer alignment.  Replace dead code with assertion.
26061         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
26062         case if size exceeds toc pointer alignment.
26063         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
26064         (rs6000_emit_move): Likewise.
26065         * configure.ac: Add linker toc pointer alignment check.
26066         * configure: Regenerate.
26067         * config.in: Regenerate.
26069 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
26071         * config.gcc: Add h8300-*-linux.
26072         * config/h8300/linux.h: New.
26073         * config/h8300/t-linux: New.
26074         * config/h8300/h8300.c (h8300_option_override): Normal mode
26075         is not supported for h8300-*-linux.
26076         (h8300_file_start): Target priority change.
26077         (get_shift_alg): Likewise.
26078         (h8300_shift_need_scratch_p): Likewise.
26079         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
26080         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
26082 2015-04-27  Caroline Tice  <cmtice@google.com>
26084         * final.c (final_scan_insn):  Output cold_function_name as function
26085         type.
26086         * varasm.c (cold_function_name):  Make global.
26087         (assemble_start_function):  Re-set cold_function_name.
26088         (assemble_end_function): Output cold partition size.
26089         * varasm.h (cold_function_name):  Declare global.
26091 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
26093         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
26094         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
26095         constraint.
26096         (*movxi_internal_avx512f): Ditto.
26097         (define_split): Check for xmm16+, when splitting scalar float_extend.
26098         (*extendsfdf2_mixed): Use "v" constraint.
26099         (define_split): Check for xmm16+, when splitting scalar float_truncate.
26100         (*truncdfsf_fast_sse): Use "v" constraint.
26101         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
26102         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
26103         (define_peephole2): Check for xmm16+, when converting scalar
26104         float_truncate.
26105         (define_peephole2): Check for xmm16+, when converting scalar
26106         float_extend.
26107         (*fop_<mode>_comm_mixed): Use "v" constraint.
26108         (*fop_<mode>_comm_sse): Ditto.
26109         (*fop_<mode>_1_mixed): Ditto.
26110         (*sqrt<mode>2_sse): Ditto.
26111         (*ieee_s<ieee_maxmin><mode>3): Ditto.
26113 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26115         * combine.c (simplify_if_then_else): Use std::swap instead
26116         of manually swapping.
26117         (known_cond): Likewise.
26118         (simplify_comparison): Likewise.
26120 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
26122         PR target/64579
26123         * config/rs6000/htm.md: Remove all define_expands.
26124         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
26125         UNSPECV_HTM_TABORTWCI): Remove.
26126         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
26127         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
26128         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
26129         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
26130         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
26131         tabortwci_internal): Remove define_insns.
26132         (tabort<wd>c, tabort<wd>ci): New define_insns.
26133         (tabort): Use gpc_reg_operand.
26134         (tcheck): Remove operand.
26135         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
26136         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
26137         expected value.
26138         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
26139         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
26140         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
26141         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
26142         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
26143         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
26144         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
26145         (tcheck): Remove builtin argument.
26146         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
26147         not TARGET_64BIT.
26148         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
26149         tabortdc and tabortdci builtins when not in 64-bit mode.
26150         Modify code to handle the loss of the HTM define_expands.
26151         Emit code to copy the CR register to TARGET.
26152         (htm_init_builtins): Modify code to handle the loss of the HTM
26153         define_expands.
26154         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
26155         (RS6000_BTC_64BIT): Likewise.
26156         (RS6000_BTC_CR): New macro.
26157         * doc/extend.texi: Update documentation for htm builtins.
26159 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26161         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
26162         of manually swapping.
26163         (simplify_associative_operation): Likewise.
26164         (simplify_binary_operation): Likewise.
26165         (simplify_plus_minus): Likewise.
26166         (simplify_relational_operation): Likewise.
26167         (simplify_ternary_operation): Likewise.
26169 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
26171         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
26172         (xs_hi_nonmemory_operand): Remove error.
26173         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
26174         general_operand rather than xs_hi_general_operand.
26176 2015-04-27  Richard Biener  <rguenther@suse.de>
26178         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
26179         (record_equivalences_from_stmt): Valueize rhs.
26180         (record_equality): Canonicalize x and y order via
26181         tree_swap_operands_p.  Do not swap operands for same loop depth.
26183 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
26185         PR target/65296
26186         PR target/65895
26187         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
26188         Add hint how to use own spec file.
26190 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
26192         PR tree-optimization/65875
26193         * tree-vrp.c (update_value_range): If in is_new case setting
26194         old_vr to VR_VARYING, also set new_vr to it.  Remove
26195         old_vr->type == VR_VARYING test.
26196         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
26197         SSA_PROP_INTERESTING if update_value_range returned true,
26198         but new range is VR_VARYING.
26200 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26202         * combine.c (sign_extend_short_imm): New.
26203         (set_nonzero_bits_and_sign_copies): Use above new function for sign
26204         extension of src short immediate.
26205         (reg_nonzero_bits_for_combine): Likewise for tem.
26207 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
26209         * stor-layout.c (self_referential_component_ref_p): New predicate.
26210         (copy_self_referential_tree_r): Use it.
26211         (self_referential_size): Punt for simple operations directly involving
26212         self-referential component references.
26213         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
26215 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
26217         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
26219 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
26221         * vec.h (vec): Make splice arguments const.  Update definitions
26222         accordingly.
26224 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
26226         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
26227         alternatives.
26229 2015-04-26  Tom de Vries  <tom@codesourcery.com>
26231         PR tree-optimization/65826
26232         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
26234 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
26236         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
26237         (*madd3<mode>): Ditto.
26238         (*msub4<mode>): Ditto.
26239         (*msub3<mode>): Ditto.
26240         (*nmadd4<mode>): Ditto.
26241         (*nmadd3<mode>): Ditto.
26242         (*nmadd4<mode>_fastmath): Ditto.
26243         (*nmadd3<mode>_fastmath): Ditto.
26244         (*nmsub4<mode>): Ditto.
26245         (*nmsub3<mode>): Ditto.
26246         (*nmsub4<mode>_fastmath): Ditto.
26247         (*nmsub3<mode>_fastmath): Ditto.
26249 2015-04-24  Jason Merrill  <jason@redhat.com>
26251         PR c++/50800
26252         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
26253         down when building TYPE_CANONICAL.
26254         (build_pointer_type_for_mode): Likewise.
26256 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
26258         * genrecog.c (validate_pattern): Check matching constraint refers
26259         to a lower numbered operand.
26261 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26263         PR target/65849
26264         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
26265         save to independent variables use the Save attribute.  This will
26266         allow these options to be modified with the #pragma/attribute
26267         target support.
26268         (-mallow-movmisalign): Likewise.
26269         (-mallow-df-permute): Likewise.
26270         (-msched-groups): Likewise.
26271         (-malways-hint): Likewise.
26272         (-malign-branch-targets): Likewise.
26273         (-mvectorize-builtins): Likewise.
26274         (-msave-toc-indirect): Likewise.
26276         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
26277         can be set via the #pragma/attribute target support.
26278         (rs6000_opt_vars): Likewise.
26279         (rs6000_inner_target_options): If VSX was set, also set
26280         -mno-avoid-indexed-addresses.
26282 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26284         * config/arm/iterators.md (shiftable_ops): Rename to...
26285         (SHIFTABLE_OPS): ... This.  Update use in comments.
26286         (ior_xor): Rename to...
26287         (IOR_XOR): ... This.
26288         (vqh_ops): Rename to...
26289         (VQH_OPS): ... This.
26290         (vqhs_ops): Rename to...
26291         (VQHS_OPS): ... This.
26292         (rshifts): Rename to...
26293         (RSHIFTS): ... This.
26294         (returns): Rename to...
26295         (RETURNS): ... This.
26296         * config/arm/arm.md: Update uses of the above.
26297         * config/arm/neon.md: Likewise.
26299 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26301         * config.host (case ${host}): Add aarch64*-*-linux case.
26302         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
26303         fields to all the cores.
26304         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
26305         Add MCPU_MTUNE_NATIVE_SPECS.
26306         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
26307         field to all extensions.
26308         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
26309         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
26310         Adjust definition of AARCH64_OPT_EXTENSION.
26311         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
26312         (MCPU_MTUNE_NATIVE_SPECS): Define.
26313         * config/aarch64/driver-aarch64.c: New file.
26314         * config/aarch64/x-arch64: New file.
26315         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
26316         -mtune and -march.
26318 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
26319             Wei Mi  <wmi@google.com>
26321         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
26322         * config/i386/i386.c (extract_base_offset_in_addr): New function.
26323         (ix86_operands_ok_for_move_multiple): Ditto.
26324         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
26325         (movlpd/movhpd to movupd peephole2): Ditto.
26327 2015-04-24  Marek Polacek  <polacek@redhat.com>
26329         PR c/61534
26330         * input.h (from_macro_expansion_at): Define.
26332         PR c/63357
26333         * doc/invoke.texi: Update description of -Wlogical-op.
26335 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26337         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
26338         ternary operator in fprintf and harmonize spacing.
26340 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
26342         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
26343         Mark operand1 commutative.
26345 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
26347         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
26348         input operands in memory.
26349         (*vec_concatv2si_sse4_1): Ditto.
26350         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
26351         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
26352         register_operand.
26353         (vec_extract_hi_v32hi): Ditto.
26354         (vec_extract_hi_v64hi): Ditto.
26355         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
26357 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26358             Steven Bosscher <steven@gcc.gnu.org>
26360         PR rtl-optimization/34503
26361         * cprop.c (cprop_reg_p): New.
26362         (hash_scan_set): Use above function to check if register can be
26363         propagated.
26364         (find_avail_set): Return up to two sets, one whose source is a
26365         register and one whose source is a constant.  Sets are returned in an
26366         array passed as parameter rather than as a return value.
26367         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
26368         sets returned by find_avail_set, starting with the one whose source is
26369         a constant. Use cprop_reg_p to check if register can be propagated.
26370         (do_local_cprop): Use cprop_reg_p to check if register can be
26371         propagated.
26372         (implicit_set_cond_p): Likewise.
26374 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
26376         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
26377         (sem_function::equals): IGNORED_NODES parameter is now unused;
26378         update call of equals_private.
26379         (sem_function::equals_private): Do not call equals_wpa; skip
26380         gimple body matching if there is no body.
26381         (sem_function::init): Add logic to hash tthunk info.
26382         (sem_function::parse): Also parse thunks.
26383         * ipa-icf.h (equals_private): Update declaration.
26385 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26387         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
26388         asterisk from name so this can be generated directly.
26389         (*altivec_stvx_<mode>_internal): Likewise.
26390         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
26391         that this is never called during or after reload/lra.
26392         (rs6000_frame_related): Remove split_reg
26393         argument and logic that references it.
26394         (emit_frame_save): Remove last parameter from call to
26395         rs6000_frame_related.
26396         (rs6000_emit_prologue): Remove last parameter from eight calls to
26397         rs6000_frame_related.  Force generation of stvx instruction for
26398         Altivec register saves.  Remove split_reg handling, which is no
26399         longer needed.
26400         (rs6000_emit_epilogue):  Force generation of lvx instruction for
26401         Altivec register restores.
26403 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26405         * config/rs6000/rs6000.opt (mcrypto): Change option description to
26406         match category changes in ISA 2.07B.
26408 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26410         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
26411         iterators.
26412         (cmp_op, cmp_type): New code attributes.
26413         (NEON_VCMP, NEON_VACMP): New int iterators.
26414         (cmp_op_unsp): New int attribute.
26415         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
26416         (neon_vceq<mode>): Delete.
26417         (neon_vc<cmp_op><mode>_insn): New pattern.
26418         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
26419         (neon_vcgeu<mode>): Delete.
26420         (neon_vcle<mode>): Likewise.
26421         (neon_vclt<mode>: Likewise.
26422         (neon_vcage<mode>): Likewise.
26423         (neon_vcagt<mode>): Likewise.
26424         (neon_vca<cmp_op><mode>): New define_expand.
26425         (neon_vca<cmp_op><mode>_insn): New pattern.
26426         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
26428 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
26430         * tree.h (attribute_value_equal): Declare.
26431         * tree.c (attribute_value_equal): Export.
26433 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
26435         * ipa-icf.c (sem_item::compare_attributes): New function.
26436         (sem_item::compare_referenced_symbol_properties): Compare variable
26437         attributes.
26438         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
26439         (sem_function::param_used_p): New function.
26440         (sem_function::equals_wpa): Fix attribute comparsion; match
26441         parameter type codes; do not compare paremter flags when
26442         they are not used; compare edge flags; compare indirect calls.
26443         (sem_item::update_hash_by_addr_refs): Hash reference type.
26444         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
26445         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
26446         reference use type.
26447         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
26448         * ipa-icf.h (compare_attributes, param_used_p): Declare.
26450 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
26452         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
26453         cleanup.
26454         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
26455         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
26456         (sem_item::compare_referenced_symbol_properties): New.
26457         (sem_item::hash_referenced_symbol_properties): New.
26458         (sem_item::compare_cgraph_references): Rename to ...
26459         (sem_item::compare_symbol_references): ... this one; use
26460         compare_referenced_symbol_properties.
26461         (sem_function::equals_wpa): Do not compare
26462         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
26463         DECL_IS_OPERATOR_NEW; compare pointer sizes.
26464         (sem_item::update_hash_by_addr_refs): Call
26465         hash_referenced_symbol_properties.
26466         (sem_item::update_hash_by_local_refs): Cleanup.
26467         (sem_function::merge): Do not mix up symbol properties.
26468         (sem_variable::equals_wpa): Use compare_symbol_references.
26469         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
26470         (sem_item::hash_referenced_symbol_properties): New.
26471         (sem_item::compare_symbol_references): New.
26472         (sem_item::compare_cgraph_references): Remove.
26474 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
26476         PR target/26702
26477         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
26478         Emit size of local.
26480 2015-04-23  Nick Clifton  <nickc@redhat.com>
26482         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
26483         ATTRIBUTE_UNUSED to x parameter.
26484         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
26486 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26488         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
26489         TARGET_CRYPTO to TARGET_P8_VECTOR>
26490         (crypto_vpermxor_<mode>): Likewise.
26491         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
26492         (BU_CRYPTO_3A): Likewise.
26493         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
26494         (BU_CRYPTO_OVERLOAD_3A): New #define.
26495         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
26496         (VPMSUMH): Likewise.
26497         (VPMSUMW): Likewise.
26498         (VPMSUMD): Likewise.
26499         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
26500         (VPERMXOR_V4SI): Likewise.
26501         (VPERMXOR_V8HI): Likewise.
26502         (VPERMXOR_V16QI): Likewise.
26503         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
26504         BU_CRYPTO_OVERLOAD_2A.
26505         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
26506         BU_CRYPTO_OVERLOAD_3A.
26507         * config/rs6000/rs6000.opt (mcrypto): Change description of
26508         option.
26510 2015-04-23  Richard Biener  <rguenther@suse.de>
26512         * passes.def: Remove copy propagation passes run directly after CCP.
26513         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
26514         SSA names.
26515         (ccp_visit_phi_node): Rework to handle first executable edge
26516         specially.
26518 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
26520         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26521         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26522         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26523         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26524         (thumb_legimitimize_reload_address): Remove.
26525         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26526         Remove.
26527         (thumb_legimitimize_reload_address): Remove.
26529 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26531         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26533 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26535         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26536         MAX_LDM_STM_OPS.
26537         (store_multiple): Likewise.
26539 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26541         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26542         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26543         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26544         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26545         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26546         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26547         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26548         Specify issue_rate value.
26549         (arm_issue_rate): Look up issue rate from tuning structs. Remove
26550         large switch statement.
26551         (arm_marvell_pj4_tune): New struct.
26552         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26553         struct.
26555 2015-04-23  Richard Biener  <rguenther@suse.de>
26557         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26558         (vect_find_last_store_in_slp_instance): Rename to ...
26559         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26560         (vect_analyze_slp_cost_1): Use vector_load for constant defs
26561         and vec_construct for external defs when estimating prologue cost.
26562         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26563         Compute costs here only when vectorizing loops.
26564         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26565         have been determined.
26566         (vect_schedule_slp_instance): Simplify vectorized code placement
26567         and prepare for in-BB external defs.
26568         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26569         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26570         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26571         guard.
26572         (vect_model_load_cost): Likewise.
26573         (vectorizable_store): Instead add it here.
26574         (vectorizable_load): Likewise.
26575         (vect_is_simple_use): Dump def type textually.
26577 2015-04-23  Richard Biener  <rguenther@suse.de>
26579         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26580         * cfgloop.c (verify_loop_structure): Verify the root loop node.
26581         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26582         instead of get_eh_region_from_lp_number.
26583         * loop-init.c (fix_loop_structure): If we removed a loop, reset
26584         the SCEV cache.
26586 2015-04-23  Anton Blanchard  <anton@samba.org>
26588         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26589         need for -mprofile-kernel to save LR to stack.
26591 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26593         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26594         adjustments.
26595         (insn_is_swappable_p): Return 1 for a convert from double to
26596         single precision when all of its uses are splats of BE element
26597         zero.
26599 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
26601         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26603 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26605         PR target/65456
26606         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
26607         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26608         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26609         option.
26610         (rs6000_builtin_mask_for_load): Return 0 for targets with
26611         efficient unaligned VSX accesses so that the vectorizer will use
26612         direct unaligned loads.
26613         (rs6000_builtin_support_vector_misalignment): Always return true
26614         for targets with efficient unaligned VSX accesses.
26615         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26616         stores on targets with efficient unaligned VSX accesses is almost
26617         always the same as the cost of an aligned load or store, so model
26618         it that way.
26619         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26620         unaligned vectors if we have efficient unaligned VSX accesses.
26621         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26622         undocumented option.
26624 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26626         Revert:
26627         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
26629         * config.gcc (LIBC_MUSL): New tm_defines macro.
26630         * config/linux.h (OPTION_MUSL): Define.
26631         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26632         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26633         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26635         * config/linux.opt (mmusl): New option.
26636         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26637         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26639         * configure: Regenerate.
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  Yury Gribov  <y.gribov@samsung.com>
26657         * doc/invoke.texi (-fsanitize-sections): Update description.
26658         * asan.c (set_sanitized_sections): Parse incoming arg.
26659         (section_sanitized_p): Support wildcards.
26661 2015-04-22  Tom de Vries  <tom@codesourcery.com>
26663         PR tree-optimization/65823
26664         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26665         equality between ap_copy and ap.
26667 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26669         PR target/47098
26670         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26672 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26674         PR target/47122
26675         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26677 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26679         PR target/55144
26680         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26681         remove already contained t-files.
26683 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26685         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26686         Remove unneeded forward declarations.
26687         (suitable_for_tail_call_opt_p): Commentary typo fix.
26689 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26691         * varasm.c (emit_bss): Remove redundant guard.
26693 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26695         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26697 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
26699         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26701 2015-04-22  Hale Wang  <hale.wang@arm.com>
26702             Terry Guo  <terry.guo@arm.com>
26704         PR rtl-optimization/64818
26705         * combine.c (can_combine_p): Don't combine user-specified
26706         register if it is in an asm input.
26708 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
26710         PR ipa/65076
26711         * passes.def (early_optimizations): Add pass_dse.
26713 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26715         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26716         * reorg.c (redundant_insn): Remove ifdef
26717         INSN_REFERENCES_ARE_DELAYED.
26718         * resource.c (mark_referenced_resources): Likewise.
26720 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26722         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26723         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26724         * resource.c (mark_set_resources): Likewise.
26726 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26728         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26729         * cfgcleanup.c (flow_find_cross_jump): Likewise.
26730         (flow_find_head_matching_sequence): Likewise.
26731         (try_head_merge_bb): Likewise.
26732         * combine.c (can_combine_p): Likewise.
26733         (try_combine): Likewise.
26734         (distribute_notes): Likewise.
26735         * df-problems.c (can_move_insns_across): Likewise.
26736         * final.c (final): Likewise.
26737         * gcse.c (insert_insn_end_basic_block): Likewise.
26738         * ira.c (find_moveable_pseudos): Likewise.
26739         * reorg.c (try_merge_delay_insns): Likewise.
26740         (fill_simple_delay_slots): Likewise.
26741         (fill_slots_from_thread): Likewise.
26742         * sched-deps.c (sched_analyze_2): Likewise.
26744 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26746         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26747         PIC_OFFSET_TABLE_REGNUM.
26749 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26751         * alias.c (init_alias_target): Remove ifdef
26752         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26753         * df-scan.c (df_insn_refs_collect): Likewise.
26754         (df_get_regular_block_artificial_uses): Likewise.
26755         (df_get_eh_block_artificial_uses): Likewise.
26756         (df_get_entry_block_def_set): Likewise.
26757         (df_get_exit_block_use_set): Likewise.
26758         * emit-rtl.c (gen_rtx_REG): Likewise.
26759         * ira.c (ira_setup_eliminable_regset): Likewise.
26760         * reginfo.c (init_reg_sets_1): Likewise.
26761         * regrename.c (rename_chains): Likewise.
26762         * reload1.c (reload): Likewise.
26763         (eliminate_regs_in_insn): Likewise.
26764         * resource.c (mark_referenced_resources): Likewise.
26765         (init_resource_info): Likewise.
26767 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26769         * defaults.h (MASK_RETURN_ADDR): New definition.
26770         * except.c (expand_builtin_extract_return_addr): Remove ifdef
26771         MASK_RETURN_ADDR.
26773 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26775         * defaults.h (RETURN_ADDR_OFFSET): New definition.
26776         * except.c (expand_builtin_extract_return_addr): Remove ifdef
26777         RETURN_ADDR_OFFSET.
26778         (expand_builtin_frob_return_addr): Likewise.
26780 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26782         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
26783         (try_redirect_by_replacing_jump): Likewise.
26784         (rtl_tidy_fallthru_edge): Likewise.
26785         * combine.c (insn_a_feeds_b): Likewise.
26786         (find_split_point): Likewise.
26787         (simplify_set): Likewise.
26788         * cprop.c (cprop_jump): Likewise.
26789         * cse.c (cse_extended_basic_block): Likewise.
26790         * df-problems.c (can_move_insns_across): Likewise.
26791         * function.c (emit_use_return_register_into_block): Likewise.
26792         * haifa-sched.c (sched_init): Likewise.
26793         * ira.c (find_moveable_pseudos): Likewise.
26794         * loop-invariant.c (find_invariant_insn): Likewise.
26795         * lra-constraints.c (curr_insn_transform): Likewise.
26796         * postreload.c (reload_combine_recognize_const_pattern):
26797         * Likewise.
26798         * reload.c (find_reloads): Likewise.
26799         * reorg.c (delete_scheduled_jump): Likewise.
26800         (steal_delay_list_from_target): Likewise.
26801         (steal_delay_list_from_fallthrough): Likewise.
26802         (redundant_insn): Likewise.
26803         (fill_simple_delay_slots): Likewise.
26804         (fill_slots_from_thread): Likewise.
26805         (delete_computation): Likewise.
26806         * sched-rgn.c (add_branch_dependences): Likewise.
26808 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26810         * genconfig.c (main): Always define HAVE_cc0.
26811         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
26812         HAVE_cc0.
26813         * cfgcleanup.c (flow_find_cross_jump): Likewise.
26814         (flow_find_head_matching_sequence): Likewise.
26815         (try_head_merge_bb): Likewise.
26816         * cfgrtl.c (rtl_merge_blocks): Likewise.
26817         (try_redirect_by_replacing_jump): Likewise.
26818         (rtl_tidy_fallthru_edge): Likewise.
26819         * combine.c (do_SUBST_MODE): Likewise.
26820         (insn_a_feeds_b): Likewise.
26821         (combine_instructions): Likewise.
26822         (can_combine_p): Likewise.
26823         (try_combine): Likewise.
26824         (find_split_point): Likewise.
26825         (subst): Likewise.
26826         (simplify_set): Likewise.
26827         (distribute_notes): Likewise.
26828         * cprop.c (cprop_jump): Likewise.
26829         * cse.c (cse_extended_basic_block): Likewise.
26830         * df-problems.c (can_move_insns_across): Likewise.
26831         * final.c (final): Likewise.
26832         (final_scan_insn): Likewise.
26833         * function.c (emit_use_return_register_into_block): Likewise.
26834         * gcse.c (insert_insn_end_basic_block): Likewise.
26835         * haifa-sched.c (sched_init): Likewise.
26836         * ira.c (find_moveable_pseudos): Likewise.
26837         * loop-invariant.c (find_invariant_insn): Likewise.
26838         * lra-constraints.c (curr_insn_transform): Likewise.
26839         * optabs.c (prepare_cmp_insn): Likewise.
26840         * postreload.c (reload_combine_recognize_const_pattern):
26841         * Likewise.
26842         * reload.c (find_reloads): Likewise.
26843         (find_reloads_address_1): Likewise.
26844         * reorg.c (delete_scheduled_jump): Likewise.
26845         (steal_delay_list_from_target): Likewise.
26846         (steal_delay_list_from_fallthrough): Likewise.
26847         (try_merge_delay_insns): Likewise.
26848         (redundant_insn): Likewise.
26849         (fill_simple_delay_slots): Likewise.
26850         (fill_slots_from_thread): Likewise.
26851         (delete_computation): Likewise.
26852         (relax_delay_slots): Likewise.
26853         * sched-deps.c (sched_analyze_2): Likewise.
26854         * sched-rgn.c (add_branch_dependences): Likewise.
26856 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26858         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
26859         that is trivially ded on non cc0 targets.
26860         (simplify_set): Likewise.
26861         (mark_used_regs_combine): Likewise.
26862         * cse.c (new_basic_block): Likewise.
26863         (fold_rtx): Likewise.
26864         (cse_insn): Likewise.
26865         (cse_extended_basic_block): Likewise.
26866         (set_live_p): Likewise.
26867         * rtlanal.c (canonicalize_condition): Likewise.
26868         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
26870 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26872         * conditions.h: Define macros even if HAVE_cc0 is undefined.
26873         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
26874         * final.c: Likewise.
26875         * jump.c: Likewise.
26876         * recog.c: Likewise.
26877         * recog.h: Declare functions even when HAVE_cc0 is undefined.
26878         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
26880 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
26882         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
26883         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
26884         * builtins.c (expand_builtin): Remove check if
26885         EH_RETURN_DATA_REGNO is defined.
26886         * df-scan.c (df_bb_refs_collect): Likewise.
26887         (df_get_exit_block_use_set): Likewise.
26888         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
26889         * ira-lives.c (process_bb_node_lives): Likewise.
26890         * lra-lives.c (process_bb_lives): Likewise.
26892 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
26894         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
26895         FIRST_PSEUDO_REG): New.
26896         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
26897         (ARG_POINTER_REGNUM): Define to ARGP_REG.
26898         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
26899         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
26900         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
26901         (FIRST_INT_REG): New.
26902         (LAST_INT_REG): New.
26903         (FIRST_*_REG): Define using *_REG.
26904         (LAST_*_REG): Ditto.
26905         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
26906         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
26907         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
26909 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26911         * expmed.c: (synth_mult): Only assume overlapping
26912         shift with previous steps in alg_sub_t_m2 case.
26914 2015-04-21  Richard Biener  <rguenther@suse.de>
26916         PR tree-optimization/65650
26917         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
26918         transitions involving copies.
26919         (set_lattice_value): Adjust for copy lattice state.
26920         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
26921         if that doesn't dominate the merge point.
26922         (bit_value_unop): Adjust what we treat as varying mask.
26923         (bit_value_binop): Likewise.
26924         (bit_value_assume_aligned): Likewise.
26925         (evaluate_stmt): When we simplified to a SSA name record a copy
26926         instead of dropping to varying.
26927         (visit_assignment): Simplify.
26929         * gimple-match.h (gimple_simplify): Add another callback.
26930         * gimple-fold.c (fold_stmt_1): Adjust caller.
26931         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
26932         for the 2nd callback.
26933         * gimple-match-head.c (gimple_simplify): Add a callback that is
26934         used to valueize the stmt operands and use it that way.
26936 2015-04-21  Richard Biener  <rguenther@suse.de>
26938         PR tree-optimization/65788
26939         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
26941 2015-04-21  Richard Biener  <rguenther@suse.de>
26943         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
26944         vec_construct cost by vec_stmt_cost.
26946 2015-04-21  Richard Biener  <rguenther@suse.de>
26948         * cfghooks.h (create_basic_block): Replace with two overloads
26949         for RTL and GIMPLE.
26950         (split_block): Likewise.
26951         * cfghooks.c (split_block): Rename to ...
26952         (split_block_1): ... this.
26953         (split_block): Add two type-safe overloads for RTL and GIMPLE.
26954         (split_block_after_labels): Call split_block_1.
26955         (create_basic_block): Rename to ...
26956         (create_basic_block_1): ... this.
26957         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
26958         (create_empty_bb): Call create_basic_block_1.
26959         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
26960         split_block_after_labels.
26961         * omp-low.c (expand_parallel_call): Likewise.
26962         (expand_omp_target): Likewise.
26963         (simd_clone_adjust): Likewise.
26964         * tree-chkp.c (chkp_get_entry_block): Likewise.
26965         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
26966         create_basic_block overload.
26967         (cgraph_node::expand_thunk): Likewise.
26968         * tree-cfg.c (make_blocks): Likewise.
26969         (handle_abnormal_edges): Likewise.
26970         * tree-inline.c (copy_bb): Likewise.
26972 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26974         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
26975         New pattern.
26976         (*xor_one_cmplsidi3_ze): Likewise.
26978 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26980         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
26981         use df_remove_problem rather than manually removing problems, leaving
26982         holes in df->problems_in_order[].
26984 2015-04-21  Tom de Vries  <tom@codesourcery.com>
26986         PR tree-optimization/65802
26987         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
26989 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26991         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
26992         Increase to 128.
26993         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
26994         at '.'.  Assert that there's enough space for everything.
26996 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
26998         PR tree-optimization/64950
26999         Revert:
27000         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
27002         PR target/41089
27003         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
27004         as volatile.
27006 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
27008         PR rtl-optimization/64916
27009         * cfgcleanup.c (values_equal_p): New function.
27010         (can_replace_by): Use it.
27012 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
27014         PR c++/65801
27015         * doc/invoke.texi ([-Wnarrowing]): Update.
27017 2015-04-20  Jeff Law  <law@redhat.com>
27019         PR tree-optimization/65658
27020         * tree-ssa-threadupdate.c (redirection_block_p): Remove
27021         redundant test for GIMPLE_ASSIGN in last change.
27023 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
27025         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
27026         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
27027         (legitimize_tls_address): Ditto.
27028         (ix86_expand_move): Ditto.
27029         (ix86_expand_binary_operator): Remove reload_in_progress checks.
27030         (ix86_expand_unary_operator): Ditto.
27031         * config/i386/predicates.md (index_register_operand): Ditto.
27033 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
27035         * reorg.c (try_merge_delay_insns): Improve correctness checking
27036         for targets with multiple delay slots.
27038 2015-04-20  Jeff Law  <law@redhat.com>
27040         PR tree-optimization/65658
27041         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
27042         statements too.
27044 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
27046         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
27047         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
27048         Delete.
27050 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
27052         PR debug/65807
27053         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
27055 2015-04-20  Richard Biener  <rguenther@suse.de>
27057         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
27058         * gimple-fold.c (gimple_build_valueize): New function.
27059         (gimple_build): Always use gimple_build_valueize as valueize hook.
27061 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
27063         PR target/64134
27064         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
27065         and overwrite variable parts if <= 1/2 the elements are variable.
27067 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27069         PR rtl-optimization/65805
27070         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
27071         Don't use difference of offset and previous offset if
27072         update_sp_offset is non-zero.
27073         (eliminate_regs_in_insn): Ditto.
27074         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
27075         lra_eliminate_regs_1 call.
27076         * lra-constraints.c (get_equiv_with_elimination): Ditto.
27078 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
27080         * hash-table.h: Remove version of hash_table that stored value_type *.
27081         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
27082         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
27083         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
27084         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
27085         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
27086         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
27087         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
27088         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
27089         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
27090         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
27091         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
27092         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
27093         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
27094         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
27095         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
27096         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
27098 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27099             Jakub Jelinek  <jakub@redhat.com>
27101         PR target/65787
27102         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
27103         subsequent SH_NONE operand does not overwrite an existing *special
27104         value.
27105         (adjust_extract): Handle case where a vec_extract operation is
27106         wrapped in a PARALLEL.
27108 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
27110         PR target/65780
27111         * config/i386/i386.c (ix86_binds_local_p): Define only if
27112         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
27114 2015-04-17  Jeff Law  <law@redhat.com>
27116         PR tree-optimization/47679
27117         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
27118         * tree-ssa-scopedtables.c: New file.
27119         * tree-ssa-scopedtables.h: New file.
27120         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
27121         (const_and_copies): Change name/type.
27122         (record_const_or_copy): Move into tree-ssa-scopedtables.c
27123         (record_const_or_copy_1): Similarly.
27124         (restore_vars_to_original_value): Similarly.
27125         (pass_dominator::execute): Create and destroy const_and_copies table.
27126         (thread_across_edge): Update passing of const_and_copies.
27127         (record_temporary_equivalence): Use method calls rather than
27128         manipulating const_and_copies directly.
27129         (record_equality, cprop_into_successor_phis): Similarly.
27130         (dom_opt_dom_walker::before_dom_children): Similarly.
27131         (dom_opt_dom_walker::after_dom_children): Similarly.
27132         (eliminate_redundant_computations): Similarly.
27133         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
27134         (record_temporary_equivalence): Likewise.
27135         (invalidate_equivalences): Likewise.
27136         (record_temporary_equivalences_from_phis): Update due to type
27137         change of const_and_copies.  Use method calls rather than
27138         manipulating the stack directly.
27139         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
27140         (thread_through_normal_block, thread_across_edge): Likewise.
27141         (thread_across_edge): Likewise.
27142         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
27143         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
27144         of equiv_stack.
27145         (identify_jump_threads): Update due to type change of equiv_stack.
27146         (finalize_jump_threads): Delete the equiv_stack when complete.
27148 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
27150         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27151         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
27152         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
27154 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
27156         PR target/65535
27157         * config.gcc: Exit with a comment when we do not have a major version
27158         number for the FreeBSD target.
27160 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
27162         PR target/65689
27163         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
27164         maybe_allows_mem bitfields.
27165         (maybe_allows_none_start, maybe_allows_none_end,
27166         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
27167         maybe_allows_mem_end): New variables.
27168         (compute_maybe_allows): New function.
27169         (add_constraint): Use it to initialize maybe_allows_reg and
27170         maybe_allows_mem fields.
27171         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
27172         is_address constraints such that those that allow neither mem nor
27173         reg come first, then those that only allow reg but not mem, then
27174         those that only allow mem but not reg, then the rest.
27175         (write_allows_reg_mem_function): New function.
27176         (write_tm_preds_h): Call it.
27177         * stmt.c (parse_output_constraint, parse_input_constraint): Use
27178         the generated insn_extra_constraint_allows_reg_mem function
27179         instead of always setting *allows_reg = true; *allows_mem = true;
27180         for unknown extra constraints.
27182 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
27184         PR target/65780
27185         * output.h (default_binds_local_p_3): New.
27186         * varasm.c (default_binds_local_p_3): Make it public.  Take an
27187         argument to indicate if common symbol may be local.  If common
27188         symbol may be local, treat non-external variable as defined
27189         locally.
27190         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
27191         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
27192         * config/i386/i386.c (ix86_binds_local_p): New.
27193         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
27194         ix86_binds_local_p.
27196 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
27198         PR debug/65771
27199         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
27200         trying mem_loc_descriptor on XEXP (rtl, 0).
27202 2015-04-17  Martin Liska  <mliska@suse.cz>
27204         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
27205         Release symbol_compare_collection.
27206         * ipa-reference.c: Add TODO that a vector should be released.
27208 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
27210         PR target/65296
27211         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
27212         to new AVR-LibC file layout (bug #44574).
27213         (*avrlibc_devicelib): Same.
27214         * config/avr/avr-mcus.def: Adjust comments.
27215         * config/avr/avr.opt (nodevicelib): Adjust help.
27217 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
27219         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
27221 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
27223         PR c++/64527
27224         * gimplify.c (gimplify_init_constructor): Always emit a
27225         side-effecting constructor.
27227 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27229         PR tree-optimization/64950
27230         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
27231         in cfun->curr_properties.
27232         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
27233         if we generate an IFN_VA_ARG.
27234         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
27235         function if PROP_gimple_lva is not set in src function.
27237 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27238             Michael Matz  <matz@suse.de>
27240         PR tree-optimization/64950
27241         * gimple-iterator.c (update_modified_stmts): Remove static.
27242         * gimple-iterator.h (update_modified_stmts): Declare.
27243         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
27244         (gimplify_va_arg_internal): New function.
27245         (gimplify_va_arg_expr): Use IFN_VA_ARG.
27246         * gimplify.h (gimplify_va_arg_internal): Declare.
27247         * internal-fn.c (expand_VA_ARG): New unreachable function.
27248         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
27249         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
27250         (expand_ifn_va_arg): New function.
27251         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
27252         (pass_stdarg::execute): Call expand_ifn_va_arg.
27253         (pass_data_lower_vaarg): New pass_data.
27254         (pass_lower_vaarg): New gimple_opt_pass.
27255         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
27256         (make_pass_lower_vaarg): New function.
27257         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
27258         properties_required field.
27259         * passes.def (all_passes): Add pass_lower_vaarg.
27260         * tree-pass.h (PROP_gimple_lva): Add define.
27261         (make_pass_lower_vaarg): Declare.
27263 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27265         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
27266         * calls.c (call_expr_flags): Same.
27268 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27270         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
27271         (pass_stdarg::execute): ... here.
27273 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27274             Michael Matz  <matz@suse.de>
27276         * tree-cfg.c (make_blocks_1): Factor out of ...
27277         (make_blocks): ... here.
27278         (make_edges_bb): Factor out of ...
27279         (make_edges): ... here.
27280         (gimple_find_sub_bbs): New function.
27281         * tree-cfg.h (gimple_find_sub_bbs): Declare.
27283 2015-04-17  Tom de Vries  <tom@codesourcery.com>
27285         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
27287 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
27289         * asan.c (set_sanitized_sections): New function.
27290         (section_sanitized_p): Ditto.
27291         (asan_protect_global): Optionally sanitize user-defined
27292         sections.
27293         * asan.h (set_sanitized_sections): Declare new function.
27294         * common.opt (fsanitize-sections): New option.
27295         * doc/invoke.texi (-fsanitize-sections): Document new option.
27296         * opts-global.c (handle_common_deferred_options): Handle new
27297         option.
27299 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
27301         PR debug/65771
27302         * dwarf2out.c (loc_list_from_tree): Return NULL
27303         for DEBUG_EXPR_DECL.
27305 2015-04-17  Christian Bruel  <christian.bruel@st.com>
27307         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
27308         same attributes.
27310 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
27312         * ira-color.c (setup_left_conflict_sizes_p): Do not process
27313         node itself when computing left conflict subnode size.
27315 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
27317         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
27318         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
27319         *fop_<mode>_1_sse using enabled attribute.  Use
27320         register_mixssei387nonimm_operand operand 1 predicate. Change
27321         alternative 3 constraints from "x" to "v".
27323 2015-04-16  Richard Biener  <rguenther@suse.de>
27325         PR tree-optimization/65774
27326         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
27327         bit-value tracking on.
27329 2015-04-16  Richard Biener  <rguenther@suse.de>
27331         PR tree-optimization/64277
27332         * tree-vrp.c (check_array_ref): Fix anti-range handling,
27333         simplify upper bound handling.
27334         (search_for_addr_array): Simplify.
27335         (check_array_bounds): Handle ADDR_EXPRs here.
27336         (check_all_array_refs): Simplify.
27338 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
27340         * config/i386/i386.c (print_reg): Rewrite function.
27342 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27344         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
27345         Invert the condition.
27347 2015-04-16  Renlin Li  <renlin.li@arm.com>
27349         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
27350         simplifications for UNSIGNED_FLOAT.
27352 2015-04-16  Nick Clifton  <nickc@redhat.com>
27354         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
27355         MUL_UNINIT.
27356         (enum rl78_cpu_type): New.
27357         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
27358         (umulhi3_shift_virt): Remove m constraint from operand 1.
27359         (umulqihi3_virt): Likewise.
27360         * config/rl78/rl78.c (rl78_option_override): Add code to process
27361         -mcpu and -mmul options.
27362         (rl78_alloc_physical_registers): Add code to handle divhi and
27363         divsi valloc attributes.
27364         (set_origin): Likewise.
27365         * config/rl78/rl78.h (RL78_MUL_G14): Define.
27366         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
27367         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
27368         __RL78_Gxx__.
27369         (ASM_SPEC): Pass -mcpu on to assembler.
27370         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
27371         (mulqi3_rl78): Likewise.
27372         (mulhi3_g13): Likewise.
27373         (mulhi3): Generate the G13 or G14 versions of the insn directly.
27374         (mulsi3): Likewise.
27375         (mulhi3_g14): Add clobbers of AX and BC.
27376         (mulsi3_g14): Likewise.
27377         (mulsi3_g13): Likewise.
27378         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
27379         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
27380         * config/rl78/rl78.opt (mmul): Initialise value to
27381         RL78_MUL_UNINIT.
27382         (mcpu): New option.
27383         (m13, m14, mrl78): New option aliases.
27384         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
27385         (MULTILIB_DIRNAMES): Add g13 and g14.
27386         * doc/invoke.texi: Document -mcpu and -mmul options.
27388 2015-04-16  Richard Biener  <rguenther@suse.de>
27390         * tree-ssa-ccp.c (likely_value): See if we have operands that
27391         are marked as never simulate again and return CONSTANT in this
27392         case.
27393         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
27394         not have any operands that will be simulated again as
27395         not being simulated again.
27397 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
27399         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
27400         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
27401         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
27402         attribute.
27403         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
27404         enabled attribute.
27405         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
27406         *float<SWI48:mode><MODEF:mode>2_sse.
27407         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
27408         enabled attribute.
27409         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
27410         enabled attribute.
27412 2015-04-15  Tom de Vries  <tom@codesourcery.com>
27414         PR other/65487
27415         * function.c (push_dummy_function): New function.
27416         (init_dummy_function_start): Use push_dummy_function.
27417         (pop_dummy_function): New function.  Factored out of ...
27418         (expand_dummy_function_end): ... here.
27419         * function.h (push_dummy_function, pop_dummy_function): Declare.
27420         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
27421         pop_dummy_function.
27422         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
27424 2015-04-15  Jeff Law  <law@redhat.com>
27426         PR tree-optimization/47679
27427         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
27428         need for forward declaration in upcoming changes.
27429         (record_conditions, record_edge_info): Likewise.
27431         PR rtl-optimization/42522
27432         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
27433         SIGN_EXTRACT as a whole object rather than simplifying
27434         its operand.
27436 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
27438         PR ipa/65765
27439         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
27440         and GIMPLE_PREDICT use break instead of return true. For
27441         GIMPLE_EH_DISPATCH, compare dispatch region.
27443 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
27445         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
27446         details about the implementation.  Make clear preference for
27447         __atomic builtins.  Reduce possibility of future change.
27449 2015-04-15  Nick Clifton  <nickc@redhat.com>
27451         * config/rx/rx.opt (mallow-string-insns): New option.
27452         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
27453         builtin if string instructions are denied.
27454         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
27455         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
27456         appropriate.
27457         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
27458         * config/rx/rx.md (movstr): Enable pattern only if string
27459         instructions are allowed.
27460         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
27461         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
27462         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
27463         (MULTILIB_DIRNAMES): Add no-strings.
27464         * doc/invoke.texi: Document -mno-allow-string-insns.
27466 2015-04-15  Alan Modra  <amodra@gmail.com>
27468         PR target/65408
27469         PR target/58744
27470         PR middle-end/36043
27471         * calls.c (load_register_parameters): Don't load past end of
27472         mem unless suitably aligned.
27474 2015-04-15  Nick Clifton  <nickc@redhat.com>
27476         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
27477         decrement instruction as being frame related.
27478         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
27479         based addresses.
27480         If zero extending a function address enclose the operation in
27481         %code(...).
27482         (rl78_preferred_reload_class): New function.
27483         (TARGET_PREFERRED_RELOAD_CLASS): Define.
27484         * config/rl78/rl78.md: Remove useless constraints in expanders.
27485         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
27486         (mulhi3_rl78): Likewise.
27487         (mulhi3_g13): Likewise.
27488         (mulsi3_rl78): Likewise.
27489         (es_addr): Move to before the multiply patterns.
27491 2015-04-15  Alan Modra  <amodra@gmail.com>
27493         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
27494         and sequence_stack.  Add seq.
27495         (seq_stack): Delete.
27496         * function.c (prepare_function_start): Don't access x_last_insn.
27497         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
27498         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
27499         * emit_rtl.c (start_sequence, push_topmost_sequence,
27500         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
27501         sequence accessors.
27502         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
27503         remove_insn): Likewise.  Simplify.
27504         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
27505         and pop_topmost_sequence.
27506         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
27507         debug insns.
27508         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
27510 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
27512         PR target/65729
27513         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
27514         the assertiion.
27516 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
27518         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
27519         (LEGACY_INT_REGNO_P): Ditto.
27520         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27521         (ANY_MASK_REG_P): Remove.
27522         (BND_REG_P): Rename from ANY_BND_REG_P.
27523         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27524         legacy integer registers.  Do not handle MMX_REG_P in a special way.
27525         Merge 64byte and 32byte SSE handling.
27527 2015-04-14  Nick Clifton  <nickc@redhat.com>
27529         * expr.c (expand_assignment): Force an address offset computation
27530         into a register before changing its mode.
27531         (expand_expr_real_1): Likewise.
27533 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
27535         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27536         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27537         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27538         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27539         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27540         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27541         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27542         and __aarch64_vget_lane_any.
27544 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
27546         PR rtl-optimization/65761
27547         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27548         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27550 2015-04-14  Richard Biener  <rguenther@suse.de>
27552         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27553         (graphite_can_represent_scev): Use POINTER_TYPE_P.
27555 2015-04-14  Richard Biener  <rguenther@suse.de>
27557         PR tree-optimization/65758
27558         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27559         against -1.
27560         (ccp_lattice_meet): Likewise.
27561         (bit_value_unop): Likewise.
27562         (bit_value_binop): Likewise.
27563         (bit_value_assume_aligned): Likewise.
27565 2015-04-14  Christian Bruel  <christian.bruel@st.com>
27567         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27568         function.
27570 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
27572         PR tree-optimization/63387
27573         * match.pd ((x unord x) | (y unord y) -> (x unord y),
27574         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27576 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
27578         * config/i386/predicates.md (any_QIreg_operand): Rename from
27579         q_regs_operand.  Do not process subregs.
27580         (QIreg_operand): Use QI_REGNO_P predicate.
27581         (ext_QIreg_operand): Ditto.
27582         (ext_register_operand): Ditto.
27583         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27584         (AND splitters): Ditto.
27585         (AND with -65536 splitter): Add SWI48 mode for operand 0.
27586         (AND with -256 splitter): Use any_QIreg_operand predicate and
27587         SWI248 mode for operand 0.
27588         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27589         mode for operand 0.
27590         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27592 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
27594         * doc/plugins.texi: Rewrite first introductory paragraph.
27596 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27598         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27599         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27601 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27603         * ipa-profie.c (ipa_profile): Check number of parameters
27604         and possible polymorphic call targets before
27605         devirtualizing.
27607 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
27609         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27610         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27612 2015-04-13  Richard Biener  <rguenther@suse.de>
27614         PR tree-optimization/65204
27615         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27616         takens for bit-CCP.
27618 2015-04-13  Richard Biener  <rguenther@suse.de>
27620         PR target/65660
27621         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27622         and cond_not_taken_branch_cost to 4 and 2.
27623         (bdver2_cost): Likewise.
27624         (bdver3_cost): Likewise.
27625         (bdver4_cost): Likewise.
27627 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27629         * hash-table.h (hash_table constructor): Add mem stats.
27630         (alloc_entries): Likewise.
27632 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27634         * ipa-cp.c (ipcp_driver): Relase prev_edge.
27635         * passes.c (execute_one_pass): Only add transform if pass has one.
27637 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
27639         * config/i386/i386.c (ix86_option_override_internal): Don't set
27640         -fprefetch-loop-arrays if optimizing for size.
27642 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
27643             Gerald Pfeifer  <gerald@pfeifer.com>
27645         * doc/contrib.texi (Contributors): Add Martin Jambor and
27646         Michael Matz.
27648 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
27650         * BASE-VER: Set to 6.0.0.
27652         PR tree-optimization/65747
27653         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27654         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27656 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
27658         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27659         sentence.  Improve grammar.
27661 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
27663         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27665 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
27667         PR ipa/65743
27668         * ipa-inline-transform.c (speculation_removed): Remove static var.
27669         (check_speculations): New function.
27670         (clone_inlined_nodes): Do not check spculations.
27671         (inline_call): Call check_speculations.
27672         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27673         consider non-invariants.
27675 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
27676             Martin Liska  <mliska@suse.cz>
27678         PR ipa/65722
27679         * ipa-icf.c (sem_item::compare_cgraph_references): function and
27680         variable can not match.
27681         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27682         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27684 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
27686         PR tree-optimization/65735
27687         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27688         Remove visited_phis argument, add visited_bbs, avoid recursing into the
27689         same bb rather than just into the same phi node.
27690         (thread_through_normal_block): Adjust caller.
27692 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
27694         * doc/contrib.texi (Contributors): Add Ira Rosen.
27696 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
27698         * gcov.c (find_source): Fix miswording in error message.
27699         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27700         (ix86_expand_sse_comi_round): Fix typo in error message.
27702 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
27704         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27706 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
27708         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27710 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
27712         PR target/65710
27713         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27714         Print bad_spills_num and insn_pseudos_num.
27716 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27718         PR target/65694
27719         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27720         when creating +1 values for SImode.
27722 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
27724         PR target/65729
27725         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27726         assert.
27728 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
27729             Iain Sandoe  <iain@codesourcery.com>
27731         PR target/65351
27732         * configure: Regenerate.
27734 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
27736         PR target/65671
27737         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27739 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
27741         * doc/contrib.texi (Contributors): Add John Marino.
27743 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
27745         PR tree-optimization/65709
27746         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27747         TREE_TYPE (TREE_TYPE (t)).
27749 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
27751         PR target/65710
27752         * lra-int.h (lra_bad_spill_regno_start): New.
27753         * lra.c (lra_bad_spill_regno_start): New.
27754         (lra): Set up lra_bad_spill_regno_start.  Set up
27755         lra_constraint_new_regno_start unconditionally.
27756         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27757         spill preferences.
27759 2015-04-09  Marek Polacek  <polacek@redhat.com>
27760             Jakub Jelinek  <jakub@redhat.com>
27762         PR middle-end/65554
27763         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27764         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27765         of STRIP_NOPS.
27767 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
27769         PR rtl-optimization/65693
27770         * combine.c (is_parallel_of_n_reg_sets): Move outside of
27771         #ifndef HAVE_cc0.
27773 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
27775         PR target/65296
27776         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
27777         device specs file if "device-specs%s" didn't resolve to a path.
27779 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
27781         PR target/65676
27782         * config/i386/i386.c (fixup_modeless_constant): New.
27783         (ix86_expand_args_builtin): Fixup modeless constant operand.
27784         (ix86_expand_round_builtin): Ditto.
27785         (ix86_expand_special_args_builtin): Ditto.
27786         (ix86_expand_builtin): Ditto.
27788 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
27790         PR target/65693
27791         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
27792         any pow2 integer in between 2 and 0x80000000U inclusive.
27794 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
27796         PR rtl-optimization/65693
27797         * combine.c (is_parallel_of_n_reg_sets): Change first argument
27798         from an rtx_insn * to an rtx.
27799         (try_combine): Adjust both callers.  Use it once more.
27801 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
27803         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
27804         (chkp_make_static_const_bounds): Search existing
27805         symbol by assembler name.  Use make_decl_one_only.
27806         (chkp_get_zero_bounds_var): Remove node search which
27807         is now performed in chkp_make_static_const_bounds.
27808         (chkp_get_none_bounds_var): Likewise.
27810 2015-04-08  Michael Witten  <mfwitten@gmail.com>
27812         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
27813         to an example.
27815 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27817         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
27819 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
27821         * doc/extend.texi (__sync Builtins): Fix grammar.
27823 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27825         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
27827 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27829         * varasm.c (emit_local): Move definition of align.
27831 2015-04-08  Julian Brown  <julian@codesourcery.com>
27833         * config/nvptx/mkoffload.c (process): Support variable mapping.
27835 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
27837         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
27838         alpha_links **.
27839         (alpha_write_one_linkage): Correct typo.
27841 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
27843         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
27845 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
27847         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
27849 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
27851         * tree-chkp.h (chkp_insert_retbnd_call): New.
27852         * tree-chkp.c (chkp_insert_retbnd_call): New.
27853         * ipa-split.c (insert_bndret_call_after): Remove.
27854         (split_function): Use chkp_insert_retbnd_call.
27855         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
27856         bounds for instrumented functions.
27858 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
27860         PR ipa/65540
27861         * calls.c (initialize_argument_information): When producing tail
27862         call also turn SSA_NAMES passed by references to original PARM_DECLs
27864 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
27866         PR target/65648
27867         * lra-remat.c (do_remat): Process input and non-input insn
27868         registers separately.
27870 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
27872         PR debug/65678
27873         * valtrack.c (debug_lowpart_subreg): New function.
27874         (dead_debug_insert_temp): Use it.
27876         PR middle-end/65680
27877         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
27878         into signed HOST_WIDE_INT the same as negative bit_offset.
27880 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
27882         * ipa-comdats.c (ipa_comdats): Visit all thunks
27883         to set proper comdat group.
27885 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27887         PR target/65489
27888         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
27889         on constants for NEON VSTRUCT modes.
27891 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
27892             Iain Sandoe  <iain@codesourcery.com>
27894         PR target/65351
27895         * configure: Regenerate.
27897 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
27899         PR target/65614
27900         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
27901         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
27902         that LFD is used to load double constants instead of LFS.  Add
27903         defaults for all costs structures.  Add comments for missing
27904         initialization fields.
27905         (size32_cost): Likewise.
27906         (size64_cost): Likewise.
27907         (rs64a_cost): Likewise.
27908         (mpccore_cost): Likewise.
27909         (ppc403_cost): Likewise.
27910         (ppc405_cost): Likewise.
27911         (ppc440_cost): Likewise.
27912         (ppc476_cost): Likewise.
27913         (ppc601_cost): Likewise.
27914         (ppc603_cost): Likewise.
27915         (ppc604_cost): Likewise.
27916         (ppc604e_cost): Likewise.
27917         (ppc620_cost): Likewise.
27918         (ppc630_cost): Likewise.
27919         (ppccell_cost): Likewise.
27920         (ppc750_cost): Likewise.
27921         (ppc7450_cost): Likewise.
27922         (ppc8540_cost): Likewise.
27923         (ppce300c2c3_cost): Likewise.
27924         (ppce500mc_cost): Likewise.
27925         (ppce500mc64_cost): Likewise.
27926         (ppce5500_cost): Likewise.
27927         (ppce6500_cost): Likewise.
27928         (titan_cost): Likewise.
27929         (power4_cost): Likewise.
27930         (power6_cost): Likewise.
27931         (power7_cost): Likewise.
27932         (power8_cost): Likewise.
27933         (ppca2_cost): Likewise.
27934         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
27936         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
27937         instead of XXLOR to copy SFmode to clear out dirty bits created
27938         when SFmode denormals are generated.
27939         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
27940         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
27942 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
27944         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
27945         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
27946         * config/aarch64/aarch64-tune.md: Regenerate.
27948 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
27950         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
27951         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
27952         * config/arm/arm-cores.def (exynos-m1): New core.
27953         * config/arm/arm-tune.md: Regenerate.
27954         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
27955         * config/arm/bpabi.h: Likewise.
27957 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
27959         * ipa-cp (set_single_call_flag): Remove too
27960         restrictive assert.
27962 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
27964         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
27965         GOMP_offload_unregister from the destructor.
27967 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
27969         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
27970         flags for instrumentation thunk.
27971         (chkp_produce_thunks): Likewise.
27973 2015-04-05  Martin Liska  <mliska@suse.cz>
27975         PR ipa/65665
27976         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
27977         has computed data structure.
27978         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
27980 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
27982         * invoke.texi (inline-unit-growth): Increase growth to 20%
27983         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
27985 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
27987         PR target/65647
27988         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
27989         value checking.
27990         (lra_rematerialization_iter): New.
27991         * lra.c (lra): Initialize lra_rematerialization_iter.
27992         Stop updating lra_constraint_new_regno_start after switching of
27993         inheritance and rematerialization.
27994         * lra-remat.c (lra_rematerialization_iter): New.
27995         (lra_remat): Add printing pass iteration.  Do rematerialization
27996         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
27998 2015-04-04  Richard Biener  <rguenther@suse.de>
28000         PR tree-optimization/64909
28001         PR tree-optimization/65660
28002         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
28003         to take a cost vector for scalar iteration cost.
28004         (vect_get_single_scalar_iteration_cost): Likewise.
28005         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
28006         Compute the scalar iteration cost into a cost vector.
28007         (vect_get_known_peeling_cost): Use the scalar cost vector to
28008         account for the cost of the peeled iterations.
28009         (vect_estimate_min_profitable_iters): Likewise.
28010         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
28011         Likewise.
28013 2015-04-04  Alan Modra  <amodra@gmail.com>
28015         PR target/65576
28016         PR target/65240
28017         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
28018         0.0 constant unless TARGET_VSX.
28019         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
28020         alternative.
28022 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
28024         PR ipa/65654
28025         * ipa-inline-transform.c (inline_call): Skip sanity check to work
28026         around the ICE
28028 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
28030         PR ipa/65655
28031         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
28032         speculative indirect edges to avoid ordering issue.
28034 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
28036         PR ipa/65076
28037         * ipa-inline.c (edge_badness): Add combined size to the denominator.
28039 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
28041         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
28042         TYPE_ARTIFICIAL on the .omp_data* types.
28044 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28046         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
28047         instrumentation thunks.
28049 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28051         * config/i386/i386.c (ix86_expand_call): Avoid nested
28052         PARALLEL in returned call value.
28054 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28056         * lto-cgraph.c (input_cgraph_1): Always link instrumented
28057         assembler name with original one.
28059 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
28061         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
28063 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
28065         Revert parts of r216820.
28066         * config/i386/i386.md (movqi_internal): Correct type calculation
28067         for alternatives 3 and 5.
28069 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
28071         PR preprocessor/61977
28072         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
28073         predefine __vector/__bool/__pixel macros nor context sensitive
28074         macros for CLK_ASM.
28075         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
28077 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
28079         * config/pa/pa.c (pa_output_move_double): Directly handle register
28080         indexed memory operand.  Simplify handling of scaled register indexed
28081         memory operands.
28083 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
28085         PR driver/65444
28086         * config/i386/linux-common.h (MPX_SPEC): New.
28087         (CHKP_SPEC): Add MPX_SPEC.
28088         * doc/invoke.texi (-fcheck-pointer-boudns): Document
28089         possible issues with '-z bndplt' support in linker.
28091 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
28093         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
28094         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
28095         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
28096         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
28097         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
28099 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
28101         * config/i386/sync.md (UNSPEC_MOVA): Remove.
28102         (atomic_load<mode>): Change operand 0 predicate to
28103         nonimmediate_operand and fix up the destination when needed.
28104         Use UNSPEC_LDA.
28105         (atomic_loaddi_fpu): Use UNSPEC_LDA.
28106         (atomic_store<mode>): Change operand 1 predicate to
28107         nonimmendate_operand and move the source to register when needed.
28108         Use UNSPEC_STA.
28109         (atomic_store<mode>_1): Use UNSPEC_STA.
28110         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
28111         Fix moves from memory operand.  Use UNSPEC_STA.
28113 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28115         * expmed.c (strict_volatile_bitfield_p): Check that the access will
28116         not cross a MODESIZE boundary.
28117         (store_bit_field, extract_bit_field): Added assertions in the
28118         strict volatile bitfields code path.
28120 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28122         PR target/65624
28123         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
28124         Increase args array size by one to avoid buffer overflow.
28126 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
28128         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28129         split_part.
28130         * ipa-inline.c (edge_badness): Add wrapper penalty.
28131         (sum_callers): Move up.
28132         (inline_small_functions): Set single_caller.
28133         * ipa-inline.h (inline_summary): Add single_caller.
28134         * ipa-split.c (split_function): Set split_part.
28135         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
28136         * cgraph.h (cgraph_node): Add split_part.
28138 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
28140         PR target/58945
28141         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
28142         Do not split operands 0 and operands 2 to halfmode.
28143         (atomic_compare_and_swap<mode>): Update for
28144         atomic_compare_and_swap<dwi>_doubleword changes.
28146 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
28148         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
28149         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
28150         no caching is done.
28152 2015-03-31  Martin Liska  <mliska@suse.cz>
28154         PR ipa/65557
28155         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
28156         has already filled up function summary.
28157         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28159 2015-03-31  Richard Biener  <rguenther@suse.de>
28161         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
28162         of types.
28164 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28166         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
28167         nested functions.
28168         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
28169         (s390_asm_output_function_label): Adapt to new signature of
28170         s390_function_num_hotpatch_hw
28171         Optimise the code generating assembler output.
28172         Add comments to assembler file.
28174 2015-03-31  Richard Biener  <rguenther@suse.de>
28176         PR middle-end/65626
28177         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
28178         of the noreturn call so it is last and cleanup_control_flow_bb
28179         can do the CFG part.
28181 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
28183         PR target/65531
28184         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
28185         same_comdat_group for external symbols.
28186         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
28187         infinite same_comdat_group traversal loop.
28189 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
28191         PR plugins/61176
28192         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
28193         automatically to $headers.
28195 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
28197         PR ipa/65610
28198         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
28199         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
28200         function.
28201         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
28202         Use it.
28203         * ipa-prop.c (param_type_may_change_p): Likewise.
28204         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
28205         (remove_unused_scope_block_p): Add in_ctor_dtor_block
28206         argument.  Before inlining, preserve
28207         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
28208         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
28209         recursive calls.
28210         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
28212 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
28214         PR ipa/65076
28215         * ipa-inline.c (edge_badness): Base denominator on callee's
28216         grwoth squared.
28218 2015-03-27  Martin Jambor  <mjambor@suse.cz>
28220         PR ipa/65478
28221         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
28222         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
28223         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
28224         node_calling_single_call.
28225         * ipa-cp.c (count_callers): New function.
28226         (set_single_call_flag): Likewise.
28227         (initialize_node_lattices): Count callers and set single_flag_call if
28228         necessary.
28229         (incorporate_penalties): New function.
28230         (good_cloning_opportunity_p): Use it, dump new flags.
28231         (propagate_constants_topo): Set node_within_scc flag if appropriate.
28232         * doc/invoke.texi (ipa-cp-recursion-penalty,
28233         ipa-cp-single-call-pentalty): Document.
28235 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
28237         PR ipa/65588
28238         * symtab.c (symtab_node::get_partitioning_class): Register vars
28239         are duplicated.
28240         * varpool.c (symbol_table::output_variables) Do not assemble unefined
28241         decls for non-symbols.
28243 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28245         PR target/65248
28246         * output.h (default_binds_local_p_2): New.
28247         * varasm.c (default_binds_local_p_2): Renamed to ...
28248         (default_binds_local_p_3): This.  Don't return true on protected
28249         data symbol if protected data may be external.
28250         (default_binds_local_p): Use default_binds_local_p_3.
28251         (default_binds_local_p_1): Likewise.
28252         (default_binds_local_p_2): New.
28253         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
28254         default_binds_local_p_2 if TARGET_MACHO is undefined.
28256 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
28258         PR target/65593
28259         * config/i386/i386.c (legitimize_pic_address): If base
28260         is SYMBOL_REF or LABEL_REF using %rip addressing, force
28261         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
28263 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
28265         PR target/65531
28266         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
28267         comdat groups.
28269 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
28271         PR ipa/65600
28272         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
28273         of optimized out indirect call.
28274         (redirect_to_unreachable): Always build symbol table node for
28275         BUILT_IN_UNREACHABLE
28277 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
28279         PR target/65407
28280         * ira-costs.c (record_reg_classes): Process all constraint string
28281         containing 0-9.
28283 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
28285         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
28286         memory_operand.
28288         PR target/65052
28289         * config/c6x/constraints.md (S3): New constraint.
28290         * config/c6x/c6x.md (real_jump): Use it.
28292 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28294         PR middle-end/65595
28295         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
28296         do redirection if the call is not optimized out.
28298 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
28300         PR target/65495
28301         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
28302         (fchkp-check-incomplete-type): Add LTO.
28303         (fchkp-zero-input-bounds-for-main): Likewise.
28304         (fchkp-first-field-has-own-bounds): Likewise.
28305         (fchkp-narrow-bounds): Likewise.
28306         (fchkp-narrow-to-innermost-array): Likewise.
28307         (fchkp-use-static-bounds): Likewise.
28308         (fchkp-use-static-const-bounds): Likewise.
28309         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28311 2015-03-27  Marek Polacek  <polacek@redhat.com>
28313         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
28315 2015-03-27  Marek Polacek  <polacek@redhat.com>
28317         PR sanitizer/65583
28318         * ubsan.c (ubsan_create_edge): New function.
28319         (instrument_bool_enum_load): Call it.
28320         (instrument_nonnull_arg): Likewise.
28321         (instrument_nonnull_return): Likewise.
28322         (instrument_object_size): Likewise.
28324 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28326         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
28327         auto_vec.
28329 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28331         PR lto/65536
28332         * lto-streamer.h (class lto_location_cache): New.
28333         (struct data_in): Add location_cache.
28334         (lto_input_location): Update prototype.
28335         (stream_input_location_now): New.
28336         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
28337         pointer to location.
28338         (stream_input_location): Update.
28339         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
28340         (warn_odr): Apply location cache before warning.
28341         (lto_input_location): Update prototype.
28342         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
28343         Use stream_input_location_now.
28344         * lto-streamer-in.c (lto_location_cache::current_cache): New static
28345         variable.
28346         (lto_location_cache::cmp_loc): New function.
28347         (lto_location_cache::apply_location_cache): New function.
28348         (lto_location_cache::accept_location_cache): New function.
28349         (lto_location_cache::revert_location_cache): New function.
28350         (lto_location_cache::input_location): New function.
28351         (lto_input_location): Do location caching.
28352         (stream_input_location_now): New function.
28353         (input_eh_region, input_struct_function_base): Use
28354         stream_input_location_now.
28355         (lto_data_in_create): use new.
28356         (lto_data_in_delete): Use delete.
28357         * tree-streamer-in.c (unpack_ts_block_value_fields,
28358         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
28359         lto_input_ts_exp_tree_pointers): Update for cached location api.
28361 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28363         PR ipa/65076
28364         * passes.def: Add pass_nothrow.
28365         * ipa-pure-const.c: (pass_data_nothrow): New.
28366         (pass_nothrow): New.
28367         (pass_nothrow::execute): New.
28368         (make_pass_nothrow): New.
28369         * tree-pass.h (make_pass_nothrow): Declare.
28371 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28373         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
28374         edge to change by speculation resolution or redirection.
28375         (edge_set_predicate): Likewise.
28376         (inline_summary_t::duplicate): Likewise.
28377         (remap_edge_summaries): Likewise.
28379 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28381         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
28382         New macros.
28383         (can_inline_edge_p): Relax option matching for always inline functions.
28385 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
28387         PR target/65561
28388         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
28389         Check operand 4 and operand 0 for equality.
28390         (avx512f_vextract<shuffletype>32x4_1_maskm):
28391         Check operand 6 and operand 0 for equality.
28392         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
28393         for equality.
28394         (vec_extract_hi_<mode>_maskm): Ditto.
28396 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28398         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
28399         dead calls back to live.
28400         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
28401         cross check to ...
28402         (cgraph_node::verify_node): ... here; verify only callee edges,
28403         not caller.
28404         * cif-code.def (CILK_SPAWN): New code.
28406 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
28408         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
28409         (edge_set_predicate): Use it to mark unreachable edges.
28410         (inline_summary_t::duplicate): Remove unnecesary code.
28411         (remap_edge_summaries): Likewise.
28412         (dump_inline_summary): Report contains_cilk_spawn.
28413         (compute_inline_parameters): Compute contains_cilk_spawn.
28414         (inline_read_section, inline_write_summary): Stream
28415         contains_cilk_spawn.
28416         * ipa-inline.c (can_inline_edge_p): Do not touch
28417         DECL_STRUCT_FUNCTION that may not be available;
28418         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
28419         remove check for callee_fun->can_throw_non_call_exceptions and
28420         replace it by optimization attribute check; check for flag_exceptions.
28421         * ipa-inline-transform.c (inline_call): Maintain
28422         DECL_FUNCTION_PERSONALITY
28423         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
28425 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
28427         PR tree-optimization/65551
28428         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
28429         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
28431 2015-03-26  Richard Biener  <rguenther@suse.de>
28433         PR middle-end/65555
28434         * tree-cfg.c (verify_gimple_call): Do not require a call to
28435         have no LHS if it wasn't recognized as control altering yet.
28437 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
28439         PR tree-optimization/64715
28440         * passes.def: Add another instance of pass_object_sizes before ccp1.
28441         * tree-object-size.c (pass_object_sizes::execute): In
28442         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
28443         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
28444         __bos result and the computed constant.  Remove redundant
28445         checks, obsoleted by gimple_call_builtin_p test.
28447         * var-tracking.c (variable_tracking_main_1): Don't track
28448         variables for targetm.no_register_allocation targets.
28450 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
28452         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
28453         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
28455 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
28457         PR target/65569
28458         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
28459         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
28460         0.0 is correctly setup.
28461         (extenddftf2_internal): Likewise.
28463 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
28465         PR tree-optimization/65177
28466         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
28467         (bb_in_bbs): New.
28468         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
28469         edges not adjacent on the path to the original code.
28471 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
28473         PR bootstrap/65537
28474         * doc/install.texi (Building a native compiler): Document new
28475         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
28476         configuration assumes that the host supports the linker plugin.
28478 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
28480         PR target/65508
28481         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
28482         chain for generated call.
28484 2015-03-25  Richard Biener  <rguenther@suse.de>
28486         * passes.c (pass_manager::execute_early_local_passes): Guard
28487         execution of pass_chkp_instrumentation_passes with
28488         flag_check_pointer_bounds.
28489         (pass_chkp_instrumentation_passes::gate): Likewise.
28491 2015-03-25  Martin Liska  <mliska@suse.cz>
28493         PR tree-optimization/65538
28494         * symbol-summary.h (function_summary::~function_summary):
28495         Relese memory for allocated summaries.
28496         (function_summary::release): New function.
28498 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
28500         PR lto/65515
28501         * lto-streamer-out.c (DFS::worklist): New struct.
28502         (DFS::worklist_vec): New data member.
28503         (DFS::next_dfs_num): Remove.
28504         (DFS::DFS): Rewritten using worklist instead of recursion,
28505         using most of code from DFS::DFS_write_tree.
28506         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
28507         pass it to DFS_write_tree calls.
28508         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
28509         quick initial checks push it into worklist_vec and return.
28511 2015-03-25  Richard Biener  <rguenther@suse.de>
28513         PR middle-end/65519
28514         * genmatch.c (expr::gen_transform): Re-write to avoid
28515         using gimple_build.
28517 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
28519         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
28521 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
28523         * config/arm/arm.opt (print_tune_info): New option.
28524         * config/arm/arm.c (arm_print_tune_info): New function.
28525         (arm_file_start): Call arm_print_tune_info.
28526         * config/arm/arm-protos.h (struct tune_params): Add comment.
28527         * doc/invoke.texi (@item -mprint-tune-info): New item.
28528         (-mtune): mention it in ARM Option Summary.
28530 2015-03-25  DJ Delorie  <dj@redhat.com>
28532         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28533         correct clause.
28535 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
28536             Martin Liska  <mliska@suse.cz>
28538         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28539         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28540         (sem_item::add_type): New function.
28541         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28542         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28543         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28544         (sem_function::equals_wpa): Fix typo.
28545         * ipa-icf.h (sem_item::add_type): New function.
28546         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28547         order.
28549 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
28551         PR tree-optimization/65533
28552         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28553         with swapped operands, call vect_free_slp_tree on
28554         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28555         vector.
28557 2015-03-24  Richard Biener  <rguenther@suse.de>
28559         PR middle-end/65517
28560         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28561         for fixup if necessary.
28563 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
28565         * doc/extend.texi (Function Attributes): Add @cindex entries
28566         for all attributes and regularize their format.  Delete text
28567         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
28568         information about "eightbit_data", "tiny_data", and "model"
28569         variable attributes to the Variable Attributes section.  Fix
28570         some obvious typos and copy-editing issues.
28571         (Variable Attributes, Type Attributes): Likewise add/fix
28572         @cindex entries for all attributes.
28574 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
28576         PR target/65523
28577         * tree-chkp.c (chkp_build_returned_bound): Ignore
28578         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28580 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
28582         PR target/65505
28583         * config/sh/predicates.md (simple_mem_operand,
28584         displacement_mem_operand): Add test for reg.
28585         (short_displacement_mem_operand): Test for displacement_mem_operand
28586         before invoking sh_disp_addr_displacement.
28587         * config/sh/constraints.md (Sdd, Sra): Simplify.
28588         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28589         Remove redundant displacement_mem_operand tests.
28591 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
28593         PR target/65296
28594         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28595         the same -mmcu=MCU more than once.
28597 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
28599         PR bootstrap/65522
28600         * ipa-devirt.c: Remove duplicate demangle.h include.
28602         PR target/65504
28603         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28604         on the pseudo.
28605         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28606         REG_POINTER on *destptr after adjusting it for prologue size.
28608         PR ipa/65521
28609         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28610         ultimate_alias_target ()->order ints instead of
28611         ultimate_alias_target () pointers.
28613 2015-03-23  Richard Biener  <rguenther@suse.de>
28615         PR tree-optimization/65518
28616         * tree-vect-stmts.c (vectorizable_load): Reject single-element
28617         interleaving cases we generate absymal code for.
28619 2015-03-23  Richard Biener  <rguenther@suse.de>
28621         PR tree-optimization/65494
28622         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28623         matches here.
28624         (vect_analyze_slp_instance): But do that here, always and once.
28626 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28628         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28629         adding T or multiplying by T+1 and subracting T.
28631 2015-03-22  Jeff Law  <law@redhat.com>
28633         PR rtl-optimization/64317
28634         * Makefile.in (OBJS): Add gcse-common.c
28635         * gcse.c: Include gcse-common.h
28636         (struct modify_pair_s): Move structure definition to gcse-common.h
28637         (compute_transp): Move function to gcse-common.c.
28638         (canon_list_insert): Similarly.
28639         (record_last_mem_set_info): Break out some code and put it into
28640         gcse-common.c.  Call into the new common code.
28641         (compute_local_properties): Pass additional arguments to compute_transp.
28642         * postreload-gcse.c: Include gcse-common.h and df.h
28643         (modify_mem_list_set, blocks_with_calls): New variables.
28644         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28645         (get_bb_avail_insn): Pass in the expression index too.
28646         (alloc_mem): Allocate memory for the new bitmaps and lists.
28647         (free_mem): Free memory for the new bitmaps and lists.
28648         (insert_expr_in_table): Record a bitmap index for each entry we
28649         add to the table.
28650         (record_last_mem_set_info): Call into common code in gcse-common.c.
28651         (get_bb_avail_insn): If no available insn was found in the requested
28652         BB.  If BB has a single predecessor, see if the expression is
28653         transparent in BB and available in that single predecessor.
28654         (compute_expr_transp): New wrapper for compute_transp.
28655         (eliminate_partially_redundant_load): Pass expression's bitmap_index
28656         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
28657         (gcse_after_reload_main): If there are elements in the hash table,
28658         then compute transparency for all the elements in the hash table.
28659         * gcse-common.h: New file.
28660         * gcse-common.c: New file.
28662 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
28664         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28665         as an adjective.
28666         (System Headers): Likewise.
28667         (Ifdef): Likewise.
28668         (Traditional macros): Likewise.
28669         (Invocation): Likewise.
28670         (Option Index): Likewise.
28671         * doc/cppopts.texi (-M): Likewise.
28672         (-finput-charset): Likewise.
28673         (--help): Likewise.
28674         * doc.invoke.texi (AVR Options): Likewise.
28675         (V850 Options): Likewise.
28677 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
28679         PR ipa/65475
28680         * ipa-devirt.c: Include demangle.h
28681         (odr_type_d): Add field rtti_broken.
28682         (odr_subtypes_equivalent_p): Do not require name to match.
28683         (compare_virtual_tables): Fix typo; if type already has ODR violation,
28684         bypass the tests; be ready for function referneces in vtables that are
28685         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28686         (warn_odr): Give up for nameless types.
28687         (warn_types_mismatch): Report mismatch in mangled names;
28688         report mismatch in anonymous namespaces; look into component types to
28689         give useful error; report when mismatch is dragged in from other ODR
28690         type.
28691         (odr_types_equivalent_p): Match types for being polymorphic; avoid
28692         duplicated diagnostics.
28693         (add_type_duplicate): Reorder checks so more informative ones come
28694         first; fix typo; do not output "the extra base is defined here" when
28695         we did not warn.
28696         (BINFO_N_BASE_BINFOS): Relax sanity check.
28698 2015-03-22  Martin Liska  <mliska@suse.cz>
28699             Jakub Jelinek  <jakub@redhat.com>
28701         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28702         masks that can potentially include a builtin.
28703         (ix86_add_new_builtins): Introduce fast filter for isa values
28704         that cannot trigger builtin inclusion.
28706 2015-03-22  Martin Liska  <mliska@suse.cz>
28708         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28709         (sem_item::update_hash_by_local_refs): Likewise.
28710         (sem_variable::get_hash): Empty line is fixed.
28711         (sem_item_optimizer::execute): Include adding of hash references.
28712         (sem_item_optimizer::update_hash_by_addr_refs): New function.
28713         (sem_item_optimizer::build_hash_based_classes): Use local hash.
28714         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28715         (sem_item::update_hash_by_local_refs): Likewise.
28717 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
28719         PR ipa/65502
28720         * ipa-comdats.c (enqueue_references): Walk through thunks.
28721         (ipa_comdats): Likewise.
28722         (set_comdat_group_1): New function.
28724 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
28726         PR ipa/65475
28727         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28728         non-polymorphic
28730 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
28731             Gerald Pfeifer  <gerald@pfeifer.com>
28733         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28735 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
28736             Sandra Loosemore  <sandra@codesourcery.com>
28738         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28739         function parameter declaration.
28740         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28741         Update arguments to nios2_adjust_call_address().
28742         (sibcall_internal): Rename from *sibcall.
28743         (sibcall_value_internal): Rename from *sibcall_value.
28744         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28745         (nios2_large_got_address): Add target temp reg parameter.
28746         (nios2_got_address): Adjust call to nios2_large_got_address, add
28747         force_reg around it.
28748         (nios2_load_pic_address): Add target temp reg parameter, replace call
28749         to nios2_got_address with corresponding code.
28750         (nios2_legitimize_constant_address): Update call to
28751         nios2_load_pic_address.
28752         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28753         to use temp reg for PIC loading purposes.
28754         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28755         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28756         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28758 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
28760         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28761         usage of "the @option{...}".
28762         (-Wopenmp-simd): Likewise.
28763         (-fsanitize-recover): Likewise.
28764         (-fsanitize-undefined-trap-on-error): Likewise.
28765         (-flto): Likewise.
28766         (tracer-dynamic-coverage-feedback): Likewise.
28767         (reorder-block-duplicate-feedback): Likewise.
28768         (loop-unroll-jam-size): Likewise.
28769         (-B): Likewise.
28770         (-I-): Likewise.
28771         (-mabs=legacy): Likewise.
28772         (-mupper-regs-df): Likewise.
28773         (-mupper-regs-sf): Likewise.
28774         (-mpointers-to-nested-functions): Likewise.
28776 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
28778         * doc/extend.texi (Cilk Plus Builtins): Add markup.
28780 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
28782         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
28783         additional index entries and cross-references.
28784         (-fchkp-check-incomplete-type): Likewise.
28785         (-fchkp-first-field-has-own-bounds): Likewise.
28786         (-fchkp-narrow-to-innermost-array): Likewise.
28787         (-fchkp-use-fast-string-functions): Likewise.
28788         (-fchkp-use-nochk-string-functions): Likewise.
28789         (-fchkp-use-static-const-bounds): Likewise.
28790         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28791         (-fchkp-instrument-marked-only): Likewise.
28792         (-fchkp-use-wrappers): Likewise.
28793         (-static-libmpx): Likewise.
28794         (-static-libmpxwrappers): Likewise.
28795         * doc/extend.texi (bnd_legacy): Likewise.
28796         (bnd_instrument): Likewise.
28797         (bnd_variable_size): Likewise.
28798         (Pointer Bounds Checker builtins): Likewise.
28800 2015-03-21  Tom de Vries  <tom@codesourcery.com>
28802         PR tree-optimization/65458
28803         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
28804         * cgraph.h (cgraph_node): Add parallelized_function field.
28805         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
28806         (input_overwrite_node): Read parallelized_function field.
28807         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
28808         parallelized_function on cgraph_node for child_fn.
28809         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
28810         Remove include of gt-tree-parloops.h.
28811         (parallelized_functions): Remove static variable.
28812         (parallelized_function_p): Rewrite using parallelized_function field of
28813         cgraph_node.
28814         (create_loop_fn): Remove adding to parallelized_functions.
28815         * Makefile.in (GTFILES): Remove tree-parloops.c
28817 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
28819         PR rtl-optimization/64366
28820         * lra.c (lra_update_insn_regno_info): Consider regs in
28821         CALL_INSN_FUNCTION_USAGE memory.
28823 2015-03-20  Richard Biener  <rguenther@suse.de>
28825         PR middle-end/64715
28826         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
28827         for type comparison and gcc_checking_assert.
28828         (chrec_fold_plus_poly_poly): Likewise.
28829         (chrec_fold_multiply_poly_poly): Likewise.
28830         (chrec_convert_1): Likewise.
28831         * gimplify.c (gimplify_expr): Remove premature folding of
28832         &X + CST to &MEM[&X, CST].
28834 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
28836         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
28837         already is final.
28838         (ipa_inline): Recompute inline_failed codes.
28839         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
28840         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
28841         CIF_FINAL_ERROR.
28843 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
28845         PR rtl-optimization/60851
28846         * recog.c (constrain_operands): Accept a pseudo register before reload
28847         for LRA enabled targets.
28849 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
28851         PR target/65240
28852         * config/rs6000/predicates.md (easy_fp_constant): Remove special
28853         -ffast-math handling that kept non-0 constants live in the RTL
28854         until reload.  Remove logic testing the number of instructions it
28855         took to create a constant in a GPR that was never used, due to a
28856         test for soft-float earlier.
28857         (memory_fp_constant): Delete, no longer used.
28859         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
28860         alternatives for loading non-0 constants into GPRs for hard
28861         floating point that is no longer needed due to changes in
28862         easy_fp_constant.  Add support for loading 0.0 into GPRs.
28863         (mov<mode>_hardfloat32): Likewise.
28864         (mov<mode>_hardfloat64): Likewise.
28865         (mov<mode>_64bit_dm): Likewise.
28866         (movtd_64bit_nodm): Likewise.
28867         (pre-reload move FP constant define_split): Delete define_split,
28868         since it is no longer used.
28869         (extenddftf2_internal): Remove GHF constraints that are not valid
28870         for extenddftf2.
28872 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
28874         PR rtl-optimization/63491
28875         * lra-constraints.c (check_and_process_move): Use src instead of
28876         sreg.  Remove some dead code.
28878 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
28880         PR ipa/65380
28881         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
28882         (sem_variable::merge): Likewise.
28884 2015-03-19  Martin Liska  <mliska@suse.cz>
28886         PR ipa/65465
28887         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
28888         all fields of cgraph_thunk_info.
28890 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
28892         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
28893         clone instrumented thunks.
28895 2015-03-19  Richard Biener  <rguenther@suse.de>
28897         Revert
28898         2015-03-10  Richard Biener  <rguenther@suse.de>
28900         PR middle-end/63155
28901         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
28902         * tree-ssa-coalesce.c: Include timevar.h.
28903         (attempt_coalesce): Handle graph being NULL.
28904         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
28905         Split out abnormal coalescing to ...
28906         (perform_abnormal_coalescing): ... this function.
28907         (coalesce_ssa_name): Perform abnormal coalescing without computing
28908         live/conflict.
28909         (verify_ssa_coalescing_worker): New function.
28910         (verify_ssa_coalescing): Likewise.
28912 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28913             Jakub Jelinek  <jakub@redhat.com>
28915         PR sanitizer/65400
28916         * tsan.c (instrument_gimple): Clear tail call flag on
28917         calls.
28919 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
28921         PR sanitizer/65400
28922         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
28923         call in the return bb.
28924         (find_split_points): Add RETURN_BB argument, don't call
28925         find_return_bb.
28926         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
28927         if true append TSAN_FUNC_EXIT internal call after the call to
28928         the split off function.
28929         (execute_split_functions): Call find_return_bb here.
28930         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
28931         Adjust find_split_points and split_function calls.
28933 2015-03-18  DJ Delorie  <dj@redhat.com>
28935         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
28936         (iorqi3_virt): Likewise.
28938 2015-03-18  Tom de Vries  <tom@codesourcery.com>
28940         * tree-parloops.c (parallelize_loops): Make static.
28941         * tree-parloops.h (parallelize_loops): Remove extern declaration.
28943 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
28945         PR middle-end/64491
28946         Revert:
28947         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
28949         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
28950         condition would be removed due to undefined behaviour.
28952 2015-03-18  Martin Liska  <mliska@suse.cz>
28954         PR ipa/65432
28955         * cgraph.c (cgraph_node::get_create): Remove unnecessary
28956         xstrdup_for_dump wrapper.
28957         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
28958         sem_item::name.
28959         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
28960         with xstrdup_for_dump.
28961         (sem_variable::equals): Likewise.
28962         (sem_item_optimizer::read_section): Use symtab_node::name instead of
28963         sem_item::name.
28964         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
28965         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
28966         symtab_node::asm_name with xstrdup_for_dump.
28967         (congruence_class::dump): Use symtab_node::name instead of
28968         sem_item::name.
28969         * ipa-icf.h (symtab_node::name): Remove.
28970         (symtab_node::asm_name): Likewise.
28972 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
28974         PR tree-optimization/65450
28975         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
28976         function.
28977         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
28978         it instead of duplicate_ssa_name_ptr_info.
28980         PR target/65222
28981         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
28983 2015-03-18  Richard Biener  <rguenther@suse.de>
28985         * tree-data-ref.h (struct access_matrix): Remove.
28986         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
28987         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
28988         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
28989         (am_vector_index_for_loop): Likewise.
28990         (struct data_reference): Remove access_matrix member.
28991         (DR_ACCESS_MATRIX): Remove.
28992         (lambda_vector_new): Add comment.
28993         (lambda_matrix_new): Use XOBNEWVEC.
28995 2015-03-18  Richard Biener  <rguenther@suse.de>
28997         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
28998         (pass_ch::execute): Cleanup the CFG only if we did sth.
28999         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
29001 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29003         * expmed.c (synth_mult): Use std::swap instead of manually
29004         swapping algorithms.
29006 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
29008         PR target/65078
29009         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
29011 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
29013         PR target/65296
29014         * config/avr/avr.opt (-nodevicelib): New option.
29015         * doc/invoke.texi (AVR Options): Document it.
29016         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
29017         libgcc.a, libc.a, libm.a.
29018         * config/avr/specs.h: Same.
29019         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
29020         which don't (directly) depend on the device.  Print more help.
29021         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
29022         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
29023         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
29024         case of an error.
29025         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
29026         for specs file name.
29027         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
29028         * config/avr/avr-mcus.def: Adjust initializers and comments.
29030 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
29032         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
29033         DECL_ONE_ONLY to check if decl is one only.
29034         * ipa-split.c (consider_split): Limit splitt of one only functions.
29036 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
29038         PR tree-optimization/65427
29039         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
29040         functions.
29041         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
29043 2015-03-16  Marek Polacek  <polacek@redhat.com>
29045         * cgraph.h (add_new_static_var): Remove declaration.
29046         * varpool.c (add_new_static_var): Remove function.
29048 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
29050         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
29051         instead of vec<tree> * with vec_alloc and release for args.
29052         Adjust all users.
29054         PR middle-end/65431
29055         * omp-low.c (delete_omp_context): Only splay_tree_delete
29056         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
29057         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
29059 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
29061         PR sanitizer/64820
29062         * cfgexpand.c (align_base): New function.
29063         (alloc_stack_frame_space): Call it.
29064         (expand_stack_vars): Align prev_frame to be sure
29065         data->asan_vec elements aligned properly.
29067 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
29069         PR middle-end/65409
29070         * expr.c (store_field): Do not do a direct block copy if the source is
29071         a PARALLEL with BLKmode.
29073 2015-03-16  Tom de Vries  <tom@codesourcery.com>
29075         PR middle-end/65414
29076         Revert:
29077         2015-03-12  Tom de Vries  <tom@codesourcery.com>
29079         PR rtl-optimization/64895
29080         * lra-lives.c (check_pseudos_live_through_calls): Use
29081         actual_call_used_reg_set instead of call_used_reg_set, if available.
29083 2015-03-16  Alan Modra  <amodra@gmail.com>
29085         PR target/63150
29086         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
29087         Modify Z->r bswapdi splitter to use dest in place of scratch.
29088         In r->Z and Z->r bswapdi splitter rename word_high, word_low
29089         to word1, word2 and rearrange logic to suit.
29090         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
29091         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
29092         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
29093         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
29094         early clobber.
29096 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
29098         PR tree-optimization/65369
29099         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
29100         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
29101         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
29103         PR tree-optimization/65418
29104         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
29105         are casts in the first PLUS_EXPR operand, ensure tbias and
29106         *totallowp are in the inner type.
29108         PR rtl-optimization/65401
29109         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
29110         argument.  If true, adjust_address_nv of x with big-endian
29111         correction for the mode widening to GET_MODE (y).
29112         (make_field_assignment): Don't do MEM mode widening here.
29113         Use MEM_P instead of GET_CODE == MEM.
29115 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
29117         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
29118         the external decls.
29120 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29122         PR target/64600
29123         * config/arm/arm.c (arm_gen_constant, AND case): Use
29124         ARM_SIGN_EXTEND when constructing AND mask.
29126 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29128         * graph.c (print_graph_cfg): Make function names visible and append
29129         parenthesis to it.  Also make groups of basic blocks belonging to the
29130         same function visible.
29132 2015-03-12  Richard Biener  <rguenther@suse.de>
29134         PR middle-end/44563
29135         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
29136         to avoid quadratic behavior with inline expansion splitting blocks.
29137         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
29138         with the successor if the predecessor will be merged with it.
29139         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
29140         entry block with its successor.
29142 2015-03-13  Richard Biener  <rguenther@suse.de>
29144         PR middle-end/44563
29145         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
29146         (cleanup_tree_cfg_1): Do not call it.
29147         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
29148         (fixup_noreturn_call): Mark the stmt as control altering.
29149         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
29150         here.
29151         (pass_data_fixup_cfg): Produce a dump file.
29152         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
29153         (need_noreturn_fixup): New global.
29154         (pass_dominator::execute): Fixup queued noreturn calls.
29155         (optimize_stmt): Queue calls that became noreturn for fixup.
29156         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
29157         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
29158         (el_to_fixup): New global.
29159         (eliminate_dom_walker::before_dom_childre): Queue calls that
29160         became noreturn for fixup.
29161         (eliminate): Fixup queued noreturn calls.
29162         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
29163         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
29164         (substitute_and_fold_dom_walker::before_dom_children): Queue
29165         alls that became noreturn for fixup.
29166         (substitute_and_fold): Fixup queued noreturn calls.
29168 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
29170         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
29171         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
29172         are building; for methods check ODR type of class they belong to if
29173         they may lead to a polymorphic call.
29174         (sem_function::compare_polymorphic_p): Be bit smarter about testing
29175         when function may lead to a polymorphic call.
29176         (sem_function::compare_type_list): Remove.
29177         (sem_variable::equals): Update use of compatible_types_p.
29178         (sem_variable::parse_tree_refs): Remove.
29179         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
29180         cdtor.
29181         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
29182         matching here.
29183         (func_checker::compatible_polymorphic_types_p): Break out from ...
29184         (unc_checker::compatible_types_p): ... here.
29185         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
29186         Declare.
29187         (unc_checker::compatible_types_p): Update.
29188         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
29189         Remove.
29191 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29193         PR rtl-optimization/65235
29194         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
29195         When first element of vec_concat is const_int, calculate its size
29196         using second element.
29198 2015-03-12  Richard Biener  <rguenther@suse.de>
29200         PR middle-end/65270
29201         * fold-const.c (operand_equal_p): Fix ordering of resetting
29202         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
29204 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29206         * config/s390/s390.c (s390_reorg): Move code to output nops after label
29207         to s390_reorg ().
29208         (s390_asm_output_function_label): Likewise.
29209         * config/s390/s390.c (s390_asm_output_function_label):
29210         Fix function label alignment with -mhtopatch.
29211         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
29212         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
29213         ("nop_2_byte"): New define_insn.
29214         ("nop_4_byte"): Likewise.
29215         ("nop_6_byte"): Likewise.
29216         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
29217         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
29219 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
29221         PR target/65103
29222         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
29223         register.
29225 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
29227         PR target/65044
29228         * toplev.c (process_options): Restrict Pointer Bounds Checker
29229         usage with Address Sanitizer.
29231 2015-03-12  Richard Biener  <rguenther@suse.de>
29233         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
29234         to split on.
29235         * omp-low.c (expand_omp_taskreg): Split block before removing
29236         the stmt.
29237         (expand_omp_target): Likewise.
29238         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
29239         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
29240         stmt to split_block.
29242 2015-03-12  Tom de Vries  <tom@codesourcery.com>
29244         PR rtl-optimization/64895
29245         * lra-lives.c (check_pseudos_live_through_calls): Use
29246         actual_call_used_reg_set instead of call_used_reg_set, if available.
29248 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
29250         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
29251         (cgraph_node::remove): Likewise.
29252         (cgraph_node::get_untransformed_body): Likewise.
29253         * varpool.c (varpool_node::remove): Likewise.
29254         (varpool_node::get_constructor): Add sanity check.
29256 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
29258         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
29259         old GCC versions.
29260         (-fabi-compat-version): Likewise.
29261         (-ffriend-injection): Likewise.
29262         (-Wdeclaration-after-statement): Likewise.
29263         (-fomit-frame-pointer): Likewise.
29264         (-ftree-coalesce-inlined-vars): Likewise.
29265         (-fvisibility=): Likewise.
29266         * doc/extend.texi (Typeof): Likewise.
29267         (Zero Length): Likewise.
29268         (Escaped Newlines): Likewise.
29269         (Compound Literals): Likewise.
29270         (Function Attributes): Likewise.
29271         (Label Attributes): Likewise.
29272         (Type Attributes): Likewise.
29273         (Function Names): Likewise.
29274         (Other Builtins): Likewise.
29275         (Function Specific Option Pragmas): Likewise.
29276         (C++ Interface): Likewise.
29278 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
29280         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
29282 2015-03-11  Marek Polacek  <polacek@redhat.com>
29284         PR tree-optimization/65388
29285         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
29287 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
29289         PR target/65296
29290         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
29291         * configure: Regenerate.
29292         * config.in: Regenerate.
29293         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
29294         [-mn-flash]: Document it.
29295         [__AVR_ARCH__]: Document avrtiny.
29297         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
29298         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
29299         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
29301 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29303         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
29305 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
29307         PR target/65242
29308         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
29309         allow reloads of PLUS in floating point/VSX registers.
29311 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
29313         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
29314         crypto_sha256_fast.
29315         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
29317 2015-03-11  Richard Biener  <rguenther@suse.de>
29319         PR tree-optimization/65310
29320         * tree-sra.c (build_ref_for_offset): Also preserve larger
29321         alignment.
29323 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
29325         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
29327 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
29329         PR target/65368
29330         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
29331         new define_expand.
29332         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
29334 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
29336         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
29337         (sem_function::equals_wpa): ... here.
29339 2015-03-10  Marek Polacek  <polacek@redhat.com>
29340             Jakub Jelinek  <jakub@redhat.com>
29342         PR sanitizer/65367
29343         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
29344         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
29345         separately.
29347 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
29349         PR target/65286
29350         * config/rs6000/t-linux: For powerpc64* target set
29351         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
29353 2015-03-10  Richard Biener  <rguenther@suse.de>
29355         PR middle-end/44563
29356         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
29357         for redirect_all_calls.
29359 2015-03-10  Marek Polacek  <polacek@redhat.com>
29361         * gdbinit.in (pcfun): Define and document.
29363 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
29365         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
29366         of libgomp-plugin.h.
29367         (find_target_compiler): Support a case when the path to gcc is
29368         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
29369         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
29370         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
29371         libgomp-plugin.h.
29372         (main): Use GCC_INSTALL_NAME as target_driver_name.
29373         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
29374         define.
29375         (mkoffload.o): Remove obsolete include path and defines.
29376         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
29378 2015-03-10  Richard Biener  <rguenther@suse.de>
29380         PR middle-end/63155
29381         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29382         * tree-ssa-coalesce.c: Include timevar.h.
29383         (attempt_coalesce): Handle graph being NULL.
29384         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29385         Split out abnormal coalescing to ...
29386         (perform_abnormal_coalescing): ... this function.
29387         (coalesce_ssa_name): Perform abnormal coalescing without computing
29388         live/conflict.
29389         (verify_ssa_coalescing_worker): New function.
29390         (verify_ssa_coalescing): Likewise.
29392 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
29394         PR target/65296
29395         * config.gcc (extra_options) [avr]: Remove.
29396         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
29397         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
29398         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
29400         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
29401         (-mmcu=): Add Var and MissingArgError properties.
29402         (-march=): Remove.
29403         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
29404         * config/avr/t-multilib: Regenerate.
29405         * config/avr/specs.h: New file.
29406         * config/avr/driver-avr.c: New file.
29407         * config/avr/genopt.sh: Remove file.
29408         * config/avr/avr-tables.opt: Remove file.
29409         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
29410         * config/avr/avr-c.c: Same.
29411         * avr-arch.h: Same.
29412         (avr_current_device): Remove proto.
29413         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
29414         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
29415         (EXTRA_SPEC_FUNCTIONS): Define.
29416         (avr_devicespecs_file): New specs function proto.
29417         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
29418         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
29419         (avr_current_device): Remove definition and usage.
29420         (avr_set_core_architecture): New static function.
29421         (avr_option_override): Use it.
29422         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
29423         (mcu_name): New static array.
29424         (comparator, avr_archs_str, avr_mcus_str): New static functions.
29425         (avr_inform_devices, avr_inform_core_architectures): New functions.
29426         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
29427         (avrlibc.h) [WITH_AVRLIBC]: Include.
29428         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
29429         (print_mcu): Rewrite from scratch.
29430         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
29431         Forward to avr-specific specs defined in device-specs file.
29432         * config/avr/t-avr (driver-avr.o): New rule.
29433         (avr-devices.o): Depend on avr-arch.h.
29434         (avr-mcus): No more depend on avr-tables.opt.
29435         (avr-tables.opt): Remove rule.
29436         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
29438 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
29440         * c-family/c.opt (fchkp-use-wrappers): New.
29441         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
29442         (chkp_wrap_function): New.
29443         (chkp_build_instrumented_fndecl): Support wrapped
29444         functions.
29445         * doc/invoke.texi (-fcheck-pointer-bounds): New.
29446         (-fchkp-check-incomplete-type): New.
29447         (-fchkp-first-field-has-own-bounds): New.
29448         (-fchkp-narrow-bounds): New.
29449         (-fchkp-narrow-to-innermost-array): New.
29450         (-fchkp-optimize): New.
29451         (-fchkp-use-fast-string-functions): New.
29452         (-fchkp-use-nochk-string-functions): New.
29453         (-fchkp-use-static-bounds): New.
29454         (-fchkp-use-static-const-bounds): New.
29455         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
29456         (-fchkp-check-read): New.
29457         (-fchkp-check-write): New.
29458         (-fchkp-store-bounds): New.
29459         (-fchkp-instrument-calls): New.
29460         (-fchkp-instrument-marked-only): New.
29461         (-fchkp-use-wrappers): New.
29462         (-static-libmpx): New.
29463         (-static-libmpxwrappers): New.
29465 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
29467         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
29468         (CHKP_SPEC): Add wrappers library.
29469         * c-family/c.opt (static-libmpxwrappers): New.
29471 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
29473         * config/i386/linux-common.h (LIBMPX_LIBS): New.
29474         (LIBMPX_SPEC): New.
29475         (CHKP_SPEC): New.
29476         * gcc.c (CHKP_SPEC): New.
29477         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
29478         * c-family/c.opt (static-libmpx): New.
29480 2015-03-10  Richard Biener  <rguenther@suse.de>
29482         PR middle-end/44563
29483         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
29484         for compare_type.
29485         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
29486         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
29487         (cgraph_add_edge_to_call_site_hash): Likewise.
29488         (cgraph_node::get_edge): Likewise.
29489         (cgraph_edge::set_call_stmt): Likewise.
29490         (cgraph_edge::remove_caller): Likewise.
29492 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29494         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
29495         (callee_saved_gpr_regs_size): ... this.
29496         (callee_saved_regs_first_regno): Rename to ...
29497         (callee_saved_first_gpr_regno): ... this.
29498         (callee_saved_regs_last_regno) Rename to ...
29499         (callee_saved_last_gpr_regno): ... this.
29500         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
29501         variables.
29502         (nds32_initial_elimination_offset): Likewise.
29503         (nds32_expand_prologue): Likewise.
29504         (nds32_expand_epilogue): Likewise.
29505         (nds32_expand_prologue_v3push): Likewise.
29506         (nds32_expand_epilogue_v3pop): Likewise.
29507         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
29508         Adjust renamed variables.
29509         (nds32_output_stack_pop): Likewise.
29511 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29513         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
29514         code in comment.
29516 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
29518         PR rtl-optimization/65321
29519         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
29520         than shift mode.
29521         * var-tracking.c (use_narrower_mode): Likewise.
29523 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
29525         PR tree-optimization/65355
29526         * varasm.c (notice_global_symbol): Do not produce RTL.
29527         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29528         anchor.
29529         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29530         check for section anchors.
29532 2015-03-10  Alan Modra  <amodra@gmail.com>
29534         PR target/65286
29535         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29536         to be single-arch by default.  Set cpu_is_64bit for powerpc64
29537         given --with-cpu=native.
29538         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29539         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29540         and powerpc64le.
29541         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29542         rs6000_isa_flags rather than TARGET_64BIT.
29544 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
29545             Kaz Kojima  <kkojima@gcc.gnu.org>
29547         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29549 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
29551         PR lto/65361
29552         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29553         on a TREE_BINFO, instead use BINFO_TYPE.
29555 2015-03-09  Richard Biener  <rguenther@suse.de>
29557         PR middle-end/65270
29558         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29559         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29560         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
29561         of that.  When comparing dereferences compare alignment.
29562         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29564 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
29566         * ipa-inline-analysis.c (check_callers): Check
29567         node->can_remove_if_no_direct_calls_and_refs_p.
29568         (growth_likely_positive): Reorganize to call
29569         can_remove_if_no_direct_calls_p later.
29570         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29571         will_be_removed_from_program_if_no_direct_calls_p): Add
29572         will_inline parameter.
29573         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29574         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29575         Handle inliner case correctly.
29577 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29579         PR tree-optimization/63743
29580         * cfgexpand.c (reorder_operands): Also reorder if only second operand
29581         had its definition forwarded by TER.
29583 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
29585         PR lto/65316
29586         * ipa-utils.h (types_odr_comparable): Add strict argument.
29587         * ipa-devirt.c: Fix whitespace;
29588         (odr_hasher): Remove.
29589         (odr_name_hasher, odr_vtable_hasher): New hashers.
29590         (can_be_name_hashed_p): New predicate.
29591         (hash_type_name): remove.
29592         (hash_odr_name): New.
29593         (odr_name_hasher::hash): new.
29594         (can_be_vtable_hashed_p): New.
29595         (hash_odr_vtable): New.
29596         (odr_vtable_hasher::hash): New.
29597         (types_same_for_odr): Add strict parameter.
29598         (types_odr_comparable): Likewise.
29599         (odr_name_hasher::equal): New.
29600         (odr_vtable_hasher::equal): New.
29601         (odr_name_hasher::remove): New.
29602         (odr_hash_type): Change to hash_table<odr_name_hasher>.
29603         (odr_vtable_hash_type): New.
29604         (odr_vtable_hash): New.
29605         (odr_subtypes_equivalent_p): Do strict comparsion.
29606         (add_type_duplicate): Merge type names; cleanup; avoid type
29607         duplicates.
29608         (register_odr_type): Initialize vtable hash.
29609         (build_type_inheritance_graph): Likewise
29610         (get_odr_type): Reorg to use two hashes.
29611         (dump_possible_polymorphic_call_targets): Move sanity check after debug
29612         output.
29613         (ipa_devirt): Dump type_inheritance_graph.
29614         (types_same_for_odr): Add strict mode.
29616 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
29618         PR ipa/65334
29619         * cgraph.h (symtab_node): Add definition_alignment,
29620         can_increase_alignment_p and increase_alignment.
29621         * symtab.c (symtab_node::can_increase_alignment_p,
29622         increase_alignment_1, symtab_node::increase_alignment,
29623         symtab_node::definition_alignment): New.
29624         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29625         can_increase_alignment_p.
29626         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29627         * tree-vect-stmts.c (ensure_base_align): Likewise.
29628         * varasm.c (function_section_1): Use definition_alignment.
29629         (assemble_start_function): Likewise.
29630         (emit_local): likewise.
29631         (build_constant_desc): Likewsie.
29632         (output_constant_def_contents): Likewise.
29633         (place_block_symbol): Likewise.
29634         (output_object_block): Likewise.
29636 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
29638         PR ipa/65316
29639         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29640         when outputting debug.
29642 2015-03-07  Marek Polacek  <polacek@redhat.com>
29643             Martin Uecker  <uecker@eecs.berkeley.edu>
29645         PR sanitizer/65280
29646         * doc/invoke.texi: Update description of -fsanitize=bounds.
29648 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
29650         * tree-ssa-phiopt.c (neg_replacement): Remove.
29651         (tree_ssa_phiopt_worker): Remove negate optimization.
29653 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
29655         PR ipa/65302
29656         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29658 2015-03-06  Richard Biener  <rguenther@suse.de>
29660         PR middle-end/64928
29661         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29662         and liveout_obstack members.
29663         (calculate_live_on_exit): Remove.
29664         (calculate_live_ranges): Change declaration.
29665         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29666         (new_tree_live_info): Adjust.
29667         (calculate_live_ranges): Delete livein when not wanted.
29668         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29669         Deal with partly deleted live info.
29670         (loe_visit_block): Remove temporary bitmap by using
29671         bitmap_ior_and_compl_into.
29672         (live_worklist): Adjust accordingly.
29673         (calculate_live_on_exit): Make static.
29674         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29675         we do not need livein.
29677 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
29679         * real.c (real_from_string): Fix typo in assertion.
29681 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
29683         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29684         the patch.
29686 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
29688         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29690 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
29692         PR target/64342
29693         * lra-assigns.c (find_hard_regno_for): Rename to
29694         find_hard_regno_for_1.  Add a new parameter.
29695         (find_hard_regno_for): New function using find_hard_regno_for_1.
29697 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29699         PR rtl-optimization/65067
29700         * expmed.c (store_bit_field, extract_bit_field): Reworked the
29701         strict volatile bitfield handling.
29703 2015-03-05  Martin Liska  <mliska@suse.cz>
29705         PR ipa/65318
29706         * ipa-icf.c (sem_variable::equals): Compare variables types.
29708 2015-03-05  Richard Henderson  <rth@redhat.com>
29710         PR target/65121
29711         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29712         correctly check weak symbol binding.
29714 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
29716         PR middle-end/65315
29717         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29718         needed alignment.
29720 2015-03-05  Martin Liska  <mliska@suse.cz>
29722         * ipa-inline.c (inline_small_functions): Set default value to
29723         prevent warning during bootstrap.
29724         * tree.h: Add pragma guard that ignores false positives during
29725         bootstrap.
29727 2015-03-05  Richard Biener  <rguenther@suse.de>
29729         PR tree-optimization/65310
29730         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29731         Properly preserve alignment of the base of the access.
29733 2015-03-05  Richard Biener  <rguenther@suse.de>
29735         PR ipa/65270
29736         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29737         Compare dependence info.
29739 2015-03-05  Richard Biener  <rguenther@suse.de>
29741         PR middle-end/65233
29742         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29743         tree-into-ssa.h.
29744         (walk_ssa_copies): Revert last chage.  Instead do not walk
29745         SSA names registered for SSA update.
29747 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
29749         PR ipa/65270
29750         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29751         vtable references for their containing type.
29752         (sem_function::equals_wpa): Compare TYPE_RESTRICT
29753         and type attributes.
29755 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
29757         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29758         before negating it.
29759         * stor-layout.c (finalize_record_size): Revert latest change.
29761 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
29763         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29765 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
29767         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29768         for correct comdat handling.
29769         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29770         Likewise.
29771         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
29772         (used_from_object_file_p_worker): Remove.
29773         (cgraph_node::only_called_directly_or_alised): Add
29774         used_from_object_file_p.
29775         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
29776         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
29777         can_remove_if_no_direct_calls_and_refs_p.
29779 2015-03-04  Nick Clifton  <nickc@redhat.com>
29781         * config/rl78/rl78.h (enum reg_class): Remove real registers from
29782         General register class.
29783         * config/rl78/rl78-real.md: Replace general register constraints
29784         with real+virtual register constraints.
29786 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29788         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
29789         from checking for -mhtm option.
29791 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
29793         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
29794         (struct ipa_sra_check_caller_data): Add has_thunk field.
29795         (ipa_sra_check_caller): Check for thunk.
29796         (ipa_sra_preliminary_function_checks): Give up on function with
29797         thunks.
29798         (ipa_early_sra): Use call_for_symbol_and_aliases.
29800 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
29802         PR target/65249
29803         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
29804         called for __stack_chk_guard symbol.
29806 2015-03-03  DJ Delorie  <dj@redhat.com>
29808         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
29809         inc/dec.
29810         (*addhi3_real): Likewise.
29811         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
29812         pattern to match incrementing memory.
29813         * config/rl78/predicates.md (rl78_1_2_operand): New.
29814         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
29815         it's the same and only mem.
29816         (rl78_alloc_physical_registers_op2): If there's effectively only
29817         one MEM, transcode it into HL.
29818         (rl78_far_p): Reject addresses that aren't legitimate.
29820 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
29822         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
29823         negating it.
29825         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
29827 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
29829         Implement call0 ABI for xtensa
29830         * config/xtensa/constraints.md ("a" constraint): Include stack
29831         pointer in case of call0 ABI.
29832         ("q" constraint): Make empty in case of call0 ABI.
29833         ("D" constraint): Include stack pointer in case of call0 ABI.
29834         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
29835         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
29836         prototypes.
29837         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
29838         variable.
29839         (xtensa_regno_to_class): Make it a local variable in the
29840         function xtensa_regno_to_class.
29841         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
29842         macro, function prototype and implementation.
29843         (reg_nonleaf_alloc_order): Make it a local variable in the
29844         function order_regs_for_local_alloc.
29845         (xtensa_conditional_register_usage): New function.
29846         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
29847         (xtensa_valid_move): Allow direct moves to stack pointer
29848         register in call0 ABI.
29849         (xtensa_setup_frame_addresses): Only spill register windows in
29850         windowed ABI.
29851         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
29852         call0 ABI respectively.
29853         (xtensa_function_arg_1): Only mark a7 register for copying in
29854         windowed ABI.
29855         (xtensa_call_save_reg): New function.
29856         (compute_frame_size): Add space for callee saved register
29857         storage to the frame size in call0 ABI.
29858         (xtensa_expand_prologue): Generate code to set up stack frame
29859         and save callee-saved registers in call0 ABI.
29860         (xtensa_expand_epilogue): New function.
29861         (xtensa_set_return_address): New function.
29862         (xtensa_return_addr): Calculate return address in call0 ABI.
29863         (xtensa_builtin_saveregs): Only mark a7 register for copying and
29864         emit copying code in windowed ABI.
29865         (order_regs_for_local_alloc): Add preferred register allocation
29866         order for non-leaf function in call0 ABI.
29867         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
29868         (xtensa_asm_trampoline_template): Add trampoline generation for
29869         call0 ABI.
29870         (xtensa_trampoline_init): Add trampoline initialization for
29871         call0 ABI.
29872         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
29873         functions.
29874         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
29875         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
29876         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
29877         ABI call-used registers.
29878         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
29879         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
29880         call0 ABI.
29881         (REG_CLASS_CONTENTS): Include all registers into the preferred
29882         reload registers set, adjust the set in the
29883         xtensa_conditional_register_usage.
29884         (xtensa_regno_to_class): Drop variable declaration.
29885         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
29886         function.
29887         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
29888         respectively.
29889         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
29890         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
29891         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
29892         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
29893         location in call0 ABI.
29894         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
29895         stack adjustment size when handling exception.
29896         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
29897         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
29898         definitions.
29899         ("return" pattern): Generate ret.n/ret in call0 ABI.
29900         ("epilogue" pattern): Expand epilogue.
29901         ("nonlocal_goto" pattern): Use default in call0 ABI.
29902         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
29903         emit eh_set_a0_* depending on ABI.
29904         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
29905         ("eh_set_a0_call0", "blockage"): New patterns.
29907 2015-03-03  Martin Liska  <mliska@suse.cz>
29909         PR ipa/65287
29910         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
29912 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
29914         PR 65138/target
29915         * config/rs6000/rs6000-tables.opt: Regenerate table.
29917 2015-03-03  Renlin Li  <renlin.li@arm.com>
29919         * doc/md.texi (@item ^): Change ? into ^.
29921 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
29923         * doc/tm.texi: Regenerated.
29925 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
29927         * builtins.c (expand_builtin_return_addr): Add
29928         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
29929         surrounding #ifdef.
29930         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
29931         definition to 1.
29932         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
29933         Likewise.
29934         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
29935         undefined.
29936         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
29937         paragraph.
29939 2015-03-03  Martin Jambor  <mjambor@suse.cz>
29940             Eric Botcazou  <ebotcazou@adacore.com>
29942         * tree-sra.c (ipa_sra_check_caller_data): New type.
29943         (has_caller_p): Removed.
29944         (ipa_sra_check_caller): New function.
29945         (ipa_sra_preliminary_function_checks): Use it.
29947 2015-03-03  Martin Liska  <mliska@suse.cz>
29949         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
29950         instead of if branch.
29952 2015-03-03  Martin Liska  <mliska@suse.cz>
29954         PR ipa/65282
29955         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
29957 2015-03-23  Jeff Law  <law@redhat.com>
29959         PR tree-optimization/65241
29960         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
29961         hash table if INSERT is true.
29963 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
29965         PR target/65296
29966         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
29968 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
29970         PR target/64331
29971         * config/avr/avr.c (context.h, tree-pass.h): Include them.
29972         (avr_pass_data_recompute_notes): New static variable.
29973         (avr_pass_recompute_notes): New class.
29974         (avr_register_passes): New static function.
29975         (avr_option_override): Call it.
29977 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
29979         Fix various problems with specs file generation.
29981         PR target/65296
29982         * config.gcc (extra_gcc_objs) [avr]: Remove.
29983         * config/avr/driver-avr.c: Remove file.
29984         * config/avr/t-avr (driver-avr.o): Remove rule.
29985         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
29986         INCLUDES to build.  Depend on TM_H.
29987         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
29988         build warnings.  Fix non-matching types and non-existing %-codes.
29989         (tm.h): Include.
29990         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
29991         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
29992         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
29993         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
29994         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
29995         (LIBGCC_SPEC): Remove definitions.
29997 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
29999         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
30000         to create a register in testing mode.
30002 2015-03-03  Martin Liska  <mliska@suse.cz>
30003             Jan Hubicka  <hubicka@ucw.cz>
30005         PR ipa/65263
30006         * cgraph.c (cgraph_node::has_thunk_p): New function.
30007         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
30008         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
30009         (sem_function::merge): Assert is changed.
30011 2015-03-03  Martin Liska  <mliska@suse.cz>
30012             Martin Jambor  <mjambor@suse.cz>
30014         PR ipa/65087
30015         * ipa-icf.c (sem_item_optimizer::execute): Change function
30016         return value to boolean.
30017         (sem_item_optimizer::merge_classes): Likewise.
30018         (ipa_icf_driver): Return TODO_remove_functions in case there's
30019         a merge operation processed.
30020         * ipa-icf.h: Change function return value to boolean.
30022 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30024         PR 65138/target
30025         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
30026         processor type for 64-bit little endian PowerPC.
30028         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30029         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
30030         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
30031         printing built-in mask so it does not pass NULL pointers.
30033         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
30034         -mcpu=powerpc64le.
30036 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
30038         PR target/58158
30039         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
30040         !ISA_HAS_FP_CONDMOVE.
30042 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
30044         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
30045         reload_completed.
30047 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
30049         * doc/invoke.texi (Options for Code Generation Conventions):
30050         Fix URL of DSO paper.
30052 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
30054         PR ipa/65130
30055         * ipa-inline.c (check_callers): Looks for recursion.
30056         (inline_to_all_callers): Give up on uninlinable or recursive edges.
30057         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
30058         summary of inline clones.
30059         (do_estimate_growth_1): Fix recursion check.
30061 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
30063         PR ipa/64988
30064         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
30065         comdat groups.
30067 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
30068             Aldy Hernandez  <aldyh@redhat.com>
30070         PR lto/65276
30071         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
30072         when checking TYPE_BINFO.
30074 2015-03-02  Richard Biener  <rguenther@suse.de>
30076         PR ipa/65270
30077         * ipa-icf-gimple.c: Include builtins.h.
30078         (func_checker::compare_memory_operand): Compare base alignment.
30080 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30082         PR target/65184
30083         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
30084         are never passed by reference.
30086 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
30088         PR target/65183
30089         * tree-chkp.c (chkp_check_lower): Don't check against
30090         zero bounds for already instrumented functions.
30091         (chkp_check_upper): Likewise.
30092         (chkp_fini): Clean pass local data to avoid wrong reusage.
30094 2015-02-28  Martin Liska  <mliska@suse.cz>
30095             Jan Hubicka  <hubicka@ucw.cz>
30097         * ipa-icf.c (sem_variable::equals): Improve debug output;
30098         get variable constructor.
30099         (sem_variable::parse): Do not filter out too early; give up on
30100         volatile and register vars.
30101         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
30102         variables.
30103         * ipa-icf.h (sem_variable::init): Do not set ctor.
30104         (sem_variable::ctor): Remove.
30106 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
30108         PR middle-end/65233
30109         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
30111 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30113         * ipa-icf.c: Include stor-layout.h
30114         (sem_function::compare_cgraph_references): Rename to ...
30115         (sem_item::compare_cgraph_references): ... this one.
30116         (sem_variable::equals_wpa): New function
30117         (sem_variable::equals): Do not check stuff already verified by
30118         equals_wpa.
30119         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
30120         * ipa-icf.h (sem_item): Add compare_cgraph_references.
30121         (sem_function): Remove compare_cgraph_references.
30122         (sem_variable): Turns equals_wpa into non-inline.
30124 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30126         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
30127         (sem_item::add_expr): New function.
30128         (sem_function::hash_stmt): Handle operands of most statements.
30129         (sem_variable::get_hash): Hash the actual constructor.
30130         * ipa-icf.h (sem_item): Add add_expr.
30131         (sem_function): Update prototype of hash_stmt
30133 2015-02-28  Martin Liska  <mliska@suse.cz>
30134             Jan Hubicka  <hubicka@ucw.cz>
30136         PR ipa/65245
30137         * ipa-icf-gimple.c (func_checker::compare_function_decl):
30138         Remove.
30139         (func_checker::compare_variable_decl): Skip symtab vars.
30140         (func_checker::compare_cst_or_decl): Update.
30141         * ipa-icf.c (sem_function::parse): Do not consider aliases.
30142         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
30143         use correct symtab predicates.
30144         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
30145         (sem_variable::parse):  Update comment.
30146         (sem_item_optimizer::build_graph): Consider ultimate aliases
30147         for references.
30149 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30151         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
30152         of OBJ_TYPE_REF.
30154 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30156         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
30157         (sem_variable::merge) Likewise.
30159 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30161         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
30162         target; also match flag_ipa_devirt.
30164 2015-03-01  Martin Liska  <mliska@suse.cz>
30165             Jan Hubicka  <hubicka@ucw.cz>
30167         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
30168         Validate variable alignment.
30169         * ipa-icf.c (sem_function::equals_private): Be more precise
30170         about non-common function attributes.
30171         (sem_variable::equals): Likewise.
30173 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30175         PR ipa/65237
30176         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
30177         across COMDAT group boundary.
30179 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30181         PR ipa/65232
30182         * ipa-icf.c (clear_decl_rtl): New function.
30183         (sem_function::merge): Clear RTL before forming alias.
30184         (sem_variable::merge): Clear RTL before forming alias.
30186 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
30188         PR ipa/65236
30189         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
30191 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
30193         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
30194         to neon_to_gp<q>.
30196 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30198         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
30199         a typo in the description.
30201 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30203         PR target/64317
30204         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30205         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30206         * lra-constraints.c: Include "params.h".
30207         (EBB_PROBABILITY_CUTOFF): Use
30208         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
30209         (lra_inheritance): Use '<' instead of '<=' for
30210         EBB_PROBABILITY_CUTOFF.
30211         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
30212         Document change.
30214 2015-02-27  Martin Liska  <mliska@suse.cz>
30216         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
30217         vector length condition.
30219 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
30221         * doc/extend.texi (x86 transactional memory intrinsics):
30222         Reorganize discussion of _xbegin.  Clarify that the return
30223         value is a bit mask.  Expand example and move to end of section.
30225 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
30226             Aldy Hernandez  <aldyh@redhat.com>
30228         PR rtl-optimization/65220
30229         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
30231 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30233         PR target/65032
30234         * lra-remat.c (update_scratch_ops): New.
30235         (do_remat): Call it.
30236         * lra.c (lra_register_new_scratch_op): New. Take code from ...
30237         (remove_scratches): ... here.
30238         * lra-int.h (lra_register_new_scratch_op): New prototype.
30240 2015-02-27  Marek Polacek  <polacek@redhat.com>
30242         PR c/65040
30243         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
30244         -Wformat-signedness anymore.
30246 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30248         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
30249         function.
30250         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
30252 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30254         * config/s390/s390.c (enum s390_builtin):
30255         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
30256         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
30257         (s390_init_builtins): Generate new builtin functions.
30258         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
30259         (s390_sfpc, s390_efpc): New pattern definitions.
30261 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30263         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
30264         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
30265         (s390_builtin_decls): New array.
30266         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
30267         (s390_builtin_decl): New function.
30268         (TARGET_BUILTIN_DECL): Define macro.
30270 2015-02-27  Richard Biener  <rguenther@suse.de>
30272         PR middle-end/63175
30273         * builtins.c (get_object_alignment_2): Make sure to re-apply
30274         the ANDed mask after recursing to its operand gets us a new
30275         misalignment bit position.
30277 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
30278             Martin Liska  <mliska@suse.cz>
30280         PR bootstrap/65150
30281         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
30282         Use address_matters_p.
30283         (redirect_all_callers, set_addressable): New functions.
30284         (sem_function::merge): Reorganize and fix merging issues.
30285         (sem_variable::merge): Likewise.
30286         (sem_variable::compare_sections): Remove.
30287         * common.opt (fmerge-all-constants, fmerge-constants): Remove
30288         Optimization flag.
30289         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
30290         redirect them.
30291         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
30292         decl is used.
30293         (address_matters_1): New function.
30294         (symtab_node::address_matters_p): New function.
30295         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
30296         check for merged flag.
30297         * cgraph.h (address_matters_p): Declare.
30298         (symtab_node::address_taken_from_non_vtable_p): Remove.
30299         (symtab_node::address_can_be_compared_p): New method.
30300         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
30301         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
30302         Remove.
30303         (comdat_can_be_unshared_p_1) Use address_matters_p.
30304         (update_vtable_references): Fix formating.
30305         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
30306         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
30307         * cgraphclones.c: Preserve merged and icf_merged flags.
30309 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
30311         * doc/extend.texi (Function Attributes): Fix spelling and typos.
30312         (Label Attributes): Likewise.
30313         (Cilk Plus Builtins): Likewise.
30314         (ARC SIMD Built-in Functions): Likewise.
30315         (ARM C Language Extensions (ACLE)): Likewise.
30316         (PowerPC Built-in Functions): Likewise.
30317         (PowerPC Hardware Transactional Memory Built-in Functions):
30318         Likewise.
30320 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
30322         PR tree-optimization/65216
30323         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
30324         new stmt and new SSA_NAME for lhs whenever the arguments have
30325         changed and weren't just swapped.  Fix comment typo.
30327         PR tree-optimization/65215
30328         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
30329         for PDP endian targets.
30330         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
30331         Fix up formatting issues.
30332         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
30333         size is smaller than the original, adjust MEM_REF offset by the
30334         difference of sizes.  Use is_gimple_mem_ref_addr instead of
30335         is_gimple_min_invariant test to avoid adding address temporaries.
30337 2015-02-26  Martin Liska  <mliska@suse.cz>
30338             Jan Hubicka  <hubicka@ucw.cz>
30340         PR ipa/64693
30341         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
30342         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
30343         (sem_item_optimizer::process_cong_reduction): Include division by
30344         sensitive references.
30345         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
30346         * ipa-ref.c (ipa_ref::address_matters_p): New function.
30347         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
30349 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
30351         PR target/65192
30352         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
30353         Remove.
30354         * config/avr/avr.c: Same.
30355         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
30356         Refuse any constant address not in 0..0xbf.
30357         * config/avr/avr.md (*mov<mode>, *movsf): Remove
30358         tiny_valid_direct_memory_access_range from insn conditions.
30359         (mov<mode>): Don't special-case expansion of avrtiny addresses.
30361 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
30363         PR target/61142
30364         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
30365         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30366         * config/sh/predicates.md (const_logical_operand): New predicate.
30367         * config/sh/sh.md: Add new peephole2 patterns.
30369 2015-02-26  Marek Polacek  <polacek@redhat.com>
30371         PR ipa/65008
30372         * ipa-inline.c (early_inliner): Recompute inline parameters.
30374 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30376         PR target/65171
30377         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
30378         instructions with TImode operands are included in the analysis.
30380 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
30382         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
30383         of an EDGE_FSM_THREAD.
30385 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30387         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
30389 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
30391         PR debug/46102
30392         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
30394 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
30396         PR tree-optimization/65048
30397         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
30398         (thread_through_all_blocks): Call valid_jump_thread_path.
30399         Remove invalid FSM jump-thread paths.
30401 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
30403         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
30404         (ipa_write_optimization_summaries): Likewise.
30405         * tree-streamer.h: Include data-streamer.h.
30406         (streamer_mode_table): Declare extern variable.
30407         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
30408         * lto-streamer-out.c (lto_output_init_mode_table,
30409         lto_write_mode_table): New functions.
30410         (produce_asm_for_decls): Call lto_write_mode_table when streaming
30411         offloading LTO.
30412         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
30413         (lto_create_simple_input_block): Add mode_table argument to the
30414         lto_input_block constructors.
30415         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
30416         Likewise.
30417         * data-streamer-in.c (string_for_index): Likewise.
30418         * ipa-inline-analysis.c (inline_read_section): Likewise.
30419         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
30420         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
30421         * lto-streamer-in.c (lto_read_body_or_constructor,
30422         lto_input_toplevel_asms): Likewise.
30423         (lto_input_mode_table): New function.
30424         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
30425         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
30426         Use bp_pack_machine_mode.
30427         * real.h (struct real_format): Add name field.
30428         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
30429         (class lto_input_block): Add mode_table member.
30430         (lto_input_block::lto_input_block): Add mode_table_ argument,
30431         initialize mode_table.
30432         (struct lto_file_decl_data): Add mode_table field.
30433         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
30434         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
30435         unpack_ts_decl_common_value_fields,
30436         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
30437         * tree-streamer.c (streamer_mode_table): New variable.
30438         * real.c (ieee_single_format, mips_single_format,
30439         motorola_single_format, spu_single_format, ieee_double_format,
30440         mips_double_format, motorola_double_format,
30441         ieee_extended_motorola_format, ieee_extended_intel_96_format,
30442         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
30443         ibm_extended_format, mips_extended_format, ieee_quad_format,
30444         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
30445         decimal_single_format, decimal_double_format, decimal_quad_format,
30446         ieee_half_format, arm_half_format, real_internal_format): Add name
30447         field.
30448         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
30450 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
30452         PR target/65161
30453         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
30454         reordering for selective scheduling.
30456 2015-02-26  Terry Guo  <terry.guo@arm.com>
30458         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
30459         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
30460         (arm_arch_no_volatile_ce): Declare new global variable.
30461         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
30462         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
30463         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
30464         (TARGET_NO_VOLATILE_CE): New macro.
30465         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
30466         volatile memory access in IT block
30468 2015-02-25  Kai Tietz  <ktietz@redhat.com>
30470         PR tree-optimization/61917
30471         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
30472         that reduc_def_stmt is null.
30474 2015-02-25  Martin Liska  <mliska@suse.cz>
30476         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
30477         hard register variables.
30479 2015-02-25  Kai Tietz  <ktietz@redhat.com>
30481         PR target/64212
30482         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
30483         (symtab::noninterposable_alias): Likewise.
30485 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
30487         PR target/65167
30488         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
30489         bounds registers.
30490         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
30492 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
30494         PR target/64997
30495         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
30496         as split condition; force split via '#' in output pattern.
30498 2015-02-25  Richard Biener  <rguenther@suse.de>
30499             Kai Tietz  <ktietz@redhat.com>
30501         PR tree-optimization/61917
30502         * tree-vect-loop.c (vectorizable_reduction): Allow
30503         vect_internal_def without reduction to exit graceful.
30505 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
30507         PR target/65196
30508         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
30509         only with NONDEBUG_INSN_P.
30511 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
30513         Use variadic macros with avr-log.c.
30515         * config/avr/avr-protos.h (avr_vdump): New prototype.
30516         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
30517         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
30518         * config/avr/avr-log.c: Adjust comments.
30519         (avr_vdump): New function.
30520         (avr_vadump): Pass caller as 2nd argument instead of format string.
30521         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30522         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30524 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
30526         PR lto/64374
30527         * target.def (target_option_stream_in): New target hook.
30528         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30529         targetm.target_option.post_stream_in if non-NULL.
30530         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30531         * doc/tm.texi: Updated.
30532         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30533         function.
30534         (TARGET_OPTION_POST_STREAM_IN): Redefine.
30536 2015-02-24  Jeff Law  <law@redhat.com>
30538         PR target/65117
30539         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30540         of operand 0 and operand 2.
30541         (zero_cost_loop_end, loop_end): Similarly.
30543 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
30545         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30546         CXX_MEM_STAT_INFO.
30548 2015-02-24  DJ Delorie  <dj@redhat.com>
30550         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30551         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30552         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30553         instead of hardcoding SImode.
30555 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
30557         * omp-low.c (create_omp_child_function): Tag entrypoint
30558         functions with a special attribute.
30560 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30562         PR target/65058
30563         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30565 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
30567         PR rtl-optimization/65123
30568         * lra-remat.c (operand_to_remat): Check hard regs in insn
30569         definition too.
30571 2015-02-24  Nick Clifton  <nickc@redhat.com>
30573         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30574         to the assembler.
30576 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
30578         PR libgomp/64625
30579         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30580         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30581         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30582         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30583         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30584         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30585         (BUILT_IN_GOACC_PARALLEL): Specify as
30586         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30587         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30588         * builtin-types.def
30589         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30590         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30591         Remove function types.
30592         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30593         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30594         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30595         New function types.
30597 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
30599         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30601 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
30603         PR tree-optimization/65170
30604         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30605         if val[1] < 0, clear also val[2] and return 3.
30607 2015-02-24  Alan Modra  <amodra@gmail.com>
30609         PR target/65172
30610         * config/rs6000/rs6000.c (get_memref_parts): Only return true
30611         when *base is a reg.  Handle nested plus addresses.  Simplify
30612         pre_modify test.
30614 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
30616         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30617         use natural alignment when optimizing for size.
30619 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
30621         PR target/65153
30622         * config/sh/sh.md (movsicc_true+3): Remove peephole.
30623         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30624         * config/sh/sh.c (replace_n_hard_rtx): Remove.
30626 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
30628         PR fortran/63427
30629         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30630         too big for a wide_int.  Implement missing wrapping operation.
30632 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
30634         PR target/65163
30635         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30636         instead of const_int 4294901760.
30638 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
30640         * config/avr/t-avr: Fix typo in comment.
30642 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
30644         * doc/rtl.texi (fma): Clarify documentation.
30646 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
30648         PR debug/58123
30649         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30650         over input_location.
30652 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
30654         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30655         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30656         restrict alignments to absolute_biggest_alignment.
30657         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30658         Define.
30659         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30660         * doc/tm.texi: Regenerate.
30661         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30663 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
30665         PR target/64172
30666         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30668 2015-02-20  Richard Biener  <rguenther@suse.de>
30670         PR tree-optimization/65136
30671         * tree-ssa-propagate.c: Include cfgloop.h.
30672         (replace_phi_args_in): Avoid replacing loop latch edge PHI
30673         arguments with constants.
30675 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
30676             Martin Liska  <mliska@suse.cz>
30678         PR target/63892
30679         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30680         don't try to create_thunk if stdarg_p.  If
30681         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30682         redirect_callers if possible.
30683         (sem_item_optimizer::execute): Call unregister_hooks here...
30684         (ipa_icf_driver): ... instead of here.
30686 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30688         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30689         Mark operand 0 as earlyclobber in 2nd alternative.
30690         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30691         Write negated shift amount into QI lowpart operand 0 and use it
30692         in the shift step.
30693         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30695 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
30697         * cgraph.h (clone_function_name_1): Declare.
30698         * cgraphclones.c (clone_function_name_1): New function.
30699         (clone_function_name): Use it.
30700         * lto-partition.c: Include "stringpool.h".
30701         (must_not_rename, maybe_rewrite_identifier)
30702         (validize_symbol_for_target): New static functions.
30703         (privatize_symbol_name): Use must_not_rename.
30704         (promote_symbol): Call validize_symbol_for_target.
30705         (lto_promote_cross_file_statics): Likewise.
30706         (lto_promote_statics_nonwpa): Likewise.
30708 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
30710         PR target/64452
30711         * config/avr/avr.md (pushhi_insn): New insn.
30712         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30714 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
30715             Jakub Jelinek  <jakub@redhat.com>
30717         * tree-streamer.c (preload_common_nodes): Don't preload
30718         TI_VA_LIST* for offloading.
30719         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30720         in_lto_p.
30722 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
30724         * config/pa/pa.c (pa_emit_move_sequence): Always force
30725         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
30726         note on insn.
30728         * config/pa/pa.c (pa_reloc_rw_mask): New function.
30729         (TARGET_ASM_RELOC_RW_MASK): Define.
30730         (pa_cannot_force_const_mem): Revert previous change.
30732 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
30733             Jan Hubicka  <hubicka@ucw.cz>
30735         PR ipa/65028
30736         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30737         across jump functions.
30739 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
30741         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30743 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
30745         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30747 2015-02-19  Richard Henderson  <rth@redhat.com>
30749         PR middle-end/65074
30750         * varasm.c (default_binds_local_p_2): Don't test node->definition;
30751         test DECL_EXTERNAL independent of symtab_node.
30753 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
30755         PR lto/65012
30756         * varpool.c (varpool_node::get_constructor): Return early
30757         if this->lto_file_data is NULL.
30759 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
30761         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30762         (rank_for_schedule_debug): Update.
30763         (ready_sort): Make static.  Move sorting logic to ...
30764         (ready_sort_debug, ready_sort_real): New static functions.
30765         (schedule_block): Sort both debug insns and real insns in preparation
30766         for ready list trimming.  Improve debug output.
30767         * sched-int.h (ready_sort): Remove global declaration.
30769 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
30771         * ipa-icf.c (sem_function::equals_private): Adjust.
30772         (sem_function::bb_dict_test): Take a vec<int> * instead of
30773         auto_vec<int>.
30774         * ipa-icf.h (bb_dict_test): Likewise.
30776 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
30778         PR gcov-profile/64634
30779         * tree-eh.c (frob_into_branch_around): Fix up typos
30780         in function comment.
30781         (lower_catch): Put eh_seq resulting from EH lowering of
30782         the cleanup sequence after the cleanup rather than before it.
30784 2015-02-18  Tom de Vries  <tom@codesourcery.com>
30786         * common.opt (fstdarg-opt): New option.
30787         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
30788         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
30789         (@item -fstdarg-opt): New item.
30791 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
30793         PR target/65064
30794         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
30795         for common symbols.
30797 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
30799         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
30800         insn-modes.h.
30801         (ALL_HOST_OBJS): Add mkoffload.o.
30802         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
30804 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
30806         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
30807         (compare_virtual_tables): Be smarter about skipping typeinfos;
30808         do sane output on virtual table table mismatch.
30809         (warn_odr): Be ready for forward declarations of enums;
30810         output sane info on base mismatch and virtual table mismatch.
30811         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
30812         when only one type is polymorphic.
30813         (get_odr_type): Fix hashtable corruption.
30814         (dump_odr_type): Dump mangled names.
30816 2015-02-18  Richard Biener  <rguenther@suse.de>
30818         PR tree-optimization/65063
30819         * tree-predcom.c (determine_unroll_factor): Return 1 if we
30820         have replaced looparound PHIs.
30822 2015-02-18  Martin Liska  <mliska@suse.cz>
30824         * lto-streamer.c (lto_streamer_init): Encapsulate
30825         streamer_check_handled_ts_structures with checking macro.
30827 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
30829         PR ipa/65087
30830         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
30831         section if !implicit_section.
30832         (cgraph_node::create_version_clone_with_body): Likewise.
30833         * trans-mem.c (ipa_tm_create_version): Likewise.
30835 2015-02-18  Richard Biener  <rguenther@suse.de>
30837         PR tree-optimization/62217
30838         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
30839         into BIVs.
30841 2015-02-18  Marek Polacek  <polacek@redhat.com>
30843         PR sanitizer/65081
30844         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
30845         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
30846         is in range [-16K, -1].  Don't issue run-time error if
30847         (ptr > ptr + offset).
30849 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
30851         * doc/install.texi (nvptx-*-none): New section.
30852         * doc/invoke.texi (Nvidia PTX Options): Likewise.
30853         * config/nvptx/nvptx.opt: Update.
30855         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
30856         (access_check): New functions, copied from
30857         config/i386/intelmic-mkoffload.c.
30858         (main): For non-installed testing, look in all COMPILER_PATHs for
30859         GCC_INSTALL_NAME.
30861         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
30863 2015-02-18  Andrew Pinski  <apinski@cavium.com>
30864             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30866         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
30867         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
30869 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
30871         * ipa-visibility.c (function_and_variable_visibility): Only
30872         check locality if node is not already local.
30873         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30874         call_for_symbol_and_aliases instead of
30875         call_for_symbol_thunks_and_aliases.
30876         (ipa_inline): Likewise.
30877         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30878         first walk aliases.
30879         * ipa.c (symbol_table::remove_unreachable_nodes): Use
30880         call_for_symbol_and_aliases.
30881         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30882         (ipa_propagate_frequency_1): Use it; use opt_for_fn
30883         (ipa_propagate_frequency): Update.
30884         (ipa_profile): Add opt_for_fn gueards.
30886 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
30888         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
30889         * doc/invoke.texi (SH options): Document it.
30890         * config/sh/sh.c (sh_insn_length_adjustment): Check
30891         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
30893 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
30895         * common.opt (fipa-cp-alignment): New.
30896         * ipa-cp.c (ipcp_store_alignment_results): Check
30897         flag_ipa_cp_alignment.
30898         * opts.c (default_options_table): Enable -fipa-cp-alignment for
30899         -O2.
30900         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
30901         * doc/invoke.texi: Document -fipa-cp-alignment.
30903 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
30905         PR target/64793
30906         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
30907         to nil.  Adjust comments.
30909 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
30911         * ipa-visibility.c (function_and_variable_visibility): Only
30912         check locality if node is not already local.
30913         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
30914         call_for_symbol_and_aliases instead of
30915         call_for_symbol_thunks_and_aliases.
30916         (ipa_inline): Likewise.
30917         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
30918         first walk aliases.
30919         * ipa.c (symbol_table::remove_unreachable_nodes): Use
30920         call_for_symbol_and_aliases.
30921         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
30922         (ipa_propagate_frequency_1): Use it; use opt_for_fn
30923         (ipa_propagate_frequency): Update.
30924         (ipa_profile): Add opt_for_fn guards.
30926 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
30928         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
30929         skipping of "strange" tokens.
30931 2015-02-17  Jeff Law  <law@redhat.com>
30933         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
30934         obsolete comment.
30936 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
30938         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
30939         as forcing a HARD_DEP between instructions, thereby
30940         disallowing rewriting to break dependencies.
30942 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
30944         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
30945         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
30946         variables in boundary that have no inlitalizer encoded and are
30947         not aliases.
30948         * varasm.c (default_binds_local_p_2): External definitions do not
30949         count as definitions here.
30951 2015-02-16  Jeff Law  <law@redhat.com>
30953         PR tree-optimization/64823
30954         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
30955         statements.
30956         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
30957         threading through blocks with PHIs, but no statements.
30958         (thread_through_normal_block): Distinguish between blocks where
30959         we did not process all the statements and blocks with no statements.
30961 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
30962             James Greenhalgh  <james.greenhalgh@arm.com>
30964         PR ipa/64963
30965         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
30966         section if not linkonce.  Fix up formatting.
30967         (cgraph_node::create_version_clone_with_body): Copy section.
30968         * trans-mem.c (ipa_tm_create_version): Likewise.
30970 2015-02-16  Richard Biener  <rguenther@suse.de>
30972         PR tree-optimization/65077
30973         * tree-ssa-structalias.c (get_constraint_for_1): Handle
30974         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
30975         (find_func_aliases): Allow float values to carry pointers again.
30977 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
30979         * doc/install.texi (Specific): Reorder targets list to put
30980         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
30981         from the top menu.
30983 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
30984             David Edelsohn  <dje.gcc@gmail.com>
30986         PR target/65058
30987         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
30988         mapping class to external variable or function reference.
30989         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
30990         mapping class.
30992 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
30994         PR target/53348
30995         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
30996         ASM_WEAKEN_DECL if defined.
30998 2015-02-16  Richard Biener  <rguenther@suse.de>
31000         PR lto/65015
31001         * varasm.c (default_file_start): For LTO produced units
31002         emit <artificial> as file directive.
31004 2015-02-16  Richard Biener  <rguenther@suse.de>
31006         PR tree-optimization/63593
31007         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
31008         stmts and releasing SSA names until...
31009         (execute_pred_commoning): ... after processing all chains.
31011 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
31013         PR ipa/65059
31014         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
31015         external functions.
31017 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
31019         * doc/bugreport.texi: Adjust section titles throughout the file
31020         to use "Title Case".
31021         * doc/extend.texi: Likewise.
31022         * doc/gcov.texi: Likewise.
31023         * doc/implement-c.texi: Likewise.
31024         * doc/implement-cxx.texi: Likewise.
31025         * doc/invoke.texi: Likewise.
31026         * doc/objc.texi: Likewise.
31027         * doc/standards.texi: Likewise.
31028         * doc/trouble.texi: Likewise.
31030 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
31032         * cgraph.h (symtab_node::has_aliases_p): Simplify.
31033         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
31034         * tree.c (lookup_binfo_at_offset): Make static.
31035         (get_binfo_at_offset): Do not shadow offset; add explanatory
31036         comment.
31038 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
31040         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
31041         for all floading point loads and stores except those using a register
31042         index address.
31043         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
31044         to a register.
31046 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
31048         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
31049         (do_estimate_growth_1): Record if any uninlinable edge was seen.
31050         (estimate_growth): Handle uninlinable edges correctly.
31051         (check_callers): New.
31052         (growth_likely_positive): Handle aliases correctly.
31054 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
31056         * ipa-chkp.c: Use iterate_direct_aliases.
31057         * symtab.c (resolution_used_from_other_file_p): Move inline.
31058         (symtab_node::create_reference): Fix formating.
31059         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31060         (symtab_node::iterate_reference): Move inline.
31061         (symtab_node::iterate_referring): Move inline.
31062         (symtab_node::iterate_direct_aliases): Move inline.
31063         (symtab_node::used_from_object_file_p_worker): Inline into ...
31064         (symtab_node::used_from_object_file_p): ... this one; move inline.
31065         (symtab_node::call_for_symbol_and_aliases): Move inline;
31066         use iterate_direct_aliases.
31067         (symtab_node::call_for_symbol_and_aliases_1): New method.
31068         (cgraph_node::call_for_symbol_and_aliases): Move inline;
31069         use iterate_direct_aliases.
31070         (cgraph_node::call_for_symbol_and_aliases_1): New method.
31071         (varpool_node::call_for_node_and_aliases): Rename to ...
31072         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
31073         use iterate_direct_aliases.
31074         (varpool_node::call_for_symbol_and_aliases_1): New method.
31075         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
31076         (ipa_discover_readonly_nonaddressable_var): Update.
31077         * ipa-devirt.c: Fix formating.
31078         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
31079         Move inline.
31080         (cgraph_node::call_for_symbol_and_aliases): Move inline.
31081         (cgraph_node::call_for_symbol_and_aliases_1): New function..
31082         * cgraph.h (used_from_object_file_p_worker): Remove.
31083         (resolution_used_from_other_file_p): Move inline.
31084         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31085         (symtab_node::iterate_reference): Move inline.
31086         (symtab_node::iterate_referring): Move inline.
31087         (symtab_node::iterate_direct_aliases): Move inline.
31088         (symtab_node::used_from_object_file_p_worker): Inline into ...
31089         (symtab_node::used_from_object_file_p): Move inline.
31090         * tree-emutls.c (ipa_lower_emutls): Update.
31091         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
31092         (varpool_node::call_for_node_and_aliases): Remove.
31094 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
31096         PR tree-optimization/62209
31097         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
31098         op == range->exp, insert seq and gimplified code after labels
31099         instead of after the phi.
31101 2015-02-13  Jeff Law  <law@redhat.com>
31103         PR bootstrap/65060
31104         Revert my change for tree-optimization/64823.
31106 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
31108         PR tree-optimization/65053
31109         * tree-ssa-phiopt.c (value_replacement): When moving assign before
31110         cond, either reset VR on lhs or set it to phi result VR.
31112 2015-02-13  Jeff Law  <law@redhat.com>
31114         PR tree-optimization/64823
31115         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
31116         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31117         threading through blocks with PHIs, but no statements.
31118         (thread_through_normal_block): Distinguish between blocks where
31119         we did not process all the statements and blocks with no statements.
31121         PR rtl-optimization/47477
31122         * match.pd (convert (plus/minus (convert @0) (convert @1): New
31123         simplifier to narrow arithmetic.
31125 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
31127         PR ipa/65028
31128         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
31129         polymorphic call info when type is not known to be preserved.
31131 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
31133         PR ipa/65028
31134         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
31135         (inline_call): Use it.
31137 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
31139         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
31140         GOMP_DEVICE_NVIDIA_PTX.
31142 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
31144         PR ipa/65034
31145         * stmt.c (emit_case_nodes): Use void_type_node instead of
31146         NULL_TREE as LABEL_DECL type.
31148 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
31150         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
31151         constraints.
31152         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
31153         symbolic references to data to be forced to constant memory on the
31154         SOM target.
31156 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31158         PR tree-optimization/65002
31159         * tree-cfg.c (pass_data_fixup_cfg): Don't update
31160         SSA on start.
31161         * tree-sra.c (some_callers_have_no_vuse_p): New.
31162         (ipa_early_sra): Reject functions whose callers
31163         assume function is read only.
31165 2015-02-13  Richard Biener  <rguenther@suse.de>
31167         PR lto/65015
31168         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
31169         for LTO produced CUs.
31171 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
31173         PR tree-optimization/64705
31174         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
31175         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
31176         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
31177         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
31178         expand_simple_operations.
31180 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
31181             Richard Henderson  <rth@redhat.com>
31183         PR rtl/32219
31184         * cgraphunit.c (cgraph_node::finalize_function): Set definition
31185         before notice_global_symbol.
31186         (varpool_node::finalize_decl): Likewise.
31187         * varasm.c (default_binds_local_p_2): Rename from
31188         default_binds_local_p_1, add weak_dominate argument.  Use direct
31189         returns instead of assigning to local variable.  Unify varpool and
31190         cgraph paths via symtab_node.  Reject undef weak variables before
31191         testing visibility.  Reorder tests for simplicity.
31192         (default_binds_local_p): Use default_binds_local_p_2.
31193         (default_binds_local_p_1): Likewise.
31194         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
31195         via symtab_node.
31196         (default_elf_asm_output_external): Emit visibility when specified.
31198 2015-02-13  Alan Modra  <amodra@gmail.com>
31200         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
31201         code setting up r11 for out-of-line fp restore.
31203 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
31205         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
31206         (muser-mode): Likewise.
31208 2015-02-13  Alan Modra  <amodra@gmail.com>
31210         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
31211         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
31213 2015-02-12  David Howells  <dhowells@redhat.com>
31215         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
31216         warning.
31217         * tree-ssa-uninit.c (dump_predicates): Likewise.
31218         * opts.c (print_filtered_help): Likewise.
31220 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
31222         * dwarf2out.c (output_die): Use "%s", name instead of name to
31223         avoid -Wformat-security warning.
31225         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
31226         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31227         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
31228         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31230 2015-02-12  Jason Merrill  <jason@redhat.com>
31232         * common.opt (-flifetime-dse): New.
31234 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
31236         PR sanitizer/65019
31237         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
31239         PR tree-optimization/65014
31240         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
31241         use original second operand of arg0 or arg1 instead of
31242         that adjusted by STRIP_NOPS.
31244 2015-02-11  Jeff Law  <law@redhat.com>
31246         PR target/63347
31247         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
31248         that needs to be queued, just queue it for a single cycle.
31250 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
31252         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
31253         bodies of thunks; comment on why.
31254         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
31255         symbols are extern.
31257 2015-02-11  Richard Henderson  <rth@redhat.com>
31259         PR sanitize/65000
31260         * tree-eh.c (mark_reachable_handlers): Mark source and destination
31261         regions of __builtin_eh_copy_values.
31263 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
31265         PR middle-end/65003
31266         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
31267         ultimate alias is MEM with SYMBOL_REF satisfying
31268         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
31269         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
31271 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
31273         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
31274         "diagnostic-core.h".
31275         (main): Initialize progname, and call diagnostic_initialize.
31277         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
31278         instead of __OPENMP_TARGET__.
31280         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
31281         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
31282         hard-coding PTX_ID.
31284 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
31286         * doc/sourcebuild.texi (pie_enabled): Document.
31288 2015-02-11  Martin Liska  <mliska@suse.cz>
31290         PR ipa/64813
31291         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
31292         a return value for call to a function that is noreturn.
31294 2015-02-11  Richard Biener  <rguenther@suse.de>
31296         PR lto/65015
31297         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
31298         and -fresolution.
31300 2015-02-11  Andrew Pinski  <apinski@cavium.com>
31302         PR target/64893
31303         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
31304         Change the first argument type to size_type_node and add another
31305         size_type_node.
31306         (aarch64_simd_expand_builtin): Handle the new argument to
31307         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
31308         print an out when the first two arguments are not
31309         nonzero integer constants.
31310         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
31311         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
31313 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
31315         PR target/61925
31316         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
31317         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31318         (ix86_set_current_function): Rewritten.
31319         (ix86_add_new_builtins): Temporarily clear current_target_pragma
31320         when creating builtin fndecls.
31322 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
31324         PR ipa/65005
31325         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
31326         function.
31327         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
31328         have no comdat group.
31329         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
31330         (lto_output_varpool_node): Always output alias info.
31331         (output_refs): Output refs of boundary aliases, too.
31332         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
31333         (output_symtab): Output call eges in thunks in boundary.
31334         (get_alias_symbol): Remove.
31335         (input_node, input_varpool_node): Do not special case weakrefs.
31336         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
31337         alias and thunks targets in the boundary; do not take removed symbols
31338         from their comdat groups.
31339         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
31340         (cgraph_node::global_info): Remove.
31341         (cgraph_node::rtl_info): Look through aliases and thunks.
31342         * cgrpah.h (global_info): Remove.
31343         (non_local_p): Remove.
31345 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
31346             Sandra Loosemore  <sandra@codesourcery.com>
31348         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
31349         to inline asm.  List dialects in proper order.
31351 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
31352             Sandra Loosemore  <sandra@codesourcery.com>
31354         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
31356 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
31358         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
31359         modified) reference to Solaris.
31361 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
31363         * doc/extend.texi (Extended Asm): Fix typos.
31365 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
31367         PR sanitizer/65004
31368         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
31370 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
31372         PR target/64661
31373         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
31374         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
31375         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
31376         * config/sh/constraints.md (Ara, Add): New constraints.
31377         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
31378         predicates.
31379         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
31380         atomic_mem_operand_0.  Don't use force_reg on the memory address.
31381         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
31382         Sra constraint.  Convert to insn_and_split.  Add workaround for
31383         PR 64974.
31384         (atomic_compare_and_swap<mode>_hard): Copy to
31385         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
31386         Use atomic_mem_operand_0 predicate.
31387         (atomic_compare_and_swap<mode>_soft_gusa,
31388         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
31389         AraAdd constraints.
31390         (atomic_compare_and_swap<mode>_soft_tcb,
31391         atomic_compare_and_swap<mode>_soft_imask,
31392         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
31393         atomic_mem_operand_0 predicate and SraSdd constraints.
31394         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
31395         constraint.
31396         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
31397         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
31398         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
31399         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
31400         force_reg on the memory address.
31401         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
31402         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
31403         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
31404         atomic_mem_operand_1 predicate and Sra constraint.
31405         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
31406         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
31407         Use atomic_mem_operand_1 predicate.
31408         (atomic_<fetchop_name><mode>_hard): Copy to
31409         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
31410         Use atomic_mem_operand_1 predicate.
31411         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
31412         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
31413         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
31414         insn_and_split.  Use atomic_mem_operand_1 predicate.
31415         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
31416         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
31417         Use atomic_mem_operand_1 predicate.
31418         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
31419         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
31420         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
31421         in generated insn with original mem operand before emitting the insn.
31422         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
31423         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
31424         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
31425         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
31426         Use atomic_mem_operand_1 predicate and AraAdd constraints.
31427         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
31428         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
31429         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
31430         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
31431         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
31432         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
31433         atomic_not_fetch<mode>_soft_tcb,
31434         atomic_<fetchop_name>_fetch<mode>_soft_imask,
31435         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
31436         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
31437         Use atomic_mem_operand_1 predicate and SraSdd constraints.
31439 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
31441         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
31442         and 3 earlyclobber operands.
31444 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
31446         * common.opt (fstack-reuse): Mark as optimization.
31448 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
31450         PR ipa/64982
31451         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
31453 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
31455         PR tree-optimization/64326
31456         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
31458 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
31460         PR gcov-profile/61889
31461         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
31463 2015-02-10  Richard Biener  <rguenther@suse.de>
31465         PR tree-optimization/64995
31466         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
31467         value we use is final.
31468         (visit_reference_op_store): Always valueize op.
31469         (visit_use): Properly valueize vuses.
31471 2015-02-10  Richard Biener  <rguenther@suse.de>
31473         PR tree-optimization/64909
31474         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
31475         pass a scalar-stmt count estimate to the cost model.
31476         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
31478 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
31480         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
31481         enabled by default together with var-tracking.
31483 2015-02-10  Nick Clifton  <nickc@redhat.com>
31485         * config/rl78/rl78.c: Remove DIV attribute code accidentally
31486         included in previous rl78 commit.
31488 2015-02-10  Richard Biener  <rguenther@suse.de>
31490         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
31491         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
31492         return the bitpack.
31494 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
31496         PR gcov-profile/61889
31497         * config.in: regenerate.
31498         * configure.in: Likewise.
31499         * configure.ac: Check for ftw.h.
31500         * gcov-tool.c: Check for ftw.h before using nftw.
31502 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
31504         PR lto/64076
31505         * ipa-visibility.c (update_visibility_by_resolution_info): Only
31506         assert when not in lto mode.
31508 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
31510         * ira-color.c (setup_left_conflict_sizes_p): Simplify
31511         initialization/assignment of conflict_size.
31513 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
31515         PR ipa/64978
31516         * ipa-cp.c (gather_caller_stats): Skip thunks.
31517         (propagate_constants_topo): Skip aliases.
31519 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
31521         PR target/64761
31522         * config/sh/sh.c (sh_option_override): Don't change
31523         -freorder-blocks-and-partition to -freorder-blocks even when
31524         unwinding is enabled.
31525         (sh_can_follow_jump): Return false if the followee jump is
31526         a crossing jump when -freorder-blocks-and-partition is specified.
31527         * config/sh/sh.md (*jump_compact_crossing): New insn.
31529 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
31530             Kaz Kojima  <kkojima@gcc.gnu.org>
31532         PR target/64761
31533         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31534         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31535         (sh_can_redirect_branch): Rename to ...
31536         (sh_can_follow_jump): ... this.  Constify argument types.
31537         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31538         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31539         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31540         * doc/tm.texi: Regenerate.
31542 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
31544         PR sanitizer/64981
31545         * builtins.c (expand_builtin): Call targetm.expand_builtin
31546         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31548 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31550         PR ipa/61548
31551         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31553 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31555         PR ipa/63566
31556         * ipa-icf.c (set_local): New function.
31557         (sem_function::merge): Use it.
31559 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31561         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31562         (add_type_duplicate): Fix comparison of BINFOs.
31564 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31566         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31567         on getting VOID pointer.
31569 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
31571         PR target/64979
31572         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31573         va_list escapes.
31575 2015-02-09  Richard Biener  <rguenther@suse.de>
31577         * genmatch.c (replace_id): Copy expr_type.
31579 2015-02-09  Richard Biener  <rguenther@suse.de>
31581         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31582         (streamer_write_tree_bitfields): Declare.
31583         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31584         properly unpack padding.
31585         (unpack_value_fields): Inline ...
31586         (streamer_read_tree_bitfields): ... here.
31587         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31588         and properly add padding bits.
31589         (streamer_pack_tree_bitfields): Fold into ...
31590         (streamer_write_tree_bitfields): ... this new function,
31591         exposing the bitpack object.
31592         * lto-streamer-out.c (lto_write_tree_1): Call
31593         streamer_write_tree_bitfields.
31595 2015-02-09  Richard Biener  <rguenther@suse.de>
31597         PR tree-optimization/54000
31598         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31599         (struct ivopts_data): Add loop_loc member.
31600         (tree_ssa_iv_optimize_loop): Dump loop location.
31601         (create_new_ivs): Likewise, also dump number of IVs generated.
31603 2015-02-09  Martin Liska  <mliska@suse.cz>
31605         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31606         just if not yet registered.
31607         (ipa_icf_generate_summary): Register callgraph hooks.
31609 2015-02-08  Andrew Pinski  <apinski@cavium.com>
31611         * config/aarch64/aarch64.c (gty_dummy): Delete.
31613 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31615         PR ipa/63566
31616         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31617         (cgraph_node::local_p): Remove thunk related FIXME.
31619 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31621         PR ipa/63566
31622         * i386.c (ix86_function_regparm): Look through aliases to see if callee
31623         is local and optimized.
31624         (ix86_function_sseregparm): Likewise; also use target's SSE math
31625         settings; error out instead of silently generating wrong code
31626         on mismatches.
31627         (init_cumulative_args): Look through aliases.
31629 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31631         PR ipa/63566
31632         * ipa-split.c (execute_split_functions): Split if function has aliases.
31634 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
31636         PR ipa/63566
31637         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31638         aliases before trying to expand it.
31639         (cgraph_node::expand_thunk): Fix formating.
31641 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
31643         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31644         (Using Assembly Language with C): Expand introduction.
31645         (Basic Asm): Copy-edit.  Add more information about uses of
31646         basic asm.
31647         (Extended Asm): Copy-edit.  Document new escape syntax and
31648         %l[label] syntax.
31649         (Global Reg Vars): Copy-edit.
31650         (Local Reg Vars): Likewise.
31652 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
31654         PR debug/2714
31655         PR bootstrap/64256
31656         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31657         (DBX_CONTIN_CHAR): Define.
31659 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
31660             Brian Rzycki  <b.rzycki@samsung.com>
31662         PR tree-optimization/64878
31663         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31664         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31665         Stop recursion at loop phi nodes after having visited a loop phi node.
31667 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
31669         * toplev.c (process_options): Change flag_ipa_ra before creating
31670         optimization_{default,current}_node.
31672         PR ipa/64896
31673         * cgraphunit.c (cgraph_node::expand_thunk): If
31674         restype is not is_gimple_reg_type nor the thunk_fndecl
31675         returns aggregate_value_p, set restmp to a temporary variable
31676         instead of resdecl.
31678 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
31680         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31682 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
31684         PR target/64205
31685         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31686         add a general secondary reload handler for SDmode, unless we have
31687         both read/write support for SDmode.
31689 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
31691         PR middle-end/64937
31692         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31693         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31694         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31695         1 before, push it to abstract_vec.
31696         (dwarf2out_abstract_function): Adjust caller.  Don't call
31697         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31698         DECL_ABSTRACT_P flags for all abstract_vec elts.
31700 2015-02-06  Renlin Li  <renlin.li@arm.com>
31702         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31703         complex gimple.
31704         * tree-ssa.c (execute_update_addresses_taken): Likewise.
31706 2015-02-06  Jeff Law  <law@redhat.com>
31708         PR target/64889
31709         * config/h8300/h8300.c (push): New argument "in_prologue".
31710         Pass "in_prologue" along to "F".
31711         (h8300_push_pop): Corresponding changes.
31712         (h8300_expand_prologue): Likewise.
31713         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
31715 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
31717         PR rtl-optimization/64957
31718         PR debug/64817
31719         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31720         IOR rather than for AND.
31722 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
31724         PR target/62631
31725         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31726         of shift-add and (add + shift) operations.  Rename local variable.
31728 2015-02-05  Jeff Law  <law@redhat.com>
31730         PR target/17306
31731         * config/h8300/constraints.md (U): Correctly dectect
31732         "eightbit_data" memory addresses.
31733         * config/h8300/h8300.c (eightbit_constant_address_p): Also
31734         handle (const (plus (symbol_ref (x)))) where x is declared
31735         as an 8-bit data memory address.
31736         * config/h8300/h8300.md (call, call_value): Correctly detect
31737         "funcvec" functions.
31739         PR target/43264
31740         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31741         24 to 28 bits for the H8/300.
31743 2015-02-06  Alan Modra  <amodra@gmail.com>
31745         PR target/64876
31746         * config/rs6000/rs6000.c (chain_already_loaded): New function.
31747         (rs6000_call_aix): Use it.
31749 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
31751         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31752         check.
31754 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
31756         * config/h8300/constraints.md ("U" constraint): Use strict
31757         variant of REG_OK_FOR_BASE_P after reload has started.
31759 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
31761         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31762         define to zero if !TARGET_NEON.
31763         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31765 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31766             Trevor Saunders  <tsaunders@mozilla.com>
31768         PR ipa/61548
31769         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
31771 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31773         PR ipa/61548
31774         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
31775         when removing varpool nodes.
31777 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31779         PR ipa/61548
31780         * varpool.c (varpool_node::remove): Fix order of variables.
31782 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31784         PR ipa/64686
31785         * ipa-inline.c (inline_small_functions): Fix ordering issue between
31786         speculation resolution and key updates.
31788 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31790         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
31791         about not letting any speculative edges unupdated.
31793 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31795         PR gcov/64123
31796         * gcov-io.c (gcov_var): Export.
31798 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31800         PR middle-end/64922
31801         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
31802         edges that become speculative.
31804 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
31806         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
31807         or DW_LANG_Fortran08.
31808         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
31809         DW_LANG_Fortran08.
31810         (gen_compile_unit_die): Handle "GNU Fortran2003" and
31811         "GNU Fortran2008" language strings.
31812         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
31813         * langhooks.h (lang_GNU_Fortran): New prototype.
31814         * langhooks.c (lang_GNU_Fortran): New function.
31815         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
31816         lang_GNU_Fortran.
31818 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
31820         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
31821         (RTX_OK_FOR_OLO10_P): Likewise.
31823 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
31825         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
31827 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
31829         PR middle-end/64922
31830         * gimple.c: Include gimple-ssa.h.
31831         (maybe_remove_unused_call_args): New function.
31832         * gimple.h (maybe_remove_unused_call_args): Declare.
31833         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
31834         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
31835         * gimple-fold.c (gimple_fold_call): Likewise.
31837 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
31839         PR rtl-optimization/64905
31840         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
31841         pointer alignment if it isn't needed.
31843 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
31845         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
31846         cortex-a72.cortex-a53.
31847         * config/aarch64/aarch64-tune.md: Regenerate.
31848         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
31850 2015-02-04  Nick Clifton  <nickc@redhat.com>
31852         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
31853         inside a MEM.
31855 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
31857         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
31858         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
31859         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
31860         of DEF_BUILTIN.
31861         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
31862         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
31863         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
31864         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
31865         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
31866         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
31867         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
31868         * tree-core.h (enum built_in_function): In between
31869         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
31870         for builtins that use DEF_BUILTIN_CHKP macro.
31872 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
31874         PR debug/64817
31875         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
31876         operands for tcc_comparison exprs.  Fix typos.
31878         PR debug/64817
31879         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
31880         of two XORs that have an intervening AND or IOR.
31882         PR debug/64817
31883         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
31884         simplification of XOR of AND to not allocate new rtx before
31885         committing to a simplification.
31887 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31889         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
31890         manual swaps in all peepholes.
31892 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31894         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
31895         of manual swapping implementation.
31896         (aarch64_expand_vec_perm_const_1): Likewise.
31898 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
31900         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
31901         (generic_addrcost_table): Remove NAMED_PARAM.
31902         (cortexa57_addrcost_table): Likewise.
31903         (xgene1_addrcost_table): Likewise.
31904         (generic_regmove_table): Likewise.
31905         (cortexa53_regmove_table): Likewise.
31906         (xgene1_regmove_table): Likewise.
31907         (generic_vector_table): Likewise.
31908         (cortexa57_vector_table): Likewise.
31909         (xgene1_vector_table): Likewise.
31910         (generic_tunings): Likewise.
31911         (cortexa53_tunings): Likewise.
31912         (cortexa57_tunings): Likewise.
31913         (xgene1_tunings): Likewise.
31915 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
31917         * config/arm/arm-cores.def: Add cortex-a72 and
31918         cortex-a72.cortex-a53.
31919         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
31920         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
31921         * config/arm/arm-tune.md: Regenerate.
31922         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
31923         "cortex-a72.cortex-a53".
31924         * doc/invoke.texi (ARM Options/-mtune): Likewise.
31926 2015-02-04  Nick Clifton  <nickc@redhat.com>
31928         PR target/64408
31929         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
31930         of accepted codes.
31931         (nonimmediate_di_operand): Likewise.
31933         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
31934         prefixes of known F5 using MSP430 MCUs.
31936 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31938         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
31939         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
31940         instead of __builtin_sqrt.
31942 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
31944         * varasm.c (do_assemble_alias): Follow transparent alias
31945         chain for target.
31946         (default_assemble_visibility): Follow transparent alias
31947         chain for decl name.
31949 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31951         PR middle-end/62103
31952         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
31953         to compute size of referenced value in the constant case.
31955 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
31957         PR rtl-optimization/64756
31958         * cse.c (invalidate_dest): New function.
31959         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
31960         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
31961         invalidate and do not record it.
31963 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
31965         PR target/64660
31966         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
31967         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
31968         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
31969         atomic_nand<mode>_soft_tcb): New insns.
31970         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
31971         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
31972         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
31973         Split into atomic_not_fetchsi_hard if operands[0] is unused.
31974         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
31975         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
31976         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
31977         atomic_not<mode>_hard if operands[0] is unused.
31978         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
31979         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
31980         if operands[0] is unused.
31981         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
31982         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
31983         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
31984         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
31985         unused.
31986         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
31987         into atomic_not<mode>_soft_tcb if operands[0] is unused.
31988         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
31989         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
31990         if operands[0] is unused.
31991         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
31992         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
31993         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
31994         atomic_nand_fetchsi_hard if operands[0] is unused.
31995         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
31996         atomic_nand<mode>_hard if operands[0] is unused.
31997         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
31998         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
31999         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
32000         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32001         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
32002         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
32003         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
32004         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32005         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
32006         atomic_not<mode>_hard if operands[0] is unused.
32007         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
32008         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32009         unused.
32010         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
32011         into atomic_not<mode>_soft_tcb if operands[0] is unused.
32012         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
32013         atomic_nand<mode>_hard if operands[0] is unused.
32014         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
32015         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32017 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
32019         PR jit/64810
32020         * Makefile.in (GCC_OBJS): Add gcc-main.o.
32021         * gcc-main.c: New file, containing "main" taken from gcc.c.
32022         * gcc.c (do_self_spec): Free decoded_options.
32023         (class driver): Move declaration to gcc.h.
32024         (main): Move declaration and implementation to new file
32025         gcc-main.c.
32026         (driver_get_configure_time_options): New function.
32027         * gcc.h (class driver): Move this declaration here, from
32028         gcc.c.
32029         (driver_get_configure_time_options): New declaration.
32031 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
32033         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
32034         cross-module inlining.
32035         * cgraph.h (cgraph_node): Add flag merged.
32036         * ipa-icf.c (sem_function::merge): Maintain it.
32038 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
32040         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
32041         instead of OBJECT_P.
32043 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
32045         PR target/62631
32046         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
32047         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
32048         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
32049         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
32051 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
32053         PR other/63504
32054         * combine.c (reg_n_sets_max): New variable.
32055         (can_change_dest_mode, reg_nonzero_bits_for_combine,
32056         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
32057         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
32058         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
32059         (rest_of_handle_combine): Initialize reg_n_sets_max.
32061 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
32063         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
32064         if some always_inline was inlined, apply changes before inlining
32065         heuristically.
32067 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
32069         PR jit/64810
32070         * config/arm/arm.c (arm_option_override): Set
32071         arm_selected_arch/cpu/tune to NULL on entry.
32073 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
32074             Andrew Pinski  <pinskia@gcc.gnu.org>
32075             Jakub Jelinek  <jakub@gcc.gnu.org>
32077         PR target/64231
32078         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
32079         integer typing for small model. Use IN_RANGE.
32081 2015-02-02  Richard Biener  <rguenther@suse.de>
32083         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
32084         * tree-vrp.c (vrp_valueize_1): Likewise.
32086 2015-02-02  Alan Modra  <amodra@gmail.com>
32088         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
32089         than mem for toc_restore.
32090         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
32091         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
32092         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
32094 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
32096         PR target/64047
32097         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32098         explicit default options.
32100 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
32102         PR ipa/64872
32103         * ipa-utils.c (ipa_merge_profiles): Add release argument.
32104         * ipa-icf.c (sem_function::merge): Do not release body when merging.
32105         * ipa-utils.h (ipa_merge_profiles): Update prototype.
32107 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
32109         PR debug/64817
32110         * cfgexpand.c (deep_ter_debug_map): New variable.
32111         (avoid_deep_ter_for_debug): New function.
32112         (expand_debug_expr): If TERed SSA_NAME is in
32113         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
32114         instead of trying to expand SSA_NAME's def stmt.
32115         (expand_debug_locations): When expanding debug bind
32116         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
32117         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
32118         value.
32119         (pass_expand::execute): Call avoid_deep_ter_for_debug on
32120         all debug bind stmts.  Delete deep_ter_debug_map after
32121         expand_debug_location if non-NULL and clear it.
32123 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
32125         PR target/64851
32126         * config/sh/sync.md (atomic_fetch_notsi_hard,
32127         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
32128         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
32129         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
32130         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32131         atomic_not_fetch<mode>_soft_imask): New insns.
32133 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
32135         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
32136         (rank_for_schedule_debug): Split from ...
32137         (rank_for_schedule): ... this.
32138         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
32139         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
32141 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
32143         * doc/md.texi (Machine Constraints): Alphabetize table by target.
32144         * doc/extend.texi (x86 Variable Attributes): Move section to
32145         correct alphabetization after renaming.
32146         (x86 Type Attributes): Likewise.
32147         (Target Builtins): Re-alphabetize menu.
32148         (x86 Built-in Functions): Move section to correct alphabetization
32149         after renaming.
32150         (x86 transactional memory intrinsics): Likewise.
32151         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
32152         and x86 Windows Options in table and menu.
32153         (x86 Options): Move section to correct alphabetization after
32154         renaming.
32155         (x86 Windows Options): Likewise.
32157 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
32159         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
32160         preferred names of the architecture and its 32- and 64-bit
32161         variants.
32162         * doc/invoke.texi: Likewise.
32163         * doc/md.texi: Likewise.
32165 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
32167         PR target/64882
32168         * config/i386/predicates.md (address_no_seg_operand): Reject
32169         non-CONST_INT_P operands in invalid mode.
32171 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
32173         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
32174         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
32175         * config/i386/predicates.md (address_no_seg_operand): Call
32176         address_operand with VOIDmode.
32177         (vsib_address_operand): Ditto.
32178         (address_mpx_no_base_operand): Ditto.
32179         (address_mpx_no_index_operand): Ditto.
32181 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32183         PR target/64688
32184         * lra-constraints.c (original_subreg_reg_mode): New.
32185         (simplify_operand_subreg): Try to simplify subreg of const.  Use
32186         original_subreg_reg_mode for it.
32187         (swap_operands): Update original_subreg_reg_mode.
32188         (curr_insn_transform): Set up original_subreg_reg_mode.
32190 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32192         PR target/64617
32193         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
32194         function.
32195         (process_alt_operands): Use it.
32196         (curr_insn_transform): Check the optional reload pseudo class is
32197         ok for the mode.
32199 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
32201         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
32202         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
32203         prototype.
32204         * toplev.h (init_asm_output): Update comment on use of
32205         UNKNOWN_LOCATION with fatal_error.
32206         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
32207         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
32208         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
32209         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
32210         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
32211         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
32212         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
32213         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
32214         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
32215         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
32216         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
32217         fatal_error changed to pass input_location as first argument.
32219 2015-01-30  Martin Liska  <mliska@suse.cz>
32221         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
32222         in #pragma GCC diagnostic guards.
32224 2015-01-30  Richard Biener  <rguenther@suse.de>
32226         PR tree-optimization/64829
32227         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
32228         not add a widening conversion pattern but hand off extra
32229         widenings to callers.
32230         (vect_recog_widen_mult_pattern): Handle extra widening produced
32231         by vect_handle_widen_op_by_const.
32232         (vect_recog_widen_shift_pattern): Likewise.
32233         (vect_pattern_recog_1): Remove excess vertical space in dumping.
32234         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
32235         (vect_init_vector_1): Likewise.
32236         (vect_get_vec_def_for_operand): Likewise.
32237         (vect_finish_stmt_generation): Likewise.
32238         (vectorizable_load): Likewise.
32239         (vect_analyze_stmt): Likewise.
32240         (vect_is_simple_use): Likewise.
32242 2015-01-29  Jeff Law  <law@redhat.com>
32244         * combine.c (try_combine): Fix typo in comment.
32246 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
32248         PR target/64580
32249         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
32250         (rs6000_stack_info): Add assert.
32251         (rs6000_output_savres_externs): New function, split off from...
32252         (rs6000_output_function_prologue): ... here.  Do not call it for
32253         thunks.
32255 2015-01-29  Jeff Law  <law@redhat.com>
32257         PR target/15184
32258         * combine.c (try_combine): If I0 is a memory load and I3 a store
32259         to a related address, increase the "goodness" of doing a 4-insn
32260         combination with I0-I3.
32261         (make_field_assignment): Handle SUBREGs in the ior+and case.
32263 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
32265         PR tree-optimization/64746
32266         * tree-if-conv.c (mask_exists): New function.
32267         (predicate_mem_writes): Save created mask with given size for further
32268         use.
32269         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
32270         (ifcvt_repair_bool_pattern): Collect all statements that are root
32271         of bool pattern and use iterative algorithm to remove multiple uses
32272         of predicates, display number of required iterations.
32274 2015-01-29  Richard Biener  <rguenther@suse.de>
32276         PR tree-optimization/64853
32277         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
32278         stmt will get simulated again.
32279         * tree-ssa-ccp.c (valueize_op_1): Likewise.
32281 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32283         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
32284         return_in_pc.  Remove redundant assignments.
32285         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
32286         (arm_expand_epilogue): Don't compare boolean with true in if condition.
32288 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
32290         * config/i386/i386.c (ix86_mode_after): Make static.
32292 2015-01-29  Richard Biener  <rguenther@suse.de>
32294         PR tree-optimization/64844
32295         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
32296         dump cost model analysis.
32297         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32298         Do not register adjusted load/store costs here.
32300 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
32301             Uros Bizjak  <ubizjak@gmail.com>
32303         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
32304         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
32305         using x86_use_pseudo_pic_reg.
32306         * config/i386/i386.c (ix86_conditional_register_usage): Remove
32307         support for fixed PIC register.
32308         (ix86_use_pseudo_pic_reg): Not static any more.
32310 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
32312         PR middle-end/64805
32313         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
32314         to avoid error in cgraph node verification.
32316 2015-01-29  Marek Polacek  <polacek@redhat.com>
32318         * doc/standards.texi: Reflect that the default for C is gnu11.
32320 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
32322         PR target/64761
32323         * reorg.c (switch_text_sections_between_p): New function.
32324         (relax_delay_slots): Call it when testing if the jump insn
32325         is removable.  Use targetm.can_follow_jump when testing if
32326         the conditional branch can follow an unconditional jump.
32328 2015-01-27  Caroline Tice  <cmtice@google.com>
32330         Committing VTV Cywin/Ming patch for Patrick Wollgast
32331         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
32332         if -fvtable-verify=preinit/std is used.
32333         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
32334         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
32335         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
32336         if -fvtable-verify=preinit/std is used.
32337         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32338         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
32339         if -fvtable-verify=preinit/std is used.
32340         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
32341         * config/i386/mingw32.h (LIB_SPEC): Likewise.
32342         * varasm.c (assemble_variable): Add code to properly set the comdat
32343         section and name for the .vtable_map_vars section in case the
32344         target is PE or COFF.
32346 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
32348         PR ipa/64801
32349         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
32350         make sane BB profile.
32351         (cgraph_node::expand_thunk): Make sane BB profile.
32352         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
32353         * cgraph.h (init_lowered_empty_function): Update prototype.
32354         * config/i386/i386.c (make_resolver_func): Update call.
32355         * predict.c (gate): Disable branch prediction pass if
32356         profile is already there.
32358 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
32360         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
32361         * opth-gen.awk: Likewise.
32362         * common.opt: Mark flag_fp_contract_mode as Optimization.
32364 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32366         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
32367         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
32369 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
32371         PR target/64659
32372         * config/sh/predicates.md (atomic_arith_operand,
32373         atomic_logical_operand): Remove.
32374         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
32375         (atomic_arith_operand_0): New predicate.
32376         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
32377         Use atomic_arith_operand_0 for input values.
32378         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
32379         atomic_compare_and_swap<mode>_soft_gusa,
32380         atomic_compare_and_swap<mode>_soft_tcb,
32381         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
32382         arith_reg_operand instead of register_operand.
32383         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
32384         atomic_arith_operand_0 for newval input.
32385         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
32386         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
32387         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
32388         arith_reg_operand instead of register_operand.
32389         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
32390         fetchop_predicate_1, fetchop_constraint_1_llcs,
32391         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
32392         fetchop_constraint_1_imask): New code iterator attributes.
32393         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
32394         register_operand.  Use fetchop_predicate_1.
32395         (atomic_fetch_<fetchop_name>si_hard,
32396         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
32397         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
32398         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
32399         and arith_reg_operand instead of register_operand.  Use
32400         fetchop_predicate_1, fetchop_constraint_1_gusa.
32401         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
32402         and arith_reg_operand instead of register_operand.  Use
32403         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
32404         to allow R0 usage.
32405         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
32406         and arith_reg_operand instead of register_operand.  Use
32407         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
32408         to allow R0 usage.
32409         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
32410         register_operand.  Use atomic_logical_operand_1.
32411         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
32412         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
32413         arith_reg_operand instead of register_operand.
32414         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
32415         Use arith_reg_dest and arith_reg_operand instead of register_operand.
32416         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
32417         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
32418         register_operand.  Use fetchop_predicate_1.
32419         (atomic_<fetchop_name>_fetchsi_hard,
32420         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
32421         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
32422         fetchop_constraint_1_llcs.
32423         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
32424         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
32425         fetchop_constraint_1_gusa.
32426         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
32427         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
32428         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
32429         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
32430         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
32431         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
32432         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
32433         register_operand.  Use atomic_logical_operand_1.
32434         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
32435         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
32436         arith_reg_operand instead of register_operand.
32437         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
32438         arith_reg_operand instead of register_operand.  Use logical_operand
32439         and K08.  Adjust asm sequence to allow R0 usage.
32440         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
32441         arith_reg_operand instead of register_operand.  Use logical_operand
32442         and K08.
32444 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
32446         PR other/63504
32447         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
32448         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
32449         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
32450         only get_full_len HOST_WIDE_INTs from get_val () array rather than
32451         all bits in *val_wide.
32453 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
32455         * varpool.c (tls_model_names): Fix names.
32456         (varpool_node::dump): Dump tls- prefix for tls models.
32458 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
32459             Bernd Schmidt  <bernds@codesourcery.com>
32460             Nathan Sidwell  <nathan@codesourcery.com>
32462         * config/nvptx/mkoffload.c: New file.
32463         * config/nvptx/t-nvptx: Add build rules for it.
32464         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
32465         (extra_programs): Add mkoffload.
32466         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
32467         function.
32468         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
32470 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
32472         PR middle-end/64809
32473         * cfgexpand.c (reorder_operands): Skip debug gimples.
32475 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
32477         PR tree-optimization/64277
32478         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
32479         range info when possible to refine estimation.
32481 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32483         PR tree-optimization/64718
32484         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
32485         be a 16bit unsigned integer when n->range is 16.
32486         (bswap_replace): Convert src to that type if necessary for all bswap
32487         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
32488         set in pass_optimize_bswap::execute ().
32490 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
32492         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
32493         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
32494         integer and floating point variants.
32495         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
32497 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
32499         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
32500         for all vector modes.
32502 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
32504         PR bootstrap/64612
32505         * doc/sourcebuild.texi (comdat_group): Document.
32507 2015-01-28  Terry Guo  <terry.guo@arm.com>
32509         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
32511 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
32513         * toplev.c (print_version): Add param "show_global_state", and
32514         only print GGC and plugin information if it is true.
32515         (init_asm_output): Pass in "true" for the new param when calling
32516         print_version.
32517         (process_options): Likewise.
32518         (toplev::main): Likewise.
32519         * toplev.h (print_version): Add new param to decl.
32521 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
32523         PR ipa/60871
32524         PR ipa/64139
32525         * tree.c (lookup_binfo_at_offset): New function.
32526         (get_binfo_at_offset): Use it.
32528 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
32530         PR ipa/64282
32531         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32532         on vtable being vtable.
32534 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32536         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32537         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32538         -mhotpatch= option.
32539         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32540         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
32541         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32542         Renamed.
32543         (s390_hotpatch_trampoline_halfwords_max): Renamed.
32544         (s390_hotpatch_hw_max): New name.
32545         (s390_hotpatch_trampoline_halfwords): Renamed.
32546         (s390_hotpatch_hw_before_label): New name.
32547         (get_hotpatch_attribute): Removed.
32548         (s390_hotpatch_hw_after_label): New name.
32549         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32550         attribute.
32551         (s390_attribute_table): Ditto.
32552         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32553         (s390_function_num_hotpatch_hw): New name.
32554         Remove special handling of inline functions and hotpatching.
32555         Return number of nops before and after the function label.
32556         (s390_can_inline_p): Removed.
32557         (s390_asm_output_function_label): Emit a configurable number of nops
32558         after the function label.
32559         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32560         (TARGET_CAN_INLINE_P) Removed.
32561         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32563 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32564             Jiong Wang  <jiong.wang@arm.com>
32566         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32567         of scratch reg.
32568         (cb<optab><mode>1): Likewise.
32569         * config/aarch64/iterators.md (bcond): New define_code_attr.
32571 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32573         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32574         memory accesses.
32576 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32578         * config/s390/s390.c (s390_register_move_cost): Increase costs for
32579         FPR->GPR moves.
32581 2015-01-27  Richard Biener  <rguenther@suse.de>
32583         * tree-vrp.c (update_value_range): Intersect the range with
32584         old recorded SSA name range information.
32586 2015-01-27  Nick Clifton  <nickc@redhat.com>
32588         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32589         BC, DE and HL registers directly, not via AX.
32590         When decrementing the stack pointer by a large amount, transfer SP
32591         into AX and perform the subtraction there.
32592         (rl78_expand_epilogue): Perform the inverse of the above
32593         enhancements.
32595 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32597         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32599 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
32600             Yury Gribov  <y.gribov@samsung.com>
32602         PR ubsan/64741
32603         * ubsan.c (ubsan_source_location): Refactor code.
32604         (ubsan_type_descriptor): Update type size. Refactor code.
32606 2015-01-27  Richard Biener  <rguenther@suse.de>
32608         PR tree-optimization/56273
32609         PR tree-optimization/59124
32610         PR tree-optimization/64277
32611         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32612         from the first VRP pass.
32614 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
32616         PR ipa/64776
32617         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32618         handle the first argument in the same loop as all the other arguments.
32620         PR rtl-optimization/61058
32621         * jump.c (cleanup_barriers): Update basic block boundaries
32622         if BLOCK_FOR_INSN is non-NULL on PREV.
32624 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
32626         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32627         bounds narrowing, already instrumented calls and calls to
32628         not instrumentable functions.
32630 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
32632         PR tree-optimization/64807
32633         * wide-int.cc (wi::divmod_internal): Clear
32634         b_dividend[dividend_blocks_needed].
32636 2015-01-26  DJ Delorie  <dj@redhat.com>
32638         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32639         volatile memory references.
32641 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
32643         PR target/49263
32644         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32645         remove_insn.
32646         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32647         shifts if it already fits into K08.
32649 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
32651         PR ipa/64730
32652         * ipa-inline.c (inline_small_functions): Print "unknown" even
32653         if edge->call_stmt is non-NULL, but has builtins or unknown
32654         location.
32656         PR middle-end/64421
32657         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32658         with asterisk, skip the first character.
32660 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
32662         PR target/64806
32663         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32664         order change.
32666 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
32668         PR target/64795
32669         * config/i386/i386.md (*movdi_internal): Also check operand 0
32670         to determine TYPE_LEA operand.
32671         (*movsi_internal): Ditto.
32673 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
32675         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32676         OPTION_MASK_QUAD_MEMORY_ATOMIC.
32678 2015-01-26  Renlin Li  <renlin.li@arm.com>
32680         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32681         the comment.
32682         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32683         for higher part.
32685 2015-01-26  Richard Biener  <rguenther@suse.de>
32687         PR middle-end/64764
32688         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32689         combining two BIT_AND_EXPR predicates.
32691 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
32693         PR bootstrap/64754
32694         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32696 2015-01-26  Terry Guo  <terry.guo@arm.com>
32698         * config/arm/arm.c (arm_file_start): Update the assignment of
32699         Tag_ABI_HardFP_use.
32701 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
32703         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32704         pipeline model.
32705         config/arm/arm.md: Include the new Cortex-A57 model.
32706         (generic_sched): Don't use generic_sched when tuning for
32707         Cortex-A57.
32709 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
32710             Uros Bizjak  <ubizjak@gmail.com>
32712         * config/i386/i386.c (get_builtin_code_for_version): Add
32713         support for BMI and BMI2 multiversion functions.
32715 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32717         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32718         (extract_bit_field): Likewise.
32719         (extract_low_bits): Likewise.
32720         (expand_mult): Likewise.
32721         (expand_mult_highpart_adjust): Likewise.
32723 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
32725         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32726         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32727         * config/i386/i386.c (processor_model): Add
32728         M_INTEL_COREI7_BROADWELL.
32729         (arch_names_table): Add "broadwell".
32731 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
32733         PR target/49263
32734         PR target/53987
32735         PR target/64345
32736         PR target/59533
32737         PR target/52933
32738         PR target/54236
32739         PR target/51244
32740         * config/sh/sh-protos.h
32741         (sh_extending_set_of_reg::can_use_as_unextended_reg,
32742         sh_extending_set_of_reg::use_as_unextended_reg,
32743         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32744         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32745         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32746         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32747         (sh_treg_insns): New class.
32748         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32749         (scope_counter): New class.
32750         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32751         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32752         sh_extending_set_of_reg::can_use_as_unextended_reg,
32753         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32754         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32755         sh_split_treg_set_expr): New functions.
32756         (addsubcosts): Handle treg_set_expr.
32757         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32758         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32759         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32760         (sh_insn_operands_modified_between_p): Make non-static.
32761         * config/sh/predicates.md (zero_extend_movu_operand): Allow
32762         simple_mem_operand in addition to displacement_mem_operand.
32763         (zero_extend_operand): Don't allow zero_extend_movu_operand.
32764         (treg_set_expr, treg_set_expr_not_const01,
32765         arith_reg_or_treg_set_expr): New predicates.
32766         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32767         arith_or_int_operand instead of logical_operand.  Convert to
32768         insn_and_split.  Try to optimize constant operand in splitter.
32769         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
32770         (*tstqi_t_zero): Delete.
32771         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
32772         (tstsi_t_and_not): Delete.
32773         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
32774         Convert to insn_and_split.
32775         (unnamed split, tstsi_t_zero_extract_xor,
32776         tstsi_t_zero_extract_subreg_xor_little,
32777         tstsi_t_zero_extract_subreg_xor_big): Delete.
32778         (*tstsi_t_shift_mask): New insn_and_split.
32779         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
32780         to recombine with surrounding insns when splitting.
32781         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
32782         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
32783         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
32784         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
32785         (*cbranch_div0s: Delete.
32786         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
32787         Try to recombine with surrounding insns when splitting.  Add operand
32788         order variants.
32789         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
32790         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
32791         *addc_r_r_msb, *addc_2r_msb): Delete.
32792         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
32793         order variant.
32794         (*addc_negreg_t): New insn_and_split.
32795         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
32796         Try to recombine with surrounding insns when splitting.
32797         Add operand order variants.
32798         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
32799         insn_and_split patterns.
32800         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
32801         surrounding insns when splitting.
32802         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
32803         (*rotcl): Likewise.  Add zero_extract variant.
32804         (*ashrsi2_31): New insn_and_split.
32805         (*negc): Convert to insn_and_split.  Use treg_set_expr.
32806         (*zero_extend<mode>si2_disp_mem): Update comment.
32807         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
32808         condition.
32809         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
32810         with surrounding insns when splitting.
32811         (any_treg_expr_to_reg): New insn_and_split.
32812         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
32813         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
32814         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
32815         *zero_extract_2): New single bit zero extract patterns.
32816         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
32817         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
32818         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
32819         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
32820         set destination.
32821         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
32822         register_operand for set source.
32824 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
32826         * i386.opt (prefetch_sse): New targetsave.
32827         * i386.c (ix86_function_specific_save): Save prefetch_sse.
32828         (ix86_function_specific_restore): Restore prefetch_sse and initialize
32829         ix86_cost/ix86_tune_cost.
32831 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
32833         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
32834         Support the JIT by using 0 as the language type.
32836 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
32838         PR target/64317
32839         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
32840         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
32841         (mark_regno_live, process_bb_lives): Pass new parameter value to
32842         make_hard_regno_born.
32844 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
32846         PR rtl-optimization/63637
32847         PR rtl-optimization/60663
32848         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
32849         if elt->cost is MAX_COST for ASM_OPERANDS.
32850         (find_sets_in_insn): Fix up comment typo.
32851         (cse_insn): Don't set src_volatile for all non-volatile
32852         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
32853         or with "memory" clobber.  Set elt->cost to MAX_COST
32854         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
32855         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
32857 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
32859         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
32860         alternative 1.
32862 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
32864         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
32865         libgcc/config/i386/elf-lib.h.
32867 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
32869         PR driver/64737
32870         * gcc.c (print_configuration): Don't print a blank line at the end
32871         here...
32872         (run_attempt): ... but here unstead.
32874         PR middle-end/64734
32875         * omp-low.c (scan_sharing_clauses): Don't ignore
32876         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
32877         on target data/update constructs.
32879 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32881         PR target/50928
32882         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
32883         (DEBUG_RELOAD): Removed define.
32884         (m32c_limit_reload_class): Enable traces with if DEBUG0.
32885         (m32c_function_arg): Added a type cast.
32886         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
32887         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
32888         * config/m32c/bitops.md (andqi3_16): Likewise.
32889         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
32890         (push_a01_l): Likewise.
32892 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
32894         PR jit/64721
32895         * main.c (main): Construct toplev instances with init_signals=true.
32896         * toplev.c (general_init): Add param "init_signals", and use it to
32897         conditionalize the calls to signal and host_hooks.extra_signals.
32898         (toplev::toplev): Add param "init_signals".
32899         (toplev::main): When invoking general_init, pass m_init_signals
32900         to control whether signal-handlers are installed.
32901         * toplev.h (toplev::toplev): Add param "init_signals".
32902         (toplev::m_init_signals): New field.
32904 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
32906         PR jit/64722
32907         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
32908         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
32909         latter may be affected by the former (e.g. on i686).
32911 2015-01-23  Martin Liska  <mliska@suse.cz>
32913         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
32914         false positive during profiledbootstrap.
32916 2015-01-23  Tom de Vries  <tom@codesourcery.com>
32918         PR libgomp/64672
32919         * lto-opts.c (lto_write_options): Output non-explicit conservative
32920         -fno-openacc.
32921         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
32922         (append_compiler_options): Pass -fopenacc through.
32924 2015-01-23  Tom de Vries  <tom@codesourcery.com>
32926         PR libgomp/64707
32927         * lto-opts.c (lto_write_options): Output non-explicit conservative
32928         -fno-openmp.
32929         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
32930         (append_compiler_options): Pass -fopenmp through.
32932 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
32934         PR debug/64511
32935         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
32936         GTY markup.
32938         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
32939         * diagnostic.def (DK_ICE_NOBT): New kind.
32940         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
32941         like DK_ICE, but never print backtrace.
32942         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
32943         (internal_error_no_backtrace): New function.
32944         * gcc.c (execute): Use internal_error_no_backtrace instead of
32945         internal_error.
32947 2015-01-22  Jeff Law  <law@redhat.com>
32949         PR target/52076
32950         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
32951         improve code density for small immediate to memory case.
32952         (insv): Better handle bitfield assignments when the field is
32953         being set to all ones.
32954         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
32955         operand predicate.
32957 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32958             Jakub Jelinek  <jakub@redhat.com>
32960         PR middle-end/64729
32961         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
32962         for !TARGET_LIBC_PROVIDES_SSP version and
32963         -fstack-protector-{all,strong,explicit} otherwise.
32964         * config/freebsd.h (LINK_SSP_SPEC): Handle
32965         -fstack-protector-{strong,explicit}.
32967 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
32968             H.J. Lu  <hongjiu.lu@intel.com>
32970         PR ipa/64694
32971         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
32972         heap.
32974 2015-01-22  Wei Mi  <wmi@google.com>
32976         PR rtl-optimization/64557
32977         * dse.c (record_store): Call get_addr for mem_addr.
32978         (check_mem_read_rtx): Likewise.
32980 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
32982         * fold-const.c (const_binop): Add early return for non-tcc_binary.
32984 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
32986         * toplev.c (init_local_tick): Process the failure when read
32987         fails for random_seed.
32989         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
32990         'pretty_name' to avoid memory overflow.
32992 2015-01-22  Richard Biener  <rguenther@suse.de>
32994         PR middle-end/64728
32995         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
32996         abnormal coalescing on undefined SSA names.
32998 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
33000         PR target/64688
33001         PR target/64477
33002         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
33003         for alternative 3.
33004         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
33006 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
33008         PR middle-end/63325
33009         * fold-const.c (fold_checksum_tree): Don't include value of
33010         expr->decl_with_vis.symtab_node in the checksum.
33012 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33014         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
33016 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33018         PR driver/64690
33019         * gcc.c (insert_comments): New function.
33020         (try_generate_repro): Call it.
33021         (append_text): Removed.
33023 2015-01-22  Richard Biener  <rguenther@suse.de>
33025         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
33026         with IL incompatible options.  Properly honor user optimize
33027         attributes.
33029 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
33031         PR rtl-optimization/64682
33032         * combine.c (distribute_notes): When moving a death note for
33033         a register that is set in the new I2, make sure to put it
33034         before that new I2.
33036 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
33038         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
33039         not TARGET_DEFAULT.
33041 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
33043         PR debug/64511
33044         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
33045         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
33046         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
33048         PR sanitizer/64706
33049         * doc/invoke.texi (-fsanitize=vptr): Document.
33051         PR rtl-optimization/62078
33052         * dse.c: Include cfgcleanup.h.
33053         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
33054         anything call purge_all_dead_edges and cleanup_cfg at the end
33055         of the pass.
33057 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
33059         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
33060         edges.
33062 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33064         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
33065         decl attribute.
33067 2015-01-21  David Sherwood  <david.sherwood@arm.com>
33068             Tejas Belagod <Tejas.Belagod@arm.com>
33070         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
33071         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
33072         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
33073         Removed.
33075 2015-01-21  David Sherwood  <david.sherwood@arm.com>
33076             Tejas Belagod <Tejas.Belagod@arm.com>
33078         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
33079         (aarch64_reverse_mask): New decls.
33080         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
33081         (insn_count): New mode_attr.
33082         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
33083         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
33084         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
33085         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
33086         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
33087         (aarch64_simd_st4): New patterns.
33088         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33089         (aarch64_reverse_mask): New functions.
33091 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
33093         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
33094         Declare.
33095         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
33096         addressing modes for BE.
33097         (aarch64_print_operand): Add 'R' specifier.
33098         (aarch64_simd_disambiguate_copy): Delete.
33099         (aarch64_simd_emit_reg_reg_move): New function.
33100         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
33101         in define_splits for structural moves.
33102         (mov<mode>): Use less restrictive predicates.
33103         (*aarch64_mov<mode>): Simplify and only allow for LE.
33104         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
33106 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
33108         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
33110 2015-01-21  Richard Henderson  <rth@redhat.com>
33112         PR target/64669
33113         * ccmp.c (used_in_cond_stmt_p): Remove.
33114         (expand_ccmp_expr): Don't use it.
33116 2015-01-21  Nick Clifton  <nickc@redhat.com>
33118         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
33119         PARALLELs.
33121 2015-01-21  Richard Biener  <rguenther@suse.de>
33123         PR middle-end/64313
33124         * tree-core.h (builtin_info, builtin_info_type): Turn from
33125         an object with two arrays into an array of an object with
33126         decl and two flags, implicit_p and declared_p.
33127         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
33128         set_builtin_decl, set_builtin_decl_implicit_p,
33129         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
33130         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
33131         * builtins.c (builtin_info): Adjust.
33132         * gimplify.c (gimplify_addr_expr): References to builtins
33133         that have been declared by the user makes them eligible for
33134         use by the compiler.  Call set_builtin_decl_implicit_p on them.
33136 2015-01-20  Jeff Law  <law@redhat.com>
33138         PR target/59946
33139         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
33140         allow pc-relative addresses in operand predicates or constraints.
33142 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
33144         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
33145         neon on aarch32 processors for stringops.
33147 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33149         PR ipa/63576
33150         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
33152 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33154         PR lto/45375
33155         * ipa-inline.c: Include lto-streamer.h
33156         (report_inline_failed_reason): Output source file differences and
33157         flags on optimization/target node mismatch.
33158         (can_inline_edge_p): Consider caller to be the outer inline function;
33159         be less restrictive about matching opimize and optimize_size attributes.
33160         (inline_account_function_p): Break out from ...
33161         (inline_small_functions): ... here.
33162         * ipa-inline-transform.c (clone_inlined_nodes): Use
33163         inline_account_function_p.
33164         (inline_call): Use optimize attribution; use inline_account_function_p.
33165         (inline_transform): Use opt_for_fn.
33166         * ipa-inline.h (inline_account_function_p): Declare.
33168 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
33170         PR debug/64663
33171         * dwarf2out.c (decl_piece_node): Don't put bitsize into
33172         mode if bitsize <= 0.
33173         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
33174         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
33175         sizes and positions.
33177 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
33179         * config/nios2/nios2.c (nios2_asm_file_end): Implement
33180         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
33181         needed.
33182         (TARGET_ASM_FILE_END): Define.
33184 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33186         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
33187         (struct tune_params): Use the enum.
33188         * arm.c (arm_*_tune): Update.
33189         (arm_option_override): Update.
33191 2015-01-20  Richard Biener  <rguenther@suse.de>
33193         PR ipa/64684
33194         * ipa-reference.c (add_static_var): Inline ...
33195         (analyze_function): ... here after splitting out from ...
33196         (is_proper_for_analysis): ... this.
33198 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
33200         PR target/64149
33201         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
33202         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
33203         replace the conditional with it's true branch.
33204         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
33205         (arm_lra_p): Remove.
33207 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
33209         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
33211 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
33213         * config/tilegx/mul-tables.c: Move symtab.h include after
33214         coretypes.h include.
33215         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
33216         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
33217         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
33218         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
33219         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33221 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33223         PR bootstrap/64676
33224         Revert:
33225         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
33227         PR rtl-optimization/64081
33228         * loop-iv.c (def_pred_latch_p): New function.
33229         (latch_dominating_def): Allow specific cases with non-single
33230         definitions.
33231         (iv_get_reaching_def): Likewise.
33232         (check_complex_exit_p): New function.
33233         (check_simple_exit): Use check_complex_exit_p to allow certain cases
33234         with exits not executing on any iteration.
33236 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33238         PR lto/45375
33239         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
33240         to set branch cost.
33242 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33244         PR lto/45375
33245         * i386.c (gate): Check flag_expensive_optimizations and
33246         optimize_size.
33247         (ix86_option_override_internal): Drop optimize_size condition
33248         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
33249         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
33250         MASK_PREFER_AVX128.
33251         (ix86_avx256_split_vector_move_misalign,
33252         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
33253         * sse.md (all uses of TARGET_PREFER_AVX128): Add
33254         optimize_insn_for_speed_p check.
33256 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
33258         * config/mips/mips.h (FP_ASM_SPEC): New define.
33259         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
33260         instead.
33262 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
33264         PR target/53988
33265         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
33266         nullptr for insn when reaching the first insn.
33267         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33268         (sh_insn_operands_modified_between_p): Add nullptr check.
33269         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
33270         sign extending mem load if the insn contains any UNSPEC or
33271         UNSPEC_VOLATILE.
33273 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33275         * params.def (inline-unit-growth): Drop to 15%.
33276         * invoke.texi (inline-unit-growth): Document change.
33278 2015-01-19  Martin Liska  <mliska@suse.cz>
33280         PR ipa/64668
33281         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
33282         function for second argument of OBJ_TYPE_REF.
33284 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33286         PR ipa/64218
33287         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
33288         whether function is an alias.
33290 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
33292         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
33293         cases.
33295 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
33297         PR rtl-optimization/64671
33298         * lra-remat.c (operand_to_remat): Don't consider jump and call
33299         insns.
33301 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
33303         PR target/59828
33304         * config/rs6000/default64.h: Include rs6000-cpus.def.
33305         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
33306         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
33307         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
33308         and POWER8.
33309         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
33310         POWER8.
33311         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
33312         pseudo-op to specify assembler dialect.
33314 2015-01-19  Martin Liska  <mliska@suse.cz>
33316         PR ipa/64664
33317         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
33318         Handle safe potentially removed nodes during filtering.
33320 2015-01-19  Martin Liska  <mliska@suse.cz>
33322         * doc/extend.texi (no_icf): Add new attribute description.
33323         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
33324         where the pass attempts to merge a function with no_icf attribute.
33326 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33328         PR target/64532
33329         * doc/md.texi (ARM Options): Document register constraints.
33331 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
33332             Andrew Pinski  <apinski@cavium.com>
33334         PR target/64304
33335         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
33336         (ashl<mode>3): Don't expand if operands[2] is not constant.
33338 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33340         PR target/64448
33341         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
33342         Match xor-and-xor RTL pattern.
33344 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
33346         PR rtl-optimization/64081
33347         * loop-iv.c (def_pred_latch_p): New function.
33348         (latch_dominating_def): Allow specific cases with non-single
33349         definitions.
33350         (iv_get_reaching_def): Likewise.
33351         (check_complex_exit_p): New function.
33352         (check_simple_exit): Use check_complex_exit_p to allow certain cases
33353         with exits not executing on any iteration.
33355 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
33357         * common.opt (fgraphite): Fix a typo.
33359 2015-01-19  Felix Yang  <felix.yang@huawei.com>
33361         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33362         pattern.
33363         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
33364         uminp, smax_nanp, smin_nanp): New builtins.
33365         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
33366         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
33367         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
33368         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
33369         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
33370         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
33371         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
33372         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
33373         vpminnms_f32): Rewrite using builtin functions.
33375 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
33377         PR libgomp/64625
33378         * omp-low.c (offload_symbol_decl): Remove variable.
33379         (get_offload_symbol_decl): Remove function.
33380         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
33381         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
33382         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
33383         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
33384         BUILT_IN_GOACC_UPDATE don't pass it at all.
33386 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
33388         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
33389         callers.
33391 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
33393         * ipa-chkp.c (chkp_produce_thunks): Add early param
33394         to split thunks production into two passes.  Keep
33395         'always_inline' function bodies after the first pass.
33396         (pass_data_ipa_chkp_early_produce_thunks): New.
33397         (pass_ipa_chkp_early_produce_thunks): New.
33398         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
33399         chkp_produce_thunks signature.
33400         (make_pass_ipa_chkp_early_produce_thunks): New.
33401         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
33402         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
33403         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
33405 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
33407         * cgraph.c (cgraph_node::dump): Dump profile flags.
33409 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
33411         PR target/64652
33412         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
33413         reg appear first in the parallel.
33415 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
33417         * ipa-reference.c (set_reference_optimization_summary,
33418         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
33419         disabled.
33420         (ignore_module_statics): New static var.
33421         (propagate_bits): If ipa-reference is disabled, do not look into local
33422         properties.
33423         (analyze_function): Disable analysis when ipa_reference is disabled.
33424         (generate_summary): Do not dump when reference is disabled;
33425         collect vars accessed from functions with ipa-reference disabled.
33426         (get_read_write_all_from_node): When ipa-reference is disabled, use the
33427         node flags.
33428         (gate): Enable for LTO.
33429         (ignore_edge_p): New function.
33430         (propagate): Skip functions w/o ipa-reference analysis.
33431         * optc-save-gen.awk: Handle optimize_debug correctly.
33432         * opth-gen.awk: Likewise.
33433         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
33434         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
33435         fira-share-save-slots, fira-share-spill-slots,
33436         fmodulo-sched-allow-regmoves, fpartial-inlining,
33437         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
33438         ftracer, ftree-parallelize-loops, fassociative-math,
33439         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
33440         Optimization
33441         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
33442         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
33443         Optimization.
33444         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
33445         Fix for IPA.
33447 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
33449         PR ipa/64378
33450         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
33451         flag correctly.
33452         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
33454 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
33456         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
33457         Remove duplicate option listings.
33459 2015-01-18  Felix Yang  <felix.yang@huawei.com>
33461         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
33462         (autofdo_source_profile::get_callsite_total_count,
33463         function_instance::get_function_instance_by_decl,
33464         string_table::get_index, string_table::get_index_by_decl,
33465         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
33466         Fix comment typos. Reformatting and minor code rearrangement.
33468 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
33470         * config/rs6000/rs6000.md (probe_stack): Delete.
33471         (probe_stack_address): New.
33473 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
33475         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
33476         to test for 32-bit ABIs, not !TARGET_POWERPC64.
33478 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
33480         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
33481         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
33482         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
33483         snafu.
33484         (rs6000_libcall_value): Use the new function.
33486 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
33488         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
33490 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
33492         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
33493         implement a more precise life analysis for it during backward scan.
33495 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
33497         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
33499 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
33501         PR rtl-optimization/52773
33502         * calls.c (emit_library_call_value): When pushing arguments use
33503         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
33504         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
33505         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
33507 2015-01-17  Jeff Law  <law@redhat.com>
33509         PR rtl-optimization/32790
33510         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
33511         not ZERO_EXTEND in SET_DESTs.
33513 2015-01-17  Alan Modra  <amodra@gmail.com>
33515         * cprop.c (do_local_cprop): Revert last change.
33517 2015-01-16  DJ Delorie  <dj@redhat.com>
33518             Nick Clifton  <nickc@redhat.com>
33520         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33521         (addhi3_real): Likewise.  Fix [HL+0] syntax.
33522         (subqi3_real): Likewise.
33523         (subhi3_real): Likewise.
33524         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
33525         (cbranchhi4_real): Likewise.
33526         (cbranchhi4_real_inverted): Likewise.
33527         (cbranchsi4_real_lt): Likewise.
33528         (cbranchsi4_real_ge): Likewise.
33529         (cbranchsi4_real_ge): Likewise.
33530         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33531         (sub<mode>3_virt): Likewise.
33532         (cbranchqi4_virt): Likewise.
33533         (cbranchhi4_virt): Likewise.
33534         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33535         always use '[reg+imm]' even when imm is zero.
33536         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33537         (rl78_general_operand): New.
33538         (rl78_nonimmediate_operand): New.
33539         (rl78_nonfar_operand): Use them.
33540         (rl78_nonfar_nonimm_operand): Likewise.
33541         (rl78_stack_based_mem): Fix.
33542         * config/rl78/constraints.md (Ibqi): New.
33543         (IBqi): New.
33544         (Wsa): New.
33545         (Wsf): New.
33546         (Cs1): Fix.
33547         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33548         (iorqi3): Likewise.
33549         (xorqi3): Likewise.
33550         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33552         * config/rl78/constrains (Qs8): New constraint.
33553         * config/rl78/rl78.c (rl78_flags_already_set): New function.
33554         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33555         * config/rl78/rl78-real.md (update_Z): New attribute.
33556         Update patterns to set it.
33557         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33558         shorter compare and branch sequence can be used.
33559         (cbranchhi4_real): Likewise.
33560         (cbranchhi4_real_inverted): Likewise.
33562         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33563         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33564         address space.
33565         * config/rl78/rl78.c (rl78_get_name_encoding): New.
33566         (rl78_option_override): Allow -mes0 only if C.
33567         (characterize_address): Support subregs of symbol_refs.
33568         (rl78_addr_space_address_mode): Move.  Add __near.
33569         (rl78_far_p): Likewise.
33570         (rl78_addr_space_pointer_mode): Likewise.
33571         (rl78_as_legitimate_address): Likewise.
33572         (rl78_addr_space_subset_p): Likewise.
33573         (rl78_addr_space_convert): Likewise.
33574         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33575         symbols with -mes0.
33576         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
33577         addressing.
33578         (rl78_alloc_physical_registers_op1): Change logic to prefer
33579         symbol[BC] addressing.
33580         (frodata_section): New.
33581         (rl78_asm_init_sections): Initialize it.
33582         (rl78_select_section): Put __far readonly symbols in .frodata.
33583         (rl78_make_type_far): New.
33584         (rl78_insert_attributes): Force all readonly symbols to be
33585         __far when -mes0.
33586         (rl78_asm_out_integer): New.
33587         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33588         * config/rl78/rl78.opt (-mes0): New.
33590         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33591         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33592         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33593         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33594         (rl78_saddr_p): New.
33595         (rl78_output_aligned_common): New.
33596         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33597         (rl78_handle_saddr_attribute): New.
33598         (rl78_handle_naked_attribute): New.
33599         (rl78_attribute_table): Add saddr.
33600         (rl78_print_operand_1): Don't print '!' on saddr operands.
33601         (rl78_print_operand_1): Strip encodings.
33602         (rl78_sfr_p): New.
33603         (rl78_strip_name_encoding): New.
33604         (rl78_attrlist_to_encoding): New.
33605         (rl78_encode_section_info): New.
33606         (rl78_asm_init_sections): New.
33607         (rl78_select_section): New.
33608         (rl78_output_labelref): New.
33609         (rl78_output_aligned_common): New.
33610         (rl78_asm_out_integer): New.
33611         (rl78_asm_ctor_dtor): New.
33612         (rl78_asm_constructor): New.
33613         (rl78_asm_destructor): New.
33615         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33616         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33617         (transcode_memory_rtx): Update.
33618         (rl78_expand_epilogue): Use A_REG instead of 0.
33620 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33622         * config/arm/arm-protos.h (struct tune_params): New field
33623         sched_autopref_queue_depth.
33624         * config/arm/arm.c (sched-int.h): Include header.
33625         (arm_first_cycle_multipass_dfa_lookahead_guard,)
33626         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33627         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33628         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33629         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33630         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33631         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33632         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33633         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
33634         * config/arm/t-arm (arm.o): Update.
33635         * haifa-sched.c (update_insn_after_change): Update.
33636         (rank_for_schedule): Use auto-prefetcher model, if requested.
33637         (autopref_multipass_init): New static function.
33638         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33639         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33640         variable for debug dumps.
33641         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33642         (autopref_multipass_dfa_lookahead_guard): New global function that
33643         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33644         (init_h_i_d): Update.
33645         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33646         * sched-int.h (enum autopref_multipass_data_status): New const enum.
33647         (autopref_multipass_data_): Structure for auto-prefetcher data.
33648         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33649         (struct _haifa_insn_data:autopref_multipass_data): New field.
33650         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33651         (autopref_multipass_dfa_lookahead_guard): Declare.
33653 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33655         * rtlanal.c (get_base_term): Handle SCRATCH.
33657 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
33659         * config/aarch64/aarch64.c
33660         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33661         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33662         * config/arm/arm.c
33663         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33664         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33666 2015-01-17  Alan Modra  <amodra@gmail.com>
33668         * cprop.c (do_local_cprop): Disallow replacement of fixed
33669         hard registers.
33671 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33673         PR target/62066
33674         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33675         early return 0.
33677 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33679         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33680         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33682 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33684         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33685         * config/arm/thumb1.md: ... Here.
33687 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33689         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33690         TImode for TARGET_32BIT.
33692 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33694         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33695         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33696         as ...
33697         (rs6000_abi_word_mode): New function.
33699 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33701         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33702         instead of UNITS_PER_WORD to describe the size of stack slots.
33704 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33706         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33707         as rs6000_promote_function_mode.  Move comment to there.
33708         (rs6000_promote_function_mode): New function.
33710 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
33712         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33713         -mpowerpc64 is active.
33715 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
33717         PR middle-end/64353
33718         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33719         virtuals on start.
33721 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
33723         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33724         introduced in revision 219724.
33726 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33727             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33729         PR target/64263
33730         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33731         destination is not a GP reg.
33732         (*movdi_aarch64): Likewise.
33734 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
33736         PR target/64623
33737         * config/rs6000/default64.h: Revert ISA change.
33739 2015-01-16  Richard Biener  <rguenther@suse.de>
33741         PR middle-end/64614
33742         * tree-ssa-uninit.c: Include tree-cfg.h.
33743         (MAX_SWITCH_CASES): New define.
33744         (convert_control_dep_chain_into_preds): Handle switch statements.
33745         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33746         (normalize_one_pred_1): Do not split bit-manipulations.
33747         Record (x & CST).
33749 2015-01-16  Richard Biener  <rguenther@suse.de>
33751         PR tree-optimization/64568
33752         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33753         complex load rewriting for TARGET_MEM_REFs.
33755 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
33757         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33759 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
33761         PR target/64149
33762         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33763         variable.
33764         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33765         (aarch64_lra_p): Remove.
33767 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
33769         PR target/64363
33770         * ipa-chkp.h (chkp_instrumentable_p): New.
33771         * ipa-chkp.c: Include tree-inline.h.
33772         (chkp_instrumentable_p): New.
33773         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
33774         Fix processing of not instrumentable functions.
33775         (chkp_versioning): Use chkp_instrumentable_p. Warn about
33776         not instrumentable functions.
33777         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
33778         chkp_instrumentable_p.
33779         * tree-inline.h (copy_forbidden): New.
33780         * tree-inline.c (copy_forbidden): Not static anymore.
33782 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33784         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
33785         ptr1, ptr2 unused.
33787 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
33789         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
33790         type OP_OUT to OP_INOUT.
33792 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
33794         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
33795         (high x) y) to y if x and y have the same base.
33797 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
33799         * config/arm/cortex-a57.md: New.
33800         * config/aarch64/aarch64.md: Include it.
33801         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
33802         * config/aarch64/aarch64-tune.md: Regenerate.
33804 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
33806         PR target/64015
33807         * ccmp.c (expand_ccmp_next): New function.
33808         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
33809         and compare insn sequence.
33810         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
33811         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
33812         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
33813         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
33814         (*ccmp_ior): Changed to ccmp_ior<mode>.
33815         (cmp<mode>): New pattern.
33816         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
33817         parameters.
33818         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
33820 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
33822         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
33823         _mm256_bsrli_epi128): New.
33824         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
33826 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
33828         * expmed.c (store_bit_field_using_insv): Improve warning message.
33829         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
33831 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
33833         PR rtl-optimization/64011
33834         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
33835         there is partial overflow.
33837 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
33839         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
33840         prototype.
33841         (nds32_expand_epilogue_v3pop): Likewise.
33842         * config/nds32/nds32.md (sibcall): Define this for sibling call
33843         optimization.
33844         (sibcall_register): Likewise.
33845         (sibcall_immediate): Likewise.
33846         (sibcall_value): Likewise.
33847         (sibcall_value_register): Likewise.
33848         (sibcall_value_immediate): Likewise.
33849         (sibcall_epilogue): Likewise.
33850         (epilogue): Pass false to indicate this is not a sibcall epilogue.
33851         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
33852         (nds32_expand_epilogue_v3pop): Likewise.
33854 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
33856         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
33857         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
33858         (return_internal): New.
33859         (return): Define this named pattern.
33860         (simple_return): Define this named pattern.
33861         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
33862         pattern instead of unspec_volatile_func_return.
33863         (nds32_expand_epilogue_v3pop): Likewise.
33864         (nds32_can_use_return_insn): New function.
33866 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
33868         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
33869         * config/nds32/nds32.md (pop25return): New.
33870         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
33871         pop25return pattern.
33873 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
33875         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
33876         -mforbid-fp-as-gp, and -mex9 options.
33878 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
33880         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
33881         remove -mgp-direct option.
33883 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
33885         * doc/invoke.texi (--param early-inlining-insns): Update default value.
33886         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
33888 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
33890         * ipa-inline.c (inline_small_functions): Work around hints
33891         cache issue.
33893 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
33895         PR target/59710
33896         * doc/invoke.texi (Option Summary): Document new Nios II
33897         -mgpopt= syntax.
33898         (Nios II Options): Likewise.
33899         * config/nios2/nios2.opt: Add -mgpopt= option support.
33900         Modify existing -mgpopt and -mno-gpopt options to be aliases.
33901         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
33902         * config/nios2/nios2.c (nios2_option_override): Adjust
33903         -mgpopt defaulting.
33904         (nios2_in_small_data_p): Return true for explicit small data
33905         sections even with -G0.
33906         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
33907         option choices.
33909 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
33911         PR ipa/64612
33912         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
33913         of comdat locals.
33914         (inline_call): Fix removal of aliases.
33916 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
33918         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
33919         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
33920         * opts.c (common_handle_option): Add -fsanitize=vptr.
33921         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
33922         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
33923         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
33924         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
33925         (ubsan_expand_vptr_ifn): New prototype.
33926         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
33927         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
33928         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
33929         expand_LOOP_VECTORIZED): Make argument nameless, remove
33930         ATTRIBUTE_UNUSED.
33931         (expand_UBSAN_VPTR): New function.
33932         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
33933         in fn spec.
33934         (UBSAN_VPTR): New internal function.
33935         * sanopt.c (tree_map_traits): Renamed to ...
33936         (sanopt_tree_map_traits): ... this.
33937         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
33938         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
33939         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
33940         (maybe_optimize_ubsan_vptr_ifn): New function.
33941         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
33942         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
33943         -fsanitize=vptr.
33944         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
33945         internal calls like pure functions for aliasing, even when they
33946         have other side-effects that prevent making them ECF_PURE.
33947         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
33948         (ubsan_expand_vptr_ifn): New function.
33950 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
33952         PR rtl-optimization/64110
33953         * stmt.c (parse_output_constraint): Process '^' and '$'.
33954         (parse_input_constraint): Ditto.
33955         * lra-constraints.c (process_alt_operands): Process the new
33956         constraints.
33957         * ira-costs.c (record_reg_classes): Process the new constraint
33958         '^'.
33959         * genoutput.c (indep_constraints): Add '^' and '$'.
33960         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
33961         * doc/md.texi: Add description of the new constraints.
33963 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
33964             Bernd Schmidt  <bernds@codesourcery.com>
33965             Cesar Philippidis  <cesar@codesourcery.com>
33966             James Norris  <jnorris@codesourcery.com>
33967             Tom de Vries  <tom@codesourcery.com>
33968             Ilmir Usmanov  <i.usmanov@samsung.com>
33969             Dmitry Bocharnikov  <dmitry.b@samsung.com>
33970             Evgeny Gavrin  <e.gavrin@samsung.com>
33971             Jakub Jelinek  <jakub@redhat.com>
33973         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
33974         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33975         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33976         New function types.
33977         * builtins.c: Include "gomp-constants.h".
33978         (expand_builtin_acc_on_device): New function.
33979         (expand_builtin, is_inexpensive_builtin): Handle
33980         BUILT_IN_ACC_ON_DEVICE.
33981         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
33982         New macros.
33983         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
33984         flag_openmp.
33985         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
33986         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
33987         i386/intelmic-offload.h.
33988         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
33989         to libgomp and its dependencies.
33990         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
33991         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
33992         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
33993         * config/ia64/hpux.h (LIB_SPEC): Likewise.
33994         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
33995         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
33996         * doc/generic.texi: Update for OpenACC changes.
33997         * doc/gimple.texi: Likewise.
33998         * doc/invoke.texi: Likewise.
33999         * doc/sourcebuild.texi: Likewise.
34000         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
34001         GF_OMP_FOR_KIND_OACC_LOOP.
34002         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
34003         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
34004         GF_OMP_TARGET_KIND_OACC_UPDATE,
34005         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34006         Dump more data.
34007         * gimple.c: Update comments for OpenACC changes.
34008         * gimple.def: Likewise.
34009         * gimple.h: Likewise.
34010         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
34011         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34012         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
34013         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34014         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
34015         appropriate place.
34016         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
34017         * gimplify.c: Include "gomp-constants.h".
34018         Update comments for OpenACC changes.
34019         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
34020         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
34021         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34022         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
34023         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34024         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34025         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
34026         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34027         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
34028         OMP_CLAUSE_SEQ.
34029         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
34030         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
34031         OMP_CLAUSE_SET_MAP_KIND.
34032         (gimplify_oacc_cache): New function.
34033         (gimplify_omp_for): Handle OACC_LOOP.
34034         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
34035         OACC_DATA.
34036         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
34037         OACC_EXIT_DATA, OACC_UPDATE.
34038         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
34039         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
34040         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
34041         (gimplify_body): Consider flag_openacc next to flag_openmp.
34042         * lto-streamer-out.c: Include "gomp-constants.h".
34043         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
34044         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
34045         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
34046         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
34047         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
34048         (BUILT_IN_ACC_ON_DEVICE): New builtins.
34049         * omp-low.c: Include "gomp-constants.h".
34050         Update comments for OpenACC changes.
34051         (struct omp_context): Add reduction_map, gwv_below, gwv_this
34052         members.
34053         (extract_omp_for_data, use_pointer_for_field, install_var_field)
34054         (new_omp_context, delete_omp_context, scan_sharing_clauses)
34055         (create_omp_child_function, scan_omp_for, scan_omp_target)
34056         (check_omp_nesting_restrictions, lower_reduction_clauses)
34057         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
34058         Update for OpenACC changes.
34059         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
34060         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
34061         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
34062         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34063         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
34064         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
34065         OMP_CLAUSE_MAP_*.
34066         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
34067         Handle GF_OMP_FOR_KIND_OACC_LOOP.
34068         (expand_omp_target, lower_omp_target): Handle
34069         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34070         GF_OMP_TARGET_KIND_OACC_UPDATE,
34071         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
34072         GF_OMP_TARGET_KIND_OACC_DATA.
34073         (pass_expand_omp::execute, execute_lower_omp)
34074         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
34075         flag_openmp.
34076         (offload_symbol_decl): New variable.
34077         (oacc_get_reduction_array_id, oacc_max_threads)
34078         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
34079         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
34080         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
34081         (oacc_gimple_assign, oacc_initialize_reduction_data)
34082         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
34083         functions.
34084         (is_targetreg_ctx): Remove function.
34085         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
34086         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
34087         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34088         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
34089         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
34090         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
34091         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
34092         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
34093         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
34094         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
34095         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
34096         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
34097         * tree-core.h: Update comments for OpenACC changes.
34098         (enum omp_clause_map_kind): Remove.
34099         (struct tree_omp_clause): Change type of map_kind member from enum
34100         omp_clause_map_kind to unsigned char.
34101         * tree-inline.c: Update comments for OpenACC changes.
34102         * tree-nested.c: Likewise.  Include "gomp-constants.h".
34103         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
34104         (convert_tramp_reference_stmt, convert_gimple_call): Update for
34105         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
34106         OMP_CLAUSE_SET_MAP_KIND.
34107         * tree-pretty-print.c: Include "gomp-constants.h".
34108         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
34109         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
34110         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
34111         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
34112         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34113         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
34114         instead of OMP_CLAUSE_MAP_*.
34115         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
34116         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
34117         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34118         * tree-streamer-in.c: Include "gomp-constants.h".
34119         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
34120         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
34121         * tree-streamer-out.c: Include "gomp-constants.h".
34122         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
34123         OMP_CLAUSE_MAP_*.
34124         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
34125         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
34126         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
34127         * tree.c (omp_clause_num_ops): Update accordingly.
34128         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
34129         Likewise.
34130         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
34131         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
34132         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
34133         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
34134         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
34135         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
34136         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
34137         (OMP_CLAUSE_SET_MAP_KIND): New macro.
34138         * varpool.c (varpool_node::get_create): Consider flag_openacc next
34139         to flag_openmp.
34140         * config/i386/intelmic-offload.h: New file.
34141         * config/nvptx/offload.h: Likewise.
34143 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34145         * explow.h: Remove duplicate contents.
34146         * dojump.h: Likewise.
34148 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
34150         * arm.c (arm_xgene_tune): Add default initializer for instruction
34151         fusion.
34153 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
34155         PR ipa/64068
34156         PR ipa/64559
34157         * ipa.c (symbol_table::remove_unreachable_nodes):
34158         Do not put abstract origins into boundary.
34160 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
34162         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
34163         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
34165 2015-01-15  Steve Ellcey  <sellcey@mips.com>
34167         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
34168         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
34169         builtins.def, and chkp-builtins.def.
34171 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
34173         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
34174         ISA 2.7 (POWER8).
34176 2015-01-15  Richard Biener  <rguenther@suse.de>
34178         PR tree-optimization/61743
34179         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
34180         information on PHIs for some simple cases.
34182 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34184         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
34185         Include xgene1.md.
34186         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
34187         * config/arm/arm-cores.def (xgene1): New entry.
34188         * config/arm/arm-tables.opt: Regenerate.
34189         * config/arm/arm-tune.md: Regenerate.
34190         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
34192 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
34194         * tree-if-conv.c: Include hash-map.h.
34195         (aggressive_if_conv): New variable.
34196         (fold_build_cond_expr): Add simplification of non-zero condition.
34197         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
34198         destination block is not always executed.
34199         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
34200         than two predecessors if AGGRESSIVE_IF_CONV is true.
34201         (if_convertible_stmt_p): Fix commentary.
34202         (all_preds_critical_p): New function.
34203         (has_pred_critical_p): New function.
34204         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
34205         BB can have more than two predecessors and all incoming edges can be
34206         critical.
34207         (predicate_bbs): Skip predication for loop exit block, use build2_loc
34208         to compute predicate for true edge.
34209         (find_phi_replacement_condition): Delete this function.
34210         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
34211         Allow interchange PHI arguments if EXTENDED is false.
34212         Change check that block containing reduction statement candidate
34213         is predecessor of phi-block since phi may have more than two arguments.
34214         (phi_args_hash_traits): New helper structure.
34215         (struct phi_args_hash_traits): New type.
34216         (phi_args_hash_traits::hash): New function.
34217         (phi_args_hash_traits::equal_keys): New function.
34218         (gen_phi_arg_condition): New function.
34219         (predicate_scalar_phi): Add handling of phi nodes with more than two
34220         arguments, delete COND and TRUE_BB arguments, insert body of
34221         find_phi_replacement_condition to predicate ordinary phi nodes.
34222         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
34223         delete call of find_phi_replacement_condition and invoke
34224         predicate_scalar_phi with two arguments.
34225         (insert_gimplified_predicates): Add assert that non-predicated block
34226         don't have statements to insert.
34227         (ifcvt_split_critical_edges): New function.
34228         (ifcvt_split_def_stmt): Likewise.
34229         (ifcvt_walk_pattern_tree): Likewise.
34230         (stmt_is_root_of_bool_pattern): Likewise.
34231         (ifcvt_repair_bool_pattern): Likewise.
34232         (ifcvt_local_dce): Likewise.
34233         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
34234         is copy of inner or outer loop force_vectorize field, invoke
34235         ifcvt_split_critical_edges, ifcvt_local_dce and
34236         ifcvt_repair_bool_pattern for aggressive if-conversion.
34238 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
34240         * config/aarch64/aarch64.md: Include xgene1.md.
34241         * config/aarch64/xgene1.md: New file.
34243 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
34245         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
34246         xgene1 (APM XGene-1) core definition.
34247         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
34248         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
34249         * doc/invoke.texi: Document -mcpu=xgene1.
34251 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
34253         * dojump.h: New header file.
34254         * explow.h: Likewise.
34255         * expr.h: Remove includes.
34256         Move expmed.c prototypes to expmed.h.
34257         Move dojump.c prototypes to dojump.h.
34258         Move alias.c prototypes to alias.h.
34259         Move explow.c prototypes to explow.h.
34260         Move calls.c prototypes to calls.h.
34261         Move emit-rtl.c prototypes to emit-rtl.h.
34262         Move varasm.c prototypes to varasm.h.
34263         Move stmt.c prototypes to stmt.h.
34264         (saved_pending_stack_adjust): Move to dojump.h.
34265         (adjust_address): Move to explow.h.
34266         (adjust_address_nv): Move to emit-rtl.h.
34267         (adjust_bitfield_address): Likewise.
34268         (adjust_bitfield_address_size): Likewise.
34269         (adjust_bitfield_address_nv): Likewise.
34270         (adjust_automodify_address_nv): Likewise.
34271         * explow.c (expr_size): Move to expr.c.
34272         (int_expr_size): Likewise.
34273         (tree_expr_size): Likewise.
34274         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34275         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34276         * genemit.c (main): Generate includes statistics.h, real.h,
34277         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
34278         stmt.h.
34279         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
34280         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
34281         explow.h, emit-rtl.h, stmt.h.
34282         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
34283         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
34284         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
34285         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
34286         emit-rtl.h, varasm.h, stmt.h.
34287         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
34288         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
34289         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
34290         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
34291         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34292         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
34293         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
34294         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
34295         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
34296         tm.h tree.h varasm.h vec.h wide-int.h.
34297         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34298         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34299         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
34300         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
34301         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
34302         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
34303         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
34304         * loop-iv.c: Likewise.
34305         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
34306         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
34307         statistics.h stmt.h tree.h varasm.h wide-int.h.
34308         * lra-constraints.c: Likewise.
34309         * lra-eliminations.c: Likewise.
34310         * lra-lives.c: Likewise.
34311         * lra-remat.c: Likewise.
34312         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34313         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
34314         statistics.h stmt.h tree.h varasm.h wide-int.h.
34315         * hw-doloop.c: Likewise.
34316         * ira-color.c: Likewise.
34317         * ira-emit.c: Likewise.
34318         * loop-doloop.c: Likewise.
34319         * loop-invariant.c: Likewise.
34320         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34321         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
34322         statistics.h stmt.h tree.h varasm.h wide-int.h.
34323         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
34324         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
34325         statistics.h stmt.h tree.h varasm.h wide-int.h.
34326         * combine-stack-adj.c: Likewise.
34327         * cse.c: Likewise.
34328         * ddg.c: Likewise.
34329         * ifcvt.c: Likewise.
34330         * ira-costs.c: Likewise.
34331         * jump.c: Likewise.
34332         * lra-coalesce.c: Likewise.
34333         * lra-spills.c: Likewise.
34334         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34335         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
34336         stmt.h varasm.h wide-int.h.
34337         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34338         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34339         varasm.h.
34340         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
34341         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
34342         statistics.h stmt.h varasm.h wide-int.h.
34343         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
34344         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
34345         varasm.h wide-int.h.
34346         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
34347         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34348         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
34349         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
34350         statistics.h stmt.h.
34351         * config/tilepro/tilepro.c: Likewise.
34352         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
34353         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
34354         * config/pdp11/pdp11.c: Likewise.
34355         * config/xtensa/xtensa.c: Likewise.
34356         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
34357         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34358         varasm.h.
34359         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34360         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34361         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
34362         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34363         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34364         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
34365         * rtl-chkp.c: Likewise.
34366         * tree-chkp-opt.c: Likewise.
34367         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
34368         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34369         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
34370         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34371         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34372         statistics.h stmt.h.
34373         * tree-vect-data-refs.c: Likewise.
34374         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
34375         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34376         rtl.h statistics.h stmt.h varasm.h.
34377         * internal-fn.c: Likewise.
34378         * ipa-icf-gimple.c: Likewise.
34379         * lto-section-out.c: Likewise.
34380         * tree-data-ref.c: Likewise.
34381         * tree-nested.c: Likewise.
34382         * tree-outof-ssa.c: Likewise.
34383         * tree-predcom.c: Likewise.
34384         * tree-pretty-print.c: Likewise.
34385         * tree-scalar-evolution.c: Likewise.
34386         * tree-ssa-strlen.c: Likewise.
34387         * tree-vect-loop.c: Likewise.
34388         * tree-vect-patterns.c: Likewise.
34389         * tree-vect-slp.c: Likewise.
34390         * tree-vect-stmts.c: Likewise.
34391         * tsan.c: Likewise.
34392         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34393         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
34394         stmt.h.
34395         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
34396         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34397         statistics.h stmt.h varasm.h.
34398         * loop-unroll.c: Likewise.
34399         * ubsan.c: Likewise.
34400         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
34401         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
34402         stmt.h varasm.h.
34403         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34404         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
34405         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
34406         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34407         statistics.h stmt.h.
34408         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
34409         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34410         statistics.h stmt.h varasm.h.
34411         * gimple-match-head.c: Likewise.
34412         * lto-cgraph.c: Likewise.
34413         * lto-section-in.c: Likewise.
34414         * lto-streamer-in.c: Likewise.
34415         * lto-streamer-out.c: Likewise.
34416         * tree-affine.c: Likewise.
34417         * tree-cfg.c: Likewise.
34418         * tree-cfgcleanup.c: Likewise.
34419         * tree-if-conv.c: Likewise.
34420         * tree-into-ssa.c: Likewise.
34421         * tree-ssa-alias.c: Likewise.
34422         * tree-ssa-copyrename.c: Likewise.
34423         * tree-ssa-dse.c: Likewise.
34424         * tree-ssa-forwprop.c: Likewise.
34425         * tree-ssa-live.c: Likewise.
34426         * tree-ssa-math-opts.c: Likewise.
34427         * tree-ssa-pre.c: Likewise.
34428         * tree-ssa-sccvn.c: Likewise.
34429         * tree-tailcall.c: Likewise.
34430         * tree-vect-generic.c: Likewise.
34431         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34432         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
34433         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34434         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
34435         * varasm.c: Likewise.
34436         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34437         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
34438         varasm.h.
34439         * init-regs.c: Likewise.
34440         * ira.c: Likewise.
34441         * omp-low.c: Likewise.
34442         * stack-ptr-mod.c: Likewise.
34443         * tree-ssa-reassoc.c: Likewise.
34444         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34445         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
34446         varasm.h.
34447         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34448         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
34449         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34450         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
34451         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34452         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
34453         * tree-ssa-phiopt.c: Likewise.
34454         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34455         fixed-value.h hashtab.h real.h statistics.h stmt.h.
34456         * config/fr30/fr30.c: Likewise.
34457         * config/frv/frv.c: Likewise.
34458         * expr.c: Likewise.
34459         * final.c: Likewise.
34460         * optabs.c: Likewise.
34461         * passes.c: Likewise.
34462         * simplify-rtx.c: Likewise.
34463         * stmt.c: Likewise.
34464         * toplev.c: Likewise.
34465         * var-tracking.c: Likewise.
34466         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34467         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34468         * lower-subreg.c: Likewise.
34469         * postreload-gcse.c: Likewise.
34470         * ree.c: Likewise.
34471         * reginfo.c: Likewise.
34472         * store-motion.c: Likewise.
34473         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34474         fixed-value.h hashtab.h real.h stmt.h varasm.h.
34475         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34476         fixed-value.h hashtab.h statistics.h stmt.h.
34477         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34478         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34479         * except.c: Likewise.
34480         * explow.c: Likewise.
34481         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34482         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
34483         varasm.h.
34484         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34485         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
34486         * tree-ssa-structalias.c: Likewise.
34487         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34488         fixed-value.h insn-config.h real.h statistics.h.
34489         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34490         fixed-value.h insn-config.h real.h statistics.h stmt.h.
34491         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34492         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34493         * cfgbuild.c: Likewise.
34494         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34495         fixed-value.h real.h rtl.h statistics.h stmt.h.
34496         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34497         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34498         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34499         fixed-value.h real.h statistics.h stmt.h.
34500         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34501         fixed-value.h real.h statistics.h stmt.h varasm.h.
34502         * cprop.c: Likewise.
34503         * modulo-sched.c: Likewise.
34504         * postreload.c: Likewise.
34505         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34506         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
34507         statistics.h stmt.h varasm.h.
34508         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
34509         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34510         rtl.h statistics.h stmt.h varasm.h.
34511         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
34512         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
34513         varasm.h.
34514         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34515         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
34516         varasm.h.
34517         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
34518         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
34519         varasm.h.
34520         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34521         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34522         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34523         function.h real.h statistics.h stmt.h varasm.h.
34524         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34525         insn-config.h real.h statistics.h stmt.h.
34526         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34527         statistics.h stmt.h.
34528         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34529         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34530         statistics.h stmt.h varasm.h.
34531         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34532         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34533         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34534         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34535         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34536         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34537         statistics.h stmt.h varasm.h.
34538         * ipa-polymorphic-call.c: Likewise.
34539         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34540         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34541         statistics.h stmt.h.
34542         * config/c6x/c6x.c: Likewise.
34543         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34544         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34545         statistics.h stmt.h varasm.h.
34546         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34547         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34548         stmt.h varasm.h.
34549         * ipa-split.c: Likewise.
34550         * tree-eh.c: Likewise.
34551         * tree-ssa-dce.c: Likewise.
34552         * tree-ssa-loop-niter.c: Likewise.
34553         * tree-vrp.c: Likewise.
34554         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34555         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34556         stmt.h.
34557         * config/nds32/nds32-fp-as-gp.c: Likewise.
34558         * config/nds32/nds32-intrinsic.c: Likewise.
34559         * config/nds32/nds32-isr.c: Likewise.
34560         * config/nds32/nds32-md-auxiliary.c: Likewise.
34561         * config/nds32/nds32-memory-manipulation.c: Likewise.
34562         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34563         * config/nds32/nds32-predicates.c: Likewise.
34564         * config/nds32/nds32.c: Likewise.
34565         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34566         fixed-value.h hashtab.h real.h statistics.h.
34567         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34568         fixed-value.h hashtab.h real.h statistics.h stmt.h.
34569         * config/arm/arm.c: Likewise.
34570         * config/avr/avr.c: Likewise.
34571         * config/bfin/bfin.c: Likewise.
34572         * config/h8300/h8300.c: Likewise.
34573         * config/i386/i386.c: Likewise.
34574         * config/ia64/ia64.c: Likewise.
34575         * config/iq2000/iq2000.c: Likewise.
34576         * config/m32c/m32c.c: Likewise.
34577         * config/m32r/m32r.c: Likewise.
34578         * config/m68k/m68k.c: Likewise.
34579         * config/mcore/mcore.c: Likewise.
34580         * config/mep/mep.c: Likewise.
34581         * config/mips/mips.c: Likewise.
34582         * config/mn10300/mn10300.c: Likewise.
34583         * config/moxie/moxie.c: Likewise.
34584         * config/pa/pa.c: Likewise.
34585         * config/rl78/rl78.c: Likewise.
34586         * config/rx/rx.c: Likewise.
34587         * config/s390/s390.c: Likewise.
34588         * config/sh/sh.c: Likewise.
34589         * config/sparc/sparc.c: Likewise.
34590         * config/spu/spu.c: Likewise.
34591         * config/stormy16/stormy16.c: Likewise.
34592         * config/v850/v850.c: Likewise.
34593         * config/vax/vax.c: Likewise.
34594         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34595         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34596         * config/msp430/msp430.c: Likewise.
34597         * predict.c: Likewise.
34598         * value-prof.c: Likewise.
34599         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34600         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34601         * config/microblaze/microblaze.c: Likewise.
34602         * config/nios2/nios2.c: Likewise.
34603         * config/rs6000/rs6000.c: Likewise.
34604         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34605         insn-config.h real.h rtl.h statistics.h stmt.h.
34606         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34607         insn-config.h real.h statistics.h stmt.h.
34608         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34609         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34610         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34611         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34612         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34613         fixed-value.h real.h statistics.h stmt.h.
34614         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34615         fixed-value.h statistics.h stmt.h.
34616         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34617         stmt.h.
34619 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
34621         * gengtype.c (create_user_defined_type): Workaround
34622         -Wmaybe-uninitialized false positives.
34623         * cse.c (fold_rtx): Likewise.
34624         * loop-invariant.c (gain_for_invariant): Likewise.
34626 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
34628         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34629         set the memory attributes in all cases but clear MEM_EXPR if need be.
34631 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
34633         PR tree-optimization/64434
34634         * cfgexpand.c (reorder_operands): New function.
34635         (expand_gimple_basic_block): Insert call of reorder_operands if
34636         optimized is true.
34638 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
34640         * config/mips/micromips.md (*swp): Remove explicit parallel.
34641         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34642         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34643         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34644         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34645         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34646         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34647         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34648         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34649         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34650         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34651         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34652         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34653         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34654         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34655         (mips_wrdsp): Likewise.
34656         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34657         parallel.
34658         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34659         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34660         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34661         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34662         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34663         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34664         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34665         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34666         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34668 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
34670         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34671         (mips_print_operand): Support 'y' to print exact log2 in decimal
34672         of a const_int.
34673         * config/mips/mips.h (ISA_HAS_LSA): New define.
34674         (ISA_HAS_DLSA): Likewise.
34675         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34676         * config/mips/predicates.md (const_immlsa_operand): New predicate.
34678 2015-01-15  Martin Liska  <mliska@suse.cz>
34680         PR target/64377
34681         * optc-save-gen.awk: Add support for array types.
34683 2015-01-15  Richard Biener  <rguenther@suse.de>
34685         PR middle-end/64365
34686         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34687         for MEM_REF access functions with the same base can never partially
34688         overlap.
34690 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
34692         * common.opt: New option -fstack-protector-explicit.
34693         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34694         (stack_protect_decl_phase): Handle stack_protect attribute for
34695         explicit stack protection requests.
34696         (expand_used_vars): Similarly.
34697         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34698         * doc/extend.texi: Add documentation for "stack_protect" attribute.
34699         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34701 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
34703         PR target/53988
34704         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34705         reg-reg copies.
34706         (sh_extending_set_of_reg): New struct.
34707         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34708         sh_remove_reg_dead_or_unused_notes): New Declarations.
34709         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34710         sh_find_extending_set_of_reg, sh_split_tst_subregs,
34711         sh_extending_set_of_reg::use_as_extended_reg): New functions.
34712         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34713         convert to insn_and_split and use new function sh_split_tst_subregs.
34715 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
34717         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34718         option.
34719         (Optimization Options): Move -fuse-ld documentation to...
34720         (Link Options): ...here.
34722 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
34724         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34725         offsets.
34726         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34727         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34728         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34729         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34730         instead of ZR for the memory operand of LL/SC.
34731         (compare_and_swap_12, sync_add<mode>): Likewise.
34732         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34733         (sync_new_<optab>_12, sync_nand_12): Likewise.
34734         (sync_old_nand_12, sync_new_nand_12): Likewise.
34735         (sync_sub<mode>, sync_old_add<mode>): Likewise.
34736         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34737         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34738         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34739         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34740         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34741         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34742         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34743         * doc/md.texi (ZC): Update description.
34745 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
34747         * builtins.c (expand_builtin_atomic_exchange): Remove error when
34748         memory model is CONSUME.
34749         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34750         expand_builtin_atomic_store): Change invalid memory model errors to
34751         warnings.
34752         (expand_builtin_atomic_clear): Change invalid model errors to warnings
34753         and issue warning for CONSUME.
34755 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
34757         * lto-cgraph: Update function comments for
34758         lto_symtab_encoder_encode_*.
34760 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
34762         * Makefile.in (site.exp): Do not set ENABLE_LTO.
34764 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
34766         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34767         * lto-cgraph.c (select_what_to_stream): Remove argument, use
34768         lto_stream_offload_p instead.
34769         * lto-streamer.h (select_what_to_stream): Remove argument.
34770         * passes.c (ipa_write_summaries): Likewise.
34771         * tree-pass.h (ipa_write_summaries): Likewise.
34773 2015-01-14  Richard Biener  <rguenther@suse.de>
34775         PR tree-optimization/59354
34776         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
34777         groups larger than the slp group size as having gaps.
34779 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
34781         PR middle-end/59448
34782         * builtins.c (get_memmodel): Promote consume to acquire always.
34784 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
34786         PR target/64386
34787         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
34788         V32HImode.
34790 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
34792         PR target/64393
34793         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
34794         Enable AVX512BW.
34795         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
34796         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
34797         AVX512VBMI, as it implies AVX512BW.
34799 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
34801         PR target/64387
34802         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
34803         (vec_unpacks_hi_v16sf): Ditto.
34805 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34807         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
34808         is not available.
34810 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34812         * doc/invoke.texi (mapcs): Mention deprecation.
34813         (mapcs-frame): Likewise.
34815 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34817         PR target/64453
34818         * config/arm/arm.c (callee_saved_reg_p): Define.
34819         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
34820         register is callee saved instead of !call_used_regs[reg].
34821         (thumb1_compute_save_reg_mask): Likewise.
34823 2015-01-14  Hale Wang  <hale.wang@arm.com>
34825         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
34826         Cortex-M7.
34828 2015-01-14  Richard Biener  <rguenther@suse.de>
34830         PR lto/64415
34831         * tree-inline.c (insert_debug_decl_map): Check destination
34832         function MAY_HAVE_DEBUG_STMTS.
34833         (insert_init_debug_bind): Likewise.
34834         (insert_init_stmt): Remove redundant check.
34835         (remap_gimple_stmt): Drop debug stmts if the destination
34836         function has var-tracking assignments disabled.
34838 2015-01-14  Martin Liska  <mliska@suse.cz>
34840         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
34841         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
34843 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34845         PR target/64460
34846         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
34847         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
34849 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
34851         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
34852         level from an ARCH; do not inject the default.
34853         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
34854         MIPS_ISA_LEVEL_SPEC.
34855         (MIPS_ISA_NAN2008_SPEC): Update comment.
34856         (BASE_DRIVER_SELF_SPECS): Likewise.
34857         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
34858         MIPS_DEFAULT_ISA_LEVEL_SPEC.
34859         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
34860         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
34861         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
34863 2015-01-14  Richard Biener  <rguenther@suse.de>
34865         PR tree-optimization/64493
34866         PR tree-optimization/64495
34867         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
34868         assign the proper vectorized PHI to the inner loop exit PHIs.
34870 2015-01-14  Joey Ye  <joey.ye@arm.com>
34872         * config/arm/arm.c (arm_compute_save_reg_mask):
34873         Do not save lr in case of tail call.
34874         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
34876 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
34878         * tree-vrp.c (check_array_ref): Emit more warnings
34879         for warn_array_bounds >= 2.
34880         * common.opt: New option -Warray-bounds=.
34881         * doc/invoke.texi: Document -Warray-bounds=.
34883 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
34885         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
34886         (mforbid-fp-as-gp): Remove.
34887         (mex9): Remove.
34888         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
34889         (nds32_symbol_load_store_p): Remove.
34890         (nds32_fp_as_gp_check_available): Clean up implementation.
34891         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
34892         cases.
34893         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
34894         fp-as-gp and ex9 cases.
34896 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
34898         * tree-profile.c (init_ic_make_global_vars): Drop workaround
34899         for bintuils bug 14342.
34900         (init_ic_make_global_vars): Likewise.
34901         (gimple_init_edge_profiler): Likewise.
34902         (gimple_gen_ic_func_profiler): Likewise.
34904 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34906         * ipa-inline.c (inline_small_functions): Swap the operands in
34907         enum.
34909 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
34911         PR ipa/64481
34912         * ipa-inline-analysis.c (node_growth_cache): Remove.
34913         (initialize_growth_caches): Do not initialize it.
34914         (free_growth_caches): Do not free it.
34915         (do_estimate_growth): Rename to ...
34916         (estimate_growth): ... this one; drop growth cache code.
34917         (growth_likely_positive): Always go the heuristics way.
34918         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
34919         (reset_edge_caches): Do not reset node growth.
34920         (heap_edge_removal_hook): Do not maintain cache.
34921         (inline_small_functions): Likewise; strenghten sanity check.
34922         (ipa_inline): Do not maintain caches.
34923         * ipa-inline.h (node_growth_cache): Remove.
34924         (do_estimate_growth): Remove to ...
34925         (estimate_growth): this one; remove inline version.
34926         (reset_node_growth_cache): Remove.
34928 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
34930         PR ipa/64565
34931         * ipa-inline.c (inline_small_functions): Update callee keys after
34932         resolving speculation
34933         (inline_small_functions): Always check monotonicity of the queue.
34935 2015-01-13  Marek Polacek  <polacek@redhat.com>
34937         PR middle-end/64391
34938         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
34940 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
34942         PR rtl-optimization/64286
34943         * ree.c (combine_reaching_defs): Move part of comment earlier,
34944         remove !SCALAR_INT_MODE_P check.
34945         (add_removable_extension): Don't add vector mode
34946         extensions if all uses of the source register aren't the same
34947         vector extensions.
34949 2015-01-13  Renlin Li  <renlin.li@arm.com>
34951         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
34952         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
34954 2015-01-13  Martin Liska  <mliska@suse.cz>
34956         * ipa-icf.c (sem_function::equals_private): Call new functions
34957         cl_target_option_print_diff and cl_optimization_print_diff.
34958         * optc-save-gen.awk (cl_target_option_print_diff): New function.
34959         (cl_optimization_print_diff): Likewise.
34960         * opth-gen.awk: Likewise.
34962 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
34964         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
34965         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
34966         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
34967         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
34968         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
34969         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
34971 2015-01-13  Andrew Pinski  <apinski@cavium.com>
34973         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
34974         instead of src mode.
34976 2015-01-13  Richard Biener  <rguenther@suse.de>
34978         PR lto/64373
34979         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
34980         DECL_CONTEXT.
34982 2015-01-13  Andrew Pinski  <apinski@cavium.com>
34984         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
34985         volatile mems.
34986         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
34988 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
34990         PR middle-end/63974
34991         * cfgexpand.c (expand_computed_goto): Don't call
34992         convert_memory_address here.
34994 2015-01-13  Richard Biener  <rguenther@suse.de>
34996         PR tree-optimization/64406
34997         * tree-loop-distibution.c (pass_loop_distribution::execute):
34998         Reset the SCEV hashtable if we distributed anything.
35000 2015-01-13  Richard Biener  <rguenther@suse.de>
35002         PR tree-optimization/64404
35003         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
35004         SLP types for CSEd loads.
35006 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35008         PR tree-optimization/64436
35009         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
35010         merge of two symbolic numbers for a bitwise OR to ...
35011         (perform_symbolic_merge): This. Also fix computation of the range and
35012         end of the symbolic number corresponding to the result of a bitwise OR.
35014 2015-01-13  Richard Biener  <rguenther@suse.de>
35016         PR tree-optimization/64568
35017         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
35018         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
35020 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35022         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
35023         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
35025 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35027         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
35028         target-specific symbol_ref flag.
35029         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
35030         resides in rodata section.
35031         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
35032         (nds32_encode_section_info): New function.
35034 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35036         * config/nds32/nds32.md (call): Use pseudo instruction bal which
35037         clobbers TA_REGNUM if large code model is specified.
35038         (call_register): Likewise.
35039         (call_immediate): Likewise.
35040         (call_value): Likewise.
35041         (call_value_register): Likewise.
35042         (call_value_immediate): Likewise.
35044 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35046         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
35047         (TARGET_CMODEL_MEDIUM): New macro.
35048         (TARGET_CMODEL_LARGE): New macro.
35049         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
35050         code model setting in assembly code.
35052 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35054         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
35055         Remove MASK_GP_DIRECT flag.
35056         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
35057         one of the multilib default options.
35058         * config/nds32/nds32.opt (mgp-direct): Remove.
35059         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
35060         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
35062 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
35064         * config/nds32/nds32.opt (mcmodel): Add new option.
35065         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
35066         to describe code model.
35068 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
35070         PR target/64479
35071         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
35073 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
35075         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
35076         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
35077         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
35078         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
35079         __builtin_sh_set_fpscr.
35081 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
35083         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
35084         after a funtion name just to indicate it is a function.
35085         ([-fsanitize-undefined-trap-on-error]): Likewise.
35086         ([-fdbg-cnt=]): Likewise.
35087         ([-mmemcpy]): Likewise.
35088         ([-mflush-func]): Likewise.
35089         ([-msynci]): Likewise.
35091 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
35093         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
35094         example.
35096 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
35098         PR tree-optimization/64563
35099         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
35100         instead of != VR_VARYING.
35102         PR target/64513
35103         * config/i386/i386.c (ix86_expand_prologue): Add
35104         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
35106         PR tree-optimization/64454
35107         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
35108         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
35109         for signed or [0, op1 - 1] for unsigned modulo.
35110         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
35111         even if op1 does not satisfy integer_pow2p.
35113         PR other/64370
35114         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
35116 2015-01-12  Jeff Law  <law@redhat.com>
35118         PR target/64461
35119         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
35120         (trunchiqi2, truncsihi2): Similarly.
35122         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
35123         rather than calling F.
35125 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35127         * tsan.c (instrument_expr): Use force_gimple_operand.
35128         Use may_be_nonaddressable_p instead of is_gimple_addressable.
35130 2015-01-12  Richard Biener  <rguenther@suse.de>
35132         PR tree-optimization/64530
35133         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
35134         back dr1.
35136 2015-01-12  Richard Biener  <rguenther@suse.de>
35138         PR middle-end/64357
35139         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
35140         latches properly.
35142 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35144         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
35145         Cortex-A17 tuning parameters.
35146         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
35148 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35150         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
35151         * config/arm/arm.c (arm_macro_fusion_p): New function.
35152         (arm_macro_fusion_pair_p): Likewise.
35153         (TARGET_SCHED_MACRO_FUSION_P): Define.
35154         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
35155         (ARM_FUSE_NOTHING): Likewise.
35156         (ARM_FUSE_MOVW_MOVT): Likewise.
35157         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
35158         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
35159         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
35160         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
35161         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
35162         arm_cortex_a5_tune): Specify fuseable_ops value.
35164 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
35166         PR bootstrap/64561
35167         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
35168         test for PIE with copy reloc.
35169         * configure: Regenerated.
35171 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35173         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
35174         in gen_rtx_REG.
35175         (arm_tls_descseq_addr): Likewise.
35176         (arm_gen_movmemqi): Likewise.
35177         (arm_expand_epilogue_apcs_frame): Likewise.
35178         (arm_expand_epilogue): Likewise.
35179         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
35180         in gen_rtx_REG.
35182 2015-01-12  Martin Liska  <mliska@suse.cz>
35184         PR ipa/64550
35185         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
35186         volatility for correct operands.
35188 2015-01-12  Martin Liska  <mliska@suse.cz>
35190         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
35191         indication that a function is not leaf.
35192         (sem_function::compare_polymorphic_p): Likewise.
35194 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
35196         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
35197         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
35198         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
35199         fold-const.h, tree-check.h.
35201 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
35203         PR ipa/63967
35204         PR ipa/64425
35205         * ipa-inline.c (compute_uninlined_call_time,
35206         compute_inlined_call_time): Use counts for extra precision when
35207         needed possible.
35208         (big_speedup_p): Fix formating.
35209         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
35210         (relative_time_benefit): Remove.
35211         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
35212         merge guessed and read profile paths.
35213         (inline_small_functions): Count only !optimize_size functions into
35214         initial size; be more lax about sanity check when profile is used;
35215         be sure to update inlined function profile when profile is read.
35217 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
35219         PR ipa/63470
35220         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
35221         cost when edge becomes direct.
35222         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
35223         is resolved or when introducing new speculation.
35225 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
35227         PR ipa/64551
35228         PR ipa/64552
35229         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
35230         '||' to fix typo issue.
35232         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
35233         accept and return NULL.
35235 2015-01-12  Martin Liska  <mliska@suse.cz>
35237         * cgraph.c (cgraph_edge::remove_callee): Move function to header
35238         file for being inlined.
35239         (cgraph_set_edge_callee): Delete.
35240         (cgraph_edge::redirect_callee): Move function to header file
35241         for being inlined.
35242         (cgraph_edge::make_direct): Use new function.
35243         (cgraph_edge::dump_edge_flags): New function created from
35244         static dump_edge_flags function.
35245         (cgraph_node::dump): Use new function.
35246         (cgraph_edge::verify_count_and_frequency): New function created
35247         from verify_edge_count_and_frequency.
35248         (cgraph_edge::verify_corresponds_to_fndecl): New function created
35249         from verify_edge_corresponds_to_fndecl.
35250         (verify_edge_corresponds_to_fndecl): Delete.
35251         (cgraph_node::verify_node): Use new function.
35252         * cgraph.h (cgraph_edge::set_callee): New function.
35253         (cgraph_edge::dump_edge_flags): Likewise.
35254         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
35256 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
35258         * ipa-utils.c (estimate_function_body_sizes): Do not
35259         free node params when called late with early=true.
35261 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
35263         * doc/md.texi (Instruction Patterns): Rewrite text for
35264         clarity.
35265         (Example): Likewise.
35267 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
35269         * doc/invoke.texi (Option Summary): Break long lines.
35270         [(-fdiagnostics-color)]: Put long literal in @smallexample
35271         instead of inline.
35272         [(-fsanitize-recover)]: Likewise.
35273         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
35274         [(-ffast-math)]: Likewise.
35275         [(--param max-inline-insns-recursive)]: Likewise.
35276         [(--param max-inline-recursive-depth)]: Likewise.
35277         [(-mno-text-section-literals)]: Likewise.
35279 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
35281         * doc/install.texi: Update for libgomp being renamed from "GNU
35282         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
35283         Runtime Library".
35284         * doc/sourcebuild.texi: Likewise.
35286 2015-01-10  Anthony Green  <green@moxielogic.com>
35288         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
35289         mul.x availability for moxiebox configuration.
35291 2015-01-09  Anthony Green  <green@moxielogic.com>
35293         * config/moxie/moxie.md: Tabify assembly output.
35295 2015-01-09  Anthony Green  <green@moxielogic.com>
35297         * config/moxie/moxie.md (CC_REG): Correct register definition.
35299 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
35301         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
35302         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
35303         of log files.
35305 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
35307         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
35309 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
35310             Jakub Jelinek  <jakub@redhat.com>
35312         PR middle-end/64412
35313         * lto-streamer.h (lto_stream_offload_p): New declaration.
35314         * lto-streamer.c (lto_stream_offload_p): New variable.
35315         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
35316         at the same time as section_name_prefix.
35317         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
35318         if lto_stream_offload_p.
35319         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
35320         stream TREE_TARGET_OPTION if lto_stream_offload_p.
35321         (write_ts_function_decl_tree_pointers): Don't
35322         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
35323         * tree-streamer-in.c (unpack_value_fields): Don't stream
35324         TREE_TARGET_OPTION in if ACCEL_COMPILER.
35325         (lto_input_ts_function_decl_tree_pointers): Don't stream
35326         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
35327         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
35328         instead of section_name_prefix string comparisons.
35330 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
35332         PR rtl-optimization/64536
35333         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
35334         tablejumps.
35336 2015-01-09  Michael Collison  <michael.collison@linaro.org>
35338         PR tree-optimization/64322
35339         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
35340         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
35342 2015-01-09  Tom de Vries  <tom@codesourcery.com>
35344         PR rtl-optimization/64539
35345         * regcprop.c (kill_clobbered_values): Factor out of ...
35346         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
35347         instead of note_stores with kill_clobbered_value.
35349 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
35351          * ginclude/unwind-arm-common.h: Revert previous commit.
35353 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
35355         * config.gcc (arm*-*-freebsd*): New configuration.
35356         * config/arm/freebsd.h: New file.
35357         * config.host: Add extra components for arm*-*-freebsd*.
35358         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
35359         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
35361 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35363         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
35364         for -mcpu=e6500.
35365         * config/rs6000/t-rtems: Add e6500 multilibs.
35367 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35369         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
35370         MPC8540.
35372 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35374         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
35375         MULTILIB_EXCEPTIONS.
35377 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35379         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
35380         MULTILIB_EXCEPTIONS.
35382 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35384         * config/arm/t-rtems-eabi: Rename to...
35385         * config/arm/t-rtems: ...this.
35386         * config/arm/rtems-eabi.h: Rename to...
35387         * config/arm/rtems.h: ...this.
35388         * config.gcc (arm*-*-rtems*): Reflect changes above.
35390 2015-01-09  Richard Biener  <rguenther@suse.de>
35392         PR tree-optimization/64410
35393         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
35394         on the LHS.
35395         (execute_update_addresses_taken): Deal with that.
35396         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
35397         loads/stores for complex variables.
35399 2015-01-09  Martin Liska  <mliska@suse.cz>
35401         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
35402         name comparison.
35403         (func_checker::compare_memory_operand): New function.
35404         (func_checker::compare_operand): Split case to newly
35405         added functions.
35406         (func_checker::compare_cst_or_decl): New function.
35407         (func_checker::compare_gimple_call): Identify
35408         memory operands.
35409         (func_checker::compare_gimple_assign): Likewise.
35410         * ipa-icf-gimple.h: New function.
35412 2015-01-09  Martin Liska  <mliska@suse.cz>
35414         PR ipa/64503
35415         * sreal.c (sreal::dump): Change unsigned format to signed for
35416         m_exp value.
35417         (sreal::to_double): Replace exp2 with scalbln.
35419 2015-01-09  Martin Liska  <mliska@suse.cz>
35421         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
35422         * ipa-icf.c (sem_function::equals_private): Add support for target and
35423         (sem_item_optimizer::merge_classes): Remove redundant function
35424         optimization flags comparison.
35425         * tree.h (target_opts_for_fn): New function.
35427 2015-01-09  Tom de Vries  <tom@codesourcery.com>
35429         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
35431 2015-01-09  Kito Cheng  <kito@0xlab.org>
35433         PR rtl-optimization/64348
35434         * lra-constraints.c (split_reg): Fix caller-save store/restore
35435         instruction generation.
35437 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
35439         PR gcov-profile/61790
35440         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
35441         long long.  Fallback to int64_t if host doesn't have long long and
35442         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
35444 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
35446         PR tree-optimization/63989
35447         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
35448         from 1000 to 10000.
35449         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
35450         (get_stridx): If we don't have a record for certain SSA_NAME,
35451         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
35452         constant offset, call get_stridx_plus_constant.
35453         (get_stridx_plus_constant): New function.
35454         (zero_length_string): Don't use get_stridx here.
35456         PR target/55023
35457         PR middle-end/64388
35458         * dse.c (struct insn_info): Mention frame_read set also
35459         before reload for tail calls on some targets.
35460         (scan_insn): Revert 2014-12-22 change.  Set frame_read
35461         also before reload for tail calls if
35462         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
35463         instead of add_non_frame_wild_read for non-const/memset
35464         tail calls after reload.
35466 2015-01-08  Jason Merrill  <jason@redhat.com>
35468         * ubsan.c (do_ubsan_in_current_function): New.
35469         (pass_ubsan::gate): Use it.
35470         * ubsan.h: Declare it.
35471         * convert.c (convert_to_integer): Use it.
35473 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
35475         PR target/64338
35476         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
35477         compare_code when it is unconditionally overwritten afterwards.
35478         Use ix86_reverse_condition instead of reverse_condition.  Don't
35479         change code if *reverse_condition* returned UNKNOWN and don't
35480         swap ct/cf and negate diff in that case.
35482 2015-01-08  Mike Stump  <mikestump@comcast.net>
35484         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
35485         (pass_tsan_O0::gate): Likewise.
35486         * extend.texi (Function Attributes): Add no_sanitize_thread
35487         documentation.
35489 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
35491         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
35492         for registering builtins.
35493         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
35494         add -fopenmp to the argv_obstack used when invoking
35495         compile_for_target.
35497         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
35498         add "-m32" or "-m64" to argv_obstack.
35499         (generate_host_descr_file): Likewise, when invoking host_compiler.
35500         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
35501         ld.
35503 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
35505         * config/sh/sh-mem.cc: Use constant as second operand when emitting
35506         tstsi_t insns.
35508 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
35510         PR target/55212
35511         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
35512         constant load if constant operand fits into I08.
35514 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
35516         PR sanitizer/64336
35517         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
35518         and TREE_THIS_VOLATILE for MEM_REFs.
35519         (build5_stat): Fix up initialization of TREE_READONLY and
35520         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35522 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
35524         PR target/64533
35525         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35526         of r for the second alternative of the destination operand.
35528 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
35530         PR target/36557
35531         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35533 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
35535         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35536         keywords.
35537         ([-fivar-visibility], [-fvisibility]): Likewise.
35539 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
35541         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35542         the file where @code, @command, etc is more appropriate.
35544 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
35546         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35547         of -mrecip= documentation.
35549 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
35551         PR target/64505
35552         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35553         correct reload handler if -m32 -mpowerpc64 is used.
35555 2015-01-06  Tom de Vries  <tom@codesourcery.com>
35557         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35559 2015-01-08  Christian Bruel  <christian.bruel@st.com>
35561         PR target/64507
35562         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35564 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35566         PR tree-optimization/63259
35567         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35568         if optab exists for 16bit byteswap.
35570 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
35572         * opts.c (common_handle_option): Add support for
35573         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35574         * doc/invoke.texi: Document -fno-sanitize=all,
35575         -f{,no-}sanitize-recover=all.  Document that
35576         -fsanitize=float-cast-overflow is not enabled
35577         by -fsanitize=undefined.  Fix up documentation
35578         of -f{,no-}sanitize-recover.
35580 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
35582         * config.gcc: Add Visium support.
35583         * configure.ac: Likewise.
35584         * configure: Regenerate.
35585         * doc/extend.texi (interrupt attribute): Add Visium.
35586         * doc/invoke.texi: Document Visium options.
35587         * doc/install.texi: Document Visium target.
35588         * doc/md.texi: Document Visium constraints.
35589         * common/config/visium: New directory.
35590         * config/visium: Likewise.
35592 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
35594         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35595         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35597 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
35599         * combine.c (combine_validate_cost): Do not count the cost of a
35600         split I2 twice.  Do not display it twice in the dump, either.
35602 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
35604         Revert parts of r219199.
35605         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35606         <inttypes.h>.
35607         ([-Wtraditional]): Restore markup on <limits.h>.
35609 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
35611         PR c++/31397
35612         * doc/invoke.texi: Document -Wsuggest-override.
35614 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
35616         PR rtl-optimization/64287
35617         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35618         (process_options): Disable flag_ipa_ra if profiling.
35620 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
35622         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35624 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
35626         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35627         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35628         put under #if TARGET_LOOPS guard.
35630 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
35632         * config/i386/i386.c (output_387_binary_op): Use std::swap.
35634 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
35636         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35637         * rtl.h (refers_to_regno_p): Add overload.
35638         * cse.c: Use it.
35639         * bt-load.c: Likewise.
35640         * combine.c: Likewise.
35641         * df-scan.c: Likewise.
35642         * sched-deps.c: Likewise.
35643         * config/s390/s390.c: Likewise.
35644         * config/m32r/m32r.c: Likewise.
35645         * config/rs6000/spe.md: Likewise.
35646         * config/rs6000/rs6000.c: Likewise.
35647         * config/pa/pa.c: Likewise.
35648         * config/stormy16/stormy16.c: Likewise.
35649         * config/cris/cris.c: Likewise.
35650         * config/arc/arc.md: Likewise.
35651         * config/arc/arc.c: Likewise.
35652         * config/sh/sh.md: Likewise.
35653         * config/sh/sh.c: Likewise.
35654         * config/frv/frv.c: Likewise.
35656 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
35658         PR sanitizer/64265
35659         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35660         call as cleanup of the whole body.
35661         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35662         * tsan.c (replace_func_exit): New function.
35663         (instrument_func_exit): Moved earlier.
35664         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35665         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35666         been found.
35667         (tsan_pass): Don't call instrument_func_exit.
35668         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35669         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35670         inlining.
35672         PR sanitizer/64344
35673         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35674         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35675         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
35676         if the result is integer_zerop, return NULL_TREE.
35677         * convert.c (convert_to_integer): Pass expr as ARG.
35679         PR tree-optimization/64465
35680         * tree-inline.c (redirect_all_calls): During inlining
35681         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35682         changed the stmt to a non-throwing call.
35684 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
35686         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35687         etc markup throughout the file.
35689 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35691         Enable experimental TSAN support for Ada.
35692         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35694 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
35696         PR tree-optimization/64494
35697         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35698         clear SSA_NAME_ANTI_RANGE_P flag.
35700 2015-01-05  Marek Polacek  <polacek@redhat.com>
35702         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35704 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
35706         Update copyright years.
35708         * gcc.c (process_command): Update copyright notice dates.
35709         * gcov-dump.c: Ditto.
35710         * gcov.c: Ditto.
35711         * doc/cpp.texi: Bump @copying's copyright year.
35712         * doc/cppinternals.texi: Ditto.
35713         * doc/gcc.texi: Ditto.
35714         * doc/gccint.texi: Ditto.
35715         * doc/gcov.texi: Ditto.
35716         * doc/install.texi: Ditto.
35717         * doc/invoke.texi: Ditto.
35719         * auto-profile.c, auto-profile.h: Fix up Copyright line.
35721 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
35723         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35724         verb tense, etc.
35725         ([-fvtable-verify], [-fvtv-debug]): Likewise.
35726         ([-Wabi]): Likewise.
35727         ([-fmessage-length]): Likewise.
35728         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35729         ([-Wno-discarded-qualifiers]): Likewise.
35730         ([-Wnodiscarded-array-qualifiers]): Likewise.
35731         ([-Wno-virtual-move-assign]): Likewise.
35732         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35733         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35734         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35735         ([-fsanitize-undefined-trap-on-error]): Likewise.
35736         ([-floop-interchange]): Likewise.
35737         ([-ftree-coalesce-inlined-vars]): Likewise.
35738         ([-fvect-cost-model]): Likewise.
35739         ([-flto]): Likewise.
35740         ([--param]): Likewise.
35741         (Spec Files): Likewise.
35742         ([-mstrict-align]): Likewise.
35743         ([-mfix-cortex-a53-835769]): Likewise.
35744         ([-march], [-mtune]): Likewise.
35745         ([-mpic-register]): Likewise.
35746         ([-munaligned-access]): Likewise.
35747         ([-msp8]): Likewise.
35748         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35749         (AVR Built-in Macros): Likewise.
35750         ([-mpreferred-stack-boundary]): Likewise.
35751         ([-mtune-crtl]): Likewise.
35752         ([-mashf]): Likewise.
35753         ([-mmcu=]): Likewise.
35754         ([-minrt]): Likewise.
35755         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35756         ([-mupper-regs]): Likewise.
35757         ([-matomic-model]): Likewise.
35758         ([-mdiv]): Likewise.
35759         ([-mzdcbranch]): Likewise.
35760         ([-mdisable-callt]): Likewise.
35761         ([-msoft-float]): Likewise.
35762         ([-m8byte-align]): Likewise.
35763         ([-fstack-reuse]): Likewise.
35765 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
35767         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35768         Fix markup, light copy-editing.
35769         ([-fauto-profile]): Rewrite to fix formatting and content
35770         problems.
35772 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
35774         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
35775         Copy-edit description.
35776         ([-fisolate-erroneous-paths-attribute]): Likewise.
35777         * common.opt (fisolate-erroneous-paths-dereference):
35778         Copy-edit description.
35779         (fisolate-erroneous-paths-attribute): Likewise.
35781 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
35783         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
35784         tidy grammar.
35786 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
35788         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
35789         ([-fvtv-debug]): Likewise.
35790         ([-Wc++-compat]): Likewise.
35791         ([-Wc++11-compat]): Likewise.
35792         ([-Wc++14-compat]): Likewise.
35793         ([-Wno-sized-deallocation]): Likewise.
35794         ([-femit-class-debug-always]): Likewise.
35795         ([-femit-struct-debug-detailed]): Likewise.
35796         ([-fno-keep-inline-dllexport]): Likewise.
35797         ([-fira-algorithm]): Likewise.
35798         ([-fira-region]): Likewise.
35799         ([-flra-remat]): Likewise.
35800         ([-fipa-ra]): Likewise.
35801         ([-fhoist-adjacent-loads]): Likewise.
35802         ([-fisolate-erroneous-paths-dereference]): Likewise.
35803         ([-fisolate-erroneous-paths-attribute]): Likewise.
35804         ([-ftree-switch-conversion]): Likewise.
35805         ([-ftree-tail-merge]): Likewise.
35806         ([-ftree-loop-if-convert]): Likewise.
35807         ([-ftree-loop-if-convert-stores]): Likewise.
35808         ([-ftree-loop-distribution]): Likewise.
35809         ([-ftree-loop-distribute-patterns]): Likewise.
35810         ([-flto-compression-level]): Likewise.
35811         ([-flto-report]): Likewise.
35812         ([-flto-report-wpa]): Likewise.
35813         ([-fuse-linker-plugin]): Likewise.
35814         ([-mfix-cortex-a53-835769]): Likewise.
35815         ([-mno-fix-cortex-a53-835769]): Likewise.
35816         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
35817         explicit listing; add a note to the discussion indicating they
35818         exist.  Reorder table to group similar options.  Add missing
35819         @opindex entries.  Add @need commands throughout the table to
35820         allow it to be split across multiple pages.
35821         ([-m8bit-idiv]): Fix @opindex.
35822         ([-mavx256-split-unaligned-load]): Likewise.
35823         ([-mavx256-split-unaligned-store]): Likewise.
35824         ([-mstack-protector-guard]): Likewise.
35825         ([-mcpu=]): Likewise.
35826         ([-mcpu]): Likewise.
35827         ([-mpointer-size=]): Likewise.
35829 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
35831         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
35832         instead of `m' constraint.  Likewise for unnamed movb comparison
35833         patterns using reg_before_reload_operand predicate.
35834         * config/pa/predicates.md (reg_before_reload_operand): Tighten
35835         predicate to reject register index and LO_SUM DLT memory forms
35836         after reload.
35838 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
35840         * doc/invoke.texi (Option Summary): Fix spelling of
35841         -fdevirtualize-at-ltrans.
35842         ([-fdevirtualize]): Fix markup.
35843         ([-fdevirtualize-speculatively]): Fix typo.
35844         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
35845         implementor-speaky.
35846         * common.opt (fdevirtualize-at-ltrans): Likewise.
35847         * ipa-devirt.c: Fix typos in comments throughout the file.
35848         (ipa_devirt): Fix typos in format strings for dump output.
35850 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
35852         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
35853         discussion of defaults, light copy-editing.
35855 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35857         * tsan.c (instrument_expr): corrected previous checkin.
35859 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35861         Instrument bit field and unaligned accesses for TSAN.
35862         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
35863         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
35864         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
35865         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
35866         unaligned memory regions.
35868 2015-01-01  Anthony Green  <green@moxielogic.com>
35870         * config/moxie/predicates.md (moxie_general_movsrc_operand):
35871         Restrict move source register offsets to 16 bits.
35873 Copyright (C) 2015 Free Software Foundation, Inc.
35875 Copying and distribution of this file, with or without modification,
35876 are permitted in any medium without royalty provided the copyright
35877 notice and this notice are preserved.