1 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
3 * lto-streamer-out.c (lto_output_location): Stream
4 reserved locations correctly.
5 * lto-streamer-in.c (lto_output_location): Likewise.
7 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
9 * coretypes.h: Include hash-table.h and hash-set.h for host files.
10 * ggc.h: Don't include statistics.h>
11 * hash-map.h: Remove all includes.
12 * hash-set.h: Likewise.
13 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
14 the include list. Remove <new>.
15 * inchash.h: Remove all includes.
16 * mem-stats.h: Likewise.
17 * vec.h: No special processing for generators or ggc.
18 * alias.c : Adjust include files.
19 * alloc-pool.c : Likewise.
20 * alloc-pool.h : Likewise.
22 * attribs.c : Likewise.
23 * auto-inc-dec.c : Likewise.
24 * auto-profile.c : Likewise.
25 * bb-reorder.c : Likewise.
26 * bitmap.c : Likewise.
27 * bitmap.h : Likewise.
28 * bt-load.c : Likewise.
29 * builtins.c : Likewise.
30 * caller-save.c : Likewise.
34 * cfganal.c : Likewise.
35 * cfgbuild.c : Likewise.
36 * cfgcleanup.c : Likewise.
37 * cfgexpand.c : Likewise.
38 * cfghooks.c : Likewise.
39 * cfgloop.c : Likewise.
40 * cfgloop.h : Likewise.
41 * cfgloopanal.c : Likewise.
42 * cfgloopmanip.c : Likewise.
43 * cfgrtl.c : Likewise.
44 * cgraph.c : Likewise.
45 * cgraphbuild.c : Likewise.
46 * cgraphclones.c : Likewise.
47 * cgraphunit.c : Likewise.
48 * cilk-common.c : Likewise.
49 * combine-stack-adj.c : Likewise.
50 * combine.c : Likewise.
51 * compare-elim.c : Likewise.
52 * context.c : Likewise.
53 * convert.c : Likewise.
54 * coverage.c : Likewise.
55 * cppbuiltin.c : Likewise.
58 * cselib.c : Likewise.
59 * data-streamer-in.c : Likewise.
60 * data-streamer-out.c : Likewise.
61 * data-streamer.c : Likewise.
62 * data-streamer.h : Likewise.
63 * dbxout.c : Likewise.
67 * df-core.c : Likewise.
68 * df-problems.c : Likewise.
69 * df-scan.c : Likewise.
72 * dojump.c : Likewise.
73 * dominance.c : Likewise.
74 * domwalk.c : Likewise.
75 * double-int.c : Likewise.
77 * dumpfile.c : Likewise.
78 * dwarf2asm.c : Likewise.
79 * dwarf2cfi.c : Likewise.
80 * dwarf2out.c : Likewise.
81 * emit-rtl.c : Likewise.
82 * et-forest.c : Likewise.
83 * except.c : Likewise.
84 * except.h : Likewise.
85 * explow.c : Likewise.
86 * expmed.c : Likewise.
89 * fixed-value.c : Likewise.
90 * fold-const.c : Likewise.
91 * function.c : Likewise.
92 * fwprop.c : Likewise.
93 * gcc-plugin.h : Likewise.
95 * gcse-common.c : Likewise.
97 * genattrtab.c : Likewise.
98 * genautomata.c : Likewise.
99 * genconditions.c : Likewise.
100 * genemit.c : Likewise.
101 * generic-match-head.c : Likewise.
102 * genextract.c : Likewise.
103 * gengtype-state.c : Likewise.
104 * gengtype.c : Likewise.
105 * genhooks.c : Likewise.
106 * genmatch.c : Likewise.
107 * genmodes.c : Likewise.
108 * genrecog.c : Likewise.
109 * gensupport.c : Likewise.
110 * ggc-common.c : Likewise.
111 * ggc-internal.h : Likewise.
112 * ggc-none.c : Likewise.
113 * ggc-page.c : Likewise.
114 * gimple-builder.c : Likewise.
115 * gimple-expr.c : Likewise.
116 * gimple-fold.c : Likewise.
117 * gimple-iterator.c : Likewise.
118 * gimple-low.c : Likewise.
119 * gimple-match-head.c : Likewise.
120 * gimple-pretty-print.c : Likewise.
121 * gimple-ssa-isolate-paths.c : Likewise.
122 * gimple-ssa-strength-reduction.c : Likewise.
123 * gimple-ssa.h : Likewise.
124 * gimple-streamer-in.c : Likewise.
125 * gimple-streamer-out.c : Likewise.
126 * gimple-streamer.h : Likewise.
127 * gimple-walk.c : Likewise.
128 * gimple.c : Likewise.
129 * gimplify-me.c : Likewise.
130 * gimplify.c : Likewise.
131 * godump.c : Likewise.
132 * graph.c : Likewise.
133 * graphds.c : Likewise.
134 * graphite-blocking.c : Likewise.
135 * graphite-dependences.c : Likewise.
136 * graphite-interchange.c : Likewise.
137 * graphite-isl-ast-to-gimple.c : Likewise.
138 * graphite-optimize-isl.c : Likewise.
139 * graphite-poly.c : Likewise.
140 * graphite-scop-detection.c : Likewise.
141 * graphite-sese-to-poly.c : Likewise.
142 * graphite.c : Likewise.
143 * haifa-sched.c : Likewise.
144 * hard-reg-set.h : Likewise.
145 * hw-doloop.c : Likewise.
146 * ifcvt.c : Likewise.
147 * inchash.c : Likewise.
148 * incpath.c : Likewise.
149 * init-regs.c : Likewise.
150 * input.c : Likewise.
151 * internal-fn.c : Likewise.
152 * ipa-chkp.c : Likewise.
153 * ipa-comdats.c : Likewise.
154 * ipa-cp.c : Likewise.
155 * ipa-devirt.c : Likewise.
156 * ipa-icf-gimple.c : Likewise.
157 * ipa-icf.c : Likewise.
158 * ipa-inline-analysis.c : Likewise.
159 * ipa-inline-transform.c : Likewise.
160 * ipa-inline.c : Likewise.
161 * ipa-polymorphic-call.c : Likewise.
162 * ipa-profile.c : Likewise.
163 * ipa-prop.c : Likewise.
164 * ipa-pure-const.c : Likewise.
165 * ipa-ref.c : Likewise.
166 * ipa-reference.c : Likewise.
167 * ipa-split.c : Likewise.
168 * ipa-utils.c : Likewise.
169 * ipa-visibility.c : Likewise.
171 * ira-build.c : Likewise.
172 * ira-color.c : Likewise.
173 * ira-conflicts.c : Likewise.
174 * ira-costs.c : Likewise.
175 * ira-emit.c : Likewise.
176 * ira-lives.c : Likewise.
179 * langhooks.c : Likewise.
181 * libfuncs.h : Likewise.
182 * lists.c : Likewise.
183 * loop-doloop.c : Likewise.
184 * loop-init.c : Likewise.
185 * loop-invariant.c : Likewise.
186 * loop-iv.c : Likewise.
187 * loop-unroll.c : Likewise.
188 * lower-subreg.c : Likewise.
189 * lra-assigns.c : Likewise.
190 * lra-coalesce.c : Likewise.
191 * lra-constraints.c : Likewise.
192 * lra-eliminations.c : Likewise.
193 * lra-lives.c : Likewise.
194 * lra-remat.c : Likewise.
195 * lra-spills.c : Likewise.
197 * lto-cgraph.c : Likewise.
198 * lto-compress.c : Likewise.
199 * lto-opts.c : Likewise.
200 * lto-section-in.c : Likewise.
201 * lto-section-out.c : Likewise.
202 * lto-streamer-in.c : Likewise.
203 * lto-streamer-out.c : Likewise.
204 * lto-streamer.c : Likewise.
205 * lto-streamer.h : Likewise.
207 * mode-switching.c : Likewise.
208 * modulo-sched.c : Likewise.
209 * omega.c : Likewise.
210 * omp-low.c : Likewise.
211 * optabs.c : Likewise.
212 * opts-global.c : Likewise.
214 * passes.c : Likewise.
215 * plugin.c : Likewise.
216 * postreload-gcse.c : Likewise.
217 * postreload.c : Likewise.
218 * predict.c : Likewise.
219 * print-rtl.c : Likewise.
220 * print-tree.c : Likewise.
221 * profile.c : Likewise.
222 * read-md.c : Likewise.
223 * read-md.h : Likewise.
224 * read-rtl.c : Likewise.
226 * realmpfr.c : Likewise.
227 * recog.c : Likewise.
229 * reg-stack.c : Likewise.
230 * regcprop.c : Likewise.
231 * reginfo.c : Likewise.
232 * regrename.c : Likewise.
233 * regstat.c : Likewise.
234 * reload.c : Likewise.
235 * reload1.c : Likewise.
236 * reorg.c : Likewise.
237 * resource.c : Likewise.
238 * rtl-chkp.c : Likewise.
241 * rtlanal.c : Likewise.
242 * rtlhash.c : Likewise.
243 * rtlhash.h : Likewise.
244 * rtlhooks.c : Likewise.
245 * sanopt.c : Likewise.
246 * sched-deps.c : Likewise.
247 * sched-ebb.c : Likewise.
248 * sched-rgn.c : Likewise.
249 * sched-vis.c : Likewise.
250 * sdbout.c : Likewise.
251 * sel-sched-dump.c : Likewise.
252 * sel-sched-ir.c : Likewise.
253 * sel-sched-ir.h : Likewise.
254 * sel-sched.c : Likewise.
256 * shrink-wrap.c : Likewise.
257 * shrink-wrap.h : Likewise.
258 * simplify-rtx.c : Likewise.
259 * stack-ptr-mod.c : Likewise.
260 * statistics.c : Likewise.
262 * stor-layout.c : Likewise.
263 * store-motion.c : Likewise.
264 * stringpool.c : Likewise.
265 * symtab.c : Likewise.
266 * target-globals.c : Likewise.
267 * targhooks.c : Likewise.
268 * tlink.c : Likewise.
269 * toplev.c : Likewise.
270 * tracer.c : Likewise.
271 * trans-mem.c : Likewise.
272 * tree-affine.c : Likewise.
273 * tree-affine.h : Likewise.
274 * tree-browser.c : Likewise.
275 * tree-call-cdce.c : Likewise.
276 * tree-cfg.c : Likewise.
277 * tree-cfgcleanup.c : Likewise.
278 * tree-chkp-opt.c : Likewise.
279 * tree-chkp.c : Likewise.
280 * tree-chrec.c : Likewise.
281 * tree-complex.c : Likewise.
282 * tree-data-ref.c : Likewise.
283 * tree-dfa.c : Likewise.
284 * tree-diagnostic.c : Likewise.
285 * tree-dump.c : Likewise.
286 * tree-eh.c : Likewise.
287 * tree-eh.h : Likewise.
288 * tree-emutls.c : Likewise.
289 * tree-hasher.h : Likewise.
290 * tree-if-conv.c : Likewise.
291 * tree-inline.c : Likewise.
292 * tree-inline.h : Likewise.
293 * tree-into-ssa.c : Likewise.
294 * tree-iterator.c : Likewise.
295 * tree-loop-distribution.c : Likewise.
296 * tree-nested.c : Likewise.
297 * tree-nrv.c : Likewise.
298 * tree-object-size.c : Likewise.
299 * tree-outof-ssa.c : Likewise.
300 * tree-parloops.c : Likewise.
301 * tree-phinodes.c : Likewise.
302 * tree-predcom.c : Likewise.
303 * tree-pretty-print.c : Likewise.
304 * tree-profile.c : Likewise.
305 * tree-scalar-evolution.c : Likewise.
306 * tree-sra.c : Likewise.
307 * tree-ssa-address.c : Likewise.
308 * tree-ssa-alias.c : Likewise.
309 * tree-ssa-ccp.c : Likewise.
310 * tree-ssa-coalesce.c : Likewise.
311 * tree-ssa-copy.c : Likewise.
312 * tree-ssa-copyrename.c : Likewise.
313 * tree-ssa-dce.c : Likewise.
314 * tree-ssa-dom.c : Likewise.
315 * tree-ssa-dse.c : Likewise.
316 * tree-ssa-forwprop.c : Likewise.
317 * tree-ssa-ifcombine.c : Likewise.
318 * tree-ssa-live.c : Likewise.
319 * tree-ssa-loop-ch.c : Likewise.
320 * tree-ssa-loop-im.c : Likewise.
321 * tree-ssa-loop-ivcanon.c : Likewise.
322 * tree-ssa-loop-ivopts.c : Likewise.
323 * tree-ssa-loop-manip.c : Likewise.
324 * tree-ssa-loop-niter.c : Likewise.
325 * tree-ssa-loop-prefetch.c : Likewise.
326 * tree-ssa-loop-unswitch.c : Likewise.
327 * tree-ssa-loop.c : Likewise.
328 * tree-ssa-math-opts.c : Likewise.
329 * tree-ssa-operands.c : Likewise.
330 * tree-ssa-phiopt.c : Likewise.
331 * tree-ssa-phiprop.c : Likewise.
332 * tree-ssa-pre.c : Likewise.
333 * tree-ssa-propagate.c : Likewise.
334 * tree-ssa-reassoc.c : Likewise.
335 * tree-ssa-sccvn.c : Likewise.
336 * tree-ssa-scopedtables.c : Likewise.
337 * tree-ssa-sink.c : Likewise.
338 * tree-ssa-strlen.c : Likewise.
339 * tree-ssa-structalias.c : Likewise.
340 * tree-ssa-tail-merge.c : Likewise.
341 * tree-ssa-ter.c : Likewise.
342 * tree-ssa-threadedge.c : Likewise.
343 * tree-ssa-threadupdate.c : Likewise.
344 * tree-ssa-uncprop.c : Likewise.
345 * tree-ssa-uninit.c : Likewise.
346 * tree-ssa.c : Likewise.
347 * tree-ssanames.c : Likewise.
348 * tree-stdarg.c : Likewise.
349 * tree-streamer-in.c : Likewise.
350 * tree-streamer-out.c : Likewise.
351 * tree-streamer.c : Likewise.
352 * tree-streamer.h : Likewise.
353 * tree-switch-conversion.c : Likewise.
354 * tree-tailcall.c : Likewise.
355 * tree-vect-data-refs.c : Likewise.
356 * tree-vect-generic.c : Likewise.
357 * tree-vect-loop-manip.c : Likewise.
358 * tree-vect-loop.c : Likewise.
359 * tree-vect-patterns.c : Likewise.
360 * tree-vect-slp.c : Likewise.
361 * tree-vect-stmts.c : Likewise.
362 * tree-vectorizer.c : Likewise.
363 * tree-vectorizer.h : Likewise.
364 * tree-vrp.c : Likewise.
367 * ubsan.c : Likewise.
368 * valtrack.c : Likewise.
369 * valtrack.h : Likewise.
370 * value-prof.c : Likewise.
371 * var-tracking.c : Likewise.
372 * varasm.c : Likewise.
373 * varpool.c : Likewise.
375 * vmsdbgout.c : Likewise.
376 * vtable-verify.c : Likewise.
377 * vtable-verify.h : Likewise.
379 * wide-int.cc : Likewise.
380 * xcoffout.c : Likewise.
381 * config/aarch64/aarch64-builtins.c : Likewise.
382 * config/aarch64/aarch64.c : Likewise.
383 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
384 * config/alpha/alpha.c : Likewise.
385 * config/arc/arc.c : Likewise.
386 * config/arm/aarch-common.c : Likewise.
387 * config/arm/arm-builtins.c : Likewise.
388 * config/arm/arm-c.c : Likewise.
389 * config/arm/arm.c : Likewise.
390 * config/avr/avr-c.c : Likewise.
391 * config/avr/avr-log.c : Likewise.
392 * config/avr/avr.c : Likewise.
393 * config/bfin/bfin.c : Likewise.
394 * config/c6x/c6x.c : Likewise.
395 * config/cr16/cr16.c : Likewise.
396 * config/cris/cris.c : Likewise.
397 * config/darwin-c.c : Likewise.
398 * config/darwin.c : Likewise.
399 * config/default-c.c : Likewise.
400 * config/epiphany/epiphany.c : Likewise.
401 * config/epiphany/mode-switch-use.c : Likewise.
402 * config/epiphany/resolve-sw-modes.c : Likewise.
403 * config/fr30/fr30.c : Likewise.
404 * config/frv/frv.c : Likewise.
405 * config/ft32/ft32.c : Likewise.
406 * config/glibc-c.c : Likewise.
407 * config/h8300/h8300.c : Likewise.
408 * config/i386/i386-c.c : Likewise.
409 * config/i386/i386.c : Likewise.
410 * config/i386/msformat-c.c : Likewise.
411 * config/i386/winnt-cxx.c : Likewise.
412 * config/i386/winnt-stubs.c : Likewise.
413 * config/i386/winnt.c : Likewise.
414 * config/ia64/ia64-c.c : Likewise.
415 * config/ia64/ia64.c : Likewise.
416 * config/iq2000/iq2000.c : Likewise.
417 * config/lm32/lm32.c : Likewise.
418 * config/m32c/m32c-pragma.c : Likewise.
419 * config/m32c/m32c.c : Likewise.
420 * config/m32r/m32r.c : Likewise.
421 * config/m68k/m68k.c : Likewise.
422 * config/mcore/mcore.c : Likewise.
423 * config/mep/mep-pragma.c : Likewise.
424 * config/mep/mep.c : Likewise.
425 * config/microblaze/microblaze-c.c : Likewise.
426 * config/microblaze/microblaze.c : Likewise.
427 * config/mips/mips.c : Likewise.
428 * config/mmix/mmix.c : Likewise.
429 * config/mn10300/mn10300.c : Likewise.
430 * config/moxie/moxie.c : Likewise.
431 * config/msp430/msp430-c.c : Likewise.
432 * config/msp430/msp430.c : Likewise.
433 * config/nds32/nds32-cost.c : Likewise.
434 * config/nds32/nds32-fp-as-gp.c : Likewise.
435 * config/nds32/nds32-intrinsic.c : Likewise.
436 * config/nds32/nds32-isr.c : Likewise.
437 * config/nds32/nds32-md-auxiliary.c : Likewise.
438 * config/nds32/nds32-memory-manipulation.c : Likewise.
439 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
440 * config/nds32/nds32-predicates.c : Likewise.
441 * config/nds32/nds32.c : Likewise.
442 * config/nios2/nios2.c : Likewise.
443 * config/nvptx/nvptx.c : Likewise.
444 * config/pa/pa.c : Likewise.
445 * config/pdp11/pdp11.c : Likewise.
446 * config/rl78/rl78-c.c : Likewise.
447 * config/rl78/rl78.c : Likewise.
448 * config/rs6000/rs6000-c.c : Likewise.
449 * config/rs6000/rs6000.c : Likewise.
450 * config/rx/rx.c : Likewise.
451 * config/s390/s390-c.c : Likewise.
452 * config/s390/s390.c : Likewise.
453 * config/sh/sh-c.c : Likewise.
454 * config/sh/sh-mem.cc : Likewise.
455 * config/sh/sh.c : Likewise.
456 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
457 * config/sh/sh_treg_combine.cc : Likewise.
458 * config/sol2-c.c : Likewise.
459 * config/sol2-cxx.c : Likewise.
460 * config/sol2-stubs.c : Likewise.
461 * config/sol2.c : Likewise.
462 * config/sparc/sparc-c.c : Likewise.
463 * config/sparc/sparc.c : Likewise.
464 * config/spu/spu-c.c : Likewise.
465 * config/spu/spu.c : Likewise.
466 * config/stormy16/stormy16.c : Likewise.
467 * config/tilegx/mul-tables.c : Likewise.
468 * config/tilegx/tilegx-c.c : Likewise.
469 * config/tilegx/tilegx.c : Likewise.
470 * config/tilepro/mul-tables.c : Likewise.
471 * config/tilepro/tilepro-c.c : Likewise.
472 * config/tilepro/tilepro.c : Likewise.
473 * config/v850/v850-c.c : Likewise.
474 * config/v850/v850.c : Likewise.
475 * config/vax/vax.c : Likewise.
476 * config/visium/visium.c : Likewise.
477 * config/vms/vms-c.c : Likewise.
478 * config/vms/vms.c : Likewise.
479 * config/vxworks.c : Likewise.
480 * config/winnt-c.c : Likewise.
481 * config/xtensa/xtensa.c : Likewise.
483 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
486 * ipa-utils.h (warn_types_mismatch): Update prototype.
487 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
489 (type_mismatch_p): New function.
490 (warn_types_mismatch): Reorg to work better on non-C++ types.
491 (odr_types_equivalent_p): Add loc1/loc2 parameters.
492 (add_type_duplicate): Update.
494 2015-06-08 Tom de Vries <tom@codesourcery.com>
496 PR rtl-optimization/66444
497 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
500 2015-06-08 Richard Biener <rguenther@suse.de>
502 PR tree-optimization/66422
503 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
504 block after inserted gcc_unreachable.
506 2015-06-08 Nick Clifton <nickc@redhat.com>
508 * config/rx/rx.c (rx_function_value): Do not promote vector types.
509 (rx_promote_function_mode): Likewise.
510 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
512 2015-06-08 Jakub Jelinek <jakub@redhat.com>
514 * genattrtab.c (insn_alternatives): Change type from int *
516 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
517 (get_attr_value): Change type of num_alt to uint64_t.
518 (compute_alternative_mask): Change return type from
519 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
520 (make_alternative_compare, mk_attr_alt): Change argument type
521 from int to uint64_t.
522 (simplify_test_exp): Change type of i from int to uint64_t.
523 Shift ((uint64_t) 1) instead of 1 up.
524 (main): Adjust oballocvec first argument from int to uint64_t.
525 Shift ((uint64_t) 1) instead of 1 up.
527 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
530 * gdbhooks.py: Import sys.
531 (intptr): New function. Replace int(...) by intptr(...).
533 2015-06-08 Richard Biener <rguenther@suse.de>
535 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
536 adjustment for gaps at the end of a SLP load group properly.
537 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
538 all permutations we can generate.
539 (vect_transform_slp_perm_load): Use the correct group-size.
541 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
543 * genmatch.c (expr::gen_transform): For conditions, guess the type
544 from the second operand.
546 2015-06-08 Tom de Vries <tom@codesourcery.com>
548 PR tree-optimization/66442
549 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
550 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
551 if the loop latch is not a singleton. Use
552 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
554 2015-06-08 Marek Polacek <polacek@redhat.com>
557 * toplev.c (check_global_declaration): Don't warn about artificial
560 2015-06-08 Tom de Vries <tom@codesourcery.com>
562 PR tree-optimization/66436
563 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
565 * gimplify.c: Add tree-dump.h include.
566 (gimplify_function_tree): Dump function to gimple dump file.
567 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
570 2015-06-08 Tom de Vries <tom@codesourcery.com>
572 PR tree-optimization/66435
573 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
576 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
578 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
579 of ptr_type_node to not be ptr_to_node.
580 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
581 TREE_TYPE of pointers.
582 * gimple-expr.c (useless_type_conversion): Reorder the check for
583 function pointers and TYPE_CANONICAL.
585 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
588 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
589 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
590 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
592 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
593 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
594 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
595 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
596 and non iso if unix2003.
598 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
600 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
602 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
604 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
605 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
606 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
607 except.c, final.c, function.c, gcse-common.c, genemit.c,
608 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
609 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
610 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
611 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
614 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
616 * combine.c (combine_split_insns): Remove cast.
617 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
618 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
619 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
620 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
621 * genemit.c (gen_split): Change return type of generated functions to
623 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
624 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
625 gen_peephole2_* functions.
626 (print_subroutine, main): Likewise.
627 * recog.c (peephole2_optimize): Remove cast.
628 (peep2_next_insn): Promote return type to rtx_insn.
629 * recog.h (peep2_next_insn): Fix prototype.
630 * rtl.h (try_split, split_insns): Likewise.
632 2015-06-06 DJ Delorie <dj@redhat.com>
634 * config/msp430/msp430.c (msp430_asm_integer): Support addition
637 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
640 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
641 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
642 instead of Snd. Disparage Sid/z alternative with '^'.
644 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
646 * dwarf2out.c: Remove deferred_locations*.
647 (dwarf2_debug_hooks): Add early_finish hook.
648 Remove global_decl hook.
649 Add early_global_decl and late_global_decl hook.
650 New global early_dwarf.
651 New structure set_early_dwarf.
652 (output_die): Indicate whether a DIE was generated early
653 when generating assembly with -dA.
654 (struct limbo_die_struct): Document created_for field.
655 Remove file_table_last_lookup.
656 (remove_AT): Return TRUE if successful.
657 (remove_child_TAG): Clear die_parent.
658 (reparent_child): New function abstracted from...
659 (splice_child_die): ...here.
660 (new_die): ICE if a DIE ends up in limbo too late.
662 (defer_location): Remove.
663 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
664 (fill_variable_array_bounds): New.
665 (decl_start_label): Call fill_variable_array_bounds.
666 (gen_formal_parameter_die): Rewrite to reuse previously generated
668 (gen_subprogram_die): Same.
669 (gen_variable_die): Same.
670 (gen_const_die): Same.
671 (gen_label_die): Same.
672 (gen_lexical_block_die): Same.
673 (decl_will_get_specification_p): New.
674 (local_function_static): New.
675 (gen_struct_or_union_type_die): Fill in variable-length fields.
676 (gen_typedef_die): Fill in variable-length typedefs.
677 (gen_tagged_type_die): Gracefully return on error_mark_node.
679 (gen_type_die_with_usage): Handle variable-length types.
680 Remove duplicate code for ARRAY_TYPE case.
681 (process_scope_var): Only process imported modules during early
683 (dwarf2out_early_global_decl): New.
684 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
685 (dwarf2out_type_decl): Set early_dwarf while calling
687 (dwarf2out_decl): Verify that we did not recreate a previously
689 Do not return on DECL_EXTERNALs in VAR_DECLs.
690 Abstract some code to local_function_static.
691 (lookup_filename): Remove use of file_table_last_lookup.
692 Gracefully exit on missing file_name.
693 (dwarf2out_finish): Verify limbo list.
694 Remove deferred_locations_list use.
695 Move deferred_asm_name and limbo flushing to...
696 (dwarf2out_early_finish): ...here. New.
697 (dwarf2out_c_finalize): Remove set of deferred_location_list,
698 deferred_asm_name, and file_table_last_lookup.
699 * cgraph.h (referred_to_p): Add default argument.
700 * cgraphunit.c (referred_to_p): Add and handle include_self
702 (analyze_functions): Add first_time argument.
703 Call check_global_declaration for all symbols.
704 Call late_global_decl for nodes for moribund nodes.
705 (finalize_compilation_unit): Add new argument to
707 Call early_global_decl for functions.
708 Call early_finish debug hook.
709 * dbxout.c (dbxout_early_global_decl): New.
710 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
711 (dbx_debug_hooks): Add new hooks.
712 (xcoff_debug_hooks): Same.
713 * debug.c (do_nothing_debug_hooks): Add early_finish field.
714 Add early and late debug hooks.
715 Remove global_decl hook.
716 * debug.h (struct gcc_debug_hooks): Add early_finish,
717 early_global_decl, and late_global_decl fields.
718 Remove global_decl field.
719 Document gcc_debug_hooks.
720 * gengtype.c (output_typename): Remove.
721 * godump.c (go_early_global_decl): New.
722 (go_late_global_decl): New.
723 (go_global_decl): Remove.
724 (dump_go_spec_init): Remove global_decl. Add
725 {early,late}_global_decl.
726 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
727 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
728 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
729 (write_global_declarations): Remove.
730 (global_decl_processing): New.
731 * langhooks.h (struct lang_hooks_for_decls): Remove
732 final_write_globals field.
733 Add post_compilation_parsing_cleanups field.
734 * passes.c (rest_of_decl_compilation): Call early_global_decl.
735 * sdbout.c: Add early and late_global_decl hooks. Remove
736 sdbout_global_decl hook.
737 Add early_finish field for sdb_debug_hooks.
738 (sdbout_global_decl): Remove.
739 (sdbout_early_global_decl): New.
740 (sdbout_late_global_decl): New.
741 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
742 * toplev.c (check_global_declaration): Rename from
743 check_global_declaration_1.
744 Adapt to use symtab infrastructure.
745 (check_global_declarations): Remove.
746 (emit_debug_global_declarations): Remove.
747 (compile_file): Remove call to final_write_globals langhook.
748 Run the actual compilation process.
749 Perform any post compilation parser cleanups.
750 Generate late debug info.
751 * toplev.h (check_global_declaration): New.
752 (check_global_declaration_1): Remove.
753 (check_global_declarations): Remove.
754 (write_global_declarations): Remove.
755 (emit_debug_global_declarations): Remove.
756 (global_decl_processing): New.
757 * tree-core.h (struct tree_block): Add DIE field.
758 * tree.h (BLOCK_DIE): New.
759 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
761 (vmsdbgout_early_global_decl): New.
762 (vmsdbgout_late_global_decl): New.
763 Add early_finish debug hook field to vmsdbg_debug_hooks.
764 Remove vmsdbgout_decl to vmsdbgout_function_decl.
765 Add early and late_global_decl debug hooks.
767 2015-06-05 Julian Brown <julian@codesourcery.com>
768 Sandra Loosemore <sandra@codesourcery.com>
770 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
771 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
772 to print-sysroot-suffix.sh script.
774 2015-06-05 Tom de Vries <tom@codesourcery.com>
776 merge from gomp4 branch:
777 2015-05-28 Tom de Vries <tom@codesourcery.com>
779 PR tree-optimization/65443
780 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
781 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
782 (try_transform_to_exit_first_loop_alt): New function.
783 (transform_to_exit_first_loop): Use
784 try_transform_to_exit_first_loop_alt.
786 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
788 * builtins.c (expand_builtin_atomic_compare_exchange): Call
789 emit_cmp_and_jump_insns with the mode of target.
791 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
793 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
795 2015-06-04 DJ Delorie <dj@redhat.com>
797 * config/msp430/msp430.md (movsi_s): New. Special case for
798 storing a 20-bit symbol into a 32-bit register.
799 * config/msp430/msp430.c (msp430_subreg): Add support for it.
800 * config/msp430/predicates.md (msp430_symbol_operand): New.
802 2015-06-04 Sriraman Tallam <tmsriram@google.com>
804 * c-family/c-common.c (noplt): New attribute.
805 (handle_noplt_attribute): New handler.
806 * calls.c (prepare_call_address): Check for noplt
808 * config/i386/i386.c (ix86_expand_call): Check
810 (ix86_nopic_noplt_attribute_p): New function.
811 (ix86_output_call_insn): Output indirect call for non-pic
813 * doc/extend.texi (noplt): Document new attribute.
814 * doc/invoke.texi: Document new attribute.
816 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
818 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
819 real.h, and fixed-value.h when included in host source files.
820 * double-int.h: Remove redundant #includes listed above.
821 * fixed-value.h: Likewise.
823 * wide-int.h: Likewise.
824 * inchash.h: Likewise.
825 * rtl.h: Add some include files When included from a generator file.
826 * target.h: Remove wide-int.h and insn-modes.h from the include list.
827 * internal-fn.h: Don't include coretypes.h.
828 * alias.c: Adjust includes for restructured coretypes.h.
830 * attribs.c: Likewise.
831 * auto-inc-dec.c: Likewise.
832 * auto-profile.c: Likewise.
833 * bb-reorder.c: Likewise.
834 * bt-load.c: Likewise.
835 * builtins.c: Likewise.
836 * caller-save.c: Likewise.
840 * cfganal.c: Likewise.
841 * cfgbuild.c: Likewise.
842 * cfgcleanup.c: Likewise.
843 * cfgexpand.c: Likewise.
844 * cfghooks.c: Likewise.
845 * cfgloop.c: Likewise.
846 * cfgloop.h: Likewise.
847 * cfgloopanal.c: Likewise.
848 * cfgloopmanip.c: Likewise.
849 * cfgrtl.c: Likewise.
850 * cgraph.c: Likewise.
851 * cgraphbuild.c: Likewise.
852 * cgraphclones.c: Likewise.
853 * cgraphunit.c: Likewise.
854 * cilk-common.c: Likewise.
855 * combine-stack-adj.c: Likewise.
856 * combine.c: Likewise.
857 * compare-elim.c: Likewise.
858 * convert.c: Likewise.
859 * coverage.c: Likewise.
860 * cppbuiltin.c: Likewise.
863 * cselib.c: Likewise.
864 * data-streamer-in.c: Likewise.
865 * data-streamer-out.c: Likewise.
866 * data-streamer.c: Likewise.
867 * dbxout.c: Likewise.
871 * df-core.c: Likewise.
872 * df-problems.c: Likewise.
873 * df-scan.c: Likewise.
876 * dojump.c: Likewise.
877 * dominance.c: Likewise.
878 * domwalk.c: Likewise.
879 * double-int.c: Likewise.
881 * dumpfile.c: Likewise.
882 * dwarf2asm.c: Likewise.
883 * dwarf2cfi.c: Likewise.
884 * dwarf2out.c: Likewise.
885 * dwarf2out.h: Likewise.
886 * emit-rtl.c: Likewise.
887 * et-forest.c: Likewise.
888 * except.c: Likewise.
889 * explow.c: Likewise.
890 * expmed.c: Likewise.
893 * fixed-value.c: Likewise.
894 * fold-const.c: Likewise.
895 * function.c: Likewise.
896 * fwprop.c: Likewise.
897 * gcc-plugin.h: Likewise.
899 * generic-match-head.c: Likewise.
900 * ggc-page.c: Likewise.
901 * gimple-builder.c: Likewise.
902 * gimple-expr.c: Likewise.
903 * gimple-fold.c: Likewise.
904 * gimple-iterator.c: Likewise.
905 * gimple-low.c: Likewise.
906 * gimple-match-head.c: Likewise.
907 * gimple-pretty-print.c: Likewise.
908 * gimple-ssa-isolate-paths.c: Likewise.
909 * gimple-ssa-strength-reduction.c: Likewise.
910 * gimple-streamer-in.c: Likewise.
911 * gimple-streamer-out.c: Likewise.
912 * gimple-streamer.h: Likewise.
913 * gimple-walk.c: Likewise.
914 * gimple.c: Likewise.
915 * gimplify-me.c: Likewise.
916 * gimplify.c: Likewise.
917 * godump.c: Likewise.
919 * graphite-blocking.c: Likewise.
920 * graphite-dependences.c: Likewise.
921 * graphite-interchange.c: Likewise.
922 * graphite-isl-ast-to-gimple.c: Likewise.
923 * graphite-optimize-isl.c: Likewise.
924 * graphite-poly.c: Likewise.
925 * graphite-scop-detection.c: Likewise.
926 * graphite-sese-to-poly.c: Likewise.
927 * graphite.c: Likewise.
928 * haifa-sched.c: Likewise.
930 * hw-doloop.c: Likewise.
932 * incpath.c: Likewise.
933 * init-regs.c: Likewise.
934 * internal-fn.c: Likewise.
935 * ipa-chkp.c: Likewise.
936 * ipa-comdats.c: Likewise.
937 * ipa-cp.c: Likewise.
938 * ipa-devirt.c: Likewise.
939 * ipa-icf-gimple.c: Likewise.
940 * ipa-icf.c: Likewise.
941 * ipa-inline-analysis.c: Likewise.
942 * ipa-inline-transform.c: Likewise.
943 * ipa-inline.c: Likewise.
944 * ipa-polymorphic-call.c: Likewise.
945 * ipa-profile.c: Likewise.
946 * ipa-prop.c: Likewise.
947 * ipa-pure-const.c: Likewise.
948 * ipa-ref.c: Likewise.
949 * ipa-reference.c: Likewise.
950 * ipa-split.c: Likewise.
951 * ipa-utils.c: Likewise.
952 * ipa-visibility.c: Likewise.
954 * ira-build.c: Likewise.
955 * ira-color.c: Likewise.
956 * ira-conflicts.c: Likewise.
957 * ira-costs.c: Likewise.
958 * ira-emit.c: Likewise.
959 * ira-lives.c: Likewise.
962 * langhooks.c: Likewise.
964 * loop-doloop.c: Likewise.
965 * loop-init.c: Likewise.
966 * loop-invariant.c: Likewise.
967 * loop-iv.c: Likewise.
968 * loop-unroll.c: Likewise.
969 * lower-subreg.c: Likewise.
970 * lra-assigns.c: Likewise.
971 * lra-coalesce.c: Likewise.
972 * lra-constraints.c: Likewise.
973 * lra-eliminations.c: Likewise.
974 * lra-lives.c: Likewise.
975 * lra-remat.c: Likewise.
976 * lra-spills.c: Likewise.
978 * lto-cgraph.c: Likewise.
979 * lto-compress.c: Likewise.
980 * lto-opts.c: Likewise.
981 * lto-section-in.c: Likewise.
982 * lto-section-out.c: Likewise.
983 * lto-streamer-in.c: Likewise.
984 * lto-streamer-out.c: Likewise.
985 * lto-streamer.c: Likewise.
987 * mode-switching.c: Likewise.
988 * modulo-sched.c: Likewise.
990 * omp-low.c: Likewise.
991 * optabs.c: Likewise.
992 * opts-global.c: Likewise.
993 * passes.c: Likewise.
994 * plugin.c: Likewise.
995 * postreload-gcse.c: Likewise.
996 * postreload.c: Likewise.
997 * predict.c: Likewise.
998 * print-rtl.c: Likewise.
999 * print-tree.c: Likewise.
1000 * profile.c: Likewise.
1002 * realmpfr.c: Likewise.
1003 * realmpfr.h: Likewise.
1004 * recog.c: Likewise.
1006 * reg-stack.c: Likewise.
1007 * regcprop.c: Likewise.
1008 * reginfo.c: Likewise.
1009 * regrename.c: Likewise.
1011 * regstat.c: Likewise.
1012 * reload.c: Likewise.
1013 * reload1.c: Likewise.
1014 * reorg.c: Likewise.
1015 * resource.c: Likewise.
1016 * rtl-chkp.c: Likewise.
1017 * rtlanal.c: Likewise.
1018 * rtlhooks.c: Likewise.
1019 * sanopt.c: Likewise.
1020 * sched-deps.c: Likewise.
1021 * sched-ebb.c: Likewise.
1022 * sched-rgn.c: Likewise.
1023 * sched-vis.c: Likewise.
1024 * sdbout.c: Likewise.
1025 * sel-sched-dump.c: Likewise.
1026 * sel-sched-ir.c: Likewise.
1027 * sel-sched.c: Likewise.
1029 * shrink-wrap.c: Likewise.
1030 * shrink-wrap.h: Likewise.
1031 * simplify-rtx.c: Likewise.
1032 * stack-ptr-mod.c: Likewise.
1033 * statistics.c: Likewise.
1035 * stor-layout.c: Likewise.
1036 * store-motion.c: Likewise.
1037 * stringpool.c: Likewise.
1038 * symtab.c: Likewise.
1039 * target-globals.c: Likewise.
1040 * targhooks.c: Likewise.
1041 * toplev.c: Likewise.
1042 * tracer.c: Likewise.
1043 * trans-mem.c: Likewise.
1044 * tree-affine.c: Likewise.
1045 * tree-affine.h: Likewise.
1046 * tree-browser.c: Likewise.
1047 * tree-call-cdce.c: Likewise.
1048 * tree-cfg.c: Likewise.
1049 * tree-cfgcleanup.c: Likewise.
1050 * tree-chkp-opt.c: Likewise.
1051 * tree-chkp.c: Likewise.
1052 * tree-chrec.c: Likewise.
1053 * tree-complex.c: Likewise.
1054 * tree-data-ref.c: Likewise.
1055 * tree-dfa.c: Likewise.
1056 * tree-diagnostic.c: Likewise.
1057 * tree-dump.c: Likewise.
1058 * tree-eh.c: Likewise.
1059 * tree-emutls.c: Likewise.
1060 * tree-if-conv.c: Likewise.
1061 * tree-inline.c: Likewise.
1062 * tree-into-ssa.c: Likewise.
1063 * tree-iterator.c: Likewise.
1064 * tree-loop-distribution.c: Likewise.
1065 * tree-nested.c: Likewise.
1066 * tree-nrv.c: Likewise.
1067 * tree-object-size.c: Likewise.
1068 * tree-outof-ssa.c: Likewise.
1069 * tree-parloops.c: Likewise.
1070 * tree-phinodes.c: Likewise.
1071 * tree-predcom.c: Likewise.
1072 * tree-pretty-print.c: Likewise.
1073 * tree-pretty-print.h: 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-copyrename.c: Likewise.
1083 * tree-ssa-dce.c: Likewise.
1084 * tree-ssa-dom.c: Likewise.
1085 * tree-ssa-dse.c: Likewise.
1086 * tree-ssa-forwprop.c: Likewise.
1087 * tree-ssa-ifcombine.c: Likewise.
1088 * tree-ssa-live.c: Likewise.
1089 * tree-ssa-loop-ch.c: Likewise.
1090 * tree-ssa-loop-im.c: Likewise.
1091 * tree-ssa-loop-ivcanon.c: Likewise.
1092 * tree-ssa-loop-ivopts.c: Likewise.
1093 * tree-ssa-loop-manip.c: Likewise.
1094 * tree-ssa-loop-niter.c: Likewise.
1095 * tree-ssa-loop-prefetch.c: Likewise.
1096 * tree-ssa-loop-unswitch.c: Likewise.
1097 * tree-ssa-loop.c: Likewise.
1098 * tree-ssa-loop.h: Likewise.
1099 * tree-ssa-math-opts.c: Likewise.
1100 * tree-ssa-operands.c: Likewise.
1101 * tree-ssa-phiopt.c: Likewise.
1102 * tree-ssa-phiprop.c: Likewise.
1103 * tree-ssa-pre.c: Likewise.
1104 * tree-ssa-propagate.c: Likewise.
1105 * tree-ssa-reassoc.c: Likewise.
1106 * tree-ssa-sccvn.c: Likewise.
1107 * tree-ssa-scopedtables.c: Likewise.
1108 * tree-ssa-sink.c: Likewise.
1109 * tree-ssa-strlen.c: Likewise.
1110 * tree-ssa-structalias.c: Likewise.
1111 * tree-ssa-tail-merge.c: Likewise.
1112 * tree-ssa-ter.c: Likewise.
1113 * tree-ssa-threadedge.c: Likewise.
1114 * tree-ssa-threadupdate.c: Likewise.
1115 * tree-ssa-uncprop.c: Likewise.
1116 * tree-ssa-uninit.c: Likewise.
1117 * tree-ssa.c: Likewise.
1118 * tree-ssanames.c: Likewise.
1119 * tree-stdarg.c: Likewise.
1120 * tree-streamer-in.c: Likewise.
1121 * tree-streamer-out.c: Likewise.
1122 * tree-streamer.c: Likewise.
1123 * tree-switch-conversion.c: Likewise.
1124 * tree-tailcall.c: Likewise.
1125 * tree-vect-data-refs.c: Likewise.
1126 * tree-vect-generic.c: Likewise.
1127 * tree-vect-loop-manip.c: Likewise.
1128 * tree-vect-loop.c: Likewise.
1129 * tree-vect-patterns.c: Likewise.
1130 * tree-vect-slp.c: Likewise.
1131 * tree-vect-stmts.c: Likewise.
1132 * tree-vectorizer.c: Likewise.
1133 * tree-vrp.c: Likewise.
1136 * ubsan.c: Likewise.
1137 * valtrack.c: Likewise.
1138 * value-prof.c: Likewise.
1139 * var-tracking.c: Likewise.
1140 * varasm.c: Likewise.
1141 * varpool.c: Likewise.
1142 * vmsdbgout.c: Likewise.
1143 * vtable-verify.c: Likewise.
1145 * wide-int-print.cc: Likewise.
1146 * wide-int-print.h: Likewise.
1147 * wide-int.cc: Likewise.
1148 * xcoffout.c: Likewise.
1149 * config/aarch64/aarch64-builtins.c: Likewise.
1150 * config/aarch64/aarch64.c: Likewise.
1151 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1152 * config/alpha/alpha.c: Likewise.
1153 * config/arc/arc.c: Likewise.
1154 * config/arm/aarch-common.c: Likewise.
1155 * config/arm/arm-builtins.c: Likewise.
1156 * config/arm/arm-c.c: Likewise.
1157 * config/arm/arm.c: Likewise.
1158 * config/avr/avr-c.c: Likewise.
1159 * config/avr/avr-log.c: Likewise.
1160 * config/avr/avr.c: Likewise.
1161 * config/bfin/bfin.c: Likewise.
1162 * config/c6x/c6x.c: Likewise.
1163 * config/cr16/cr16.c: Likewise.
1164 * config/cris/cris.c: Likewise.
1165 * config/darwin-c.c: Likewise.
1166 * config/darwin.c: Likewise.
1167 * config/default-c.c: Likewise.
1168 * config/epiphany/epiphany.c: Likewise.
1169 * config/epiphany/mode-switch-use.c: Likewise.
1170 * config/epiphany/resolve-sw-modes.c: Likewise.
1171 * config/fr30/fr30.c: Likewise.
1172 * config/frv/frv.c: Likewise.
1173 * config/ft32/ft32.c: Likewise.
1174 * config/glibc-c.c: Likewise.
1175 * config/h8300/h8300.c: Likewise.
1176 * config/i386/i386-c.c: Likewise.
1177 * config/i386/i386.c: Likewise.
1178 * config/i386/msformat-c.c: Likewise.
1179 * config/i386/winnt-cxx.c: Likewise.
1180 * config/i386/winnt-stubs.c: Likewise.
1181 * config/i386/winnt.c: Likewise.
1182 * config/ia64/ia64-c.c: Likewise.
1183 * config/ia64/ia64.c: Likewise.
1184 * config/iq2000/iq2000.c: Likewise.
1185 * config/lm32/lm32.c: Likewise.
1186 * config/m32c/m32c-pragma.c: Likewise.
1187 * config/m32c/m32c.c: Likewise.
1188 * config/m32r/m32r.c: Likewise.
1189 * config/m68k/m68k.c: Likewise.
1190 * config/mcore/mcore.c: Likewise.
1191 * config/mep/mep-pragma.c: Likewise.
1192 * config/mep/mep.c: Likewise.
1193 * config/microblaze/microblaze-c.c: Likewise.
1194 * config/microblaze/microblaze.c: Likewise.
1195 * config/mips/mips.c: Likewise.
1196 * config/mmix/mmix.c: Likewise.
1197 * config/mn10300/mn10300.c: Likewise.
1198 * config/moxie/moxie.c: Likewise.
1199 * config/msp430/msp430-c.c: Likewise.
1200 * config/msp430/msp430.c: Likewise.
1201 * config/nds32/nds32-cost.c: Likewise.
1202 * config/nds32/nds32-fp-as-gp.c: Likewise.
1203 * config/nds32/nds32-intrinsic.c: Likewise.
1204 * config/nds32/nds32-isr.c: Likewise.
1205 * config/nds32/nds32-md-auxiliary.c: Likewise.
1206 * config/nds32/nds32-memory-manipulation.c: Likewise.
1207 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1208 * config/nds32/nds32-predicates.c: Likewise.
1209 * config/nds32/nds32.c: Likewise.
1210 * config/nios2/nios2.c: Likewise.
1211 * config/nvptx/nvptx.c: Likewise.
1212 * config/pa/pa.c: Likewise.
1213 * config/pdp11/pdp11.c: Likewise.
1214 * config/rl78/rl78-c.c: Likewise.
1215 * config/rl78/rl78.c: Likewise.
1216 * config/rs6000/rs6000-c.c: Likewise.
1217 * config/rs6000/rs6000.c: Likewise.
1218 * config/rx/rx.c: Likewise.
1219 * config/s390/s390-c.c: Likewise.
1220 * config/s390/s390.c: Likewise.
1221 * config/sh/sh-c.c: Likewise.
1222 * config/sh/sh-mem.cc: Likewise.
1223 * config/sh/sh.c: Likewise.
1224 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1225 * config/sh/sh_treg_combine.cc: Likewise.
1226 * config/sol2-c.c: Likewise.
1227 * config/sol2-cxx.c: Likewise.
1228 * config/sol2-stubs.c: Likewise.
1229 * config/sol2.c: Likewise.
1230 * config/sparc/sparc-c.c: Likewise.
1231 * config/sparc/sparc.c: Likewise.
1232 * config/spu/spu-c.c: Likewise.
1233 * config/spu/spu.c: Likewise.
1234 * config/stormy16/stormy16.c: Likewise.
1235 * config/tilegx/mul-tables.c: Likewise.
1236 * config/tilegx/tilegx-c.c: Likewise.
1237 * config/tilegx/tilegx.c: Likewise.
1238 * config/tilepro/mul-tables.c: Likewise.
1239 * config/tilepro/tilepro-c.c: Likewise.
1240 * config/tilepro/tilepro.c: Likewise.
1241 * config/v850/v850-c.c: Likewise.
1242 * config/v850/v850.c: Likewise.
1243 * config/vax/vax.c: Likewise.
1244 * config/visium/visium.c: Likewise.
1245 * config/vms/vms-c.c: Likewise.
1246 * config/vms/vms.c: Likewise.
1247 * config/vxworks.c: Likewise.
1248 * config/winnt-c.c: Likewise.
1249 * config/xtensa/xtensa.c: Likewise.
1250 * common/config/bfin/bfin-common.c: Likewise.
1252 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
1254 * tree.h (tree_code_for_canonical_type_merging): New function.
1255 * tree.c (gimple_canonical_types_compatible_p): Use
1256 tree_code_for_canonical_type_merging..
1258 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1262 * doc/tm.texi: Regenerate.
1263 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
1264 * target.def (TARGET_RELAXED_ORDERING): Likewise.
1265 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
1266 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
1267 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
1268 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
1269 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
1270 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
1271 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
1273 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1275 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
1276 register fma steering pass.
1277 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
1278 AARCH64_TUNE_FMA_STEERING.
1280 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
1282 * tree.c (verify_type_variant): Verify that type and variant is
1284 (gimple_canonical_types_compatible_p): Look for main variants.
1286 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1288 * config.gcc (powerpc*-*-*): Add support for a new configure
1289 option --with-advance-toolchain=<xxx> which overrides using the
1290 default header files, libraries and dynamic linker.
1292 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
1293 specs to support the configure --with-advance-toolchain=<xxx>
1295 (INCLUDE_EXTRA_SPEC): Likewise.
1296 (LINK_OS_EXTRA_SPEC32): Likewise.
1297 (LINK_OK_EXTRA_SPEC64): Likewise.
1298 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
1299 (DYNAMIC_LINKER_PREFIX): Likewise.
1300 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
1302 (GLIBC_DYNAMIC_LINKER32): Likewise.
1303 (GLIBC_DYNAMIC_LINKER64): Likewise.
1304 (LINK_OS_LINUX_SPEC32): Likewise.
1305 (LINK_OS_LINUX_SPEC64): Likewise.
1307 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
1308 configuration option.
1310 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
1313 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
1314 to determine current function ABI.
1315 (ix86_function_value_regno_p): Ditto.
1317 2015-06-03 Martin Liska <mliska@suse.cz>
1319 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
1320 * bitmap.h (struct bitmap_usage): Likewise.
1321 * ggc-common.c (struct ggc_usage): Likewise.
1322 * mem-stats.h (struct mem_location): Likewise.
1323 (struct mem_usage): Likewise.
1324 * vec.c (struct vec_usage): Likewise.
1326 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
1328 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
1331 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
1333 * doc/plugins.texi (enum plugin_event): New event.
1334 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
1335 and PLUGIN_FINISH_FUNCTION.
1336 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
1337 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
1339 2015-06-03 Richard Biener <rguenther@suse.de>
1341 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1342 compute GROUP_GAP for the first element.
1343 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1346 2015-06-03 Nick Clifton <nickc@redhat.com>
1348 * config/rl78/rl78-real.md: Add peepholes to avoid a register
1349 copy when calling a function.
1350 * config/rl78/rl78.c (need_to_save): Do not push the frame
1351 pointer in an interrupt handler prologue if it is never used.
1353 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1355 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
1357 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
1359 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
1360 reference when cloning alias node.
1362 2015-06-03 Martin Liska <mliska@suse.cz>
1364 * alloc-pool.h (struct pool_usage): Correct space padding.
1365 * ggc-page.c (ggc_print_statistics): Align columns in a report.
1366 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
1367 * tree.c (dump_tree_statistics): Align columns in a report.
1369 2015-06-03 Martin Liska <mliska@suse.cz>
1371 * alloc-pool.c (allocate_pool_descriptor): Remove.
1372 (struct pool_output_info): Likewise.
1373 (print_alloc_pool_statistics): Likewise.
1374 (dump_alloc_pool_statistics): Likewise.
1375 * alloc-pool.h (struct pool_usage): New struct.
1376 (pool_allocator::initialize): Change usage of memory statistics
1378 (pool_allocator::release): Likewise.
1379 (pool_allocator::allocate): Likewise.
1380 (pool_allocator::remove): Likewise.
1381 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
1382 for a pool allocator.
1383 * mem-stats.h (struct mem_location): Add new ctor.
1384 (struct mem_usage): Add counter for number of
1386 (mem_alloc_description::register_descriptor): New overload of
1387 * mem-stats.h (mem_location::to_string): New function.
1388 * bitmap.h (struct bitmap_usage): Use this new function.
1389 * ggc-common.c (struct ggc_usage): Likewise.
1392 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
1394 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
1395 of GCC_INSN_FLAGS_H block.
1397 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
1399 * explow.c (plus_constant): Update check after force_const_mem call
1400 to see if the value returned is not a NULL_RTX.
1402 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
1404 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
1405 remove instumentation thunks calling reachable functions.
1406 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
1407 * lto/lto-partition.c (privatize_symbol_name_1): New.
1408 (privatize_symbol_name): Privatize both decl and orig_decl
1409 names for instrumented functions.
1410 * cgraph.c (cgraph_node::verify_node): Add transparent
1411 alias chain check for instrumented node.
1413 2015-06-03 Marek Polacek <polacek@redhat.com>
1417 * tree.c (attribute_value_equal): Handle attribute format.
1418 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
1420 2015-06-03 Richard Biener <rguenther@suse.de>
1422 PR tree-optimization/63916
1423 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1424 Forward-propagate non-invariant addresses by splicing their
1425 reference ops if the result isn't going to be used by PRE.
1426 (vn_reference_lookup_3): Remove pointless assert.
1428 2015-06-03 Richard Biener <rguenther@suse.de>
1430 PR tree-optimization/66375
1431 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
1432 add to the evolution before following SSA edges.
1434 2015-06-03 Bin Cheng <bin.cheng@arm.com>
1436 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
1437 (dump_use, dump_cand, find_induction_variables): Pass new argument
1439 (record_use): Preserve the ssa name information in IV.
1441 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
1443 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
1445 (add_mode_tests): Don't add mode tests if the predicate only
1446 accepts scalar constant integers. Otherwise, allow the mode
1447 of "op" to be VOIDmode if the predicate does accept such integers.
1449 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
1452 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
1453 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
1454 (aarch64_secondary_reload): Likewise
1455 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
1457 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
1460 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
1461 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1464 * cprop.c (try_replace_reg): Check cost of constants before propagating.
1466 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1468 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
1469 provide access to the IBM extended double floating point mode if
1470 long double is IEEE 128-bit floating point.
1471 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
1472 point if long double is the IBM extended double type.
1474 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
1475 enable adding IEEE 128-bit floating point support.
1476 (-mfloat128-software): Likewise.
1477 (-mfloat128-sw): Likewise.
1479 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
1480 128-bit floating point types to occupy any register if
1481 -mlong-double-64. Do not allow use of IFmode/KFmode unless
1482 -mfloat128-software is enabled.
1483 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
1485 (rs6000_option_override_internal): Add -mfloat128-* support.
1486 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
1488 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
1489 and float128 type nodes.
1490 (ieee128_float_type_node): Likewise.
1491 (ibm128_float_type_node): Likewise.
1493 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1496 * config/aarch64/geniterators.sh: Rewrite in awk.
1498 2015-06-02 Martin Liska <mliska@suse.cz>
1500 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
1501 values to avoid -Wmaybe-uninitialized errors.
1503 2015-06-02 Richard Biener <rguenther@suse.de>
1506 * dwarf2out.c (lookup_context_die): New function.
1507 (resolve_addr): Avoid forcing a full DIE for the
1508 target of a DW_TAG_GNU_call_site during late compilation.
1509 Instead create a stub DIE without a type if we have a
1510 context DIE present.
1512 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
1514 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
1516 2015-06-02 Bin Cheng <bin.cheng@arm.com>
1518 PR tree-optimization/48052
1519 * cfgloop.h (struct control_iv): New.
1520 (struct loop): New field control_ivs.
1521 * tree-ssa-loop-niter.c : Include "stor-layout.h".
1522 (number_of_iterations_lt): Set no_overflow information.
1523 (number_of_iterations_exit): Init control iv in niter struct.
1524 (record_control_iv): New.
1525 (estimate_numbers_of_iterations_loop): Call record_control_iv.
1526 (loop_exits_before_overflow): New. Interface factored out of
1527 scev_probably_wraps_p.
1528 (scev_probably_wraps_p): Factor loop niter related code into
1529 loop_exits_before_overflow.
1530 (free_numbers_of_iterations_estimates_loop): Free control ivs.
1531 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
1533 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
1535 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
1536 the target doesn't belong to the current function.
1538 2015-06-02 Marek Polacek <polacek@redhat.com>
1541 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
1542 get_maxval_strlen does not produce an INTEGER_CST.
1544 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
1546 * config/arc/constraints.md: Use lower-case names in match_code.
1547 * config/mmix/constraints.md: Likewise.
1549 2015-06-02 Richard Biener <rguenther@suse.de>
1551 PR tree-optimization/65961
1552 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
1553 check and clarify dump message.
1554 (vect_build_slp_tree): If all children are built up from scalars
1555 build up the parent from scalars instead.
1556 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
1558 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1561 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
1562 instead of print ... .
1564 2015-06-02 Alan Modra <amodra@gmail.com>
1566 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
1569 2015-06-02 Bin Cheng <bin.cheng@arm.com>
1571 PR tree-optimization/52563
1572 PR tree-optimization/62173
1573 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
1574 (alloc_iv, set_iv): New parameter.
1575 (determine_biv_step): Delete.
1576 (find_bivs): Inline original determine_biv_step. Pass new
1578 (idx_find_step): Use no_overflow information for conversion.
1579 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
1580 resolve_mixers handle folded_casts.
1581 (instantiate_scev_name): Change bool parameter to bool pointer.
1582 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
1583 (instantiate_array_ref, instantiate_scev_not): Ditto.
1584 (instantiate_scev_3, instantiate_scev_2): Ditto.
1585 (instantiate_scev_1, instantiate_scev_r): Ditto.
1586 (instantiate_scev_convert, ): Change parameter. Pass argument
1587 to chrec_convert_aggressive.
1588 (instantiate_scev): Change argument.
1589 (resolve_mixers): New parameter and set it.
1590 (scev_const_prop): New argument.
1591 * tree-scalar-evolution.h (resolve_mixers): New parameter.
1592 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
1594 (chrec_convert): New parameter. Move definition below.
1595 (chrec_convert_aggressive): New parameter and set it. Call
1596 convert_affine_scev.
1597 * tree-chrec.h (chrec_convert): New parameter.
1598 (chrec_convert_aggressive): Ditto.
1600 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
1602 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
1603 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
1604 the LHS of a no-return call if its type has variable size.
1605 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
1606 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
1608 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
1610 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
1611 * config.in: Regenerate.
1613 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
1615 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1616 consecutive accesses within outer-loop with force_vectorize
1617 for references with zero step in inner-loop.
1619 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
1621 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
1622 rather than from gcc/build directory.
1624 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
1627 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
1628 for __sync memory models, emit initial loads and final barriers as
1631 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
1634 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
1635 (aarch64_split_atomic_op): Check for __sync memory models, emit
1636 appropriate initial loads and final barriers.
1638 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
1640 * Makefile.in: Fix gcov dependencies that should
1641 not point to a build folder.
1643 2015-06-01 Richard Biener <rguenther@suse.de>
1646 2015-05-29 Richard Biener <rguenther@suse.de>
1648 PR tree-optimization/66314
1649 * tree-ssa-threadupdate.c (create_block_for_threading): Add
1650 parameter that says which loop the new block belongs to.
1651 (ssa_create_duplicates): Blocks duplicated for the threaded
1652 path belong to the loop of the thread destination.
1654 2015-06-01 Martin Liska <mliska@suse.cz>
1656 * sched-deps.c: Include pool-alloc.h before
1657 cselib.h header file is included.
1659 2015-06-01 Richard Biener <rguenther@suse.de>
1661 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
1664 2015-06-01 Martin Liska <mliska@suse.cz>
1666 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
1667 a function local variable.
1669 2015-06-01 Martin Liska <mliska@suse.cz>
1671 * alloc-pool.c (create_alloc_pool): Remove.
1672 (empty_alloc_pool): Likewise.
1673 (free_alloc_pool): Likewise.
1674 (free_alloc_pool_if_empty): Likewise.
1675 (pool_alloc): Likewise.
1676 (pool_free): Likewise.
1677 * alloc-pool.h: Remove old declarations.
1679 2015-06-01 Martin Liska <mliska@suse.cz>
1681 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
1682 (ira_create_object): Likewise.
1683 (ira_create_allocno): Likewise.
1684 (ira_create_live_range): Likewise.
1685 (copy_live_range): Likewise.
1686 (ira_finish_live_range): Likewise.
1687 (ira_free_allocno_costs): Likewise.
1688 (finish_allocno): Likewise.
1689 (finish_allocnos): Likewise.
1690 (initiate_prefs): Likewise.
1691 (ira_create_pref): Likewise.
1692 (finish_pref): Likewise.
1693 (finish_prefs): Likewise.
1694 (initiate_copies): Likewise.
1695 (ira_create_copy): Likewise.
1696 (finish_copy): Likewise.
1697 (finish_copies): Likewise.
1698 (finish_prefs): Likewise.
1700 2015-06-01 Martin Liska <mliska@suse.cz>
1702 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
1703 (allocate_and_init_ipcp_value): Likewise.
1704 (ipcp_lattice::add_value): Likewise.
1705 (merge_agg_lats_step): Likewise.
1706 (ipcp_driver): Likewise.
1707 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
1708 (ipa_free_all_structures_after_iinln): Likewise.
1709 * ipa-prop.h: Likewise.
1711 2015-06-01 Martin Liska <mliska@suse.cz>
1713 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
1715 (set_hint_predicate): Likewise.
1716 (inline_summary_alloc): Likewise.
1717 (reset_inline_edge_summary): Likewise.
1718 (reset_inline_summary): Likewise.
1719 (set_cond_stmt_execution_predicate): Likewise.
1720 (set_switch_stmt_execution_predicate): Likewise.
1721 (compute_bb_predicates): Likewise.
1722 (estimate_function_body_sizes): Likewise.
1723 (inline_free_summary): Likewise.
1725 2015-06-01 Martin Liska <mliska@suse.cz>
1727 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
1728 (ipa_edge_duplication_hook): Likewise.
1729 (ipa_free_all_structures_after_ipa_cp): Likewise.
1730 (ipa_free_all_structures_after_iinln): Likewise.
1732 2015-06-01 Martin Liska <mliska@suse.cz>
1734 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
1735 (ipa_profile_generate_summary): Likewise.
1736 (ipa_profile_read_summary): Likewise.
1737 (ipa_profile): Likewise.
1739 2015-06-01 Martin Liska <mliska@suse.cz>
1741 * tree-ssa-structalias.c (new_var_info): Use new type-based
1743 (new_constraint): Likewise.
1744 (init_alias_vars): Likewise.
1745 (delete_points_to_sets): Likewise.
1747 2015-06-01 Martin Liska <mliska@suse.cz>
1749 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
1750 (free_strinfo): Likewise.
1751 (pass_strlen::execute): Likewise.
1753 2015-06-01 Martin Liska <mliska@suse.cz>
1755 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
1757 (vn_reference_insert_pieces): Likewise.
1758 (vn_phi_insert): Likewise.
1759 (visit_reference_op_call): Likewise.
1760 (copy_phi): Likewise.
1761 (copy_reference): Likewise.
1762 (process_scc): Likewise.
1763 (allocate_vn_table): Likewise.
1764 (free_vn_table): Likewise.
1766 2015-06-01 Martin Liska <mliska@suse.cz>
1768 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
1770 (add_repeat_to_ops_vec): Likewise.
1771 (get_ops): Likewise.
1772 (maybe_optimize_range_tests): Likewise.
1773 (init_reassoc): Likewise.
1774 (fini_reassoc): Likewise.
1776 2015-06-01 Martin Liska <mliska@suse.cz>
1778 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
1780 (bitmap_set_new): Likewise.
1781 (get_or_alloc_expr_for_constant): Likewise.
1782 (get_or_alloc_expr_for): Likewise.
1783 (phi_translate_1): Likewise.
1784 (compute_avail): Likewise.
1785 (init_pre): Likewise.
1786 (fini_pre): Likewise.
1788 2015-06-01 Martin Liska <mliska@suse.cz>
1790 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
1791 (delete_dep_node): Likewise.
1792 (create_deps_list): Likewise.
1793 (free_deps_list): Likewise.
1794 (sched_deps_init): Likewise.
1795 (sched_deps_finish): Likewise.
1797 2015-06-01 Martin Liska <mliska@suse.cz>
1799 * regcprop.c (free_debug_insn_changes): Use new type-based
1801 (replace_oldest_value_reg): Likewise.
1802 (pass_cprop_hardreg::execute): Likewise.
1804 2015-06-01 Martin Liska <mliska@suse.cz>
1806 * ira-build.c (initiate_cost_vectors): Use new type-based
1808 (ira_allocate_cost_vector): Likewise.
1809 (ira_free_cost_vector): Likewise.
1810 (finish_cost_vectors): Likewise.
1812 2015-06-01 Martin Liska <mliska@suse.cz>
1814 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
1816 (free_sched_pools): Likewise.
1817 * sel-sched-ir.h (_list_alloc): Likewise.
1818 (_list_remove): Likewise.
1820 2015-06-01 Martin Liska <mliska@suse.cz>
1822 * stmt.c (add_case_node): Use new type-based pool allocator.
1823 (expand_case): Likewise.
1824 (expand_sjlj_dispatch_table): Likewise.
1826 2015-06-01 Martin Liska <mliska@suse.cz>
1828 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
1829 (free_bb): Likewise.
1830 (pass_cse_reciprocals::execute): Likewise.
1832 2015-06-01 Martin Liska <mliska@suse.cz>
1834 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
1835 (sra_deinitialize) Likewise.
1836 (create_access_1) Likewise.
1837 (build_accesses_from_assign) Likewise.
1838 (create_artificial_child_access) Likewise.
1840 2015-06-01 Martin Liska <mliska@suse.cz>
1842 * dse.c (get_group_info):Use new type-based pool allocator.
1843 (dse_step0) Likewise.
1844 (free_store_info) Likewise.
1845 (delete_dead_store_insn) Likewise.
1846 (free_read_records) Likewise.
1847 (record_store) Likewise.
1848 (replace_read) Likewise.
1849 (check_mem_read_rtx) Likewise.
1850 (scan_insn) Likewise.
1851 (dse_step1) Likewise.
1852 (dse_step7) Likewise.
1854 2015-06-01 Martin Liska <mliska@suse.cz>
1856 * df-scan.c (struct df_scan_problem_data):Use new type-based
1858 (df_scan_free_internal) Likewise.
1859 (df_scan_alloc) Likewise.
1860 (df_grow_reg_info) Likewise.
1861 (df_free_ref) Likewise.
1862 (df_insn_create_insn_record) Likewise.
1863 (df_mw_hardreg_chain_delete) Likewise.
1864 (df_insn_info_delete) Likewise.
1865 (df_free_collection_rec) Likewise.
1866 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
1867 (df_sort_and_compress_mws) Likewise.
1868 (df_ref_create_structure) Likewise.
1869 (df_ref_record) Likewise.
1871 2015-06-01 Martin Liska <mliska@suse.cz>
1873 * df-problems.c (df_chain_create):Use new type-based pool allocator.
1874 (df_chain_unlink_1) Likewise.
1875 (df_chain_unlink) Likewise.
1876 (df_chain_remove_problem) Likewise.
1877 (df_chain_alloc) Likewise.
1878 (df_chain_free) Likewise.
1879 * df.h (struct dataflow) Likewise.
1881 2015-06-01 Martin Liska <mliska@suse.cz>
1883 * cselib.c (new_elt_list):Use new type-based pool allocator.
1884 (new_elt_loc_list) Likewise.
1885 (unchain_one_elt_list) Likewise.
1886 (unchain_one_elt_loc_list) Likewise.
1887 (unchain_one_value) Likewise.
1888 (new_cselib_val) Likewise.
1889 (cselib_init) Likewise.
1890 (cselib_finish) Likewise.
1892 2015-06-01 Martin Liska <mliska@suse.cz>
1894 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
1895 (sh_reorg) Likewise.
1897 2015-06-01 Martin Liska <mliska@suse.cz>
1899 * cfg.c (initialize_original_copy_tables):Use new type-based
1901 (free_original_copy_tables) Likewise.
1902 (copy_original_table_clear) Likewise.
1903 (copy_original_table_set) Likewise.
1905 2015-06-01 Martin Liska <mliska@suse.cz>
1907 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
1909 (asan_mem_ref_new) Likewise.
1910 (free_mem_ref_resources) Likewise.
1912 2015-06-01 Martin Liska <mliska@suse.cz>
1914 * var-tracking.c (variable_htab_free):Use new type-based
1916 (attrs_list_clear) Likewise.
1917 (attrs_list_insert) Likewise.
1918 (attrs_list_copy) Likewise.
1919 (shared_hash_unshare) Likewise.
1920 (shared_hash_destroy) Likewise.
1921 (unshare_variable) Likewise.
1922 (var_reg_delete_and_set) Likewise.
1923 (var_reg_delete) Likewise.
1924 (var_regno_delete) Likewise.
1925 (drop_overlapping_mem_locs) Likewise.
1926 (variable_union) Likewise.
1927 (insert_into_intersection) Likewise.
1928 (canonicalize_values_star) Likewise.
1929 (variable_merge_over_cur) Likewise.
1930 (dataflow_set_merge) Likewise.
1931 (remove_duplicate_values) Likewise.
1932 (variable_post_merge_new_vals) Likewise.
1933 (dataflow_set_preserve_mem_locs) Likewise.
1934 (dataflow_set_remove_mem_locs) Likewise.
1935 (variable_from_dropped) Likewise.
1936 (variable_was_changed) Likewise.
1937 (set_slot_part) Likewise.
1938 (clobber_slot_part) Likewise.
1939 (delete_slot_part) Likewise.
1940 (loc_exp_insert_dep) Likewise.
1941 (notify_dependents_of_changed_value) Likewise.
1942 (emit_notes_for_differences_1) Likewise.
1943 (vt_emit_notes) Likewise.
1944 (vt_initialize) Likewise.
1945 (vt_finalize) Likewise.
1947 2015-06-01 Martin Liska <mliska@suse.cz>
1949 * ira-color.c (init_update_cost_records):Use new type-based
1951 (get_update_cost_record) Likewise.
1952 (free_update_cost_record_list) Likewise.
1953 (finish_update_cost_records) Likewise.
1954 (initiate_cost_update) Likewise.
1956 2015-06-01 Martin Liska <mliska@suse.cz>
1958 * lra.c (init_insn_regs): Use new type-based pool allocator.
1959 (new_insn_reg) Likewise.
1960 (free_insn_reg) Likewise.
1961 (free_insn_regs) Likewise.
1962 (finish_insn_regs) Likewise.
1963 (init_insn_recog_data) Likewise.
1964 (init_reg_info) Likewise.
1965 (finish_reg_info) Likewise.
1966 (lra_free_copies) Likewise.
1967 (lra_create_copy) Likewise.
1968 (invalidate_insn_data_regno_info) Likewise.
1970 2015-06-01 Martin Liska <mliska@suse.cz>
1972 * lra-lives.c (free_live_range): Use new type-based pool allocator.
1973 (free_live_range_list) Likewise.
1974 (create_live_range) Likewise.
1975 (copy_live_range) Likewise.
1976 (lra_merge_live_ranges) Likewise.
1977 (remove_some_program_points_and_update_live_ranges) Likewise.
1978 (lra_live_ranges_init) Likewise.
1979 (lra_live_ranges_finish) Likewise.
1981 2015-06-01 Martin Liska <mliska@suse.cz>
1983 * et-forest.c (et_new_occ): Use new type-based pool allocator.
1984 (et_new_tree): Likewise.
1985 (et_free_tree): Likewise.
1986 (et_free_tree_force): Likewise.
1987 (et_free_pools): Likewise.
1988 (et_split): Likewise.
1990 2015-06-01 Martin Liska <mliska@suse.cz>
1992 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
1994 * alloc-pool.h (pool_allocator::pool_allocator): New function.
1995 (pool_allocator::release): Likewise.
1996 (inline pool_allocator::release_if_empty): Likewise.
1997 (inline pool_allocator::~pool_allocator): Likewise.
1998 (pool_allocator::allocate): Likewise.
1999 (pool_allocator::remove): Likewise.
2001 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
2003 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
2006 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
2008 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
2010 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
2011 (arm_macro_fusion_p): Likewise.
2012 (arm_macro_fusion_pair_p): Likewise.
2014 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
2016 * config/aarch64/aarch64-protos.h (tune_params): Rename
2017 fuseable_ops to fusible_ops.
2018 * config/aarch64/aarch64.c (generic_tunings): Rename
2019 fuseable_ops to fusible_ops.
2020 (cortexa53_tunings): Likewise.
2021 (cortexa57_tunings): Likewise.
2022 (thunderx_tunings): Likewise.
2023 (xgene1_tunings): Likewise.
2024 (aarch64_macro_fusion_p): Likewise.
2025 (aarch64_macro_fusion_pair_p): Likewise.
2027 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
2029 * config/s390/driver-native.c: New file.
2030 * config/s390/x-native: New file.
2031 * config.host: Add new files for s390.
2032 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
2034 * config.gcc: Likewise.
2035 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
2036 * config/s390/s390-opts.h (enum processor_type): Ditto.
2037 * config/s390/s390.c (s390_option_override): Catch unhandled
2040 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
2043 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
2044 redirection for instrumented calls.
2045 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
2046 (append_compiler_options): Append -fcheck-pointer-bounds.
2047 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
2048 (chkp_redirect_edge): New.
2049 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
2050 (chkp_redirect_edge): New.
2052 2015-06-01 Richard Biener <rguenther@suse.de>
2054 PR tree-optimization/66280
2055 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
2058 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2060 * config/aarch64/aarch64.md
2061 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
2064 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
2066 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
2067 Remove obsolete kludge.
2069 2015-06-01 Richard Biener <rguenther@suse.de>
2071 * tree-ssa-reassoc.c (get_rank): Simplify.
2073 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
2075 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
2076 * configure: Regenerated.
2078 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
2080 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
2081 issue (add space between string literal and macro).
2082 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
2084 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
2086 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
2087 implict or explicit -fPIE or -fpie.
2089 2015-05-30 Mike Frysinger <vapier@gentoo.org>
2091 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
2093 2015-05-28 DJ Delorie <dj@redhat.com>
2095 * expmed.c (extract_bit_field_1): Avoid clobbering a
2096 yet-to-be-used base/index register.
2098 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
2100 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
2101 (alias_stats): Add num_universal.
2102 (alias_set_subset_of): Special case pointers; be ready for NULL
2104 (alias_sets_conflict_p): Special case pointers; be ready for NULL
2106 (init_alias_set_entry): Break out from ...
2107 (record_alias_subset): ... here; propagate new fields;
2108 allocate children only when really needed.
2109 (get_alias_set): Do less generous pointer globbing.
2110 (dump_alias_stats_in_alias_c): Update statistics.
2112 2015-05-30 Alan Modra <amodra@gmail.com>
2114 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
2115 correct block for use of r12.
2116 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
2118 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2121 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
2124 2015-05-29 Jakub Jelinek <jakub@redhat.com>
2126 PR tree-optimization/66142
2127 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
2128 virtual phis that feed themselves.
2130 2015-05-29 Richard Biener <rguenther@suse.de>
2132 PR tree-optimization/66314
2133 * tree-ssa-threadupdate.c (create_block_for_threading): Add
2134 parameter that says which loop the new block belongs to.
2135 (ssa_create_duplicates): Blocks duplicated for the threaded
2136 path belong to the loop of the thread destination.
2138 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2140 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
2141 to cleanup-saved-temps.
2142 * doc/sourcebuild.texi (Clean up generated test files): Expand
2144 (dg-keep-saved-temps): Document new proc.
2145 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
2146 cleanup-saved-temps): Remove.
2148 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
2150 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
2152 * configure: Regenerate.
2154 2015-05-28 Mike Frysinger <vapier@gentoo.org>
2156 * config/nios2/linux.h (CPP_SPEC): Define.
2158 2015-05-28 Mike Frysinger <vapier@gentoo.org>
2160 * config/microblaze/linux.h (CPP_SPEC): Define.
2162 2015-05-28 Mike Frysinger <vapier@gentoo.org>
2164 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
2165 -pthread is specified.
2167 2015-05-28 Richard Biener <rguenther@suse.de>
2169 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
2170 (vect_fixup_scalar_cycles_with_patterns): Likewise.
2171 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
2172 after pattern recog.
2173 (vect_create_epilog_for_reduction): Properly handle reductions
2175 (vectorizable_reduction): Likewise.
2176 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
2178 (vect_get_constant_vectors): Create the correct number of
2179 initial values for reductions.
2180 (vect_schedule_slp_instance): Handle reduction chains that are
2181 type changing properly.
2182 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
2184 2015-05-28 Richard Biener <rguenther@suse.de>
2186 PR tree-optimization/66142
2187 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
2188 values better in memcpy destination handling. Handle non-aliasing
2191 2015-05-28 Lawrence Velázquez <vq@larryv.me>
2194 * config/darwin-c.c (version_components): New global enum.
2195 (parse_version, version_as_legacy_macro)
2196 (version_as_modern_macro, macosx_version_as_macro): New functions.
2197 (version_as_macro): Remove.
2198 (darwin_cpp_builtins): Use new function.
2200 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
2202 * builtins.c (expand_builtin_acc_on_device): Mark parameters
2203 with ATTRIBUTE_UNUSED.
2205 2015-05-28 Julian Brown <julian@codesourcery.com>
2209 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
2210 sequence for !ACCEL_COMPILER.
2212 2015-05-28 Nick Clifton <nickc@redhat.com>
2214 * config/rx/rx.c (push_regs): New function. Extracts code from...
2215 (rx_expand_prologue): ... here. Use push_regs to push even small
2217 (pop_regs): New function.
2218 (rx_expand_epilogue): Use pop_regs to pop even small spans of
2221 2015-05-28 Richard Biener <rguenther@suse.de>
2223 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
2225 (SLP_INSTANCE_BODY_COST_VEC): Remove.
2226 (vect_update_slp_costs_according_to_vf): Likewise.
2227 (vect_slp_analyze_operations): Update prototype.
2228 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
2229 vect_update_slp_costs_according_to_vf, adjust.
2230 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
2231 (vect_analyze_slp_cost_1): Likewise.
2232 (vect_analyze_slp_cost): Likewise. Properly deal with
2233 widening reduction ops. Commit body costs.
2234 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
2235 cost for loops from here.
2236 (vect_slp_analyze_operations): But do it from here when
2237 the vectorization factor is known and stmts are analyzed.
2238 (vect_bb_vectorization_profitable_p): Simplify.
2239 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
2240 (vect_update_slp_costs_according_to_vf): Remove.
2242 2015-05-27 Magnus Granberg <zorry@gentoo.org>
2243 H.J. Lu <hongjiu.lu@intel.com>
2245 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
2246 (BUILD_CFLAGS): Likewise.
2247 (BUILD_CXXFLAGS): Likewise.
2248 (LINKER): Add @NO_PIE_FLAG@.
2249 (BUILD_LDFLAGS): Likewise.
2250 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
2251 --enable-default-pie.
2252 * common.opt (fPIE): Initialize to -1.
2254 (no-pie): New option.
2255 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
2256 * configure.ac: Add --enable-default-pie.
2257 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
2258 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
2259 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
2260 * gcc.c (NO_PIE_SPEC): New.
2261 (PIE_SPEC): Likewise.
2262 (NO_FPIE1_SPEC): Likewise.
2263 (FPIE1_SPEC): Likewise.
2264 (NO_FPIE2_SPEC): Likewise.
2265 (FPIE2_SPEC): Likewise.
2266 (NO_FPIE2_SPEC): Likewise.
2267 (FPIE_SPEC): Likewise.
2268 (NO_FPIE_SPEC): Likewise.
2269 (NO_FPIC1_SPEC): Likewise.
2270 (FPIC1_SPEC): Likewise.
2271 (NO_FPIC2_SPEC): Likewise.
2272 (FPIC2_SPEC): Likewise.
2273 (NO_FPIC2_SPEC): Likewise.
2274 (FPIC_SPEC): Likewise.
2275 (NO_FPIC_SPEC): Likewise.
2276 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
2277 (FPIE1_OR_FPIC1_SPEC): Likewise.
2278 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
2279 (FPIE2_OR_FPIC2_SPEC): Likewise.
2280 (NO_FPIE_AND_FPIC_SPEC): Likewise.
2281 (FPIE_OR_FPIC_SPEC): Likewise.
2282 (LD_PIE_SPEC): Likewise.
2283 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
2284 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
2285 * config/darwin.h (PIE_SPEC): Renamed to ...
2286 (DARWIN_PIE_SPEC): This.
2287 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
2288 * config/darwin9.h (PIE_SPEC): Renamed to ...
2289 (DARWIN_PIE_SPEC): This.
2290 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
2291 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
2292 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
2293 FPIE2_OR_FPIC2_SPEC.
2294 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
2295 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
2296 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
2297 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
2298 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
2299 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
2300 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
2301 * config/m32r/m32r.h (ASM_SPEC): Likewise.
2302 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
2303 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
2304 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
2305 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
2306 * config/sparc/linux.h (ASM_SPEC): Likewise.
2307 * config/sparc/linux64.h (ASM_SPEC): Likewise.
2308 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
2309 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
2310 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
2311 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
2312 * config/sparc/sparc.h (ASM_SPEC): Likewise.
2313 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
2314 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
2315 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
2316 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
2317 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
2318 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
2319 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
2320 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
2321 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
2322 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
2323 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
2324 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
2325 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2326 * config/vax/linux.h (ASM_SPEC): Likewise.
2327 * doc/install.texi: Document --enable-default-pie.
2328 * doc/invoke.texi: Document -no-pie.
2329 * config.in: Regenerated.
2330 * configure: Likewise.
2332 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2334 PR rtl-optimization/66168
2335 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
2336 can_move_invariant_reg.
2338 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
2341 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
2342 REG_EQUAL note when doing insert.
2344 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
2345 instead of "%d" for 'o' operand.
2347 2015-05-27 Nathan Sidwell <nathan@acm.org>
2350 * tree.c (build_pointer_type_for_mode): Canonical type does not
2351 inherit can_alias_all.
2352 (build_reference_type_for_mode): Likewise.
2354 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
2356 * expr.h (array_at_struct_end_p): Move to...
2357 (array_ref_element_size): Likewise.
2358 (component_ref_field_offset): Likewise.
2359 * tree.h (array_ref_element_size): ...here.
2360 (array_at_struct_end_p): Likewise.
2361 (component_ref_field_offset): Likewise.
2362 * expr.c (array_ref_element_size): Move to...
2363 (array_ref_low_bound): Likewise.
2364 (array_at_struct_end_p): Likewise.
2365 (array_ref_up_bound): Likewise.
2366 (component_ref_field_offset): Likewise.
2367 * tree.c (array_ref_element_size): ...here.
2368 (array_ref_low_bound): Likewise.
2369 (array_ref_up_bound): Likewise.
2370 (array_at_struct_end_p): Likewise.
2371 (component_ref_field_offset): Likewise.
2373 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
2374 Szabolcs Nagy <szabolcs.nagy@arm.com>
2376 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
2378 2015-05-27 Jason Merrill <jason@redhat.com>
2381 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
2382 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
2383 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
2385 2015-05-22 Aditya Kumar <hiraditya@msn.com>
2387 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
2390 * statistics.c (statistics_fini_pass): Print pass name.
2392 2015-05-27 Richard Biener <rguenther@suse.de>
2394 PR tree-optimization/66272
2396 2014-08-15 Richard Biener <rguenther@suse.de>
2398 PR tree-optimization/62031
2399 * tree-data-ref.c (dr_analyze_indices): Do not set
2400 DR_UNCONSTRAINED_BASE.
2401 (dr_may_alias_p): All indirect accesses have to go the
2402 formerly DR_UNCONSTRAINED_BASE path.
2403 * tree-data-ref.h (struct indices): Remove
2404 unconstrained_base member.
2405 (DR_UNCONSTRAINED_BASE): Remove.
2407 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
2409 * dwarf2out.c: Remove block_map.
2410 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
2411 (gen_lexical_block_die): Same.
2412 (dwarf2out_function_decl): Remove block_map use.
2413 (dwarf2out_c_finalize): Same.
2414 * tree-core.h (struct tree_block): Add die field.
2415 * tree.h (BLOCK_DIE): New.
2417 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2420 * expr.c (memory_load_overlap): New function.
2421 (emit_push_insn): When pushing partial args to the stack would
2422 clobber the register part load the overlapping part into a pseudo
2423 and put it into the hard reg after pushing. Change return type
2424 to bool. Add bool argument.
2425 * expr.h (emit_push_insn): Change return type to bool.
2427 * calls.c (expand_call): Cancel sibcall optimization when encountering
2428 partial argument on targets with ARGS_GROW_DOWNWARD and
2429 !STACK_GROWS_DOWNWARD.
2430 (emit_library_call_value_1): Update callsite of emit_push_insn.
2431 (store_one_arg): Likewise.
2433 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
2435 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
2437 2015-05-27 Martin Liska <mliska@suse.cz>
2439 * Makefile.in: Add additional dependencies related to memory report
2441 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
2442 * bitmap.c (struct bitmap_descriptor_d): Remove.
2443 (struct loc): Likewise.
2444 (struct bitmap_desc_hasher): Likewise.
2445 (bitmap_desc_hasher::hash): Likewise.
2446 (bitmap_desc_hasher::equal): Likewise.
2447 (get_bitmap_descriptor): Likewise.
2448 (bitmap_register): User new memory descriptor API.
2449 (register_overhead): Likewise.
2450 (bitmap_find_bit): Register nsearches and search_iter statistics.
2451 (struct bitmap_output_info): Remove.
2452 (print_statistics): Likewise.
2453 (dump_bitmap_statistics): Use new memory descriptor.
2454 * bitmap.h (struct bitmap_usage): New class.
2455 * genmatch.c: Extend header file inclusion.
2456 * genpreds.c: Likewise.
2457 * ggc-common.c (struct ggc_usage): New class.
2458 (struct ggc_loc_desc_hasher): Remove.
2459 (ggc_loc_desc_hasher::hash): Likewise.
2460 (ggc_loc_desc_hasher::equal): Likewise.
2461 (struct ggc_ptr_hash_entry): Likewise.
2462 (struct ptr_hash_hasher): Likewise.
2463 (ptr_hash_hasher::hash): Likewise.
2464 (ptr_hash_hasher::equal): Likewise.
2465 (make_loc_descriptor): Likewise.
2466 (ggc_prune_ptr): Likewise.
2467 (dump_ggc_loc_statistics): Use new memory descriptor.
2468 (ggc_record_overhead): Likewise.
2469 (ggc_free_overhead): Likewise.
2470 (final_cmp_statistic): Remove.
2471 (cmp_statistic): Likewise.
2472 (ggc_add_statistics): Liekwise.
2473 (ggc_prune_overhead_list): Likewise.
2474 * hash-map-traits.h: New file.
2475 * hash-map.h (struct default_hashmap_traits): Move the traits to a
2476 separate header file.
2477 * hash-set.h: Pass memory statistics info to ctor.
2478 * hash-table.c (void dump_hash_table_loc_statistics): New function.
2479 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
2480 (hash_table::~hash_table): Register memory release operation.
2481 (hash_table::alloc_entries): Handle memory allocation operation.
2482 (hash_table::expand): Likewise.
2483 * inchash.c (iterative_hash_hashval_t): Move implementation to header
2485 (iterative_hash_host_wide_int): Likewise.
2486 * inchash.h (class hash): Likewise.
2487 * mem-stats-traits.h: New file.
2488 * mem-stats.h: New file.
2489 (mem_location): Add new class.
2490 (mem_usage): Likewise.
2491 (mem_alloc_description): Likewise.
2492 * sese.c: Add new header file inclusision.
2493 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
2495 * tree-sra.c: Add new header file inclusision.
2496 * vec.c (struct vec_descriptor): Remove.
2497 (hash_descriptor): Likewise.
2498 (struct vec_usage): Likewise.
2499 (struct ptr_hash_entry): Likewise.
2500 (hash_ptr): Likewise.
2502 (vec_prefix::register_overhead): Use new memory descriptor API.
2503 (vec_prefix::release_overhead): Likewise.
2504 (add_statistics): Remove.
2505 (dump_vec_loc_statistics): Use new memory descriptor API.
2506 * vec.h (struct vec_prefix): Likewise.
2507 (va_heap::reserve): Likewise.
2508 (va_heap::release): Likewise.
2509 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
2511 2015-05-27 Richard Biener <rguenther@suse.de>
2513 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
2514 earlier and remove ??? comment.
2515 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
2516 and got called from loop analysis bail out. Always pass the SLP
2517 node to the vectorizable_* functions.
2518 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
2519 the premature SLP check here.
2520 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
2522 (vect_detect_hybrid_slp_1): Likewise.
2524 2015-05-26 Jeff Law <law@redhat.com>
2526 * combine.c (find_split_point): Verify that the shift count is a
2527 constant when choosing (plus (ashift ...)) as a split point.
2529 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
2530 No functional changes.
2532 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
2534 * ipa-polymorphic-call.c
2535 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
2536 case when call target is already known.
2538 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
2541 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
2542 take into account the case that operands[1] and operands[2]
2543 are the same register.
2545 2015-05-26 Michael Matz <matz@suse.de>
2549 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
2551 (vect_create_vectorized_demotion_stmts): Always set
2552 STMT_VINFO_VEC_STMT, also with SLP.
2553 (vectorizable_store): Handle strided group stores.
2555 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2558 * config/aarch64/aarch64.md
2559 (*adds_shift_imm_<mode>): New pattern.
2560 (*subs_shift_imm_<mode>): Likewise.
2561 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
2562 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
2563 (*add_uxt<mode>_shift2): Likewise.
2564 (*add_uxtsi_shift2_uxtw): Likewise.
2565 (*sub_uxt<mode>_shift2): Likewise.
2566 (*sub_uxtsi_shift2_uxtw): Likewise.
2568 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
2570 * config/rs6000/constraints.md (Y, U): Use match_test.
2572 2015-05-26 Christian Bruel <christian.bruel@st.com>
2575 * config/arm/arm.c (arm_option_check_internal)
2576 (arm_option_params_internal): Check opts->target_flags to set macros.
2577 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
2578 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
2579 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
2580 (builtin_define): Replaced with def_or_undef_macro.
2581 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
2582 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
2583 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
2584 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
2585 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
2586 (TARGET_ARM_FEATURE_LDREX_P)
2587 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
2588 * config/arm/arm-c.c (def_or_undef_macro): New function.
2589 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
2591 2015-05-26 Christian Bruel <christian.bruel@st.com>
2593 * c-common.h (builtin_define_with_int_value)
2594 (builtin_define_type_sizeof): Declare.
2595 * c-cppbuiltin.c (builtin_define_with_int_value)
2596 (builtin_define_type_sizeof): Externalize.
2597 (builtin_define_std): Cleanup declaration.
2598 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
2599 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
2600 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
2601 (builtin_define, builtin_assert): New macros.
2603 2015-05-26 Richard Biener <rguenther@suse.de>
2605 PR tree-optimization/66142
2606 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
2607 MEM_REFs for the same base address.
2609 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2612 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
2614 2015-05-26 Jason Merrill <jason@redhat.com>
2616 * configure.ac: Set CXXFLAGS for ISL test.
2617 * configure: Regenerate.
2619 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
2620 strstr and basename.
2621 * configure: Regenerate.
2623 2015-05-26 Richard Biener <rguenther@suse.de>
2625 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
2626 X % C -> X & (C - 1) for C being a power-of two to ...
2627 * match.pd: ... patterns.
2629 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
2631 * match.pd (swapped_tcc_comparison): New operator list.
2632 (-A CMP -B): New simplification.
2633 * fold-const.c (fold_comparison): Remove corresponding code.
2635 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
2637 * caller-save.c (init_caller_save): Base temporary register numbers
2638 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
2639 * cfgloopanal.c (init_set_costs): Likewise.
2640 * dojump.c (prefer_and_bit_test): Likewise.
2641 * expr.c (init_expr_target): Likewise.
2642 * ira.c (setup_prohibited_mode_move_regs): Likewise.
2643 * lower-subreg.c (init_lower_subreg): Likewise.
2644 * postreload.c (reload_cse_regs_1): Likewise.
2646 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
2648 * gensupport.h (compute_test_codes): Declare.
2649 * gensupport.c (compute_predicate_codes): Rename to...
2650 (compute_test_codes): ...this. Generalize error message.
2651 (process_define_predicate): Update accordingly.
2652 * genpreds.c (compute_maybe_allows): Delete.
2653 (add_constraint): Use compute_test_codes to determine whether
2654 something can accept a SUBREG, REG or MEM.
2656 2015-05-26 Torvald Riegel <triegel@redhat.com>
2658 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
2659 'memory model' to align with C++11; fix description of memory orders;
2662 2015-05-26 Richard Biener <rguenther@suse.de>
2664 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
2665 (vect_analyze_loop_operations): ... here. Remove slp parameter,
2666 detect whether we apply SLP. Remove call to
2667 vect_update_slp_costs_according_to_vf.
2668 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
2669 vect_update_slp_costs_according_to_vf from here. Dispatch
2670 to vect_slp_analyze_operations to analyze SLP stmts.
2671 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
2672 unused bb_vec_info parameter, adjust assert.
2673 (vect_slp_analyze_operations): Pass in the slp instance tree
2674 instead of bb_vec_info.
2675 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
2676 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
2678 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
2680 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
2681 Q_REGS. Expand comment.
2682 (REG_CLASS_NAMES): Ditto.
2683 (REG_CLASS_CONTENTS): Ditto.
2685 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
2688 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
2689 when LEGACY_INT_REGNO_P is processed.
2691 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
2693 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
2695 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2697 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
2698 register if not marked dead/unused, before return.
2700 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
2703 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
2704 is set; check for assembler name at LTO time.
2705 (type_in_anonymous_namespace): Remove hacks, check that all
2706 anonymous types are called "<anon>"
2707 (odr_type_p): Simplify; add check for "<anon>"
2708 (odr_subtypes_equivalent): Add odr_type_p check.
2709 * tree.c (need_assembler_name_p): Even anonymous namespace needs
2712 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
2714 * ipa-utils.h (method_class_type): Remove.
2715 * cgraphunit.c (walk_polymorphic_call_targets): Use
2716 TYPE_METHOD_BASETYPE.
2717 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
2718 on main variants only.
2719 (method_class_type): Remove.
2720 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
2721 (build_type_inheritance_graph): Likewise.
2722 * ipa-icf.c (sem_function::equals_wpa): Likewise.
2723 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
2724 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
2726 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
2728 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
2729 is_typedef_decl, typedef_variant_p): Constify.
2730 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
2731 is_typedef_decl, typedef_variant_p): Constify.
2733 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2735 * defaults.h (gen_tablejump): New function.
2736 (HAVE_tablejump): Add default value.
2740 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2742 * defaults.h (gen_store_multiple): New function.
2743 (HAVE_store_multiple): Add default value.
2744 * expr.c (move_block_from_reg): Adjust.
2746 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2748 * defaults.h (gen_load_multiple): New function.
2749 (HAVE_load_multiple): Add default value.
2750 * expr.c (move_block_to_reg): Adjust.
2752 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2754 * defaults.h (gen_mem_signal_fence): New function.
2755 (HAVE_mem_signal_fence): Add default value.
2758 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2760 * defaults.h (gen_memory_barrier): New function.
2761 (HAVE_memory_barrier): Add default value.
2764 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2766 * defaults.h (gen_mem_thread_fence): New function.
2767 (HAVE_mem_thread_fence): Add default definition.
2770 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2772 * combine.c (find_split_point): Check the value of HAVE_lo_sum
2773 instead of if it is defined.
2774 (combine_simplify_rtx): Likewise.
2775 * lra-constraints.c (process_address_1): Likewise.
2776 * config/darwin.c: Adjust.
2777 * genconfig.c (main): Always define HAVE_lo_sum.
2779 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2781 * genmatch.c (parser::parse_operation): Reject expanding
2782 operator-list inside 'for'.
2784 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2786 * genmatch.c (parser::parse_for): Reject iterator if used as
2789 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2791 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
2792 after end of id-list.
2794 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
2796 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
2797 we do not try to compute canonical type for type that does not need
2799 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
2801 * tree.h (type_with_alias_set_p): New.
2803 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
2805 * tree.c (gimple_canonical_types_compatible_p): Do not compare
2806 function attributes.
2807 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
2809 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
2811 * Makefile.in (check_gcc_parallelize): Delete.
2812 (lang_checks_parallelized): Update comment.
2814 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
2816 PR rtl-optimization/66237
2817 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
2818 location of an "as_a" cast.
2820 2015-05-22 Jeff Law <law@redhat.com>
2822 * config/pa/pa.md (non-canonical shift-add insns): Remove.
2823 (peepholes with non-canonical RTL sources): Remove.
2824 (peepholes for indexed stores of FP regs in integer modes): Match and
2825 generate canonical RTL.
2827 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
2829 PR tree-optimization/63387
2830 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
2831 ((x ord x) & (y ord y) -> (x ord y),
2832 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
2833 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
2834 vectors like scalars.
2836 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
2838 * convert.c (convert_to_integer, convert_to_vector): Include the
2839 types in the error message.
2841 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
2843 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
2846 2015-05-22 Jeff Law <law@redhat.com>
2848 * config/pa/pa.md (integer_indexed_store splitters): Use
2849 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
2850 insns -- adjusting the constant 2nd operand accordingly.
2852 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
2853 (plus (ashift X log2) Y) if it is a split point.
2855 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
2856 out of hppa_legitimize_address to handle both forms of a multiply
2858 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
2859 Always generate the ASHIFT variant as the result is not directly
2860 used in a MEM. Update comments and refactor slightly to improve
2863 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2866 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
2867 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
2868 (aarch64_composite_type_p): Return false if given type and mode are
2871 2015-05-22 Richard Biener <rguenther@suse.de>
2873 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
2875 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
2876 patterns when determining whether SLP is pure.
2877 (vect_is_slp_reduction): Remove check for pattern stmts.
2878 (vect_is_simple_reduction_1): Remove dead code.
2879 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
2880 (vect_get_and_check_slp_defs): Pass in the stmt number.
2881 Allow the first def in a reduction to be not a pattern stmt when
2882 the rest of the stmts def are patterns.
2883 (vect_build_slp_tree_1): Allow tcc_expression codes like
2884 SAD_EXPR and DOT_PROD_EXPR.
2885 (vect_build_slp_tree): Adjust.
2886 (vect_analyze_slp): Refactor and move BB vect error message ...
2887 (vect_slp_analyze_bb_1): ... here.
2889 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
2891 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
2892 for CSWTCH temporary.
2894 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2896 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
2897 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
2900 2015-05-22 Richard Biener <rguenther@suse.de>
2902 PR tree-optimization/66251
2903 * tree-vect-stmts.c (vectorizable_conversion): Properly
2904 set STMT_VINFO_VEC_STMT even for the SLP case.
2906 2015-05-22 Marek Polacek <polacek@redhat.com>
2908 * doc/extend.texi: Use @pxref instead of @xref.
2910 2015-05-22 hiraditya <hiraditya@msn.com>
2912 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
2915 2015-05-22 Richard Biener <rguenther@suse.de>
2917 PR tree-optimization/65701
2918 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2919 Move peeling cost models into one place. Peel for alignment
2920 for single loads only if an aligned load is cheaper than
2923 2015-05-22 Marek Polacek <polacek@redhat.com>
2926 * doc/extend.texi (Enumerator Attributes): New section.
2927 Document syntax of enumerator attributes.
2929 2015-05-22 Richard Biener <rguenther@suse.de>
2931 * tree-vect-loop.c (get_reduction_op): New function.
2932 (vect_model_reduction_cost): Use it, add reduc_index parameter.
2933 Make ready for BB reductions.
2934 (vect_create_epilog_for_reduction): Use get_reduction_op.
2935 (vectorizable_reduction): Init reduc_index to a valid value.
2936 Adjust vect_model_reduction_cost call.
2937 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
2938 operand for reduction defaults. Add SAD_EXPR support.
2939 Assert we have a neutral op for SLP reductions.
2940 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
2941 walking pattern stmt ops only recurse to SSA names.
2943 2015-05-22 Richard Biener <rguenther@suse.de>
2945 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
2946 assert with guard, remove check on detected reduction.
2947 (vect_recog_sad_pattern): Likewise.
2948 (vect_recog_widen_sum_pattern): Likewise.
2950 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2952 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
2953 __always_inline__ attribute.
2954 (vaesdq_u8): Likewise.
2955 (vaesmcq_u8): Likewise.
2956 (vaesimcq_u8): Likewise.
2957 (vsha1cq_u32): Likewise.
2958 (vsha1mq_u32): Likewise.
2959 (vsha1pq_u32): Likewise.
2960 (vsha1h_u32): Likewise.
2961 (vsha1su0q_u32): Likewise.
2962 (vsha1su1q_u32): Likewise.
2963 (vsha256hq_u32): Likewise.
2964 (vsha256h2q_u32): Likewise.
2965 (vsha256su0q_u32): Likewise.
2966 (vsha256su1q_u32): Likewise.
2967 (vmull_p64): Likewise.
2968 (vmull_high_p64): Likewise.
2970 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2972 * final.c (final_scan_insn): Don't check HAVE_peephole with the
2974 * output.h: Likewise.
2975 * genconfig.c (main): Alwways define HAVE_peephole.
2976 * genpeep.c: Don't emit checks of HAVE_peephole.
2978 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2980 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
2981 check HAVE_conditional_move with the preprocessor.
2983 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2985 * genconfig.c (main): Always define HAVE_conditional_move.
2986 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
2987 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
2990 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2992 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
2993 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
2994 and FRAME_POINTER_REGNUM with the preprocessor.
2996 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2998 * defaults.h: Add default for STACK_PUSH_CODE.
2999 * expr.c: Don't redefine STACK_PUSH_CODE.
3000 * recog.c: Likewise.
3002 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3004 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
3005 sched-deps.c: Use if instead of preprocessor checks with
3006 STACK_GROWS_DOWNWARD.
3008 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3010 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
3012 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
3013 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
3014 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
3015 * doc/tm.texi: Regenerate.
3017 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
3020 * config/i386/constraints.md (Bg): New constraint for GOT memory
3022 * config/i386/i386.md (*call_got_x32): New pattern.
3023 (*call_value_got_x32): Likewise.
3024 * config/i386/predicates.md (GOT_memory_operand): New predicate.
3026 2015-05-21 Jakub Jelinek <jakub@redhat.com>
3028 PR tree-optimization/66233
3029 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
3032 2015-05-21 Jeff Law <law@redhat.com>
3034 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
3035 than MULT for shadd sequences.
3037 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
3039 * alias.c (alias_stats): New static var.
3040 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
3041 (dump_alias_stats_in_alias_c): New function.
3042 * alias.h (dump_alias_stats_in_alias_c): Declare.
3043 * tree-ssa-alias.c (dump_alias_stats): Call it.
3045 2015-05-08 Michael Matz <matz@suse.de>
3047 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
3049 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
3050 (STMT_VINFO_STRIDED_P): ... this.
3051 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
3052 (vect_verify_datarefs_alignment): Likewise.
3053 (vect_enhance_data_refs_alignment): Likewise.
3054 (vect_analyze_data_ref_access): Likewise.
3055 (vect_analyze_data_refs): Accept strided stores.
3056 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
3057 (vect_model_load_cost): Adjust for macro rename.
3058 (vectorizable_mask_load_store): Likewise.
3059 (vectorizable_load): Likewise.
3060 (vectorizable_store): Open code strided stores.
3062 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3064 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
3067 2015-05-21 Richard Biener <rguenther@suse.de>
3070 * match.pd: Guard pattern optimzing (int)(float)int
3071 conversions to apply only on GIMPLE.
3073 2015-05-21 Jeff Law <law@redhat.com>
3075 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
3076 multiply-accumulate/shift-add insn generation.
3078 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
3081 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
3082 operands[1] are the same.
3084 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
3087 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
3088 build_distinct_type_copy to copy bounds.
3090 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
3092 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
3093 Change to unsigned int.
3095 2015-05-20 Jeff Law <law@redhat.com>
3097 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
3098 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
3099 (pa_shadd_constant_p): Allow constants for shadd insns rather
3100 than valid scaling constants for memory addresses.
3101 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
3102 * config/pa/predicates.md (mem_shadd_operand): New predicate.
3103 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
3104 (shift-add insns using ASHIFT): New patterns.
3106 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
3108 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
3110 (fix_up_fall_thru_edges): Likewise.
3111 (fix_crossing_conditional_branches): Likewise. Promote jump targets
3112 from to rtx_insn to rtx_code_label where feasible.
3113 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
3114 gen_move_insn (returned type changed to rtx_insn).
3115 * builtins.c (expand_errno_check): Fix arguments of
3116 do_compare_rtx_and_jump (now expects rtx_code_label).
3117 (expand_builtin_acc_on_device): Likewise.
3118 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
3119 invert_jump (now exprects rtx_jump_insn).
3120 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
3121 (construct_init_block): Use rtx_code_label.
3122 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
3123 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
3124 calling redirect_jump.
3125 (patch_jump_insn): Likewise.
3126 (redirect_branch_edge): Likewise.
3127 (force_nonfallthru_and_redirect): Likewise.
3128 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
3130 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
3131 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
3132 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
3133 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
3134 to store the value retured by gen_label_rtx.
3135 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
3137 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
3138 (split_branches): Fix calls of redirect_jump.
3139 * dojump.c (jumpifnot): Promote argument type from rtx to
3141 (jumpifnot_1): Likewise.
3143 (jumpif_1): Likewise.
3144 (do_jump_1): Likewise.
3145 (do_jump): Likewise. Use rtx_code_label when feasible.
3146 (do_jump_by_parts_greater_rtx): Likewise.
3147 (do_jump_by_parts_zero_rtx): Likewise.
3148 (do_jump_by_parts_equality_rtx): Likewise.
3149 (do_compare_rtx_and_jump): Likewise.
3150 * dojump.h: Update function prototypes.
3151 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
3153 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
3155 (emit_label_before): Likewise.
3156 (emit_jump_insn_after_noloc): Likewise.
3157 (emit_jump_insn_after_setloc): Likewise.
3158 (emit_jump_insn_after): Likewise
3159 (emit_jump_insn_before_setloc): Likewise.
3160 (emit_jump_insn_before): Likewise.
3161 (emit_label_before): Promote return type to rtx_code_label.
3162 (emit_label): Likewise.
3163 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
3164 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
3166 (emit_stack_restore): Likewise.
3167 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
3168 (do_cmp_and_jump): Likewise.
3169 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
3170 from rtx to rtx_code_label.
3171 (gen_move_insn_uncast): New function.
3172 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
3173 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
3174 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
3175 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
3176 invert_jump_1 and redirect_jump_1.
3177 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
3178 do_compare_rtx_and_jump.
3179 (expand_addsub_overflow): Likewise.
3180 (expand_neg_overflow): Likewise.
3181 (expand_mul_overflow): Likewise.
3182 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
3183 return value of gen_move_insn.
3184 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
3185 * loop-doloop.c (add_test): Use rtx_code_label.
3186 (doloop_modify): Likewise.
3187 (doloop_optimize): Likewise.
3188 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
3189 * lra-constraints.c (emit_spill_move): Remove cast of value returned
3191 (inherit_reload_reg): Add cast when calling dump_insn_slim.
3192 (split_reg): Likewise.
3193 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
3195 * optabs.c (expand_binop_directly): Remove casts of values returned by
3197 (expand_unop_direct): Likewise.
3198 (expand_abs): Likewise.
3199 (maybe_emit_unop_insn): Likewise.
3200 (maybe_gen_insn): Promote return type to rtx_insn.
3201 * optabs.h: Update prototype of maybe_gen_insn.
3202 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
3204 * recog.c (struct peep2_insn_data): Promote type of insn field to
3206 (peep2_reinit_state): Use NULL instead of NULL_RTX.
3207 (peep2_attempt): Remove casts of insn in peep2_insn_data.
3208 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
3209 * recog.h (struct insn_gen_fn): Promote return types of function
3210 pointers and operator ().from rtx to rtx_insn.
3211 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
3212 (fill_eager_delay_slots): Likewise.
3213 (relax_delay_slots): Likewise.
3214 (make_return_insns): Likewise.
3215 (dbr_schedule): Likewise.
3216 (optimize_skips): Likewise.
3217 (reorg_redirect_jump): Likewise.
3218 (fill_slots_from_thread): Likewise.
3219 * reorg.h: Update prototypes.
3220 * resource.c (find_dead_or_set_registers): Use dyn_cast to
3221 rtx_jump_insn instead of check. Use it's jump_target method.
3222 * rtl.h (rtx_jump_insn::jump_label): Define new method.
3223 (rtx_jump_insn::jump_target): Define new method.
3224 (rtx_jump_insn::set_jump_target): Define new method.
3225 * rtlanal.c (tablejump_p): Promote type of one local variable.
3226 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
3227 (sched_analyze_insn): Likewise.
3228 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
3229 (print_insn): Likewise.
3230 * stmt.c (label_rtx): Promote return type to rtx_insn.
3231 (force_label_rtx): Likewise.
3232 (jump_target_rtx): Define new function.
3233 (expand_label): Use it, get rid of one cast.
3234 (expand_naked_return): Promote rtx to rtx_code_label.
3235 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
3236 (expand_case): Use rtx_code_label instread of rtx where feasible.
3237 (expand_sjlj_dispatch_table): Likewise.
3238 (emit_case_nodes): Likewise.
3239 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
3240 * store-motion.c (insert_store): Make use of new return type of
3241 gen_move_insn and remove a cast.
3242 (replace_store_insn): Likewise.
3244 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
3246 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
3247 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
3249 2015-05-20 Jeff Law <law@redhat.com>
3251 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
3252 dispose of the jump thread path when the jump threading
3253 opportunity is cancelled.
3255 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3257 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
3258 when printing the caret character.
3260 2015-05-20 Marek Polacek <polacek@redhat.com>
3262 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
3264 2015-05-20 Marek Polacek <polacek@redhat.com>
3266 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
3267 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
3268 * gimple-fold.c (canonicalize_bool): Likewise.
3269 (same_bool_result_p): Likewise.
3270 * tree-if-conv.c (parse_predicate): Likewise.
3272 2015-05-20 Marek Polacek <polacek@redhat.com>
3274 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
3275 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
3277 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3279 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
3280 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
3283 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
3285 * config/mips/mips.h (micromips_globals): Declare.
3287 2015-05-20 David Malcolm <dmalcolm@redhat.com>
3289 * timevar.def (TV_INITIALIZE_RTL): New.
3290 * toplev.c (initialize_rtl): Use an auto_timevar to account this
3291 function's time to TV_INITIALIZE_RTL.
3293 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
3295 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
3296 gimple_build_nop calls.
3297 (chkp_find_bounds_for_elem): Likewise.
3298 (chkp_get_zero_bounds): Likewise.
3299 (chkp_get_none_bounds): Likewise.
3300 (chkp_get_bounds_by_definition): Likewise.
3301 (chkp_generate_extern_var_bounds): Likewise.
3302 (chkp_get_bounds_for_decl_addr): Likewise.
3303 (chkp_get_bounds_for_string_cst): Likewise.
3305 2015-05-20 Bin Cheng <bin.cheng@arm.com>
3307 PR tree-optimization/65447
3308 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
3309 (dump_use, dump_uses): Support to dump sub use.
3310 (record_use): New parameters to support sub use. Remove call to
3312 (record_sub_use, record_group_use): New functions.
3313 (compute_max_addr_offset, split_all_small_groups): New functions.
3314 (group_address_uses, rewrite_use_address): New functions.
3315 (strip_offset): New declaration.
3316 (find_interesting_uses_address): Call record_group_use.
3317 (add_candidate): New assertion.
3318 (infinite_cost_p): Move definition forward.
3319 (add_costs): Check INFTY cost and return immediately.
3320 (get_computation_cost_at): Clear setup cost and dependent bitmap
3322 (determine_use_iv_cost_address): Compute cost for sub uses.
3323 (rewrite_use_address_1): Rename from old rewrite_use_address.
3324 (free_loop_data): Free sub uses.
3325 (tree_ssa_iv_optimize_loop): Call group_address_uses.
3327 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3328 Jim Wilson <jim.wilson@linaro.org>
3330 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
3331 new fields loadv and storev.
3332 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
3333 Initialize loadv and storev.
3334 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
3335 (cortexa53_extra_costs): Likewise.
3336 (cortexa57_extra_costs): Likewise.
3337 (xgene1_extra_costs): Likewise.
3338 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
3341 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3343 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
3345 (cortexa8_extra_costs): Likewise.
3346 (cortexa5_extra_costs): Likewise.
3347 (cortexa7_extra_costs): Likewise.
3348 (cortexa12_extra_costs): Likewise.
3349 (cortexa15_extra_costs): Likewise.
3350 (v7m_extra_costs): Likewise.
3352 2015-05-20 Jeff Law <law@redhat.com>
3354 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
3355 instead of open-coded version. Also delete the jump thread created
3356 within this function.
3358 2015-05-20 Alan Modra <amodra@gmail.com>
3360 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
3361 stack adjusting insn. Formatting.
3362 (rs6000_emit_prologue): Track stack adjusting insn, and use of
3363 r12. If possible, emit first -fsplit-stack arg pointer insn
3364 before stack adjust. Don't use r12 to save cr if split-stack.
3366 2015-05-20 Alan Modra <amodra@gmail.com>
3368 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
3370 (rs6000_supports_split_stack): New function.
3371 * gcc/config/rs6000/rs6000.c (machine_function): Add
3372 split_stack_arg_pointer.
3373 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
3374 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
3375 rather than virtual_incoming_args_rtx.
3376 (rs6000_va_start): Likewise.
3377 (split_stack_arg_pointer_used_p): New function.
3378 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
3379 (morestack_ref): New var.
3380 (gen_add3_const, rs6000_expand_split_stack_prologue,
3381 rs6000_internal_arg_pointer, rs6000_live_on_entry,
3382 rs6000_split_stack_space_check): New functions.
3383 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
3384 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
3385 (UNSPECV_SPLIT_STACK_RETURN): Define.
3386 (split_stack_prologue, load_split_stack_limit,
3387 load_split_stack_limit_di, load_split_stack_limit_si,
3388 split_stack_return, split_stack_space_check): New expands and insns.
3389 * gcc/config/rs6000/rs6000-protos.h
3390 (rs6000_expand_split_stack_prologue): Declare.
3391 (rs6000_split_stack_space_check): Declare.
3393 2015-05-20 Alan Modra <amodra@gmail.com>
3395 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
3396 (rs6000_stack_info): Don't zero offsets when not saving registers.
3397 (debug_stack_info): Adjust to omit printing unused offsets,
3399 (direct_return): Test vrsave_size rather than vrsave_mask.
3400 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
3401 (rs6000_emit_epilogue): Likewise.
3403 2015-05-20 Alan Modra <amodra@gmail.com>
3405 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
3406 when not saving registers.
3407 (debug_stack_info): Adjust to omit printing unused offsets,
3409 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
3412 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3415 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
3416 value_type to const char *.
3418 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
3420 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
3421 to build a biarch toolchain again.
3423 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
3425 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
3426 or implicit declarations.
3427 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
3429 (get_odr_type): Check type has linkage before adding bases.
3430 (register_odr_type): Check that type has linkage before adding it.
3431 (type_known_to_have_no_deriavations_p): Rename to ..
3432 (type_known_to_have_no_derivations_p): This one.
3433 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
3434 (type_known_to_have_no_derivations_p): This one.
3435 * ipa-polymorphic-call.c
3436 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
3439 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
3441 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
3442 (layout_type): Use RECORD_OR_UNION_TYPE_P.
3444 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3446 * config/s390/s390.c (s390_vector_bool_type_p): New function.
3447 (s390_invalid_binary_op): New function.
3448 (TARGET_INVALID_BINARY_OP): Define macro.
3450 2015-05-19 David Sherwood <david.sherwood@arm.com>
3452 * loop-invariant.c (create_new_invariant): Don't calculate address cost
3453 if mode is not a scalar integer.
3454 (get_inv_cost): Increase computational cost for unused invariants.
3456 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3458 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
3459 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
3460 * config/s390/s390-builtin-types.def: New file.
3461 * config/s390/s390-builtins.def: New file.
3462 * config/s390/s390-builtins.h: New file.
3463 * config/s390/s390-c.c: New file.
3464 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
3465 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
3466 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
3467 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
3469 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
3471 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
3472 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
3473 variable definitions.
3474 (s390_const_operand_ok): New function.
3475 (s390_expand_builtin): Rewrite.
3476 (s390_init_builtins): New function.
3477 (s390_handle_vectorbool_attribute): New function.
3478 (s390_attribute_table): Add s390_vector_bool attribute.
3479 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
3480 (s390_branch_condition_mask): Generate masks for new modes.
3481 (s390_expand_vec_compare_cc): New function.
3482 (s390_mangle_type): Add mangling for vector bool types.
3483 (enum s390_builtin): Remove.
3484 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
3486 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
3487 s390_cpu_cpp_builtins.
3488 (REGISTER_TARGET_PRAGMAS): New macro.
3489 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
3490 (insn_cmp mode attribute): Add new CC modes.
3491 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
3492 (lcbb): New pattern definition.
3493 * config/s390/s390intrin.h: Include vecintrin.h.
3494 * config/s390/t-s390: New file.
3495 * config/s390/vecintrin.h: New file.
3496 * config/s390/vector.md: Include vx-builtins.md.
3497 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
3500 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3502 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
3504 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
3505 (s390_select_ccmode): Likewise.
3506 (s390_canonicalize_comparison): Swap operands if necessary.
3507 (s390_expand_vec_compare_scalar): Expand DFmode compare using
3508 single element vector instructions.
3509 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
3510 (s390_branch_condition_mask): Generate CC masks for the new modes.
3511 * config/s390/s390.md (v0, vf, vd): New mode attributes.
3512 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
3513 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
3514 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
3515 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
3516 (*extend<DSF:mode><BFP:mode>2): New insn definition.
3517 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
3518 (extend<DSF:mode><BFP:mode>2): Turn into expander.
3519 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
3520 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
3521 (sqrt<mode>2): Add vector instruction.
3523 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3525 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
3527 * config/s390/predicates.md (const0_operand, constm1_operand)
3528 (constable_operand): Accept vector operands.
3529 * config/s390/s390-modes.def: Add supported vector modes.
3530 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
3531 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
3532 (s390_bytemask_vector_p, s390_expand_vec_strlen)
3533 (s390_expand_vec_compare, s390_expand_vcond)
3534 (s390_expand_vec_init): Add prototypes.
3535 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
3536 (s390_vector_mode_supported_p): New function.
3537 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
3538 (s390_contiguous_bitmask_vector_p): New function.
3539 (s390_bytemask_vector_p): New function.
3540 (s390_split_ok_p): Vector regs don't work either.
3541 (regclass_map): Add VEC_REGS.
3542 (s390_legitimate_constant_p): Handle vector constants.
3543 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
3544 (legitimate_reload_vector_constant_p): New function.
3545 (s390_preferred_reload_class): Handle CONST_VECTOR.
3546 (s390_reload_symref_address): Likewise.
3547 (s390_secondary_reload): Vector memory instructions only support
3548 short displacements. Rename reload*_nonoffmem* to reload*_la*.
3549 (s390_emit_ccraw_jump): New function.
3550 (s390_expand_vec_strlen): New function.
3551 (s390_expand_vec_compare): New function.
3552 (s390_expand_vcond): New function.
3553 (s390_expand_vec_init): New function.
3554 (s390_dwarf_frame_reg_mode): New function.
3555 (print_operand): Handle addresses with 'O' and 'R' constraints.
3556 (NR_C_MODES, constant_modes): Add vector modes.
3557 (s390_output_pool_entry): Handle vector constants.
3558 (s390_hard_regno_mode_ok): Handle vector registers.
3559 (s390_class_max_nregs): Likewise.
3560 (s390_cannot_change_mode_class): New function.
3561 (s390_invalid_arg_for_unprototyped_fn): New function.
3562 (s390_function_arg_vector): New function.
3563 (s390_function_arg_float): Remove size variable.
3564 (s390_pass_by_reference): Handle vector arguments.
3565 (s390_function_arg_advance): Likewise.
3566 (s390_function_arg): Likewise.
3567 (s390_return_in_memory): Vector values are returned in a VR if
3569 (s390_function_and_libcall_value): Handle vector arguments.
3570 (s390_gimplify_va_arg): Likewise.
3571 (s390_call_saved_register_used): Consider the arguments named.
3572 (s390_conditional_register_usage): Disable v16-v31 for non-vec
3574 (s390_preferred_simd_mode): New function.
3575 (s390_support_vector_misalignment): New function.
3576 (s390_vector_alignment): New function.
3577 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
3578 (TARGET_VECTOR_MODE_SUPPORTED_P)
3579 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
3580 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
3581 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
3582 (TARGET_VECTOR_ALIGNMENT): Define target macro.
3583 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
3584 (FIRST_PSEUDO_REGISTER): Increase value.
3585 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
3586 (VECTOR_REG_P): Define macros.
3587 (FIXED_REGISTERS, CALL_USED_REGISTERS)
3588 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
3589 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
3590 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
3591 Add vector registers.
3592 (CANNOT_CHANGE_MODE_CLASS): Call C function.
3593 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
3594 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
3596 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
3597 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
3598 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
3599 (VR*_REGNUM): New constants.
3600 (ALL): New mode iterator.
3601 (INTALL): Remove mode iterator.
3603 (movti): Implement TImode moves for VRs.
3604 Disable TImode splitter for VR targets.
3605 Implement splitting TImode GPR<->VR moves.
3606 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
3607 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
3608 reload<mode>_la_in, reload<mode>_la_out.
3609 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
3610 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
3611 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
3612 (mov<mode> SF SD): Prefer lder, lde for loading.
3613 Add lrl and strl instructions.
3614 Add vector instructions.
3615 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
3616 Call s390_expand_vec_strlen on z13.
3617 (*cc_to_int): Change predicate to nonimmediate_operand.
3618 (addti3): Rename to *addti3. New expander.
3619 (subti3): Rename to *subti3. New expander.
3620 * config/s390/vector.md: New file.
3622 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3624 * common/config/s390/s390-common.c (processor_flags_table): Add
3626 * config.gcc: Add z13.
3627 * config/s390/s390-opts.h (enum processor_type): Add
3629 * config/s390/s390.c (s390_adjust_priority): Check for
3631 (s390_reorg): Likewise.
3632 (s390_sched_reorder): Likewise.
3633 (s390_sched_variable_issue): Likewise.
3634 (s390_loop_unroll_adjust): Likewise.
3635 (s390_option_override): Likewise. Default to -mvx when available.
3636 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
3637 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
3638 (TARGET_VX_ABI): Define macros.
3640 (TARGET_DEFAULT): Add MASK_OPT_VX.
3641 * config/s390/s390.md ("cpu" attribute): Add z13.
3642 ("cpu_facility" attribute): Add vec.
3643 * config/s390/s390.opt (processor_type): Add z13.
3645 * doc/invoke.texi: Add z13 option for -march.
3647 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3649 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
3650 mode check to make sure that only scalar integer values are
3653 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
3655 * tree.c (verify_type_variant): Fix #undef.
3656 (gimple_canonical_types_compatible_p): Move here from lto.c
3657 (verify_type): Verify TYPE_CANONICAL compatibility.
3658 * tree.h (gimple_canonical_types_compatible_p): Declare.
3660 2015-05-19 Jakub Jelinek <jakub@redhat.com>
3663 * tree.h (OMP_TEAMS_COMBINED): Define.
3664 * gimplify.c (enum gimplify_omp_var_data): Add
3665 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
3666 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
3667 (omp_notice_variable): Accept both ORT_TEAMS
3668 and ORT_COMBINED_TEAMS. Don't recurse if
3669 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
3670 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
3672 (omp_no_lastprivate): New function.
3673 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
3674 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
3675 notice_outer and set appropriate bits, otherwise make
3676 sure default(none) combined constructs won't complain.
3677 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
3678 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
3679 omp_no_lastprivate either remove the clause or turn it
3680 into OMP_CLAUSE_PRIVATE.
3681 (gimplify_omp_for): Fix up handling of implicit
3682 lastprivate or linear iterators.
3683 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
3685 * omp-low.c (lower_omp_for_lastprivate): For combined
3686 for simd use fd.loop.n2 from the for rather than simd.
3688 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3690 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
3691 instead of gen_rtx_raw_REG.
3692 (cris_expand_epilogue): Likewise.
3693 * config/microblaze/microblaze.c (microblaze_classify_address):
3695 * config/sparc/sparc.md: Likewise.
3697 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
3699 * config/alpha/alpha.c (alpha_legitimize_reload_address)
3700 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
3701 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
3702 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
3703 Use CASE_CONST_SCALAR_INT.
3704 (print_operand) <case 'M'>: Use mode_width_operand to check the
3705 value of the constant.
3706 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
3707 * config/alpha/predicates.md (input_operand): Use general_operand
3708 instead of match_code as operand check.
3709 (symbolic_operand): Use match_code with subexpression digits.
3710 * config/alpha/constraints.md (Q): Ditto.
3712 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3714 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
3716 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3718 * config/s390/s390.c (s390_secondary_reload): Fix check for
3719 load/store relative.
3721 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3723 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
3724 alternative_mask to uint64_t.
3726 2015-05-19 Jakub Jelinek <jakub@redhat.com>
3728 PR tree-optimization/66187
3729 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3730 Pass TYPE_SIGN to tree_int_cst_min_precision. If
3731 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
3733 2015-05-19 David Malcolm <dmalcolm@redhat.com>
3735 * diagnostic.c (diagnostic_report_current_module): Strengthen
3736 local "new_map" from const line_map * to
3737 const line_map_ordinary *.
3738 * genmatch.c (error_cb): Likewise for local "map".
3739 (output_line_directive): Likewise for local "map".
3740 * input.c (expand_location_1): Likewise for local "map".
3741 Pass NULL rather than &map to
3742 linemap_unwind_to_first_non_reserved_loc, since the value is never
3743 read from there, and the value written back not read from here.
3744 (is_location_from_builtin_token): Strengthen local "map" from
3745 const line_map * to const line_map_ordinary *.
3746 (dump_location_info): Strengthen locals "map" from
3747 line_map *, one to const line_map_ordinary *, the other
3748 to const line_map_macro *.
3749 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
3750 const line_map * to const line_map_macro *.
3751 (maybe_unwind_expanded_macro_loc): Add a call to
3752 linemap_check_macro when writing to the "map" field of the
3754 Introduce local const line_map_ordinary * "ord_map", using it in
3755 place of "map" in the part of the function where we know we have
3756 an ordinary map. Strengthen local "m" from const line_map * to
3757 const line_map_ordinary *.
3759 2015-05-19 Nick Clifton <nickc@redhat.com>
3762 * config/msp430/msp430.md (zero_extendhisi2): Add support for
3763 separate source and destination registers.
3765 2015-05-19 Richard Biener <rguenther@suse.de>
3767 PR tree-optimization/66165
3768 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
3769 for no load permutation.
3771 PR tree-optimization/66185
3772 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
3773 when building the SLP node from scalars.
3775 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
3776 Tristan Gingold <gingold@adacore.com>
3778 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
3779 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
3780 (expand_stack_restore): Call record_new_stack_level.
3781 (expand_stack_save): Do not call do_pending_stack_adjust.
3782 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
3783 * calls.c (expand_call): Call record_new_stack_level for alloca.
3784 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
3785 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
3786 (update_sjlj_context): New global function.
3787 * except.h (update_sjlj_context): Declare.
3788 * explow.c (record_new_stack_level): New global function.
3789 (allocate_dynamic_stack_space): Call record_new_stack_level.
3790 * explow.h (record_new_stack_level): Declare.
3791 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
3792 * cfgrtl.c (duplicate_insn_chain): Likewise.
3794 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3796 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
3797 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
3798 STACK_GROWS_DOWNWARD as normal if.
3799 (expand_call): Likewise.
3801 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
3804 * config/sh/sh.md (*round_int_even): New insn_and_split and
3805 accompanying new unnamed split.
3807 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3809 * bitmap.c (bitmap_set_range): Handle count==1 specially.
3810 (bitmap_clear_range): Likewise.
3811 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
3812 bitmap_set_range unconditionally.
3813 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
3814 * df-scan.c (df_mark_reg): Likewise.
3815 * haifa-sched.c (setup_ref_regs): Likewise.
3816 * sched-rgn.c (update_live_1): Likewise.
3818 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3820 * regs.h (END_HARD_REGNO): Delete.
3821 (END_REGNO): Move to...
3823 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
3824 * caller-save.c (mark_set_regs): Likewise.
3825 * combine.c (move_deaths, distribute_notes): Likewise.
3826 * cse.c (invalidate, invalidate_for_call): Likewise.
3827 * df-scan.c (df_ref_record): Likewise.
3828 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
3829 (record_last_reg_set_info): Likewise.
3830 * reg-stack.c (convert_regs_exit): Likewise.
3831 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
3832 * resource.c (update_live_status): Likewise.
3833 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
3835 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3837 * rtl.h (reg_info): Add an nregs field.
3838 (REG_NREGS): Use it.
3839 (SET_REGNO_RAW): Delete.
3840 (set_regno_raw): New function.
3841 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
3842 (END_REGNO): Redefine in terms of REG_NREGS.
3843 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
3845 * emit-rtl.c (set_mode_and_regno): Likewise.
3846 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
3847 instead of SET_REGNO_RAW.
3849 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3851 * rtl.h (PUT_MODE_RAW): New macro.
3852 (PUT_REG_NOTE_KIND): Use it.
3853 (set_mode_and_regno): Declare.
3854 (gen_raw_REG): Change regno to "unsigned int".
3855 (gen_rtx_REG): Change "unsigned" to "unsigned int".
3856 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
3857 use set_mode_and_regno to change the mode of registers.
3858 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
3859 * emit-rtl.c (set_mode_and_regno): New function.
3860 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
3861 * caller-save.c (reg_save_code): Use set_mode_and_regno.
3862 * expr.c (init_expr_target): Likewise.
3863 * ira.c (setup_prohibited_mode_move_regs): Likewise.
3864 * postreload.c (reload_cse_simplify_operands): Likewise.
3866 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3868 * caller-save.c (init_caller_save): Use word_mode and
3869 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
3870 * expr.c (init_expr_target): Likewise.
3871 * ira.c (setup_prohibited_mode_move_regs): Likewise.
3872 * postreload.c (reload_cse_regs_1): Likewise.
3874 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3876 * rtl.def (REG): Change format to "r".
3877 * rtl.h (rtunion): Remove rt_reg.
3878 (reg_info): New structure.
3879 (rtx_def): Add reg field to main union.
3880 (X0REGATTR): Delete.
3881 (REG_CHECK): New macro.
3882 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
3883 * rtl.c (rtx_format): Document "r".
3884 (rtx_code_size): Handle REG specially.
3885 * gengenrtl.c (special_format): Return true for formats
3887 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
3888 Deal with REG_ATTRS after the field loop.
3889 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
3890 * expmed.c (init_expmed): Call gen_raw_REG instead of
3892 * expr.c (init_expr_target): Likewise.
3893 * regcprop.c (maybe_mode_change): Likewise.
3894 * varasm.c (make_decl_rtl): Likewise.
3895 * final.c (leaf_renumber_regs_insn): Return early after
3897 * genemit.c (gen_exp): Handle 'r' fields.
3898 * genpeep.c (match_rtx): Likewise.
3899 * gensupport.c (subst_pattern_match): Likewise.
3900 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
3901 (alter_constraints, subst_dup): Likewise.
3902 * read-rtl.c (read_rtx_code): Likewise.
3903 * print-rtl.c (print_rtx): Likewise.
3904 * genrecog.c (find_operand, find_matching_operand): Likewise.
3905 (validate_pattern, match_pattern_2): Likewise.
3906 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
3907 (rtx_test::regno_field): New function.
3908 (operator ==, safe_to_hoist_p, transition_parameter_type)
3909 (parameter_type_string, print_parameter_value)
3910 (print_nonbool_test, print_test): Handle new enum values.
3911 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
3912 * lra-constraints.c (operands_match_p): Likewise.
3914 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3916 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
3917 Change type of new_regno to unsigned int.
3918 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
3919 new_regno to unsigned int.
3920 (df_ref_change_reg_with_loc): Remove old_regno parameter.
3921 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
3922 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
3923 (SET_REGNO_RAW): Add space after ",".
3925 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3927 * rtl.h (REG_NREGS): New macro
3928 * alias.c (record_set): Use it.
3929 * cfgcleanup.c (mark_effect): Likewise.
3930 * combine.c (likely_spilled_retval_1): Likewise.
3931 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
3932 (move_deaths, distribute_notes): Likewise.
3933 * cselib.c (cselib_record_set): Likewise.
3934 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
3935 * df-scan.c (df_mark_reg): Likewise.
3936 * dse.c (look_for_hardregs): Likewise.
3937 * dwarf2out.c (reg_loc_descriptor): Likewise.
3938 (multiple_reg_loc_descriptor): Likewise.
3939 * expr.c (write_complex_part, read_complex_part): Likewise.
3940 (emit_move_complex): Likewise.
3941 * haifa-sched.c (setup_ref_regs): Likewise.
3942 * ira-lives.c (mark_hard_reg_live): Likewise.
3943 * lra.c (lra_set_insn_recog_data): Likewise.
3944 * mode-switching.c (create_pre_exit): Likewise.
3945 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
3946 (reload_combine_recognize_pattern): Likewise.
3947 (reload_combine_note_use, move2add_record_mode): Likewise.
3948 (reload_cse_move2add): Likewise.
3949 * reg-stack.c (subst_stack_regs_pat): Likewise.
3950 * regcprop.c (kill_value, copy_value): Likewise.
3951 (copyprop_hardreg_forward_1): Likewise.
3952 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
3953 (build_def_use): Likewise.
3954 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
3955 (deps_analyze_insn): Likewise.
3956 * sched-rgn.c (check_live_1, update_live_1): Likewise.
3957 * sel-sched.c (count_occurrences_equiv): Likewise.
3958 * valtrack.c (dead_debug_insert_temp): Likewise.
3960 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
3962 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
3963 * dse.c (note_add_store): Likewise.
3964 * ira-lives.c (mark_hard_reg_dead): Likewise.
3965 * loop-invariant.c (mark_reg_store): Likewise.
3966 (mark_reg_death): Likewise.
3967 * postreload.c (reload_combine): Likewise.
3968 (reload_combine_note_store): Likewise.
3969 (reload_combine_note_use): Likewise.
3970 * recog.c (peep2_reg_dead_p): Likewise.
3972 2015-05-19 Alan Modra <amodra@gmail.com>
3974 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
3975 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
3976 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
3978 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
3979 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
3980 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
3981 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
3983 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
3985 * config/mips/mips.md (JOIN_MODE): New mode iterator.
3986 (join2_load_Store<JOIN_MODE:mode>): New pattern.
3987 (join2_loadhi): Likewise.
3988 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
3989 load-load and store-stores.
3990 * config/mips/mips.opt (mload-store-pairs): New option.
3991 (TARGET_LOAD_STORE_PAIRS): New macro.
3992 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
3993 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
3994 * config/mips/mips.c (mips_load_store_bonding_p): New function.
3996 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
3998 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
4000 * dojump.c (do_compare_rtx_and_jump): Likewise.
4001 * expmed.c (emit_store_flag_1): Likewise.
4002 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
4003 * final.c (sprint_ul): Use std::reverse for reversing a string.
4004 * fold-const.c (extract_muldiv_1): Use std::swap.
4005 * genmodes.c (emit_mode_int_n): Likewise.
4006 * ifcvt.c (dead_or_predicable): Likewise.
4007 * ira-build.c (ira_merge_live_ranges): Likewise.
4008 (swap_allocno_copy_ends_if_necessary): Likewise.
4009 * ira.c (ira_setup_alts): Likewise.
4010 * loop-iv.c (iv_analyze_expr): Likewise.
4011 (implies_p): Likewise.
4012 (canon_condition): Likewise.
4013 * lra-constraints.c (swap_operands): Likewise.
4014 * lra-lives.c (lra_merge_live_ranges): Likewise.
4015 * omega.c (swap): Remove.
4017 (omega_unprotect_1): Use std::swap.
4018 (omega_solve_geq): Likewise.
4019 * optabs.c (expand_binop_directly): Likewise.
4020 (expand_binop): Likewise.
4021 (emit_conditional_move): Likewise.
4022 (emit_conditional_add): Likewise.
4023 * postreload.c (reload_cse_simplify_operands): Likewise.
4024 * reg-stack.c (emit_swap_insn): Likewise.
4025 (swap_to_top): Likewise.
4026 (compare_for_stack_reg): Likewise.
4027 (subst_asm_stack_regs): Likewise.
4028 * reload.c (find_reloads): Likewise.
4029 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
4030 * sel-sched.c (invoke_reorder_hooks): Likewise.
4031 (create_block_for_bookkeeping): Likewise.
4032 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
4033 (lambda_matrix_right_hermite): Use std::swap.
4034 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
4035 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4036 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
4037 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
4038 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4039 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
4040 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
4041 * tree-vrp.c (compare_ranges): Likewise.
4042 * var-tracking.c (add_with_sets): Likewise.
4043 (vt_find_locations): Likewise.
4045 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
4047 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
4049 (FBSD_ENDFILE_SPEC): Likewise.
4050 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
4051 config/freebsd-spec.h.
4052 (ENDFILE_SPEC): Likewise.
4054 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
4055 Richard Henderson <rth@redhat.com>
4058 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
4059 Check for a memory location that is not a reference (using an AND)
4060 to an unaligned location here.
4061 * config/alpha/predicates.md (normal_memory_operand): Remove.
4063 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
4065 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
4066 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
4068 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
4070 * config/mips/mips.c (micromips_globals): New variable.
4071 (mips_set_compression_mode): Save and reinitialize target-dependent
4072 state for microMIPS.
4074 2015-05-18 Martin Liska <mliska@suse.cz>
4076 * dbgcnt.def: Add new counter.
4077 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
4079 2015-05-18 Martin Liska <mliska@suse.cz>
4081 * dbgcnt.def: Sort counters.
4082 * opts.c (common_handle_option): Do not compile if
4083 -fdbg-cnt-list is enabled.
4085 2015-05-18 Tom de Vries <tom@codesourcery.com>
4087 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
4088 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
4089 address operator to va_list operand.
4090 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
4092 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
4094 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
4095 * config/s390/s390.c (s390_gimplify_va_arg): Same.
4096 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
4098 2015-05-18 Tom de Vries <tom@codesourcery.com>
4100 * tree-ssa-tail-merge.c: Fix whitespace.
4102 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
4104 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
4105 cortex-a17, and cortex-a17.cortex-a7.
4107 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
4110 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
4112 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
4115 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
4116 QImode inner modes for TARGET_AVX512BW. Force mask operand
4117 to a register for AVX512F modes.
4119 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
4121 * toplev.c (emit_debug_global_declarations): Do not output debug info
4122 when doing slim LTO objects.
4124 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
4126 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
4127 odr_types_equivalent_p): Declare.
4128 (odr_type_p): Use gcc_checking_assert.
4129 (type_in_anonymous_namespace_p) Declare.
4130 (type_with_linkage_p): Declare.
4131 * common.opt (Wlto-type-mismatch): New warning.
4132 * ipa-devirt.c (compound_type_base): New function.
4133 (odr_or_derived_type_p): New function.
4134 (odr_types_equivalent_p): New function.
4135 (add_type_duplicate): Simplify.
4136 (type_with_linkage_p): Add hack to prevent false positives on C types
4137 (type_in_anonymous_namespace_p): Likewise.
4138 * tree.c (need_assembler_name_p): Use type_with_linkage.
4139 * tree.h (type_in_anonymous_namespace_p): Remove.
4140 * doc/invoke.texi (-Wlto-type-mismatch): Document
4142 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
4144 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
4145 (verify_type): Verify STRING_FLAG.
4147 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4150 * tree-pretty-print.c (percent_K_format): Replace locus pointer
4151 with accessor function.
4152 * tree-diagnostic.c (diagnostic_report_current_function): Use
4153 diagnostic_location function.
4154 (maybe_unwind_expanded_macro_loc): Likewise.
4155 (virt_loc_aware_diagnostic_finalizer): Likewise.
4156 (default_tree_printer): Replace locus pointer with accessor function.
4157 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
4158 (diagnostic_set_info_translated): Initialize second location.
4159 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
4160 (diagnostic_show_locus): Handle two locations. Call
4161 diagnostic_print_caret_line.
4162 (diagnostic_print_caret_line): New.
4163 (default_diagnostic_starter): Use diagnostic_location function.
4164 (diagnostic_report_diagnostic): Use diagnostic_location function.
4165 (verbatim): Do not set text.locus.
4166 * diagnostic.h (struct diagnostic_info): Remove location field.
4167 (struct diagnostic_context): Make caret_chars an array of two.
4168 (diagnostic_location): New inline.
4169 (diagnostic_expand_location): Handle two locations.
4170 (diagnostic_same_line): New inline.
4171 (diagnostic_print_caret_line): Declare.
4172 (CARET_LINE_MARGIN): New constant.
4173 * pretty-print.c (pp_printf): Do not set text.locus.
4174 (pp_verbatim): Do not set text.locus.
4175 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
4176 (struct text_info): Replace locus pointer with locations
4177 array. Add accessor functions.
4179 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
4180 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4183 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
4184 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
4185 large constants in register instead of splitting them.
4187 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
4190 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
4191 replacements in memory addresses.
4192 (get_unaligned_address): Ditto.
4194 2015-05-16 James Bowman <james.bowman@ftdichip.com>
4196 * config/ft32/*: New files for FT32 port.
4197 * doc/install.texi: Add FT32 information.
4198 * doc/invoke.texi: Add FT32 information.
4199 * doc/md.texi: Add FT32 information.
4200 * doc/contrib.texi: Self added.
4202 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
4204 PR tree-optimization/64454
4205 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
4206 (-1 - A -> ~A): Remove unnecessary condition.
4208 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
4210 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
4211 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
4212 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
4214 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
4216 * ipa-chkp.h (chkp_wrap_function): New.
4217 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
4218 (chkp_wrap_function_name): New.
4219 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
4220 to get wrapper name.
4221 * lto-cgraph.c: Include ipa-chkp.h.
4222 (input_cgraph_1): Avoid alias chain for wrappers.
4224 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
4227 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
4228 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
4230 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4232 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
4233 (AARCH64_FL_SLOWMUL): Delete.
4234 (AARCH64_FL_CRC): Redefine to 1<<3.
4235 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
4237 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4239 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
4242 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
4244 * config/alpha/alpha.md (extendqidi2): Use general_operand
4245 instead of some_operand for operand[1] predicate.
4246 (extendhidi2): Ditto.
4247 (cbranchdi4): Use general_operand instead of some_operand
4248 for operand[1] and operands[2] predicates.
4250 * config/alpha/predicates.md (some_operand): Remove unused predicate.
4251 (some_ni_operand): Ditto.
4253 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
4255 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
4256 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
4257 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
4258 low part of the constant using alpha_emit_set_const_1.
4259 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
4261 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
4263 * varasm.c (output_constant_pool_1): Pass down alignment from
4264 constant pool entry's descriptor to output_constant_pool_2.
4265 (output_object_block): Add comment prior to call to
4266 output_constant_pool_1.
4268 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
4270 PR rtl-optimization/65862
4271 * target.def (ira_change_pseudo_allocno_class): New hook.
4272 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
4274 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
4275 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
4277 * ira-costs.c (find_costs_and_classes): Call the hook and change
4278 classes when it is necessary.
4279 * doc/tm.texi: Update.
4281 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
4283 * config/i386/i386.md (sibcall_memory): Check that register with
4284 callee address is not also used as one of the arguments, instead
4285 of checking that it is not live after the sibcall.
4286 (sibcall_pop_memory): Ditto.
4287 (sibcall_value_memory): Ditto.
4288 (sibcall_value_pop_memory): Ditto.
4290 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
4292 * generic-match-head.c (types_match): Handle non-types.
4293 * gimple-match-head.c (types_match): Likewise.
4294 * match.pd: Remove unnecessary TREE_TYPE for types_match.
4296 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
4298 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
4299 (csneg3<mode>_insn): Enable expansion of pattern.
4301 2015-05-14 Nick Clifton <nickc@redhat.com>
4303 * config/rl78/rl78.c (rl78_select_section): Select the correct
4304 default section based upon the category of the decl.
4306 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
4308 PR rtl-optimization/30967
4309 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
4310 destination mode for the cost of scc patterns.
4312 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
4314 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
4315 using SWIM248 mode iterator.
4316 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
4317 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
4318 for operand[2] constraint.
4319 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
4321 2015-05-13 Jakub Jelinek <jakub@redhat.com>
4324 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
4325 make sure it is never noreturn, even when the task body does not
4327 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
4328 right before GIMPLE_OMP_RETURN.
4329 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
4330 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
4331 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
4333 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4335 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
4336 * tree-ssa-math-opts.c: Include params.h
4337 (pow_synth_sqrt_info): New struct.
4338 (representable_as_half_series_p): New function.
4339 (get_fn_chain): Likewise.
4340 (print_nested_fn): Likewise.
4341 (dump_fractional_sqrt_sequence): Likewise.
4342 (dump_integer_part): Likewise.
4343 (expand_pow_as_sqrts): Likewise.
4344 (gimple_expand_builtin_pow): Use above to attempt to expand
4345 pow as series of square roots. Removed now unused variables.
4347 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
4349 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
4350 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
4351 Remove *p0 and *p1 arguments. Rewrite function.
4352 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
4353 (alpha_split_const_mov): Update calls to alpha_extract_integer and
4354 alpha_emit_set_long_const.
4355 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
4356 (alpha_output_mi_thunk_osf): Ditto.
4357 * config/alpha/alpha.md (movti): Do not check operands[1]
4360 2015-05-13 Richard Biener <rguenther@suse.de>
4362 PR tree-optimization/66129
4363 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
4365 (vect_schedule_slp_instance): Fix typo.
4367 2015-05-13 David Malcolm <dmalcolm@redhat.com>
4369 * common.opt (fdump-internal-locations): New option.
4370 * input.c: Include diagnostic-core.h.
4371 (get_end_location): New function.
4372 (write_digit): New function.
4373 (write_digit_row): New function.
4374 (dump_location_range): New function.
4375 (dump_labelled_location_range): New function.
4376 (dump_location_info): New function.
4377 * input.h (dump_location_info): New prototype.
4378 * toplev.c (compile_file): Handle flag_dump_locations.
4380 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
4382 * gimple-expr.h (is_gimple_constant): Reorder.
4383 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
4385 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
4387 * combine.c (simplify_set): When generating a CC set, if the
4388 source already is in the correct mode, do not wrap it in a
4389 compare. Simplify the rest of that code.
4391 2015-05-13 Richard Biener <rguenther@suse.de>
4393 PR tree-optimization/66123
4394 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
4397 2015-05-13 Richard Biener <rguenther@suse.de>
4400 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
4402 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
4404 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
4406 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
4407 * aclocal.m4: Regenerated with automake-1.11.6.
4409 2015-05-13 Tom de Vries <tom@codesourcery.com>
4411 PR tree-optimization/66010
4412 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
4413 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
4414 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
4415 and rval based on do_deref.
4417 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
4420 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
4421 link time constants into adress expressions and therefore set
4424 2015-05-13 Jakub Jelinek <jakub@redhat.com>
4427 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
4428 Use SWI248 iterator instead of SWI.
4429 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
4430 Use eq_attr "alternative" "0" instead of match_test in
4431 length_immediate attribute computation.
4432 (*mulvhi4, *mulvhi4_1): New define_insns.
4435 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
4436 SIGNED to get precision of non-negative value.
4438 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
4441 * function.c (diddle_return_value_1): Process bounds first.
4442 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
4445 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4447 PR rtl-optimization/64616
4448 * loop-invariant.c (can_move_invariant_reg): New.
4449 (move_invariant_reg): Call above new function to decide whether
4450 instruction can just be moved, skipping creation of temporary
4453 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
4456 * i386.c (ix86_function_sseregparm): Only return -1 if local function
4457 with implied regparm is called from -mno-sse function.
4458 (init_cumulative_args): Output error if ix86_function_sseregparm
4459 return -1 and SSE register would be needed.
4460 (function_arg_advance_32): Likewise.
4461 (function_arg_32): Likewise.
4462 * i386.h (ix86_args): Add decl field.
4464 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
4467 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
4468 inlines across optimization boundary.
4470 2015-05-12 Jason Merrill <jason@redhat.com>
4472 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
4473 string literal and macro name.
4475 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
4477 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
4478 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
4479 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
4481 2015-05-12 David Malcolm <dmalcolm@redhat.com>
4483 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
4484 (-Wmisleading-indentation): New option.
4485 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
4487 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
4489 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
4490 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
4491 (alpha_extract_integer): Ditto.
4492 (alpha_legitimate_constant_p): Ditto.
4493 (alpha_split_tmode_pair): Ditto.
4494 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
4495 (alpha_expand_mov): Ditto.
4496 (print_operand): Remove handling of 'H' modifier.
4497 <case 'm'>: Remove CONST_DOUBLE handling.
4498 (summarize_insn): Handle CONST_WIDE_INT.
4499 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
4501 (movti): Handle CONST_WIDE_INT.
4502 * config/alpha/constraints.md ('H'): Remove constraint definition.
4503 ('G'): Do not match MODE_FLOAT class.
4504 * config/alpha/predicates.md (const0_operand): Also match
4506 (non_add_const_operand): Ditto.
4507 (non_zero_const_operand): Ditto.
4508 (some_operand): Ditto.
4509 (input_operand): Ditto. Handle CONST_WIDE_INT.
4510 (and_operand): Do not match const_double.
4511 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
4513 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
4516 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
4517 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
4518 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
4519 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
4520 is_mm_seq_cst, is_mm_sync): New accessor functions.
4521 * builtins.c (expand_builtin_sync_operation,
4522 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
4523 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
4524 (get_memmodel, expand_builtin_atomic_compare_exchange,
4525 expand_builtin_atomic_load, expand_builtin_atomic_store,
4526 expand_builtin_atomic_clear): Use new accessor routines.
4527 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
4528 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
4529 (maybe_emit_sync_lock_test_and_set): Use new accessors and
4530 MEMMODEL_SYNC_ACQUIRE.
4531 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
4532 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
4533 expand_atomic_store): Use new accessors.
4534 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
4535 * tsan.c (instrument_builtin_call): Update check for memory model beyond
4536 final enum to use MEMMODEL_LAST.
4537 * c-family/c-common.c: Use new accessor for memmodel_base.
4538 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
4540 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
4541 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
4542 mem_thread_fence, *dmb): Likewise.
4543 * config/alpha/alpha.c (alpha_split_compare_and_swap,
4544 alpha_split_compare_and_swap_12): Likewise.
4545 * config/arm/arm.c (arm_expand_compare_and_swap,
4546 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
4547 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
4548 atomic_loaddi): Likewise.
4549 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
4551 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
4552 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
4554 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
4555 atomic_store<mode>, atomic_compare_and_swap<mode>,
4556 atomic_exchange<mode>): Use new accessors.
4557 * config/mips/mips.c (mips_process_sync_loop): Likewise.
4558 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
4559 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
4560 rs6000_post_atomic_barrier): Add new cases.
4561 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
4562 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
4563 (atomic_load<mode>): Add new cases and use new accessors.
4564 (store_quadpti): Add new cases.
4565 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
4567 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
4568 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
4571 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
4573 * ipa-devirt.c (type_with_linkage_p): New function.
4574 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
4576 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
4577 (can_be_name_hashed_p): Simplify.
4578 (hash_odr_name): Check that type has linkage before checking if it is
4580 (types_same_for_odr): Likewise.
4581 (odr_name_hasher::equal): Likewise.
4582 (odr_subtypes_equivalent_p): Likewise.
4583 (warn_types_mismatch): Likewise.
4584 (get_odr_type): Likewise.
4585 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
4586 * ipa-utils.h (odr_type_p): Move offline.
4587 * tree.c (need_assembler_name_p): Fix handling of types
4589 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
4591 2015-05-12 David Malcolm <dmalcolm@redhat.com>
4593 * timevar.c (timevar_enable): Delete in favor of...
4594 (g_timer): New global.
4595 (struct timevar_def): Move to timevar.h inside class timer.
4596 (struct timevar_stack_def): Likewise.
4597 (timevars): Delete global in favor of field "m_timevars" within
4598 class timer in timevar.h
4599 (stack): Likewise, in favor of field "m_stack".
4600 (unused_stack_instances): Likewise, in favor of field
4601 "m_unused_stack_instances".
4602 (start_time): Likewise, in favor of field "m_start_time".
4603 (get_time): Eliminate check for timevar_enable.
4604 (timer::timer): New function, built from part of timevar_init.
4605 (timevar_init): Rewrite idempotency test from using
4606 "timevar_enable" bool to using dynamic allocation of "g_timer".
4607 Move rest of implementation into timer's constructor.
4608 (timevar_push_1): Rename to...
4609 (timer::push): ...this, adding "m_" prefixes to variables that
4610 are now fields of timer.
4611 (timevar_pop_1): Likewise, rename to...
4612 (timer::pop): ...this, and add "m_" prefixes.
4613 (timevar_start): Replace test for "timevar_enable" with one for
4614 "g_timer", and move bulk of implementation to...
4615 (timer::start): ...here, adding "m_" prefixes.
4616 (timevar_stop): Likewise, from here...
4617 (timer::stop): ...to here.
4618 (timevar_cond_start): Likewise, from here...
4619 (timer::cond_start): ...to here.
4620 (timevar_cond_stop): Likewise, from here...
4621 (timer::cond_stop): ...to here.
4622 (validate_phases): Rename to...
4623 (timer::validate_phases): ...this, and add "m_" prefixes. Make
4624 locals "total" and "tv" const.
4625 (timevar_print): Rename to...
4626 (timer::print): ...this, and add "m_" prefixes. Make locals
4627 "total" and "tv" const. Eliminate test for timevar_enable.
4628 * timevar.h (timevar_enable): Eliminate.
4629 (g_timer): New declaration.
4630 (timevar_push_1): Eliminate.
4631 (timevar_pop_1): Eliminate.
4632 (timevar_print): Eliminate.
4633 (class timer): New class.
4634 (timevar_push): Rewrite to use g_timer.
4635 (timevar_pop): Likewise.
4636 * toplev.c (toplev::~toplev): Likewise.
4638 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
4640 * arm-protos.h (arm_sched_autopref): Delete.
4641 (tune_params): Re-organize, use enums for flag values.
4642 (FUSE_OPS): New macro.
4643 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
4644 (ARM_PREFETCH_BENEFICIAL): Likewise.
4645 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
4646 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4647 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
4648 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
4649 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
4650 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
4651 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
4652 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
4654 (arm_option_override, thumb2_reorg, arm_print_tune_info)
4655 (aarch_macro_fusion_pair_p): Update uses of current_tune.
4656 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
4658 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
4660 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
4663 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
4664 Sandra Loosemore <sandra@codesourcery.com>
4666 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
4668 (REG_CLASS_NAMES): Add "IJMP_REGS".
4669 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
4670 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
4671 use new "c" register constraint.
4672 * config/nios2/constraint.md (c): New register constraint
4673 corresponding to IJMP_REGS.
4675 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
4677 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
4678 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
4679 define_splits): Delete, revamp, transmogrify into ...
4680 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4681 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4682 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4685 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
4687 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
4688 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
4690 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
4692 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
4693 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
4694 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
4695 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
4696 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
4697 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
4698 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
4699 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
4700 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
4701 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
4702 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
4703 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
4704 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
4705 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
4706 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
4707 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
4708 and 30 corresponding splitters): Delete.
4710 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
4712 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
4715 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
4717 * combine.c (recog_for_combine_1): New function, factored out
4718 from recog_for_combine.
4719 (change_zero_ext): New function.
4720 (recog_for_combine): If recog fails, try again with the pattern
4721 modified by change_zero_ext; if that still fails, restore the
4724 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
4726 * combine.c (get_undo_marker): New function.
4727 (undo_to_marker): New function, largely factored out from ...
4728 (undo_all): ... this. Adjust.
4730 2015-05-12 Richard Biener <rguenther@suse.de>
4732 PR tree-optimization/66101
4733 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
4734 fixup if we turn a loop exit edge to a fallthru edge.
4736 2015-05-12 Richard Biener <rguenther@suse.de>
4738 PR tree-optimization/37021
4739 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
4740 (SLP_TREE_TWO_OPERATORS): New define.
4741 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
4742 SLP_TREE_TWO_OPERATORS.
4743 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
4745 (vect_build_slp_tree): Adjust.
4746 (vect_analyze_slp_cost_1): Likewise.
4747 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
4748 emitting two vector stmts and mixing the results.
4750 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
4752 * call.c (print_z_candidates): Remove dead code.
4754 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4756 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
4757 and zEC12_simple_fp.
4758 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
4761 2015-05-12 Tom de Vries <tom@codesourcery.com>
4763 PR tree-optimization/66010
4764 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
4766 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
4767 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
4768 va_lists are passed, and remove corresponding handling.
4769 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
4770 do_deref argument to ifn_va_arg.
4771 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
4774 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4777 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
4778 REG before taking its REGNO.
4780 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
4782 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
4783 rsp->sign_bit_copies and rsp->nonzero_bits into ...
4784 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
4785 present to get more accurate information about the number of sign bit
4786 copies and non zero bits.
4788 2015-05-12 Richard Biener <rguenther@suse.de>
4790 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
4791 do not allow unrolling.
4793 2015-05-11 Richard Henderson <rth@redhat.com>
4795 * config/i386/i386-modes.def (CCP): New.
4796 * config/i386/i386.c (put_condition_code): Handle it.
4797 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
4799 2015-05-11 Richard Henderson <rth@redhat.com>
4801 * target.def (md_asm_clobbers): Replace with...
4802 (md_asm_adjust): this.
4803 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
4804 (TARGET_MD_ASM_ADJUST): New.
4806 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
4807 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
4808 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
4810 * cfgexpand.c (check_operand_nalternatives): Accept vector of
4811 constraints instead of lists of outputs and inputs.
4812 (expand_asm_stmt): Save and restore input_location around the
4813 body of the function. Move asm data into vectors instead of
4814 building tree lists. Generate cleanup sequences as needed,
4815 rather than waiting til the end. Use new md_asm_adjust hook.
4817 * config/vxworks.c: Include vec.h before target.h.
4818 * gimple.c: Likewise.
4819 * incpath.c: Likewise.
4820 * mode-switching.c: Likewise.
4822 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
4823 (cris_md_asm_adjust): this.
4824 (TARGET_MD_ASM_CLOBBERS): Remove.
4825 (TARGET_MD_ASM_ADJUST): New.
4826 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
4827 (ix86_md_asm_adjust): this.
4828 (TARGET_MD_ASM_CLOBBERS): Remove.
4829 (TARGET_MD_ASM_ADJUST): New.
4830 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
4831 (mn10300_md_asm_adjust): this.
4832 (TARGET_MD_ASM_CLOBBERS): Remove.
4833 (TARGET_MD_ASM_ADJUST): New.
4834 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
4835 (rs6000_md_asm_adjust): this.
4836 (TARGET_MD_ASM_CLOBBERS): Remove.
4837 (TARGET_MD_ASM_ADJUST): New.
4838 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
4839 (visium_md_asm_adjust): this.
4840 (TARGET_MD_ASM_CLOBBERS): Remove.
4841 (TARGET_MD_ASM_ADJUST): New.
4843 2015-05-11 Richard Henderson <rth@redhat.com>
4845 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
4846 if noutputs is zero.
4847 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
4849 * cfgexpand.c (expand_asm_operands): Merge into...
4850 (expand_asm_stmt): ... here.
4852 * cfgexpand.c (expand_asm_operands): Don't call
4853 resolve_asm_operand_names.
4854 * stmt.c (resolve_asm_operand_names): Clarify block comment.
4856 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
4858 * dwarf2out.c (gen_member_die): Sanity check that we access
4859 TYPE_MAIN_VARIANT for TYPE_METHODS.
4860 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
4861 checking TYPE_METHODS.
4862 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
4864 (build_distinct_type_copy): Clear TYPE_METHODS.
4865 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
4866 (verify_type): Allow TYPE_METHODS to be error_mark_node.
4867 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
4869 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
4871 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
4872 (emit_pattern_before_setloc): Likewise.
4874 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
4876 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
4877 for define_peephole2s.
4878 (get_peephole2_pattern): New function.
4879 (main): Use it. Call validate_pattern.
4881 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4883 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
4884 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
4885 (Last callee saved reg is different for AVR_TINY architecture)
4887 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
4889 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
4890 when looking for memory references.
4892 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
4895 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
4896 via function pointers.
4898 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
4900 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
4901 indirect call by forcing address into a pseudo with -fno-plt.
4902 * common.opt (flag_plt): New option.
4903 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
4904 ([-fno-plt]): Document.
4906 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
4909 * config/rs6000/option-defaults.h: Add space between string literal
4912 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
4914 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
4915 accross ARM targets.
4917 2015-05-11 Christian Bruel <christian.bruel@st.com>
4919 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
4920 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
4922 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
4924 PR rtl-optimization/66076
4925 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
4926 Don't grow the heap array if it is already big enough from a
4929 2015-05-11 Christian Bruel <christian.bruel@st.com>
4931 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
4932 (is_called_in_ARM_mode): Remove.
4933 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
4934 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
4935 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
4936 arm_declare_function_name.
4938 2015-05-11 Christian Bruel <christian.bruel@st.com>
4940 * config/arm/arm.c (arm_option_override): Reoganized and split into :
4941 (arm_option_params_internal); New function.
4942 (arm_option_check_internal): New function.
4943 (arm_option_override_internal): New function.
4944 (thumb_code, thumb1_code): Remove.
4945 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
4946 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
4947 (thumb_code, thumb1_code): Remove.
4948 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
4950 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
4952 * config/alpha/alpha.c (alpha_emit_set_const_1)
4953 (alpha_emit_set_long_const, alpha_extract_integer)
4954 (alpha_legitimate_constant_p, alpha_split_const_mov)
4955 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
4956 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
4957 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
4959 * config/alpha/predicates.md (mode_mask_operand): Do not match
4961 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
4962 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
4963 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
4964 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
4965 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
4967 2015-05-11 Jakub Jelinek <jakub@redhat.com>
4970 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
4971 default_binds_local_p_2.
4972 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
4973 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
4975 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
4977 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
4979 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
4981 Patch by Richard Biener
4982 * coverage.c (coverage_obj_init): Delay building of type variant
4983 until the type is finished.
4985 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
4987 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
4988 mismatch between C and C++ type; compoare correctly ARG_TYPES
4989 for non-prototypes and output correctly parameter index for METHOD_TYPE.
4990 (odr_types_equivalent_p): Fix wording of warning about attributes;
4991 it is OK to match prototype and non-prototype.
4993 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
4995 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
4996 TYPE_ARG_TYPES list.
4997 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
4998 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
5000 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
5002 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
5003 * tree.h (is_lang_specific): Constify.
5005 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
5007 PR tree-optimization/64454
5008 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
5011 2015-05-08 Jason Merrill <jason@redhat.com>
5013 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
5014 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
5015 config/darwin.h, config/darwin9.h, config/elfos.h,
5016 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
5017 config/microblaze/microblaze.h, config/mips/mips.h,
5018 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
5019 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
5020 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
5021 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
5022 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
5023 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
5024 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
5025 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
5026 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
5027 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
5028 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
5029 between string literal and macro name.
5031 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5033 * jump.c: Change argument types to rtx_insn *.
5036 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5038 * lra-constraints.c: Change argument type to rtx_insn *.
5040 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5042 * df-problems.c: Change argument type to rtx_insn *.
5044 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5046 * combine.c: Change argument type to rtx_insn *.
5048 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5051 * rtlanal.c: Change argument type to rtx_insn *.
5053 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5055 * sched-deps.c: Change argument types to rtx_insn *.
5056 * sched-int.h: Adjust.
5058 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5060 * dwarf2cfi.c: Change argument type to rtx_insn *.
5062 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5064 * ira.c (decrease_live_ranges_number): Changetype of local
5065 variable to rtx_insn *.
5066 * recog.c: Change argument types to rtx_insn *.
5069 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5071 * reorg.c: Change argument types to rtx_insn *.
5073 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5075 * ira-color.c: Change argument types to rtx_insn *.
5076 * lra-eliminations.c: Likewise.
5079 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5081 * gcse.c: Change argument types to rtx_insn *.
5083 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5085 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
5087 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5089 * emit-rtl.c (emit_debug_insn_before): Change argument type to
5093 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5095 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
5098 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5100 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
5103 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5105 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
5108 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5110 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
5113 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5115 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
5119 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5121 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
5125 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5127 * except.c (can_nonlocal_goto): Change type of argument to
5131 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5133 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
5136 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5138 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
5139 * cfgrtl.c (can_delete_label_p): Adjust.
5142 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5144 * reorg.c (stop_search_p): Change argument to rtx_insn *.
5146 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5148 * except.c (make_reg_eh_region_note): Change argument to
5150 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
5153 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5155 * mode-switching.c (commit_mode_sets): Change type of local
5156 variable from rtx to rtx_insn *.
5158 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
5160 * doc/install.texi (--enable-languages): Add missing jit and lto info.
5161 Add ^ to grep command.
5162 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
5163 arg to last gimple_simplify declaration. Add missing gimple_build
5164 declaration for built-in function case with four tree args.
5166 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
5167 Szabolcs Nagy <szabolcs.nagy@arm.com>
5169 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
5170 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
5171 (GNU_USER_DYNAMIC_LINKERN32): Update.
5173 2015-05-08 Richard Biener <rguenther@suse.de>
5175 PR tree-optimization/66036
5176 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5177 Handle strided group loads.
5178 (vect_verify_datarefs_alignment): Likewise.
5179 (vect_enhance_data_refs_alignment): Likewise.
5180 (vect_analyze_group_access): Likewise.
5181 (vect_analyze_data_ref_access): Likewise.
5182 (vect_analyze_data_ref_accesses): Likewise.
5183 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
5184 (vectorizable_load): Likewise.
5186 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
5188 * config/rs6000/rs6000.md: Require operand inequality in one
5191 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
5192 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5194 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
5196 * config/rx/rx.md (movdi, movdf): Likewise.
5197 Likewise for define_peephole2s.
5199 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
5201 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
5202 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
5203 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
5204 vtst_u64): Rewrite using gcc vector extensions.
5206 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
5208 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
5209 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
5211 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
5213 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
5215 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
5217 * config/glibc-stdint.h (OPTION_MUSL): Define.
5218 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
5219 Change the definition based on OPTION_MUSL for 64 bit targets.
5220 * config/linux.h (OPTION_MUSL): Redefine.
5221 * config/alpha/linux.h (OPTION_MUSL): Redefine.
5222 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
5223 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
5225 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
5226 Szabolcs Nagy <szabolcs.nagy@arm.com>
5228 * config.gcc (LIBC_MUSL): New tm_defines macro.
5229 * config/linux.h (OPTION_MUSL): Define.
5230 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
5231 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
5232 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
5233 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
5234 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5235 * config/linux.opt (mmusl): New option.
5236 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
5237 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
5238 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
5239 * configure: Regenerate.
5241 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
5242 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5245 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
5246 * config/i386/knetbsd-gnu64.h: New file.
5248 2015-05-08 Marek Polacek <polacek@redhat.com>
5251 * doc/invoke.texi: Document -Woverride-init-side-effects.
5253 2015-05-07 Marek Polacek <polacek@redhat.com>
5256 * doc/invoke.texi: Document -Wshift-negative-value.
5258 2015-05-06 Aditya Kumar <hiraditya@msn.com>
5260 * gcov-tool.c (do_merge): Refactore to remove int ret.
5261 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
5262 !type == FUNC to type != FUNC.
5263 * reload.h (struct target_reload): Changee to type of
5264 x_spill_indirect_levels from bool to unsigned char.
5266 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
5268 * rtl.h (always_void_p): New function.
5269 * gengenrtl.c (always_void_p): Likewise.
5270 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
5271 with code foo are always VOIDmode.
5272 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
5273 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
5274 compare-elim.c, config/aarch64/aarch64.c,
5275 config/aarch64/aarch64.md, config/alpha/alpha.c,
5276 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
5277 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
5278 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
5279 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5280 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
5281 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
5282 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
5283 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
5284 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
5285 config/ia64/vect.md, config/iq2000/iq2000.c,
5286 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
5287 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
5288 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
5289 config/mep/mep.c, config/microblaze/microblaze.c,
5290 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
5291 config/mn10300/mn10300.c, config/msp430/msp430.c,
5292 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
5293 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
5294 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
5295 config/rs6000/altivec.md, config/rs6000/rs6000.c,
5296 config/rs6000/rs6000.md, config/rs6000/vector.md,
5297 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
5298 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
5299 config/sh/sh.md, config/sh/sh_treg_combine.cc,
5300 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
5301 config/spu/spu.md, config/stormy16/stormy16.c,
5302 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
5303 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
5304 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
5305 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
5306 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
5307 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
5308 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
5309 var-tracking.c: Update calls accordingly.
5311 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
5315 * varasm.c (function_mergeable_rodata_prefix): New function.
5316 (mergeable_string_section): Use it.
5317 (mergeable_constant_section): Use it.
5319 2015-05-07 Jeff Law <law@redhat.com>
5322 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
5323 simplifier to narrow arithmetic.
5324 * generic-match-head.c: (types_match, single_use): New functions.
5325 * gimple-match-head.c: (types_match, single_use): New functions.
5327 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5329 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
5332 2015-05-07 Richard Biener <rguenther@suse.de>
5334 PR tree-optimization/66002
5335 * passes.def: Schedule another pass_merge_phi after ifcombine, right
5338 2015-05-07 Marek Polacek <polacek@redhat.com>
5339 Martin Uecker <uecker@eecs.berkeley.edu>
5341 * doc/invoke.texi: Document -fsanitize=bounds-strict.
5342 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
5343 into SANITIZE_NONDEFAULT.
5344 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
5346 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
5349 * config/alpha/alpha.c (alpha_override_options_after_change): New.
5350 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
5351 (alpha_override_options): Move align_loops, align_jumps and
5352 align_functions handling into alpha_override_options_after_change.
5354 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
5355 Chris Jones <chrisj@nvidia.com>
5356 Joshua Conner <jconner@nvidia.com>
5358 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
5359 linking of crtfastmath.o.
5360 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
5362 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5364 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
5365 (cstore<mode>4_unsigned_imm): New expander.
5366 (cstore<mode>4): Remove empty constraint strings. Use the new
5369 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
5372 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
5375 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5377 * config/aarch64/geniterators.sh: Use standard BRE in sed.
5379 2015-05-06 Alan Modra <amodra@gmail.com>
5382 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
5383 (UNSPEC_NOP): Define.
5384 (reload_vsx_from_gpr<mode>): Add missing DONE.
5385 (reload_gpr_from_vsx<mode>): Likewise.
5386 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
5387 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
5389 2015-05-06 Christian Bruel <christian.bruel@st.com>
5392 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
5393 align_jumps, align_functions into aarch64_override_options_after_change.
5395 2015-05-06 Richard Biener <rguenther@suse.de>
5397 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
5398 vect_transform_slp_perm_load to check if we support a permutation
5399 for basic-block vectorization.
5401 2015-05-06 Nick Clifton <nickc@redhat.com>
5403 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
5404 used, even if it is not being used as a frame pointer.
5406 2015-05-05 Jason Merrill <jason@redhat.com>
5408 * dwarf2out.c (gen_member_die): Don't emit anything for an
5409 anonymous class constructor.
5411 2015-05-05 David Malcolm <dmalcolm@redhat.com>
5413 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
5414 that it reflects the block structure.
5415 (afdo_propagate_edge): Likewise.
5416 (afdo_calculate_branch_prob): Likewise.
5417 (afdo_annotate_cfg): Likewise.
5418 * cfgcleanup.c (equal_different_set_p): Likewise.
5419 (try_crossjump_to_edge): Likewise.
5420 * cgraph.c (cgraph_node::verify_node): Likewise.
5421 * cgraphunit.c (expand_all_functions): Likewise.
5422 * config/i386/i386.c (ix86_expand_copysign): Likewise.
5423 (exact_dependency_1): Likewise.
5424 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
5425 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
5426 * gensupport.c (process_define_subst): Likewise.
5427 * lto-wrapper.c (merge_and_complain): Likewise.
5428 * tree-if-conv.c (if_convertible_bb_p): Likewise.
5429 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
5430 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
5431 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
5432 * tree-vect-loop.c (vectorizable_reduction): Likewise.
5433 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
5434 * tree-vect-stmts.c (vectorizable_shift): Likewise.
5435 * tree-vrp.c (vrp_finalize): Likewise.
5436 * tree.c (variably_modified_type_p): Likewise.
5438 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
5440 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
5441 on darwin12 and later.
5442 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
5443 file to pass -rdynamic on darwin12 and later.
5444 * config/darwin.opt (rdynamic): Add.
5446 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
5448 * doc/extend.texi (C Extensions): Update menu for moved Variable
5449 Attributes and Type Attributes sections.
5451 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
5454 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
5455 if rep_8byte stringop strategy was specified for 32-bit target.
5457 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
5460 * config/i386/i386.md (vector convert to float spltiter): Check for
5461 xmm16+, when splitting scalar float conversion.
5462 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
5464 2015-05-05 Nick Clifton <nickc@redhat.com>
5466 * config/msp430/msp430-opts.h (enum msp430_regions): New.
5467 * config/msp430/msp430.c (msp430_override_options): Complain if
5468 -mcode-region or -mdata-region is used on a non MSP430X.
5469 (msp430_section_attr): New function. Checks lower, upper and
5471 (msp430_attribute_table): Add lower, upper and either.
5472 (gen_prefix): New function. Generates a prefix for a section
5474 (msp430_select_section): New function - handles the choice of
5475 section for an object. Takes into account memory region
5476 attributes and options.
5477 (msp430_function_section): Use gen_prefix.
5478 (TARGET_SECTION_TYPE_FLAGS): Define.
5479 (msp430_section_type_flags): New function.
5480 (TARGET_ASM_UNIQUE_SECTION): Define.
5481 (msp430_unique_section): New function.
5482 (msp430_output_aligned_decl_common): New function.
5483 (msp430_do_not_relax_short_jumps): New function.
5484 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
5486 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5487 * config/msp430/msp430-protos.h
5488 (msp430_do_not_relax_short_jumps): New prototype.
5489 (msp430_output_aligned_decl_common): New prototype.
5490 * config/msp430/msp430.md (length): New attribute.
5491 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
5492 then use a long code sequence for short jumps.
5493 * config/msp430/msp430.opt (mcode-region): New.
5494 (mdata-region): New.
5495 * doc/invoke.texi: Document new options.
5496 * doc/extend.texi: Document new attributes.
5498 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
5500 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
5501 (tune_params): Add field branch_costs.
5502 (aarch64_branch_cost): Declare.
5503 * gcc/config/aarch64.c (generic_branch_cost): New.
5504 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
5505 (cortexa53_tunings): Likewise.
5506 (cortexa57_tunings): Likewise.
5507 (thunderx_tunings): Likewise.
5508 (xgene1_tunings): Likewise.
5509 (aarch64_branch_cost): Define.
5510 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
5512 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
5514 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
5515 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
5516 * config/i386/i386.md: Ditto.
5517 * config/i386/winnt.c: Ditto.
5519 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
5521 * doc/extend.texi (__atomic Builtins): Move implementation details
5522 to the end of the description, rewrite opening paragraphs, state
5523 difference with __sync builtins, state C11/C++11 assumptions,
5524 weaken itemized descriptions, add explanation of memory model
5525 behaviour, expand description of compare-exchange, simplify text.
5527 2015-05-05 Renlin Li <renlin.li@arm.com>
5529 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
5531 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
5533 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
5534 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
5535 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
5536 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
5537 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
5538 * configure: Regenerate.
5539 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
5540 * doc/install.texi (aarch64*-*-*): Document new
5541 --enable-fix-cortex-a53-843419 option.
5542 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
5543 and -mno-fix-cortex-a53-843419 options.
5545 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
5548 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
5550 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
5552 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
5553 fix overactive TYPE_MIN_VALUE check and add FIXME for type
5554 compatibility problems.
5556 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
5558 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
5560 (cbranchsi4_reg): New.
5561 * config/microblaze/microblaze.c
5562 (microblaze_expand_conditional_branch_reg): New.
5563 * config/microblaze/microblaze-protos.h
5564 (microblaze_expand_conditional_branch_reg): New prototype.
5566 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
5568 * config/microblaze/microblaze.md (peephole2): New.
5570 2015-05-04 Jeff Law <law@redhat.com>
5573 2015-05-04 Jeff Law <law@redhat.com>
5575 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
5576 simplifier to narrow arithmetic.
5577 * generic-match-head.c: (types_match, single_use): New functions.
5578 * gimple-match-head.c: (types_match, single_use): New functions.
5580 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
5583 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
5584 (split_branches): Likewise.
5586 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
5588 * common.opt (fdelete-null-pointer-checks): Init to -1.
5589 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
5590 override flag_delete_null_pointer_checks default.
5591 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
5592 behavior re address zero. Better document target-specific behavior.
5593 (-fisolate-errneous-paths-dereference): Mention relationship to
5594 -fdelete-null-pointer-checks.
5596 2015-05-04 Jakub Jelinek <jakub@redhat.com>
5598 PR tree-optimization/65984
5599 * ubsan.c: Include tree-cfg.h.
5600 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
5601 stmt_could_throw_p test, rename can_throw variable to ends_bb.
5603 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
5605 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
5606 to CONST_DOUBLE_P predicate.
5607 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
5608 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
5609 allow only operands that satisfy standard_sse_constant_p predicate.
5610 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
5611 to CONST_DOUBLE_P predicate.
5613 2015-05-04 Jeff Law <law@redhat.com>
5615 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
5616 simplifier to narrow arithmetic.
5617 * generic-match-head.c: (types_match, single_use): New functions.
5618 * gimple-match-head.c: (types_match, single_use): New functions.
5620 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
5622 * config/arm/arm.c: Restore bootstrap.
5624 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
5626 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
5627 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
5628 as CONST_WIDE_INT, not CONST_DOUBLE.
5629 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
5630 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
5631 (ix86_find_base_term): Do not check for CONST_DOUBLE.
5632 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
5633 (ix86_build_signbit_mask): Rewrite using wide ints.
5634 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
5635 (ix86_rtx_costs): Handle CONST_WIDE_INT.
5636 (find_constant): Ditto.
5637 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
5639 * config/i386/predicates.md (x86_64_immediate_operand)
5640 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
5641 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
5642 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
5643 (const0_operand): Also match const_wide_int.
5644 (constm1_operand): Ditto.
5645 (const1_operand): Ditto.
5647 2015-05-04 Richard Biener <rguenther@suse.de>
5649 PR tree-optimization/65965
5650 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
5651 store groups at gaps.
5653 2015-05-04 Richard Biener <rguenther@suse.de>
5655 PR tree-optimization/65935
5656 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
5657 then make sure to apply that swapping to the IL.
5659 2015-05-04 Jakub Jelinek <jakub@redhat.com>
5661 * Makefile.in (PATCHLEVEL_c): New variable.
5662 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
5663 expand the same way as if DEVPHASE_c was non-empty.
5665 2015-05-04 Kai Tietz <ktietz@redhat.com>
5668 * lto-wrapper.c (run_gcc): Open filename
5671 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
5673 * doc/extend.texi (Variable Attributes, Type Attributes): Move
5674 sections up in file, to immediately after the Function Attributes
5677 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
5679 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
5681 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5683 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
5684 (insert_partition_copy_on_edge): Adjust.
5685 (insert_rtx_to_part_on_edge): Likewise.
5686 (insert_part_to_rtx_on_edge): Likewise.
5688 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5690 * function.c (set_return_jump_label): Change type of argument to
5692 * function.h (set_return_jump_label): Adjust.
5694 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5696 * reload.h (struct reg_equivs_t): Change type of init to
5698 * ira.c (fix_reg_equiv_init): Adjust.
5699 * reload1.c (eliminate_regs_1): Likewise.
5700 (init_eliminable_invariants): Likewise.
5702 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5704 * cselib.c (fp_setter_insn): Take a rtx_insn *.
5705 * cselib.h (fp_setter_insn): Adjust.
5707 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5709 * recog.c (struct validate_replace_src_data): Change type of
5710 insn field to rtx_insn *.
5711 (validate_replace_src_group): Change type of argument to rtx_insn *.
5712 * recog.h (validate_replace_src_group): Adjust.
5714 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5716 * haifa-sched.c: Change the type of some variables to rtx_insn *.
5717 * sched-deps.c: Likewise.
5718 * sched-int.h: Likewise.
5719 * sched-rgn.c: Likewise.
5720 * sel-sched.c: Likewise.
5722 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5725 * config/i386/i386.c: Change the type of some arguments to
5727 * config/arm/arm.c: Likewise.
5729 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5731 * lra-constraints.c: Change type of some arguments to rtx_insn *.
5733 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5735 * regcprop.c (kill_autoinc_value): Change type of argument to
5738 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5740 * genrecog.c (print_subroutine): Adjust.
5741 * recog.c (get_bool_attr_mask_uncached): Likewise.
5742 * recog.h (struct recog_data_d): Change the type of insn to
5745 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5747 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
5749 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5751 * df-problems.c (df_set_note): Change type of argument to
5754 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5756 * builtins.c (expand_builtin_trap): Change type of local
5757 variable to rtx_insn *.
5758 (add_sched_insns_for_speculation): Likewise.
5759 (ix86_emit_save_regs): Likewise.
5760 (get_scratch_register_on_entry): Likewise.
5761 (ix86_emit_restore_reg_using_pop): Likewise.
5762 (ix86_emit_leave): Likewise.
5763 (ix86_emit_restore_regs_using_mov): Likewise.
5764 (ix86_expand_epilogue): Likewise.
5766 (rl78_alloc_physical_registers_umul): Likewise.
5767 * cselib.c (discard_useless_locs): Likewise.
5768 (cselib_invalidate_regno): Likewise.
5769 (cselib_invalidate_mem): Likewise.
5770 * function.c (expand_function_start): Likewise.
5771 (emit_use_return_register_into_block): Likewise.
5773 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
5774 * ifcvt.c (noce_get_alt_condition): Likewise.
5775 * loop-doloop.c (doloop_condition_get): Likewise.
5776 * lra-constraints.c (inherit_in_ebb): Likewise.
5777 * modulo-sched.c (sms_schedule_by_order): Likewise.
5778 * recog.c (next_insn_tests_no_inequality): Likewise.
5779 * reorg.c (emit_delay_sequence): Likewise.
5780 (update_reg_dead_notes): Likewise.
5781 (fix_reg_dead_note): Likewise.
5782 (fill_slots_from_thread): Likewise.
5783 (delete_computation): Likewise.
5785 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
5787 * doc/extend.texi (Variable Attributes): Add menu and proper
5788 @nodes to subsections. Move Microsoft Windows attributes to
5789 their own subsection.
5790 (Type Attributes): Reorganize introduction to remove duplicate
5791 list of attributes. Add menu and proper @nodes to subsections.
5792 Alphabetize the main table of common attributes.
5794 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
5796 * match.pd: New simplification patterns.
5797 (x + (x & 1)) -> ((x + 1) & ~1)
5798 (x & ~(x & y)) -> ((x & ~y))
5799 (x | ~(x | y)) -> ((x | ~y))
5801 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5803 * target.def (attribute_table): Mention that struct attribute_spec
5804 is defined in tree-core.h rather than tree.h
5805 * doc/tm.texi: Regenerate.
5807 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
5809 * genrecog.c (test): Rename to rtx_test. Update rest of file
5812 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
5814 PR translation/65959
5815 * params.h (DEFPARAM): Rename msgid to nocmsgid.
5817 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
5819 * gcc/config/aarch64/aarch64-protos.h (tune_params):
5820 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
5821 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
5822 Return value depending on target.
5823 (generic_tunings): Initialize new target settings.
5824 (cortexa53_tunings): Likewise.
5825 (cortexa57_tunings): Likewise.
5826 (thunderx_tunings): Likewise.
5827 (xgene1_tunings): Likewise.
5829 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
5831 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
5832 Make Cortex-A53 shift costs more accurate.
5834 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5836 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
5839 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
5841 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
5842 Calculate cost of op0 and op1 in PLUS and MINUS cases.
5844 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5846 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
5847 Add cost of op0 in the compare-with-fpzero case.
5849 2015-04-30 David Malcolm <dmalcolm@redhat.com>
5851 * builtins.c (fold_builtin_1): Remove spurious second
5853 * cgraph.h (symtab_node::get_availability): Likewise.
5854 * opts.c (common_handle_option): Remove spurious second semicolon.
5855 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5856 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
5858 2015-04-30 Caroline Tice <cmtice@google.com>
5860 PR gcov-profile/65929
5861 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
5862 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
5863 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
5864 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
5865 * doc/tm.texi: Regenerate.
5866 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
5867 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
5868 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
5869 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
5871 2015-04-30 Marek Polacek <polacek@redhat.com>
5873 * varasm.c (handle_cache_entry): Fix logic.
5875 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5877 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
5878 (*extrsi5_insn_uxtw_alt): Likewise.
5879 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
5880 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
5883 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5885 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
5888 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5890 * config/aarch64/aarch64.md
5891 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
5892 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
5893 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
5894 appropriately. Handle alternative EON form.
5896 2015-04-30 Renlin Li <renlin.li@arm.com>
5898 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
5899 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
5901 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
5904 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
5905 -fstrict-aliasing boundaries.
5907 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5909 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
5910 and [SU]MNEGL patterns.
5912 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5914 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
5915 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
5916 combined arithmetic-shift ops. Properly handle all shift and extend
5917 operations that can occur in combination with PLUS/MINUS.
5918 Rename maybe_fma to compound_p.
5919 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
5920 arithmetic and shift operations.
5922 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5924 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
5925 rather than arith_shift cost when costing ADD/MINUS of an
5928 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
5931 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
5934 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
5936 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
5937 are for the same position.
5939 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
5941 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
5943 (vectorize_loops): Use it.
5945 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
5947 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
5948 for aggregate types.
5949 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
5951 * tree.c (need_assembler_name_p): Compute mangled name for
5952 non-fundamental types and integer types.
5954 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
5956 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
5958 * expr.c (expand_expr_real_2): Likewise.
5960 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
5962 * tree.c (build_common_builtin_nodes): Do not build
5963 __builtin_alloca_with_align as equivalent of library alloca.
5965 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
5967 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
5968 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
5970 * tree.c: Include print-tree.h and ipa-utils.h
5971 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
5972 (free_lang_data_in_cgraph): Call verify_type.
5973 (verify_type_variant): New function.
5974 (verify_type): New function.
5975 * tree.h (verify_type): Declare.
5977 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
5979 * config/mips/mips-cpus.def: (mips4): Change default processor
5980 from PROCESSOR_R8000 to PROCESSOR_R10000.
5982 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
5984 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
5985 la/jalr instead of jal.
5987 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
5990 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
5991 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
5992 (setcc+movzbl peephole2): Check also clobbered reg.
5993 (setcc+andl peephole2): Ditto.
5995 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
5998 * config/nvptx/mkoffload.c (target_ilp32): New variable.
5999 (main): Set it depending on "-foffload-abi=[...]".
6000 (compile_native, main): Use it to pass "-m32" or "-m64" to the
6003 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
6006 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
6007 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
6008 Flip lane index back at assembly time for bigendian.
6010 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
6012 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
6013 * gimplify.c (gimplify_omp_workshare): Use it.
6015 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
6017 * Makefile.in (build/genrecog.o): Depend on inchash.h.
6018 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
6020 * genrecog.c: Rewrite most of the code except for the third page.
6022 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
6024 * inchash.h, inchash.c: Include bconfig.h for build objects.
6025 * Makefile.in (build/inchash.o): New rule.
6027 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
6030 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
6031 number in type attribute expression.
6033 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
6035 * loop-iv.c (canon_condition): Generalize to all types of integer
6038 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
6040 * gimple-walk.c: Prune duplicate or unneeded includes.
6041 (walk_gimple_asm): Only call parse_input_constraint or
6042 parse_output_constraint if their findings are used.
6043 Honour parse_input_constraint and parse_output_constraint
6046 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
6048 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
6050 2015-04-29 Tom de Vries <tom@codesourcery.com>
6052 PR tree-optimization/65893
6053 * passes.def (pass_all_optimizations): Move pass_stdarg to after
6056 2015-04-29 Richard Biener <rguenther@suse.de>
6058 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6059 compute GROUP_SIZE for basic-block SLP.
6060 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
6061 take into account gaps.
6062 (vect_get_mask_element): Properly reject references to previous
6064 (vect_transform_slp_perm_load): Likewise.
6066 2015-04-29 Christian Bruel <christian.bruel@st.com>
6069 * config/i386/i386.c (ix86_default_align): New function.
6070 (ix86_override_options_after_change): Call ix86_default_align.
6071 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
6072 (ix86_override_options_after_change): New function.
6074 2015-04-28 Jeff Law <law@redhat.com>
6076 * tree-ssa-dom.c (record_equality); Fix comment typos.
6078 2015-04-28 Tom de Vries <tom@codesourcery.com>
6080 PR tree-optimization/65887
6081 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
6083 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
6085 * doc/extend.texi (Declaring Attributes of Functions): Split into
6086 subsections by target. Alphabetize the table of common attributes.
6087 Rewrite some of the introductory text to reflect the new structure.
6088 Update some cross-references to point to the new subsections.
6089 (Attribute Syntax): Put paragraph about "__" naming here. Remove
6090 duplicate copies in the discussion of function, label, and type
6093 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
6096 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
6098 2015-04-28 Jason Merrill <jason@redhat.com>
6101 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
6102 (finalize_type_size): Respect TYPE_USER_ALIGN.
6103 (layout_type) [ARRAY_TYPE]: Likewise.
6105 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
6107 * config/arm/arm.md (*arm_movt): Fix type attribute.
6108 (*cmpsi_shiftsi): Likewise.
6109 (*cmpsi_shiftsi_swp): Likewise.
6110 (*movsicc_insn): Likewise.
6111 (*cond_move): Likewise.
6112 (*if_plus_move): Likewise.
6113 (*if_move_plus): Likewise.
6114 (*if_arith_move): Likewise.
6115 (*if_move_arith): Likewise.
6116 (*if_shift_move): Likewise.
6117 (*if_move_shift): Likewise.
6118 (*arm_movtas_ze): Likewise.
6119 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
6120 redundancy and type attribute.
6121 (*thumb2_movsi_insn): Fix type attribute.
6122 (*thumb2_addsi_short): Likewise.
6123 (thumb2_addsi3_compare0): Likewise.
6124 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
6125 attributes accordingly.
6127 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
6130 * function.c (pad_to_arg_alignment): Add parentheses.
6132 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
6134 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
6135 libgcc/config/frv/elf-lib.h.
6137 2015-04-28 Tom de Vries <tom@codesourcery.com>
6139 * tree-call-cdce.c: Fix example in header comment.
6141 2015-04-28 Richard Biener <rguenther@suse.de>
6143 PR tree-optimization/62283
6144 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
6145 fails fatally and we are vectorizing a basic-block simply
6146 cause the child to be constructed piecewise.
6147 (vect_analyze_slp_cost_1): Adjust.
6148 (vect_detect_hybrid_slp_stmts): Likewise.
6149 (vect_bb_slp_scalar_cost): Likewise.
6150 (vect_get_constant_vectors): For piecewise constructed
6151 constants place them after the last def.
6152 (vect_get_slp_defs): Adjust.
6153 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
6154 externals for basic-block vectorization.
6156 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
6159 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
6161 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
6162 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
6163 (AARCH64_TUNE_FMA_STEERING): Likewise.
6164 * config/aarch64/aarch64-cores.def: Set
6165 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
6166 FMUL/FMADD instructions.
6167 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
6168 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
6169 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
6170 * config/aarch64/cortex-a57-fma-steering.h: New file.
6171 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6173 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
6175 * gensupport.c (std_preds): Add missing codes to address_operand entry.
6177 2015-04-28 Richard Biener <rguenther@suse.de>
6179 PR tree-optimization/65851
6180 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
6181 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
6182 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
6183 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
6184 (ccp_visit_phi_node): Adjust.
6185 (evaluate_stmt): For simplifications to SSA names return its
6186 lattice value if that isn't VARYING. Return immediately when
6187 simplified to a constant.
6188 (visit_assignment): Adjust.
6189 (ccp_visit_stmt): Likewise.
6191 2015-04-28 Tom de Vries <tom@codesourcery.com>
6193 PR tree-optimization/65818
6194 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
6197 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6199 * calls.c (save_fixed_argument_area): Don't check
6200 ARGS_GROW_DOWNWARD with the preprocessor.
6201 (restore_fixed_argument_area): Likewise.
6202 (mem_overlaps_already_clobbered_arg_p): Likewise.
6203 (check_sibcall_argument_overlap): Likewise.
6204 (expand_call): Likewise.
6205 (emit_library_call_value_1): Likewise.
6206 (store_one_arg): Likewise.
6207 * function.c (assign_parms): Likewise.
6208 (locate_and_pad_parm): Likewise.
6209 (pad_to_arg_alignment): Likewise.
6210 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6212 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6214 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
6215 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
6216 * calls.c (save_fixed_argument_area): Don't chekc if
6217 ARGS_GROW_DOWNWARD is defined.
6218 (restore_fixed_argument_area): Likewise.
6219 (mem_overlaps_already_clobbered_arg_p): Likewise.
6220 (check_sibcall_argument_overlap): Likewise.
6221 (expand_call): Likewise.
6222 (emit_library_call_value_1): Likewise.
6223 (store_one_arg): Likewise.
6224 * function.c (assign_parms): Likewise.
6225 (locate_and_pad_parm): Likewise.
6226 (pad_to_arg_alignment): Likewise.
6227 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6229 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6231 * defaults.h (gen_epilogue): New function.
6232 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
6234 * cfgrtl.c (cfg_layout_finalize): Likewise.
6235 * df-scan.c: Likewise.
6236 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6237 (reposition_prologue_and_epilogue_notes): Likewise.
6238 * reorg.c (find_end_label): Likewise.
6239 * toplev.c: Likewise.
6241 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6243 * bb-reorder.c (HAVE_return): Don't check if its undefined.
6244 * defaults.h (gen_simple_return): New function.
6245 (gen_simple_return): Likewise.
6246 (HAVE_return): Add default definition to false.
6247 (HAVE_simple_return): Likewise.
6248 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
6249 HAVE_return and HAVE_simple_return are defined.
6250 * function.c (gen_return_pattern): Likewise.
6251 (convert_jumps_to_returns): Likewise.
6252 (thread_prologue_and_epilogue_insns): Likewise.
6253 * reorg.c (find_end_label): Likewise.
6254 (dbr_schedule): Likewise.
6255 * shrink-wrap.c: Likewise.
6256 * shrink-wrap.h: Likewise.
6258 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6260 * defaults.h (EPILOGUE_USES): Add default definition of false.
6261 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
6262 * resource.c (init_resource_info): Likewise.
6264 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6266 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
6268 * dwarf2out.c (field_byte_offset): REmove check if
6269 PCC_BITFIELD_TYPE_MATTERS is defined.
6270 * stor-layout.c (layout_decl): Likewise.
6271 (update_alignment_for_field): Likewise.
6272 (place_field): Likewise.
6274 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6276 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
6278 * regrename.c (check_new_reg_p): Remove check if
6279 HARD_REGNO_RENAME_OK is defined.
6280 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
6282 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6284 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
6285 * cse.c (fold_rtx): Likewise.
6286 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
6287 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
6288 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
6289 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
6290 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
6291 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
6292 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
6293 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
6294 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
6295 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
6297 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
6298 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
6299 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
6300 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
6301 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
6302 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
6303 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
6304 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
6305 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
6306 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
6307 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
6308 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
6309 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
6310 * doc/tm.texi: Regenerate.
6311 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
6312 either true or false.
6314 2015-04-27 Jeff Law <law@redhat.com>
6316 PR tree-optimization/65217
6317 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
6318 of them has a single use, make sure it is the LHS of the implied
6321 2015-04-28 Alan Modra <amodra@gmail.com>
6324 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
6325 (offsettable_ok_by_alignment): Use minimum of decl and toc
6326 pointer alignment. Replace dead code with assertion.
6327 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
6328 case if size exceeds toc pointer alignment.
6329 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
6330 (rs6000_emit_move): Likewise.
6331 * configure.ac: Add linker toc pointer alignment check.
6332 * configure: Regenerate.
6333 * config.in: Regenerate.
6335 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
6337 * config.gcc: Add h8300-*-linux.
6338 * config/h8300/linux.h: New.
6339 * config/h8300/t-linux: New.
6340 * config/h8300/h8300.c (h8300_option_override): Normal mode
6341 is not supported for h8300-*-linux.
6342 (h8300_file_start): Target priority change.
6343 (get_shift_alg): Likewise.
6344 (h8300_shift_need_scratch_p): Likewise.
6345 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6346 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
6348 2015-04-27 Caroline Tice <cmtice@google.com>
6350 * final.c (final_scan_insn): Output cold_function_name as function
6352 * varasm.c (cold_function_name): Make global.
6353 (assemble_start_function): Re-set cold_function_name.
6354 (assemble_end_function): Output cold partition size.
6355 * varasm.h (cold_function_name): Declare global.
6357 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
6359 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
6360 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
6362 (*movxi_internal_avx512f): Ditto.
6363 (define_split): Check for xmm16+, when splitting scalar float_extend.
6364 (*extendsfdf2_mixed): Use "v" constraint.
6365 (define_split): Check for xmm16+, when splitting scalar float_truncate.
6366 (*truncdfsf_fast_sse): Use "v" constraint.
6367 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
6368 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
6369 (define_peephole2): Check for xmm16+, when converting scalar
6371 (define_peephole2): Check for xmm16+, when converting scalar
6373 (*fop_<mode>_comm_mixed): Use "v" constraint.
6374 (*fop_<mode>_comm_sse): Ditto.
6375 (*fop_<mode>_1_mixed): Ditto.
6376 (*sqrt<mode>2_sse): Ditto.
6377 (*ieee_s<ieee_maxmin><mode>3): Ditto.
6379 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6381 * combine.c (simplify_if_then_else): Use std::swap instead
6382 of manually swapping.
6383 (known_cond): Likewise.
6384 (simplify_comparison): Likewise.
6386 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
6389 * config/rs6000/htm.md: Remove all define_expands.
6390 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
6391 UNSPECV_HTM_TABORTWCI): Remove.
6392 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
6393 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
6394 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
6395 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
6396 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
6397 tabortwci_internal): Remove define_insns.
6398 (tabort<wd>c, tabort<wd>ci): New define_insns.
6399 (tabort): Use gpc_reg_operand.
6400 (tcheck): Remove operand.
6401 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
6402 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
6404 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
6405 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
6406 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
6407 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
6408 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
6409 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
6410 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
6411 (tcheck): Remove builtin argument.
6412 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
6414 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
6415 tabortdc and tabortdci builtins when not in 64-bit mode.
6416 Modify code to handle the loss of the HTM define_expands.
6417 Emit code to copy the CR register to TARGET.
6418 (htm_init_builtins): Modify code to handle the loss of the HTM
6420 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
6421 (RS6000_BTC_64BIT): Likewise.
6422 (RS6000_BTC_CR): New macro.
6423 * doc/extend.texi: Update documentation for htm builtins.
6425 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6427 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
6428 of manually swapping.
6429 (simplify_associative_operation): Likewise.
6430 (simplify_binary_operation): Likewise.
6431 (simplify_plus_minus): Likewise.
6432 (simplify_relational_operation): Likewise.
6433 (simplify_ternary_operation): Likewise.
6435 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
6437 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
6438 (xs_hi_nonmemory_operand): Remove error.
6439 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
6440 general_operand rather than xs_hi_general_operand.
6442 2015-04-27 Richard Biener <rguenther@suse.de>
6444 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
6445 (record_equivalences_from_stmt): Valueize rhs.
6446 (record_equality): Canonicalize x and y order via
6447 tree_swap_operands_p. Do not swap operands for same loop depth.
6449 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
6453 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
6454 Add hint how to use own spec file.
6456 2015-04-27 Jakub Jelinek <jakub@redhat.com>
6458 PR tree-optimization/65875
6459 * tree-vrp.c (update_value_range): If in is_new case setting
6460 old_vr to VR_VARYING, also set new_vr to it. Remove
6461 old_vr->type == VR_VARYING test.
6462 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
6463 SSA_PROP_INTERESTING if update_value_range returned true,
6464 but new range is VR_VARYING.
6466 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6468 * combine.c (sign_extend_short_imm): New.
6469 (set_nonzero_bits_and_sign_copies): Use above new function for sign
6470 extension of src short immediate.
6471 (reg_nonzero_bits_for_combine): Likewise for tem.
6473 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
6475 * stor-layout.c (self_referential_component_ref_p): New predicate.
6476 (copy_self_referential_tree_r): Use it.
6477 (self_referential_size): Punt for simple operations directly involving
6478 self-referential component references.
6479 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
6481 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
6483 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
6485 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
6487 * vec.h (vec): Make splice arguments const. Update definitions
6490 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
6492 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
6495 2015-04-26 Tom de Vries <tom@codesourcery.com>
6497 PR tree-optimization/65826
6498 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
6500 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
6502 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
6503 (*madd3<mode>): Ditto.
6504 (*msub4<mode>): Ditto.
6505 (*msub3<mode>): Ditto.
6506 (*nmadd4<mode>): Ditto.
6507 (*nmadd3<mode>): Ditto.
6508 (*nmadd4<mode>_fastmath): Ditto.
6509 (*nmadd3<mode>_fastmath): Ditto.
6510 (*nmsub4<mode>): Ditto.
6511 (*nmsub3<mode>): Ditto.
6512 (*nmsub4<mode>_fastmath): Ditto.
6513 (*nmsub3<mode>_fastmath): Ditto.
6515 2015-04-24 Jason Merrill <jason@redhat.com>
6518 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
6519 down when building TYPE_CANONICAL.
6520 (build_pointer_type_for_mode): Likewise.
6522 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
6524 * genrecog.c (validate_pattern): Check matching constraint refers
6525 to a lower numbered operand.
6527 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6530 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
6531 save to independent variables use the Save attribute. This will
6532 allow these options to be modified with the #pragma/attribute
6534 (-mallow-movmisalign): Likewise.
6535 (-mallow-df-permute): Likewise.
6536 (-msched-groups): Likewise.
6537 (-malways-hint): Likewise.
6538 (-malign-branch-targets): Likewise.
6539 (-mvectorize-builtins): Likewise.
6540 (-msave-toc-indirect): Likewise.
6542 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
6543 can be set via the #pragma/attribute target support.
6544 (rs6000_opt_vars): Likewise.
6545 (rs6000_inner_target_options): If VSX was set, also set
6546 -mno-avoid-indexed-addresses.
6548 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6550 * config/arm/iterators.md (shiftable_ops): Rename to...
6551 (SHIFTABLE_OPS): ... This. Update use in comments.
6552 (ior_xor): Rename to...
6553 (IOR_XOR): ... This.
6554 (vqh_ops): Rename to...
6555 (VQH_OPS): ... This.
6556 (vqhs_ops): Rename to...
6557 (VQHS_OPS): ... This.
6558 (rshifts): Rename to...
6559 (RSHIFTS): ... This.
6560 (returns): Rename to...
6561 (RETURNS): ... This.
6562 * config/arm/arm.md: Update uses of the above.
6563 * config/arm/neon.md: Likewise.
6565 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6567 * config.host (case ${host}): Add aarch64*-*-linux case.
6568 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
6569 fields to all the cores.
6570 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
6571 Add MCPU_MTUNE_NATIVE_SPECS.
6572 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
6573 field to all extensions.
6574 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
6575 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
6576 Adjust definition of AARCH64_OPT_EXTENSION.
6577 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
6578 (MCPU_MTUNE_NATIVE_SPECS): Define.
6579 * config/aarch64/driver-aarch64.c: New file.
6580 * config/aarch64/x-arch64: New file.
6581 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
6584 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
6585 Wei Mi <wmi@google.com>
6587 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
6588 * config/i386/i386.c (extract_base_offset_in_addr): New function.
6589 (ix86_operands_ok_for_move_multiple): Ditto.
6590 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
6591 (movlpd/movhpd to movupd peephole2): Ditto.
6593 2015-04-24 Marek Polacek <polacek@redhat.com>
6596 * input.h (from_macro_expansion_at): Define.
6599 * doc/invoke.texi: Update description of -Wlogical-op.
6601 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
6603 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
6604 ternary operator in fprintf and harmonize spacing.
6606 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
6608 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
6609 Mark operand1 commutative.
6611 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
6613 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
6614 input operands in memory.
6615 (*vec_concatv2si_sse4_1): Ditto.
6616 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
6617 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
6619 (vec_extract_hi_v32hi): Ditto.
6620 (vec_extract_hi_v64hi): Ditto.
6621 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6623 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
6624 Steven Bosscher <steven@gcc.gnu.org>
6626 PR rtl-optimization/34503
6627 * cprop.c (cprop_reg_p): New.
6628 (hash_scan_set): Use above function to check if register can be
6630 (find_avail_set): Return up to two sets, one whose source is a
6631 register and one whose source is a constant. Sets are returned in an
6632 array passed as parameter rather than as a return value.
6633 (cprop_insn): Use a do while loop rather than a goto. Try each of the
6634 sets returned by find_avail_set, starting with the one whose source is
6635 a constant. Use cprop_reg_p to check if register can be propagated.
6636 (do_local_cprop): Use cprop_reg_p to check if register can be
6638 (implicit_set_cond_p): Likewise.
6640 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
6642 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
6643 (sem_function::equals): IGNORED_NODES parameter is now unused;
6644 update call of equals_private.
6645 (sem_function::equals_private): Do not call equals_wpa; skip
6646 gimple body matching if there is no body.
6647 (sem_function::init): Add logic to hash tthunk info.
6648 (sem_function::parse): Also parse thunks.
6649 * ipa-icf.h (equals_private): Update declaration.
6651 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6653 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
6654 asterisk from name so this can be generated directly.
6655 (*altivec_stvx_<mode>_internal): Likewise.
6656 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
6657 that this is never called during or after reload/lra.
6658 (rs6000_frame_related): Remove split_reg
6659 argument and logic that references it.
6660 (emit_frame_save): Remove last parameter from call to
6661 rs6000_frame_related.
6662 (rs6000_emit_prologue): Remove last parameter from eight calls to
6663 rs6000_frame_related. Force generation of stvx instruction for
6664 Altivec register saves. Remove split_reg handling, which is no
6666 (rs6000_emit_epilogue): Force generation of lvx instruction for
6667 Altivec register restores.
6669 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6671 * config/rs6000/rs6000.opt (mcrypto): Change option description to
6672 match category changes in ISA 2.07B.
6674 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6676 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
6678 (cmp_op, cmp_type): New code attributes.
6679 (NEON_VCMP, NEON_VACMP): New int iterators.
6680 (cmp_op_unsp): New int attribute.
6681 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
6682 (neon_vceq<mode>): Delete.
6683 (neon_vc<cmp_op><mode>_insn): New pattern.
6684 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
6685 (neon_vcgeu<mode>): Delete.
6686 (neon_vcle<mode>): Likewise.
6687 (neon_vclt<mode>: Likewise.
6688 (neon_vcage<mode>): Likewise.
6689 (neon_vcagt<mode>): Likewise.
6690 (neon_vca<cmp_op><mode>): New define_expand.
6691 (neon_vca<cmp_op><mode>_insn): New pattern.
6692 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
6694 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
6696 * tree.h (attribute_value_equal): Declare.
6697 * tree.c (attribute_value_equal): Export.
6699 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
6701 * ipa-icf.c (sem_item::compare_attributes): New function.
6702 (sem_item::compare_referenced_symbol_properties): Compare variable
6704 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
6705 (sem_function::param_used_p): New function.
6706 (sem_function::equals_wpa): Fix attribute comparsion; match
6707 parameter type codes; do not compare paremter flags when
6708 they are not used; compare edge flags; compare indirect calls.
6709 (sem_item::update_hash_by_addr_refs): Hash reference type.
6710 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
6711 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
6713 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
6714 * ipa-icf.h (compare_attributes, param_used_p): Declare.
6716 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
6718 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
6720 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
6721 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
6722 (sem_item::compare_referenced_symbol_properties): New.
6723 (sem_item::hash_referenced_symbol_properties): New.
6724 (sem_item::compare_cgraph_references): Rename to ...
6725 (sem_item::compare_symbol_references): ... this one; use
6726 compare_referenced_symbol_properties.
6727 (sem_function::equals_wpa): Do not compare
6728 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
6729 DECL_IS_OPERATOR_NEW; compare pointer sizes.
6730 (sem_item::update_hash_by_addr_refs): Call
6731 hash_referenced_symbol_properties.
6732 (sem_item::update_hash_by_local_refs): Cleanup.
6733 (sem_function::merge): Do not mix up symbol properties.
6734 (sem_variable::equals_wpa): Use compare_symbol_references.
6735 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
6736 (sem_item::hash_referenced_symbol_properties): New.
6737 (sem_item::compare_symbol_references): New.
6738 (sem_item::compare_cgraph_references): Remove.
6740 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
6743 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
6746 2015-04-23 Nick Clifton <nickc@redhat.com>
6748 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
6749 ATTRIBUTE_UNUSED to x parameter.
6750 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
6752 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6754 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
6755 TARGET_CRYPTO to TARGET_P8_VECTOR>
6756 (crypto_vpermxor_<mode>): Likewise.
6757 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
6758 (BU_CRYPTO_3A): Likewise.
6759 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
6760 (BU_CRYPTO_OVERLOAD_3A): New #define.
6761 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
6762 (VPMSUMH): Likewise.
6763 (VPMSUMW): Likewise.
6764 (VPMSUMD): Likewise.
6765 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
6766 (VPERMXOR_V4SI): Likewise.
6767 (VPERMXOR_V8HI): Likewise.
6768 (VPERMXOR_V16QI): Likewise.
6769 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
6770 BU_CRYPTO_OVERLOAD_2A.
6771 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
6772 BU_CRYPTO_OVERLOAD_3A.
6773 * config/rs6000/rs6000.opt (mcrypto): Change description of
6776 2015-04-23 Richard Biener <rguenther@suse.de>
6778 * passes.def: Remove copy propagation passes run directly after CCP.
6779 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
6781 (ccp_visit_phi_node): Rework to handle first executable edge
6784 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
6786 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
6787 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
6788 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
6789 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
6790 (thumb_legimitimize_reload_address): Remove.
6791 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
6793 (thumb_legimitimize_reload_address): Remove.
6795 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6797 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
6799 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6801 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
6803 (store_multiple): Likewise.
6805 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6807 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
6808 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
6809 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
6810 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
6811 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
6812 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
6813 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
6814 Specify issue_rate value.
6815 (arm_issue_rate): Look up issue rate from tuning structs. Remove
6816 large switch statement.
6817 (arm_marvell_pj4_tune): New struct.
6818 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
6821 2015-04-23 Richard Biener <rguenther@suse.de>
6823 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
6824 (vect_find_last_store_in_slp_instance): Rename to ...
6825 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
6826 (vect_analyze_slp_cost_1): Use vector_load for constant defs
6827 and vec_construct for external defs when estimating prologue cost.
6828 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
6829 Compute costs here only when vectorizing loops.
6830 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
6831 have been determined.
6832 (vect_schedule_slp_instance): Simplify vectorized code placement
6833 and prepare for in-BB external defs.
6834 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
6835 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
6836 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
6838 (vect_model_load_cost): Likewise.
6839 (vectorizable_store): Instead add it here.
6840 (vectorizable_load): Likewise.
6841 (vect_is_simple_use): Dump def type textually.
6843 2015-04-23 Richard Biener <rguenther@suse.de>
6845 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
6846 * cfgloop.c (verify_loop_structure): Verify the root loop node.
6847 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
6848 instead of get_eh_region_from_lp_number.
6849 * loop-init.c (fix_loop_structure): If we removed a loop, reset
6852 2015-04-23 Anton Blanchard <anton@samba.org>
6854 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
6855 need for -mprofile-kernel to save LR to stack.
6857 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6859 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
6861 (insn_is_swappable_p): Return 1 for a convert from double to
6862 single precision when all of its uses are splats of BE element
6865 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6867 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
6869 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6872 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
6873 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
6874 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
6876 (rs6000_builtin_mask_for_load): Return 0 for targets with
6877 efficient unaligned VSX accesses so that the vectorizer will use
6878 direct unaligned loads.
6879 (rs6000_builtin_support_vector_misalignment): Always return true
6880 for targets with efficient unaligned VSX accesses.
6881 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
6882 stores on targets with efficient unaligned VSX accesses is almost
6883 always the same as the cost of an aligned load or store, so model
6885 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
6886 unaligned vectors if we have efficient unaligned VSX accesses.
6887 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
6888 undocumented option.
6890 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6893 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
6895 * config.gcc (LIBC_MUSL): New tm_defines macro.
6896 * config/linux.h (OPTION_MUSL): Define.
6897 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6898 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6899 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6901 * config/linux.opt (mmusl): New option.
6902 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
6903 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
6905 * configure: Regenerate.
6907 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
6909 * config.gcc (LIBC_MUSL): New tm_defines macro.
6910 * config/linux.h (OPTION_MUSL): Define.
6911 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6912 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6913 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6915 * config/linux.opt (mmusl): New option.
6916 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
6917 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
6919 * configure: Regenerate.
6921 2015-04-22 Yury Gribov <y.gribov@samsung.com>
6923 * doc/invoke.texi (-fsanitize-sections): Update description.
6924 * asan.c (set_sanitized_sections): Parse incoming arg.
6925 (section_sanitized_p): Support wildcards.
6927 2015-04-22 Tom de Vries <tom@codesourcery.com>
6929 PR tree-optimization/65823
6930 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
6931 equality between ap_copy and ap.
6933 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6936 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
6938 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6941 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
6943 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6946 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
6947 remove already contained t-files.
6949 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6951 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
6952 Remove unneeded forward declarations.
6953 (suitable_for_tail_call_opt_p): Commentary typo fix.
6955 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6957 * varasm.c (emit_bss): Remove redundant guard.
6959 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6961 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
6963 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6965 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
6967 2015-04-22 Hale Wang <hale.wang@arm.com>
6968 Terry Guo <terry.guo@arm.com>
6970 PR rtl-optimization/64818
6971 * combine.c (can_combine_p): Don't combine user-specified
6972 register if it is in an asm input.
6974 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
6977 * passes.def (early_optimizations): Add pass_dse.
6979 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6981 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
6982 * reorg.c (redundant_insn): Remove ifdef
6983 INSN_REFERENCES_ARE_DELAYED.
6984 * resource.c (mark_referenced_resources): Likewise.
6986 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6988 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
6989 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
6990 * resource.c (mark_set_resources): Likewise.
6992 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6994 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
6995 * cfgcleanup.c (flow_find_cross_jump): Likewise.
6996 (flow_find_head_matching_sequence): Likewise.
6997 (try_head_merge_bb): Likewise.
6998 * combine.c (can_combine_p): Likewise.
6999 (try_combine): Likewise.
7000 (distribute_notes): Likewise.
7001 * df-problems.c (can_move_insns_across): Likewise.
7002 * final.c (final): Likewise.
7003 * gcse.c (insert_insn_end_basic_block): Likewise.
7004 * ira.c (find_moveable_pseudos): Likewise.
7005 * reorg.c (try_merge_delay_insns): Likewise.
7006 (fill_simple_delay_slots): Likewise.
7007 (fill_slots_from_thread): Likewise.
7008 * sched-deps.c (sched_analyze_2): Likewise.
7010 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7012 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
7013 PIC_OFFSET_TABLE_REGNUM.
7015 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7017 * alias.c (init_alias_target): Remove ifdef
7018 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
7019 * df-scan.c (df_insn_refs_collect): Likewise.
7020 (df_get_regular_block_artificial_uses): Likewise.
7021 (df_get_eh_block_artificial_uses): Likewise.
7022 (df_get_entry_block_def_set): Likewise.
7023 (df_get_exit_block_use_set): Likewise.
7024 * emit-rtl.c (gen_rtx_REG): Likewise.
7025 * ira.c (ira_setup_eliminable_regset): Likewise.
7026 * reginfo.c (init_reg_sets_1): Likewise.
7027 * regrename.c (rename_chains): Likewise.
7028 * reload1.c (reload): Likewise.
7029 (eliminate_regs_in_insn): Likewise.
7030 * resource.c (mark_referenced_resources): Likewise.
7031 (init_resource_info): Likewise.
7033 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7035 * defaults.h (MASK_RETURN_ADDR): New definition.
7036 * except.c (expand_builtin_extract_return_addr): Remove ifdef
7039 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7041 * defaults.h (RETURN_ADDR_OFFSET): New definition.
7042 * except.c (expand_builtin_extract_return_addr): Remove ifdef
7044 (expand_builtin_frob_return_addr): Likewise.
7046 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7048 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
7049 (try_redirect_by_replacing_jump): Likewise.
7050 (rtl_tidy_fallthru_edge): Likewise.
7051 * combine.c (insn_a_feeds_b): Likewise.
7052 (find_split_point): Likewise.
7053 (simplify_set): Likewise.
7054 * cprop.c (cprop_jump): Likewise.
7055 * cse.c (cse_extended_basic_block): Likewise.
7056 * df-problems.c (can_move_insns_across): Likewise.
7057 * function.c (emit_use_return_register_into_block): Likewise.
7058 * haifa-sched.c (sched_init): Likewise.
7059 * ira.c (find_moveable_pseudos): Likewise.
7060 * loop-invariant.c (find_invariant_insn): Likewise.
7061 * lra-constraints.c (curr_insn_transform): Likewise.
7062 * postreload.c (reload_combine_recognize_const_pattern):
7064 * reload.c (find_reloads): Likewise.
7065 * reorg.c (delete_scheduled_jump): Likewise.
7066 (steal_delay_list_from_target): Likewise.
7067 (steal_delay_list_from_fallthrough): Likewise.
7068 (redundant_insn): Likewise.
7069 (fill_simple_delay_slots): Likewise.
7070 (fill_slots_from_thread): Likewise.
7071 (delete_computation): Likewise.
7072 * sched-rgn.c (add_branch_dependences): Likewise.
7074 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7076 * genconfig.c (main): Always define HAVE_cc0.
7077 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
7079 * cfgcleanup.c (flow_find_cross_jump): Likewise.
7080 (flow_find_head_matching_sequence): Likewise.
7081 (try_head_merge_bb): Likewise.
7082 * cfgrtl.c (rtl_merge_blocks): Likewise.
7083 (try_redirect_by_replacing_jump): Likewise.
7084 (rtl_tidy_fallthru_edge): Likewise.
7085 * combine.c (do_SUBST_MODE): Likewise.
7086 (insn_a_feeds_b): Likewise.
7087 (combine_instructions): Likewise.
7088 (can_combine_p): Likewise.
7089 (try_combine): Likewise.
7090 (find_split_point): Likewise.
7092 (simplify_set): Likewise.
7093 (distribute_notes): Likewise.
7094 * cprop.c (cprop_jump): Likewise.
7095 * cse.c (cse_extended_basic_block): Likewise.
7096 * df-problems.c (can_move_insns_across): Likewise.
7097 * final.c (final): Likewise.
7098 (final_scan_insn): Likewise.
7099 * function.c (emit_use_return_register_into_block): Likewise.
7100 * gcse.c (insert_insn_end_basic_block): Likewise.
7101 * haifa-sched.c (sched_init): Likewise.
7102 * ira.c (find_moveable_pseudos): Likewise.
7103 * loop-invariant.c (find_invariant_insn): Likewise.
7104 * lra-constraints.c (curr_insn_transform): Likewise.
7105 * optabs.c (prepare_cmp_insn): Likewise.
7106 * postreload.c (reload_combine_recognize_const_pattern):
7108 * reload.c (find_reloads): Likewise.
7109 (find_reloads_address_1): Likewise.
7110 * reorg.c (delete_scheduled_jump): Likewise.
7111 (steal_delay_list_from_target): Likewise.
7112 (steal_delay_list_from_fallthrough): Likewise.
7113 (try_merge_delay_insns): Likewise.
7114 (redundant_insn): Likewise.
7115 (fill_simple_delay_slots): Likewise.
7116 (fill_slots_from_thread): Likewise.
7117 (delete_computation): Likewise.
7118 (relax_delay_slots): Likewise.
7119 * sched-deps.c (sched_analyze_2): Likewise.
7120 * sched-rgn.c (add_branch_dependences): Likewise.
7122 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7124 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
7125 that is trivially ded on non cc0 targets.
7126 (simplify_set): Likewise.
7127 (mark_used_regs_combine): Likewise.
7128 * cse.c (new_basic_block): Likewise.
7129 (fold_rtx): Likewise.
7130 (cse_insn): Likewise.
7131 (cse_extended_basic_block): Likewise.
7132 (set_live_p): Likewise.
7133 * rtlanal.c (canonicalize_condition): Likewise.
7134 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7136 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7138 * conditions.h: Define macros even if HAVE_cc0 is undefined.
7139 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
7140 * final.c: Likewise.
7142 * recog.c: Likewise.
7143 * recog.h: Declare functions even when HAVE_cc0 is undefined.
7144 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
7146 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7148 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
7149 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
7150 * builtins.c (expand_builtin): Remove check if
7151 EH_RETURN_DATA_REGNO is defined.
7152 * df-scan.c (df_bb_refs_collect): Likewise.
7153 (df_get_exit_block_use_set): Likewise.
7154 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
7155 * ira-lives.c (process_bb_node_lives): Likewise.
7156 * lra-lives.c (process_bb_lives): Likewise.
7158 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
7160 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
7161 FIRST_PSEUDO_REG): New.
7162 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
7163 (ARG_POINTER_REGNUM): Define to ARGP_REG.
7164 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
7165 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
7166 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
7167 (FIRST_INT_REG): New.
7168 (LAST_INT_REG): New.
7169 (FIRST_*_REG): Define using *_REG.
7170 (LAST_*_REG): Ditto.
7171 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
7172 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
7173 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
7175 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7177 * expmed.c: (synth_mult): Only assume overlapping
7178 shift with previous steps in alg_sub_t_m2 case.
7180 2015-04-21 Richard Biener <rguenther@suse.de>
7182 PR tree-optimization/65650
7183 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
7184 transitions involving copies.
7185 (set_lattice_value): Adjust for copy lattice state.
7186 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
7187 if that doesn't dominate the merge point.
7188 (bit_value_unop): Adjust what we treat as varying mask.
7189 (bit_value_binop): Likewise.
7190 (bit_value_assume_aligned): Likewise.
7191 (evaluate_stmt): When we simplified to a SSA name record a copy
7192 instead of dropping to varying.
7193 (visit_assignment): Simplify.
7195 * gimple-match.h (gimple_simplify): Add another callback.
7196 * gimple-fold.c (fold_stmt_1): Adjust caller.
7197 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
7198 for the 2nd callback.
7199 * gimple-match-head.c (gimple_simplify): Add a callback that is
7200 used to valueize the stmt operands and use it that way.
7202 2015-04-21 Richard Biener <rguenther@suse.de>
7204 PR tree-optimization/65788
7205 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
7207 2015-04-21 Richard Biener <rguenther@suse.de>
7209 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
7210 vec_construct cost by vec_stmt_cost.
7212 2015-04-21 Richard Biener <rguenther@suse.de>
7214 * cfghooks.h (create_basic_block): Replace with two overloads
7216 (split_block): Likewise.
7217 * cfghooks.c (split_block): Rename to ...
7218 (split_block_1): ... this.
7219 (split_block): Add two type-safe overloads for RTL and GIMPLE.
7220 (split_block_after_labels): Call split_block_1.
7221 (create_basic_block): Rename to ...
7222 (create_basic_block_1): ... this.
7223 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
7224 (create_empty_bb): Call create_basic_block_1.
7225 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
7226 split_block_after_labels.
7227 * omp-low.c (expand_parallel_call): Likewise.
7228 (expand_omp_target): Likewise.
7229 (simd_clone_adjust): Likewise.
7230 * tree-chkp.c (chkp_get_entry_block): Likewise.
7231 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
7232 create_basic_block overload.
7233 (cgraph_node::expand_thunk): Likewise.
7234 * tree-cfg.c (make_blocks): Likewise.
7235 (handle_abnormal_edges): Likewise.
7236 * tree-inline.c (copy_bb): Likewise.
7238 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7240 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
7242 (*xor_one_cmplsidi3_ze): Likewise.
7244 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
7246 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
7247 use df_remove_problem rather than manually removing problems, leaving
7248 holes in df->problems_in_order[].
7250 2015-04-21 Tom de Vries <tom@codesourcery.com>
7252 PR tree-optimization/65802
7253 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
7255 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7257 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
7259 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
7260 at '.'. Assert that there's enough space for everything.
7262 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
7264 PR tree-optimization/64950
7266 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
7269 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7272 2015-04-20 Shiva Chen <shiva0217@gmail.com>
7274 PR rtl-optimization/64916
7275 * cfgcleanup.c (values_equal_p): New function.
7276 (can_replace_by): Use it.
7278 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
7281 * doc/invoke.texi ([-Wnarrowing]): Update.
7283 2015-04-20 Jeff Law <law@redhat.com>
7285 PR tree-optimization/65658
7286 * tree-ssa-threadupdate.c (redirection_block_p): Remove
7287 redundant test for GIMPLE_ASSIGN in last change.
7289 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
7291 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
7292 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
7293 (legitimize_tls_address): Ditto.
7294 (ix86_expand_move): Ditto.
7295 (ix86_expand_binary_operator): Remove reload_in_progress checks.
7296 (ix86_expand_unary_operator): Ditto.
7297 * config/i386/predicates.md (index_register_operand): Ditto.
7299 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
7301 * reorg.c (try_merge_delay_insns): Improve correctness checking
7302 for targets with multiple delay slots.
7304 2015-04-20 Jeff Law <law@redhat.com>
7306 PR tree-optimization/65658
7307 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
7310 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
7312 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
7313 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
7316 2015-04-20 Jakub Jelinek <jakub@redhat.com>
7319 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
7321 2015-04-20 Richard Biener <rguenther@suse.de>
7323 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
7324 * gimple-fold.c (gimple_build_valueize): New function.
7325 (gimple_build): Always use gimple_build_valueize as valueize hook.
7327 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
7330 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
7331 and overwrite variable parts if <= 1/2 the elements are variable.
7333 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
7335 PR rtl-optimization/65805
7336 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
7337 Don't use difference of offset and previous offset if
7338 update_sp_offset is non-zero.
7339 (eliminate_regs_in_insn): Ditto.
7340 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
7341 lra_eliminate_regs_1 call.
7342 * lra-constraints.c (get_equiv_with_elimination): Ditto.
7344 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
7346 * hash-table.h: Remove version of hash_table that stored value_type *.
7347 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
7348 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
7349 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
7350 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
7351 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
7352 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
7353 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
7354 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
7355 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
7356 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
7357 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
7358 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
7359 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
7360 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
7361 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
7362 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
7364 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7365 Jakub Jelinek <jakub@redhat.com>
7368 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
7369 subsequent SH_NONE operand does not overwrite an existing *special
7371 (adjust_extract): Handle case where a vec_extract operation is
7372 wrapped in a PARALLEL.
7374 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
7377 * config/i386/i386.c (ix86_binds_local_p): Define only if
7378 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
7380 2015-04-17 Jeff Law <law@redhat.com>
7382 PR tree-optimization/47679
7383 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
7384 * tree-ssa-scopedtables.c: New file.
7385 * tree-ssa-scopedtables.h: New file.
7386 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
7387 (const_and_copies): Change name/type.
7388 (record_const_or_copy): Move into tree-ssa-scopedtables.c
7389 (record_const_or_copy_1): Similarly.
7390 (restore_vars_to_original_value): Similarly.
7391 (pass_dominator::execute): Create and destroy const_and_copies table.
7392 (thread_across_edge): Update passing of const_and_copies.
7393 (record_temporary_equivalence): Use method calls rather than
7394 manipulating const_and_copies directly.
7395 (record_equality, cprop_into_successor_phis): Similarly.
7396 (dom_opt_dom_walker::before_dom_children): Similarly.
7397 (dom_opt_dom_walker::after_dom_children): Similarly.
7398 (eliminate_redundant_computations): Similarly.
7399 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
7400 (record_temporary_equivalence): Likewise.
7401 (invalidate_equivalences): Likewise.
7402 (record_temporary_equivalences_from_phis): Update due to type
7403 change of const_and_copies. Use method calls rather than
7404 manipulating the stack directly.
7405 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
7406 (thread_through_normal_block, thread_across_edge): Likewise.
7407 (thread_across_edge): Likewise.
7408 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7409 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
7411 (identify_jump_threads): Update due to type change of equiv_stack.
7412 (finalize_jump_threads): Delete the equiv_stack when complete.
7414 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
7416 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7417 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
7418 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
7420 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
7423 * config.gcc: Exit with a comment when we do not have a major version
7424 number for the FreeBSD target.
7426 2015-04-17 Jakub Jelinek <jakub@redhat.com>
7429 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
7430 maybe_allows_mem bitfields.
7431 (maybe_allows_none_start, maybe_allows_none_end,
7432 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
7433 maybe_allows_mem_end): New variables.
7434 (compute_maybe_allows): New function.
7435 (add_constraint): Use it to initialize maybe_allows_reg and
7436 maybe_allows_mem fields.
7437 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
7438 is_address constraints such that those that allow neither mem nor
7439 reg come first, then those that only allow reg but not mem, then
7440 those that only allow mem but not reg, then the rest.
7441 (write_allows_reg_mem_function): New function.
7442 (write_tm_preds_h): Call it.
7443 * stmt.c (parse_output_constraint, parse_input_constraint): Use
7444 the generated insn_extra_constraint_allows_reg_mem function
7445 instead of always setting *allows_reg = true; *allows_mem = true;
7446 for unknown extra constraints.
7448 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
7451 * output.h (default_binds_local_p_3): New.
7452 * varasm.c (default_binds_local_p_3): Make it public. Take an
7453 argument to indicate if common symbol may be local. If common
7454 symbol may be local, treat non-external variable as defined
7456 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
7457 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
7458 * config/i386/i386.c (ix86_binds_local_p): New.
7459 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
7462 2015-04-17 Jakub Jelinek <jakub@redhat.com>
7465 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
7466 trying mem_loc_descriptor on XEXP (rtl, 0).
7468 2015-04-17 Martin Liska <mliska@suse.cz>
7470 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
7471 Release symbol_compare_collection.
7472 * ipa-reference.c: Add TODO that a vector should be released.
7474 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
7477 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
7478 to new AVR-LibC file layout (bug #44574).
7479 (*avrlibc_devicelib): Same.
7480 * config/avr/avr-mcus.def: Adjust comments.
7481 * config/avr/avr.opt (nodevicelib): Adjust help.
7483 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
7485 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
7487 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
7490 * gimplify.c (gimplify_init_constructor): Always emit a
7491 side-effecting constructor.
7493 2015-04-17 Tom de Vries <tom@codesourcery.com>
7495 PR tree-optimization/64950
7496 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
7497 in cfun->curr_properties.
7498 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
7499 if we generate an IFN_VA_ARG.
7500 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
7501 function if PROP_gimple_lva is not set in src function.
7503 2015-04-17 Tom de Vries <tom@codesourcery.com>
7504 Michael Matz <matz@suse.de>
7506 PR tree-optimization/64950
7507 * gimple-iterator.c (update_modified_stmts): Remove static.
7508 * gimple-iterator.h (update_modified_stmts): Declare.
7509 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
7510 (gimplify_va_arg_internal): New function.
7511 (gimplify_va_arg_expr): Use IFN_VA_ARG.
7512 * gimplify.h (gimplify_va_arg_internal): Declare.
7513 * internal-fn.c (expand_VA_ARG): New unreachable function.
7514 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
7515 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
7516 (expand_ifn_va_arg): New function.
7517 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
7518 (pass_stdarg::execute): Call expand_ifn_va_arg.
7519 (pass_data_lower_vaarg): New pass_data.
7520 (pass_lower_vaarg): New gimple_opt_pass.
7521 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
7522 (make_pass_lower_vaarg): New function.
7523 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
7524 properties_required field.
7525 * passes.def (all_passes): Add pass_lower_vaarg.
7526 * tree-pass.h (PROP_gimple_lva): Add define.
7527 (make_pass_lower_vaarg): Declare.
7529 2015-04-17 Tom de Vries <tom@codesourcery.com>
7531 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
7532 * calls.c (call_expr_flags): Same.
7534 2015-04-17 Tom de Vries <tom@codesourcery.com>
7536 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
7537 (pass_stdarg::execute): ... here.
7539 2015-04-17 Tom de Vries <tom@codesourcery.com>
7540 Michael Matz <matz@suse.de>
7542 * tree-cfg.c (make_blocks_1): Factor out of ...
7543 (make_blocks): ... here.
7544 (make_edges_bb): Factor out of ...
7545 (make_edges): ... here.
7546 (gimple_find_sub_bbs): New function.
7547 * tree-cfg.h (gimple_find_sub_bbs): Declare.
7549 2015-04-17 Tom de Vries <tom@codesourcery.com>
7551 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
7553 2015-04-17 Yury Gribov <y.gribov@samsung.com>
7555 * asan.c (set_sanitized_sections): New function.
7556 (section_sanitized_p): Ditto.
7557 (asan_protect_global): Optionally sanitize user-defined
7559 * asan.h (set_sanitized_sections): Declare new function.
7560 * common.opt (fsanitize-sections): New option.
7561 * doc/invoke.texi (-fsanitize-sections): Document new option.
7562 * opts-global.c (handle_common_deferred_options): Handle new
7565 2015-04-17 Jakub Jelinek <jakub@redhat.com>
7568 * dwarf2out.c (loc_list_from_tree): Return NULL
7569 for DEBUG_EXPR_DECL.
7571 2015-04-17 Christian Bruel <christian.bruel@st.com>
7573 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
7576 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7578 * ira-color.c (setup_left_conflict_sizes_p): Do not process
7579 node itself when computing left conflict subnode size.
7581 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
7583 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
7584 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
7585 *fop_<mode>_1_sse using enabled attribute. Use
7586 register_mixssei387nonimm_operand operand 1 predicate. Change
7587 alternative 3 constraints from "x" to "v".
7589 2015-04-16 Richard Biener <rguenther@suse.de>
7591 PR tree-optimization/65774
7592 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
7593 bit-value tracking on.
7595 2015-04-16 Richard Biener <rguenther@suse.de>
7597 PR tree-optimization/64277
7598 * tree-vrp.c (check_array_ref): Fix anti-range handling,
7599 simplify upper bound handling.
7600 (search_for_addr_array): Simplify.
7601 (check_array_bounds): Handle ADDR_EXPRs here.
7602 (check_all_array_refs): Simplify.
7604 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
7606 * config/i386/i386.c (print_reg): Rewrite function.
7608 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7610 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
7611 Invert the condition.
7613 2015-04-16 Renlin Li <renlin.li@arm.com>
7615 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
7616 simplifications for UNSIGNED_FLOAT.
7618 2015-04-16 Nick Clifton <nickc@redhat.com>
7620 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
7622 (enum rl78_cpu_type): New.
7623 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
7624 (umulhi3_shift_virt): Remove m constraint from operand 1.
7625 (umulqihi3_virt): Likewise.
7626 * config/rl78/rl78.c (rl78_option_override): Add code to process
7627 -mcpu and -mmul options.
7628 (rl78_alloc_physical_registers): Add code to handle divhi and
7629 divsi valloc attributes.
7630 (set_origin): Likewise.
7631 * config/rl78/rl78.h (RL78_MUL_G14): Define.
7632 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
7633 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
7635 (ASM_SPEC): Pass -mcpu on to assembler.
7636 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
7637 (mulqi3_rl78): Likewise.
7638 (mulhi3_g13): Likewise.
7639 (mulhi3): Generate the G13 or G14 versions of the insn directly.
7641 (mulhi3_g14): Add clobbers of AX and BC.
7642 (mulsi3_g14): Likewise.
7643 (mulsi3_g13): Likewise.
7644 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
7645 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
7646 * config/rl78/rl78.opt (mmul): Initialise value to
7649 (m13, m14, mrl78): New option aliases.
7650 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
7651 (MULTILIB_DIRNAMES): Add g13 and g14.
7652 * doc/invoke.texi: Document -mcpu and -mmul options.
7654 2015-04-16 Richard Biener <rguenther@suse.de>
7656 * tree-ssa-ccp.c (likely_value): See if we have operands that
7657 are marked as never simulate again and return CONSTANT in this
7659 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
7660 not have any operands that will be simulated again as
7661 not being simulated again.
7663 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
7665 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
7666 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
7667 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
7669 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
7671 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
7672 *float<SWI48:mode><MODEF:mode>2_sse.
7673 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
7675 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
7678 2015-04-15 Tom de Vries <tom@codesourcery.com>
7681 * function.c (push_dummy_function): New function.
7682 (init_dummy_function_start): Use push_dummy_function.
7683 (pop_dummy_function): New function. Factored out of ...
7684 (expand_dummy_function_end): ... here.
7685 * function.h (push_dummy_function, pop_dummy_function): Declare.
7686 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
7688 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
7690 2015-04-15 Jeff Law <law@redhat.com>
7692 PR tree-optimization/47679
7693 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
7694 need for forward declaration in upcoming changes.
7695 (record_conditions, record_edge_info): Likewise.
7697 PR rtl-optimization/42522
7698 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
7699 SIGN_EXTRACT as a whole object rather than simplifying
7702 2015-04-15 Jakub Jelinek <jakub@redhat.com>
7705 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
7706 and GIMPLE_PREDICT use break instead of return true. For
7707 GIMPLE_EH_DISPATCH, compare dispatch region.
7709 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
7711 * doc/extend.texi (__sync Builtins): Simplify some text. Update
7712 details about the implementation. Make clear preference for
7713 __atomic builtins. Reduce possibility of future change.
7715 2015-04-15 Nick Clifton <nickc@redhat.com>
7717 * config/rx/rx.opt (mallow-string-insns): New option.
7718 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
7719 builtin if string instructions are denied.
7720 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
7721 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
7723 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
7724 * config/rx/rx.md (movstr): Enable pattern only if string
7725 instructions are allowed.
7726 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
7727 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
7728 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
7729 (MULTILIB_DIRNAMES): Add no-strings.
7730 * doc/invoke.texi: Document -mno-allow-string-insns.
7732 2015-04-15 Alan Modra <amodra@gmail.com>
7737 * calls.c (load_register_parameters): Don't load past end of
7738 mem unless suitably aligned.
7740 2015-04-15 Nick Clifton <nickc@redhat.com>
7742 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
7743 decrement instruction as being frame related.
7744 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
7746 If zero extending a function address enclose the operation in
7748 (rl78_preferred_reload_class): New function.
7749 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7750 * config/rl78/rl78.md: Remove useless constraints in expanders.
7751 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
7752 (mulhi3_rl78): Likewise.
7753 (mulhi3_g13): Likewise.
7754 (mulsi3_rl78): Likewise.
7755 (es_addr): Move to before the multiply patterns.
7757 2015-04-15 Alan Modra <amodra@gmail.com>
7759 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
7760 and sequence_stack. Add seq.
7761 (seq_stack): Delete.
7762 * function.c (prepare_function_start): Don't access x_last_insn.
7763 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
7764 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
7765 * emit_rtl.c (start_sequence, push_topmost_sequence,
7766 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
7768 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
7769 remove_insn): Likewise. Simplify.
7770 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
7771 and pop_topmost_sequence.
7772 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
7774 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
7776 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
7779 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
7782 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
7784 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
7785 (LEGACY_INT_REGNO_P): Ditto.
7786 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
7787 (ANY_MASK_REG_P): Remove.
7788 (BND_REG_P): Rename from ANY_BND_REG_P.
7789 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
7790 legacy integer registers. Do not handle MMX_REG_P in a special way.
7791 Merge 64byte and 32byte SSE handling.
7793 2015-04-14 Nick Clifton <nickc@redhat.com>
7795 * expr.c (expand_assignment): Force an address offset computation
7796 into a register before changing its mode.
7797 (expand_expr_real_1): Likewise.
7799 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
7801 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
7802 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
7803 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
7804 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
7805 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
7806 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
7807 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
7808 and __aarch64_vget_lane_any.
7810 2015-04-14 Jakub Jelinek <jakub@redhat.com>
7812 PR rtl-optimization/65761
7813 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
7814 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
7816 2015-04-14 Richard Biener <rguenther@suse.de>
7818 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
7819 (graphite_can_represent_scev): Use POINTER_TYPE_P.
7821 2015-04-14 Richard Biener <rguenther@suse.de>
7823 PR tree-optimization/65758
7824 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
7826 (ccp_lattice_meet): Likewise.
7827 (bit_value_unop): Likewise.
7828 (bit_value_binop): Likewise.
7829 (bit_value_assume_aligned): Likewise.
7831 2015-04-14 Christian Bruel <christian.bruel@st.com>
7833 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
7836 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
7838 PR tree-optimization/63387
7839 * match.pd ((x unord x) | (y unord y) -> (x unord y),
7840 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
7842 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
7844 * config/i386/predicates.md (any_QIreg_operand): Rename from
7845 q_regs_operand. Do not process subregs.
7846 (QIreg_operand): Use QI_REGNO_P predicate.
7847 (ext_QIreg_operand): Ditto.
7848 (ext_register_operand): Ditto.
7849 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
7850 (AND splitters): Ditto.
7851 (AND with -65536 splitter): Add SWI48 mode for operand 0.
7852 (AND with -256 splitter): Use any_QIreg_operand predicate and
7853 SWI248 mode for operand 0.
7854 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
7856 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
7858 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
7860 * doc/plugins.texi: Rewrite first introductory paragraph.
7862 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
7864 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
7865 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
7867 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
7869 * ipa-profie.c (ipa_profile): Check number of parameters
7870 and possible polymorphic call targets before
7873 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
7875 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
7876 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
7878 2015-04-13 Richard Biener <rguenther@suse.de>
7880 PR tree-optimization/65204
7881 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
7884 2015-04-13 Richard Biener <rguenther@suse.de>
7887 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
7888 and cond_not_taken_branch_cost to 4 and 2.
7889 (bdver2_cost): Likewise.
7890 (bdver3_cost): Likewise.
7891 (bdver4_cost): Likewise.
7893 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
7895 * hash-table.h (hash_table constructor): Add mem stats.
7896 (alloc_entries): Likewise.
7898 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
7900 * ipa-cp.c (ipcp_driver): Relase prev_edge.
7901 * passes.c (execute_one_pass): Only add transform if pass has one.
7903 2015-04-12 Joseph Myers <joseph@codesourcery.com>
7905 * config/i386/i386.c (ix86_option_override_internal): Don't set
7906 -fprefetch-loop-arrays if optimizing for size.
7908 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
7909 Gerald Pfeifer <gerald@pfeifer.com>
7911 * doc/contrib.texi (Contributors): Add Martin Jambor and
7914 2015-04-12 Jakub Jelinek <jakub@redhat.com>
7916 * BASE-VER: Set to 6.0.0.
7918 PR tree-optimization/65747
7919 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
7920 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
7922 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
7924 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
7925 sentence. Improve grammar.
7927 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
7929 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
7931 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
7934 * ipa-inline-transform.c (speculation_removed): Remove static var.
7935 (check_speculations): New function.
7936 (clone_inlined_nodes): Do not check spculations.
7937 (inline_call): Call check_speculations.
7938 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
7939 consider non-invariants.
7941 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
7942 Martin Liska <mliska@suse.cz>
7945 * ipa-icf.c (sem_item::compare_cgraph_references): function and
7946 variable can not match.
7947 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
7948 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
7950 2015-04-11 Jakub Jelinek <jakub@redhat.com>
7952 PR tree-optimization/65735
7953 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
7954 Remove visited_phis argument, add visited_bbs, avoid recursing into the
7955 same bb rather than just into the same phi node.
7956 (thread_through_normal_block): Adjust caller.
7958 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
7960 * doc/contrib.texi (Contributors): Add Ira Rosen.
7962 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
7964 * gcov.c (find_source): Fix miswording in error message.
7965 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
7966 (ix86_expand_sse_comi_round): Fix typo in error message.
7968 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
7970 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
7972 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
7974 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
7976 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
7979 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
7980 Print bad_spills_num and insn_pseudos_num.
7982 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7985 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
7986 when creating +1 values for SImode.
7988 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
7991 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
7994 2015-04-10 Jakub Jelinek <jakub@redhat.com>
7995 Iain Sandoe <iain@codesourcery.com>
7998 * configure: Regenerate.
8000 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
8003 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
8005 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
8007 * doc/contrib.texi (Contributors): Add John Marino.
8009 2015-04-09 Jakub Jelinek <jakub@redhat.com>
8011 PR tree-optimization/65709
8012 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
8013 TREE_TYPE (TREE_TYPE (t)).
8015 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
8018 * lra-int.h (lra_bad_spill_regno_start): New.
8019 * lra.c (lra_bad_spill_regno_start): New.
8020 (lra): Set up lra_bad_spill_regno_start. Set up
8021 lra_constraint_new_regno_start unconditionally.
8022 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
8025 2015-04-09 Marek Polacek <polacek@redhat.com>
8026 Jakub Jelinek <jakub@redhat.com>
8029 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
8030 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
8033 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
8035 PR rtl-optimization/65693
8036 * combine.c (is_parallel_of_n_reg_sets): Move outside of
8039 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
8042 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
8043 device specs file if "device-specs%s" didn't resolve to a path.
8045 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
8048 * config/i386/i386.c (fixup_modeless_constant): New.
8049 (ix86_expand_args_builtin): Fixup modeless constant operand.
8050 (ix86_expand_round_builtin): Ditto.
8051 (ix86_expand_special_args_builtin): Ditto.
8052 (ix86_expand_builtin): Ditto.
8054 2015-04-09 Jakub Jelinek <jakub@redhat.com>
8057 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
8058 any pow2 integer in between 2 and 0x80000000U inclusive.
8060 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
8062 PR rtl-optimization/65693
8063 * combine.c (is_parallel_of_n_reg_sets): Change first argument
8064 from an rtx_insn * to an rtx.
8065 (try_combine): Adjust both callers. Use it once more.
8067 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
8069 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
8070 (chkp_make_static_const_bounds): Search existing
8071 symbol by assembler name. Use make_decl_one_only.
8072 (chkp_get_zero_bounds_var): Remove node search which
8073 is now performed in chkp_make_static_const_bounds.
8074 (chkp_get_none_bounds_var): Likewise.
8076 2015-04-08 Michael Witten <mfwitten@gmail.com>
8078 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
8081 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8083 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
8085 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
8087 * doc/extend.texi (__sync Builtins): Fix grammar.
8089 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8091 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
8093 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8095 * varasm.c (emit_local): Move definition of align.
8097 2015-04-08 Julian Brown <julian@codesourcery.com>
8099 * config/nvptx/mkoffload.c (process): Support variable mapping.
8101 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
8103 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
8105 (alpha_write_one_linkage): Correct typo.
8107 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
8109 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
8111 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
8113 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
8115 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
8117 * tree-chkp.h (chkp_insert_retbnd_call): New.
8118 * tree-chkp.c (chkp_insert_retbnd_call): New.
8119 * ipa-split.c (insert_bndret_call_after): Remove.
8120 (split_function): Use chkp_insert_retbnd_call.
8121 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
8122 bounds for instrumented functions.
8124 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
8127 * calls.c (initialize_argument_information): When producing tail
8128 call also turn SSA_NAMES passed by references to original PARM_DECLs
8130 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
8133 * lra-remat.c (do_remat): Process input and non-input insn
8134 registers separately.
8136 2015-04-07 Jakub Jelinek <jakub@redhat.com>
8139 * valtrack.c (debug_lowpart_subreg): New function.
8140 (dead_debug_insert_temp): Use it.
8143 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
8144 into signed HOST_WIDE_INT the same as negative bit_offset.
8146 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
8148 * ipa-comdats.c (ipa_comdats): Visit all thunks
8149 to set proper comdat group.
8151 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8154 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
8155 on constants for NEON VSTRUCT modes.
8157 2015-04-07 Jakub Jelinek <jakub@redhat.com>
8158 Iain Sandoe <iain@codesourcery.com>
8161 * configure: Regenerate.
8163 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8166 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
8167 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
8168 that LFD is used to load double constants instead of LFS. Add
8169 defaults for all costs structures. Add comments for missing
8170 initialization fields.
8171 (size32_cost): Likewise.
8172 (size64_cost): Likewise.
8173 (rs64a_cost): Likewise.
8174 (mpccore_cost): Likewise.
8175 (ppc403_cost): Likewise.
8176 (ppc405_cost): Likewise.
8177 (ppc440_cost): Likewise.
8178 (ppc476_cost): Likewise.
8179 (ppc601_cost): Likewise.
8180 (ppc603_cost): Likewise.
8181 (ppc604_cost): Likewise.
8182 (ppc604e_cost): Likewise.
8183 (ppc620_cost): Likewise.
8184 (ppc630_cost): Likewise.
8185 (ppccell_cost): Likewise.
8186 (ppc750_cost): Likewise.
8187 (ppc7450_cost): Likewise.
8188 (ppc8540_cost): Likewise.
8189 (ppce300c2c3_cost): Likewise.
8190 (ppce500mc_cost): Likewise.
8191 (ppce500mc64_cost): Likewise.
8192 (ppce5500_cost): Likewise.
8193 (ppce6500_cost): Likewise.
8194 (titan_cost): Likewise.
8195 (power4_cost): Likewise.
8196 (power6_cost): Likewise.
8197 (power7_cost): Likewise.
8198 (power8_cost): Likewise.
8199 (ppca2_cost): Likewise.
8200 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
8202 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
8203 instead of XXLOR to copy SFmode to clear out dirty bits created
8204 when SFmode denormals are generated.
8205 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
8206 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
8208 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
8210 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
8211 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
8212 * config/aarch64/aarch64-tune.md: Regenerate.
8214 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
8216 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
8217 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
8218 * config/arm/arm-cores.def (exynos-m1): New core.
8219 * config/arm/arm-tune.md: Regenerate.
8220 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
8221 * config/arm/bpabi.h: Likewise.
8223 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
8225 * ipa-cp (set_single_call_flag): Remove too
8228 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8230 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
8231 GOMP_offload_unregister from the destructor.
8233 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
8235 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
8236 flags for instrumentation thunk.
8237 (chkp_produce_thunks): Likewise.
8239 2015-04-05 Martin Liska <mliska@suse.cz>
8242 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
8243 has computed data structure.
8244 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
8246 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
8248 * invoke.texi (inline-unit-growth): Increase growth to 20%
8249 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
8251 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
8254 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
8256 (lra_rematerialization_iter): New.
8257 * lra.c (lra): Initialize lra_rematerialization_iter.
8258 Stop updating lra_constraint_new_regno_start after switching of
8259 inheritance and rematerialization.
8260 * lra-remat.c (lra_rematerialization_iter): New.
8261 (lra_remat): Add printing pass iteration. Do rematerialization
8262 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
8264 2015-04-04 Richard Biener <rguenther@suse.de>
8266 PR tree-optimization/64909
8267 PR tree-optimization/65660
8268 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
8269 to take a cost vector for scalar iteration cost.
8270 (vect_get_single_scalar_iteration_cost): Likewise.
8271 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
8272 Compute the scalar iteration cost into a cost vector.
8273 (vect_get_known_peeling_cost): Use the scalar cost vector to
8274 account for the cost of the peeled iterations.
8275 (vect_estimate_min_profitable_iters): Likewise.
8276 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
8279 2015-04-04 Alan Modra <amodra@gmail.com>
8283 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
8284 0.0 constant unless TARGET_VSX.
8285 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
8288 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
8291 * ipa-inline-transform.c (inline_call): Skip sanity check to work
8294 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
8297 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
8298 speculative indirect edges to avoid ordering issue.
8300 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
8303 * ipa-inline.c (edge_badness): Add combined size to the denominator.
8305 2015-04-03 Jakub Jelinek <jakub@redhat.com>
8307 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
8308 TYPE_ARTIFICIAL on the .omp_data* types.
8310 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
8312 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
8313 instrumentation thunks.
8315 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
8317 * config/i386/i386.c (ix86_expand_call): Avoid nested
8318 PARALLEL in returned call value.
8320 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
8322 * lto-cgraph.c (input_cgraph_1): Always link instrumented
8323 assembler name with original one.
8325 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
8327 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
8329 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
8331 Revert parts of r216820.
8332 * config/i386/i386.md (movqi_internal): Correct type calculation
8333 for alternatives 3 and 5.
8335 2015-04-02 Jakub Jelinek <jakub@redhat.com>
8337 PR preprocessor/61977
8338 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
8339 predefine __vector/__bool/__pixel macros nor context sensitive
8341 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
8343 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
8345 * config/pa/pa.c (pa_output_move_double): Directly handle register
8346 indexed memory operand. Simplify handling of scaled register indexed
8349 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
8352 * config/i386/linux-common.h (MPX_SPEC): New.
8353 (CHKP_SPEC): Add MPX_SPEC.
8354 * doc/invoke.texi (-fcheck-pointer-boudns): Document
8355 possible issues with '-z bndplt' support in linker.
8357 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
8359 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
8360 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
8361 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
8362 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
8363 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
8365 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
8367 * config/i386/sync.md (UNSPEC_MOVA): Remove.
8368 (atomic_load<mode>): Change operand 0 predicate to
8369 nonimmediate_operand and fix up the destination when needed.
8371 (atomic_loaddi_fpu): Use UNSPEC_LDA.
8372 (atomic_store<mode>): Change operand 1 predicate to
8373 nonimmendate_operand and move the source to register when needed.
8375 (atomic_store<mode>_1): Use UNSPEC_STA.
8376 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
8377 Fix moves from memory operand. Use UNSPEC_STA.
8379 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8381 * expmed.c (strict_volatile_bitfield_p): Check that the access will
8382 not cross a MODESIZE boundary.
8383 (store_bit_field, extract_bit_field): Added assertions in the
8384 strict volatile bitfields code path.
8386 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
8389 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
8390 Increase args array size by one to avoid buffer overflow.
8392 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
8394 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8396 * ipa-inline.c (edge_badness): Add wrapper penalty.
8397 (sum_callers): Move up.
8398 (inline_small_functions): Set single_caller.
8399 * ipa-inline.h (inline_summary): Add single_caller.
8400 * ipa-split.c (split_function): Set split_part.
8401 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
8402 * cgraph.h (cgraph_node): Add split_part.
8404 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
8407 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
8408 Do not split operands 0 and operands 2 to halfmode.
8409 (atomic_compare_and_swap<mode>): Update for
8410 atomic_compare_and_swap<dwi>_doubleword changes.
8412 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
8414 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
8415 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
8418 2015-03-31 Martin Liska <mliska@suse.cz>
8421 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
8422 has already filled up function summary.
8423 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
8425 2015-03-31 Richard Biener <rguenther@suse.de>
8427 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
8430 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
8432 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
8434 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
8435 (s390_asm_output_function_label): Adapt to new signature of
8436 s390_function_num_hotpatch_hw
8437 Optimise the code generating assembler output.
8438 Add comments to assembler file.
8440 2015-03-31 Richard Biener <rguenther@suse.de>
8443 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
8444 of the noreturn call so it is last and cleanup_control_flow_bb
8445 can do the CFG part.
8447 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
8450 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
8451 same_comdat_group for external symbols.
8452 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
8453 infinite same_comdat_group traversal loop.
8455 2015-03-31 Jakub Jelinek <jakub@redhat.com>
8458 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
8459 automatically to $headers.
8461 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8464 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
8465 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
8467 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
8469 * ipa-prop.c (param_type_may_change_p): Likewise.
8470 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
8471 (remove_unused_scope_block_p): Add in_ctor_dtor_block
8472 argument. Before inlining, preserve
8473 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
8474 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
8476 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
8478 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
8481 * ipa-inline.c (edge_badness): Base denominator on callee's
8484 2015-03-27 Martin Jambor <mjambor@suse.cz>
8487 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
8488 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
8489 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
8490 node_calling_single_call.
8491 * ipa-cp.c (count_callers): New function.
8492 (set_single_call_flag): Likewise.
8493 (initialize_node_lattices): Count callers and set single_flag_call if
8495 (incorporate_penalties): New function.
8496 (good_cloning_opportunity_p): Use it, dump new flags.
8497 (propagate_constants_topo): Set node_within_scc flag if appropriate.
8498 * doc/invoke.texi (ipa-cp-recursion-penalty,
8499 ipa-cp-single-call-pentalty): Document.
8501 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
8504 * symtab.c (symtab_node::get_partitioning_class): Register vars
8506 * varpool.c (symbol_table::output_variables) Do not assemble unefined
8507 decls for non-symbols.
8509 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
8512 * output.h (default_binds_local_p_2): New.
8513 * varasm.c (default_binds_local_p_2): Renamed to ...
8514 (default_binds_local_p_3): This. Don't return true on protected
8515 data symbol if protected data may be external.
8516 (default_binds_local_p): Use default_binds_local_p_3.
8517 (default_binds_local_p_1): Likewise.
8518 (default_binds_local_p_2): New.
8519 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
8520 default_binds_local_p_2 if TARGET_MACHO is undefined.
8522 2015-03-27 Jakub Jelinek <jakub@redhat.com>
8525 * config/i386/i386.c (legitimize_pic_address): If base
8526 is SYMBOL_REF or LABEL_REF using %rip addressing, force
8527 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
8529 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
8532 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
8535 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
8538 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
8539 of optimized out indirect call.
8540 (redirect_to_unreachable): Always build symbol table node for
8541 BUILT_IN_UNREACHABLE
8543 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
8546 * ira-costs.c (record_reg_classes): Process all constraint string
8549 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
8551 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
8555 * config/c6x/constraints.md (S3): New constraint.
8556 * config/c6x/c6x.md (real_jump): Use it.
8558 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
8561 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
8562 do redirection if the call is not optimized out.
8564 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
8567 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
8568 (fchkp-check-incomplete-type): Add LTO.
8569 (fchkp-zero-input-bounds-for-main): Likewise.
8570 (fchkp-first-field-has-own-bounds): Likewise.
8571 (fchkp-narrow-bounds): Likewise.
8572 (fchkp-narrow-to-innermost-array): Likewise.
8573 (fchkp-use-static-bounds): Likewise.
8574 (fchkp-use-static-const-bounds): Likewise.
8575 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
8577 2015-03-27 Marek Polacek <polacek@redhat.com>
8579 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
8581 2015-03-27 Marek Polacek <polacek@redhat.com>
8584 * ubsan.c (ubsan_create_edge): New function.
8585 (instrument_bool_enum_load): Call it.
8586 (instrument_nonnull_arg): Likewise.
8587 (instrument_nonnull_return): Likewise.
8588 (instrument_object_size): Likewise.
8590 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
8592 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
8595 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
8598 * lto-streamer.h (class lto_location_cache): New.
8599 (struct data_in): Add location_cache.
8600 (lto_input_location): Update prototype.
8601 (stream_input_location_now): New.
8602 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
8603 pointer to location.
8604 (stream_input_location): Update.
8605 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
8606 (warn_odr): Apply location cache before warning.
8607 (lto_input_location): Update prototype.
8608 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
8609 Use stream_input_location_now.
8610 * lto-streamer-in.c (lto_location_cache::current_cache): New static
8612 (lto_location_cache::cmp_loc): New function.
8613 (lto_location_cache::apply_location_cache): New function.
8614 (lto_location_cache::accept_location_cache): New function.
8615 (lto_location_cache::revert_location_cache): New function.
8616 (lto_location_cache::input_location): New function.
8617 (lto_input_location): Do location caching.
8618 (stream_input_location_now): New function.
8619 (input_eh_region, input_struct_function_base): Use
8620 stream_input_location_now.
8621 (lto_data_in_create): use new.
8622 (lto_data_in_delete): Use delete.
8623 * tree-streamer-in.c (unpack_ts_block_value_fields,
8624 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
8625 lto_input_ts_exp_tree_pointers): Update for cached location api.
8627 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
8630 * passes.def: Add pass_nothrow.
8631 * ipa-pure-const.c: (pass_data_nothrow): New.
8632 (pass_nothrow): New.
8633 (pass_nothrow::execute): New.
8634 (make_pass_nothrow): New.
8635 * tree-pass.h (make_pass_nothrow): Declare.
8637 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
8639 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
8640 edge to change by speculation resolution or redirection.
8641 (edge_set_predicate): Likewise.
8642 (inline_summary_t::duplicate): Likewise.
8643 (remap_edge_summaries): Likewise.
8645 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
8647 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
8649 (can_inline_edge_p): Relax option matching for always inline functions.
8651 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
8654 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
8655 Check operand 4 and operand 0 for equality.
8656 (avx512f_vextract<shuffletype>32x4_1_maskm):
8657 Check operand 6 and operand 0 for equality.
8658 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
8660 (vec_extract_hi_<mode>_maskm): Ditto.
8662 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
8664 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
8665 dead calls back to live.
8666 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
8668 (cgraph_node::verify_node): ... here; verify only callee edges,
8670 * cif-code.def (CILK_SPAWN): New code.
8672 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
8674 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
8675 (edge_set_predicate): Use it to mark unreachable edges.
8676 (inline_summary_t::duplicate): Remove unnecesary code.
8677 (remap_edge_summaries): Likewise.
8678 (dump_inline_summary): Report contains_cilk_spawn.
8679 (compute_inline_parameters): Compute contains_cilk_spawn.
8680 (inline_read_section, inline_write_summary): Stream
8681 contains_cilk_spawn.
8682 * ipa-inline.c (can_inline_edge_p): Do not touch
8683 DECL_STRUCT_FUNCTION that may not be available;
8684 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
8685 remove check for callee_fun->can_throw_non_call_exceptions and
8686 replace it by optimization attribute check; check for flag_exceptions.
8687 * ipa-inline-transform.c (inline_call): Maintain
8688 DECL_FUNCTION_PERSONALITY
8689 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
8691 2015-03-26 Jakub Jelinek <jakub@redhat.com>
8693 PR tree-optimization/65551
8694 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
8695 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
8697 2015-03-26 Richard Biener <rguenther@suse.de>
8700 * tree-cfg.c (verify_gimple_call): Do not require a call to
8701 have no LHS if it wasn't recognized as control altering yet.
8703 2015-03-26 Jakub Jelinek <jakub@redhat.com>
8705 PR tree-optimization/64715
8706 * passes.def: Add another instance of pass_object_sizes before ccp1.
8707 * tree-object-size.c (pass_object_sizes::execute): In
8708 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
8709 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
8710 __bos result and the computed constant. Remove redundant
8711 checks, obsoleted by gimple_call_builtin_p test.
8713 * var-tracking.c (variable_tracking_main_1): Don't track
8714 variables for targetm.no_register_allocation targets.
8716 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
8718 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
8719 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
8721 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
8724 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
8725 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
8726 0.0 is correctly setup.
8727 (extenddftf2_internal): Likewise.
8729 2015-03-25 Sebastian Pop <s.pop@samsung.com>
8731 PR tree-optimization/65177
8732 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
8734 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
8735 edges not adjacent on the path to the original code.
8737 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
8740 * doc/install.texi (Building a native compiler): Document new
8741 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
8742 configuration assumes that the host supports the linker plugin.
8744 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
8747 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
8748 chain for generated call.
8750 2015-03-25 Richard Biener <rguenther@suse.de>
8752 * passes.c (pass_manager::execute_early_local_passes): Guard
8753 execution of pass_chkp_instrumentation_passes with
8754 flag_check_pointer_bounds.
8755 (pass_chkp_instrumentation_passes::gate): Likewise.
8757 2015-03-25 Martin Liska <mliska@suse.cz>
8759 PR tree-optimization/65538
8760 * symbol-summary.h (function_summary::~function_summary):
8761 Relese memory for allocated summaries.
8762 (function_summary::release): New function.
8764 2015-03-25 Jakub Jelinek <jakub@redhat.com>
8767 * lto-streamer-out.c (DFS::worklist): New struct.
8768 (DFS::worklist_vec): New data member.
8769 (DFS::next_dfs_num): Remove.
8770 (DFS::DFS): Rewritten using worklist instead of recursion,
8771 using most of code from DFS::DFS_write_tree.
8772 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
8773 pass it to DFS_write_tree calls.
8774 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
8775 quick initial checks push it into worklist_vec and return.
8777 2015-03-25 Richard Biener <rguenther@suse.de>
8780 * genmatch.c (expr::gen_transform): Re-write to avoid
8783 2015-03-25 Bin Cheng <bin.cheng@arm.com>
8785 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
8787 2015-03-25 Bin Cheng <bin.cheng@arm.com>
8789 * config/arm/arm.opt (print_tune_info): New option.
8790 * config/arm/arm.c (arm_print_tune_info): New function.
8791 (arm_file_start): Call arm_print_tune_info.
8792 * config/arm/arm-protos.h (struct tune_params): Add comment.
8793 * doc/invoke.texi (@item -mprint-tune-info): New item.
8794 (-mtune): mention it in ARM Option Summary.
8796 2015-03-25 DJ Delorie <dj@redhat.com>
8798 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
8801 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
8802 Martin Liska <mliska@suse.cz>
8804 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
8805 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
8806 (sem_item::add_type): New function.
8807 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
8808 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
8809 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
8810 (sem_function::equals_wpa): Fix typo.
8811 * ipa-icf.h (sem_item::add_type): New function.
8812 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
8815 2015-03-24 Jakub Jelinek <jakub@redhat.com>
8817 PR tree-optimization/65533
8818 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
8819 with swapped operands, call vect_free_slp_tree on
8820 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
8823 2015-03-24 Richard Biener <rguenther@suse.de>
8826 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
8827 for fixup if necessary.
8829 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
8831 * doc/extend.texi (Function Attributes): Add @cindex entries
8832 for all attributes and regularize their format. Delete text
8833 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
8834 information about "eightbit_data", "tiny_data", and "model"
8835 variable attributes to the Variable Attributes section. Fix
8836 some obvious typos and copy-editing issues.
8837 (Variable Attributes, Type Attributes): Likewise add/fix
8838 @cindex entries for all attributes.
8840 2015-03-23 Jakub Jelinek <jakub@redhat.com>
8843 * tree-chkp.c (chkp_build_returned_bound): Ignore
8844 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
8846 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
8849 * config/sh/predicates.md (simple_mem_operand,
8850 displacement_mem_operand): Add test for reg.
8851 (short_displacement_mem_operand): Test for displacement_mem_operand
8852 before invoking sh_disp_addr_displacement.
8853 * config/sh/constraints.md (Sdd, Sra): Simplify.
8854 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
8855 Remove redundant displacement_mem_operand tests.
8857 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
8860 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
8861 the same -mmcu=MCU more than once.
8863 2015-03-23 Jakub Jelinek <jakub@redhat.com>
8866 * ipa-devirt.c: Remove duplicate demangle.h include.
8869 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
8871 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
8872 REG_POINTER on *destptr after adjusting it for prologue size.
8875 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
8876 ultimate_alias_target ()->order ints instead of
8877 ultimate_alias_target () pointers.
8879 2015-03-23 Richard Biener <rguenther@suse.de>
8881 PR tree-optimization/65518
8882 * tree-vect-stmts.c (vectorizable_load): Reject single-element
8883 interleaving cases we generate absymal code for.
8885 2015-03-23 Richard Biener <rguenther@suse.de>
8887 PR tree-optimization/65494
8888 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
8890 (vect_analyze_slp_instance): But do that here, always and once.
8892 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8894 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
8895 adding T or multiplying by T+1 and subracting T.
8897 2015-03-22 Jeff Law <law@redhat.com>
8899 PR rtl-optimization/64317
8900 * Makefile.in (OBJS): Add gcse-common.c
8901 * gcse.c: Include gcse-common.h
8902 (struct modify_pair_s): Move structure definition to gcse-common.h
8903 (compute_transp): Move function to gcse-common.c.
8904 (canon_list_insert): Similarly.
8905 (record_last_mem_set_info): Break out some code and put it into
8906 gcse-common.c. Call into the new common code.
8907 (compute_local_properties): Pass additional arguments to compute_transp.
8908 * postreload-gcse.c: Include gcse-common.h and df.h
8909 (modify_mem_list_set, blocks_with_calls): New variables.
8910 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
8911 (get_bb_avail_insn): Pass in the expression index too.
8912 (alloc_mem): Allocate memory for the new bitmaps and lists.
8913 (free_mem): Free memory for the new bitmaps and lists.
8914 (insert_expr_in_table): Record a bitmap index for each entry we
8916 (record_last_mem_set_info): Call into common code in gcse-common.c.
8917 (get_bb_avail_insn): If no available insn was found in the requested
8918 BB. If BB has a single predecessor, see if the expression is
8919 transparent in BB and available in that single predecessor.
8920 (compute_expr_transp): New wrapper for compute_transp.
8921 (eliminate_partially_redundant_load): Pass expression's bitmap_index
8922 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
8923 (gcse_after_reload_main): If there are elements in the hash table,
8924 then compute transparency for all the elements in the hash table.
8925 * gcse-common.h: New file.
8926 * gcse-common.c: New file.
8928 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
8930 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
8932 (System Headers): Likewise.
8934 (Traditional macros): Likewise.
8935 (Invocation): Likewise.
8936 (Option Index): Likewise.
8937 * doc/cppopts.texi (-M): Likewise.
8938 (-finput-charset): Likewise.
8940 * doc.invoke.texi (AVR Options): Likewise.
8941 (V850 Options): Likewise.
8943 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
8946 * ipa-devirt.c: Include demangle.h
8947 (odr_type_d): Add field rtti_broken.
8948 (odr_subtypes_equivalent_p): Do not require name to match.
8949 (compare_virtual_tables): Fix typo; if type already has ODR violation,
8950 bypass the tests; be ready for function referneces in vtables that are
8951 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
8952 (warn_odr): Give up for nameless types.
8953 (warn_types_mismatch): Report mismatch in mangled names;
8954 report mismatch in anonymous namespaces; look into component types to
8955 give useful error; report when mismatch is dragged in from other ODR
8957 (odr_types_equivalent_p): Match types for being polymorphic; avoid
8958 duplicated diagnostics.
8959 (add_type_duplicate): Reorder checks so more informative ones come
8960 first; fix typo; do not output "the extra base is defined here" when
8962 (BINFO_N_BASE_BINFOS): Relax sanity check.
8964 2015-03-22 Martin Liska <mliska@suse.cz>
8965 Jakub Jelinek <jakub@redhat.com>
8967 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
8968 masks that can potentially include a builtin.
8969 (ix86_add_new_builtins): Introduce fast filter for isa values
8970 that cannot trigger builtin inclusion.
8972 2015-03-22 Martin Liska <mliska@suse.cz>
8974 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
8975 (sem_item::update_hash_by_local_refs): Likewise.
8976 (sem_variable::get_hash): Empty line is fixed.
8977 (sem_item_optimizer::execute): Include adding of hash references.
8978 (sem_item_optimizer::update_hash_by_addr_refs): New function.
8979 (sem_item_optimizer::build_hash_based_classes): Use local hash.
8980 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
8981 (sem_item::update_hash_by_local_refs): Likewise.
8983 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
8986 * ipa-comdats.c (enqueue_references): Walk through thunks.
8987 (ipa_comdats): Likewise.
8988 (set_comdat_group_1): New function.
8990 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
8993 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
8996 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
8997 Gerald Pfeifer <gerald@pfeifer.com>
8999 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
9001 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9002 Sandra Loosemore <sandra@codesourcery.com>
9004 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
9005 function parameter declaration.
9006 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
9007 Update arguments to nios2_adjust_call_address().
9008 (sibcall_internal): Rename from *sibcall.
9009 (sibcall_value_internal): Rename from *sibcall_value.
9010 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
9011 (nios2_large_got_address): Add target temp reg parameter.
9012 (nios2_got_address): Adjust call to nios2_large_got_address, add
9013 force_reg around it.
9014 (nios2_load_pic_address): Add target temp reg parameter, replace call
9015 to nios2_got_address with corresponding code.
9016 (nios2_legitimize_constant_address): Update call to
9017 nios2_load_pic_address.
9018 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
9019 to use temp reg for PIC loading purposes.
9020 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
9021 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9022 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
9024 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
9026 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
9027 usage of "the @option{...}".
9028 (-Wopenmp-simd): Likewise.
9029 (-fsanitize-recover): Likewise.
9030 (-fsanitize-undefined-trap-on-error): Likewise.
9032 (tracer-dynamic-coverage-feedback): Likewise.
9033 (reorder-block-duplicate-feedback): Likewise.
9034 (loop-unroll-jam-size): Likewise.
9037 (-mabs=legacy): Likewise.
9038 (-mupper-regs-df): Likewise.
9039 (-mupper-regs-sf): Likewise.
9040 (-mpointers-to-nested-functions): Likewise.
9042 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
9044 * doc/extend.texi (Cilk Plus Builtins): Add markup.
9046 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
9048 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
9049 additional index entries and cross-references.
9050 (-fchkp-check-incomplete-type): Likewise.
9051 (-fchkp-first-field-has-own-bounds): Likewise.
9052 (-fchkp-narrow-to-innermost-array): Likewise.
9053 (-fchkp-use-fast-string-functions): Likewise.
9054 (-fchkp-use-nochk-string-functions): Likewise.
9055 (-fchkp-use-static-const-bounds): Likewise.
9056 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
9057 (-fchkp-instrument-marked-only): Likewise.
9058 (-fchkp-use-wrappers): Likewise.
9059 (-static-libmpx): Likewise.
9060 (-static-libmpxwrappers): Likewise.
9061 * doc/extend.texi (bnd_legacy): Likewise.
9062 (bnd_instrument): Likewise.
9063 (bnd_variable_size): Likewise.
9064 (Pointer Bounds Checker builtins): Likewise.
9066 2015-03-21 Tom de Vries <tom@codesourcery.com>
9068 PR tree-optimization/65458
9069 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
9070 * cgraph.h (cgraph_node): Add parallelized_function field.
9071 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
9072 (input_overwrite_node): Read parallelized_function field.
9073 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
9074 parallelized_function on cgraph_node for child_fn.
9075 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
9076 Remove include of gt-tree-parloops.h.
9077 (parallelized_functions): Remove static variable.
9078 (parallelized_function_p): Rewrite using parallelized_function field of
9080 (create_loop_fn): Remove adding to parallelized_functions.
9081 * Makefile.in (GTFILES): Remove tree-parloops.c
9083 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
9085 PR rtl-optimization/64366
9086 * lra.c (lra_update_insn_regno_info): Consider regs in
9087 CALL_INSN_FUNCTION_USAGE memory.
9089 2015-03-20 Richard Biener <rguenther@suse.de>
9092 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
9093 for type comparison and gcc_checking_assert.
9094 (chrec_fold_plus_poly_poly): Likewise.
9095 (chrec_fold_multiply_poly_poly): Likewise.
9096 (chrec_convert_1): Likewise.
9097 * gimplify.c (gimplify_expr): Remove premature folding of
9098 &X + CST to &MEM[&X, CST].
9100 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
9102 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
9104 (ipa_inline): Recompute inline_failed codes.
9105 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
9106 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
9109 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
9111 PR rtl-optimization/60851
9112 * recog.c (constrain_operands): Accept a pseudo register before reload
9113 for LRA enabled targets.
9115 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
9118 * config/rs6000/predicates.md (easy_fp_constant): Remove special
9119 -ffast-math handling that kept non-0 constants live in the RTL
9120 until reload. Remove logic testing the number of instructions it
9121 took to create a constant in a GPR that was never used, due to a
9122 test for soft-float earlier.
9123 (memory_fp_constant): Delete, no longer used.
9125 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
9126 alternatives for loading non-0 constants into GPRs for hard
9127 floating point that is no longer needed due to changes in
9128 easy_fp_constant. Add support for loading 0.0 into GPRs.
9129 (mov<mode>_hardfloat32): Likewise.
9130 (mov<mode>_hardfloat64): Likewise.
9131 (mov<mode>_64bit_dm): Likewise.
9132 (movtd_64bit_nodm): Likewise.
9133 (pre-reload move FP constant define_split): Delete define_split,
9134 since it is no longer used.
9135 (extenddftf2_internal): Remove GHF constraints that are not valid
9138 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
9140 PR rtl-optimization/63491
9141 * lra-constraints.c (check_and_process_move): Use src instead of
9142 sreg. Remove some dead code.
9144 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
9147 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
9148 (sem_variable::merge): Likewise.
9150 2015-03-19 Martin Liska <mliska@suse.cz>
9153 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
9154 all fields of cgraph_thunk_info.
9156 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
9158 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
9159 clone instrumented thunks.
9161 2015-03-19 Richard Biener <rguenther@suse.de>
9164 2015-03-10 Richard Biener <rguenther@suse.de>
9167 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
9168 * tree-ssa-coalesce.c: Include timevar.h.
9169 (attempt_coalesce): Handle graph being NULL.
9170 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
9171 Split out abnormal coalescing to ...
9172 (perform_abnormal_coalescing): ... this function.
9173 (coalesce_ssa_name): Perform abnormal coalescing without computing
9175 (verify_ssa_coalescing_worker): New function.
9176 (verify_ssa_coalescing): Likewise.
9178 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
9179 Jakub Jelinek <jakub@redhat.com>
9182 * tsan.c (instrument_gimple): Clear tail call flag on
9185 2015-03-19 Jakub Jelinek <jakub@redhat.com>
9188 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
9189 call in the return bb.
9190 (find_split_points): Add RETURN_BB argument, don't call
9192 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
9193 if true append TSAN_FUNC_EXIT internal call after the call to
9194 the split off function.
9195 (execute_split_functions): Call find_return_bb here.
9196 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
9197 Adjust find_split_points and split_function calls.
9199 2015-03-18 DJ Delorie <dj@redhat.com>
9201 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
9202 (iorqi3_virt): Likewise.
9204 2015-03-18 Tom de Vries <tom@codesourcery.com>
9206 * tree-parloops.c (parallelize_loops): Make static.
9207 * tree-parloops.h (parallelize_loops): Remove extern declaration.
9209 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
9213 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
9215 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
9216 condition would be removed due to undefined behaviour.
9218 2015-03-18 Martin Liska <mliska@suse.cz>
9221 * cgraph.c (cgraph_node::get_create): Remove unnecessary
9222 xstrdup_for_dump wrapper.
9223 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
9225 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
9226 with xstrdup_for_dump.
9227 (sem_variable::equals): Likewise.
9228 (sem_item_optimizer::read_section): Use symtab_node::name instead of
9230 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
9231 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
9232 symtab_node::asm_name with xstrdup_for_dump.
9233 (congruence_class::dump): Use symtab_node::name instead of
9235 * ipa-icf.h (symtab_node::name): Remove.
9236 (symtab_node::asm_name): Likewise.
9238 2015-03-18 Jakub Jelinek <jakub@redhat.com>
9240 PR tree-optimization/65450
9241 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
9243 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
9244 it instead of duplicate_ssa_name_ptr_info.
9247 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
9249 2015-03-18 Richard Biener <rguenther@suse.de>
9251 * tree-data-ref.h (struct access_matrix): Remove.
9252 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
9253 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
9254 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
9255 (am_vector_index_for_loop): Likewise.
9256 (struct data_reference): Remove access_matrix member.
9257 (DR_ACCESS_MATRIX): Remove.
9258 (lambda_vector_new): Add comment.
9259 (lambda_matrix_new): Use XOBNEWVEC.
9261 2015-03-18 Richard Biener <rguenther@suse.de>
9263 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
9264 (pass_ch::execute): Cleanup the CFG only if we did sth.
9265 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
9267 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9269 * expmed.c (synth_mult): Use std::swap instead of manually
9270 swapping algorithms.
9272 2015-03-18 Jakub Jelinek <jakub@redhat.com>
9275 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
9277 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
9280 * config/avr/avr.opt (-nodevicelib): New option.
9281 * doc/invoke.texi (AVR Options): Document it.
9282 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
9283 libgcc.a, libc.a, libm.a.
9284 * config/avr/specs.h: Same.
9285 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
9286 which don't (directly) depend on the device. Print more help.
9287 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
9288 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
9289 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
9291 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
9292 for specs file name.
9293 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
9294 * config/avr/avr-mcus.def: Adjust initializers and comments.
9296 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
9298 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
9299 DECL_ONE_ONLY to check if decl is one only.
9300 * ipa-split.c (consider_split): Limit splitt of one only functions.
9302 2015-03-16 Jakub Jelinek <jakub@redhat.com>
9304 PR tree-optimization/65427
9305 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
9307 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
9309 2015-03-16 Marek Polacek <polacek@redhat.com>
9311 * cgraph.h (add_new_static_var): Remove declaration.
9312 * varpool.c (add_new_static_var): Remove function.
9314 2015-03-16 Jakub Jelinek <jakub@redhat.com>
9316 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
9317 instead of vec<tree> * with vec_alloc and release for args.
9321 * omp-low.c (delete_omp_context): Only splay_tree_delete
9322 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
9323 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
9325 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
9328 * cfgexpand.c (align_base): New function.
9329 (alloc_stack_frame_space): Call it.
9330 (expand_stack_vars): Align prev_frame to be sure
9331 data->asan_vec elements aligned properly.
9333 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
9336 * expr.c (store_field): Do not do a direct block copy if the source is
9337 a PARALLEL with BLKmode.
9339 2015-03-16 Tom de Vries <tom@codesourcery.com>
9343 2015-03-12 Tom de Vries <tom@codesourcery.com>
9345 PR rtl-optimization/64895
9346 * lra-lives.c (check_pseudos_live_through_calls): Use
9347 actual_call_used_reg_set instead of call_used_reg_set, if available.
9349 2015-03-16 Alan Modra <amodra@gmail.com>
9352 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
9353 Modify Z->r bswapdi splitter to use dest in place of scratch.
9354 In r->Z and Z->r bswapdi splitter rename word_high, word_low
9355 to word1, word2 and rearrange logic to suit.
9356 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
9357 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
9358 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
9359 Add one '?' on r->r. Modify Z->r splitter to avoid need for
9362 2015-03-14 Jakub Jelinek <jakub@redhat.com>
9364 PR tree-optimization/65369
9365 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
9366 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
9367 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
9369 PR tree-optimization/65418
9370 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
9371 are casts in the first PLUS_EXPR operand, ensure tbias and
9372 *totallowp are in the inner type.
9374 PR rtl-optimization/65401
9375 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
9376 argument. If true, adjust_address_nv of x with big-endian
9377 correction for the mode widening to GET_MODE (y).
9378 (make_field_assignment): Don't do MEM mode widening here.
9379 Use MEM_P instead of GET_CODE == MEM.
9381 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
9383 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
9386 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9389 * config/arm/arm.c (arm_gen_constant, AND case): Use
9390 ARM_SIGN_EXTEND when constructing AND mask.
9392 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9394 * graph.c (print_graph_cfg): Make function names visible and append
9395 parenthesis to it. Also make groups of basic blocks belonging to the
9396 same function visible.
9398 2015-03-12 Richard Biener <rguenther@suse.de>
9401 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
9402 to avoid quadratic behavior with inline expansion splitting blocks.
9403 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
9404 with the successor if the predecessor will be merged with it.
9405 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
9406 entry block with its successor.
9408 2015-03-13 Richard Biener <rguenther@suse.de>
9411 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
9412 (cleanup_tree_cfg_1): Do not call it.
9413 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
9414 (fixup_noreturn_call): Mark the stmt as control altering.
9415 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
9417 (pass_data_fixup_cfg): Produce a dump file.
9418 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
9419 (need_noreturn_fixup): New global.
9420 (pass_dominator::execute): Fixup queued noreturn calls.
9421 (optimize_stmt): Queue calls that became noreturn for fixup.
9422 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
9423 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
9424 (el_to_fixup): New global.
9425 (eliminate_dom_walker::before_dom_childre): Queue calls that
9426 became noreturn for fixup.
9427 (eliminate): Fixup queued noreturn calls.
9428 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
9429 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
9430 (substitute_and_fold_dom_walker::before_dom_children): Queue
9431 alls that became noreturn for fixup.
9432 (substitute_and_fold): Fixup queued noreturn calls.
9434 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
9436 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
9437 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
9438 are building; for methods check ODR type of class they belong to if
9439 they may lead to a polymorphic call.
9440 (sem_function::compare_polymorphic_p): Be bit smarter about testing
9441 when function may lead to a polymorphic call.
9442 (sem_function::compare_type_list): Remove.
9443 (sem_variable::equals): Update use of compatible_types_p.
9444 (sem_variable::parse_tree_refs): Remove.
9445 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
9447 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
9449 (func_checker::compatible_polymorphic_types_p): Break out from ...
9450 (unc_checker::compatible_types_p): ... here.
9451 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
9453 (unc_checker::compatible_types_p): Update.
9454 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
9457 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9459 PR rtl-optimization/65235
9460 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
9461 When first element of vec_concat is const_int, calculate its size
9462 using second element.
9464 2015-03-12 Richard Biener <rguenther@suse.de>
9467 * fold-const.c (operand_equal_p): Fix ordering of resetting
9468 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
9470 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
9472 * config/s390/s390.c (s390_reorg): Move code to output nops after label
9474 (s390_asm_output_function_label): Likewise.
9475 * config/s390/s390.c (s390_asm_output_function_label):
9476 Fix function label alignment with -mhtopatch.
9477 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
9478 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
9479 ("nop_2_byte"): New define_insn.
9480 ("nop_4_byte"): Likewise.
9481 ("nop_6_byte"): Likewise.
9482 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
9483 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
9485 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
9488 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
9491 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
9494 * toplev.c (process_options): Restrict Pointer Bounds Checker
9495 usage with Address Sanitizer.
9497 2015-03-12 Richard Biener <rguenther@suse.de>
9499 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
9501 * omp-low.c (expand_omp_taskreg): Split block before removing
9503 (expand_omp_target): Likewise.
9504 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
9505 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
9506 stmt to split_block.
9508 2015-03-12 Tom de Vries <tom@codesourcery.com>
9510 PR rtl-optimization/64895
9511 * lra-lives.c (check_pseudos_live_through_calls): Use
9512 actual_call_used_reg_set instead of call_used_reg_set, if available.
9514 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
9516 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
9517 (cgraph_node::remove): Likewise.
9518 (cgraph_node::get_untransformed_body): Likewise.
9519 * varpool.c (varpool_node::remove): Likewise.
9520 (varpool_node::get_constructor): Add sanity check.
9522 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
9524 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
9526 (-fabi-compat-version): Likewise.
9527 (-ffriend-injection): Likewise.
9528 (-Wdeclaration-after-statement): Likewise.
9529 (-fomit-frame-pointer): Likewise.
9530 (-ftree-coalesce-inlined-vars): Likewise.
9531 (-fvisibility=): Likewise.
9532 * doc/extend.texi (Typeof): Likewise.
9533 (Zero Length): Likewise.
9534 (Escaped Newlines): Likewise.
9535 (Compound Literals): Likewise.
9536 (Function Attributes): Likewise.
9537 (Label Attributes): Likewise.
9538 (Type Attributes): Likewise.
9539 (Function Names): Likewise.
9540 (Other Builtins): Likewise.
9541 (Function Specific Option Pragmas): Likewise.
9542 (C++ Interface): Likewise.
9544 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
9546 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
9548 2015-03-11 Marek Polacek <polacek@redhat.com>
9550 PR tree-optimization/65388
9551 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
9553 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
9556 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
9557 * configure: Regenerate.
9558 * config.in: Regenerate.
9559 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
9560 [-mn-flash]: Document it.
9561 [__AVR_ARCH__]: Document avrtiny.
9563 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
9564 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
9565 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
9567 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9569 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
9571 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9574 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
9575 allow reloads of PLUS in floating point/VSX registers.
9577 2015-03-11 Junmo Park <junmoz.park@samsung.com>
9579 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
9581 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
9583 2015-03-11 Richard Biener <rguenther@suse.de>
9585 PR tree-optimization/65310
9586 * tree-sra.c (build_ref_for_offset): Also preserve larger
9589 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
9591 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
9593 2015-03-10 Jakub Jelinek <jakub@redhat.com>
9596 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
9598 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
9600 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
9602 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
9603 (sem_function::equals_wpa): ... here.
9605 2015-03-10 Marek Polacek <polacek@redhat.com>
9606 Jakub Jelinek <jakub@redhat.com>
9609 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
9610 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
9613 2015-03-10 Jakub Jelinek <jakub@redhat.com>
9616 * config/rs6000/t-linux: For powerpc64* target set
9617 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
9619 2015-03-10 Richard Biener <rguenther@suse.de>
9622 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
9623 for redirect_all_calls.
9625 2015-03-10 Marek Polacek <polacek@redhat.com>
9627 * gdbinit.in (pcfun): Define and document.
9629 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
9631 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
9632 of libgomp-plugin.h.
9633 (find_target_compiler): Support a case when the path to gcc is
9634 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
9635 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
9636 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
9638 (main): Use GCC_INSTALL_NAME as target_driver_name.
9639 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
9641 (mkoffload.o): Remove obsolete include path and defines.
9642 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
9644 2015-03-10 Richard Biener <rguenther@suse.de>
9647 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
9648 * tree-ssa-coalesce.c: Include timevar.h.
9649 (attempt_coalesce): Handle graph being NULL.
9650 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
9651 Split out abnormal coalescing to ...
9652 (perform_abnormal_coalescing): ... this function.
9653 (coalesce_ssa_name): Perform abnormal coalescing without computing
9655 (verify_ssa_coalescing_worker): New function.
9656 (verify_ssa_coalescing): Likewise.
9658 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
9661 * config.gcc (extra_options) [avr]: Remove.
9662 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
9663 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
9664 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
9666 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
9667 (-mmcu=): Add Var and MissingArgError properties.
9669 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
9670 * config/avr/t-multilib: Regenerate.
9671 * config/avr/specs.h: New file.
9672 * config/avr/driver-avr.c: New file.
9673 * config/avr/genopt.sh: Remove file.
9674 * config/avr/avr-tables.opt: Remove file.
9675 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
9676 * config/avr/avr-c.c: Same.
9678 (avr_current_device): Remove proto.
9679 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
9680 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
9681 (EXTRA_SPEC_FUNCTIONS): Define.
9682 (avr_devicespecs_file): New specs function proto.
9683 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
9684 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
9685 (avr_current_device): Remove definition and usage.
9686 (avr_set_core_architecture): New static function.
9687 (avr_option_override): Use it.
9688 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
9689 (mcu_name): New static array.
9690 (comparator, avr_archs_str, avr_mcus_str): New static functions.
9691 (avr_inform_devices, avr_inform_core_architectures): New functions.
9692 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
9693 (avrlibc.h) [WITH_AVRLIBC]: Include.
9694 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
9695 (print_mcu): Rewrite from scratch.
9696 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
9697 Forward to avr-specific specs defined in device-specs file.
9698 * config/avr/t-avr (driver-avr.o): New rule.
9699 (avr-devices.o): Depend on avr-arch.h.
9700 (avr-mcus): No more depend on avr-tables.opt.
9701 (avr-tables.opt): Remove rule.
9702 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
9704 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
9706 * c-family/c.opt (fchkp-use-wrappers): New.
9707 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
9708 (chkp_wrap_function): New.
9709 (chkp_build_instrumented_fndecl): Support wrapped
9711 * doc/invoke.texi (-fcheck-pointer-bounds): New.
9712 (-fchkp-check-incomplete-type): New.
9713 (-fchkp-first-field-has-own-bounds): New.
9714 (-fchkp-narrow-bounds): New.
9715 (-fchkp-narrow-to-innermost-array): New.
9716 (-fchkp-optimize): New.
9717 (-fchkp-use-fast-string-functions): New.
9718 (-fchkp-use-nochk-string-functions): New.
9719 (-fchkp-use-static-bounds): New.
9720 (-fchkp-use-static-const-bounds): New.
9721 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
9722 (-fchkp-check-read): New.
9723 (-fchkp-check-write): New.
9724 (-fchkp-store-bounds): New.
9725 (-fchkp-instrument-calls): New.
9726 (-fchkp-instrument-marked-only): New.
9727 (-fchkp-use-wrappers): New.
9728 (-static-libmpx): New.
9729 (-static-libmpxwrappers): New.
9731 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
9733 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
9734 (CHKP_SPEC): Add wrappers library.
9735 * c-family/c.opt (static-libmpxwrappers): New.
9737 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
9739 * config/i386/linux-common.h (LIBMPX_LIBS): New.
9742 * gcc.c (CHKP_SPEC): New.
9743 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
9744 * c-family/c.opt (static-libmpx): New.
9746 2015-03-10 Richard Biener <rguenther@suse.de>
9749 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
9751 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
9752 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
9753 (cgraph_add_edge_to_call_site_hash): Likewise.
9754 (cgraph_node::get_edge): Likewise.
9755 (cgraph_edge::set_call_stmt): Likewise.
9756 (cgraph_edge::remove_caller): Likewise.
9758 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
9760 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
9761 (callee_saved_gpr_regs_size): ... this.
9762 (callee_saved_regs_first_regno): Rename to ...
9763 (callee_saved_first_gpr_regno): ... this.
9764 (callee_saved_regs_last_regno) Rename to ...
9765 (callee_saved_last_gpr_regno): ... this.
9766 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
9768 (nds32_initial_elimination_offset): Likewise.
9769 (nds32_expand_prologue): Likewise.
9770 (nds32_expand_epilogue): Likewise.
9771 (nds32_expand_prologue_v3push): Likewise.
9772 (nds32_expand_epilogue_v3pop): Likewise.
9773 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
9774 Adjust renamed variables.
9775 (nds32_output_stack_pop): Likewise.
9777 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
9779 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
9782 2015-03-10 Jakub Jelinek <jakub@redhat.com>
9784 PR rtl-optimization/65321
9785 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
9787 * var-tracking.c (use_narrower_mode): Likewise.
9789 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
9791 PR tree-optimization/65355
9792 * varasm.c (notice_global_symbol): Do not produce RTL.
9793 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
9795 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
9796 check for section anchors.
9798 2015-03-10 Alan Modra <amodra@gmail.com>
9801 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
9802 to be single-arch by default. Set cpu_is_64bit for powerpc64
9803 given --with-cpu=native.
9804 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
9805 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
9807 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
9808 rs6000_isa_flags rather than TARGET_64BIT.
9810 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
9811 Kaz Kojima <kkojima@gcc.gnu.org>
9813 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
9815 2015-03-09 Jakub Jelinek <jakub@redhat.com>
9818 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
9819 on a TREE_BINFO, instead use BINFO_TYPE.
9821 2015-03-09 Richard Biener <rguenther@suse.de>
9824 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
9825 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
9826 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
9827 of that. When comparing dereferences compare alignment.
9828 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
9830 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
9832 * ipa-inline-analysis.c (check_callers): Check
9833 node->can_remove_if_no_direct_calls_and_refs_p.
9834 (growth_likely_positive): Reorganize to call
9835 can_remove_if_no_direct_calls_p later.
9836 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
9837 will_be_removed_from_program_if_no_direct_calls_p): Add
9838 will_inline parameter.
9839 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
9840 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
9841 Handle inliner case correctly.
9843 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
9845 PR tree-optimization/63743
9846 * cfgexpand.c (reorder_operands): Also reorder if only second operand
9847 had its definition forwarded by TER.
9849 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
9852 * ipa-utils.h (types_odr_comparable): Add strict argument.
9853 * ipa-devirt.c: Fix whitespace;
9854 (odr_hasher): Remove.
9855 (odr_name_hasher, odr_vtable_hasher): New hashers.
9856 (can_be_name_hashed_p): New predicate.
9857 (hash_type_name): remove.
9858 (hash_odr_name): New.
9859 (odr_name_hasher::hash): new.
9860 (can_be_vtable_hashed_p): New.
9861 (hash_odr_vtable): New.
9862 (odr_vtable_hasher::hash): New.
9863 (types_same_for_odr): Add strict parameter.
9864 (types_odr_comparable): Likewise.
9865 (odr_name_hasher::equal): New.
9866 (odr_vtable_hasher::equal): New.
9867 (odr_name_hasher::remove): New.
9868 (odr_hash_type): Change to hash_table<odr_name_hasher>.
9869 (odr_vtable_hash_type): New.
9870 (odr_vtable_hash): New.
9871 (odr_subtypes_equivalent_p): Do strict comparsion.
9872 (add_type_duplicate): Merge type names; cleanup; avoid type
9874 (register_odr_type): Initialize vtable hash.
9875 (build_type_inheritance_graph): Likewise
9876 (get_odr_type): Reorg to use two hashes.
9877 (dump_possible_polymorphic_call_targets): Move sanity check after debug
9879 (ipa_devirt): Dump type_inheritance_graph.
9880 (types_same_for_odr): Add strict mode.
9882 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
9885 * cgraph.h (symtab_node): Add definition_alignment,
9886 can_increase_alignment_p and increase_alignment.
9887 * symtab.c (symtab_node::can_increase_alignment_p,
9888 increase_alignment_1, symtab_node::increase_alignment,
9889 symtab_node::definition_alignment): New.
9890 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
9891 can_increase_alignment_p.
9892 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
9893 * tree-vect-stmts.c (ensure_base_align): Likewise.
9894 * varasm.c (function_section_1): Use definition_alignment.
9895 (assemble_start_function): Likewise.
9896 (emit_local): likewise.
9897 (build_constant_desc): Likewsie.
9898 (output_constant_def_contents): Likewise.
9899 (place_block_symbol): Likewise.
9900 (output_object_block): Likewise.
9902 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
9905 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
9906 when outputting debug.
9908 2015-03-07 Marek Polacek <polacek@redhat.com>
9909 Martin Uecker <uecker@eecs.berkeley.edu>
9912 * doc/invoke.texi: Update description of -fsanitize=bounds.
9914 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
9916 * tree-ssa-phiopt.c (neg_replacement): Remove.
9917 (tree_ssa_phiopt_worker): Remove negate optimization.
9919 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
9922 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
9924 2015-03-06 Richard Biener <rguenther@suse.de>
9927 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
9928 and liveout_obstack members.
9929 (calculate_live_on_exit): Remove.
9930 (calculate_live_ranges): Change declaration.
9931 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
9932 (new_tree_live_info): Adjust.
9933 (calculate_live_ranges): Delete livein when not wanted.
9934 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
9935 Deal with partly deleted live info.
9936 (loe_visit_block): Remove temporary bitmap by using
9937 bitmap_ior_and_compl_into.
9938 (live_worklist): Adjust accordingly.
9939 (calculate_live_on_exit): Make static.
9940 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
9941 we do not need livein.
9943 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
9945 * real.c (real_from_string): Fix typo in assertion.
9947 2015-03-06 Alex Velenko <alex.velenko@arm.com>
9949 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
9952 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
9954 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
9956 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
9959 * lra-assigns.c (find_hard_regno_for): Rename to
9960 find_hard_regno_for_1. Add a new parameter.
9961 (find_hard_regno_for): New function using find_hard_regno_for_1.
9963 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
9965 PR rtl-optimization/65067
9966 * expmed.c (store_bit_field, extract_bit_field): Reworked the
9967 strict volatile bitfield handling.
9969 2015-03-05 Martin Liska <mliska@suse.cz>
9972 * ipa-icf.c (sem_variable::equals): Compare variables types.
9974 2015-03-05 Richard Henderson <rth@redhat.com>
9977 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
9978 correctly check weak symbol binding.
9980 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
9983 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
9986 2015-03-05 Martin Liska <mliska@suse.cz>
9988 * ipa-inline.c (inline_small_functions): Set default value to
9989 prevent warning during bootstrap.
9990 * tree.h: Add pragma guard that ignores false positives during
9993 2015-03-05 Richard Biener <rguenther@suse.de>
9995 PR tree-optimization/65310
9996 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9997 Properly preserve alignment of the base of the access.
9999 2015-03-05 Richard Biener <rguenther@suse.de>
10002 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
10003 Compare dependence info.
10005 2015-03-05 Richard Biener <rguenther@suse.de>
10007 PR middle-end/65233
10008 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
10010 (walk_ssa_copies): Revert last chage. Instead do not walk
10011 SSA names registered for SSA update.
10013 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
10016 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
10017 vtable references for their containing type.
10018 (sem_function::equals_wpa): Compare TYPE_RESTRICT
10019 and type attributes.
10021 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
10023 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
10024 before negating it.
10025 * stor-layout.c (finalize_record_size): Revert latest change.
10027 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
10029 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
10031 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
10033 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
10034 for correct comdat handling.
10035 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
10037 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
10038 (used_from_object_file_p_worker): Remove.
10039 (cgraph_node::only_called_directly_or_alised): Add
10040 used_from_object_file_p.
10041 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
10042 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
10043 can_remove_if_no_direct_calls_and_refs_p.
10045 2015-03-04 Nick Clifton <nickc@redhat.com>
10047 * config/rl78/rl78.h (enum reg_class): Remove real registers from
10048 General register class.
10049 * config/rl78/rl78-real.md: Replace general register constraints
10050 with real+virtual register constraints.
10052 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10054 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
10055 from checking for -mhtm option.
10057 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
10059 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
10060 (struct ipa_sra_check_caller_data): Add has_thunk field.
10061 (ipa_sra_check_caller): Check for thunk.
10062 (ipa_sra_preliminary_function_checks): Give up on function with
10064 (ipa_early_sra): Use call_for_symbol_and_aliases.
10066 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
10069 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
10070 called for __stack_chk_guard symbol.
10072 2015-03-03 DJ Delorie <dj@redhat.com>
10074 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
10076 (*addhi3_real): Likewise.
10077 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
10078 pattern to match incrementing memory.
10079 * config/rl78/predicates.md (rl78_1_2_operand): New.
10080 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
10081 it's the same and only mem.
10082 (rl78_alloc_physical_registers_op2): If there's effectively only
10083 one MEM, transcode it into HL.
10084 (rl78_far_p): Reject addresses that aren't legitimate.
10086 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
10088 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
10091 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
10093 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
10095 Implement call0 ABI for xtensa
10096 * config/xtensa/constraints.md ("a" constraint): Include stack
10097 pointer in case of call0 ABI.
10098 ("q" constraint): Make empty in case of call0 ABI.
10099 ("D" constraint): Include stack pointer in case of call0 ABI.
10100 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
10101 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
10103 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
10105 (xtensa_regno_to_class): Make it a local variable in the
10106 function xtensa_regno_to_class.
10107 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
10108 macro, function prototype and implementation.
10109 (reg_nonleaf_alloc_order): Make it a local variable in the
10110 function order_regs_for_local_alloc.
10111 (xtensa_conditional_register_usage): New function.
10112 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
10113 (xtensa_valid_move): Allow direct moves to stack pointer
10114 register in call0 ABI.
10115 (xtensa_setup_frame_addresses): Only spill register windows in
10117 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
10118 call0 ABI respectively.
10119 (xtensa_function_arg_1): Only mark a7 register for copying in
10121 (xtensa_call_save_reg): New function.
10122 (compute_frame_size): Add space for callee saved register
10123 storage to the frame size in call0 ABI.
10124 (xtensa_expand_prologue): Generate code to set up stack frame
10125 and save callee-saved registers in call0 ABI.
10126 (xtensa_expand_epilogue): New function.
10127 (xtensa_set_return_address): New function.
10128 (xtensa_return_addr): Calculate return address in call0 ABI.
10129 (xtensa_builtin_saveregs): Only mark a7 register for copying and
10130 emit copying code in windowed ABI.
10131 (order_regs_for_local_alloc): Add preferred register allocation
10132 order for non-leaf function in call0 ABI.
10133 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
10134 (xtensa_asm_trampoline_template): Add trampoline generation for
10136 (xtensa_trampoline_init): Add trampoline initialization for
10138 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
10140 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
10141 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
10142 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
10143 ABI call-used registers.
10144 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
10145 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
10147 (REG_CLASS_CONTENTS): Include all registers into the preferred
10148 reload registers set, adjust the set in the
10149 xtensa_conditional_register_usage.
10150 (xtensa_regno_to_class): Drop variable declaration.
10151 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
10153 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
10155 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
10156 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
10157 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
10158 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
10159 location in call0 ABI.
10160 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
10161 stack adjustment size when handling exception.
10162 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
10163 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
10165 ("return" pattern): Generate ret.n/ret in call0 ABI.
10166 ("epilogue" pattern): Expand epilogue.
10167 ("nonlocal_goto" pattern): Use default in call0 ABI.
10168 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
10169 emit eh_set_a0_* depending on ABI.
10170 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
10171 ("eh_set_a0_call0", "blockage"): New patterns.
10173 2015-03-03 Martin Liska <mliska@suse.cz>
10176 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
10178 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10181 * config/rs6000/rs6000-tables.opt: Regenerate table.
10183 2015-03-03 Renlin Li <renlin.li@arm.com>
10185 * doc/md.texi (@item ^): Change ? into ^.
10187 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
10189 * doc/tm.texi: Regenerated.
10191 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
10193 * builtins.c (expand_builtin_return_addr): Add
10194 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
10195 surrounding #ifdef.
10196 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
10198 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
10200 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
10202 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
10205 2015-03-03 Martin Jambor <mjambor@suse.cz>
10206 Eric Botcazou <ebotcazou@adacore.com>
10208 * tree-sra.c (ipa_sra_check_caller_data): New type.
10209 (has_caller_p): Removed.
10210 (ipa_sra_check_caller): New function.
10211 (ipa_sra_preliminary_function_checks): Use it.
10213 2015-03-03 Martin Liska <mliska@suse.cz>
10215 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
10216 instead of if branch.
10218 2015-03-03 Martin Liska <mliska@suse.cz>
10221 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
10223 2015-03-23 Jeff Law <law@redhat.com>
10225 PR tree-optimization/65241
10226 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
10227 hash table if INSERT is true.
10229 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
10232 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
10234 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
10237 * config/avr/avr.c (context.h, tree-pass.h): Include them.
10238 (avr_pass_data_recompute_notes): New static variable.
10239 (avr_pass_recompute_notes): New class.
10240 (avr_register_passes): New static function.
10241 (avr_option_override): Call it.
10243 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
10245 Fix various problems with specs file generation.
10248 * config.gcc (extra_gcc_objs) [avr]: Remove.
10249 * config/avr/driver-avr.c: Remove file.
10250 * config/avr/t-avr (driver-avr.o): Remove rule.
10251 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
10252 INCLUDES to build. Depend on TM_H.
10253 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
10254 build warnings. Fix non-matching types and non-existing %-codes.
10256 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
10257 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
10258 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
10259 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
10260 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
10261 (LIBGCC_SPEC): Remove definitions.
10263 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
10265 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
10266 to create a register in testing mode.
10268 2015-03-03 Martin Liska <mliska@suse.cz>
10269 Jan Hubicka <hubicka@ucw.cz>
10272 * cgraph.c (cgraph_node::has_thunk_p): New function.
10273 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
10274 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
10275 (sem_function::merge): Assert is changed.
10277 2015-03-03 Martin Liska <mliska@suse.cz>
10278 Martin Jambor <mjambor@suse.cz>
10281 * ipa-icf.c (sem_item_optimizer::execute): Change function
10282 return value to boolean.
10283 (sem_item_optimizer::merge_classes): Likewise.
10284 (ipa_icf_driver): Return TODO_remove_functions in case there's
10285 a merge operation processed.
10286 * ipa-icf.h: Change function return value to boolean.
10288 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10291 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
10292 processor type for 64-bit little endian PowerPC.
10294 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
10295 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
10296 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
10297 printing built-in mask so it does not pass NULL pointers.
10299 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
10302 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
10305 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
10306 !ISA_HAS_FP_CONDMOVE.
10308 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
10310 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
10313 2015-03-02 Ulrich Drepper <drepper@gmail.com>
10315 * doc/invoke.texi (Options for Code Generation Conventions):
10316 Fix URL of DSO paper.
10318 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
10321 * ipa-inline.c (check_callers): Looks for recursion.
10322 (inline_to_all_callers): Give up on uninlinable or recursive edges.
10323 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
10324 summary of inline clones.
10325 (do_estimate_growth_1): Fix recursion check.
10327 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
10330 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
10333 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
10334 Aldy Hernandez <aldyh@redhat.com>
10337 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
10338 when checking TYPE_BINFO.
10340 2015-03-02 Richard Biener <rguenther@suse.de>
10343 * ipa-icf-gimple.c: Include builtins.h.
10344 (func_checker::compare_memory_operand): Compare base alignment.
10346 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
10349 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
10350 are never passed by reference.
10352 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
10355 * tree-chkp.c (chkp_check_lower): Don't check against
10356 zero bounds for already instrumented functions.
10357 (chkp_check_upper): Likewise.
10358 (chkp_fini): Clean pass local data to avoid wrong reusage.
10360 2015-02-28 Martin Liska <mliska@suse.cz>
10361 Jan Hubicka <hubicka@ucw.cz>
10363 * ipa-icf.c (sem_variable::equals): Improve debug output;
10364 get variable constructor.
10365 (sem_variable::parse): Do not filter out too early; give up on
10366 volatile and register vars.
10367 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
10369 * ipa-icf.h (sem_variable::init): Do not set ctor.
10370 (sem_variable::ctor): Remove.
10372 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
10374 PR middle-end/65233
10375 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
10377 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
10379 * ipa-icf.c: Include stor-layout.h
10380 (sem_function::compare_cgraph_references): Rename to ...
10381 (sem_item::compare_cgraph_references): ... this one.
10382 (sem_variable::equals_wpa): New function
10383 (sem_variable::equals): Do not check stuff already verified by
10385 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
10386 * ipa-icf.h (sem_item): Add compare_cgraph_references.
10387 (sem_function): Remove compare_cgraph_references.
10388 (sem_variable): Turns equals_wpa into non-inline.
10390 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
10392 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
10393 (sem_item::add_expr): New function.
10394 (sem_function::hash_stmt): Handle operands of most statements.
10395 (sem_variable::get_hash): Hash the actual constructor.
10396 * ipa-icf.h (sem_item): Add add_expr.
10397 (sem_function): Update prototype of hash_stmt
10399 2015-02-28 Martin Liska <mliska@suse.cz>
10400 Jan Hubicka <hubicka@ucw.cz>
10403 * ipa-icf-gimple.c (func_checker::compare_function_decl):
10405 (func_checker::compare_variable_decl): Skip symtab vars.
10406 (func_checker::compare_cst_or_decl): Update.
10407 * ipa-icf.c (sem_function::parse): Do not consider aliases.
10408 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
10409 use correct symtab predicates.
10410 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
10411 (sem_variable::parse): Update comment.
10412 (sem_item_optimizer::build_graph): Consider ultimate aliases
10415 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
10417 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
10420 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
10422 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
10423 (sem_variable::merge) Likewise.
10425 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
10427 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
10428 target; also match flag_ipa_devirt.
10430 2015-03-01 Martin Liska <mliska@suse.cz>
10431 Jan Hubicka <hubicka@ucw.cz>
10433 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
10434 Validate variable alignment.
10435 * ipa-icf.c (sem_function::equals_private): Be more precise
10436 about non-common function attributes.
10437 (sem_variable::equals): Likewise.
10439 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
10442 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
10443 across COMDAT group boundary.
10445 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
10448 * ipa-icf.c (clear_decl_rtl): New function.
10449 (sem_function::merge): Clear RTL before forming alias.
10450 (sem_variable::merge): Clear RTL before forming alias.
10452 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
10455 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
10457 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
10459 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
10462 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
10464 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
10465 a typo in the description.
10467 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
10470 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
10471 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
10472 * lra-constraints.c: Include "params.h".
10473 (EBB_PROBABILITY_CUTOFF): Use
10474 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
10475 (lra_inheritance): Use '<' instead of '<=' for
10476 EBB_PROBABILITY_CUTOFF.
10477 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
10480 2015-02-27 Martin Liska <mliska@suse.cz>
10482 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
10483 vector length condition.
10485 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
10487 * doc/extend.texi (x86 transactional memory intrinsics):
10488 Reorganize discussion of _xbegin. Clarify that the return
10489 value is a bit mask. Expand example and move to end of section.
10491 2015-02-26 Jakub Jelinek <jakub@redhat.com>
10492 Aldy Hernandez <aldyh@redhat.com>
10494 PR rtl-optimization/65220
10495 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
10497 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
10500 * lra-remat.c (update_scratch_ops): New.
10501 (do_remat): Call it.
10502 * lra.c (lra_register_new_scratch_op): New. Take code from ...
10503 (remove_scratches): ... here.
10504 * lra-int.h (lra_register_new_scratch_op): New prototype.
10506 2015-02-27 Marek Polacek <polacek@redhat.com>
10509 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
10510 -Wformat-signedness anymore.
10512 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10514 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
10516 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
10518 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10520 * config/s390/s390.c (enum s390_builtin):
10521 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
10522 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
10523 (s390_init_builtins): Generate new builtin functions.
10524 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
10525 (s390_sfpc, s390_efpc): New pattern definitions.
10527 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10529 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
10530 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
10531 (s390_builtin_decls): New array.
10532 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
10533 (s390_builtin_decl): New function.
10534 (TARGET_BUILTIN_DECL): Define macro.
10536 2015-02-27 Richard Biener <rguenther@suse.de>
10538 PR middle-end/63175
10539 * builtins.c (get_object_alignment_2): Make sure to re-apply
10540 the ANDed mask after recursing to its operand gets us a new
10541 misalignment bit position.
10543 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
10544 Martin Liska <mliska@suse.cz>
10547 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
10548 Use address_matters_p.
10549 (redirect_all_callers, set_addressable): New functions.
10550 (sem_function::merge): Reorganize and fix merging issues.
10551 (sem_variable::merge): Likewise.
10552 (sem_variable::compare_sections): Remove.
10553 * common.opt (fmerge-all-constants, fmerge-constants): Remove
10555 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
10557 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
10559 (address_matters_1): New function.
10560 (symtab_node::address_matters_p): New function.
10561 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
10562 check for merged flag.
10563 * cgraph.h (address_matters_p): Declare.
10564 (symtab_node::address_taken_from_non_vtable_p): Remove.
10565 (symtab_node::address_can_be_compared_p): New method.
10566 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
10567 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
10569 (comdat_can_be_unshared_p_1) Use address_matters_p.
10570 (update_vtable_references): Fix formating.
10571 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
10572 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
10573 * cgraphclones.c: Preserve merged and icf_merged flags.
10575 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
10577 * doc/extend.texi (Function Attributes): Fix spelling and typos.
10578 (Label Attributes): Likewise.
10579 (Cilk Plus Builtins): Likewise.
10580 (ARC SIMD Built-in Functions): Likewise.
10581 (ARM C Language Extensions (ACLE)): Likewise.
10582 (PowerPC Built-in Functions): Likewise.
10583 (PowerPC Hardware Transactional Memory Built-in Functions):
10586 2015-02-26 Jakub Jelinek <jakub@redhat.com>
10588 PR tree-optimization/65216
10589 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
10590 new stmt and new SSA_NAME for lhs whenever the arguments have
10591 changed and weren't just swapped. Fix comment typo.
10593 PR tree-optimization/65215
10594 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
10595 for PDP endian targets.
10596 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
10597 Fix up formatting issues.
10598 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
10599 size is smaller than the original, adjust MEM_REF offset by the
10600 difference of sizes. Use is_gimple_mem_ref_addr instead of
10601 is_gimple_min_invariant test to avoid adding address temporaries.
10603 2015-02-26 Martin Liska <mliska@suse.cz>
10604 Jan Hubicka <hubicka@ucw.cz>
10607 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
10608 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
10609 (sem_item_optimizer::process_cong_reduction): Include division by
10610 sensitive references.
10611 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
10612 * ipa-ref.c (ipa_ref::address_matters_p): New function.
10613 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
10615 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
10618 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
10620 * config/avr/avr.c: Same.
10621 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
10622 Refuse any constant address not in 0..0xbf.
10623 * config/avr/avr.md (*mov<mode>, *movsf): Remove
10624 tiny_valid_direct_memory_access_range from insn conditions.
10625 (mov<mode>): Don't special-case expansion of avrtiny addresses.
10627 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
10630 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
10631 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
10632 * config/sh/predicates.md (const_logical_operand): New predicate.
10633 * config/sh/sh.md: Add new peephole2 patterns.
10635 2015-02-26 Marek Polacek <polacek@redhat.com>
10638 * ipa-inline.c (early_inliner): Recompute inline parameters.
10640 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10643 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
10644 instructions with TImode operands are included in the analysis.
10646 2015-02-26 Sebastian Pop <s.pop@samsung.com>
10648 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
10649 of an EDGE_FSM_THREAD.
10651 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
10653 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
10655 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
10658 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
10660 2015-02-26 Sebastian Pop <s.pop@samsung.com>
10662 PR tree-optimization/65048
10663 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
10664 (thread_through_all_blocks): Call valid_jump_thread_path.
10665 Remove invalid FSM jump-thread paths.
10667 2015-02-26 Jakub Jelinek <jakub@redhat.com>
10669 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
10670 (ipa_write_optimization_summaries): Likewise.
10671 * tree-streamer.h: Include data-streamer.h.
10672 (streamer_mode_table): Declare extern variable.
10673 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
10674 * lto-streamer-out.c (lto_output_init_mode_table,
10675 lto_write_mode_table): New functions.
10676 (produce_asm_for_decls): Call lto_write_mode_table when streaming
10678 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
10679 (lto_create_simple_input_block): Add mode_table argument to the
10680 lto_input_block constructors.
10681 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
10683 * data-streamer-in.c (string_for_index): Likewise.
10684 * ipa-inline-analysis.c (inline_read_section): Likewise.
10685 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
10686 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
10687 * lto-streamer-in.c (lto_read_body_or_constructor,
10688 lto_input_toplevel_asms): Likewise.
10689 (lto_input_mode_table): New function.
10690 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
10691 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
10692 Use bp_pack_machine_mode.
10693 * real.h (struct real_format): Add name field.
10694 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
10695 (class lto_input_block): Add mode_table member.
10696 (lto_input_block::lto_input_block): Add mode_table_ argument,
10697 initialize mode_table.
10698 (struct lto_file_decl_data): Add mode_table field.
10699 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
10700 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
10701 unpack_ts_decl_common_value_fields,
10702 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
10703 * tree-streamer.c (streamer_mode_table): New variable.
10704 * real.c (ieee_single_format, mips_single_format,
10705 motorola_single_format, spu_single_format, ieee_double_format,
10706 mips_double_format, motorola_double_format,
10707 ieee_extended_motorola_format, ieee_extended_intel_96_format,
10708 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
10709 ibm_extended_format, mips_extended_format, ieee_quad_format,
10710 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
10711 decimal_single_format, decimal_double_format, decimal_quad_format,
10712 ieee_half_format, arm_half_format, real_internal_format): Add name
10714 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
10716 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
10719 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
10720 reordering for selective scheduling.
10722 2015-02-26 Terry Guo <terry.guo@arm.com>
10724 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
10725 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
10726 (arm_arch_no_volatile_ce): Declare new global variable.
10727 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
10728 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
10729 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
10730 (TARGET_NO_VOLATILE_CE): New macro.
10731 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
10732 volatile memory access in IT block
10734 2015-02-25 Kai Tietz <ktietz@redhat.com>
10736 PR tree-optimization/61917
10737 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
10738 that reduc_def_stmt is null.
10740 2015-02-25 Martin Liska <mliska@suse.cz>
10742 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
10743 hard register variables.
10745 2015-02-25 Kai Tietz <ktietz@redhat.com>
10748 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
10749 (symtab::noninterposable_alias): Likewise.
10751 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
10754 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
10756 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
10758 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
10761 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
10762 as split condition; force split via '#' in output pattern.
10764 2015-02-25 Richard Biener <rguenther@suse.de>
10765 Kai Tietz <ktietz@redhat.com>
10767 PR tree-optimization/61917
10768 * tree-vect-loop.c (vectorizable_reduction): Allow
10769 vect_internal_def without reduction to exit graceful.
10771 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
10774 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
10775 only with NONDEBUG_INSN_P.
10777 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
10779 Use variadic macros with avr-log.c.
10781 * config/avr/avr-protos.h (avr_vdump): New prototype.
10782 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
10783 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
10784 * config/avr/avr-log.c: Adjust comments.
10785 (avr_vdump): New function.
10786 (avr_vadump): Pass caller as 2nd argument instead of format string.
10787 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
10788 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
10790 2015-02-25 Jakub Jelinek <jakub@redhat.com>
10793 * target.def (target_option_stream_in): New target hook.
10794 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
10795 targetm.target_option.post_stream_in if non-NULL.
10796 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
10797 * doc/tm.texi: Updated.
10798 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
10800 (TARGET_OPTION_POST_STREAM_IN): Redefine.
10802 2015-02-24 Jeff Law <law@redhat.com>
10805 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
10806 of operand 0 and operand 2.
10807 (zero_cost_loop_end, loop_end): Similarly.
10809 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
10811 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
10814 2015-02-24 DJ Delorie <dj@redhat.com>
10816 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
10817 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
10818 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
10819 instead of hardcoding SImode.
10821 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
10823 * omp-low.c (create_omp_child_function): Tag entrypoint
10824 functions with a special attribute.
10826 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
10829 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
10831 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
10833 PR rtl-optimization/65123
10834 * lra-remat.c (operand_to_remat): Check hard regs in insn
10837 2015-02-24 Nick Clifton <nickc@redhat.com>
10839 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
10842 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
10845 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
10846 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
10847 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
10848 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
10849 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
10850 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
10851 (BUILT_IN_GOACC_PARALLEL): Specify as
10852 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
10853 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
10854 * builtin-types.def
10855 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
10856 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
10857 Remove function types.
10858 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
10859 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
10860 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
10861 New function types.
10863 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
10865 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
10867 2015-02-24 Jakub Jelinek <jakub@redhat.com>
10869 PR tree-optimization/65170
10870 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
10871 if val[1] < 0, clear also val[2] and return 3.
10873 2015-02-24 Alan Modra <amodra@gmail.com>
10876 * config/rs6000/rs6000.c (get_memref_parts): Only return true
10877 when *base is a reg. Handle nested plus addresses. Simplify
10880 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
10882 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
10883 use natural alignment when optimizing for size.
10885 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
10888 * config/sh/sh.md (movsicc_true+3): Remove peephole.
10889 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
10890 * config/sh/sh.c (replace_n_hard_rtx): Remove.
10892 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
10895 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
10896 too big for a wide_int. Implement missing wrapping operation.
10898 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
10901 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
10902 instead of const_int 4294901760.
10904 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
10906 * config/avr/t-avr: Fix typo in comment.
10908 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
10910 * doc/rtl.texi (fma): Clarify documentation.
10912 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
10915 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
10916 over input_location.
10918 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
10920 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10921 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
10922 restrict alignments to absolute_biggest_alignment.
10923 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
10925 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
10926 * doc/tm.texi: Regenerate.
10927 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
10929 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
10932 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
10934 2015-02-20 Richard Biener <rguenther@suse.de>
10936 PR tree-optimization/65136
10937 * tree-ssa-propagate.c: Include cfgloop.h.
10938 (replace_phi_args_in): Avoid replacing loop latch edge PHI
10939 arguments with constants.
10941 2015-02-20 Jakub Jelinek <jakub@redhat.com>
10942 Martin Liska <mliska@suse.cz>
10945 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
10946 don't try to create_thunk if stdarg_p. If
10947 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
10948 redirect_callers if possible.
10949 (sem_item_optimizer::execute): Call unregister_hooks here...
10950 (ipa_icf_driver): ... instead of here.
10952 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10954 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
10955 Mark operand 0 as earlyclobber in 2nd alternative.
10956 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
10957 Write negated shift amount into QI lowpart operand 0 and use it
10959 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
10961 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
10963 * cgraph.h (clone_function_name_1): Declare.
10964 * cgraphclones.c (clone_function_name_1): New function.
10965 (clone_function_name): Use it.
10966 * lto-partition.c: Include "stringpool.h".
10967 (must_not_rename, maybe_rewrite_identifier)
10968 (validize_symbol_for_target): New static functions.
10969 (privatize_symbol_name): Use must_not_rename.
10970 (promote_symbol): Call validize_symbol_for_target.
10971 (lto_promote_cross_file_statics): Likewise.
10972 (lto_promote_statics_nonwpa): Likewise.
10974 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
10977 * config/avr/avr.md (pushhi_insn): New insn.
10978 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
10980 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
10981 Jakub Jelinek <jakub@redhat.com>
10983 * tree-streamer.c (preload_common_nodes): Don't preload
10984 TI_VA_LIST* for offloading.
10985 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
10988 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
10990 * config/pa/pa.c (pa_emit_move_sequence): Always force
10991 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
10994 * config/pa/pa.c (pa_reloc_rw_mask): New function.
10995 (TARGET_ASM_RELOC_RW_MASK): Define.
10996 (pa_cannot_force_const_mem): Revert previous change.
10998 2015-02-19 Martin Jambor <mjmabor@suse.cz>
10999 Jan Hubicka <hubicka@ucw.cz>
11002 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
11003 across jump functions.
11005 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
11007 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
11009 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
11011 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
11013 2015-02-19 Richard Henderson <rth@redhat.com>
11015 PR middle-end/65074
11016 * varasm.c (default_binds_local_p_2): Don't test node->definition;
11017 test DECL_EXTERNAL independent of symtab_node.
11019 2015-02-19 Jakub Jelinek <jakub@redhat.com>
11022 * varpool.c (varpool_node::get_constructor): Return early
11023 if this->lto_file_data is NULL.
11025 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11027 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
11028 (rank_for_schedule_debug): Update.
11029 (ready_sort): Make static. Move sorting logic to ...
11030 (ready_sort_debug, ready_sort_real): New static functions.
11031 (schedule_block): Sort both debug insns and real insns in preparation
11032 for ready list trimming. Improve debug output.
11033 * sched-int.h (ready_sort): Remove global declaration.
11035 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
11037 * ipa-icf.c (sem_function::equals_private): Adjust.
11038 (sem_function::bb_dict_test): Take a vec<int> * instead of
11040 * ipa-icf.h (bb_dict_test): Likewise.
11042 2015-02-18 Jakub Jelinek <jakub@redhat.com>
11044 PR gcov-profile/64634
11045 * tree-eh.c (frob_into_branch_around): Fix up typos
11046 in function comment.
11047 (lower_catch): Put eh_seq resulting from EH lowering of
11048 the cleanup sequence after the cleanup rather than before it.
11050 2015-02-18 Tom de Vries <tom@codesourcery.com>
11052 * common.opt (fstdarg-opt): New option.
11053 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
11054 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
11055 (@item -fstdarg-opt): New item.
11057 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
11060 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
11061 for common symbols.
11063 2015-02-18 Jakub Jelinek <jakub@redhat.com>
11065 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
11067 (ALL_HOST_OBJS): Add mkoffload.o.
11068 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
11070 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
11072 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
11073 (compare_virtual_tables): Be smarter about skipping typeinfos;
11074 do sane output on virtual table table mismatch.
11075 (warn_odr): Be ready for forward declarations of enums;
11076 output sane info on base mismatch and virtual table mismatch.
11077 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
11078 when only one type is polymorphic.
11079 (get_odr_type): Fix hashtable corruption.
11080 (dump_odr_type): Dump mangled names.
11082 2015-02-18 Richard Biener <rguenther@suse.de>
11084 PR tree-optimization/65063
11085 * tree-predcom.c (determine_unroll_factor): Return 1 if we
11086 have replaced looparound PHIs.
11088 2015-02-18 Martin Liska <mliska@suse.cz>
11090 * lto-streamer.c (lto_streamer_init): Encapsulate
11091 streamer_check_handled_ts_structures with checking macro.
11093 2015-02-18 Jakub Jelinek <jakub@redhat.com>
11096 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
11097 section if !implicit_section.
11098 (cgraph_node::create_version_clone_with_body): Likewise.
11099 * trans-mem.c (ipa_tm_create_version): Likewise.
11101 2015-02-18 Richard Biener <rguenther@suse.de>
11103 PR tree-optimization/62217
11104 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
11107 2015-02-18 Marek Polacek <polacek@redhat.com>
11110 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
11111 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
11112 is in range [-16K, -1]. Don't issue run-time error if
11113 (ptr > ptr + offset).
11115 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
11117 * doc/install.texi (nvptx-*-none): New section.
11118 * doc/invoke.texi (Nvidia PTX Options): Likewise.
11119 * config/nvptx/nvptx.opt: Update.
11121 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
11122 (access_check): New functions, copied from
11123 config/i386/intelmic-mkoffload.c.
11124 (main): For non-installed testing, look in all COMPILER_PATHs for
11127 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
11129 2015-02-18 Andrew Pinski <apinski@cavium.com>
11130 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11132 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
11133 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
11135 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
11137 * ipa-visibility.c (function_and_variable_visibility): Only
11138 check locality if node is not already local.
11139 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
11140 call_for_symbol_and_aliases instead of
11141 call_for_symbol_thunks_and_aliases.
11142 (ipa_inline): Likewise.
11143 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11144 first walk aliases.
11145 * ipa.c (symbol_table::remove_unreachable_nodes): Use
11146 call_for_symbol_and_aliases.
11147 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
11148 (ipa_propagate_frequency_1): Use it; use opt_for_fn
11149 (ipa_propagate_frequency): Update.
11150 (ipa_profile): Add opt_for_fn gueards.
11152 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
11154 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
11155 * doc/invoke.texi (SH options): Document it.
11156 * config/sh/sh.c (sh_insn_length_adjustment): Check
11157 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
11159 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
11161 * common.opt (fipa-cp-alignment): New.
11162 * ipa-cp.c (ipcp_store_alignment_results): Check
11163 flag_ipa_cp_alignment.
11164 * opts.c (default_options_table): Enable -fipa-cp-alignment for
11166 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
11167 * doc/invoke.texi: Document -fipa-cp-alignment.
11169 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
11172 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
11173 to nil. Adjust comments.
11175 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
11177 * ipa-visibility.c (function_and_variable_visibility): Only
11178 check locality if node is not already local.
11179 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
11180 call_for_symbol_and_aliases instead of
11181 call_for_symbol_thunks_and_aliases.
11182 (ipa_inline): Likewise.
11183 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11184 first walk aliases.
11185 * ipa.c (symbol_table::remove_unreachable_nodes): Use
11186 call_for_symbol_and_aliases.
11187 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
11188 (ipa_propagate_frequency_1): Use it; use opt_for_fn
11189 (ipa_propagate_frequency): Update.
11190 (ipa_profile): Add opt_for_fn guards.
11192 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
11194 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
11195 skipping of "strange" tokens.
11197 2015-02-17 Jeff Law <law@redhat.com>
11199 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
11202 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
11204 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
11205 as forcing a HARD_DEP between instructions, thereby
11206 disallowing rewriting to break dependencies.
11208 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
11210 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
11211 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
11212 variables in boundary that have no inlitalizer encoded and are
11214 * varasm.c (default_binds_local_p_2): External definitions do not
11215 count as definitions here.
11217 2015-02-16 Jeff Law <law@redhat.com>
11219 PR tree-optimization/64823
11220 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
11222 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
11223 threading through blocks with PHIs, but no statements.
11224 (thread_through_normal_block): Distinguish between blocks where
11225 we did not process all the statements and blocks with no statements.
11227 2015-02-16 Jakub Jelinek <jakub@redhat.com>
11228 James Greenhalgh <james.greenhalgh@arm.com>
11231 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
11232 section if not linkonce. Fix up formatting.
11233 (cgraph_node::create_version_clone_with_body): Copy section.
11234 * trans-mem.c (ipa_tm_create_version): Likewise.
11236 2015-02-16 Richard Biener <rguenther@suse.de>
11238 PR tree-optimization/65077
11239 * tree-ssa-structalias.c (get_constraint_for_1): Handle
11240 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
11241 (find_func_aliases): Allow float values to carry pointers again.
11243 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
11245 * doc/install.texi (Specific): Reorder targets list to put
11246 aarch64 in alphabetical order. Add a link to aarch64*-*-*
11249 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11250 David Edelsohn <dje.gcc@gmail.com>
11253 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
11254 mapping class to external variable or function reference.
11255 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
11258 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
11261 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
11262 ASM_WEAKEN_DECL if defined.
11264 2015-02-16 Richard Biener <rguenther@suse.de>
11267 * varasm.c (default_file_start): For LTO produced units
11268 emit <artificial> as file directive.
11270 2015-02-16 Richard Biener <rguenther@suse.de>
11272 PR tree-optimization/63593
11273 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
11274 stmts and releasing SSA names until...
11275 (execute_pred_commoning): ... after processing all chains.
11277 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
11280 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
11281 external functions.
11283 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
11285 * doc/bugreport.texi: Adjust section titles throughout the file
11286 to use "Title Case".
11287 * doc/extend.texi: Likewise.
11288 * doc/gcov.texi: Likewise.
11289 * doc/implement-c.texi: Likewise.
11290 * doc/implement-cxx.texi: Likewise.
11291 * doc/invoke.texi: Likewise.
11292 * doc/objc.texi: Likewise.
11293 * doc/standards.texi: Likewise.
11294 * doc/trouble.texi: Likewise.
11296 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
11298 * cgraph.h (symtab_node::has_aliases_p): Simplify.
11299 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
11300 * tree.c (lookup_binfo_at_offset): Make static.
11301 (get_binfo_at_offset): Do not shadow offset; add explanatory
11304 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
11306 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
11307 for all floading point loads and stores except those using a register
11309 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
11312 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
11314 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
11315 (do_estimate_growth_1): Record if any uninlinable edge was seen.
11316 (estimate_growth): Handle uninlinable edges correctly.
11317 (check_callers): New.
11318 (growth_likely_positive): Handle aliases correctly.
11320 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
11322 * ipa-chkp.c: Use iterate_direct_aliases.
11323 * symtab.c (resolution_used_from_other_file_p): Move inline.
11324 (symtab_node::create_reference): Fix formating.
11325 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
11326 (symtab_node::iterate_reference): Move inline.
11327 (symtab_node::iterate_referring): Move inline.
11328 (symtab_node::iterate_direct_aliases): Move inline.
11329 (symtab_node::used_from_object_file_p_worker): Inline into ...
11330 (symtab_node::used_from_object_file_p): ... this one; move inline.
11331 (symtab_node::call_for_symbol_and_aliases): Move inline;
11332 use iterate_direct_aliases.
11333 (symtab_node::call_for_symbol_and_aliases_1): New method.
11334 (cgraph_node::call_for_symbol_and_aliases): Move inline;
11335 use iterate_direct_aliases.
11336 (cgraph_node::call_for_symbol_and_aliases_1): New method.
11337 (varpool_node::call_for_node_and_aliases): Rename to ...
11338 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
11339 use iterate_direct_aliases.
11340 (varpool_node::call_for_symbol_and_aliases_1): New method.
11341 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
11342 (ipa_discover_readonly_nonaddressable_var): Update.
11343 * ipa-devirt.c: Fix formating.
11344 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
11346 (cgraph_node::call_for_symbol_and_aliases): Move inline.
11347 (cgraph_node::call_for_symbol_and_aliases_1): New function..
11348 * cgraph.h (used_from_object_file_p_worker): Remove.
11349 (resolution_used_from_other_file_p): Move inline.
11350 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
11351 (symtab_node::iterate_reference): Move inline.
11352 (symtab_node::iterate_referring): Move inline.
11353 (symtab_node::iterate_direct_aliases): Move inline.
11354 (symtab_node::used_from_object_file_p_worker): Inline into ...
11355 (symtab_node::used_from_object_file_p): Move inline.
11356 * tree-emutls.c (ipa_lower_emutls): Update.
11357 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
11358 (varpool_node::call_for_node_and_aliases): Remove.
11360 2015-02-14 Jakub Jelinek <jakub@redhat.com>
11362 PR tree-optimization/62209
11363 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
11364 op == range->exp, insert seq and gimplified code after labels
11365 instead of after the phi.
11367 2015-02-13 Jeff Law <law@redhat.com>
11370 Revert my change for tree-optimization/64823.
11372 2015-02-13 Jakub Jelinek <jakub@redhat.com>
11374 PR tree-optimization/65053
11375 * tree-ssa-phiopt.c (value_replacement): When moving assign before
11376 cond, either reset VR on lhs or set it to phi result VR.
11378 2015-02-13 Jeff Law <law@redhat.com>
11380 PR tree-optimization/64823
11381 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
11382 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
11383 threading through blocks with PHIs, but no statements.
11384 (thread_through_normal_block): Distinguish between blocks where
11385 we did not process all the statements and blocks with no statements.
11387 PR rtl-optimization/47477
11388 * match.pd (convert (plus/minus (convert @0) (convert @1): New
11389 simplifier to narrow arithmetic.
11391 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
11394 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
11395 polymorphic call info when type is not known to be preserved.
11397 2015-02-13 Maritn Jambor <mjambor@suse.cz>
11400 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
11401 (inline_call): Use it.
11403 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
11405 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
11406 GOMP_DEVICE_NVIDIA_PTX.
11408 2015-02-13 Jakub Jelinek <jakub@redhat.com>
11411 * stmt.c (emit_case_nodes): Use void_type_node instead of
11412 NULL_TREE as LABEL_DECL type.
11414 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
11416 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
11418 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
11419 symbolic references to data to be forced to constant memory on the
11422 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
11424 PR tree-optimization/65002
11425 * tree-cfg.c (pass_data_fixup_cfg): Don't update
11427 * tree-sra.c (some_callers_have_no_vuse_p): New.
11428 (ipa_early_sra): Reject functions whose callers
11429 assume function is read only.
11431 2015-02-13 Richard Biener <rguenther@suse.de>
11434 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
11435 for LTO produced CUs.
11437 2015-02-13 Bin Cheng <bin.cheng@arm.com>
11439 PR tree-optimization/64705
11440 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
11441 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
11442 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
11443 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
11444 expand_simple_operations.
11446 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
11447 Richard Henderson <rth@redhat.com>
11450 * cgraphunit.c (cgraph_node::finalize_function): Set definition
11451 before notice_global_symbol.
11452 (varpool_node::finalize_decl): Likewise.
11453 * varasm.c (default_binds_local_p_2): Rename from
11454 default_binds_local_p_1, add weak_dominate argument. Use direct
11455 returns instead of assigning to local variable. Unify varpool and
11456 cgraph paths via symtab_node. Reject undef weak variables before
11457 testing visibility. Reorder tests for simplicity.
11458 (default_binds_local_p): Use default_binds_local_p_2.
11459 (default_binds_local_p_1): Likewise.
11460 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
11462 (default_elf_asm_output_external): Emit visibility when specified.
11464 2015-02-13 Alan Modra <amodra@gmail.com>
11466 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
11467 code setting up r11 for out-of-line fp restore.
11469 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
11471 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
11472 (muser-mode): Likewise.
11474 2015-02-13 Alan Modra <amodra@gmail.com>
11476 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
11477 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
11479 2015-02-12 David Howells <dhowells@redhat.com>
11481 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
11483 * tree-ssa-uninit.c (dump_predicates): Likewise.
11484 * opts.c (print_filtered_help): Likewise.
11486 2015-02-12 Jakub Jelinek <jakub@redhat.com>
11488 * dwarf2out.c (output_die): Use "%s", name instead of name to
11489 avoid -Wformat-security warning.
11491 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
11492 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
11493 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
11494 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
11496 2015-02-12 Jason Merrill <jason@redhat.com>
11498 * common.opt (-flifetime-dse): New.
11500 2015-02-12 Jakub Jelinek <jakub@redhat.com>
11503 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
11505 PR tree-optimization/65014
11506 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
11507 use original second operand of arg0 or arg1 instead of
11508 that adjusted by STRIP_NOPS.
11510 2015-02-11 Jeff Law <law@redhat.com>
11513 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
11514 that needs to be queued, just queue it for a single cycle.
11516 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
11518 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
11519 bodies of thunks; comment on why.
11520 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
11521 symbols are extern.
11523 2015-02-11 Richard Henderson <rth@redhat.com>
11526 * tree-eh.c (mark_reachable_handlers): Mark source and destination
11527 regions of __builtin_eh_copy_values.
11529 2015-02-11 Jakub Jelinek <jakub@redhat.com>
11531 PR middle-end/65003
11532 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
11533 ultimate alias is MEM with SYMBOL_REF satisfying
11534 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
11535 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
11537 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
11539 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
11540 "diagnostic-core.h".
11541 (main): Initialize progname, and call diagnostic_initialize.
11543 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
11544 instead of __OPENMP_TARGET__.
11546 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
11547 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
11548 hard-coding PTX_ID.
11550 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
11552 * doc/sourcebuild.texi (pie_enabled): Document.
11554 2015-02-11 Martin Liska <mliska@suse.cz>
11557 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
11558 a return value for call to a function that is noreturn.
11560 2015-02-11 Richard Biener <rguenther@suse.de>
11563 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
11566 2015-02-11 Andrew Pinski <apinski@cavium.com>
11569 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11570 Change the first argument type to size_type_node and add another
11572 (aarch64_simd_expand_builtin): Handle the new argument to
11573 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
11574 print an out when the first two arguments are not
11575 nonzero integer constants.
11576 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
11577 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
11579 2015-02-11 Jakub Jelinek <jakub@redhat.com>
11582 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
11583 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
11584 (ix86_set_current_function): Rewritten.
11585 (ix86_add_new_builtins): Temporarily clear current_target_pragma
11586 when creating builtin fndecls.
11588 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
11591 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
11593 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
11594 have no comdat group.
11595 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
11596 (lto_output_varpool_node): Always output alias info.
11597 (output_refs): Output refs of boundary aliases, too.
11598 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
11599 (output_symtab): Output call eges in thunks in boundary.
11600 (get_alias_symbol): Remove.
11601 (input_node, input_varpool_node): Do not special case weakrefs.
11602 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
11603 alias and thunks targets in the boundary; do not take removed symbols
11604 from their comdat groups.
11605 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
11606 (cgraph_node::global_info): Remove.
11607 (cgraph_node::rtl_info): Look through aliases and thunks.
11608 * cgrpah.h (global_info): Remove.
11609 (non_local_p): Remove.
11611 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
11612 Sandra Loosemore <sandra@codesourcery.com>
11614 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
11615 to inline asm. List dialects in proper order.
11617 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
11618 Sandra Loosemore <sandra@codesourcery.com>
11620 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
11622 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
11624 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
11625 modified) reference to Solaris.
11627 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
11629 * doc/extend.texi (Extended Asm): Fix typos.
11631 2015-02-10 Jakub Jelinek <jakub@redhat.com>
11634 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
11636 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
11639 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
11640 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
11641 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
11642 * config/sh/constraints.md (Ara, Add): New constraints.
11643 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
11645 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
11646 atomic_mem_operand_0. Don't use force_reg on the memory address.
11647 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
11648 Sra constraint. Convert to insn_and_split. Add workaround for
11650 (atomic_compare_and_swap<mode>_hard): Copy to
11651 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
11652 Use atomic_mem_operand_0 predicate.
11653 (atomic_compare_and_swap<mode>_soft_gusa,
11654 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
11655 AraAdd constraints.
11656 (atomic_compare_and_swap<mode>_soft_tcb,
11657 atomic_compare_and_swap<mode>_soft_imask,
11658 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
11659 atomic_mem_operand_0 predicate and SraSdd constraints.
11660 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
11662 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
11663 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
11664 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
11665 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
11666 force_reg on the memory address.
11667 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
11668 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
11669 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
11670 atomic_mem_operand_1 predicate and Sra constraint.
11671 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
11672 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
11673 Use atomic_mem_operand_1 predicate.
11674 (atomic_<fetchop_name><mode>_hard): Copy to
11675 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
11676 Use atomic_mem_operand_1 predicate.
11677 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
11678 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
11679 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
11680 insn_and_split. Use atomic_mem_operand_1 predicate.
11681 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
11682 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
11683 Use atomic_mem_operand_1 predicate.
11684 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
11685 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
11686 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
11687 in generated insn with original mem operand before emitting the insn.
11688 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
11689 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
11690 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
11691 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
11692 Use atomic_mem_operand_1 predicate and AraAdd constraints.
11693 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
11694 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
11695 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
11696 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
11697 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
11698 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
11699 atomic_not_fetch<mode>_soft_tcb,
11700 atomic_<fetchop_name>_fetch<mode>_soft_imask,
11701 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
11702 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
11703 Use atomic_mem_operand_1 predicate and SraSdd constraints.
11705 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
11707 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
11708 and 3 earlyclobber operands.
11710 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
11712 * common.opt (fstack-reuse): Mark as optimization.
11714 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
11717 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
11719 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
11721 PR tree-optimization/64326
11722 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
11724 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
11726 PR gcov-profile/61889
11727 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
11729 2015-02-10 Richard Biener <rguenther@suse.de>
11731 PR tree-optimization/64995
11732 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
11733 value we use is final.
11734 (visit_reference_op_store): Always valueize op.
11735 (visit_use): Properly valueize vuses.
11737 2015-02-10 Richard Biener <rguenther@suse.de>
11739 PR tree-optimization/64909
11740 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
11741 pass a scalar-stmt count estimate to the cost model.
11742 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
11744 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
11746 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
11747 enabled by default together with var-tracking.
11749 2015-02-10 Nick Clifton <nickc@redhat.com>
11751 * config/rl78/rl78.c: Remove DIV attribute code accidentally
11752 included in previous rl78 commit.
11754 2015-02-10 Richard Biener <rguenther@suse.de>
11756 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
11757 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
11758 return the bitpack.
11760 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
11762 PR gcov-profile/61889
11763 * config.in: regenerate.
11764 * configure.in: Likewise.
11765 * configure.ac: Check for ftw.h.
11766 * gcov-tool.c: Check for ftw.h before using nftw.
11768 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
11771 * ipa-visibility.c (update_visibility_by_resolution_info): Only
11772 assert when not in lto mode.
11774 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11776 * ira-color.c (setup_left_conflict_sizes_p): Simplify
11777 initialization/assignment of conflict_size.
11779 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
11782 * ipa-cp.c (gather_caller_stats): Skip thunks.
11783 (propagate_constants_topo): Skip aliases.
11785 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
11788 * config/sh/sh.c (sh_option_override): Don't change
11789 -freorder-blocks-and-partition to -freorder-blocks even when
11790 unwinding is enabled.
11791 (sh_can_follow_jump): Return false if the followee jump is
11792 a crossing jump when -freorder-blocks-and-partition is specified.
11793 * config/sh/sh.md (*jump_compact_crossing): New insn.
11795 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
11796 Kaz Kojima <kkojima@gcc.gnu.org>
11799 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
11800 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
11801 (sh_can_redirect_branch): Rename to ...
11802 (sh_can_follow_jump): ... this. Constify argument types.
11803 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
11804 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
11805 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
11806 * doc/tm.texi: Regenerate.
11808 2015-02-09 Jakub Jelinek <jakub@redhat.com>
11811 * builtins.c (expand_builtin): Call targetm.expand_builtin
11812 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
11814 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
11817 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
11819 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
11822 * ipa-icf.c (set_local): New function.
11823 (sem_function::merge): Use it.
11825 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
11827 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
11828 (add_type_duplicate): Fix comparison of BINFOs.
11830 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
11832 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
11833 on getting VOID pointer.
11835 2015-02-09 Jakub Jelinek <jakub@redhat.com>
11838 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
11841 2015-02-09 Richard Biener <rguenther@suse.de>
11843 * genmatch.c (replace_id): Copy expr_type.
11845 2015-02-09 Richard Biener <rguenther@suse.de>
11847 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
11848 (streamer_write_tree_bitfields): Declare.
11849 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
11850 properly unpack padding.
11851 (unpack_value_fields): Inline ...
11852 (streamer_read_tree_bitfields): ... here.
11853 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
11854 and properly add padding bits.
11855 (streamer_pack_tree_bitfields): Fold into ...
11856 (streamer_write_tree_bitfields): ... this new function,
11857 exposing the bitpack object.
11858 * lto-streamer-out.c (lto_write_tree_1): Call
11859 streamer_write_tree_bitfields.
11861 2015-02-09 Richard Biener <rguenther@suse.de>
11863 PR tree-optimization/54000
11864 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
11865 (struct ivopts_data): Add loop_loc member.
11866 (tree_ssa_iv_optimize_loop): Dump loop location.
11867 (create_new_ivs): Likewise, also dump number of IVs generated.
11869 2015-02-09 Martin Liska <mliska@suse.cz>
11871 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
11872 just if not yet registered.
11873 (ipa_icf_generate_summary): Register callgraph hooks.
11875 2015-02-08 Andrew Pinski <apinski@cavium.com>
11877 * config/aarch64/aarch64.c (gty_dummy): Delete.
11879 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
11882 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
11883 (cgraph_node::local_p): Remove thunk related FIXME.
11885 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
11888 * i386.c (ix86_function_regparm): Look through aliases to see if callee
11889 is local and optimized.
11890 (ix86_function_sseregparm): Likewise; also use target's SSE math
11891 settings; error out instead of silently generating wrong code
11893 (init_cumulative_args): Look through aliases.
11895 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
11898 * ipa-split.c (execute_split_functions): Split if function has aliases.
11900 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
11903 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
11904 aliases before trying to expand it.
11905 (cgraph_node::expand_thunk): Fix formating.
11907 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
11909 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
11910 (Using Assembly Language with C): Expand introduction.
11911 (Basic Asm): Copy-edit. Add more information about uses of
11913 (Extended Asm): Copy-edit. Document new escape syntax and
11915 (Global Reg Vars): Copy-edit.
11916 (Local Reg Vars): Likewise.
11918 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
11922 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
11923 (DBX_CONTIN_CHAR): Define.
11925 2015-02-06 Sebastian Pop <s.pop@samsung.com>
11926 Brian Rzycki <b.rzycki@samsung.com>
11928 PR tree-optimization/64878
11929 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
11930 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
11931 Stop recursion at loop phi nodes after having visited a loop phi node.
11933 2015-02-06 Jakub Jelinek <jakub@redhat.com>
11935 * toplev.c (process_options): Change flag_ipa_ra before creating
11936 optimization_{default,current}_node.
11939 * cgraphunit.c (cgraph_node::expand_thunk): If
11940 restype is not is_gimple_reg_type nor the thunk_fndecl
11941 returns aggregate_value_p, set restmp to a temporary variable
11942 instead of resdecl.
11944 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
11946 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
11948 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11951 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
11952 add a general secondary reload handler for SDmode, unless we have
11953 both read/write support for SDmode.
11955 2015-02-06 Jakub Jelinek <jakub@redhat.com>
11957 PR middle-end/64937
11958 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
11959 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
11960 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
11961 1 before, push it to abstract_vec.
11962 (dwarf2out_abstract_function): Adjust caller. Don't call
11963 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
11964 DECL_ABSTRACT_P flags for all abstract_vec elts.
11966 2015-02-06 Renlin Li <renlin.li@arm.com>
11968 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
11970 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11972 2015-02-06 Jeff Law <law@redhat.com>
11975 * config/h8300/h8300.c (push): New argument "in_prologue".
11976 Pass "in_prologue" along to "F".
11977 (h8300_push_pop): Corresponding changes.
11978 (h8300_expand_prologue): Likewise.
11979 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
11981 2015-02-06 Jakub Jelinek <jakub@redhat.com>
11983 PR rtl-optimization/64957
11985 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
11986 IOR rather than for AND.
11988 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
11991 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
11992 of shift-add and (add + shift) operations. Rename local variable.
11994 2015-02-05 Jeff Law <law@redhat.com>
11997 * config/h8300/constraints.md (U): Correctly dectect
11998 "eightbit_data" memory addresses.
11999 * config/h8300/h8300.c (eightbit_constant_address_p): Also
12000 handle (const (plus (symbol_ref (x)))) where x is declared
12001 as an 8-bit data memory address.
12002 * config/h8300/h8300.md (call, call_value): Correctly detect
12003 "funcvec" functions.
12006 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
12007 24 to 28 bits for the H8/300.
12009 2015-02-06 Alan Modra <amodra@gmail.com>
12012 * config/rs6000/rs6000.c (chain_already_loaded): New function.
12013 (rs6000_call_aix): Use it.
12015 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
12017 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
12020 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
12022 * config/h8300/constraints.md ("U" constraint): Use strict
12023 variant of REG_OK_FOR_BASE_P after reload has started.
12025 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
12027 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
12028 define to zero if !TARGET_NEON.
12029 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
12031 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
12032 Trevor Saunders <tsaunders@mozilla.com>
12035 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
12037 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
12040 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
12041 when removing varpool nodes.
12043 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
12046 * varpool.c (varpool_node::remove): Fix order of variables.
12048 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
12051 * ipa-inline.c (inline_small_functions): Fix ordering issue between
12052 speculation resolution and key updates.
12054 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
12056 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
12057 about not letting any speculative edges unupdated.
12059 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
12062 * gcov-io.c (gcov_var): Export.
12064 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
12066 PR middle-end/64922
12067 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
12068 edges that become speculative.
12070 2015-02-04 Jakub Jelinek <jakub@redhat.com>
12072 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
12073 or DW_LANG_Fortran08.
12074 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
12076 (gen_compile_unit_die): Handle "GNU Fortran2003" and
12077 "GNU Fortran2008" language strings.
12078 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
12079 * langhooks.h (lang_GNU_Fortran): New prototype.
12080 * langhooks.c (lang_GNU_Fortran): New function.
12081 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
12084 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
12086 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
12087 (RTX_OK_FOR_OLO10_P): Likewise.
12089 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
12091 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
12093 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
12095 PR middle-end/64922
12096 * gimple.c: Include gimple-ssa.h.
12097 (maybe_remove_unused_call_args): New function.
12098 * gimple.h (maybe_remove_unused_call_args): Declare.
12099 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12100 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12101 * gimple-fold.c (gimple_fold_call): Likewise.
12103 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
12105 PR rtl-optimization/64905
12106 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
12107 pointer alignment if it isn't needed.
12109 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
12111 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
12112 cortex-a72.cortex-a53.
12113 * config/aarch64/aarch64-tune.md: Regenerate.
12114 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
12116 2015-02-04 Nick Clifton <nickc@redhat.com>
12118 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
12121 2015-02-04 Jakub Jelinek <jakub@redhat.com>
12123 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
12124 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
12125 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
12127 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
12128 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
12129 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
12130 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
12131 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
12132 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
12133 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
12134 * tree-core.h (enum built_in_function): In between
12135 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
12136 for builtins that use DEF_BUILTIN_CHKP macro.
12138 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
12141 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
12142 operands for tcc_comparison exprs. Fix typos.
12145 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
12146 of two XORs that have an intervening AND or IOR.
12149 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
12150 simplification of XOR of AND to not allocate new rtx before
12151 committing to a simplification.
12153 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12155 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
12156 manual swaps in all peepholes.
12158 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12160 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
12161 of manual swapping implementation.
12162 (aarch64_expand_vec_perm_const_1): Likewise.
12164 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
12166 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
12167 (generic_addrcost_table): Remove NAMED_PARAM.
12168 (cortexa57_addrcost_table): Likewise.
12169 (xgene1_addrcost_table): Likewise.
12170 (generic_regmove_table): Likewise.
12171 (cortexa53_regmove_table): Likewise.
12172 (xgene1_regmove_table): Likewise.
12173 (generic_vector_table): Likewise.
12174 (cortexa57_vector_table): Likewise.
12175 (xgene1_vector_table): Likewise.
12176 (generic_tunings): Likewise.
12177 (cortexa53_tunings): Likewise.
12178 (cortexa57_tunings): Likewise.
12179 (xgene1_tunings): Likewise.
12181 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
12183 * config/arm/arm-cores.def: Add cortex-a72 and
12184 cortex-a72.cortex-a53.
12185 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
12186 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
12187 * config/arm/arm-tune.md: Regenerate.
12188 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
12189 "cortex-a72.cortex-a53".
12190 * doc/invoke.texi (ARM Options/-mtune): Likewise.
12192 2015-02-04 Nick Clifton <nickc@redhat.com>
12195 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
12197 (nonimmediate_di_operand): Likewise.
12199 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
12200 prefixes of known F5 using MSP430 MCUs.
12202 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12204 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
12205 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
12206 instead of __builtin_sqrt.
12208 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
12210 * varasm.c (do_assemble_alias): Follow transparent alias
12212 (default_assemble_visibility): Follow transparent alias
12213 chain for decl name.
12215 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
12217 PR middle-end/62103
12218 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
12219 to compute size of referenced value in the constant case.
12221 2015-02-03 Jakub Jelinek <jakub@redhat.com>
12223 PR rtl-optimization/64756
12224 * cse.c (invalidate_dest): New function.
12225 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
12226 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
12227 invalidate and do not record it.
12229 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12232 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
12233 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
12234 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
12235 atomic_nand<mode>_soft_tcb): New insns.
12236 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
12237 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
12238 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
12239 Split into atomic_not_fetchsi_hard if operands[0] is unused.
12240 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
12241 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
12242 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
12243 atomic_not<mode>_hard if operands[0] is unused.
12244 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
12245 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
12246 if operands[0] is unused.
12247 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
12248 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
12249 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
12250 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
12252 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
12253 into atomic_not<mode>_soft_tcb if operands[0] is unused.
12254 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
12255 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
12256 if operands[0] is unused.
12257 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
12258 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
12259 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
12260 atomic_nand_fetchsi_hard if operands[0] is unused.
12261 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
12262 atomic_nand<mode>_hard if operands[0] is unused.
12263 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
12264 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
12265 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
12266 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
12267 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
12268 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
12269 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
12270 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
12271 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
12272 atomic_not<mode>_hard if operands[0] is unused.
12273 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
12274 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
12276 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
12277 into atomic_not<mode>_soft_tcb if operands[0] is unused.
12278 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
12279 atomic_nand<mode>_hard if operands[0] is unused.
12280 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
12281 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
12283 2015-02-03 David Malcolm <dmalcolm@redhat.com>
12286 * Makefile.in (GCC_OBJS): Add gcc-main.o.
12287 * gcc-main.c: New file, containing "main" taken from gcc.c.
12288 * gcc.c (do_self_spec): Free decoded_options.
12289 (class driver): Move declaration to gcc.h.
12290 (main): Move declaration and implementation to new file
12292 (driver_get_configure_time_options): New function.
12293 * gcc.h (class driver): Move this declaration here, from
12295 (driver_get_configure_time_options): New declaration.
12297 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
12299 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
12300 cross-module inlining.
12301 * cgraph.h (cgraph_node): Add flag merged.
12302 * ipa-icf.c (sem_function::merge): Maintain it.
12304 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
12306 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
12307 instead of OBJECT_P.
12309 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
12312 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
12313 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
12314 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
12315 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
12317 2015-02-03 Jakub Jelinek <jakub@redhat.com>
12320 * combine.c (reg_n_sets_max): New variable.
12321 (can_change_dest_mode, reg_nonzero_bits_for_combine,
12322 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
12323 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
12324 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
12325 (rest_of_handle_combine): Initialize reg_n_sets_max.
12327 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
12329 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
12330 if some always_inline was inlined, apply changes before inlining
12333 2015-02-02 David Malcolm <dmalcolm@redhat.com>
12336 * config/arm/arm.c (arm_option_override): Set
12337 arm_selected_arch/cpu/tune to NULL on entry.
12339 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
12340 Andrew Pinski <pinskia@gcc.gnu.org>
12341 Jakub Jelinek <jakub@gcc.gnu.org>
12344 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
12345 integer typing for small model. Use IN_RANGE.
12347 2015-02-02 Richard Biener <rguenther@suse.de>
12349 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
12350 * tree-vrp.c (vrp_valueize_1): Likewise.
12352 2015-02-02 Alan Modra <amodra@gmail.com>
12354 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
12355 than mem for toc_restore.
12356 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
12357 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
12358 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
12360 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
12363 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
12364 explicit default options.
12366 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
12369 * ipa-utils.c (ipa_merge_profiles): Add release argument.
12370 * ipa-icf.c (sem_function::merge): Do not release body when merging.
12371 * ipa-utils.h (ipa_merge_profiles): Update prototype.
12373 2015-02-01 Jakub Jelinek <jakub@redhat.com>
12376 * cfgexpand.c (deep_ter_debug_map): New variable.
12377 (avoid_deep_ter_for_debug): New function.
12378 (expand_debug_expr): If TERed SSA_NAME is in
12379 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
12380 instead of trying to expand SSA_NAME's def stmt.
12381 (expand_debug_locations): When expanding debug bind
12382 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
12383 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
12385 (pass_expand::execute): Call avoid_deep_ter_for_debug on
12386 all debug bind stmts. Delete deep_ter_debug_map after
12387 expand_debug_location if non-NULL and clear it.
12389 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
12392 * config/sh/sync.md (atomic_fetch_notsi_hard,
12393 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
12394 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
12395 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
12396 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
12397 atomic_not_fetch<mode>_soft_imask): New insns.
12399 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
12401 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
12402 (rank_for_schedule_debug): Split from ...
12403 (rank_for_schedule): ... this.
12404 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
12405 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
12407 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
12409 * doc/md.texi (Machine Constraints): Alphabetize table by target.
12410 * doc/extend.texi (x86 Variable Attributes): Move section to
12411 correct alphabetization after renaming.
12412 (x86 Type Attributes): Likewise.
12413 (Target Builtins): Re-alphabetize menu.
12414 (x86 Built-in Functions): Move section to correct alphabetization
12416 (x86 transactional memory intrinsics): Likewise.
12417 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
12418 and x86 Windows Options in table and menu.
12419 (x86 Options): Move section to correct alphabetization after
12421 (x86 Windows Options): Likewise.
12423 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
12425 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
12426 preferred names of the architecture and its 32- and 64-bit
12428 * doc/invoke.texi: Likewise.
12429 * doc/md.texi: Likewise.
12431 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
12434 * config/i386/predicates.md (address_no_seg_operand): Reject
12435 non-CONST_INT_P operands in invalid mode.
12437 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
12439 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
12440 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
12441 * config/i386/predicates.md (address_no_seg_operand): Call
12442 address_operand with VOIDmode.
12443 (vsib_address_operand): Ditto.
12444 (address_mpx_no_base_operand): Ditto.
12445 (address_mpx_no_index_operand): Ditto.
12447 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
12450 * lra-constraints.c (original_subreg_reg_mode): New.
12451 (simplify_operand_subreg): Try to simplify subreg of const. Use
12452 original_subreg_reg_mode for it.
12453 (swap_operands): Update original_subreg_reg_mode.
12454 (curr_insn_transform): Set up original_subreg_reg_mode.
12456 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
12459 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
12461 (process_alt_operands): Use it.
12462 (curr_insn_transform): Check the optional reload pseudo class is
12465 2015-01-30 Joseph Myers <joseph@codesourcery.com>
12467 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
12468 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
12470 * toplev.h (init_asm_output): Update comment on use of
12471 UNKNOWN_LOCATION with fatal_error.
12472 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
12473 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
12474 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
12475 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
12476 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
12477 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
12478 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
12479 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
12480 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
12481 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
12482 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
12483 fatal_error changed to pass input_location as first argument.
12485 2015-01-30 Martin Liska <mliska@suse.cz>
12487 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
12488 in #pragma GCC diagnostic guards.
12490 2015-01-30 Richard Biener <rguenther@suse.de>
12492 PR tree-optimization/64829
12493 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
12494 not add a widening conversion pattern but hand off extra
12495 widenings to callers.
12496 (vect_recog_widen_mult_pattern): Handle extra widening produced
12497 by vect_handle_widen_op_by_const.
12498 (vect_recog_widen_shift_pattern): Likewise.
12499 (vect_pattern_recog_1): Remove excess vertical space in dumping.
12500 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
12501 (vect_init_vector_1): Likewise.
12502 (vect_get_vec_def_for_operand): Likewise.
12503 (vect_finish_stmt_generation): Likewise.
12504 (vectorizable_load): Likewise.
12505 (vect_analyze_stmt): Likewise.
12506 (vect_is_simple_use): Likewise.
12508 2015-01-29 Jeff Law <law@redhat.com>
12510 * combine.c (try_combine): Fix typo in comment.
12512 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
12515 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
12516 (rs6000_stack_info): Add assert.
12517 (rs6000_output_savres_externs): New function, split off from...
12518 (rs6000_output_function_prologue): ... here. Do not call it for
12521 2015-01-29 Jeff Law <law@redhat.com>
12524 * combine.c (try_combine): If I0 is a memory load and I3 a store
12525 to a related address, increase the "goodness" of doing a 4-insn
12526 combination with I0-I3.
12527 (make_field_assignment): Handle SUBREGs in the ior+and case.
12529 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
12531 PR tree-optimization/64746
12532 * tree-if-conv.c (mask_exists): New function.
12533 (predicate_mem_writes): Save created mask with given size for further
12535 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
12536 (ifcvt_repair_bool_pattern): Collect all statements that are root
12537 of bool pattern and use iterative algorithm to remove multiple uses
12538 of predicates, display number of required iterations.
12540 2015-01-29 Richard Biener <rguenther@suse.de>
12542 PR tree-optimization/64853
12543 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
12544 stmt will get simulated again.
12545 * tree-ssa-ccp.c (valueize_op_1): Likewise.
12547 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12549 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
12550 return_in_pc. Remove redundant assignments.
12551 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
12552 (arm_expand_epilogue): Don't compare boolean with true in if condition.
12554 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
12556 * config/i386/i386.c (ix86_mode_after): Make static.
12558 2015-01-29 Richard Biener <rguenther@suse.de>
12560 PR tree-optimization/64844
12561 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
12562 dump cost model analysis.
12563 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12564 Do not register adjusted load/store costs here.
12566 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
12567 Uros Bizjak <ubizjak@gmail.com>
12569 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
12570 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
12571 using x86_use_pseudo_pic_reg.
12572 * config/i386/i386.c (ix86_conditional_register_usage): Remove
12573 support for fixed PIC register.
12574 (ix86_use_pseudo_pic_reg): Not static any more.
12576 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
12578 PR middle-end/64805
12579 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
12580 to avoid error in cgraph node verification.
12582 2015-01-29 Marek Polacek <polacek@redhat.com>
12584 * doc/standards.texi: Reflect that the default for C is gnu11.
12586 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
12589 * reorg.c (switch_text_sections_between_p): New function.
12590 (relax_delay_slots): Call it when testing if the jump insn
12591 is removable. Use targetm.can_follow_jump when testing if
12592 the conditional branch can follow an unconditional jump.
12594 2015-01-27 Caroline Tice <cmtice@google.com>
12596 Committing VTV Cywin/Ming patch for Patrick Wollgast
12597 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
12598 if -fvtable-verify=preinit/std is used.
12599 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
12600 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
12601 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
12602 if -fvtable-verify=preinit/std is used.
12603 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
12604 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
12605 if -fvtable-verify=preinit/std is used.
12606 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
12607 * config/i386/mingw32.h (LIB_SPEC): Likewise.
12608 * varasm.c (assemble_variable): Add code to properly set the comdat
12609 section and name for the .vtable_map_vars section in case the
12610 target is PE or COFF.
12612 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
12615 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
12616 make sane BB profile.
12617 (cgraph_node::expand_thunk): Make sane BB profile.
12618 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
12619 * cgraph.h (init_lowered_empty_function): Update prototype.
12620 * config/i386/i386.c (make_resolver_func): Update call.
12621 * predict.c (gate): Disable branch prediction pass if
12622 profile is already there.
12624 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
12626 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
12627 * opth-gen.awk: Likewise.
12628 * common.opt: Mark flag_fp_contract_mode as Optimization.
12630 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
12632 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
12633 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
12635 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
12638 * config/sh/predicates.md (atomic_arith_operand,
12639 atomic_logical_operand): Remove.
12640 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
12641 (atomic_arith_operand_0): New predicate.
12642 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
12643 Use atomic_arith_operand_0 for input values.
12644 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
12645 atomic_compare_and_swap<mode>_soft_gusa,
12646 atomic_compare_and_swap<mode>_soft_tcb,
12647 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
12648 arith_reg_operand instead of register_operand.
12649 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
12650 atomic_arith_operand_0 for newval input.
12651 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
12652 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
12653 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
12654 arith_reg_operand instead of register_operand.
12655 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
12656 fetchop_predicate_1, fetchop_constraint_1_llcs,
12657 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
12658 fetchop_constraint_1_imask): New code iterator attributes.
12659 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
12660 register_operand. Use fetchop_predicate_1.
12661 (atomic_fetch_<fetchop_name>si_hard,
12662 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
12663 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
12664 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
12665 and arith_reg_operand instead of register_operand. Use
12666 fetchop_predicate_1, fetchop_constraint_1_gusa.
12667 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
12668 and arith_reg_operand instead of register_operand. Use
12669 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
12671 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
12672 and arith_reg_operand instead of register_operand. Use
12673 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
12675 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
12676 register_operand. Use atomic_logical_operand_1.
12677 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
12678 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
12679 arith_reg_operand instead of register_operand.
12680 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
12681 Use arith_reg_dest and arith_reg_operand instead of register_operand.
12682 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
12683 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
12684 register_operand. Use fetchop_predicate_1.
12685 (atomic_<fetchop_name>_fetchsi_hard,
12686 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
12687 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
12688 fetchop_constraint_1_llcs.
12689 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
12690 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
12691 fetchop_constraint_1_gusa.
12692 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
12693 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
12694 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
12695 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
12696 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
12697 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
12698 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
12699 register_operand. Use atomic_logical_operand_1.
12700 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
12701 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
12702 arith_reg_operand instead of register_operand.
12703 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
12704 arith_reg_operand instead of register_operand. Use logical_operand
12705 and K08. Adjust asm sequence to allow R0 usage.
12706 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
12707 arith_reg_operand instead of register_operand. Use logical_operand
12710 2015-01-28 Jakub Jelinek <jakub@redhat.com>
12713 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
12714 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
12715 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
12716 only get_full_len HOST_WIDE_INTs from get_val () array rather than
12717 all bits in *val_wide.
12719 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
12721 * varpool.c (tls_model_names): Fix names.
12722 (varpool_node::dump): Dump tls- prefix for tls models.
12724 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
12725 Bernd Schmidt <bernds@codesourcery.com>
12726 Nathan Sidwell <nathan@codesourcery.com>
12728 * config/nvptx/mkoffload.c: New file.
12729 * config/nvptx/t-nvptx: Add build rules for it.
12730 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
12731 (extra_programs): Add mkoffload.
12732 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
12734 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
12736 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
12738 PR middle-end/64809
12739 * cfgexpand.c (reorder_operands): Skip debug gimples.
12741 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
12743 PR tree-optimization/64277
12744 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
12745 range info when possible to refine estimation.
12747 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12749 PR tree-optimization/64718
12750 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
12751 be a 16bit unsigned integer when n->range is 16.
12752 (bswap_replace): Convert src to that type if necessary for all bswap
12753 sizes. Fix rotation right notation in nearby comment. Use bswap_type
12754 set in pass_optimize_bswap::execute ().
12756 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
12758 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
12759 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
12760 integer and floating point variants.
12761 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
12763 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
12765 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
12766 for all vector modes.
12768 2015-01-28 Jakub Jelinek <jakub@redhat.com>
12771 * doc/sourcebuild.texi (comdat_group): Document.
12773 2015-01-28 Terry Guo <terry.guo@arm.com>
12775 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
12777 2015-01-27 David Malcolm <dmalcolm@redhat.com>
12779 * toplev.c (print_version): Add param "show_global_state", and
12780 only print GGC and plugin information if it is true.
12781 (init_asm_output): Pass in "true" for the new param when calling
12783 (process_options): Likewise.
12784 (toplev::main): Likewise.
12785 * toplev.h (print_version): Add new param to decl.
12787 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
12791 * tree.c (lookup_binfo_at_offset): New function.
12792 (get_binfo_at_offset): Use it.
12794 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
12797 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
12798 on vtable being vtable.
12800 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
12802 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
12803 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
12804 -mhotpatch= option.
12805 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
12806 -mno-hotpatch options. Change syntax of -mhotpatch= option.
12807 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
12809 (s390_hotpatch_trampoline_halfwords_max): Renamed.
12810 (s390_hotpatch_hw_max): New name.
12811 (s390_hotpatch_trampoline_halfwords): Renamed.
12812 (s390_hotpatch_hw_before_label): New name.
12813 (get_hotpatch_attribute): Removed.
12814 (s390_hotpatch_hw_after_label): New name.
12815 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
12817 (s390_attribute_table): Ditto.
12818 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
12819 (s390_function_num_hotpatch_hw): New name.
12820 Remove special handling of inline functions and hotpatching.
12821 Return number of nops before and after the function label.
12822 (s390_can_inline_p): Removed.
12823 (s390_asm_output_function_label): Emit a configurable number of nops
12824 after the function label.
12825 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
12826 (TARGET_CAN_INLINE_P) Removed.
12827 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
12829 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12830 Jiong Wang <jiong.wang@arm.com>
12832 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
12834 (cb<optab><mode>1): Likewise.
12835 * config/aarch64/iterators.md (bcond): New define_code_attr.
12837 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12839 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
12842 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12844 * config/s390/s390.c (s390_register_move_cost): Increase costs for
12847 2015-01-27 Richard Biener <rguenther@suse.de>
12849 * tree-vrp.c (update_value_range): Intersect the range with
12850 old recorded SSA name range information.
12852 2015-01-27 Nick Clifton <nickc@redhat.com>
12854 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
12855 BC, DE and HL registers directly, not via AX.
12856 When decrementing the stack pointer by a large amount, transfer SP
12857 into AX and perform the subtraction there.
12858 (rl78_expand_epilogue): Perform the inverse of the above
12861 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12863 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
12865 2015-01-27 Jakub Jelinek <jakub@redhat.com>
12866 Yury Gribov <y.gribov@samsung.com>
12869 * ubsan.c (ubsan_source_location): Refactor code.
12870 (ubsan_type_descriptor): Update type size. Refactor code.
12872 2015-01-27 Richard Biener <rguenther@suse.de>
12874 PR tree-optimization/56273
12875 PR tree-optimization/59124
12876 PR tree-optimization/64277
12877 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
12878 from the first VRP pass.
12880 2015-01-27 Jakub Jelinek <jakub@redhat.com>
12883 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
12884 handle the first argument in the same loop as all the other arguments.
12886 PR rtl-optimization/61058
12887 * jump.c (cleanup_barriers): Update basic block boundaries
12888 if BLOCK_FOR_INSN is non-NULL on PREV.
12890 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
12892 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
12893 bounds narrowing, already instrumented calls and calls to
12894 not instrumentable functions.
12896 2015-01-27 Jakub Jelinek <jakub@redhat.com>
12898 PR tree-optimization/64807
12899 * wide-int.cc (wi::divmod_internal): Clear
12900 b_dividend[dividend_blocks_needed].
12902 2015-01-26 DJ Delorie <dj@redhat.com>
12904 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
12905 volatile memory references.
12907 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
12910 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
12912 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
12913 shifts if it already fits into K08.
12915 2015-01-26 Jakub Jelinek <jakub@redhat.com>
12918 * ipa-inline.c (inline_small_functions): Print "unknown" even
12919 if edge->call_stmt is non-NULL, but has builtins or unknown
12922 PR middle-end/64421
12923 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
12924 with asterisk, skip the first character.
12926 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
12929 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
12932 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
12935 * config/i386/i386.md (*movdi_internal): Also check operand 0
12936 to determine TYPE_LEA operand.
12937 (*movsi_internal): Ditto.
12939 2015-01-26 Jakub Jelinek <jakub@redhat.com>
12941 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
12942 OPTION_MASK_QUAD_MEMORY_ATOMIC.
12944 2015-01-26 Renlin Li <renlin.li@arm.com>
12946 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
12948 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
12951 2015-01-26 Richard Biener <rguenther@suse.de>
12953 PR middle-end/64764
12954 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
12955 combining two BIT_AND_EXPR predicates.
12957 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
12960 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
12962 2015-01-26 Terry Guo <terry.guo@arm.com>
12964 * config/arm/arm.c (arm_file_start): Update the assignment of
12965 Tag_ABI_HardFP_use.
12967 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
12969 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
12971 config/arm/arm.md: Include the new Cortex-A57 model.
12972 (generic_sched): Don't use generic_sched when tuning for
12975 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
12976 Uros Bizjak <ubizjak@gmail.com>
12978 * config/i386/i386.c (get_builtin_code_for_version): Add
12979 support for BMI and BMI2 multiversion functions.
12981 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12983 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
12984 (extract_bit_field): Likewise.
12985 (extract_low_bits): Likewise.
12986 (expand_mult): Likewise.
12987 (expand_mult_highpart_adjust): Likewise.
12989 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
12991 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
12992 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
12993 * config/i386/i386.c (processor_model): Add
12994 M_INTEL_COREI7_BROADWELL.
12995 (arch_names_table): Add "broadwell".
12997 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
13006 * config/sh/sh-protos.h
13007 (sh_extending_set_of_reg::can_use_as_unextended_reg,
13008 sh_extending_set_of_reg::use_as_unextended_reg,
13009 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
13010 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
13011 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
13012 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
13013 (sh_treg_insns): New class.
13014 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
13015 (scope_counter): New class.
13016 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
13017 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
13018 sh_extending_set_of_reg::can_use_as_unextended_reg,
13019 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
13020 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
13021 sh_split_treg_set_expr): New functions.
13022 (addsubcosts): Handle treg_set_expr.
13023 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
13024 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
13025 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
13026 (sh_insn_operands_modified_between_p): Make non-static.
13027 * config/sh/predicates.md (zero_extend_movu_operand): Allow
13028 simple_mem_operand in addition to displacement_mem_operand.
13029 (zero_extend_operand): Don't allow zero_extend_movu_operand.
13030 (treg_set_expr, treg_set_expr_not_const01,
13031 arith_reg_or_treg_set_expr): New predicates.
13032 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
13033 arith_or_int_operand instead of logical_operand. Convert to
13034 insn_and_split. Try to optimize constant operand in splitter.
13035 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
13036 (*tstqi_t_zero): Delete.
13037 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
13038 (tstsi_t_and_not): Delete.
13039 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
13040 Convert to insn_and_split.
13041 (unnamed split, tstsi_t_zero_extract_xor,
13042 tstsi_t_zero_extract_subreg_xor_little,
13043 tstsi_t_zero_extract_subreg_xor_big): Delete.
13044 (*tstsi_t_shift_mask): New insn_and_split.
13045 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
13046 to recombine with surrounding insns when splitting.
13047 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
13048 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
13049 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
13050 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
13051 (*cbranch_div0s: Delete.
13052 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
13053 Try to recombine with surrounding insns when splitting. Add operand
13055 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
13056 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
13057 *addc_r_r_msb, *addc_2r_msb): Delete.
13058 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
13060 (*addc_negreg_t): New insn_and_split.
13061 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
13062 Try to recombine with surrounding insns when splitting.
13063 Add operand order variants.
13064 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
13065 insn_and_split patterns.
13066 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
13067 surrounding insns when splitting.
13068 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
13069 (*rotcl): Likewise. Add zero_extract variant.
13070 (*ashrsi2_31): New insn_and_split.
13071 (*negc): Convert to insn_and_split. Use treg_set_expr.
13072 (*zero_extend<mode>si2_disp_mem): Update comment.
13073 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
13075 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
13076 with surrounding insns when splitting.
13077 (any_treg_expr_to_reg): New insn_and_split.
13078 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
13079 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
13080 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
13081 *zero_extract_2): New single bit zero extract patterns.
13082 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
13083 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
13084 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
13085 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
13087 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
13088 register_operand for set source.
13090 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
13092 * i386.opt (prefetch_sse): New targetsave.
13093 * i386.c (ix86_function_specific_save): Save prefetch_sse.
13094 (ix86_function_specific_restore): Restore prefetch_sse and initialize
13095 ix86_cost/ix86_tune_cost.
13097 2015-01-23 David Malcolm <dmalcolm@redhat.com>
13099 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
13100 Support the JIT by using 0 as the language type.
13102 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
13105 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
13106 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
13107 (mark_regno_live, process_bb_lives): Pass new parameter value to
13108 make_hard_regno_born.
13110 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13112 PR rtl-optimization/63637
13113 PR rtl-optimization/60663
13114 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
13115 if elt->cost is MAX_COST for ASM_OPERANDS.
13116 (find_sets_in_insn): Fix up comment typo.
13117 (cse_insn): Don't set src_volatile for all non-volatile
13118 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
13119 or with "memory" clobber. Set elt->cost to MAX_COST
13120 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
13121 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
13123 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
13125 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
13128 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
13130 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
13131 libgcc/config/i386/elf-lib.h.
13133 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13136 * gcc.c (print_configuration): Don't print a blank line at the end
13138 (run_attempt): ... but here unstead.
13140 PR middle-end/64734
13141 * omp-low.c (scan_sharing_clauses): Don't ignore
13142 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
13143 on target data/update constructs.
13145 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
13148 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
13149 (DEBUG_RELOAD): Removed define.
13150 (m32c_limit_reload_class): Enable traces with if DEBUG0.
13151 (m32c_function_arg): Added a type cast.
13152 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
13153 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
13154 * config/m32c/bitops.md (andqi3_16): Likewise.
13155 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
13156 (push_a01_l): Likewise.
13158 2015-01-23 David Malcolm <dmalcolm@redhat.com>
13161 * main.c (main): Construct toplev instances with init_signals=true.
13162 * toplev.c (general_init): Add param "init_signals", and use it to
13163 conditionalize the calls to signal and host_hooks.extra_signals.
13164 (toplev::toplev): Add param "init_signals".
13165 (toplev::main): When invoking general_init, pass m_init_signals
13166 to control whether signal-handlers are installed.
13167 * toplev.h (toplev::toplev): Add param "init_signals".
13168 (toplev::m_init_signals): New field.
13170 2015-01-23 David Malcolm <dmalcolm@redhat.com>
13173 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
13174 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
13175 latter may be affected by the former (e.g. on i686).
13177 2015-01-23 Martin Liska <mliska@suse.cz>
13179 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
13180 false positive during profiledbootstrap.
13182 2015-01-23 Tom de Vries <tom@codesourcery.com>
13185 * lto-opts.c (lto_write_options): Output non-explicit conservative
13187 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
13188 (append_compiler_options): Pass -fopenacc through.
13190 2015-01-23 Tom de Vries <tom@codesourcery.com>
13193 * lto-opts.c (lto_write_options): Output non-explicit conservative
13195 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
13196 (append_compiler_options): Pass -fopenmp through.
13198 2015-01-23 Jakub Jelinek <jakub@redhat.com>
13201 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
13204 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
13205 * diagnostic.def (DK_ICE_NOBT): New kind.
13206 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
13207 like DK_ICE, but never print backtrace.
13208 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
13209 (internal_error_no_backtrace): New function.
13210 * gcc.c (execute): Use internal_error_no_backtrace instead of
13213 2015-01-22 Jeff Law <law@redhat.com>
13216 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
13217 improve code density for small immediate to memory case.
13218 (insv): Better handle bitfield assignments when the field is
13219 being set to all ones.
13220 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
13223 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13224 Jakub Jelinek <jakub@redhat.com>
13226 PR middle-end/64729
13227 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
13228 for !TARGET_LIBC_PROVIDES_SSP version and
13229 -fstack-protector-{all,strong,explicit} otherwise.
13230 * config/freebsd.h (LINK_SSP_SPEC): Handle
13231 -fstack-protector-{strong,explicit}.
13233 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
13234 H.J. Lu <hongjiu.lu@intel.com>
13237 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
13240 2015-01-22 Wei Mi <wmi@google.com>
13242 PR rtl-optimization/64557
13243 * dse.c (record_store): Call get_addr for mem_addr.
13244 (check_mem_read_rtx): Likewise.
13246 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
13248 * fold-const.c (const_binop): Add early return for non-tcc_binary.
13250 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13252 * toplev.c (init_local_tick): Process the failure when read
13253 fails for random_seed.
13255 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
13256 'pretty_name' to avoid memory overflow.
13258 2015-01-22 Richard Biener <rguenther@suse.de>
13260 PR middle-end/64728
13261 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
13262 abnormal coalescing on undefined SSA names.
13264 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
13268 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
13270 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
13272 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
13274 PR middle-end/63325
13275 * fold-const.c (fold_checksum_tree): Don't include value of
13276 expr->decl_with_vis.symtab_node in the checksum.
13278 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13280 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
13282 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
13285 * gcc.c (insert_comments): New function.
13286 (try_generate_repro): Call it.
13287 (append_text): Removed.
13289 2015-01-22 Richard Biener <rguenther@suse.de>
13291 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
13292 with IL incompatible options. Properly honor user optimize
13295 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
13297 PR rtl-optimization/64682
13298 * combine.c (distribute_notes): When moving a death note for
13299 a register that is set in the new I2, make sure to put it
13300 before that new I2.
13302 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
13304 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
13305 not TARGET_DEFAULT.
13307 2015-01-21 Jakub Jelinek <jakub@redhat.com>
13310 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
13311 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
13312 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
13315 * doc/invoke.texi (-fsanitize=vptr): Document.
13317 PR rtl-optimization/62078
13318 * dse.c: Include cfgcleanup.h.
13319 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
13320 anything call purge_all_dead_edges and cleanup_cfg at the end
13323 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
13325 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
13328 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13330 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
13333 2015-01-21 David Sherwood <david.sherwood@arm.com>
13334 Tejas Belagod <Tejas.Belagod@arm.com>
13336 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
13337 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
13338 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
13341 2015-01-21 David Sherwood <david.sherwood@arm.com>
13342 Tejas Belagod <Tejas.Belagod@arm.com>
13344 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
13345 (aarch64_reverse_mask): New decls.
13346 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
13347 (insn_count): New mode_attr.
13348 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
13349 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
13350 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
13351 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
13352 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
13353 (aarch64_simd_st4): New patterns.
13354 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
13355 (aarch64_reverse_mask): New functions.
13357 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
13359 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
13361 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
13362 addressing modes for BE.
13363 (aarch64_print_operand): Add 'R' specifier.
13364 (aarch64_simd_disambiguate_copy): Delete.
13365 (aarch64_simd_emit_reg_reg_move): New function.
13366 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
13367 in define_splits for structural moves.
13368 (mov<mode>): Use less restrictive predicates.
13369 (*aarch64_mov<mode>): Simplify and only allow for LE.
13370 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
13372 2015-01-21 Alan Hayward <alan.hayward@arm.com>
13374 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
13376 2015-01-21 Richard Henderson <rth@redhat.com>
13379 * ccmp.c (used_in_cond_stmt_p): Remove.
13380 (expand_ccmp_expr): Don't use it.
13382 2015-01-21 Nick Clifton <nickc@redhat.com>
13384 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
13387 2015-01-21 Richard Biener <rguenther@suse.de>
13389 PR middle-end/64313
13390 * tree-core.h (builtin_info, builtin_info_type): Turn from
13391 an object with two arrays into an array of an object with
13392 decl and two flags, implicit_p and declared_p.
13393 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
13394 set_builtin_decl, set_builtin_decl_implicit_p,
13395 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
13396 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
13397 * builtins.c (builtin_info): Adjust.
13398 * gimplify.c (gimplify_addr_expr): References to builtins
13399 that have been declared by the user makes them eligible for
13400 use by the compiler. Call set_builtin_decl_implicit_p on them.
13402 2015-01-20 Jeff Law <law@redhat.com>
13405 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
13406 allow pc-relative addresses in operand predicates or constraints.
13408 2015-01-21 Bin Cheng <bin.cheng@arm.com>
13410 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
13411 neon on aarch32 processors for stringops.
13413 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
13416 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
13418 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
13421 * ipa-inline.c: Include lto-streamer.h
13422 (report_inline_failed_reason): Output source file differences and
13423 flags on optimization/target node mismatch.
13424 (can_inline_edge_p): Consider caller to be the outer inline function;
13425 be less restrictive about matching opimize and optimize_size attributes.
13426 (inline_account_function_p): Break out from ...
13427 (inline_small_functions): ... here.
13428 * ipa-inline-transform.c (clone_inlined_nodes): Use
13429 inline_account_function_p.
13430 (inline_call): Use optimize attribution; use inline_account_function_p.
13431 (inline_transform): Use opt_for_fn.
13432 * ipa-inline.h (inline_account_function_p): Declare.
13434 2015-01-20 Jakub Jelinek <jakub@redhat.com>
13437 * dwarf2out.c (decl_piece_node): Don't put bitsize into
13438 mode if bitsize <= 0.
13439 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
13440 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
13441 sizes and positions.
13443 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
13445 * config/nios2/nios2.c (nios2_asm_file_end): Implement
13446 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
13448 (TARGET_ASM_FILE_END): Define.
13450 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13452 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
13453 (struct tune_params): Use the enum.
13454 * arm.c (arm_*_tune): Update.
13455 (arm_option_override): Update.
13457 2015-01-20 Richard Biener <rguenther@suse.de>
13460 * ipa-reference.c (add_static_var): Inline ...
13461 (analyze_function): ... here after splitting out from ...
13462 (is_proper_for_analysis): ... this.
13464 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
13467 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
13468 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
13469 replace the conditional with it's true branch.
13470 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
13471 (arm_lra_p): Remove.
13473 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
13475 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
13477 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13479 * config/tilegx/mul-tables.c: Move symtab.h include after
13480 coretypes.h include.
13481 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
13482 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
13483 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
13484 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
13485 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
13487 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
13491 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
13493 PR rtl-optimization/64081
13494 * loop-iv.c (def_pred_latch_p): New function.
13495 (latch_dominating_def): Allow specific cases with non-single
13497 (iv_get_reaching_def): Likewise.
13498 (check_complex_exit_p): New function.
13499 (check_simple_exit): Use check_complex_exit_p to allow certain cases
13500 with exits not executing on any iteration.
13502 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
13505 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
13506 to set branch cost.
13508 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
13511 * i386.c (gate): Check flag_expensive_optimizations and
13513 (ix86_option_override_internal): Drop optimize_size condition
13514 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
13515 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
13516 MASK_PREFER_AVX128.
13517 (ix86_avx256_split_vector_move_misalign,
13518 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
13519 * sse.md (all uses of TARGET_PREFER_AVX128): Add
13520 optimize_insn_for_speed_p check.
13522 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
13524 * config/mips/mips.h (FP_ASM_SPEC): New define.
13525 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
13528 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
13531 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
13532 nullptr for insn when reaching the first insn.
13533 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
13534 (sh_insn_operands_modified_between_p): Add nullptr check.
13535 (sh_find_extending_set_of_reg): Fix log message. Don't accept
13536 sign extending mem load if the insn contains any UNSPEC or
13539 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
13541 * params.def (inline-unit-growth): Drop to 15%.
13542 * invoke.texi (inline-unit-growth): Document change.
13544 2015-01-19 Martin Liska <mliska@suse.cz>
13547 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
13548 function for second argument of OBJ_TYPE_REF.
13550 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
13553 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
13554 whether function is an alias.
13556 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
13558 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
13561 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
13563 PR rtl-optimization/64671
13564 * lra-remat.c (operand_to_remat): Don't consider jump and call
13567 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
13570 * config/rs6000/default64.h: Include rs6000-cpus.def.
13571 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
13572 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
13573 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
13575 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
13577 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
13578 pseudo-op to specify assembler dialect.
13580 2015-01-19 Martin Liska <mliska@suse.cz>
13583 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
13584 Handle safe potentially removed nodes during filtering.
13586 2015-01-19 Martin Liska <mliska@suse.cz>
13588 * doc/extend.texi (no_icf): Add new attribute description.
13589 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
13590 where the pass attempts to merge a function with no_icf attribute.
13592 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13595 * doc/md.texi (ARM Options): Document register constraints.
13597 2015-01-19 Jiong Wang <jiong.wang@arm.com>
13598 Andrew Pinski <apinski@cavium.com>
13601 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
13602 (ashl<mode>3): Don't expand if operands[2] is not constant.
13604 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13607 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
13608 Match xor-and-xor RTL pattern.
13610 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
13612 PR rtl-optimization/64081
13613 * loop-iv.c (def_pred_latch_p): New function.
13614 (latch_dominating_def): Allow specific cases with non-single
13616 (iv_get_reaching_def): Likewise.
13617 (check_complex_exit_p): New function.
13618 (check_simple_exit): Use check_complex_exit_p to allow certain cases
13619 with exits not executing on any iteration.
13621 2015-01-19 Jakub Jelinek <jakub@redhat.com>
13623 * common.opt (fgraphite): Fix a typo.
13625 2015-01-19 Felix Yang <felix.yang@huawei.com>
13627 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
13629 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
13630 uminp, smax_nanp, smin_nanp): New builtins.
13631 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
13632 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
13633 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
13634 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
13635 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
13636 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
13637 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
13638 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
13639 vpminnms_f32): Rewrite using builtin functions.
13641 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
13644 * omp-low.c (offload_symbol_decl): Remove variable.
13645 (get_offload_symbol_decl): Remove function.
13646 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
13647 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
13648 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
13649 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
13650 BUILT_IN_GOACC_UPDATE don't pass it at all.
13652 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
13654 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
13657 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
13659 * ipa-chkp.c (chkp_produce_thunks): Add early param
13660 to split thunks production into two passes. Keep
13661 'always_inline' function bodies after the first pass.
13662 (pass_data_ipa_chkp_early_produce_thunks): New.
13663 (pass_ipa_chkp_early_produce_thunks): New.
13664 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
13665 chkp_produce_thunks signature.
13666 (make_pass_ipa_chkp_early_produce_thunks): New.
13667 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
13668 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
13669 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
13671 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
13673 * cgraph.c (cgraph_node::dump): Dump profile flags.
13675 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
13678 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
13679 reg appear first in the parallel.
13681 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
13683 * ipa-reference.c (set_reference_optimization_summary,
13684 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
13686 (ignore_module_statics): New static var.
13687 (propagate_bits): If ipa-reference is disabled, do not look into local
13689 (analyze_function): Disable analysis when ipa_reference is disabled.
13690 (generate_summary): Do not dump when reference is disabled;
13691 collect vars accessed from functions with ipa-reference disabled.
13692 (get_read_write_all_from_node): When ipa-reference is disabled, use the
13694 (gate): Enable for LTO.
13695 (ignore_edge_p): New function.
13696 (propagate): Skip functions w/o ipa-reference analysis.
13697 * optc-save-gen.awk: Handle optimize_debug correctly.
13698 * opth-gen.awk: Likewise.
13699 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
13700 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
13701 fira-share-save-slots, fira-share-spill-slots,
13702 fmodulo-sched-allow-regmoves, fpartial-inlining,
13703 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
13704 ftracer, ftree-parallelize-loops, fassociative-math,
13705 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
13707 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
13708 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
13710 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
13713 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
13716 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
13718 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
13720 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
13722 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
13723 Remove duplicate option listings.
13725 2015-01-18 Felix Yang <felix.yang@huawei.com>
13727 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
13728 (autofdo_source_profile::get_callsite_total_count,
13729 function_instance::get_function_instance_by_decl,
13730 string_table::get_index, string_table::get_index_by_decl,
13731 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
13732 Fix comment typos. Reformatting and minor code rearrangement.
13734 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
13736 * config/rs6000/rs6000.md (probe_stack): Delete.
13737 (probe_stack_address): New.
13739 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
13741 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
13742 to test for 32-bit ABIs, not !TARGET_POWERPC64.
13744 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
13746 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
13747 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
13748 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
13750 (rs6000_libcall_value): Use the new function.
13752 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
13754 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
13756 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
13758 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
13759 implement a more precise life analysis for it during backward scan.
13761 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13763 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
13765 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
13767 PR rtl-optimization/52773
13768 * calls.c (emit_library_call_value): When pushing arguments use
13769 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
13770 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
13771 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
13773 2015-01-17 Jeff Law <law@redhat.com>
13775 PR rtl-optimization/32790
13776 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
13777 not ZERO_EXTEND in SET_DESTs.
13779 2015-01-17 Alan Modra <amodra@gmail.com>
13781 * cprop.c (do_local_cprop): Revert last change.
13783 2015-01-16 DJ Delorie <dj@redhat.com>
13784 Nick Clifton <nickc@redhat.com>
13786 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
13787 (addhi3_real): Likewise. Fix [HL+0] syntax.
13788 (subqi3_real): Likewise.
13789 (subhi3_real): Likewise.
13790 (cbranchqi4_real): Likewise. Allow saddr,#imm.
13791 (cbranchhi4_real): Likewise.
13792 (cbranchhi4_real_inverted): Likewise.
13793 (cbranchsi4_real_lt): Likewise.
13794 (cbranchsi4_real_ge): Likewise.
13795 (cbranchsi4_real_ge): Likewise.
13796 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
13797 (sub<mode>3_virt): Likewise.
13798 (cbranchqi4_virt): Likewise.
13799 (cbranchhi4_virt): Likewise.
13800 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
13801 always use '[reg+imm]' even when imm is zero.
13802 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
13803 (rl78_general_operand): New.
13804 (rl78_nonimmediate_operand): New.
13805 (rl78_nonfar_operand): Use them.
13806 (rl78_nonfar_nonimm_operand): Likewise.
13807 (rl78_stack_based_mem): Fix.
13808 * config/rl78/constraints.md (Ibqi): New.
13813 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
13814 (iorqi3): Likewise.
13815 (xorqi3): Likewise.
13816 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
13818 * config/rl78/constrains (Qs8): New constraint.
13819 * config/rl78/rl78.c (rl78_flags_already_set): New function.
13820 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
13821 * config/rl78/rl78-real.md (update_Z): New attribute.
13822 Update patterns to set it.
13823 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
13824 shorter compare and branch sequence can be used.
13825 (cbranchhi4_real): Likewise.
13826 (cbranchhi4_real_inverted): Likewise.
13828 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
13829 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
13831 * config/rl78/rl78.c (rl78_get_name_encoding): New.
13832 (rl78_option_override): Allow -mes0 only if C.
13833 (characterize_address): Support subregs of symbol_refs.
13834 (rl78_addr_space_address_mode): Move. Add __near.
13835 (rl78_far_p): Likewise.
13836 (rl78_addr_space_pointer_mode): Likewise.
13837 (rl78_as_legitimate_address): Likewise.
13838 (rl78_addr_space_subset_p): Likewise.
13839 (rl78_addr_space_convert): Likewise.
13840 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
13841 symbols with -mes0.
13842 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
13844 (rl78_alloc_physical_registers_op1): Change logic to prefer
13845 symbol[BC] addressing.
13846 (frodata_section): New.
13847 (rl78_asm_init_sections): Initialize it.
13848 (rl78_select_section): Put __far readonly symbols in .frodata.
13849 (rl78_make_type_far): New.
13850 (rl78_insert_attributes): Force all readonly symbols to be
13852 (rl78_asm_out_integer): New.
13853 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
13854 * config/rl78/rl78.opt (-mes0): New.
13856 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
13857 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
13858 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13859 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
13860 (rl78_saddr_p): New.
13861 (rl78_output_aligned_common): New.
13862 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
13863 (rl78_handle_saddr_attribute): New.
13864 (rl78_handle_naked_attribute): New.
13865 (rl78_attribute_table): Add saddr.
13866 (rl78_print_operand_1): Don't print '!' on saddr operands.
13867 (rl78_print_operand_1): Strip encodings.
13869 (rl78_strip_name_encoding): New.
13870 (rl78_attrlist_to_encoding): New.
13871 (rl78_encode_section_info): New.
13872 (rl78_asm_init_sections): New.
13873 (rl78_select_section): New.
13874 (rl78_output_labelref): New.
13875 (rl78_output_aligned_common): New.
13876 (rl78_asm_out_integer): New.
13877 (rl78_asm_ctor_dtor): New.
13878 (rl78_asm_constructor): New.
13879 (rl78_asm_destructor): New.
13881 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
13882 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
13883 (transcode_memory_rtx): Update.
13884 (rl78_expand_epilogue): Use A_REG instead of 0.
13886 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13888 * config/arm/arm-protos.h (struct tune_params): New field
13889 sched_autopref_queue_depth.
13890 * config/arm/arm.c (sched-int.h): Include header.
13891 (arm_first_cycle_multipass_dfa_lookahead_guard,)
13892 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
13893 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
13894 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
13895 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
13896 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
13897 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
13898 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
13899 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
13900 * config/arm/t-arm (arm.o): Update.
13901 * haifa-sched.c (update_insn_after_change): Update.
13902 (rank_for_schedule): Use auto-prefetcher model, if requested.
13903 (autopref_multipass_init): New static function.
13904 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
13905 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
13906 variable for debug dumps.
13907 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
13908 (autopref_multipass_dfa_lookahead_guard): New global function that
13909 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
13910 (init_h_i_d): Update.
13911 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
13912 * sched-int.h (enum autopref_multipass_data_status): New const enum.
13913 (autopref_multipass_data_): Structure for auto-prefetcher data.
13914 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
13915 (struct _haifa_insn_data:autopref_multipass_data): New field.
13916 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
13917 (autopref_multipass_dfa_lookahead_guard): Declare.
13919 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13921 * rtlanal.c (get_base_term): Handle SCRATCH.
13923 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13925 * config/aarch64/aarch64.c
13926 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
13927 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
13929 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
13930 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
13932 2015-01-17 Alan Modra <amodra@gmail.com>
13934 * cprop.c (do_local_cprop): Disallow replacement of fixed
13937 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13940 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
13943 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
13945 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
13946 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
13948 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13950 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
13951 * config/arm/thumb1.md: ... Here.
13953 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
13955 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
13956 TImode for TARGET_32BIT.
13958 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
13960 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
13961 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
13963 (rs6000_abi_word_mode): New function.
13965 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
13967 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
13968 instead of UNITS_PER_WORD to describe the size of stack slots.
13970 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
13972 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
13973 as rs6000_promote_function_mode. Move comment to there.
13974 (rs6000_promote_function_mode): New function.
13976 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
13978 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
13979 -mpowerpc64 is active.
13981 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
13983 PR middle-end/64353
13984 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
13987 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
13989 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
13990 introduced in revision 219724.
13992 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13993 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13996 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
13997 destination is not a GP reg.
13998 (*movdi_aarch64): Likewise.
14000 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
14003 * config/rs6000/default64.h: Revert ISA change.
14005 2015-01-16 Richard Biener <rguenther@suse.de>
14007 PR middle-end/64614
14008 * tree-ssa-uninit.c: Include tree-cfg.h.
14009 (MAX_SWITCH_CASES): New define.
14010 (convert_control_dep_chain_into_preds): Handle switch statements.
14011 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
14012 (normalize_one_pred_1): Do not split bit-manipulations.
14015 2015-01-16 Richard Biener <rguenther@suse.de>
14017 PR tree-optimization/64568
14018 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
14019 complex load rewriting for TARGET_MEM_REFs.
14021 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
14023 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
14025 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
14028 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
14030 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
14031 (aarch64_lra_p): Remove.
14033 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
14036 * ipa-chkp.h (chkp_instrumentable_p): New.
14037 * ipa-chkp.c: Include tree-inline.h.
14038 (chkp_instrumentable_p): New.
14039 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
14040 Fix processing of not instrumentable functions.
14041 (chkp_versioning): Use chkp_instrumentable_p. Warn about
14042 not instrumentable functions.
14043 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
14044 chkp_instrumentable_p.
14045 * tree-inline.h (copy_forbidden): New.
14046 * tree-inline.c (copy_forbidden): Not static anymore.
14048 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14050 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
14053 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
14055 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
14056 type OP_OUT to OP_INOUT.
14058 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
14060 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
14061 (high x) y) to y if x and y have the same base.
14063 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
14065 * config/arm/cortex-a57.md: New.
14066 * config/aarch64/aarch64.md: Include it.
14067 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
14068 * config/aarch64/aarch64-tune.md: Regenerate.
14070 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
14073 * ccmp.c (expand_ccmp_next): New function.
14074 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
14075 and compare insn sequence.
14076 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
14077 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
14078 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
14079 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
14080 (*ccmp_ior): Changed to ccmp_ior<mode>.
14081 (cmp<mode>): New pattern.
14082 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
14084 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
14086 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
14088 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
14089 _mm256_bsrli_epi128): New.
14090 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
14092 2015-01-15 Jiong Wang <jiong.wang@arm.com>
14094 * expmed.c (store_bit_field_using_insv): Improve warning message.
14095 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
14097 2015-01-15 Jiong Wang <jiong.wang@arm.com>
14099 PR rtl-optimization/64011
14100 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
14101 there is partial overflow.
14103 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
14105 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
14107 (nds32_expand_epilogue_v3pop): Likewise.
14108 * config/nds32/nds32.md (sibcall): Define this for sibling call
14110 (sibcall_register): Likewise.
14111 (sibcall_immediate): Likewise.
14112 (sibcall_value): Likewise.
14113 (sibcall_value_register): Likewise.
14114 (sibcall_value_immediate): Likewise.
14115 (sibcall_epilogue): Likewise.
14116 (epilogue): Pass false to indicate this is not a sibcall epilogue.
14117 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
14118 (nds32_expand_epilogue_v3pop): Likewise.
14120 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
14122 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
14123 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
14124 (return_internal): New.
14125 (return): Define this named pattern.
14126 (simple_return): Define this named pattern.
14127 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
14128 pattern instead of unspec_volatile_func_return.
14129 (nds32_expand_epilogue_v3pop): Likewise.
14130 (nds32_can_use_return_insn): New function.
14132 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
14134 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
14135 * config/nds32/nds32.md (pop25return): New.
14136 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
14137 pop25return pattern.
14139 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
14141 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
14142 -mforbid-fp-as-gp, and -mex9 options.
14144 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
14146 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
14147 remove -mgp-direct option.
14149 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
14151 * doc/invoke.texi (--param early-inlining-insns): Update default value.
14152 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
14154 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
14156 * ipa-inline.c (inline_small_functions): Work around hints
14159 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
14162 * doc/invoke.texi (Option Summary): Document new Nios II
14164 (Nios II Options): Likewise.
14165 * config/nios2/nios2.opt: Add -mgpopt= option support.
14166 Modify existing -mgpopt and -mno-gpopt options to be aliases.
14167 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
14168 * config/nios2/nios2.c (nios2_option_override): Adjust
14169 -mgpopt defaulting.
14170 (nios2_in_small_data_p): Return true for explicit small data
14171 sections even with -G0.
14172 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
14175 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
14178 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
14180 (inline_call): Fix removal of aliases.
14182 2015-01-15 Jakub Jelinek <jakub@redhat.com>
14184 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
14185 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
14186 * opts.c (common_handle_option): Add -fsanitize=vptr.
14187 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
14188 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
14189 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
14190 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
14191 (ubsan_expand_vptr_ifn): New prototype.
14192 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
14193 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
14194 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
14195 expand_LOOP_VECTORIZED): Make argument nameless, remove
14197 (expand_UBSAN_VPTR): New function.
14198 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
14200 (UBSAN_VPTR): New internal function.
14201 * sanopt.c (tree_map_traits): Renamed to ...
14202 (sanopt_tree_map_traits): ... this.
14203 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
14204 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
14205 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
14206 (maybe_optimize_ubsan_vptr_ifn): New function.
14207 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
14208 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
14210 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
14211 internal calls like pure functions for aliasing, even when they
14212 have other side-effects that prevent making them ECF_PURE.
14213 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
14214 (ubsan_expand_vptr_ifn): New function.
14216 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
14218 PR rtl-optimization/64110
14219 * stmt.c (parse_output_constraint): Process '^' and '$'.
14220 (parse_input_constraint): Ditto.
14221 * lra-constraints.c (process_alt_operands): Process the new
14223 * ira-costs.c (record_reg_classes): Process the new constraint
14225 * genoutput.c (indep_constraints): Add '^' and '$'.
14226 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
14227 * doc/md.texi: Add description of the new constraints.
14229 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
14230 Bernd Schmidt <bernds@codesourcery.com>
14231 Cesar Philippidis <cesar@codesourcery.com>
14232 James Norris <jnorris@codesourcery.com>
14233 Tom de Vries <tom@codesourcery.com>
14234 Ilmir Usmanov <i.usmanov@samsung.com>
14235 Dmitry Bocharnikov <dmitry.b@samsung.com>
14236 Evgeny Gavrin <e.gavrin@samsung.com>
14237 Jakub Jelinek <jakub@redhat.com>
14239 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
14240 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
14241 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
14242 New function types.
14243 * builtins.c: Include "gomp-constants.h".
14244 (expand_builtin_acc_on_device): New function.
14245 (expand_builtin, is_inexpensive_builtin): Handle
14246 BUILT_IN_ACC_ON_DEVICE.
14247 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
14249 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
14251 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
14252 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
14253 i386/intelmic-offload.h.
14254 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
14255 to libgomp and its dependencies.
14256 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
14257 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
14258 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
14259 * config/ia64/hpux.h (LIB_SPEC): Likewise.
14260 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14261 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
14262 * doc/generic.texi: Update for OpenACC changes.
14263 * doc/gimple.texi: Likewise.
14264 * doc/invoke.texi: Likewise.
14265 * doc/sourcebuild.texi: Likewise.
14266 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14267 GF_OMP_FOR_KIND_OACC_LOOP.
14268 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
14269 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
14270 GF_OMP_TARGET_KIND_OACC_UPDATE,
14271 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
14273 * gimple.c: Update comments for OpenACC changes.
14274 * gimple.def: Likewise.
14275 * gimple.h: Likewise.
14276 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
14277 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
14278 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
14279 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
14280 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
14282 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
14283 * gimplify.c: Include "gomp-constants.h".
14284 Update comments for OpenACC changes.
14285 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
14286 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
14287 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
14288 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
14289 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
14290 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
14291 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
14292 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
14293 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
14295 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
14296 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
14297 OMP_CLAUSE_SET_MAP_KIND.
14298 (gimplify_oacc_cache): New function.
14299 (gimplify_omp_for): Handle OACC_LOOP.
14300 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
14302 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
14303 OACC_EXIT_DATA, OACC_UPDATE.
14304 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
14305 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
14306 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
14307 (gimplify_body): Consider flag_openacc next to flag_openmp.
14308 * lto-streamer-out.c: Include "gomp-constants.h".
14309 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
14310 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
14311 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
14312 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
14313 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
14314 (BUILT_IN_ACC_ON_DEVICE): New builtins.
14315 * omp-low.c: Include "gomp-constants.h".
14316 Update comments for OpenACC changes.
14317 (struct omp_context): Add reduction_map, gwv_below, gwv_this
14319 (extract_omp_for_data, use_pointer_for_field, install_var_field)
14320 (new_omp_context, delete_omp_context, scan_sharing_clauses)
14321 (create_omp_child_function, scan_omp_for, scan_omp_target)
14322 (check_omp_nesting_restrictions, lower_reduction_clauses)
14323 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
14324 Update for OpenACC changes.
14325 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
14326 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
14327 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
14328 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
14329 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
14330 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
14332 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14333 Handle GF_OMP_FOR_KIND_OACC_LOOP.
14334 (expand_omp_target, lower_omp_target): Handle
14335 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
14336 GF_OMP_TARGET_KIND_OACC_UPDATE,
14337 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
14338 GF_OMP_TARGET_KIND_OACC_DATA.
14339 (pass_expand_omp::execute, execute_lower_omp)
14340 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
14342 (offload_symbol_decl): New variable.
14343 (oacc_get_reduction_array_id, oacc_max_threads)
14344 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
14345 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
14346 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
14347 (oacc_gimple_assign, oacc_initialize_reduction_data)
14348 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
14350 (is_targetreg_ctx): Remove function.
14351 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
14352 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
14353 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
14354 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
14355 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
14356 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
14357 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
14358 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
14359 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
14360 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
14361 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
14362 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
14363 * tree-core.h: Update comments for OpenACC changes.
14364 (enum omp_clause_map_kind): Remove.
14365 (struct tree_omp_clause): Change type of map_kind member from enum
14366 omp_clause_map_kind to unsigned char.
14367 * tree-inline.c: Update comments for OpenACC changes.
14368 * tree-nested.c: Likewise. Include "gomp-constants.h".
14369 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
14370 (convert_tramp_reference_stmt, convert_gimple_call): Update for
14371 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
14372 OMP_CLAUSE_SET_MAP_KIND.
14373 * tree-pretty-print.c: Include "gomp-constants.h".
14374 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
14375 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
14376 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
14377 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
14378 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
14379 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
14380 instead of OMP_CLAUSE_MAP_*.
14381 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
14382 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
14383 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
14384 * tree-streamer-in.c: Include "gomp-constants.h".
14385 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
14386 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
14387 * tree-streamer-out.c: Include "gomp-constants.h".
14388 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
14390 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
14391 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
14392 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
14393 * tree.c (omp_clause_num_ops): Update accordingly.
14394 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
14396 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
14397 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
14398 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
14399 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
14400 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
14401 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
14402 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
14403 (OMP_CLAUSE_SET_MAP_KIND): New macro.
14404 * varpool.c (varpool_node::get_create): Consider flag_openacc next
14406 * config/i386/intelmic-offload.h: New file.
14407 * config/nvptx/offload.h: Likewise.
14409 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14411 * explow.h: Remove duplicate contents.
14412 * dojump.h: Likewise.
14414 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
14416 * arm.c (arm_xgene_tune): Add default initializer for instruction
14419 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
14423 * ipa.c (symbol_table::remove_unreachable_nodes):
14424 Do not put abstract origins into boundary.
14426 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
14428 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
14429 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
14431 2015-01-15 Steve Ellcey <sellcey@mips.com>
14433 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
14434 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
14435 builtins.def, and chkp-builtins.def.
14437 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
14439 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
14442 2015-01-15 Richard Biener <rguenther@suse.de>
14444 PR tree-optimization/61743
14445 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
14446 information on PHIs for some simple cases.
14448 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14450 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
14452 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
14453 * config/arm/arm-cores.def (xgene1): New entry.
14454 * config/arm/arm-tables.opt: Regenerate.
14455 * config/arm/arm-tune.md: Regenerate.
14456 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
14458 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
14460 * tree-if-conv.c: Include hash-map.h.
14461 (aggressive_if_conv): New variable.
14462 (fold_build_cond_expr): Add simplification of non-zero condition.
14463 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
14464 destination block is not always executed.
14465 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
14466 than two predecessors if AGGRESSIVE_IF_CONV is true.
14467 (if_convertible_stmt_p): Fix commentary.
14468 (all_preds_critical_p): New function.
14469 (has_pred_critical_p): New function.
14470 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
14471 BB can have more than two predecessors and all incoming edges can be
14473 (predicate_bbs): Skip predication for loop exit block, use build2_loc
14474 to compute predicate for true edge.
14475 (find_phi_replacement_condition): Delete this function.
14476 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
14477 Allow interchange PHI arguments if EXTENDED is false.
14478 Change check that block containing reduction statement candidate
14479 is predecessor of phi-block since phi may have more than two arguments.
14480 (phi_args_hash_traits): New helper structure.
14481 (struct phi_args_hash_traits): New type.
14482 (phi_args_hash_traits::hash): New function.
14483 (phi_args_hash_traits::equal_keys): New function.
14484 (gen_phi_arg_condition): New function.
14485 (predicate_scalar_phi): Add handling of phi nodes with more than two
14486 arguments, delete COND and TRUE_BB arguments, insert body of
14487 find_phi_replacement_condition to predicate ordinary phi nodes.
14488 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
14489 delete call of find_phi_replacement_condition and invoke
14490 predicate_scalar_phi with two arguments.
14491 (insert_gimplified_predicates): Add assert that non-predicated block
14492 don't have statements to insert.
14493 (ifcvt_split_critical_edges): New function.
14494 (ifcvt_split_def_stmt): Likewise.
14495 (ifcvt_walk_pattern_tree): Likewise.
14496 (stmt_is_root_of_bool_pattern): Likewise.
14497 (ifcvt_repair_bool_pattern): Likewise.
14498 (ifcvt_local_dce): Likewise.
14499 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
14500 is copy of inner or outer loop force_vectorize field, invoke
14501 ifcvt_split_critical_edges, ifcvt_local_dce and
14502 ifcvt_repair_bool_pattern for aggressive if-conversion.
14504 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
14506 * config/aarch64/aarch64.md: Include xgene1.md.
14507 * config/aarch64/xgene1.md: New file.
14509 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14511 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
14512 xgene1 (APM XGene-1) core definition.
14513 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
14514 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
14515 * doc/invoke.texi: Document -mcpu=xgene1.
14517 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14519 * dojump.h: New header file.
14520 * explow.h: Likewise.
14521 * expr.h: Remove includes.
14522 Move expmed.c prototypes to expmed.h.
14523 Move dojump.c prototypes to dojump.h.
14524 Move alias.c prototypes to alias.h.
14525 Move explow.c prototypes to explow.h.
14526 Move calls.c prototypes to calls.h.
14527 Move emit-rtl.c prototypes to emit-rtl.h.
14528 Move varasm.c prototypes to varasm.h.
14529 Move stmt.c prototypes to stmt.h.
14530 (saved_pending_stack_adjust): Move to dojump.h.
14531 (adjust_address): Move to explow.h.
14532 (adjust_address_nv): Move to emit-rtl.h.
14533 (adjust_bitfield_address): Likewise.
14534 (adjust_bitfield_address_size): Likewise.
14535 (adjust_bitfield_address_nv): Likewise.
14536 (adjust_automodify_address_nv): Likewise.
14537 * explow.c (expr_size): Move to expr.c.
14538 (int_expr_size): Likewise.
14539 (tree_expr_size): Likewise.
14540 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14541 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
14542 * genemit.c (main): Generate includes statistics.h, real.h,
14543 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
14545 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
14546 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
14547 explow.h, emit-rtl.h, stmt.h.
14548 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
14549 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
14550 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
14551 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
14552 emit-rtl.h, varasm.h, stmt.h.
14553 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
14554 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
14555 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
14556 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
14557 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
14558 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
14559 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
14560 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
14561 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
14562 tm.h tree.h varasm.h vec.h wide-int.h.
14563 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14564 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
14565 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
14566 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
14567 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
14568 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
14569 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
14570 * loop-iv.c: Likewise.
14571 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
14572 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
14573 statistics.h stmt.h tree.h varasm.h wide-int.h.
14574 * lra-constraints.c: Likewise.
14575 * lra-eliminations.c: Likewise.
14576 * lra-lives.c: Likewise.
14577 * lra-remat.c: Likewise.
14578 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14579 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
14580 statistics.h stmt.h tree.h varasm.h wide-int.h.
14581 * hw-doloop.c: Likewise.
14582 * ira-color.c: Likewise.
14583 * ira-emit.c: Likewise.
14584 * loop-doloop.c: Likewise.
14585 * loop-invariant.c: Likewise.
14586 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14587 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
14588 statistics.h stmt.h tree.h varasm.h wide-int.h.
14589 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
14590 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
14591 statistics.h stmt.h tree.h varasm.h wide-int.h.
14592 * combine-stack-adj.c: Likewise.
14595 * ifcvt.c: Likewise.
14596 * ira-costs.c: Likewise.
14597 * jump.c: Likewise.
14598 * lra-coalesce.c: Likewise.
14599 * lra-spills.c: Likewise.
14600 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14601 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
14602 stmt.h varasm.h wide-int.h.
14603 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
14604 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
14606 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
14607 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
14608 statistics.h stmt.h varasm.h wide-int.h.
14609 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
14610 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
14611 varasm.h wide-int.h.
14612 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
14613 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
14614 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
14615 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
14616 statistics.h stmt.h.
14617 * config/tilepro/tilepro.c: Likewise.
14618 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
14619 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
14620 * config/pdp11/pdp11.c: Likewise.
14621 * config/xtensa/xtensa.c: Likewise.
14622 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
14623 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
14625 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14626 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
14627 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
14628 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14629 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
14630 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
14631 * rtl-chkp.c: Likewise.
14632 * tree-chkp-opt.c: Likewise.
14633 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
14634 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
14635 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
14636 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14637 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
14638 statistics.h stmt.h.
14639 * tree-vect-data-refs.c: Likewise.
14640 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
14641 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14642 rtl.h statistics.h stmt.h varasm.h.
14643 * internal-fn.c: Likewise.
14644 * ipa-icf-gimple.c: Likewise.
14645 * lto-section-out.c: Likewise.
14646 * tree-data-ref.c: Likewise.
14647 * tree-nested.c: Likewise.
14648 * tree-outof-ssa.c: Likewise.
14649 * tree-predcom.c: Likewise.
14650 * tree-pretty-print.c: Likewise.
14651 * tree-scalar-evolution.c: Likewise.
14652 * tree-ssa-strlen.c: Likewise.
14653 * tree-vect-loop.c: Likewise.
14654 * tree-vect-patterns.c: Likewise.
14655 * tree-vect-slp.c: Likewise.
14656 * tree-vect-stmts.c: Likewise.
14657 * tsan.c: Likewise.
14658 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14659 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
14661 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
14662 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14663 statistics.h stmt.h varasm.h.
14664 * loop-unroll.c: Likewise.
14665 * ubsan.c: Likewise.
14666 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
14667 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
14669 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14670 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
14671 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
14672 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
14673 statistics.h stmt.h.
14674 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
14675 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
14676 statistics.h stmt.h varasm.h.
14677 * gimple-match-head.c: Likewise.
14678 * lto-cgraph.c: Likewise.
14679 * lto-section-in.c: Likewise.
14680 * lto-streamer-in.c: Likewise.
14681 * lto-streamer-out.c: Likewise.
14682 * tree-affine.c: Likewise.
14683 * tree-cfg.c: Likewise.
14684 * tree-cfgcleanup.c: Likewise.
14685 * tree-if-conv.c: Likewise.
14686 * tree-into-ssa.c: Likewise.
14687 * tree-ssa-alias.c: Likewise.
14688 * tree-ssa-copyrename.c: Likewise.
14689 * tree-ssa-dse.c: Likewise.
14690 * tree-ssa-forwprop.c: Likewise.
14691 * tree-ssa-live.c: Likewise.
14692 * tree-ssa-math-opts.c: Likewise.
14693 * tree-ssa-pre.c: Likewise.
14694 * tree-ssa-sccvn.c: Likewise.
14695 * tree-tailcall.c: Likewise.
14696 * tree-vect-generic.c: Likewise.
14697 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14698 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
14699 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14700 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
14701 * varasm.c: Likewise.
14702 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14703 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
14705 * init-regs.c: Likewise.
14707 * omp-low.c: Likewise.
14708 * stack-ptr-mod.c: Likewise.
14709 * tree-ssa-reassoc.c: Likewise.
14710 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14711 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
14713 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14714 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
14715 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14716 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
14717 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14718 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
14719 * tree-ssa-phiopt.c: Likewise.
14720 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14721 fixed-value.h hashtab.h real.h statistics.h stmt.h.
14722 * config/fr30/fr30.c: Likewise.
14723 * config/frv/frv.c: Likewise.
14724 * expr.c: Likewise.
14725 * final.c: Likewise.
14726 * optabs.c: Likewise.
14727 * passes.c: Likewise.
14728 * simplify-rtx.c: Likewise.
14729 * stmt.c: Likewise.
14730 * toplev.c: Likewise.
14731 * var-tracking.c: Likewise.
14732 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14733 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
14734 * lower-subreg.c: Likewise.
14735 * postreload-gcse.c: Likewise.
14737 * reginfo.c: Likewise.
14738 * store-motion.c: Likewise.
14739 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14740 fixed-value.h hashtab.h real.h stmt.h varasm.h.
14741 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14742 fixed-value.h hashtab.h statistics.h stmt.h.
14743 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14744 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
14745 * except.c: Likewise.
14746 * explow.c: Likewise.
14747 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14748 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
14750 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14751 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
14752 * tree-ssa-structalias.c: Likewise.
14753 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14754 fixed-value.h insn-config.h real.h statistics.h.
14755 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14756 fixed-value.h insn-config.h real.h statistics.h stmt.h.
14757 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14758 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
14759 * cfgbuild.c: Likewise.
14760 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14761 fixed-value.h real.h rtl.h statistics.h stmt.h.
14762 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14763 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
14764 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14765 fixed-value.h real.h statistics.h stmt.h.
14766 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
14767 fixed-value.h real.h statistics.h stmt.h varasm.h.
14768 * cprop.c: Likewise.
14769 * modulo-sched.c: Likewise.
14770 * postreload.c: Likewise.
14771 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
14772 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
14773 statistics.h stmt.h varasm.h.
14774 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
14775 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14776 rtl.h statistics.h stmt.h varasm.h.
14777 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
14778 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
14780 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
14781 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
14783 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
14784 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
14786 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
14787 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
14788 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14789 function.h real.h statistics.h stmt.h varasm.h.
14790 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14791 insn-config.h real.h statistics.h stmt.h.
14792 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
14793 statistics.h stmt.h.
14794 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
14795 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
14796 statistics.h stmt.h varasm.h.
14797 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
14798 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
14799 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
14800 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
14801 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
14802 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
14803 statistics.h stmt.h varasm.h.
14804 * ipa-polymorphic-call.c: Likewise.
14805 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
14806 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14807 statistics.h stmt.h.
14808 * config/c6x/c6x.c: Likewise.
14809 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
14810 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
14811 statistics.h stmt.h varasm.h.
14812 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
14813 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
14815 * ipa-split.c: Likewise.
14816 * tree-eh.c: Likewise.
14817 * tree-ssa-dce.c: Likewise.
14818 * tree-ssa-loop-niter.c: Likewise.
14819 * tree-vrp.c: Likewise.
14820 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
14821 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
14823 * config/nds32/nds32-fp-as-gp.c: Likewise.
14824 * config/nds32/nds32-intrinsic.c: Likewise.
14825 * config/nds32/nds32-isr.c: Likewise.
14826 * config/nds32/nds32-md-auxiliary.c: Likewise.
14827 * config/nds32/nds32-memory-manipulation.c: Likewise.
14828 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14829 * config/nds32/nds32-predicates.c: Likewise.
14830 * config/nds32/nds32.c: Likewise.
14831 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
14832 fixed-value.h hashtab.h real.h statistics.h.
14833 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
14834 fixed-value.h hashtab.h real.h statistics.h stmt.h.
14835 * config/arm/arm.c: Likewise.
14836 * config/avr/avr.c: Likewise.
14837 * config/bfin/bfin.c: Likewise.
14838 * config/h8300/h8300.c: Likewise.
14839 * config/i386/i386.c: Likewise.
14840 * config/ia64/ia64.c: Likewise.
14841 * config/iq2000/iq2000.c: Likewise.
14842 * config/m32c/m32c.c: Likewise.
14843 * config/m32r/m32r.c: Likewise.
14844 * config/m68k/m68k.c: Likewise.
14845 * config/mcore/mcore.c: Likewise.
14846 * config/mep/mep.c: Likewise.
14847 * config/mips/mips.c: Likewise.
14848 * config/mn10300/mn10300.c: Likewise.
14849 * config/moxie/moxie.c: Likewise.
14850 * config/pa/pa.c: Likewise.
14851 * config/rl78/rl78.c: Likewise.
14852 * config/rx/rx.c: Likewise.
14853 * config/s390/s390.c: Likewise.
14854 * config/sh/sh.c: Likewise.
14855 * config/sparc/sparc.c: Likewise.
14856 * config/spu/spu.c: Likewise.
14857 * config/stormy16/stormy16.c: Likewise.
14858 * config/v850/v850.c: Likewise.
14859 * config/vax/vax.c: Likewise.
14860 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
14861 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
14862 * config/msp430/msp430.c: Likewise.
14863 * predict.c: Likewise.
14864 * value-prof.c: Likewise.
14865 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
14866 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
14867 * config/microblaze/microblaze.c: Likewise.
14868 * config/nios2/nios2.c: Likewise.
14869 * config/rs6000/rs6000.c: Likewise.
14870 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
14871 insn-config.h real.h rtl.h statistics.h stmt.h.
14872 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
14873 insn-config.h real.h statistics.h stmt.h.
14874 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
14875 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
14876 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
14877 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
14878 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
14879 fixed-value.h real.h statistics.h stmt.h.
14880 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
14881 fixed-value.h statistics.h stmt.h.
14882 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
14885 2015-01-15 Jakub Jelinek <jakub@redhat.com>
14887 * gengtype.c (create_user_defined_type): Workaround
14888 -Wmaybe-uninitialized false positives.
14889 * cse.c (fold_rtx): Likewise.
14890 * loop-invariant.c (gain_for_invariant): Likewise.
14892 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
14894 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
14895 set the memory attributes in all cases but clear MEM_EXPR if need be.
14897 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
14899 PR tree-optimization/64434
14900 * cfgexpand.c (reorder_operands): New function.
14901 (expand_gimple_basic_block): Insert call of reorder_operands if
14904 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
14906 * config/mips/micromips.md (*swp): Remove explicit parallel.
14907 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
14908 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
14909 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
14910 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
14911 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
14912 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
14913 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
14914 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
14915 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
14916 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
14917 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
14918 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
14919 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
14920 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
14921 (mips_wrdsp): Likewise.
14922 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
14924 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
14925 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
14926 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
14927 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
14928 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
14929 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
14930 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
14931 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
14932 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
14934 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
14936 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
14937 (mips_print_operand): Support 'y' to print exact log2 in decimal
14939 * config/mips/mips.h (ISA_HAS_LSA): New define.
14940 (ISA_HAS_DLSA): Likewise.
14941 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
14942 * config/mips/predicates.md (const_immlsa_operand): New predicate.
14944 2015-01-15 Martin Liska <mliska@suse.cz>
14947 * optc-save-gen.awk: Add support for array types.
14949 2015-01-15 Richard Biener <rguenther@suse.de>
14951 PR middle-end/64365
14952 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
14953 for MEM_REF access functions with the same base can never partially
14956 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
14958 * common.opt: New option -fstack-protector-explicit.
14959 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
14960 (stack_protect_decl_phase): Handle stack_protect attribute for
14961 explicit stack protection requests.
14962 (expand_used_vars): Similarly.
14963 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
14964 * doc/extend.texi: Add documentation for "stack_protect" attribute.
14965 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
14967 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
14970 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
14972 (sh_extending_set_of_reg): New struct.
14973 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
14974 sh_remove_reg_dead_or_unused_notes): New Declarations.
14975 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
14976 sh_find_extending_set_of_reg, sh_split_tst_subregs,
14977 sh_extending_set_of_reg::use_as_extended_reg): New functions.
14978 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
14979 convert to insn_and_split and use new function sh_split_tst_subregs.
14981 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
14983 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
14985 (Optimization Options): Move -fuse-ld documentation to...
14986 (Link Options): ...here.
14988 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
14990 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
14992 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
14993 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
14994 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
14995 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
14996 instead of ZR for the memory operand of LL/SC.
14997 (compare_and_swap_12, sync_add<mode>): Likewise.
14998 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
14999 (sync_new_<optab>_12, sync_nand_12): Likewise.
15000 (sync_old_nand_12, sync_new_nand_12): Likewise.
15001 (sync_sub<mode>, sync_old_add<mode>): Likewise.
15002 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
15003 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
15004 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
15005 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
15006 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
15007 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
15008 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
15009 * doc/md.texi (ZC): Update description.
15011 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
15013 * builtins.c (expand_builtin_atomic_exchange): Remove error when
15014 memory model is CONSUME.
15015 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
15016 expand_builtin_atomic_store): Change invalid memory model errors to
15018 (expand_builtin_atomic_clear): Change invalid model errors to warnings
15019 and issue warning for CONSUME.
15021 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
15023 * lto-cgraph: Update function comments for
15024 lto_symtab_encoder_encode_*.
15026 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
15028 * Makefile.in (site.exp): Do not set ENABLE_LTO.
15030 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
15032 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
15033 * lto-cgraph.c (select_what_to_stream): Remove argument, use
15034 lto_stream_offload_p instead.
15035 * lto-streamer.h (select_what_to_stream): Remove argument.
15036 * passes.c (ipa_write_summaries): Likewise.
15037 * tree-pass.h (ipa_write_summaries): Likewise.
15039 2015-01-14 Richard Biener <rguenther@suse.de>
15041 PR tree-optimization/59354
15042 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
15043 groups larger than the slp group size as having gaps.
15045 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
15047 PR middle-end/59448
15048 * builtins.c (get_memmodel): Promote consume to acquire always.
15050 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
15053 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
15056 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
15059 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
15061 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
15062 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
15063 AVX512VBMI, as it implies AVX512BW.
15065 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
15068 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
15069 (vec_unpacks_hi_v16sf): Ditto.
15071 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15073 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
15076 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15078 * doc/invoke.texi (mapcs): Mention deprecation.
15079 (mapcs-frame): Likewise.
15081 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
15084 * config/arm/arm.c (callee_saved_reg_p): Define.
15085 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
15086 register is callee saved instead of !call_used_regs[reg].
15087 (thumb1_compute_save_reg_mask): Likewise.
15089 2015-01-14 Hale Wang <hale.wang@arm.com>
15091 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
15094 2015-01-14 Richard Biener <rguenther@suse.de>
15097 * tree-inline.c (insert_debug_decl_map): Check destination
15098 function MAY_HAVE_DEBUG_STMTS.
15099 (insert_init_debug_bind): Likewise.
15100 (insert_init_stmt): Remove redundant check.
15101 (remap_gimple_stmt): Drop debug stmts if the destination
15102 function has var-tracking assignments disabled.
15104 2015-01-14 Martin Liska <mliska@suse.cz>
15106 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
15107 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
15109 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15112 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
15113 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
15115 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
15117 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
15118 level from an ARCH; do not inject the default.
15119 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
15120 MIPS_ISA_LEVEL_SPEC.
15121 (MIPS_ISA_NAN2008_SPEC): Update comment.
15122 (BASE_DRIVER_SELF_SPECS): Likewise.
15123 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
15124 MIPS_DEFAULT_ISA_LEVEL_SPEC.
15125 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
15126 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
15127 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
15129 2015-01-14 Richard Biener <rguenther@suse.de>
15131 PR tree-optimization/64493
15132 PR tree-optimization/64495
15133 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
15134 assign the proper vectorized PHI to the inner loop exit PHIs.
15136 2015-01-14 Joey Ye <joey.ye@arm.com>
15138 * config/arm/arm.c (arm_compute_save_reg_mask):
15139 Do not save lr in case of tail call.
15140 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
15142 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
15144 * tree-vrp.c (check_array_ref): Emit more warnings
15145 for warn_array_bounds >= 2.
15146 * common.opt: New option -Warray-bounds=.
15147 * doc/invoke.texi: Document -Warray-bounds=.
15149 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
15151 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
15152 (mforbid-fp-as-gp): Remove.
15154 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
15155 (nds32_symbol_load_store_p): Remove.
15156 (nds32_fp_as_gp_check_available): Clean up implementation.
15157 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
15159 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
15160 fp-as-gp and ex9 cases.
15162 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
15164 * tree-profile.c (init_ic_make_global_vars): Drop workaround
15165 for bintuils bug 14342.
15166 (init_ic_make_global_vars): Likewise.
15167 (gimple_init_edge_profiler): Likewise.
15168 (gimple_gen_ic_func_profiler): Likewise.
15170 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15172 * ipa-inline.c (inline_small_functions): Swap the operands in
15175 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
15178 * ipa-inline-analysis.c (node_growth_cache): Remove.
15179 (initialize_growth_caches): Do not initialize it.
15180 (free_growth_caches): Do not free it.
15181 (do_estimate_growth): Rename to ...
15182 (estimate_growth): ... this one; drop growth cache code.
15183 (growth_likely_positive): Always go the heuristics way.
15184 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
15185 (reset_edge_caches): Do not reset node growth.
15186 (heap_edge_removal_hook): Do not maintain cache.
15187 (inline_small_functions): Likewise; strenghten sanity check.
15188 (ipa_inline): Do not maintain caches.
15189 * ipa-inline.h (node_growth_cache): Remove.
15190 (do_estimate_growth): Remove to ...
15191 (estimate_growth): this one; remove inline version.
15192 (reset_node_growth_cache): Remove.
15194 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
15197 * ipa-inline.c (inline_small_functions): Update callee keys after
15198 resolving speculation
15199 (inline_small_functions): Always check monotonicity of the queue.
15201 2015-01-13 Marek Polacek <polacek@redhat.com>
15203 PR middle-end/64391
15204 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
15206 2015-01-13 Jakub Jelinek <jakub@redhat.com>
15208 PR rtl-optimization/64286
15209 * ree.c (combine_reaching_defs): Move part of comment earlier,
15210 remove !SCALAR_INT_MODE_P check.
15211 (add_removable_extension): Don't add vector mode
15212 extensions if all uses of the source register aren't the same
15215 2015-01-13 Renlin Li <renlin.li@arm.com>
15217 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
15218 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
15220 2015-01-13 Martin Liska <mliska@suse.cz>
15222 * ipa-icf.c (sem_function::equals_private): Call new functions
15223 cl_target_option_print_diff and cl_optimization_print_diff.
15224 * optc-save-gen.awk (cl_target_option_print_diff): New function.
15225 (cl_optimization_print_diff): Likewise.
15226 * opth-gen.awk: Likewise.
15228 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
15230 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
15231 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
15232 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
15233 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
15234 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
15235 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
15237 2015-01-13 Andrew Pinski <apinski@cavium.com>
15239 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
15240 instead of src mode.
15242 2015-01-13 Richard Biener <rguenther@suse.de>
15245 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
15248 2015-01-13 Andrew Pinski <apinski@cavium.com>
15250 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
15252 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
15254 2015-01-13 Jakub Jelinek <jakub@redhat.com>
15256 PR middle-end/63974
15257 * cfgexpand.c (expand_computed_goto): Don't call
15258 convert_memory_address here.
15260 2015-01-13 Richard Biener <rguenther@suse.de>
15262 PR tree-optimization/64406
15263 * tree-loop-distibution.c (pass_loop_distribution::execute):
15264 Reset the SCEV hashtable if we distributed anything.
15266 2015-01-13 Richard Biener <rguenther@suse.de>
15268 PR tree-optimization/64404
15269 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
15270 SLP types for CSEd loads.
15272 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
15274 PR tree-optimization/64436
15275 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
15276 merge of two symbolic numbers for a bitwise OR to ...
15277 (perform_symbolic_merge): This. Also fix computation of the range and
15278 end of the symbolic number corresponding to the result of a bitwise OR.
15280 2015-01-13 Richard Biener <rguenther@suse.de>
15282 PR tree-optimization/64568
15283 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
15284 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
15286 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
15288 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
15289 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
15291 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
15293 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
15294 target-specific symbol_ref flag.
15295 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
15296 resides in rodata section.
15297 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
15298 (nds32_encode_section_info): New function.
15300 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
15302 * config/nds32/nds32.md (call): Use pseudo instruction bal which
15303 clobbers TA_REGNUM if large code model is specified.
15304 (call_register): Likewise.
15305 (call_immediate): Likewise.
15306 (call_value): Likewise.
15307 (call_value_register): Likewise.
15308 (call_value_immediate): Likewise.
15310 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
15312 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
15313 (TARGET_CMODEL_MEDIUM): New macro.
15314 (TARGET_CMODEL_LARGE): New macro.
15315 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
15316 code model setting in assembly code.
15318 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
15320 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
15321 Remove MASK_GP_DIRECT flag.
15322 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
15323 one of the multilib default options.
15324 * config/nds32/nds32.opt (mgp-direct): Remove.
15325 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
15326 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
15328 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
15330 * config/nds32/nds32.opt (mcmodel): Add new option.
15331 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
15332 to describe code model.
15334 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
15337 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
15339 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
15341 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
15342 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
15343 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
15344 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
15345 __builtin_sh_set_fpscr.
15347 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
15349 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
15350 after a funtion name just to indicate it is a function.
15351 ([-fsanitize-undefined-trap-on-error]): Likewise.
15352 ([-fdbg-cnt=]): Likewise.
15353 ([-mmemcpy]): Likewise.
15354 ([-mflush-func]): Likewise.
15355 ([-msynci]): Likewise.
15357 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
15359 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
15362 2015-01-12 Jakub Jelinek <jakub@redhat.com>
15364 PR tree-optimization/64563
15365 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
15366 instead of != VR_VARYING.
15369 * config/i386/i386.c (ix86_expand_prologue): Add
15370 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
15372 PR tree-optimization/64454
15373 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
15374 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
15375 for signed or [0, op1 - 1] for unsigned modulo.
15376 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
15377 even if op1 does not satisfy integer_pow2p.
15380 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
15382 2015-01-12 Jeff Law <law@redhat.com>
15385 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
15386 (trunchiqi2, truncsihi2): Similarly.
15388 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
15389 rather than calling F.
15391 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
15393 * tsan.c (instrument_expr): Use force_gimple_operand.
15394 Use may_be_nonaddressable_p instead of is_gimple_addressable.
15396 2015-01-12 Richard Biener <rguenther@suse.de>
15398 PR tree-optimization/64530
15399 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
15402 2015-01-12 Richard Biener <rguenther@suse.de>
15404 PR middle-end/64357
15405 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
15408 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15410 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
15411 Cortex-A17 tuning parameters.
15412 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
15414 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15416 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
15417 * config/arm/arm.c (arm_macro_fusion_p): New function.
15418 (arm_macro_fusion_pair_p): Likewise.
15419 (TARGET_SCHED_MACRO_FUSION_P): Define.
15420 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
15421 (ARM_FUSE_NOTHING): Likewise.
15422 (ARM_FUSE_MOVW_MOVT): Likewise.
15423 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
15424 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
15425 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
15426 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
15427 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
15428 arm_cortex_a5_tune): Specify fuseable_ops value.
15430 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
15433 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
15434 test for PIE with copy reloc.
15435 * configure: Regenerated.
15437 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15439 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
15441 (arm_tls_descseq_addr): Likewise.
15442 (arm_gen_movmemqi): Likewise.
15443 (arm_expand_epilogue_apcs_frame): Likewise.
15444 (arm_expand_epilogue): Likewise.
15445 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
15448 2015-01-12 Martin Liska <mliska@suse.cz>
15451 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
15452 volatility for correct operands.
15454 2015-01-12 Martin Liska <mliska@suse.cz>
15456 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
15457 that a function is not leaf.
15458 (sem_function::compare_polymorphic_p): Likewise.
15460 2015-01-12 Martin Liska <mliska@suse.cz>
15462 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
15463 that a function is not leaf.
15464 (sem_function::compare_polymorphic_p): Likewise.
15466 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15468 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
15469 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
15470 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
15471 fold-const.h, tree-check.h.
15473 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
15477 * ipa-inline.c (compute_uninlined_call_time,
15478 compute_inlined_call_time): Use counts for extra precision when
15480 (big_speedup_p): Fix formating.
15481 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
15482 (relative_time_benefit): Remove.
15483 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
15484 merge guessed and read profile paths.
15485 (inline_small_functions): Count only !optimize_size functions into
15486 initial size; be more lax about sanity check when profile is used;
15487 be sure to update inlined function profile when profile is read.
15489 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
15492 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
15493 cost when edge becomes direct.
15494 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
15495 is resolved or when introducing new speculation.
15497 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
15501 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
15502 '||' to fix typo issue.
15504 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
15505 accept and return NULL.
15507 2015-01-12 Martin Liska <mliska@suse.cz>
15509 * cgraph.c (cgraph_edge::remove_callee): Move function to header
15510 file for being inlined.
15511 (cgraph_set_edge_callee): Delete.
15512 (cgraph_edge::redirect_callee): Move function to header file
15514 (cgraph_edge::make_direct): Use new function.
15515 (cgraph_edge::dump_edge_flags): New function created from
15516 static dump_edge_flags function.
15517 (cgraph_node::dump): Use new function.
15518 (cgraph_edge::verify_count_and_frequency): New function created
15519 from verify_edge_count_and_frequency.
15520 (cgraph_edge::verify_corresponds_to_fndecl): New function created
15521 from verify_edge_corresponds_to_fndecl.
15522 (verify_edge_corresponds_to_fndecl): Delete.
15523 (cgraph_node::verify_node): Use new function.
15524 * cgraph.h (cgraph_edge::set_callee): New function.
15525 (cgraph_edge::dump_edge_flags): Likewise.
15526 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
15528 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
15530 * ipa-utils.c (estimate_function_body_sizes): Do not
15531 free node params when called late with early=true.
15533 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
15535 * doc/md.texi (Instruction Patterns): Rewrite text for
15537 (Example): Likewise.
15539 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
15541 * doc/invoke.texi (Option Summary): Break long lines.
15542 [(-fdiagnostics-color)]: Put long literal in @smallexample
15544 [(-fsanitize-recover)]: Likewise.
15545 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
15546 [(-ffast-math)]: Likewise.
15547 [(--param max-inline-insns-recursive)]: Likewise.
15548 [(--param max-inline-recursive-depth)]: Likewise.
15549 [(-mno-text-section-literals)]: Likewise.
15551 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15553 * doc/install.texi: Update for libgomp being renamed from "GNU
15554 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
15556 * doc/sourcebuild.texi: Likewise.
15558 2015-01-10 Anthony Green <green@moxielogic.com>
15560 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
15561 mul.x availability for moxiebox configuration.
15563 2015-01-09 Anthony Green <green@moxielogic.com>
15565 * config/moxie/moxie.md: Tabify assembly output.
15567 2015-01-09 Anthony Green <green@moxielogic.com>
15569 * config/moxie/moxie.md (CC_REG): Correct register definition.
15571 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
15573 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
15574 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
15577 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
15579 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
15581 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
15582 Jakub Jelinek <jakub@redhat.com>
15584 PR middle-end/64412
15585 * lto-streamer.h (lto_stream_offload_p): New declaration.
15586 * lto-streamer.c (lto_stream_offload_p): New variable.
15587 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
15588 at the same time as section_name_prefix.
15589 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
15590 if lto_stream_offload_p.
15591 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
15592 stream TREE_TARGET_OPTION if lto_stream_offload_p.
15593 (write_ts_function_decl_tree_pointers): Don't
15594 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
15595 * tree-streamer-in.c (unpack_value_fields): Don't stream
15596 TREE_TARGET_OPTION in if ACCEL_COMPILER.
15597 (lto_input_ts_function_decl_tree_pointers): Don't stream
15598 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
15599 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
15600 instead of section_name_prefix string comparisons.
15602 2015-01-09 Jakub Jelinek <jakub@redhat.com>
15604 PR rtl-optimization/64536
15605 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
15608 2015-01-09 Michael Collison <michael.collison@linaro.org>
15610 PR tree-optimization/64322
15611 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
15612 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
15614 2015-01-09 Tom de Vries <tom@codesourcery.com>
15616 PR rtl-optimization/64539
15617 * regcprop.c (kill_clobbered_values): Factor out of ...
15618 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
15619 instead of note_stores with kill_clobbered_value.
15621 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
15623 * ginclude/unwind-arm-common.h: Revert previous commit.
15625 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
15627 * config.gcc (arm*-*-freebsd*): New configuration.
15628 * config/arm/freebsd.h: New file.
15629 * config.host: Add extra components for arm*-*-freebsd*.
15630 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
15631 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
15633 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
15635 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
15637 * config/rs6000/t-rtems: Add e6500 multilibs.
15639 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
15641 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
15644 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
15646 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
15647 MULTILIB_EXCEPTIONS.
15649 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
15651 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
15652 MULTILIB_EXCEPTIONS.
15654 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
15656 * config/arm/t-rtems-eabi: Rename to...
15657 * config/arm/t-rtems: ...this.
15658 * config/arm/rtems-eabi.h: Rename to...
15659 * config/arm/rtems.h: ...this.
15660 * config.gcc (arm*-*-rtems*): Reflect changes above.
15662 2015-01-09 Richard Biener <rguenther@suse.de>
15664 PR tree-optimization/64410
15665 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
15667 (execute_update_addresses_taken): Deal with that.
15668 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
15669 loads/stores for complex variables.
15671 2015-01-09 Martin Liska <mliska@suse.cz>
15673 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
15675 (func_checker::compare_memory_operand): New function.
15676 (func_checker::compare_operand): Split case to newly
15678 (func_checker::compare_cst_or_decl): New function.
15679 (func_checker::compare_gimple_call): Identify
15681 (func_checker::compare_gimple_assign): Likewise.
15682 * ipa-icf-gimple.h: New function.
15684 2015-01-09 Martin Liska <mliska@suse.cz>
15687 * sreal.c (sreal::dump): Change unsigned format to signed for
15689 (sreal::to_double): Replace exp2 with scalbln.
15691 2015-01-09 Martin Liska <mliska@suse.cz>
15693 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
15694 * ipa-icf.c (sem_function::equals_private): Add support for target and
15695 (sem_item_optimizer::merge_classes): Remove redundant function
15696 optimization flags comparison.
15697 * tree.h (target_opts_for_fn): New function.
15699 2015-01-09 Tom de Vries <tom@codesourcery.com>
15701 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
15703 2015-01-09 Kito Cheng <kito@0xlab.org>
15705 PR rtl-optimization/64348
15706 * lra-constraints.c (split_reg): Fix caller-save store/restore
15707 instruction generation.
15709 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
15711 PR gcov-profile/61790
15712 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
15713 long long. Fallback to int64_t if host doesn't have long long and
15714 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
15716 2015-01-08 Jakub Jelinek <jakub@redhat.com>
15718 PR tree-optimization/63989
15719 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
15720 from 1000 to 10000.
15721 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
15722 (get_stridx): If we don't have a record for certain SSA_NAME,
15723 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
15724 constant offset, call get_stridx_plus_constant.
15725 (get_stridx_plus_constant): New function.
15726 (zero_length_string): Don't use get_stridx here.
15729 PR middle-end/64388
15730 * dse.c (struct insn_info): Mention frame_read set also
15731 before reload for tail calls on some targets.
15732 (scan_insn): Revert 2014-12-22 change. Set frame_read
15733 also before reload for tail calls if
15734 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
15735 instead of add_non_frame_wild_read for non-const/memset
15736 tail calls after reload.
15738 2015-01-08 Jason Merrill <jason@redhat.com>
15740 * ubsan.c (do_ubsan_in_current_function): New.
15741 (pass_ubsan::gate): Use it.
15742 * ubsan.h: Declare it.
15743 * convert.c (convert_to_integer): Use it.
15745 2015-01-08 Jakub Jelinek <jakub@redhat.com>
15748 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
15749 compare_code when it is unconditionally overwritten afterwards.
15750 Use ix86_reverse_condition instead of reverse_condition. Don't
15751 change code if *reverse_condition* returned UNKNOWN and don't
15752 swap ct/cf and negate diff in that case.
15754 2015-01-08 Mike Stump <mikestump@comcast.net>
15756 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
15757 (pass_tsan_O0::gate): Likewise.
15758 * extend.texi (Function Attributes): Add no_sanitize_thread
15761 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15763 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
15764 for registering builtins.
15765 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
15766 add -fopenmp to the argv_obstack used when invoking
15767 compile_for_target.
15769 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
15770 add "-m32" or "-m64" to argv_obstack.
15771 (generate_host_descr_file): Likewise, when invoking host_compiler.
15772 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
15775 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
15777 * config/sh/sh-mem.cc: Use constant as second operand when emitting
15780 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
15783 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
15784 constant load if constant operand fits into I08.
15786 2015-01-08 Jakub Jelinek <jakub@redhat.com>
15789 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
15790 and TREE_THIS_VOLATILE for MEM_REFs.
15791 (build5_stat): Fix up initialization of TREE_READONLY and
15792 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
15794 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
15797 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
15798 of r for the second alternative of the destination operand.
15800 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
15803 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
15805 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
15807 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
15809 ([-fivar-visibility], [-fvisibility]): Likewise.
15811 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
15813 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
15814 the file where @code, @command, etc is more appropriate.
15816 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
15818 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
15819 of -mrecip= documentation.
15821 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15824 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
15825 correct reload handler if -m32 -mpowerpc64 is used.
15827 2015-01-06 Tom de Vries <tom@codesourcery.com>
15829 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
15831 2015-01-08 Christian Bruel <christian.bruel@st.com>
15834 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
15836 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
15838 PR tree-optimization/63259
15839 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
15840 if optab exists for 16bit byteswap.
15842 2015-01-06 Jakub Jelinek <jakub@redhat.com>
15844 * opts.c (common_handle_option): Add support for
15845 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
15846 * doc/invoke.texi: Document -fno-sanitize=all,
15847 -f{,no-}sanitize-recover=all. Document that
15848 -fsanitize=float-cast-overflow is not enabled
15849 by -fsanitize=undefined. Fix up documentation
15850 of -f{,no-}sanitize-recover.
15852 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
15854 * config.gcc: Add Visium support.
15855 * configure.ac: Likewise.
15856 * configure: Regenerate.
15857 * doc/extend.texi (interrupt attribute): Add Visium.
15858 * doc/invoke.texi: Document Visium options.
15859 * doc/install.texi: Document Visium target.
15860 * doc/md.texi: Document Visium constraints.
15861 * common/config/visium: New directory.
15862 * config/visium: Likewise.
15864 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
15866 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
15867 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
15869 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
15871 * combine.c (combine_validate_cost): Do not count the cost of a
15872 split I2 twice. Do not display it twice in the dump, either.
15874 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
15876 Revert parts of r219199.
15877 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
15879 ([-Wtraditional]): Restore markup on <limits.h>.
15881 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
15884 * doc/invoke.texi: Document -Wsuggest-override.
15886 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
15888 PR rtl-optimization/64287
15889 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
15890 (process_options): Disable flag_ipa_ra if profiling.
15892 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
15894 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
15896 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
15898 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
15899 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
15900 put under #if TARGET_LOOPS guard.
15902 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
15904 * config/i386/i386.c (output_387_binary_op): Use std::swap.
15906 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
15908 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
15909 * rtl.h (refers_to_regno_p): Add overload.
15911 * bt-load.c: Likewise.
15912 * combine.c: Likewise.
15913 * df-scan.c: Likewise.
15914 * sched-deps.c: Likewise.
15915 * config/s390/s390.c: Likewise.
15916 * config/m32r/m32r.c: Likewise.
15917 * config/rs6000/spe.md: Likewise.
15918 * config/rs6000/rs6000.c: Likewise.
15919 * config/pa/pa.c: Likewise.
15920 * config/stormy16/stormy16.c: Likewise.
15921 * config/cris/cris.c: Likewise.
15922 * config/arc/arc.md: Likewise.
15923 * config/arc/arc.c: Likewise.
15924 * config/sh/sh.md: Likewise.
15925 * config/sh/sh.c: Likewise.
15926 * config/frv/frv.c: Likewise.
15928 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15931 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
15932 call as cleanup of the whole body.
15933 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
15934 * tsan.c (replace_func_exit): New function.
15935 (instrument_func_exit): Moved earlier.
15936 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
15937 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
15939 (tsan_pass): Don't call instrument_func_exit.
15940 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
15941 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
15945 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
15946 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
15947 it to libubsan handler instead of EXPR. Fold comparisons earlier,
15948 if the result is integer_zerop, return NULL_TREE.
15949 * convert.c (convert_to_integer): Pass expr as ARG.
15951 PR tree-optimization/64465
15952 * tree-inline.c (redirect_all_calls): During inlining
15953 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
15954 changed the stmt to a non-throwing call.
15956 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
15958 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
15959 etc markup throughout the file.
15961 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
15963 Enable experimental TSAN support for Ada.
15964 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
15966 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15968 PR tree-optimization/64494
15969 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
15970 clear SSA_NAME_ANTI_RANGE_P flag.
15972 2015-01-05 Marek Polacek <polacek@redhat.com>
15974 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
15976 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15978 Update copyright years.
15980 * gcc.c (process_command): Update copyright notice dates.
15981 * gcov-dump.c: Ditto.
15983 * doc/cpp.texi: Bump @copying's copyright year.
15984 * doc/cppinternals.texi: Ditto.
15985 * doc/gcc.texi: Ditto.
15986 * doc/gccint.texi: Ditto.
15987 * doc/gcov.texi: Ditto.
15988 * doc/install.texi: Ditto.
15989 * doc/invoke.texi: Ditto.
15991 * auto-profile.c, auto-profile.h: Fix up Copyright line.
15993 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
15995 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
15997 ([-fvtable-verify], [-fvtv-debug]): Likewise.
15998 ([-Wabi]): Likewise.
15999 ([-fmessage-length]): Likewise.
16000 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
16001 ([-Wno-discarded-qualifiers]): Likewise.
16002 ([-Wnodiscarded-array-qualifiers]): Likewise.
16003 ([-Wno-virtual-move-assign]): Likewise.
16004 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
16005 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
16006 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
16007 ([-fsanitize-undefined-trap-on-error]): Likewise.
16008 ([-floop-interchange]): Likewise.
16009 ([-ftree-coalesce-inlined-vars]): Likewise.
16010 ([-fvect-cost-model]): Likewise.
16011 ([-flto]): Likewise.
16012 ([--param]): Likewise.
16013 (Spec Files): Likewise.
16014 ([-mstrict-align]): Likewise.
16015 ([-mfix-cortex-a53-835769]): Likewise.
16016 ([-march], [-mtune]): Likewise.
16017 ([-mpic-register]): Likewise.
16018 ([-munaligned-access]): Likewise.
16019 ([-msp8]): Likewise.
16020 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
16021 (AVR Built-in Macros): Likewise.
16022 ([-mpreferred-stack-boundary]): Likewise.
16023 ([-mtune-crtl]): Likewise.
16024 ([-mashf]): Likewise.
16025 ([-mmcu=]): Likewise.
16026 ([-minrt]): Likewise.
16027 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
16028 ([-mupper-regs]): Likewise.
16029 ([-matomic-model]): Likewise.
16030 ([-mdiv]): Likewise.
16031 ([-mzdcbranch]): Likewise.
16032 ([-mdisable-callt]): Likewise.
16033 ([-msoft-float]): Likewise.
16034 ([-m8byte-align]): Likewise.
16035 ([-fstack-reuse]): Likewise.
16037 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
16039 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
16040 Fix markup, light copy-editing.
16041 ([-fauto-profile]): Rewrite to fix formatting and content
16044 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
16046 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
16047 Copy-edit description.
16048 ([-fisolate-erroneous-paths-attribute]): Likewise.
16049 * common.opt (fisolate-erroneous-paths-dereference):
16050 Copy-edit description.
16051 (fisolate-erroneous-paths-attribute): Likewise.
16053 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
16055 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
16058 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
16060 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
16061 ([-fvtv-debug]): Likewise.
16062 ([-Wc++-compat]): Likewise.
16063 ([-Wc++11-compat]): Likewise.
16064 ([-Wc++14-compat]): Likewise.
16065 ([-Wno-sized-deallocation]): Likewise.
16066 ([-femit-class-debug-always]): Likewise.
16067 ([-femit-struct-debug-detailed]): Likewise.
16068 ([-fno-keep-inline-dllexport]): Likewise.
16069 ([-fira-algorithm]): Likewise.
16070 ([-fira-region]): Likewise.
16071 ([-flra-remat]): Likewise.
16072 ([-fipa-ra]): Likewise.
16073 ([-fhoist-adjacent-loads]): Likewise.
16074 ([-fisolate-erroneous-paths-dereference]): Likewise.
16075 ([-fisolate-erroneous-paths-attribute]): Likewise.
16076 ([-ftree-switch-conversion]): Likewise.
16077 ([-ftree-tail-merge]): Likewise.
16078 ([-ftree-loop-if-convert]): Likewise.
16079 ([-ftree-loop-if-convert-stores]): Likewise.
16080 ([-ftree-loop-distribution]): Likewise.
16081 ([-ftree-loop-distribute-patterns]): Likewise.
16082 ([-flto-compression-level]): Likewise.
16083 ([-flto-report]): Likewise.
16084 ([-flto-report-wpa]): Likewise.
16085 ([-fuse-linker-plugin]): Likewise.
16086 ([-mfix-cortex-a53-835769]): Likewise.
16087 ([-mno-fix-cortex-a53-835769]): Likewise.
16088 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
16089 explicit listing; add a note to the discussion indicating they
16090 exist. Reorder table to group similar options. Add missing
16091 @opindex entries. Add @need commands throughout the table to
16092 allow it to be split across multiple pages.
16093 ([-m8bit-idiv]): Fix @opindex.
16094 ([-mavx256-split-unaligned-load]): Likewise.
16095 ([-mavx256-split-unaligned-store]): Likewise.
16096 ([-mstack-protector-guard]): Likewise.
16097 ([-mcpu=]): Likewise.
16098 ([-mcpu]): Likewise.
16099 ([-mpointer-size=]): Likewise.
16101 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
16103 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
16104 instead of `m' constraint. Likewise for unnamed movb comparison
16105 patterns using reg_before_reload_operand predicate.
16106 * config/pa/predicates.md (reg_before_reload_operand): Tighten
16107 predicate to reject register index and LO_SUM DLT memory forms
16110 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
16112 * doc/invoke.texi (Option Summary): Fix spelling of
16113 -fdevirtualize-at-ltrans.
16114 ([-fdevirtualize]): Fix markup.
16115 ([-fdevirtualize-speculatively]): Fix typo.
16116 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
16117 implementor-speaky.
16118 * common.opt (fdevirtualize-at-ltrans): Likewise.
16119 * ipa-devirt.c: Fix typos in comments throughout the file.
16120 (ipa_devirt): Fix typos in format strings for dump output.
16122 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
16124 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
16125 discussion of defaults, light copy-editing.
16127 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16129 * tsan.c (instrument_expr): corrected previous checkin.
16131 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
16133 Instrument bit field and unaligned accesses for TSAN.
16134 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
16135 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
16136 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
16137 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
16138 unaligned memory regions.
16140 2015-01-01 Anthony Green <green@moxielogic.com>
16142 * config/moxie/predicates.md (moxie_general_movsrc_operand):
16143 Restrict move source register offsets to 16 bits.
16145 Copyright (C) 2015 Free Software Foundation, Inc.
16147 Copying and distribution of this file, with or without modification,
16148 are permitted in any medium without royalty provided the copyright
16149 notice and this notice are preserved.