a0c8dec6d0be3359f9b77112ed007342db681a8e
[gcc.git] / gcc / ChangeLog
1 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
2
3 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
4 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
5
6 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7
8 * config/i386/i386.c: Include rtl-iter.h
9 (ix86_check_avx256_register): Take a const_rtx and return a bool.
10 (ix86_check_avx256_stores): Update call accordingly.
11 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
12 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
13
14 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
15
16 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
17 Take an rtx and return a bool.
18 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
19 Use FOR_EACH_SUBRTX_VAR.
20 * config/alpha/predicates.md (some_small_symbolic_operand): Update
21 accordingly.
22
23 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
24
25 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
26 a bool.
27 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
28 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
29
30 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
31
32 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
33 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
34
35 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
36
37 * config/alpha/alpha.c: Include rtl-iter.h.
38 (split_small_symbolic_operand_1): Delete.
39 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
40
41 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
42
43 * config/s390/s390.c: Include rtl-iter.h.
44 (check_dpu): Delete.
45 (s390_loop_unroll_adjust): Only iterate over patterns.
46 Use FOR_EACH_SUBRTX.
47
48 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
49
50 * config/spu/spu.c: Include rtl-iter.h
51 (ea_symbol_ref): Replace with...
52 (ea_symbol_ref_p): ...this new function.
53 (spu_legitimate_address_p): Update call accordingly.
54 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
55
56 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
57 Tom Tromey <tromey@redhat.com>
58
59 * aclocal.m4, configure: Rebuild.
60 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
61 * configure.ac: Use GCC_ENABLE_PLUGINS.
62 * stor-layout.c (finish_bitfield_layout): Now public. Change
63 argument type to 'tree'.
64 (finish_record_layout): Update.
65 * stor-layout.h (finish_bitfield_layout): Declare.
66
67 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
68
69 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
70 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
71 Restore, enable for bigendian, update to use __builtin..._scal...
72
73 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
74
75 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
76 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
77 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
78 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
79
80 * config/aarch64/aarch64-simd.md
81 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
82 (reduc_<maxmin_uns>_internal<mode>): ...this.
83 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
84 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
85
86 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
87 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
88 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
89
90 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
91 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
92 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
93 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
94 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
95 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
96 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
97 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
98
99 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
100
101 * config/aarch64/aarch64-simd-builtins.def
102 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
103 Remove.
104 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
105
106 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
107 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
108
109 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
110 (aarch64_reduc_plus_internal<mode>): ...this.
111
112 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
113 (aarch64_reduc_plus_internalv2si): ...this.
114
115 (reduc_splus_<mode>/V2F): Rename to...
116 (aarch64_reduc_plus_internal<mode>): ...this.
117
118 * config/aarch64/iterators.md
119 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
120 (UNSPEC_ADDV): New.
121 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
122
123 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
124 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
125 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
126 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
127 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
128
129 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
130
131 PR tree-optimization/61114
132 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
133 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
134
135 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
136 back to old reduc_... + BIT_FIELD_REF only if not.
137
138 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
139 return the reduce-to-scalar (reduc_..._scal) optab.
140 (scalar_reduc_to_vector): New.
141
142 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
143 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
144 New.
145
146 * optabs.h (scalar_reduc_to_vector): Declare.
147
148 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
149 to either scalar or vector.
150
151 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
152
153 PR tree-optimization/61114
154 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
155 extract_bit_field around optab result.
156
157 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
158 scalar not vector.
159
160 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
161 for REDUC_{MIN,MAX,PLUS}_EXPR.
162
163 * tree-vect-loop.c (vect_analyze_loop): Update comment.
164 (vect_create_epilog_for_reduction): For direct vector reduction, use
165 result of tree code directly without extract_bit_field.
166
167 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
168 comment.
169
170 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
171
172 * basic-block.h: Remove all includes.
173 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
174 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
175 * Makefile.in (GTFILES): Add cfg.h to list.
176 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
177 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
178 * genconditions.c (write_header): Add predict.h and basic-block.h to
179 lits of includes.
180 * genemit.c (main): Ditto.
181 * genpreds.c (write_insn_preds_c): Ditto.
182 * genrecog.c (write_header): Ditto.
183 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
184 to list of includes.
185 * alias.c: Adjust include files.
186 * asan.c: Ditto.
187 * auto-inc-dec.c: Ditto.
188 * auto-profile.c: Ditto.
189 * bb-reorder.c: Ditto.
190 * bt-load.c: Ditto.
191 * builtins.c: Ditto.
192 * caller-save.c: Ditto.
193 * calls.c: Ditto.
194 * cfg.c: Ditto.
195 * cfganal.c: Ditto.
196 * cfgbuild.c: Ditto.
197 * cfgcleanup.c: Ditto.
198 * cfgexpand.c: Ditto.
199 * cfghooks.c: Ditto.
200 * cfgloop.c: Ditto.
201 * cfgloopanal.c: Ditto.
202 * cfgloopmanip.c: Ditto.
203 * cfgrtl.c: Ditto.
204 * cgraphbuild.c: Ditto.
205 * cgraphclones.c: Ditto.
206 * cgraphunit.c: Ditto.
207 * combine-stack-adj.c: Ditto.
208 * combine.c: Ditto.
209 * compare-elim.c: Ditto.
210 * coverage.c: Ditto.
211 * cprop.c: Ditto.
212 * cse.c: Ditto.
213 * cselib.c: Ditto.
214 * data-streamer-in.c: Ditto.
215 * data-streamer-out.c: Ditto.
216 * data-streamer.c: Ditto.
217 * dce.c: Ditto.
218 * ddg.c: Ditto.
219 * ddg.h: Ditto.
220 * df-core.c: Ditto.
221 * df-problems.c: Ditto.
222 * df-scan.c: Ditto.
223 * df.h: Ditto.
224 * dojump.c: Ditto.
225 * dominance.c: Ditto.
226 * domwalk.c: Ditto.
227 * dse.c: Ditto.
228 * dwarf2cfi.c: Ditto.
229 * emit-rtl.c: Ditto.
230 * et-forest.c: Ditto.
231 * except.c: Ditto.
232 * expmed.c: Ditto.
233 * expr.c: Ditto.
234 * final.c: Ditto.
235 * fold-const.c: Ditto.
236 * function.c: Ditto.
237 * fwprop.c: Ditto.
238 * gcc-plugin.h: Ditto.
239 * gcse.c: Ditto.
240 * generic-match-head.c: Ditto.
241 * ggc-page.c: Ditto.
242 * gimple-builder.c: Ditto.
243 * gimple-expr.c: Ditto.
244 * gimple-fold.c: Ditto.
245 * gimple-iterator.c: Ditto.
246 * gimple-low.c: Ditto.
247 * gimple-match-head.c: Ditto.
248 * gimple-pretty-print.c: Ditto.
249 * gimple-ssa-isolate-paths.c: Ditto.
250 * gimple-ssa-strength-reduction.c: Ditto.
251 * gimple-streamer-in.c: Ditto.
252 * gimple-streamer-out.c: Ditto.
253 * gimple-streamer.h: Ditto.
254 * gimple-walk.c: Ditto.
255 * gimple.c: Ditto.
256 * gimplify-me.c: Ditto.
257 * gimplify.c: Ditto.
258 * graph.c: Ditto.
259 * graphite-blocking.c: Ditto.
260 * graphite-clast-to-gimple.c: Ditto.
261 * graphite-dependences.c: Ditto.
262 * graphite-interchange.c: Ditto.
263 * graphite-isl-ast-to-gimple.c: Ditto.
264 * graphite-optimize-isl.c: Ditto.
265 * graphite-poly.c: Ditto.
266 * graphite-scop-detection.c: Ditto.
267 * graphite-sese-to-poly.c: Ditto.
268 * graphite.c: Ditto.
269 * haifa-sched.c: Ditto.
270 * hw-doloop.c: Ditto.
271 * ifcvt.c: Ditto.
272 * init-regs.c: Ditto.
273 * internal-fn.c: Ditto.
274 * ipa-cp.c: Ditto.
275 * ipa-devirt.c: Ditto.
276 * ipa-icf-gimple.c: Ditto.
277 * ipa-icf.c: Ditto.
278 * ipa-inline-analysis.c: Ditto.
279 * ipa-inline.c: Ditto.
280 * ipa-polymorphic-call.c: Ditto.
281 * ipa-profile.c: Ditto.
282 * ipa-prop.c: Ditto.
283 * ipa-pure-const.c: Ditto.
284 * ipa-reference.c: Ditto.
285 * ipa-split.c: Ditto.
286 * ipa-utils.c: Ditto.
287 * ipa.c: Ditto.
288 * ira-build.c: Ditto.
289 * ira-color.c: Ditto.
290 * ira-conflicts.c: Ditto.
291 * ira-costs.c: Ditto.
292 * ira-emit.c: Ditto.
293 * ira-lives.c: Ditto.
294 * ira.c: Ditto.
295 * jump.c: Ditto.
296 * lcm.c: Ditto.
297 * loop-doloop.c: Ditto.
298 * loop-init.c: Ditto.
299 * loop-invariant.c: Ditto.
300 * loop-iv.c: Ditto.
301 * loop-unroll.c: Ditto.
302 * lower-subreg.c: Ditto.
303 * lra-assigns.c: Ditto.
304 * lra-coalesce.c: Ditto.
305 * lra-constraints.c: Ditto.
306 * lra-eliminations.c: Ditto.
307 * lra-lives.c: Ditto.
308 * lra-spills.c: Ditto.
309 * lra.c: Ditto.
310 * lto-cgraph.c: Ditto.
311 * lto-compress.c: Ditto.
312 * lto-opts.c: Ditto.
313 * lto-section-in.c: Ditto.
314 * lto-section-out.c: Ditto.
315 * lto-streamer-in.c: Ditto.
316 * lto-streamer-out.c: Ditto.
317 * lto-streamer.c: Ditto.
318 * mcf.c: Ditto.
319 * mode-switching.c: Ditto.
320 * modulo-sched.c: Ditto.
321 * omp-low.c: Ditto.
322 * optabs.c: Ditto.
323 * opts-global.c: Ditto.
324 * passes.c: Ditto.
325 * postreload-gcse.c: Ditto.
326 * postreload.c: Ditto.
327 * predict.c: Ditto.
328 * print-rtl.c: Ditto.
329 * profile.c: Ditto.
330 * recog.c: Ditto.
331 * ree.c: Ditto.
332 * reg-stack.c: Ditto.
333 * regcprop.c: Ditto.
334 * regcprop.h: Ditto.
335 * reginfo.c: Ditto.
336 * regrename.c: Ditto.
337 * regstat.c: Ditto.
338 * reload.c: Ditto.
339 * reload1.c: Ditto.
340 * reorg.c: Ditto.
341 * resource.c: Ditto.
342 * rtlanal.c: Ditto.
343 * sched-deps.c: Ditto.
344 * sched-ebb.c: Ditto.
345 * sched-int.h: Ditto.
346 * sched-rgn.c: Ditto.
347 * sched-vis.c: Ditto.
348 * sel-sched-dump.c: Ditto.
349 * sel-sched-ir.c: Ditto.
350 * sel-sched-ir.h: Ditto.
351 * sel-sched.c: Ditto.
352 * sese.c: Ditto.
353 * shrink-wrap.c: Ditto.
354 * stack-ptr-mod.c: Ditto.
355 * stmt.c: Ditto.
356 * store-motion.c: Ditto.
357 * symtab.c: Ditto.
358 * toplev.c: Ditto.
359 * tracer.c: Ditto.
360 * trans-mem.c: Ditto.
361 * tree-affine.c: Ditto.
362 * tree-call-cdce.c: Ditto.
363 * tree-cfg.c: Ditto.
364 * tree-cfgcleanup.c: Ditto.
365 * tree-chrec.c: Ditto.
366 * tree-complex.c: Ditto.
367 * tree-data-ref.c: Ditto.
368 * tree-dfa.c: Ditto.
369 * tree-eh.c: Ditto.
370 * tree-emutls.c: Ditto.
371 * tree-if-conv.c: Ditto.
372 * tree-inline.c: Ditto.
373 * tree-into-ssa.c: Ditto.
374 * tree-loop-distribution.c: Ditto.
375 * tree-nested.c: Ditto.
376 * tree-nrv.c: Ditto.
377 * tree-object-size.c: Ditto.
378 * tree-outof-ssa.c: Ditto.
379 * tree-parloops.c: Ditto.
380 * tree-phinodes.c: Ditto.
381 * tree-predcom.c: Ditto.
382 * tree-pretty-print.c: Ditto.
383 * tree-profile.c: Ditto.
384 * tree-scalar-evolution.c: Ditto.
385 * tree-sra.c: Ditto.
386 * tree-ssa-address.c: Ditto.
387 * tree-ssa-alias.c: Ditto.
388 * tree-ssa-ccp.c: Ditto.
389 * tree-ssa-coalesce.c: Ditto.
390 * tree-ssa-copy.c: Ditto.
391 * tree-ssa-copyrename.c: Ditto.
392 * tree-ssa-dce.c: Ditto.
393 * tree-ssa-dom.c: Ditto.
394 * tree-ssa-dse.c: Ditto.
395 * tree-ssa-forwprop.c: Ditto.
396 * tree-ssa-ifcombine.c: Ditto.
397 * tree-ssa-live.c: Ditto.
398 * tree-ssa-loop-ch.c: Ditto.
399 * tree-ssa-loop-im.c: Ditto.
400 * tree-ssa-loop-ivcanon.c: Ditto.
401 * tree-ssa-loop-ivopts.c: Ditto.
402 * tree-ssa-loop-manip.c: Ditto.
403 * tree-ssa-loop-niter.c: Ditto.
404 * tree-ssa-loop-prefetch.c: Ditto.
405 * tree-ssa-loop-unswitch.c: Ditto.
406 * tree-ssa-loop.c: Ditto.
407 * tree-ssa-math-opts.c: Ditto.
408 * tree-ssa-operands.c: Ditto.
409 * tree-ssa-phiopt.c: Ditto.
410 * tree-ssa-phiprop.c: Ditto.
411 * tree-ssa-pre.c: Ditto.
412 * tree-ssa-propagate.c: Ditto.
413 * tree-ssa-reassoc.c: Ditto.
414 * tree-ssa-sccvn.c: Ditto.
415 * tree-ssa-sink.c: Ditto.
416 * tree-ssa-strlen.c: Ditto.
417 * tree-ssa-structalias.c: Ditto.
418 * tree-ssa-tail-merge.c: Ditto.
419 * tree-ssa-ter.c: Ditto.
420 * tree-ssa-threadedge.c: Ditto.
421 * tree-ssa-threadupdate.c: Ditto.
422 * tree-ssa-uncprop.c: Ditto.
423 * tree-ssa-uninit.c: Ditto.
424 * tree-ssa.c: Ditto.
425 * tree-ssanames.c: Ditto.
426 * tree-stdarg.c: Ditto.
427 * tree-streamer-in.c: Ditto.
428 * tree-streamer-out.c: Ditto.
429 * tree-streamer.c: Ditto.
430 * tree-switch-conversion.c: Ditto.
431 * tree-tailcall.c: Ditto.
432 * tree-vect-data-refs.c: Ditto.
433 * tree-vect-generic.c: Ditto.
434 * tree-vect-loop-manip.c: Ditto.
435 * tree-vect-loop.c: Ditto.
436 * tree-vect-patterns.c: Ditto.
437 * tree-vect-slp.c: Ditto.
438 * tree-vect-stmts.c: Ditto.
439 * tree-vectorizer.c: Ditto.
440 * tree-vrp.c: Ditto.
441 * tree.c: Ditto.
442 * tsan.c: Ditto.
443 * ubsan.c: Ditto.
444 * valtrack.c: Ditto.
445 * valtrack.h: Ditto.
446 * value-prof.c: Ditto.
447 * var-tracking.c: Ditto.
448 * varasm.c: Ditto.
449 * varpool.c: Ditto.
450 * vtable-verify.c: Ditto.
451 * web.c: Ditto.
452 * config/aarch64/aarch64-builtins.c: Ditto.
453 * config/aarch64/aarch64.c: Ditto.
454 * config/alpha/alpha.c: Ditto.
455 * config/arc/arc.c: Ditto.
456 * config/arm/arm.c: Ditto.
457 * config/avr/avr.c: Ditto.
458 * config/bfin/bfin.c: Ditto.
459 * config/c6x/c6x.c: Ditto.
460 * config/cr16/cr16.c: Ditto.
461 * config/cris/cris.c: Ditto.
462 * config/darwin-c.c: Ditto.
463 * config/darwin.c: Ditto.
464 * config/epiphany/epiphany.c: Ditto.
465 * config/epiphany/mode-switch-use.c: Ditto.
466 * config/epiphany/resolve-sw-modes.c: Ditto.
467 * config/fr30/fr30.c: Ditto.
468 * config/frv/frv.c: Ditto.
469 * config/h8300/h8300.c: Ditto.
470 * config/i386/i386.c: Ditto.
471 * config/i386/winnt.c: Ditto.
472 * config/ia64/ia64.c: Ditto.
473 * config/iq2000/iq2000.c: Ditto.
474 * config/lm32/lm32.c: Ditto.
475 * config/m32c/m32c.c: Ditto.
476 * config/m32r/m32r.c: Ditto.
477 * config/m68k/m68k.c: Ditto.
478 * config/mcore/mcore.c: Ditto.
479 * config/mep/mep.c: Ditto.
480 * config/microblaze/microblaze.c: Ditto.
481 * config/mips/mips.c: Ditto.
482 * config/mmix/mmix.c: Ditto.
483 * config/mn10300/mn10300.c: Ditto.
484 * config/moxie/moxie.c: Ditto.
485 * config/msp430/msp430.c: Ditto.
486 * config/nds32/nds32-cost.c: Ditto.
487 * config/nds32/nds32-fp-as-gp.c: Ditto.
488 * config/nds32/nds32-intrinsic.c: Ditto.
489 * config/nds32/nds32-isr.c: Ditto.
490 * config/nds32/nds32-md-auxiliary.c: Ditto.
491 * config/nds32/nds32-memory-manipulation.c: Ditto.
492 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
493 * config/nds32/nds32-predicates.c: Ditto.
494 * config/nds32/nds32.c: Ditto.
495 * config/nios2/nios2.c: Ditto.
496 * config/pa/pa.c: Ditto.
497 * config/pdp11/pdp11.c: Ditto.
498 * config/rl78/rl78.c: Ditto.
499 * config/rs6000/rs6000.c: Ditto.
500 * config/rx/rx.c: Ditto.
501 * config/s390/s390.c: Ditto.
502 * config/sh/sh-mem.cc: Ditto.
503 * config/sh/sh.c: Ditto.
504 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
505 * config/sh/sh_treg_combine.cc: Ditto.
506 * config/sparc/sparc.c: Ditto.
507 * config/spu/spu.c: Ditto.
508 * config/stormy16/stormy16.c: Ditto.
509 * config/tilegx/tilegx.c: Ditto.
510 * config/tilepro/tilepro.c: Ditto.
511 * config/v850/v850.c: Ditto.
512 * config/vax/vax.c: Ditto.
513 * config/xtensa/xtensa.c: Ditto.
514
515 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
516
517 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
518 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
519 Remove using preprocessor directives.
520
521 2014-10-27 Richard Biener <rguenther@suse.de>
522
523 * match.pd (0 % X): Properly use the iterator iterating over
524 all modulo operators.
525 (X % 1): Likewise.
526
527 2014-10-27 Richard Biener <rguenther@suse.de>
528
529 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
530 (lattice): New global.
531 (fwprop_ssa_val): New function.
532 (fold_all_stmts): Likewise.
533 (pass_forwprop::execute): Finally fold all stmts.
534
535 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
536
537 PR c++/53061
538 * doc/invoke.texi (fmessage-length): Update text to match reality.
539
540 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
541
542 * config/microblaze/microblaze.c: Include rtl-iter.h.
543 (microblaze_tls_referenced_p_1): Delete.
544 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
545
546 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
547
548 * config/mips/mips.c (mips_at_reg_p): Delete.
549 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
550
551 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
552
553 * config/mips/mips.c (mips_record_lo_sum): Replace with...
554 (mips_record_lo_sums): ...this new function.
555 (mips_reorg_process_insns): Update accordingly.
556
557 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
558
559 * config/mips/mips.c (mips_sim_insn): Update comment.
560 (mips_sim_wait_regs_2): Delete.
561 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
562
563 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
564
565 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
566 and return a bool. Iterate over all subrtxes here.
567 (r10k_needs_protection_p): Update accordingly.
568
569 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
570
571 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
572 rather than an rtx pointer. Change type of insn from "void *"
573 to its real type. Return bool rather than int. Iterate over
574 all subrtxes here.
575 (r10k_needs_protection_p_store): Update accordingly.
576 (r10k_needs_protection_p): Likewise.
577
578 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
579
580 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
581 (mips16_rewrite_pool_refs): Take the insn and constant pool as
582 parameters. Iterate over the instruction's pattern and return void.
583 (mips16_lay_out_constants): Update accordingly.
584
585 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
586
587 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
588 (mips_refers_to_kernel_reg_p): ...this new function.
589 (mips_expand_prologue): Update accordingly.
590
591 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
592
593 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
594 as a parameter instead of the containing MEM. Iterate over all
595 subrtxes. Don't return a value.
596 (mips_rewrite_small_data): Update call accordingly.
597
598 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
599
600 * config/mips/mips.c: Include rtl-iter.h.
601 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
602 Take the context as a parameter instead of the containing MEM.
603 Iterate over all subrtxes.
604 (mips_small_data_pattern_p): Update call accordingly.
605
606 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
607
608 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
609 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
610
611 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
612
613 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
614 return a bool. Replace "void *" with specific type. Iterate
615 over all subrtxes.
616 (mep_store_data_bypass_1): Update calls accordingly.
617
618 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
619
620 * config/mep/mep.c: Include rtl-iter.h.
621 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
622 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
623
624 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
625
626 * config/xtensa/xtensa.c: Include rtl-iter.h.
627 (xtensa_tls_referenced_p_1): Delete.
628 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
629
630 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
631
632 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
633 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
634
635 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
636
637 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
638 rtx as argument and return the number of changes.
639 * config/sh/sh.c: Include rtl-iter.h.
640 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
641 over all subrtxes. Return the number of changes made.
642 * config/sh/sh.md: Update caller accordingly.
643
644 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
645
646 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
647 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
648
649 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
650
651 * config/m68k/m68k.c: Include rtl-iter.h.
652 (m68k_final_prescan_insn_1): Delete.
653 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
654
655 2014-10-25 Jakub Jelinek <jakub@redhat.com>
656
657 PR tree-optimization/63641
658 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
659 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
660
661 2014-10-25 Alan Modra <amodra@gmail.com>
662
663 PR rtl-optimization/63615
664 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
665 decomposing PLUS or MINUS if operands are not placed adjacent
666 in the "ops" array.
667
668 2014-10-25 Joseph Myers <joseph@codesourcery.com>
669
670 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
671 not allow e500 double in registers not satisyfing
672 SPE_SIMD_REGNO_P.
673
674 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
675
676 * dwarf2out.c (declare_in_namespace): Only emit external
677 declarations in the local scope once.
678
679 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
680
681 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
682
683 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
684
685 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
686 update uses to use new macro arguments.
687 (__LD3_LANE_FUNC): Likewise.
688 (__LD4_LANE_FUNC): Likewise.
689
690 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
691
692 * config/aarch64/aarch64-builtins.c
693 (aarch64_types_loadstruct_lane_qualifiers): Define.
694 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
695 ld4_lane): New builtins.
696 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
697 New pattern.
698 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
699 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
700 (aarch64_ld2_lane<mode>): New expand.
701 (aarch64_ld3_lane<mode>): Likewise.
702 (aarch64_ld4_lane<mode>): Likewise.
703 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
704 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
705
706 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
707
708 * avr-protos.h (avr_out_sign_extend): New.
709 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
710 (avr_out_sign_extend): New function.
711 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
712 (extendhisi2, extendpsisi2): Use it.
713 (adjust_len) [sext]: New.
714
715 2014-10-24 Martin Liska <mliska@suse.cz>
716
717 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
718 added.
719
720 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
721
722 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
723 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
724 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
725 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
726
727 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
728
729 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
730 do while (0).
731 * config/aarch64/aarch64.c (is_mem_p): Delete.
732 (is_memory_op): Rename to...
733 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
734 (dep_between_memop_and_curr): Assert that the input is a SET.
735 (aarch64_madd_needs_nop): Add comment. Do not call
736 dep_between_memop_and_curr on NULL body.
737 (aarch64_final_prescan_insn): Add comment.
738 Include rtl-iter.h.
739
740 2014-10-24 Richard Biener <rguenther@suse.de>
741
742 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
743 to genmatch BUILD_LIBS instead.
744
745 2014-10-24 Richard Biener <rguenther@suse.de>
746
747 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
748 and build_call_expr_loc.
749 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
750 non_lvalue_loc to build it for GENERIC.
751 (decision_tree::gen_generic): Add location argument to
752 generic_simplify prototype.
753 (capture_info): New class.
754 (capture_info::capture_info): New constructor.
755 (capture_info::walk_match): New method.
756 (capture_info::walk_result): New method.
757 (capture_info::walk_c_expr): New method.
758 (dt_simplify::gen): Handle preserving side-effects for
759 GENERIC code generation.
760 (decision_tree::gen_generic): Do not reject operands
761 with TREE_SIDE_EFFECTS.
762 * generic-match.h: New file.
763 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
764 * match.pd: Add some constant folding patterns from fold-const.c.
765 * fold-const.c: Include generic-match.h.
766 (fold_unary_loc): Dispatch to generic_simplify.
767 (fold_ternary_loc): Likewise.
768 (fold_binary_loc): Likewise. Remove patterns now implemented
769 by generic_simplify.
770 * gimple-fold.c (replace_stmt_with_simplification): New function.
771 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
772 (no_follow_ssa_edges): New function.
773 (fold_stmt): New overload with valueization hook. Use
774 no_follow_ssa_edges for the overload without hook.
775 (fold_stmt_inplace): Likewise.
776 * gimple-fold.h (no_follow_ssa_edges): Declare.
777
778 2014-10-24 Felix Yang <felix.yang@huawei.com>
779 Jiji Jiang <jiangjiji@huawei.com>
780
781 PR target/63173
782 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
783 (__LD3R_FUNC): Ditto.
784 (__LD4R_FUNC): Ditto.
785 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
786 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
787 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
788 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
789 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
790 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
791 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
792 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
793 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
794 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
795 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
796 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
797 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
798 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
799 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
800 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
801 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
802 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
803 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
804 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
805 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
806 builtins.
807 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
808 (aarch64_simd_ld3r<mode>): Likewise.
809 (aarch64_simd_ld4r<mode>): Likewise.
810 (aarch64_ld2r<mode>): New expand.
811 (aarch64_ld3r<mode>): Likewise.
812 (aarch64_ld4r<mode>): Likewise.
813
814 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
815
816 * rtlanal.c (get_base_term): Handle SCRATCH.
817
818 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
819
820 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
821 register pressure.
822
823 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
824
825 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
826 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
827 (max_issue, choose_ready, sched_init): Update.
828
829 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
830
831 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
832 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
833 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
834 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
835 (print_rank_for_schedule_stats): Print out elements of ready list that
836 ended up on their respective places due to each of the sorting
837 heuristics.
838 (ready_sort): Update.
839 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
840 (schedule_block): Update.
841
842 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
843
844 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
845 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
846 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
847 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
848 (model_start_schedule): Update.
849 (sched_pressure_start_bb): New static function. Calculate
850 sched_class_regs_num.
851 (schedule_block): Use it.
852 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
853
854 2014-10-24 Richard Biener <rguenther@suse.de>
855
856 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
857 host library and make sure to pull in the required libintl
858 and libiconv dependencies.
859
860 2014-10-24 Richard Biener <rguenther@suse.de>
861
862 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
863
864 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
865
866 PR bootstrap/63632
867 * collect2.c (main): Filter out -fno-lto.
868
869 2014-10-24 Martin Liska <mliska@suse.cz>
870
871 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
872 division by zero in dumps.
873 (sem_item_optimizer::merge_classes): Ditto.
874
875 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
876
877 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
878
879 2014-10-23 Ian Lance Taylor <iant@google.com>
880
881 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
882
883 2014-10-23 Ian Lance Taylor <iant@google.com>
884
885 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
886
887 2014-10-23 Jakub Jelinek <jakub@redhat.com>
888
889 PR debug/63623
890 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
891 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
892 instead of only handling autoinc in dest if it is a MEM.
893 (vt_stack_adjustments): Fix up formatting.
894
895 2014-10-23 DJ Delorie <dj@redhat.com>
896
897 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
898 independend of -mlarge.
899 * config/msp430/constraints.md (Ys): Update comment.
900
901 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
902
903 PR target/63534
904 PR target/63618
905 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
906 while it is pseudo.
907 * dse.c (deletable_insn_p): Likewise.
908
909 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
910
911 * config/avr/avr.c: Fix GNU coding rules and typos.
912 * config/avr/avr.h: Dito.
913 * config/avr/avr-c.c: Dito.
914 * config/avr/avr.md: Dito.
915
916 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
917
918 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
919 New.
920 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
921 iterator.
922 (define_expand "abs<mode>2"): Ditto.
923
924 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
925
926 * tree-core.h (tree_var_decl): Extend `function_code' field
927 by one bit, move `regdecl_flag' field to ...
928 (tree_decl_with_vis): Here.
929 * tree.h (DECL_STATIC_CHAIN): Update struct name.
930
931 2014-10-23 Richard Biener <rguenther@suse.de>
932
933 * Makefile.in (BUILD_CPPLIB): Add.
934 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
935 Drop LIBIBERTY.
936
937 2014-10-23 Richard Biener <rguenther@suse.de>
938
939 * fold-const.c (fold_binary_loc): Preserve side-effects of
940 X - X when simplifying to 0.
941 * stor-layout.c (finish_bitfield_representative): Strip
942 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
943
944 2014-10-22 Richard Biener <rguenther@suse.de>
945 Tobias Burnus <burnus@net-b.de>
946
947 PR lto/63603
948 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
949
950 2014-10-22 Dehao Chen <dehao@google.com>
951
952 * auto-profile.c: Change order of header files.
953
954 2014-10-22 Guozhi Wei <carrot@google.com>
955
956 PR tree-optimization/63530
957 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
958 pointer alignment according to DR_MISALIGNMENT.
959
960 2014-10-22 David Malcolm <dmalcolm@redhat.com>
961
962 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
963
964 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
965
966 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
967 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
968 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
969 * dominance.h: New. Add prototypes for dominance.c.
970 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
971 * cfghooks.h: (struct profile_record) Relocate here.
972 Relocate 2 prototypes from basic-block.h.
973 * basic-block.h: Move prototypes and struct to new header files.
974 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
975 * rtl.h: Move a few prototypes to new header files.
976 * cfgcleanup.c (merge_memattrs): Make static.
977 * genopinit.c (main): Add predict.h to list of includes.
978 * predict.h: Update prototype list to match predict.c.
979 * predict.c (maybe_hot_count_p): Export.
980 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
981 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
982 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
983 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
984 * profile.h: Adjust prototypes.
985 * ifcvt.h: New. Relocate struct ce_if_block here.
986 * ifcvt.c: Include ifcvt.h.
987 * config/frv/frv.c: Include ifcvt.h.
988 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
989
990 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
991
992 * lra.c (lra): Remove call to recog_init.
993 * config/i386/i386.md (preferred_for_speed): New attribute
994 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
995 "enabled". Remove check for sched1.
996
997 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
998
999 * recog.h (recog_data_d): Remove enabled_alternatives.
1000 * recog.c (extract_insn): Don't set it.
1001 * reload.c (find_reloads): Call get_enabled_alternatives.
1002
1003 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
1004
1005 * recog.h (constrain_operands): Add an alternative_mask parameter.
1006 (constrain_operands_cached): Likewise.
1007 (get_preferred_alternatives): Declare new form.
1008 * recog.c (get_preferred_alternatives): New bb-taking instance.
1009 (constrain_operands): Take the set of available alternatives as
1010 a parameter.
1011 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
1012 (extract_constrain_insn_cached): Update calls to constrain_operands.
1013 * caller-save.c (reg_save_code): Likewise.
1014 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1015 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1016 * ree.c (combine_reaching_defs): Likewise.
1017 * reload.c (can_reload_into): Likewise.
1018 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
1019 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
1020 (emit_insn_if_valid_for_reload): Likewise.
1021 * reorg.c (fill_slots_from_thread): Likewise.
1022 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
1023 * config/pa/pa.c (pa_can_combine_p): Likewise.
1024 * config/rl78/rl78.c (insn_ok_now): Likewise.
1025 * config/sh/sh.md (define_peephole2): Likewise.
1026 * final.c (final_scan_insn): Update call to constrain_operands_cached.
1027
1028 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
1029
1030 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
1031 attributes.
1032 * genattr.c (main): Handle "preferred_for_size" and
1033 "preferred_for_speed" in the same way as "enabled".
1034 * recog.h (bool_attr): New enum.
1035 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
1036 (get_preferred_alternatives, check_bool_attrs): Declare.
1037 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
1038 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
1039 New functions.
1040 (get_enabled_alternatives): Use get_bool_attr_mask.
1041 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
1042 instead of recog_data.enabled_alternatives.
1043 * ira.c (ira_setup_alts): Likewise.
1044 * postreload.c (reload_cse_simplify_operands): Likewise.
1045 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1046 * ira-lives.c (preferred_alternatives): New variable.
1047 (process_bb_node_lives): Set it.
1048 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
1049 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
1050 of recog_data.enabled_alternatives.
1051 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
1052 to preferred_alternatives.
1053 * lra-constraints.c (process_alt_operands): Update accordingly.
1054 * lra.c (lra_set_insn_recog_data): Likewise.
1055 (lra_update_insn_recog_data): Assert check_bool_attrs.
1056
1057 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
1058
1059 * recog.h (extract_constrain_insn): Declare.
1060 * recog.c (extract_constrain_insn): New function.
1061 * lra.c (check_rtl): Use it.
1062 * postreload.c (reload_cse_simplify_operands): Likewise.
1063 * reg-stack.c (check_asm_stack_operands): Likewise.
1064 (subst_asm_stack_regs): Likewise.
1065 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
1066 * regrename.c (build_def_use): Likewise.
1067 * sel-sched.c (get_reg_class): Likewise.
1068 * config/arm/arm.c (note_invalid_constants): Likewise.
1069 * config/s390/predicates.md (execute_operation): Likewise.
1070
1071 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1072 Yury Gribov <y.gribov@samsung.com>
1073
1074 * common.opt (flag_sanitize_recover): New variable.
1075 (fsanitize-recover): Remove Var/Init, deprecate.
1076 (fsanitize-recover=): New option.
1077 * doc/invoke.texi (fsanitize-recover): Update docs.
1078 * opts.c (finish_options): Use opts->x_flag_sanitize
1079 instead of flag_sanitize. Prohibit -fsanitize-recover
1080 for anything besides UBSan. Formatting.
1081 (common_handle_option): Handle OPT_fsanitize_recover_
1082 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
1083 instead of flag_sanitize.
1084 * asan.c (pass_sanopt::execute): Fix up formatting.
1085 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
1086 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
1087 instrument_bool_enum_load, ubsan_instrument_float_cast,
1088 instrument_nonnull_arg, instrument_nonnull_return): Check
1089 bits in flag_sanitize_recover bitmask instead of
1090 flag_sanitize_recover as bool flag.
1091
1092 2014-10-22 Jiong Wang <jiong.wang@arm.com>
1093
1094 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
1095
1096 2014-10-22 Renlin Li <renlin.li@arm.com>
1097
1098 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
1099 __ARM_FEATURE_IDIV__.
1100
1101 2014-10-22 Richard Biener <rguenther@suse.de>
1102
1103 * Makefile.in (s-match): Adjust dependencies to only catch
1104 match.pd.
1105
1106 2014-10-22 Richard Biener <rguenther@suse.de>
1107 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1108
1109 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
1110 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
1111 (gimple-match.c): Generate by triggering s-match.
1112 (generic-match.c): Likewise.
1113 (s-match): Rule to build gimple-match.c and generic-match.c
1114 by running the genmatch generator program.
1115 (build/hash-table.o): Dependencies to build hash-table.c for the host.
1116 (build/genmatch.o): Dependencies to build genmatch.
1117 (genprog): Add match.
1118 (build/genmatch): Likewise.
1119 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
1120 * generic-match-head.c: New file.
1121 * gimple-match-head.c: Likewise.
1122 * gimple-match.h: Likewise.
1123 * genmatch.c: Likewise.
1124 * match.pd: Likewise.
1125 * builtins.h (fold_builtin_n): Export.
1126 * builtins.c (fold_builtin_n): Likewise.
1127 * gimple-fold.h (gimple_build): Declare various overloads.
1128 (gimple_simplify): Likewise.
1129 (gimple_convert): Re-implement in terms of gimple_build.
1130 * gimple-fold.c (gimple_convert): Remove.
1131 (gimple_build): New functions.
1132 * doc/match-and-simplify.texi: New file.
1133 * doc/gccint.texi: Add menu item Match and Simplify and include
1134 match-and-simplify.texi.
1135
1136 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1137
1138 PR target/63594
1139 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
1140 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
1141 even for just TARGET_AVX2, not only for
1142 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
1143 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
1144 otherwise build it using concatenation of 256-bit
1145 broadcast.
1146 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
1147 avx512 broadcast patterns.
1148 (vec_dup<mode>): Likewise. For avx2 use
1149 v<sseintprefix>broadcast<bcstscalarsuff> instead of
1150 vbroadcast<ssescalarmodesuffix>.
1151 (AVX2_VEC_DUP_MODE): New mode iterator.
1152 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
1153 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
1154
1155 PR target/63542
1156 * config/i386/i386.c (ix86_pic_register_p): Also return
1157 true if x is a hard register with ORIGINAL_REGNO equal to
1158 pic_offset_table_rtx pseudo REGNO.
1159 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
1160 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
1161
1162 2014-10-22 Alan Modra <amodra@gmail.com>
1163
1164 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
1165 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
1166 (gcc_obstack_init): Use obstack_specify_allocation in place of
1167 _obstack_begin.
1168 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
1169 (regexp_representation): Likewise.
1170 * godump.c (go_output_type): Likewise.
1171
1172 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
1173
1174 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
1175 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
1176 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
1177
1178 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1179
1180 * doc/invoke.texi (pedantic-errors): Explain better.
1181
1182 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
1183 Vidya Praveen <vidya.praveen@atmel.com>
1184 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
1185 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
1186 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
1187
1188 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
1189 __MEMX for avrtiny.
1190 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
1191 (avr_nonconst_pointer_addrspace): Likewise.
1192 * config/avr/avr.h (AVR_HAVE_LPM): Define.
1193
1194 Added AVRTINY architecture to avr target.
1195 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
1196 (base_arch_s): member added for AVRTINY architecture.
1197 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
1198 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
1199 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
1200 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
1201 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
1202 in callee saved register list.
1203 (avr_option_override): CCP address updated for AVRTINY.
1204 (avr_init_expanders): tmp and zero rtx initialized as per arch.
1205 Reset avr_have_dimode if AVRTINY.
1206 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
1207 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
1208 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
1209 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
1210 (expand_epilogue): Likewise.
1211 (avr_print_operand): Print CCP address in case of AVRTINY also.
1212 <TBD>bad address
1213 (function_arg_regno_p): Check different register list for arguments
1214 if AVRTINY.
1215 (init_cumulative_args): Check for AVRTINY to update number of argument
1216 registers.
1217 (tiny_valid_direct_memory_access_range): New function. Return false if
1218 direct memory access range is not in accepted range for AVRTINY.
1219 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
1220 indirect load (with displacement) for AVRTINY.
1221 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
1222 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
1223 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
1224 indirect load (no displacement) for AVRTINY.
1225 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
1226 indirect load (with displacement) for AVRTINY.
1227 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
1228 indirect load for pre-decrement address.
1229 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
1230 functions. Update instruction length for AVRTINY.
1231 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
1232 SImode.
1233 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
1234 (out_movsi_r_mr): Likewise, for SImode.
1235 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
1236 indirect store (no displacement) for AVRTINY.
1237 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
1238 indirect store (with displacement) for AVRTINY.
1239 (out_movsi_mr_r): Emit out insn for IO address store. Update store
1240 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
1241 store functions.
1242 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
1243 indirect load (no displacement) for PSImode in AVRTINY.
1244 (avr_out_load_psi_reg_disp_tiny): New function to handle register
1245 indirect load (with displacement) for PSImode in AVRTINY.
1246 (avr_out_load_psi): Call PSImode register indirect load functions for
1247 AVRTINY. Update instruction length for AVRTINY.
1248 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
1249 indirect store (no displacement) for PSImode in AVRTINY.
1250 (avr_out_store_psi_reg_disp_tiny): New function to handle register
1251 indirect store (with displacement) for PSImode in AVRTINY.
1252 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
1253 register indirect store functions for AVRTINY.
1254 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
1255 register indirect store (with displacement) for AVRTINY.
1256 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
1257 register indirect store function for QImode in AVRTINY.
1258 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
1259 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
1260 indirect store (no displacement) for HImode in AVRTINY.
1261 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
1262 indirect store (with displacement) for HImode in AVRTINY.
1263 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
1264 indirect store for post-increment address in HImode.
1265 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
1266 register indirect store function for HImode in AVRTINY.
1267 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
1268 in case of AVRTINY.
1269 (order_regs_for_local_alloc): Updated register allocation order for
1270 AVRTINY.
1271 (avr_conditional_register_usage): New function. It is a target hook
1272 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
1273 used registers list and register allocation order for AVRTINY.
1274 (avr_return_in_memory): Update return value size for AVRTINY.
1275 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
1276 for AVRTINY arch and tiny program memory base address.
1277 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
1278 (avr_texinfo): Added description for AVRTINY arch.
1279 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
1280 STATIC_CHAIN_REGNUM for AVRTINY.
1281 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
1282 * config/avr/avr.md: Added constants for tmp/ zero registers in
1283 AVRTINY. Attributes for AVRTINY added.
1284 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
1285 memory access range.
1286 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
1287 in AVRTINY memory access range.
1288 (*mov<mode>): Likewise for HImode and SImode.
1289 (*movsf): Likewise for SFmode.
1290 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
1291 not have sbiw.
1292 * config/avr/avr-protos.h: Added function prototype for
1293 tiny_valid_direct_memory_access_range.
1294 * config/avr/avr-tables.opt: Regenerate.
1295 * gcc/config/avr/t-multilib: Regenerate.
1296 * doc/avr-mmcu.texi: Regenerate.
1297
1298 2014-10-21 Andrew Pinski <apinski@cavium.com>
1299
1300 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
1301 available option also.
1302 * config/aarch64/aarch64-cost-tables.h: New file.
1303 * config/aarch64/aarch64-cores.def (thunderx): New core.
1304 * config/aarch64/aarch64-tune.md: Regenerate.
1305 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
1306 of config/arm/aarch-cost-tables.h.
1307 (thunderx_regmove_cost): New variable.
1308 (thunderx_tunings): New variable.
1309
1310 2014-10-21 Dehao Chen <dehao@google.com>
1311
1312 * auto-profile.c: New file.
1313 * auto-profile.h: New file.
1314 * basic-block.h (maybe_hot_count_p): New export func.
1315 (add_working_set): New export func.
1316 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
1317 (GCOV_TAG_AFDO_FUNCTION): Likewise.
1318 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
1319 * opts.c (enable_fdo_optimizations): New func.
1320 (common_handle_option): Handle -fauto-profile flag.
1321 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
1322 (class pass_early_inline): Export early_inliner.
1323 (early_inliner): Likewise.
1324 (pass_early_inline::execute): Likewise.
1325 * ipa-inline.h (early_inliner): Likewise.
1326 * predict.c (maybe_hot_count_p): New export func.
1327 (counts_to_freqs): AutoFDO logic.
1328 (rebuild_frequencies): Likewise.
1329 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
1330 * profile.c (add_working_set): New func.
1331 * Makefile.in (auto-profile.o): New object file.
1332 * passes.def (pass_ipa_auto_profile): New pass.
1333 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
1334 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
1335 * toplev.c (compile_file): AutoFDO logic.
1336 * doc/invoke.texi (-fauto-profile): New doc.
1337 * coverage.c (coverage_init): AutoFDO logic.
1338 * common.opt (-fauto-profile): New flag.
1339 * timevar.def (TV_IPA_AUTOFDO): New tag.
1340 * value-prof.c (gimple_alloc_histogram_value): New export func.
1341 (check_ic_target): Likewise.
1342 * value-prof.h (gimple_alloc_histogram_value): Likewise.
1343 (check_ic_target): Likewise.
1344
1345 2014-10-21 David Malcolm <dmalcolm@redhat.com>
1346
1347 * cgraph.c (cgraph_c_finalize): New function.
1348 * cgraph.h (cgraph_c_finalize): New prototype.
1349 (cgraphunit_c_finalize): New prototype.
1350 * cgraphunit.c (first_analyzed): Move from analyze_functions
1351 to file-scope.
1352 (first_analyzed_var): Likewise.
1353 (analyze_functions): Move static variables into file-scope.
1354 (cgraphunit_c_finalize): New function.
1355 * diagnostic.c (diagnostic_finish): Free the memory for
1356 context->classify_diagnostic and context->printer, running the
1357 destructor for the latter.
1358 (bt_stop): Use toplev::main.
1359 * dwarf2out.c (dwarf2out_finalize): New function.
1360 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
1361 * gcse.c (gcse_c_finalize): New function.
1362 * gcse.h (gcse_c_finalize): New prototype.
1363 * ggc-page.c (init_ggc): Make idempotent.
1364 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
1365 * ipa-cp.c (ipa_cp_c_finalize): New function.
1366 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
1367 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
1368 a field of class pass_ipa_pure_const.
1369 (node_duplication_hook_holder): Likewise.
1370 (node_removal_hook_holder): Likewise.
1371 (register_hooks): Convert to method...
1372 (pass_ipa_pure_const::register_hooks): ...here, converting
1373 static variable init_p into...
1374 (pass_ipa_pure_const::init_p): ...new field.
1375 (pure_const_generate_summary): Update invocation of
1376 register_hooks to invoke as a method of current_pass.
1377 (pure_const_read_summary): Likewise.
1378 (propagate): Convert to...
1379 (pass_ipa_pure_const::execute): ...method.
1380 * ipa-reference.c (ipa_init): Move static bool init_p from here
1381 to...
1382 (ipa_init_p): New file-scope variable, so that it can be reset
1383 when repeatedly invoking the compiler within one process by...
1384 (ipa_reference_c_finalize): New function.
1385 * ipa-reference.h (ipa_reference_c_finalize): New.
1386 * main.c (main): Replace invocation of toplev_main with
1387 construction of a toplev instance, and call its "main" method.
1388 * params.c (global_init_params): Add an assert that
1389 params_finished is false.
1390 (params_c_finalize): New.
1391 * params.h (params_c_finalize): New.
1392 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
1393 invoking generate_summary, for the benefit of pass_ipa_pure_const.
1394 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
1395 before calling write_summary hook.
1396 (ipa_write_optimization_summaries_1): Likewise when calling
1397 write_optimization_summary hook.
1398 (ipa_read_summaries_1): Likewise for read_summary hook.
1399 (ipa_read_optimization_summaries_1): Likewise for
1400 read_optimization_summary hook.
1401 (execute_ipa_stmt_fixups): Likewise.
1402 * stringpool.c (init_stringpool): Clean up if we're called more
1403 than once.
1404 * timevar.c (timevar_init): Ignore repeated calls.
1405 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
1406 "ipa-prop.h".
1407 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
1408 (initialize_rtl): Move static local "initialized_once"
1409 into file scope, and rename to...
1410 (rtl_initialized): New variable.
1411 (do_compile): Move timevar initialization from here to
1412 toplev::start_timevars.
1413 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
1414 toplev::finalize): New functions.
1415 (toplev_main): Rename to...
1416 (toplev::main): ...this.
1417 * toplev.h (class toplev): New class.
1418
1419 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
1420
1421 * loop-doloop.c: Include loop-unroll.h.
1422
1423 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
1424
1425 * cfg.h: New. Header file for cfg.c.
1426 * cfganal.h: New. Header file for cfganal.c.
1427 * lcm.h: New. Header file for lcm.c.
1428 * loop-unroll.h: New. Header file for loop-unroll.h.
1429 * cfgloop.h: (unroll_loops): Remove prototype.
1430 * basic-block.h: Move prototypes and structs to new header files.
1431 Include cfg.h, cfganal.h, and lcm.h.
1432 * loop-init.c: Include loop-unroll.h.
1433 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
1434 * modulo-sched.c: Include loop-unroll.h.
1435
1436 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1437
1438 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
1439 MARKER_BYTE_UNKNOWN markers when handling casts.
1440
1441 2014-10-21 Richard Biener <rguenther@suse.de>
1442
1443 * tree-ssa-phiopt.c (value_replacement): Properly verify we
1444 are the non-singleton PHI.
1445
1446 2014-10-21 Jakub Jelinek <jakub@redhat.com>
1447
1448 PR tree-optimization/63563
1449 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
1450 if either dra or drb stmts are not normal loads/stores.
1451
1452 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
1453
1454 * config/i386/i386.c (expand_vec_perm_1): Fix
1455 expand_vec_perm_palignr case.
1456 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
1457 VI1_AVX512.
1458
1459 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
1460
1461 * cfgloopanal.c (seq_cost): Delete.
1462 * rtl.h (seq_cost): New prototype.
1463 * rtlanal.c (seq_cost): New function.
1464 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
1465
1466 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
1467
1468 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
1469 * basic-block.h: Remove prototypes for cfgrtl.c.
1470 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
1471 prototypes to cfgrtl.h.
1472 * profile.h (profile_info): Add extern export declaration.
1473 * rtl.h: Remove prototypes for cfgrtl.h.
1474 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
1475 * ipa-inline.c: Include profile.h.
1476 * loop-unroll.c: Ditto.
1477 * modulo-sched.c: Ditto.
1478 * postreload-gcse.c: Ditto.
1479 * predict.c: Ditto.
1480 * sched-ebb.c: Ditto.
1481 * sched-rgn.c: Ditto.
1482 * tracer.c: Ditto.
1483 * tree-ssa-loop-ivcanon.c: Ditto.
1484
1485 2014-10-20 Richard Biener <rguenther@suse.de>
1486
1487 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
1488 operands to get a def operand kind match. Signal mismatches
1489 to the parent so we can try swapping its operands.
1490 (vect_build_slp_tree): Try swapping operands if they have
1491 a mismatched operand kind.
1492
1493 2014-10-20 Alan Modra <amodra@gmail.com>
1494
1495 PR debug/60655
1496 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
1497 Increase "ops" array size. Correct array size tests. Init
1498 n_constants in loop. Break out of innermost loop when finding
1499 a trivial CONST expression.
1500
1501 2014-10-20 Martin Liska <mliska@suse.cz>
1502
1503 PR ipa/63583
1504 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
1505 Gimple tempate string is compared.
1506
1507 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
1508
1509 * varasm.c (const_alias_set): Remove.
1510 (init_varasm_once): Remove initialization of const_alias_set.
1511 (build_constant_desc): Do not set alias set to const_alias_set.
1512
1513 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
1514
1515 * configure: Regenerate.
1516 * configure.ac: Move the test for section attribute specifier "e" in GAS
1517 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
1518 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
1519 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
1520 ifdef HAVE_GAS_SECTION_EXCLUDE.
1521
1522 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
1523
1524 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
1525 match_operand expression.
1526
1527 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1528 David Edelsohn <dje.gcc@gmail.com>
1529
1530 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
1531 function.
1532 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1533
1534 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1535
1536 * doc/invoke.texi (Options to Request or Suppress Warnings):
1537 Explain options precedence.
1538 (Wtrampolines): Do not indent paragraph.
1539
1540 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
1541
1542 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
1543 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
1544 (pa_jump_in_call_delay): Likewise.
1545 * config/pa/pa.c (pa_option_override): Remove jump in call delay
1546 override.
1547 (pa_output_millicode_call): Remove support for jump in call delay.
1548 (pa_output_call): Likewise.
1549 (pa_jump_in_call_delay): Delete.
1550 (pa_following_call): Likewise.
1551 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
1552 (uncond_branch): Remove following call check from attribute length.
1553
1554 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
1555
1556 PR target/53513
1557 * config/sh/sh-modes.def (PSI): Remove.
1558 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
1559 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
1560 (sh_reorg): Remove commented out FPSCR code.
1561 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
1562 insn instead of move insn.
1563 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1564 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1565 handling.
1566 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1567 (sh1_builtin_p): Uncomment.
1568 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1569 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1570 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1571 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1572 (general_movsrc_operand, general_movdst_operand): Disallow
1573 fpscr_operand.
1574 * config/sh/sh.md (FPSCR_FR): New constant.
1575 (push_fpscr): Emit sts_fpscr insn.
1576 (pop_fpscr): Emit lds_fpscr_insn.
1577 (movsi_ie): Disallow FPSCR operands.
1578 (fpu_switch, unnamed related split, extend_psi_si,
1579 truncate_si_psi): Remove insns.
1580 (lds_fpscr, sts_fpscr): New insns.
1581 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1582
1583 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
1584
1585 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1586 (clone_inlined_nodes): Do not overwrite the clone if above predicate
1587 returns true.
1588
1589 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
1590
1591 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1592 (expand_vec_perm_d): Ditto.
1593 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1594 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1595 V4DFmode.
1596 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1597 (ix86_expand_sse_unpack): Handle V64QImode.
1598 (expand_vec_perm_blend): Update conditions for TARGET, handle
1599 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1600 (expand_vec_perm_pshufb): Handle V64QImode.
1601 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1602 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1603 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
1604 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1605 (ix86_expand_vecop_qihi): Handle V64QImode.
1606 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1607 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1608 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1609 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1610 (mul<mode>3): Use VI1_AVX512.
1611 (<sse2_avx2>_packsswb): Ditto.
1612 (<sse2_avx2>_packuswb): Ditto.
1613 (<ssse3_avx2>_pshufb<mode>3): Ditto.
1614 (<shift_insn><mode>3): Ditto.
1615
1616 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
1617
1618 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1619 conditions to fix bootstrap.
1620
1621 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
1622
1623 gcc-plugin.h: Add tm.h and flattened includes from function.h.
1624
1625 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
1626 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1627 Anna Tikhonova <anna.tikhonova@intel.com>
1628 Ilya Tocar <ilya.tocar@intel.com>
1629 Andrey Turetskiy <andrey.turetskiy@intel.com>
1630 Ilya Verbin <ilya.verbin@intel.com>
1631 Kirill Yukhin <kirill.yukhin@intel.com>
1632 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1633
1634 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1635 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1636 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1637 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1638 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1639 (define_expand "vec_init<mode>"): Use VF48_I1248.
1640
1641 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
1642 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1643 Anna Tikhonova <anna.tikhonova@intel.com>
1644 Ilya Tocar <ilya.tocar@intel.com>
1645 Andrey Turetskiy <andrey.turetskiy@intel.com>
1646 Ilya Verbin <ilya.verbin@intel.com>
1647 Kirill Yukhin <kirill.yukhin@intel.com>
1648 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1649
1650 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1651 expand_sse2_mulvxdi3.
1652
1653 2014-10-17 Richard Biener <rguenther@suse.de>
1654
1655 * fold-const.c (fold_comparison): Remove redundant constant
1656 folding and operand swapping.
1657 (fold_binary_loc): Do comparison operand swapping here.
1658 (fold_ternary_loc): Canonicalize operand order for
1659 commutative ternary operations.
1660 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1661 and FMA_EXPR.
1662
1663 2014-10-17 Jakub Jelinek <jakub@redhat.com>
1664
1665 PR tree-optimization/63464
1666 * gimple.h (gimple_seq_discard): New prototype.
1667 * gimple.c: Include stringpool.h and tree-ssanames.h.
1668 (gimple_seq_discard): New function.
1669 * optabs.h (lshift_cheap_p): New prototype.
1670 * optabs.c (lshift_cheap_p): New function, moved from...
1671 * tree-switch-conversion.c (lshift_cheap_p): ... here.
1672 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1673 (reassoc_branch_fixups): New variable.
1674 (update_range_test): Add otherrangep and seq arguments.
1675 Unshare exp. If otherrange is NULL, use for other ranges
1676 array of pointers pointed by otherrangep instead.
1677 Emit seq before gimplified statements for tem.
1678 (optimize_range_tests_diff): Adjust update_range_test
1679 caller.
1680 (optimize_range_tests_xor): Likewise. Fix up comment.
1681 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1682 functions.
1683 (optimize_range_tests): Adjust update_range_test caller.
1684 Call optimize_range_tests_to_bit_test.
1685 (branch_fixup): New function.
1686 (execute_reassoc): Call branch_fixup.
1687
1688 PR tree-optimization/63302
1689 * tree-ssa-reassoc.c (optimize_range_tests_xor,
1690 optimize_range_tests_diff): Use !integer_pow2p () instead of
1691 tree_log2 () < 0.
1692
1693 2014-10-17 Martin Liska <mliska@suse.cz>
1694
1695 * ipa-icf.c (sem_function::merge): Local flags are set to false
1696 to enforce equal calling convention to be used.
1697 * opts.c (common_handle_option): Indentation fix.
1698
1699 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
1700
1701 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1702
1703 2014-10-17 Tom de Vries <tom@codesourcery.com>
1704
1705 PR rtl-optimization/61605
1706 * regcprop.c (copyprop_hardreg_forward_1): Use
1707 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1708
1709 2014-10-17 Tom de Vries <tom@codesourcery.com>
1710
1711 PR rtl-optimization/61605
1712 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
1713 notice stores for noops. Don't regard noops as copies.
1714
1715 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
1716
1717 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1718 register in a special way.
1719 (__cpuid_count): Ditto.
1720 * config/i386/driver-i386.h: Protect with
1721 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1722 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1723 is required to compile the function.
1724
1725 2014-10-16 DJ Delorie <dj@redhat.com>
1726
1727 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1728 integers.
1729
1730 * config/rs6000/rs6000-c.c (rid_int128): New.
1731 (rs6000_macro_to_expand): Use instead of RID_INT128.
1732
1733 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1734
1735 * function.h: Flatten file. Remove includes, adjust prototypes to
1736 reflect only what is in function.h.
1737 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1738 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1739 from expr.h.
1740 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1741 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1742 prototypes to predict.h.
1743 (init_varasm_status): Move prototype to varasm.h.
1744 * expr.h: Adjust include files.
1745 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1746 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1747 to function.h.
1748 (locate_and_pad_parm): Move prototype to function.h.
1749 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1750 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1751 assign_temp, reposition_prologue_and_epilogue_notes,
1752 prologue_epilogue_contains, sibcall_epilogue_contains,
1753 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1754 set_return_jump_label): Move prototypes to function.h.
1755 * predict.h (optimize_function_for_size_p,
1756 optimize_function_for_speed_p): Relocate prototypes from function.h.
1757 * shrink-wrap.h (emit_return_into_block, active_insn_between,
1758 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1759 function.h.
1760 * varasm.h (init_varasm_status): Relocate prototype from function.h.
1761 * genattrtab.c (write_header): Add predict.h to include list.
1762 * genconditions.c (write_header): Add predict.h to include list.
1763 * genemit.c (main): Adjust header file includes.
1764 * gengtype.c (ifiles): Add flattened function.h header files.
1765 * genoutput.c (output_prologue): Add predict.h to include list.
1766 * genpreds.c (write_insn_preds_c): Adjust header file includes.
1767 * genrecog.c (write_header): Add flattened function.h header files.
1768 * alias.c: Adjust include files.
1769 * auto-inc-dec.c: Likewise.
1770 * basic-block.h: Likewise.
1771 * bb-reorder.c: Likewise.
1772 * bt-load.c: Likewise.
1773 * builtins.c: Likewise.
1774 * caller-save.c: Likewise.
1775 * calls.c: Likewise.
1776 * cfgbuild.c: Likewise.
1777 * cfgcleanup.c: Likewise.
1778 * cfgexpand.c: Likewise.
1779 * cfgloop.c: Likewise.
1780 * cfgloop.h: Likewise.
1781 * cfgrtl.c: Likewise.
1782 * cgraph.h: Likewise.
1783 * cgraphclones.c: Likewise.
1784 * cgraphunit.c: Likewise.
1785 * combine-stack-adj.c: Likewise.
1786 * combine.c: Likewise.
1787 * coverage.c: Likewise.
1788 * cprop.c: Likewise.
1789 * cse.c: Likewise.
1790 * cselib.c: Likewise.
1791 * dbxout.c: Likewise.
1792 * ddg.c: Likewise.
1793 * df-core.c: Likewise.
1794 * df-problems.c: Likewise.
1795 * df-scan.c: Likewise.
1796 * dojump.c: Likewise.
1797 * dwarf2cfi.c: Likewise.
1798 * dwarf2out.c: Likewise.
1799 * emit-rtl.c: Likewise.
1800 * except.c: Likewise.
1801 * explow.c: Likewise.
1802 * expr.c: Likewise.
1803 * final.c: Likewise.
1804 * function.c: Likewise.
1805 * gcse.c: Likewise.
1806 * gimple-fold.c: Likewise.
1807 * gimple-low.c: Likewise.
1808 * gimple-streamer.h: Likewise.
1809 * haifa-sched.c: Likewise.
1810 * ifcvt.c: Likewise.
1811 * ira.c: Likewise.
1812 * jump.c: Likewise.
1813 * lcm.c: Likewise.
1814 * loop-invariant.c: Likewise.
1815 * lra-assigns.c: Likewise.
1816 * lra-coalesce.c: Likewise.
1817 * lra-constraints.c: Likewise.
1818 * lra-eliminations.c: Likewise.
1819 * lra-lives.c: Likewise.
1820 * lra-spills.c: Likewise.
1821 * lra.c: Likewise.
1822 * lto-cgraph.c: Likewise.
1823 * lto-section-in.c: Likewise.
1824 * lto-section-out.c: Likewise.
1825 * lto-streamer-in.c: Likewise.
1826 * lto-streamer-out.c: Likewise.
1827 * mode-switching.c: Likewise.
1828 * modulo-sched.c: Likewise.
1829 * omp-low.c: Likewise.
1830 * optabs.c: Likewise.
1831 * passes.c: Likewise.
1832 * postreload-gcse.c: Likewise.
1833 * postreload.c: Likewise.
1834 * predict.c: Likewise.
1835 * profile.c: Likewise.
1836 * recog.c: Likewise.
1837 * ree.c: Likewise.
1838 * reg-stack.c: Likewise.
1839 * regcprop.c: Likewise.
1840 * reginfo.c: Likewise.
1841 * regrename.c: Likewise.
1842 * reload.c: Likewise.
1843 * reload1.c: Likewise.
1844 * reorg.c: Likewise.
1845 * resource.c: Likewise.
1846 * rtlanal.c: Likewise.
1847 * sched-deps.c: Likewise.
1848 * sched-ebb.c: Likewise.
1849 * sched-rgn.c: Likewise.
1850 * sel-sched-dump.c: Likewise.
1851 * sel-sched-ir.c: Likewise.
1852 * sel-sched.c: Likewise.
1853 * shrink-wrap.c: Likewise.
1854 * simplify-rtx.c: Likewise.
1855 * statistics.c: Likewise.
1856 * stmt.c: Likewise.
1857 * stor-layout.c: Likewise.
1858 * store-motion.c: Likewise.
1859 * symtab.c: Likewise.
1860 * targhooks.c: Likewise.
1861 * toplev.c: Likewise.
1862 * trans-mem.c: Likewise.
1863 * tree-cfg.c: Likewise.
1864 * tree-cfgcleanup.c: Likewise.
1865 * tree-dfa.c: Likewise.
1866 * tree-eh.c: Likewise.
1867 * tree-inline.c: Likewise.
1868 * tree-into-ssa.c: Likewise.
1869 * tree-nested.c: Likewise.
1870 * tree-nrv.c: Likewise.
1871 * tree-profile.c: Likewise.
1872 * tree-ssa-alias.c: Likewise.
1873 * tree-ssa-ccp.c: Likewise.
1874 * tree-ssa-copy.c: Likewise.
1875 * tree-ssa-copyrename.c: Likewise.
1876 * tree-ssa-dom.c: Likewise.
1877 * tree-ssa-operands.c: Likewise.
1878 * tree-ssa-propagate.c: Likewise.
1879 * tree-ssa-structalias.c: Likewise.
1880 * tree-ssa-tail-merge.c: Likewise.
1881 * tree-ssa-threadedge.c: Likewise.
1882 * tree-ssa-threadupdate.c: Likewise.
1883 * tree-ssa-uncprop.c: Likewise.
1884 * tree-ssa-uninit.c: Likewise.
1885 * tree-ssa.c: Likewise.
1886 * tree-stdarg.c: Likewise.
1887 * tree-tailcall.c: Likewise.
1888 * tree.c: Likewise.
1889 * tsan.c: Likewise.
1890 * valtrack.c: Likewise.
1891 * varasm.c: Likewise.
1892 * vmsdbgout.c: Likewise.
1893 * web.c: Likewise.
1894 * config/aarch64/aarch64.c: Add flattened includes from function.h.
1895 * config/alpha/alpha.c: Likewise.
1896 * config/arc/arc.c: Likewise.
1897 * config/arm/arm.c: Likewise.
1898 * config/avr/avr-log.c: Likewise.
1899 * config/avr/avr.c: Likewise.
1900 * config/bfin/bfin.c: Likewise.
1901 * config/c6x/c6x.c: Likewise.
1902 * config/cr16/cr16.c: Likewise.
1903 * config/cris/cris.c: Likewise.
1904 * config/darwin.c: Likewise.
1905 * config/epiphany/epiphany.c: Likewise.
1906 * config/epiphany/mode-switch-use.c: Likewise.
1907 * config/epiphany/resolve-sw-modes.c: Likewise.
1908 * config/fr30/fr30.c: Likewise.
1909 * config/frv/frv.c: Likewise.
1910 * config/h8300/h8300.c: Likewise.
1911 * config/i386/i386.c: Likewise.
1912 * config/ia64/ia64.c: Likewise.
1913 * config/iq2000/iq2000.c: Likewise.
1914 * config/lm32/lm32.c: Likewise.
1915 * config/m32c/m32c.c: Likewise.
1916 * config/m32r/m32r.c: Likewise.
1917 * config/m68k/m68k.c: Likewise.
1918 * config/mcore/mcore.c: Likewise.
1919 * config/mep/mep-pragma.c: Likewise.
1920 * config/mep/mep.c: Likewise.
1921 * config/microblaze/microblaze.c: Likewise.
1922 * config/mips/mips.c: Likewise.
1923 * config/mmix/mmix.c: Likewise.
1924 * config/mn10300/mn10300.c: Likewise.
1925 * config/moxie/moxie.c: Likewise.
1926 * config/msp430/msp430.c: Likewise.
1927 * config/nds32/nds32-cost.c: Likewise.
1928 * config/nds32/nds32-fp-as-gp.c: Likewise.
1929 * config/nds32/nds32-intrinsic.c: Likewise.
1930 * config/nds32/nds32-isr.c: Likewise.
1931 * config/nds32/nds32-md-auxiliary.c: Likewise.
1932 * config/nds32/nds32-memory-manipulation.c: Likewise.
1933 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1934 * config/nds32/nds32-predicates.c: Likewise.
1935 * config/nds32/nds32.c: Likewise.
1936 * config/nios2/nios2.c: Likewise.
1937 * config/pa/pa.c: Likewise.
1938 * config/pdp11/pdp11.c: Likewise.
1939 * config/rl78/rl78.c: Likewise.
1940 * config/rs6000/rs6000.c: Likewise.
1941 * config/rx/rx.c: Likewise.
1942 * config/s390/s390.c: Likewise.
1943 * config/score/score.c: Likewise.
1944 * config/sh/sh.c: Likewise.
1945 * config/sparc/sparc.c: Likewise.
1946 * config/spu/spu.c: Likewise.
1947 * config/stormy16/stormy16.c: Likewise.
1948 * config/tilegx/tilegx.c: Likewise.
1949 * config/tilepro/tilepro.c: Likewise.
1950 * config/v850/v850.c: Likewise.
1951 * config/vax/vax.c: Likewise.
1952 * config/xtensa/xtensa.c: Likewise.
1953
1954 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1955
1956 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1957 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1958
1959 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1960
1961 * config/sh/sh-protos.h (fldi_ok): Remove.
1962 * config/sh/sh.c (fldi_ok): Likewise.
1963 (sh_secondary_reload): Don't use fldi_ok.
1964 * config/sh/constraints.md (G constraint, H constraint): Don't use
1965 fldi_ok.
1966
1967 2014-10-16 Martin Liska <mliska@suse.cz>
1968
1969 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1970 Cast to unsigned long.
1971 (sem_item_optimizer::dump_cong_classes): Likewise.
1972
1973 2014-10-16 Tom de Vries <tom@codesourcery.com>
1974
1975 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1976 with SSA_NAME_IN_FREELIST.
1977
1978 2014-10-16 Richard Biener <rguenther@suse.de>
1979
1980 PR middle-end/63554
1981 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1982 (fold_builtin_strncat_chk): Move ...
1983 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1984 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1985
1986 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1987
1988 PR target/59401
1989 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1990 GBR to 0.
1991
1992 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1993 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1994 Anna Tikhonova <anna.tikhonova@intel.com>
1995 Ilya Tocar <ilya.tocar@intel.com>
1996 Andrey Turetskiy <andrey.turetskiy@intel.com>
1997 Ilya Verbin <ilya.verbin@intel.com>
1998 Kirill Yukhin <kirill.yukhin@intel.com>
1999 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2000
2001 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
2002 V64QI modes.
2003
2004 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
2005 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2006 Anna Tikhonova <anna.tikhonova@intel.com>
2007 Ilya Tocar <ilya.tocar@intel.com>
2008 Andrey Turetskiy <andrey.turetskiy@intel.com>
2009 Ilya Verbin <ilya.verbin@intel.com>
2010 Kirill Yukhin <kirill.yukhin@intel.com>
2011 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2012
2013 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
2014 V16SI, V32HI, V64QI modes.
2015
2016 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
2017
2018 PR target/53513
2019 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
2020 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
2021
2022 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
2023 to match fp insn patterns.
2024 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
2025 list.
2026 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
2027 expand_df_unop, expand_df_binop): Remove.
2028 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
2029 FPSCR_STAT_REG as not call clobbered.
2030 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
2031 invoking fpscr_set_from_mem.
2032
2033 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
2034 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
2035 FPSCR_STAT_REG.
2036 (REGISTER_NAMES): Adjust.
2037 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2038 (FIRST_PSEUDO_REGISTER): Increase to 156.
2039 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
2040 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
2041 FPSCR_STAT_REG.
2042 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
2043 FPSCR_MODES_REG and FPSCR_STAT_REG.
2044 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
2045
2046 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
2047 FPSCR_SZ): Add new constants.
2048 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
2049
2050 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
2051 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
2052 Use TARGET_FPU_ANY condition.
2053 (fpu_switch peephole2): Remove.
2054 (fpu_switch split): Use simple_mem_operand to capture the mem and
2055 adjust split implementation.
2056 (extend_psi_si, truncate_si_psi): New insns.
2057 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
2058 set of FPSCR_MODES_REG.
2059
2060 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
2061 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
2062 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
2063 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
2064 call_value_compact, call_value_compact_rettramp, call,
2065 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
2066 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
2067 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
2068 sibcall_value_compact, sibcall_value, call_value_pop_compact,
2069 call_value_pop_compact_rettramp, various unnamed splits):
2070 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
2071 function uses.
2072
2073 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
2074 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
2075 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
2076 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
2077 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
2078
2079 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
2080 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
2081 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
2082 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
2083 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
2084 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
2085 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
2086
2087 2014-10-16 Martin Liska <mliska@suse.cz>
2088 Jan Hubicka <hubicka@ucw.cz>
2089
2090 * Makefile.in: New object files included.
2091 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
2092 is printed.
2093 (verify_edge_corresponds_to_fndecl): More sensitive verification
2094 of nodes that are merged by IPA ICF.
2095 * cgraph.h (cgraph_node::num_references): New function.
2096 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
2097 * common.opt: New options ipa-icf, ipa-icf-functions and
2098 ipa-icf-variables introduced.
2099 * doc/invoke.texi: Documentation of new options introduced.
2100 * ipa-icf-gimple.c: New file.
2101 * ipa-icf-gimple.h: New file.
2102 * ipa-icf.c: New file.
2103 * ipa-icf.h: New file.
2104 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
2105 (input_overwrite_node): Likewise.
2106 * lto-section-in.c: New icf section added.
2107 * lto-streamer.h (enum lto_section_type): Likewise.
2108 * opts.c (common_handle_option): New option added.
2109 * passes.def: New pass included.
2110 * timevar.def: Time variable for IPA ICF added.
2111 * tree-pass.h: New IPA ICF pass entry point added.
2112
2113 2014-10-16 Richard Biener <rguenther@suse.de>
2114
2115 PR tree-optimization/63168
2116 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
2117 latches if after merging they are no longer simple.
2118 * cfghooks.c (merge_blocks): Handle merging a latch block
2119 into another block.
2120
2121 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
2122 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2123 Anna Tikhonova <anna.tikhonova@intel.com>
2124 Ilya Tocar <ilya.tocar@intel.com>
2125 Andrey Turetskiy <andrey.turetskiy@intel.com>
2126 Ilya Verbin <ilya.verbin@intel.com>
2127 Kirill Yukhin <kirill.yukhin@intel.com>
2128 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2129
2130 * config/i386/sse.md
2131 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
2132 support AVX-512VL instructions.
2133
2134 2014-10-16 DJ Delorie <dj@redhat.com>
2135
2136 * tree-core.h: Fix comment to not assume pointers are multiples of
2137 bytes.
2138
2139 2014-10-15 Tom Tromey <tromey@redhat.com>
2140
2141 * timevar.h (class auto_timevar): New class.
2142
2143 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
2144
2145 PR go/59432
2146 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2147 Remove the second alternative.
2148 (regprefix): Remove mode attribute.
2149 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
2150 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
2151
2152 Revert:
2153 2013-11-05 Ian Lance Taylor <iant@google.com>
2154
2155 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2156 If possible, add .cfi directives to record change to bx.
2157 * config/i386/i386.c (ix86_emit_cfi): New function.
2158 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
2159
2160 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
2161
2162 PR lto/62026
2163 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
2164 to duplicate.
2165 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
2166 at WPA time.
2167
2168 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
2169
2170 PR rtl-optimization/63448
2171 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
2172 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
2173 (LRA_MAX_INHERITANCE_PASSES): Use it.
2174 (lra_constraint_iter_after_spill): Remove.
2175 (lra_assignment_iter): New.
2176 (lra_assignment_iter_after_spill): New.
2177 * lra-assigns.c (lra_assignment_iter): New.
2178 (lra_assignment_iter_after_spill): New.
2179 (former_reload_pseudo_spill_p): New.
2180 (spill_for): Set up former_reload_pseudo_spill_p.
2181 (setup_live_pseudos_and_spill_after_risky): Ditto.
2182 (assign_by_spills): Ditto.
2183 (lra_assign): Increment lra_assignment_iter. Print the iteration
2184 number. Reset former_reload_pseudo_spill_p. Check
2185 lra_assignment_iter_after_spill.
2186 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
2187 lra_assignment_iter and lra_assignment_iter_after_spill.
2188 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
2189 (lra_constraints): Remove code with
2190 lra_assignment_iter_after_spill.
2191
2192 2014-10-15 Teresa Johnson <tejohnson@google.com>
2193
2194 PR bootstrap/63432
2195 * tree-ssa-threadupdate.c (recompute_probabilities): Better
2196 overflow checking.
2197
2198 2014-10-15 Renlin Li <renlin.li@arm.com>
2199
2200 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2201 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
2202 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
2203 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
2204
2205 2014-10-15 Richard Biener <rguenther@suse.de>
2206
2207 * gimple-fold.c (gimple_fold_call): Properly keep virtual
2208 SSA form up-to-date when devirtualizing a call to
2209 __builtin_unreachable and avoid fixing up EH info here.
2210
2211 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2213 Anna Tikhonova <anna.tikhonova@intel.com>
2214 Ilya Tocar <ilya.tocar@intel.com>
2215 Andrey Turetskiy <andrey.turetskiy@intel.com>
2216 Ilya Verbin <ilya.verbin@intel.com>
2217 Kirill Yukhin <kirill.yukhin@intel.com>
2218 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2219
2220 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
2221 to support AVX-512BW.
2222 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
2223 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
2224 (define_insn "*<plusminus_insn><mode>3"): Ditto.
2225 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
2226 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2227 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
2228 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2229 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
2230 (define_insn "*andnot<mode>3"): Ditto.
2231 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
2232 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
2233 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2234 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
2235 (define_insn "*abs<mode>2"): Remove masking support.
2236 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
2237 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
2238 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
2239
2240 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2241 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2242 Anna Tikhonova <anna.tikhonova@intel.com>
2243 Ilya Tocar <ilya.tocar@intel.com>
2244 Andrey Turetskiy <andrey.turetskiy@intel.com>
2245 Ilya Verbin <ilya.verbin@intel.com>
2246 Kirill Yukhin <kirill.yukhin@intel.com>
2247 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2248
2249 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
2250 * config/i386/sse.md
2251 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
2252 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
2253 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
2254 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2255 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2256 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2257 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2258
2259 2014-10-15 Renlin Li <renlin.li@arm.com>
2260
2261 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
2262
2263 2014-10-15 Jakub Jelinek <jakub@redhat.com>
2264
2265 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
2266 MINUS_EXPR in unsigned type to avoid undefined behavior.
2267
2268 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
2269
2270 * stor-layout.c (self_referential_size): Do not promote arguments.
2271
2272 2014-10-15 Marek Polacek <polacek@redhat.com>
2273
2274 * doc/invoke.texi: Update to reflect that GNU11 is the default
2275 mode for C.
2276 * c-common.h (c_language_kind): Update comment.
2277
2278 2014-10-15 Richard Biener <rguenther@suse.de>
2279
2280 * hash-table.c: Include bconfig.h if building for the host.
2281 * hash-table.h: Do not include ggc.h on the host but just declare
2282 a few ggc allocation templates.
2283
2284 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
2285 Jeff Law <law@redhat.com>
2286
2287 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
2288 multiple hard registers, use smaller mode derived from MODE.
2289
2290 2014-10-15 Andreas Schwab <schwab@suse.de>
2291
2292 * explow.c (convert_memory_address_addr_space_1): Mark in_const
2293 as ATTRIBUTE_UNUSED.
2294
2295 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
2296
2297 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
2298 (decide_unrolling): ... this one.
2299 (peel_loops_completely): Remove.
2300 (decide_peel_simple): Remove.
2301 (decide_peel_once_rolling): Remove.
2302 (decide_peel_completely): Remove.
2303 (peel_loop_simple): Remove.
2304 (peel_loop_completely): Remove.
2305 (unroll_and_peel_loops): Rename to ...
2306 (unroll_loops): ... this one; handle only unrolling.
2307 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
2308 LPT_PEEL_SIMPLE.
2309 (UAP_PEEL): Remove.
2310 (unroll_and_peel_loops): Remove.
2311 (unroll_loops): New.
2312 * passes.def: Replace
2313 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
2314 * loop-init.c (gate_rtl_unroll_and_peel_loops,
2315 rtl_unroll_and_peel_loops): Rename to ...
2316 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
2317 (pass_rtl_unroll_and_peel_loops): Rename to ...
2318 (pass_rtl_unroll_loops): ... this one.
2319 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
2320 (make_pass_rtl_unroll_loops): New.
2321 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
2322 (canonicalize_loop_induction_variables): Update.
2323
2324 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
2325
2326 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
2327 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
2328 !TARGET_HARD_FLOAT_POSTINC.
2329 (*lsip, *ssip): new instructions.
2330
2331 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
2332
2333 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
2334 remove.
2335
2336 2014-10-14 Andrew Pinski <apinski@cavium.com>
2337
2338 * explow.c (convert_memory_address_addr_space): Rename to ...
2339 (convert_memory_address_addr_space_1): This. Add in_const argument.
2340 Inside a CONST RTL, permute the conversion and addition of constant
2341 for zero and sign extended pointers.
2342 (convert_memory_address_addr_space): New function.
2343
2344 2014-10-14 Andrew Pinski <apinski@cavium.com>
2345
2346 Revert:
2347 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
2348
2349 PR middle-end/49721
2350 * explow.c (convert_memory_address_addr_space): Also permute the
2351 conversion and addition of constant for zero-extend.
2352
2353 2014-10-14 DJ Delorie <dj@redhat.com>
2354
2355 * config/msp430/msp430-modes.def (PSI): Add.
2356
2357 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
2358 (msp430_hard_regno_nregs_with_padding): New.
2359 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
2360 (msp430_hard_regno_nregs_has_padding): New.
2361 (msp430_hard_regno_nregs_with_padding): New.
2362 (msp430_unwind_word_mode): Use PSImode instead of SImode.
2363 (msp430_addr_space_legitimate_address_p): New.
2364 (msp430_asm_integer): New.
2365 (msp430_init_dwarf_reg_sizes_extra): New.
2366 (msp430_print_operand): Use X suffix for PSImode even in small model.
2367 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
2368 (PTR_SIZE): ...but 4 bytes for EH.
2369 (SIZE_TYPE): Use __int20.
2370 (PTRDIFF_TYPE): Likewise.
2371 (INCOMING_FRAME_SP_OFFSET): Adjust.
2372 * config/msp430/msp430.md (movqi_topbyte): New.
2373 (movpsi): Use fixed suffixes.
2374 (movsipsi2): Enable for 430X, not large model.
2375 (extendhipsi2): Likewise.
2376 (zero_extendhisi2): Likewise.
2377 (zero_extendhisipsi2): Likewise.
2378 (extend_and_shift1_hipsi2): Likewise.
2379 (extendpsisi2): Likewise.
2380 (*bitbranch<mode>4_z): Fix suffix logic.
2381
2382 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
2383
2384 PR ada/62019
2385 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
2386 do not choke on null node.
2387 <VAR_DECL>: Likewise.
2388
2389 2014-10-14 DJ Delorie <dj@redhat.com>
2390
2391 * machmode.h (int_n_data_t): New.
2392 (int_n_enabled_p): New.
2393 (int_n_data): New.
2394 * tree.c (int_n_enabled_p): New.
2395 (int_n_trees): New.
2396 (make_or_reuse_type): Check for all __intN types, not just
2397 __int128.
2398 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
2399 entries.
2400 * tree.h (int128_integer_type_node): Remove.
2401 (int128_unsigned_type_node): Remove.
2402 (int_n_trees_t): New.
2403 (int_n_enabled_p): New.
2404 (int_n_trees): New.
2405 * toplev.c (standard_type_bitsize): New.
2406 (do_compile): Check which __intN types are enabled for the current
2407 run.
2408 * builtin-types.def (BT_INT128): Remove.
2409 (BT_UINT128): Remove.
2410 * machmode.def: Add macro to create __int128 for all targets.
2411 * stor-layout.c (mode_for_size): Support __intN types.
2412 (smallest_mode_for_size): Likewise.
2413 (initialize_sizetypes): Support __intN types.
2414 * genmodes.c (struct mode_data): Add int_n field.
2415 (blank_mode): Likewise.
2416 (INT_N): New.
2417 (make_int_n): New.
2418 (emit_insn_modes_h): Count __intN entries and define
2419 NUM_INT_N_ENTS.
2420 (emit_mode_int_n): New.
2421 (emit_insn_modes_c): Call it.
2422 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
2423 types, not just __int128.
2424 * tree-core.h (integer_type_kind): Remove __int128-specific
2425 entries, reserve spots for __intN entries.
2426
2427 * config/msp430/msp430-modes.def (PSI): Add.
2428
2429 2014-10-14 Kito Cheng <kito@0xlab.org>
2430
2431 * ira.c: Fix typo in comment.
2432 * ira.h: Ditto.
2433 * ira-build.c: Ditto.
2434 * ira-color.c: Ditto.
2435 * ira-emit.c: Ditto.
2436 * ira-int.h: Ditto.
2437 * ira-lives.c: Ditto.
2438
2439 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
2440
2441 PR rtl-optimization/63475
2442 * alias.c (true_dependence_1): Always use get_addr to extract
2443 true address operands from x_addr and mem_addr. Use extracted
2444 address operands to check for references with alignment ANDs.
2445 Use extracted address operands with find_base_term and
2446 base_alias_check. For noncanonicalized operands call canon_rtx with
2447 extracted address operand.
2448 (write_dependence_1): Ditto.
2449 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
2450
2451 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
2452
2453 PR target/63534
2454 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
2455 __morestack local.
2456
2457 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2458 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2459 Anna Tikhonova <anna.tikhonova@intel.com>
2460 Ilya Tocar <ilya.tocar@intel.com>
2461 Andrey Turetskiy <andrey.turetskiy@intel.com>
2462 Ilya Verbin <ilya.verbin@intel.com>
2463 Kirill Yukhin <kirill.yukhin@intel.com>
2464 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2465
2466 * config/i386/i386.c
2467 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
2468 (ix86_expand_int_vcond): Ditto.
2469
2470 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2471 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2472 Anna Tikhonova <anna.tikhonova@intel.com>
2473 Ilya Tocar <ilya.tocar@intel.com>
2474 Andrey Turetskiy <andrey.turetskiy@intel.com>
2475 Ilya Verbin <ilya.verbin@intel.com>
2476 Kirill Yukhin <kirill.yukhin@intel.com>
2477 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2478
2479 * config/i386/i386.c
2480 (emit_reduc_half): Handle V64QI and V32HI mode.
2481 * config/i386/sse.md
2482 (define_mode_iterator VI_AVX512BW): New.
2483 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
2484
2485 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2487 Anna Tikhonova <anna.tikhonova@intel.com>
2488 Ilya Tocar <ilya.tocar@intel.com>
2489 Andrey Turetskiy <andrey.turetskiy@intel.com>
2490 Ilya Verbin <ilya.verbin@intel.com>
2491 Kirill Yukhin <kirill.yukhin@intel.com>
2492 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2493
2494 * config/i386/sse.md
2495 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
2496
2497 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2498 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2499 Anna Tikhonova <anna.tikhonova@intel.com>
2500 Ilya Tocar <ilya.tocar@intel.com>
2501 Andrey Turetskiy <andrey.turetskiy@intel.com>
2502 Ilya Verbin <ilya.verbin@intel.com>
2503 Kirill Yukhin <kirill.yukhin@intel.com>
2504 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2505
2506 * config/i386/i386.c
2507 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
2508 * config/i386/sse.md
2509 (define_mode_iterator VI): Add V64QI and V32HI modes.
2510
2511 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2512 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2513 Anna Tikhonova <anna.tikhonova@intel.com>
2514 Ilya Tocar <ilya.tocar@intel.com>
2515 Andrey Turetskiy <andrey.turetskiy@intel.com>
2516 Ilya Verbin <ilya.verbin@intel.com>
2517 Kirill Yukhin <kirill.yukhin@intel.com>
2518 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2519
2520 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
2521
2522 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2524 Anna Tikhonova <anna.tikhonova@intel.com>
2525 Ilya Tocar <ilya.tocar@intel.com>
2526 Andrey Turetskiy <andrey.turetskiy@intel.com>
2527 Ilya Verbin <ilya.verbin@intel.com>
2528 Kirill Yukhin <kirill.yukhin@intel.com>
2529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2530
2531 * config/i386/sse.md
2532 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
2533 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
2534
2535 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2536 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2537 Anna Tikhonova <anna.tikhonova@intel.com>
2538 Ilya Tocar <ilya.tocar@intel.com>
2539 Andrey Turetskiy <andrey.turetskiy@intel.com>
2540 Ilya Verbin <ilya.verbin@intel.com>
2541 Kirill Yukhin <kirill.yukhin@intel.com>
2542 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2543
2544 * config/i386/sse.md
2545 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
2546 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
2547
2548 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2549 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2550 Anna Tikhonova <anna.tikhonova@intel.com>
2551 Ilya Tocar <ilya.tocar@intel.com>
2552 Andrey Turetskiy <andrey.turetskiy@intel.com>
2553 Ilya Verbin <ilya.verbin@intel.com>
2554 Kirill Yukhin <kirill.yukhin@intel.com>
2555 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2556
2557 * config/i386/sse.md
2558 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
2559 (define_mode_iterator VI2_AVX2): Add V32HI mode.
2560 (define_expand "mul<mode>3<mask_name>"): Add masking.
2561 (define_insn "*mul<mode>3<mask_name>"): Ditto.
2562 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2563 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2564 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2565 (define_mode_attr SDOT_PMADD_SUF): Ditto.
2566 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2567 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2568 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2569 (define_insn "avx2_packusdw"): Delete.
2570 (define_insn "sse4_1_packusdw"): Ditto.
2571 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2572
2573 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2574 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2575 Anna Tikhonova <anna.tikhonova@intel.com>
2576 Ilya Tocar <ilya.tocar@intel.com>
2577 Andrey Turetskiy <andrey.turetskiy@intel.com>
2578 Ilya Verbin <ilya.verbin@intel.com>
2579 Kirill Yukhin <kirill.yukhin@intel.com>
2580 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2581
2582 * config/i386/sse.md
2583 (define_insn "vec_dup<mode>"): Update constraints.
2584
2585 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2586 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2587 Anna Tikhonova <anna.tikhonova@intel.com>
2588 Ilya Tocar <ilya.tocar@intel.com>
2589 Andrey Turetskiy <andrey.turetskiy@intel.com>
2590 Ilya Verbin <ilya.verbin@intel.com>
2591 Kirill Yukhin <kirill.yukhin@intel.com>
2592 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2593
2594 * config/i386/sse.md
2595 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2596 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2597 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2598
2599 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2601 Anna Tikhonova <anna.tikhonova@intel.com>
2602 Ilya Tocar <ilya.tocar@intel.com>
2603 Andrey Turetskiy <andrey.turetskiy@intel.com>
2604 Ilya Verbin <ilya.verbin@intel.com>
2605 Kirill Yukhin <kirill.yukhin@intel.com>
2606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2607
2608 * config/i386/sse.md
2609 (define_expand "mul<mode>3<mask_name>"): Add masking.
2610
2611 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2612 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2613 Anna Tikhonova <anna.tikhonova@intel.com>
2614 Ilya Tocar <ilya.tocar@intel.com>
2615 Andrey Turetskiy <andrey.turetskiy@intel.com>
2616 Ilya Verbin <ilya.verbin@intel.com>
2617 Kirill Yukhin <kirill.yukhin@intel.com>
2618 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2619
2620 * config/i386/sse.md
2621 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2622 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2623
2624 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2625 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2626 Anna Tikhonova <anna.tikhonova@intel.com>
2627 Ilya Tocar <ilya.tocar@intel.com>
2628 Andrey Turetskiy <andrey.turetskiy@intel.com>
2629 Ilya Verbin <ilya.verbin@intel.com>
2630 Kirill Yukhin <kirill.yukhin@intel.com>
2631 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2632
2633 * config/i386/sse.md
2634 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2635 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2636 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2637 Ditto.
2638
2639 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2641 Anna Tikhonova <anna.tikhonova@intel.com>
2642 Ilya Tocar <ilya.tocar@intel.com>
2643 Andrey Turetskiy <andrey.turetskiy@intel.com>
2644 Ilya Verbin <ilya.verbin@intel.com>
2645 Kirill Yukhin <kirill.yukhin@intel.com>
2646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2647
2648 * config/i386/sse.md
2649 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2650 use VF_128_256 mode iterator and update assembler emit code.
2651 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2652 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2653 Add masking, use VF_128_256 mode iterator.
2654 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2655 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2656 Add masking, use VF_128_256 mode iterator and update assembler emit
2657 code.
2658 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2659 (define_mode_attr avx512flogicsuff): Delete.
2660 (define_insn "avx512f_<logic><mode>"): Ditto.
2661 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2662 MODE_TI.
2663 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2664
2665 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2666 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2667 Anna Tikhonova <anna.tikhonova@intel.com>
2668 Ilya Tocar <ilya.tocar@intel.com>
2669 Andrey Turetskiy <andrey.turetskiy@intel.com>
2670 Ilya Verbin <ilya.verbin@intel.com>
2671 Kirill Yukhin <kirill.yukhin@intel.com>
2672 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2673
2674 * config/i386/sse.md
2675 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2676 (define_expand "vashr<mode>3<mask_name>"): Add masking,
2677 use VI12_128 mode iterator.
2678 (define_expand "ashrv2di3<mask_name>"): New.
2679
2680 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2681 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2682 Anna Tikhonova <anna.tikhonova@intel.com>
2683 Ilya Tocar <ilya.tocar@intel.com>
2684 Andrey Turetskiy <andrey.turetskiy@intel.com>
2685 Ilya Verbin <ilya.verbin@intel.com>
2686 Kirill Yukhin <kirill.yukhin@intel.com>
2687 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2688
2689 * config/i386/i386.c
2690 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2691 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2692 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2693 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2694 CODE_FOR_avx512vl_ucmpv4si3_mask.
2695 * config/i386/sse.md
2696 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2697 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2698 (define_insn
2699 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2700 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2701 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2702 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2703 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2704 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2705
2706 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2707 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2708 Anna Tikhonova <anna.tikhonova@intel.com>
2709 Ilya Tocar <ilya.tocar@intel.com>
2710 Andrey Turetskiy <andrey.turetskiy@intel.com>
2711 Ilya Verbin <ilya.verbin@intel.com>
2712 Kirill Yukhin <kirill.yukhin@intel.com>
2713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2714
2715 * config/i386/sse.md
2716 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2717 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2718 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2719 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2720 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2721 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2722 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2723 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2724 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2725
2726 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2727 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2728 Anna Tikhonova <anna.tikhonova@intel.com>
2729 Ilya Tocar <ilya.tocar@intel.com>
2730 Andrey Turetskiy <andrey.turetskiy@intel.com>
2731 Ilya Verbin <ilya.verbin@intel.com>
2732 Kirill Yukhin <kirill.yukhin@intel.com>
2733 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2734
2735 * config/i386/sse.md
2736 (define_insn "avx512f_blendm<mode>"): Delete.
2737 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2738 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2739 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2740 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2741 (define_insn
2742 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2743 Remove.
2744 (define_insn
2745 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2746 New.
2747 (define_insn
2748 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2749 Ditto.
2750 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2751 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2752 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2753 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2754 Delete.
2755 (define_insn
2756 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2757 New.
2758 (define_insn
2759 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2760 Ditto.
2761 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2762 Delete.
2763 (define_insn
2764 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2765 New.
2766 (define_insn
2767 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2768 Ditto.
2769
2770 2014-10-14 Richard Biener <rguenther@suse.de>
2771
2772 PR tree-optimization/63512
2773 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2774 modified.
2775
2776 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
2777
2778 PR target/63260
2779 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2780 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
2781 of FPSCR.
2782 (negsf2_i): Rename to *negsf2_i.
2783 (abssf2_i): Rename to *abssf2_i.
2784 (negdf2_i): Rename to *negdf2_i.
2785 (absdf2_i): Rename to *absdf2_i.
2786
2787 2014-10-14 Felix Yang <felix.yang@huawei.com>
2788 Jeff Law <law@redhat.com>
2789
2790 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2791 "replace" into boolean bitfields; turn member "loop_depth" into a short
2792 integer; add new member "no_equiv" and "reserved".
2793 (no_equiv): Set no_equiv of struct equivalence if register is marked
2794 as having no known equivalence.
2795 (update_equiv_regs): Check all definitions for a multiple-set
2796 register to make sure that the RHS have the same value.
2797
2798 2014-10-13 Richard Henderson <rth@redhat.com>
2799
2800 * combine-stack-adj.c (no_unhandled_cfa): New.
2801 (maybe_merge_cfa_adjust): New.
2802 (combine_stack_adjustments_for_block): Use them.
2803
2804 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
2805
2806 * Makefile.in (TAGS): Tag ../include files.
2807
2808 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2809
2810 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2811 to rs6000_dbx_register_number.
2812 (DWARF_FRAME_REGNUM): Redefine as identity map.
2813 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2814 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2815 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2816 argument to handle .debug_frame and .eh_frame directly. Always
2817 translate SPE high register numbers. Add special treatment for CR,
2818 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
2819
2820 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2821 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2822 (RS6000_USE_DWARF_NUMBERING): Define.
2823 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2824 (RS6000_USE_DWARF_NUMBERING): Define.
2825 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2826 (RS6000_USE_DWARF_NUMBERING): Define.
2827 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2828 (RS6000_USE_DWARF_NUMBERING): Define.
2829 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2830 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2831
2832 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2833
2834 * config/i386/i386.c (ix86_address_cost): Lower cost for
2835 when address contains GOT register.
2836
2837 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
2838 Vladimir Makarov <vmakarov@redhat.com>
2839
2840 PR target/8340
2841 PR middle-end/47602
2842 PR rtl-optimization/55458
2843 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2844 (ix86_init_pic_reg): New.
2845 (ix86_select_alt_pic_regnum): Add check on pseudo register.
2846 (ix86_save_reg): Likewise.
2847 (ix86_expand_prologue): Remove PIC register initialization
2848 now performed in ix86_init_pic_reg.
2849 (ix86_output_function_epilogue): Add check on pseudo register.
2850 (set_pic_reg_ever_alive): New.
2851 (legitimize_pic_address): Replace df_set_regs_ever_live with new
2852 set_pic_reg_ever_alive.
2853 (legitimize_tls_address): Likewise.
2854 (ix86_pic_register_p): New check.
2855 (ix86_delegitimize_address): Add check on pseudo register.
2856 (ix86_expand_call): Insert move from pseudo PIC register to ABI
2857 defined REAL_PIC_OFFSET_TABLE_REGNUM.
2858 (TARGET_INIT_PIC_REG): New.
2859 (TARGET_USE_PSEUDO_PIC_REG): New.
2860 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2861 if pic_offset_table_rtx exists.
2862 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2863 Document.
2864 * doc/tm.texi: Regenerate.
2865 * function.c (assign_parms): Generate pseudo register for PIC.
2866 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2867 register.
2868 * ira-color.c (color_pass): Add check on pseudo register.
2869 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2870 register.
2871 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2872 register.
2873 (ira): Add target specific PIC register initialization.
2874 (do_reload): Keep PIC pseudo register.
2875 * lra-assigns.c (spill_for): Add checks on pseudo register.
2876 * lra-constraints.c (contains_symbol_ref_p): New.
2877 (lra_constraints): Enable lra risky transformations when PIC is pseudo
2878 register.
2879 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2880 * target.def (use_pseudo_pic_reg): New.
2881 (init_pic_reg): New.
2882
2883 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2884
2885 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2886 Remove m_SILVERMONT and m_INTEL from the tune.
2887
2888 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2889
2890 PR libfortran/63471
2891 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2892 when _HPUX_SOURCE is defined.
2893
2894 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2895
2896 PR tree-optimization/62127
2897 * tree.c (remap_type_1): When remapping array, remap
2898 also its type.
2899
2900 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
2901
2902 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2903 longer impact parallelization.
2904
2905 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2906
2907 PR bootstrap/63496
2908 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2909
2910 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
2911
2912 * asan.c (instrument_derefs): BIT_FIELD_REF added.
2913
2914 2014-10-13 Richard Biener <rguenther@suse.de>
2915
2916 PR tree-optimization/63419
2917 * gimple-fold.h (gimple_convert): New function.
2918 * gimple-fold.c (gimple_convert): Likewise.
2919 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2920 to split out required conversions early.
2921
2922 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
2923
2924 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2925 Add the parts of an insn in reverse order, with the pattern at
2926 the top of the queue. Detect when we're iterating over a SEQUENCE
2927 pattern and in that case just consider patterns of subinstructions.
2928
2929 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
2930
2931 PR target/59401
2932 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2933 of rtx.
2934 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2935 insn walking.
2936 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2937 address. Use def chains to handle GBR clobbering call insns.
2938
2939 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2940
2941 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2942 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2943 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2944 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2945 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2946 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2947 * doc/gty.texi (for_user): Document new option.
2948 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2949 char.
2950 (walk_type): Don't error out on for_user option.
2951 (write_func_for_structure): Emit user marking routines if requested by
2952 for_user option.
2953 (write_local_func_for_structure): Likewise.
2954 (main): Mark types with for_user option as used.
2955 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2956 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2957 * hash-table.h (ggc_hasher): New struct.
2958 (hash_table::create_ggc): New function.
2959 (gt_pch_nx): New overload for hash_table.
2960
2961 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2962
2963 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2964 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2965 * config/sh/sh.c: Likewise.
2966 * config/sh/sh-mem.cc: Likewise.
2967 * config/sh/sh.md: Likewise.
2968 * config/sh/predicates.md: Likewise.
2969 * config/sh/sync.md: Likewise.
2970
2971 2014-10-11 Martin Liska <mliska@suse.cz>
2972
2973 PR middle-end/63376
2974 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2975 for call_cgraph_insertion_hooks added.
2976
2977 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2978
2979 PR c/63495
2980 * stor-layout.c (min_align_of_type): Don't decrease alignment
2981 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2982 TYPE_USER_ALIGN is set.
2983
2984 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2985
2986 PR rtl-optimization/63483
2987 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2988 references when alignment ANDs are involved.
2989 (write_dependence_p): Ditto.
2990 (may_alias_p): Ditto.
2991
2992 2014-10-10 Marek Polacek <polacek@redhat.com>
2993
2994 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2995 * doc/invoke.texi: Document -fsanitize=object-size.
2996 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2997 or it into SANITIZE_UNDEFINED.
2998 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2999 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
3000 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
3001 * opts.c (common_handle_option): Handle -fsanitize=object-size.
3002 * ubsan.c: Include tree-object-size.h.
3003 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
3004 (ubsan_expand_bounds_ifn): Use false instead of 0.
3005 (ubsan_expand_objsize_ifn): New function.
3006 (instrument_object_size): New function.
3007 (pass_ubsan::execute): Add object size instrumentation.
3008 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
3009
3010 2014-10-10 Richard Henderson <rth@redhat.com>
3011
3012 PR target/63404
3013 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
3014 Restrict the set of expressions we're willing to move.
3015
3016 2014-10-10 Jeff Law <law@redhat.com>
3017
3018 * ira.c (struct equivalence): Promote INIT_INSNs field to
3019 an rtx_insn_list. Add comments.
3020 (no_equiv): Promote LIST to an rtx_insn_list. Update
3021 testing for and creating the special marker. Use methods
3022 to extract the insn and next pointers. Promote INSN to an
3023 rtx_insn.
3024 (update_equiv_regs): Update test for special marker in the
3025 INIT_INSNs list.
3026
3027 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3028
3029 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
3030 * configure: Regenerate.
3031 * config/aarch64/aarch64.c (aarch64_override_options): Handle
3032 TARGET_FIX_ERR_A53_835769_DEFAULT.
3033 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
3034 value to 2.
3035 * doc/install.texi (aarch64*-*-*): Document
3036 new --enable-fix-cortex-a53-835769 option.
3037
3038 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3039 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3040
3041 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
3042 (ADJUST_INSN_LENGTH): Define.
3043 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
3044 * config/aarch64/aarch64.c (is_mem_p): New function.
3045 (is_memory_op): Likewise.
3046 (aarch64_prev_real_insn): Likewise.
3047 (is_madd_op): Likewise.
3048 (dep_between_memop_and_curr): Likewise.
3049 (aarch64_madd_needs_nop): Likewise.
3050 (aarch64_final_prescan_insn): Likewise.
3051 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
3052 and -mno-fix-cortex-a53-835769 options.
3053
3054 2014-10-10 Jakub Jelinek <jakub@redhat.com>
3055
3056 PR tree-optimization/63464
3057 * tree-switch-conversion.c (struct case_bit_test): Remove
3058 hi and lo fields, add wide_int mask field.
3059 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
3060 hi/lo fields into wide_int mask operations, optimize by pretending
3061 minval to be 0 if maxval is small enough.
3062 (process_switch): Adjust caller.
3063
3064 2014-10-10 Richard Biener <rguenther@suse.de>
3065
3066 PR tree-optimization/63379
3067 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
3068 a neutral operand for min/max when it is not a reduction chain.
3069
3070 2014-10-10 Richard Biener <rguenther@suse.de>
3071
3072 PR tree-optimization/63476
3073 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
3074 (BB_LIVE_VOP_ON_EXIT): New define.
3075 (create_expression_by_pieces): Assign VUSEs to stmts.
3076 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
3077 (pass_pre::execute): Assert virtual SSA form is up-to-date
3078 after insertion.
3079
3080 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
3081
3082 * lra-assigns.c (assign_by_spills): Error out on spill failure.
3083
3084 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
3085
3086 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
3087 assertion.
3088
3089 2014-10-09 Richard Biener <rguenther@suse.de>
3090
3091 PR tree-optimization/63380
3092 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
3093 may trap.
3094
3095 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
3096
3097 * config/avr/avr.opt (mmcu=): Change to have a string value.
3098 (mn-flash=, mskip-bug, march=, mrmw): New options.
3099 (HeaderInclude): New.
3100 (mmcu=): Remove Var / Init clauses.
3101 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
3102 -specs option.
3103 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
3104 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
3105 (SYMBOL_FLAG_IO_LOW): Define.
3106 (avr_device_to_as, avr_device_to_ld): Don't declare.
3107 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3108 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
3109 (EXTRA_SPEC_FUNCTIONS): Don't define.
3110 (ASM_SPEC): Translate -arch= option to -mmcu= option.
3111 (LINK_SPEC): Translate -arch= option to -m= option.
3112 Don't use device_to_ld / device_to_data_start.
3113 (STARTFILE_SPEC): Now empty.
3114 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
3115 * config/avr/gen-avr-mmcu-specs.c: New file.
3116 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
3117 (s-device-specs): Likewise.
3118 (GCC_PASSES): Add s-device-specs.
3119 (install-driver): Depend on install-device-specs.
3120 (install-device-specs): New rule.
3121 * config/avr/avr.c (avr_option_override): Look up mcu arch by
3122 avr_arch_index and provide fallback initialization for avr_n_flash.
3123 (varasm.h): #include.
3124 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
3125 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
3126 (avr_attribute_table): Add "io", "address" and "io_low".
3127 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
3128 Add special handling for symbols with "io" and/or "address" attributes.
3129 (avr_asm_asm_output_aligned_bss): New function.
3130 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
3131 as appropriate. Handle io_low attribute.
3132 (avr_out_sbxx_branch): Handle symbolic io addresses.
3133 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
3134 avr_n_flash instead of avr_current_device->n_flash.
3135 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
3136 (avr_emit_movmemhi): Likewise.
3137 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
3138 Use TARGET_RMW instead of avr_current_device->dev_attributes.
3139 Don't define avr_current_device->macro (that's the specfile's job).
3140 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
3141 * config/avr/avr.c (avr_2word_insn_p): Likewise.
3142 * config/avr/avr.md (*cpse.ne): Likewise.
3143 (mov<mode>): Use avr_eval_addr_attrib.
3144 (cbi): Change constraint for low_io_address_operand operand to "i".
3145 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
3146 * config/avr/predicates.md (io_address_operand):
3147 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
3148 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
3149 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
3150 Update prototype.
3151 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
3152 * config/avr/genmultilib.awk: Use -march=.
3153 Remove Multilib matches processing.
3154 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
3155 * config/avr/avr-arch.h: Add double include guard.
3156 (avr_mcu_t) <library_name>: Update comment.
3157 * config/avr/driver-avr.c (avr_device_to_as): Delete.
3158 (avr_device_to_ld, avr_device_to_data_start): Likewise.
3159 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
3160 (avr_device_to_sp8): Likewise.
3161 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
3162
3163 * doc/extend.texi (io, address): Document new AVR variable attributes.
3164 (io_low): Likewise.
3165
3166 2014-10-09 Marek Polacek <polacek@redhat.com>
3167
3168 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
3169
3170 2014-10-08 Richard Biener <rguenther@suse.de>
3171
3172 PR tree-optimization/61969
3173 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
3174 variables.
3175
3176 2014-10-09 Richard Biener <rguenther@suse.de>
3177
3178 PR tree-optimization/63445
3179 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
3180 overflow for non-equality compares.
3181
3182 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
3183
3184 PR rtl-optimization/57003
3185 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3186 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
3187 killing regs_invalidated_by_call.
3188
3189 2014-10-08 Teresa Johnson <tejohnson@google.com>
3190
3191 PR bootstrap/63432.
3192 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
3193 (ssa_fix_duplicate_block_edges): Invoke it.
3194 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
3195
3196 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
3197
3198 PR target/52941
3199 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
3200 atomic_fetch_<fetchop_name>si_hard,
3201 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
3202 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
3203 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
3204 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
3205
3206 2014-10-08 Rong Xu <xur@google.com>
3207
3208 * gcov-tool.c (profile_overlap): New driver function
3209 to compute profile overlap.
3210 (print_overlap_usage_message): New.
3211 (overlap_usage): New.
3212 (do_overlap): New.
3213 (print_usage): Add calls to overlap function.
3214 (main): Ditto.
3215 * doc/gcov-tool.texi: Add documentation.
3216
3217 2014-10-08 Steve Ellcey <sellcey@mips.com>
3218
3219 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
3220 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
3221
3222 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
3223
3224 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
3225 pattern matching of MEM_REF.
3226 (check_stmt_for_type_change): Update.
3227
3228 2014-10-08 Steve Ellcey <sellcey@mips.com>
3229
3230 * config/mips/linux64.h: Remove.
3231 * config/mips/gnu-user64.h: Remove.
3232 * gcc.config (mips*-*-*): Remove references to linux64.h and
3233 gnu-user64.h
3234 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
3235 with modified version from gnu-user64.h.
3236 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
3237 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
3238 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
3239 linux64.h.
3240 (GNU_USER_LINK_EMULATION64): Ditto.
3241 (GNU_USER_LINK_EMULATIONN32): Ditto.
3242 (GLIBC_DYNAMIC_LINKER32): Ditto.
3243 (GLIBC_DYNAMIC_LINKER64): Ditto.
3244 (GLIBC_DYNAMIC_LINKERN32): Ditto.
3245 (UCLIBC_DYNAMIC_LINKER32): Ditto.
3246 (UCLIBC_DYNAMIC_LINKER64): Ditto.
3247 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
3248 (BIONIC_DYNAMIC_LINKERN32): Ditto.
3249 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
3250 (GLIBC_DYNAMIC_LINKER): Delete.
3251 (UCLIBC_DYNAMIC_LINKER): Delete.
3252
3253 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
3254 Richard Biener <rguenther@suse.de>
3255
3256 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
3257 Get address space from operand 0 (BASE).
3258
3259 2014-10-07 Iain Sandoe <iain@codesourcery.com>
3260
3261 PR target/61387
3262 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
3263
3264 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
3265
3266 * dwarf2out.c: Remove current_function_has_inlines.
3267 (gen_subprogram_die): Same.
3268 (gen_inlined_subroutine_die): Same.
3269
3270 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
3271
3272 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
3273 type.
3274 (_addcarry_u64): Ditto.
3275 (_addcarryx_u64): Ditto.
3276
3277 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
3278
3279 * cgraph.h (cgraph_node::get_fun): Declare.
3280 * cgraph.c (cgraph_node::get_fun): New method.
3281 * ipa-inline.c (can_inline_edge_p): Use it.
3282
3283 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
3284
3285 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
3286 and -ftrapping-math.
3287 * lto-wrapper.c (merge_and_complain): Likewise.
3288 (run_gcc): Likewise.
3289
3290 2014-10-06 Rong Xu <xur@google.com>
3291
3292 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
3293 * tree-profile.c: (params.h): New include.
3294 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
3295 and __gcov_indirect_call_topn_counters for
3296 indirect_call_topn_profile.
3297 (gimple_init_edge_profiler): New decls for
3298 __gcov_indirect_call_topn_profiler.
3299 (gimple_gen_ic_profiler): Generate the correct profiler call.
3300 (gimple_gen_ic_func_profiler): Fix format.
3301 * value-prof.c (params.h): New include.
3302 (dump_histogram_value): Hanlde indirect_call_topn counters.
3303 (stream_in_histogram_value): Ditto.
3304 (gimple_indirect_call_to_profile): Use indirect_call_topn
3305 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
3306 (gimple_find_values_to_profile): Hanlde indirect_call_topn
3307 counters.
3308 * value-prof.h (enum hist_type): Histrogram type for
3309 indirect_call_topn counters.
3310 * profile.c (instrument_values): Instrument
3311 indirect_call_topn counters.
3312
3313 2014-10-06 Rong Xu <xur@google.com>
3314
3315 * Makefile.in: Fix dependence.
3316 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
3317 indirect call topn profiler.
3318 * gcov-io.h: Ditto.
3319
3320 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
3321
3322 * calls.c (expand_call): Do not use the target as the return slot if
3323 it is not sufficiently aligned.
3324
3325 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3326
3327 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
3328 discussion of permutes and why we don't handle them.
3329
3330 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
3331
3332 * config/sparc/predicates.md (int_register_operand): Delete.
3333
3334 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
3335
3336 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
3337
3338 2014-10-06 Jakub Jelinek <jakub@redhat.com>
3339
3340 * ubsan.h (ubsan_get_source_location): New prototype.
3341 * ubsan.c (ubsan_source_location_type): New variable.
3342 Function renamed to ...
3343 (ubsan_get_source_location_type): ... this. Cache
3344 return value in ubsan_source_location_type variable.
3345 (ubsan_source_location, ubsan_create_data): Use
3346 ubsan_get_source_location_type instead of
3347 ubsan_source_location_type.
3348 * asan.c (asan_protect_global): Don't protect globals
3349 with ubsan_get_source_location_type () type.
3350 (asan_add_global): Provide global decl location info
3351 if possible.
3352
3353 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3354
3355 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
3356 sanity check.
3357
3358 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3359
3360 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
3361 on size.
3362 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
3363 into vptr pointer.
3364 (ipa_polymorphic_call_context::dump): Fix formating.
3365 (walk_ssa_copies): Add logic avoiding loops; update uses.
3366 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
3367
3368 2014-10-02 Mark Wielaard <mjw@redhat.com>
3369
3370 PR debug/63239
3371 * dwarf2out.c (gen_subprogram_die): When a member function is
3372 explicitly deleted then add a DW_AT_GNU_deleted attribute.
3373 * langhooks.h (struct lang_hooks_for_decls): Add
3374 function_decl_deleted_p langhook.
3375 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
3376 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
3377
3378 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3379
3380 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
3381 NULL pointer checks.
3382 (ipa_polymorphic_call_context::get_dynamic_type): Return true
3383 if type doesn't change.
3384 * cgraph.h (cgraph_indirect_call_info): New flag.
3385 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
3386 (cgraph_node::dump): Dump it.
3387 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
3388 of context.get_dynamic_type.
3389 (ipa_make_edge_direct_to_target): Do not speculate
3390 edge that is already speuclative.
3391 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
3392 speculate to __builtin_unreachable
3393 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
3394 vptr_changed.
3395 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
3396
3397 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3398
3399 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
3400 get_dynamic_type; drop TODO.
3401 * ipa-polymorphic-call.c
3402 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
3403 for otr_type to be unknown.
3404
3405 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
3406
3407 * common/config/score/score-common.c: Remove.
3408 * config.gcc: Remove support for score-*.
3409 * config/score/constraints.md: Remove.
3410 * config/score/elf.h: Remove.
3411 * config/score/predicates.md: Remove.
3412 * config/score/score-conv.h: Remove.
3413 * config/score/score-generic.md: Remove.
3414 * config/score/score-modes.def: Remove.
3415 * config/score/score-protos.h: Remove.
3416 * config/score/score.c: Remove.
3417 * config/score/score.h: Remove.
3418 * config/score/score.md: Remove.
3419 * config/score/score.opt: Remove.
3420 * doc/md.texi: Don't document score-*.
3421
3422 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
3423
3424 PR pch/63429
3425 * genconditions.c: Directly include ggc.h before rtl.h.
3426
3427 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
3428
3429 * ipa-polymorphic-call.c
3430 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
3431 code determining speculative type.
3432 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
3433
3434 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3435
3436 * altivec.md (altivec_lvsl): New define_expand.
3437 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
3438 (altivec_lvsr): New define_expand.
3439 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
3440 * rs6000.c (rs6000_expand_builtin): Change to use
3441 altivec_lvs[lr]_direct; remove commented-out code.
3442
3443 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3444
3445 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3446 Issue a warning message when vec_lvsl or vec_lvsr is used with a
3447 little endian target.
3448
3449 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3450
3451 * tree-pretty-print.c (dump_location): Make it extern. Dump also
3452 the column.
3453 * tree-pretty-print.h (dump_location): Declare.
3454 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
3455 (pp_gimple_stmt_1): Likewise.
3456 (dump_implicit_edges): Likewise.
3457 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
3458 LOCATION_LINE.
3459
3460
3461 2014-10-03 David Malcolm <dmalcolm@redhat.com>
3462
3463 * gcc.c (driver::global_initializations): Remove "const" so
3464 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
3465 and decoded_options_count.
3466
3467 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
3468
3469 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
3470 macro.
3471 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
3472 TARGET_E500_DOUBLE case here.
3473
3474 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
3475
3476 PR c++/54427
3477 PR c++/57198
3478 PR c++/58845
3479 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
3480
3481 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
3482
3483 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
3484 * lto-cgraph.c (lto_output_edge, input_edge): Stream
3485 in_polymorphic_cdtor
3486 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
3487 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
3488 * cgraphclones.c (cgraph_edge::clone): Likewise.
3489 * ipa-prop.c (update_jump_functions_after_inlining,
3490 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
3491 to possible_dynamic_type_change.
3492 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
3493 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3494 IN_POLY_CDOTR argument.
3495
3496 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
3497 for BASE and OUTER_TYPE being NULL.
3498 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3499 in_poly_cdtor parameter.
3500
3501 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3502
3503 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
3504 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
3505 TARGET_AVX512F.
3506 (expand_vec_perm_1): Likewise.
3507
3508 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3509 Uros Bizjak <ubizjak@gmail.com>
3510
3511 PR tree-optimization/61403
3512 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
3513 error in comment. Also optimize 256-bit vectors for AVX2
3514 or AVX (floating vectors only), provided the first permutation
3515 can be performed in one insn.
3516
3517 2014-10-03 David Malcolm <dmalcolm@redhat.com>
3518
3519 * gcc.c (class driver): New class.
3520 (main): Reimplement in terms of driver::main, moving most of the
3521 locals to be locals within individual methods of class driver.
3522 The remaining locals "explicit_link_files", "decoded_options" and
3523 "decoded_options_count" are used by multiple driver:: methods, and
3524 so become member data. Doing so isolates the argc/argv reads and
3525 writes. Replace "goto out" with a special exit code from
3526 new method driver::prepare_infiles. Split out the old
3527 implementation of main into the following...
3528 (driver::main): New function, corresponding to the old "main"
3529 implementation.
3530 (driver::set_progname): New function, taken from the old
3531 "main" implementation.
3532 (driver::expand_at_files): Likewise.
3533 (driver::decode_argv): Likewise.
3534 (driver::global_initializations): Likewise.
3535 (driver::build_multilib_strings): Likewise.
3536 (driver::set_up_specs): Likewise.
3537 (driver::putenv_COLLECT_GCC): Likewise.
3538 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
3539 (driver::handle_unrecognized_options): Likewise.
3540 (driver::maybe_print_and_exit): Likewise.
3541 (driver::prepare_infiles): Likewise.
3542 (driver::do_spec_on_infiles): Likewise.
3543 (driver::maybe_run_linker): Likewise.
3544 (driver::final_actions): Likewise.
3545 (driver::get_exit_code): Likewise.
3546
3547 2014-10-03 Yury Gribov <y.gribov@samsung.com>
3548
3549 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
3550 don't emit empty ctors.
3551
3552 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
3553
3554 * convert.c (convert_to_integer): Do not introduce useless conversions
3555 between integral types.
3556
3557 2014-10-03 David Sherwood <david.sherwood@arm.com>
3558
3559 * ira-int.h (ira_allocno): Mark hard_regno as signed.
3560
3561 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
3562
3563 * lra-constraints.c (inherit_in_ebb): Handle calls with
3564 multiple return values.
3565 * caller-save.c (save_call_clobbered_regs): Likewise.
3566
3567 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3568
3569 * tree-vect-data-refs.c (vect_permute_load_chain,
3570 vect_shift_permute_load_chain): Fix a typo in temporary var names,
3571 suffle3 to shuffle3.
3572
3573 PR libgomp/61200
3574 * omp-low.c (taskreg_contexts): New variable.
3575 (scan_omp_parallel): Push newly created context into taskreg_contexts
3576 vector and move record layout code to finish_taskreg_scan.
3577 (scan_omp_task): Likewise.
3578 (finish_taskreg_scan): New function.
3579 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3580 vector elements and release it.
3581
3582 PR target/62128
3583 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3584 of palignr arguments can't be used due to min 0 or max - min
3585 too high, try also op0, op1 order of palignr arguments.
3586
3587 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
3588
3589 * cgraph.h (ipa_polymorphic_call_context):
3590 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3591 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3592 * ipa-polymorphic-call.c
3593 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3594 past end of dynamic types.
3595 (ipa_polymorphic_call_context::stream_out,
3596 speculative_outer_type): Stream dynamic flag.
3597 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3598 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3599 Clear DYNAMIC.
3600 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3601 set it.
3602 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3603 * ipa-prop.c (update_jump_functions_after_inlining,
3604 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3605
3606 2014-10-02 Teresa Johnson <tejohnson@google.com>
3607
3608 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3609 up when synthesizing counts to avoid rounding errors.
3610
3611 2014-10-02 Teresa Johnson <tejohnson@google.com>
3612
3613 PR middle-end/63422
3614 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3615 asserts to handle incoming insanities.
3616
3617 2014-10-02 Martin Jambor <mjambor@suse.cz>
3618
3619 PR tree-optimization/63375
3620 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3621 references.
3622
3623 2014-10-02 Olivier Hainque <hainque@adacore.com>
3624
3625 * Makefile.in (CROSS): Define, to @CROSS.
3626
3627 2014-10-02 Jakub Jelinek <jakub@redhat.com>
3628
3629 PR target/62128
3630 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3631 if it expands to a single insn only.
3632 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
3633 fail unless in_order is true. Add forward declaration.
3634 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3635 is useful for one_operand_p.
3636 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3637
3638 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3639
3640 * cgraphclones.c (build_function_type_skip_args): Do not make new
3641 type variant of old.
3642
3643 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3644
3645 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3646 when speculation is added.
3647 (ipa_edge_args): Add polymorphic_call_contexts.
3648 (ipa_get_ith_polymorhic_call_context): New accesor.
3649 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3650 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3651 (ipa_compute_jump_functions_for_edge): Compute contexts.
3652 (update_jump_functions_after_inlining): Update contexts.
3653 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3654 update dumping; add speculative edge creation.
3655 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3656 context updating.
3657 (update_indirect_edges_after_inlining): Pass down context.
3658 (ipa_edge_duplication_hook): Duplicate contexts.
3659 (ipa_write_node_info): Stream out contexts.
3660 (ipa_read_node_info): Stream in contexts.
3661 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3662 types.
3663 (try_speculative_devirtualization): New function.
3664 * ipa-utils.h (try_speculative_devirtualization): Declare.
3665
3666 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3667
3668 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3669 dumping during WPA.
3670
3671 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3672
3673 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3674 type variants.
3675
3676 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3677
3678 * ipa-polymorphic-call.c
3679 (ipa_polymorphic_call_context::restrict_to_inner_class):
3680 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3681 use speculation_consistent_p to do so; Add CONSDER_BASES
3682 and CONSIDER_PLACEMENT_NEW parameters.
3683 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3684 short circuit obvious cases.
3685 (ipa_polymorphic_call_context::dump): Improve formatting.
3686 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3687 combine_speculation_with to record speculations; Do not ICE when
3688 object is located in pointer type decl; do not ICE for methods
3689 of UNION_TYPE; do not record nonpolymorphic types.
3690 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3691 (ipa_polymorphic_call_context::combine_speculation_with): New method.
3692 (ipa_polymorphic_call_context::combine_with): New method.
3693 (ipa_polymorphic_call_context::make_speculative): Move here; use
3694 combine speculation.
3695 * cgraph.h (ipa_polymorphic_call_context): Update
3696 restrict_to_inner_class prototype; add offset_by, make_speculative,
3697 combine_with, useless_p, combine_speculation_with and
3698 speculation_consistent_p methods.
3699 (ipa_polymorphic_call_context::offset_by): New method.
3700 (ipa_polymorphic_call_context::useless_p): New method.
3701
3702 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3703
3704 PR rtl-optimization/62151
3705 * combine.c (can_combine_p): Allow the destination register of INSN
3706 to be clobbered in I3.
3707 (subst): Do not substitute into clobbers of registers.
3708
3709 2014-10-01 Jakub Jelinek <jakub@redhat.com>
3710
3711 PR debug/63342
3712 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3713 offset, TARGET_MEM_REF and SSA_NAME.
3714
3715 * config/i386/i386.c (expand_vec_perm_palignr): Handle
3716 256-bit vectors for TARGET_AVX2.
3717
3718 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3719 dfirst permutation.
3720
3721 PR target/63428
3722 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3723 argument to avx2_permv2ti.
3724
3725 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3726
3727 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3728
3729 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
3730
3731 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3732 (fmod<mode>3): Ditto.
3733 (fpremxf4_i387): Ditto.
3734 (reminderxf3): Ditto.
3735 (reminder<mode>3): Ditto.
3736 (fprem1xf4_i387): Ditto.
3737
3738 2014-09-30 Teresa Johnson <tejohnson@google.com>
3739
3740 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3741 duplicate_blocks bitmap.
3742 (remove_ctrl_stmt_and_useless_edges): Ditto.
3743 (create_block_for_threading): Ditto.
3744 (compute_path_counts): New function.
3745 (update_profile): Ditto.
3746 (recompute_probabilities): Ditto.
3747 (update_joiner_offpath_counts): Ditto.
3748 (freqs_to_counts_path): Ditto.
3749 (clear_counts_path): Ditto.
3750 (ssa_fix_duplicate_block_edges): Update profile info.
3751 (ssa_create_duplicates): Pass new parameter.
3752 (ssa_redirect_edges): Remove old profile update.
3753 (thread_block_1): New duplicate_blocks bitmap,
3754 remove old profile update.
3755 (thread_single_edge): Pass new parameter.
3756
3757 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
3758
3759 PR middle-end/62120
3760 * varasm.c (decode_reg_name_and_count): Check availability for
3761 registers from ADDITIONAL_REGISTER_NAMES.
3762
3763 2014-09-30 David Malcolm <dmalcolm@redhat.com>
3764
3765 PR plugins/63410
3766 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3767 (PLUGIN_HEADERS): Add pass-instances.def.
3768
3769 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
3770
3771 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3772 iterator.
3773 * config/aarch64/aarch64-simd.md
3774 (aarch64_sqdmull_laneq<mode>): Expand iterator.
3775 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3776 (vqdmulls_lane_s32): Fix return type.
3777 (vqdmulls_laneq_s32): New.
3778
3779 2014-09-30 Jakub Jelinek <jakub@redhat.com>
3780
3781 PR inline-asm/63282
3782 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3783 or invert_jump_1 if jump isn't any_condjump_p.
3784
3785 2014-09-30 Terry Guo <terry.guo@arm.com>
3786
3787 * config/arm/arm-cores.def (cortex-m7): New core name.
3788 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3789 (fpv5-d16): Ditto.
3790 * config/arm/arm-tables.opt: Regenerated.
3791 * config/arm/arm-tune.md: Regenerated.
3792 * config/arm/arm.h (TARGET_VFP5): New macro.
3793 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3794 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3795 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3796 * doc/invoke.texi: Document new cpu and fpu names.
3797
3798 2014-09-30 Jiong Wang <jiong.wang@arm.com>
3799
3800 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3801 before sinking insn.
3802
3803 2014-09-30 David Sherwood <david.sherwood@arm.com>
3804
3805 * ira-int.h (ira_allocno): Add "wmode" field.
3806 * ira-build.c (create_insn_allocnos): Add new "parent" function
3807 parameter.
3808 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3809 that cannot be accessed in wmode.
3810
3811 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
3812
3813 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3814 integer overflow.
3815
3816 2014-09-29 Andi Kleen <ak@linux.intel.com>
3817
3818 * opts.c (print_filtered_help): Print --param min/max/default
3819 with -Q.
3820
3821 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3822
3823 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3824
3825 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
3826
3827 * tree-vrp.c (get_single_symbol): New function.
3828 (build_symbolic_expr): Likewise.
3829 (symbolic_range_based_on_p): New predicate.
3830 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3831 for PLUS and MINUS. Do not drop symbolic ranges at the end.
3832 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3833 operand is symbolic and based on the other operand.
3834
3835 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
3836
3837 * config/microblaze/microblaze.md (call_internal1): Use VOID
3838 instead of SI to fix "((void (*)(void)) 0)()" issue
3839
3840 2014-09-29 Nick Clifton <nickc@redhat.com>
3841
3842 * config/msp430/msp430.c (msp430_expand_prologue): Return a
3843 CLOBBER rtx for naked functions.
3844 (msp430_expand_epilogue): Likewise.
3845 (msp430_use_f5_series_hwmult): Cache result.
3846 (use_32bit_hwmult): Cache result.
3847 (msp430_no_hwmult): New function.
3848 (msp430_output_labelref): Use it.
3849
3850 2014-09-29 Jakub Jelinek <jakub@redhat.com>
3851
3852 PR middle-end/63247
3853 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3854 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3855 use the alignment of avar rather than ovar.
3856
3857 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
3858
3859 * config/pa/pa.c (pa_output_function_epilogue): Only update
3860 last_address when a nonnote insn is found.
3861
3862 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3863
3864 PR ipa/60665
3865 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3866
3867 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3868
3869 PR ipa/62121
3870 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3871 fix pasto in checking array size.
3872
3873 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3874
3875 PR middle-end/35545
3876 * passes.def (pass_tracer): Move before last dominator pass.
3877
3878 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3879
3880 * gcc.c (try_generate_repro): Remove argument "prog". Change all
3881 users.
3882 (run_attempt): Handle errors of "pex_run" invocation.
3883
3884 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
3885
3886 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3887 (CC1_SPEC): Define.
3888 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3889 (TARGET_ASAN_SHADOW_OFFSET): Define.
3890
3891 2014-09-26 Martin Liska <mliska@suse.cz>
3892
3893 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3894 introduced.
3895 * cgraph.h: Likewise.
3896 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3897 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3898 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3899 * tree-ssa-alias.h: Likewise.
3900
3901 2014-09-26 Jakub Jelinek <jakub@redhat.com>
3902 Max Ostapenko <m.ostapenko@partner.samsung.com>
3903
3904 * common.opt: New option.
3905 * doc/invoke.texi: Describe new option.
3906 * gcc.c (execute): Don't free first string early, but at the end
3907 of the function. Call retry_ice if compiler exited with
3908 ICE_EXIT_CODE.
3909 (main): Factor out common code.
3910 (print_configuration): New function.
3911 (files_equal_p): Likewise.
3912 (check_repro): Likewise.
3913 (run_attempt): Likewise.
3914 (do_report_bug): Likewise.
3915 (append_text): Likewise.
3916 (try_generate_repro): Likewise
3917
3918 2014-09-25 Andi Kleen <ak@linux.intel.com>
3919
3920 * config/i386/i386.c (x86_print_call_or_nop): New function.
3921 (x86_function_profiler): Support -mnop-mcount and
3922 -mrecord-mcount.
3923 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3924 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3925
3926 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3927
3928 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3929 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3930 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3931 Remove.
3932
3933 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3934
3935 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3936 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3937 types_odr_comparable): Declare.
3938 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3939 * ipa-polymorphic-call.c: New file.
3940 (contains_polymorphic_type_p, possible_placement_new,
3941 ipa_polymorphic_call_context::restrict_to_inner_class,
3942 contains_type_p, decl_maybe_in_construction_p,
3943 ipa_polymorphic_call_context::stream_out,
3944 ipa_polymorphic_call_context::debug,
3945 ipa_polymorphic_call_context::stream_in,
3946 ipa_polymorphic_call_context::set_by_decl,
3947 ipa_polymorphic_call_context::set_by_invariant,
3948 walk_ssa_copies,
3949 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3950 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3951 extr_type_from_vtbl_ptr_store, record_known_type
3952 check_stmt_for_type_change,
3953 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3954 ipa-devirt.c
3955 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3956 and streamer-hooks.h
3957 (contains_polymorphic_type_p, possible_placement_new,
3958 ipa_polymorphic_call_context::restrict_to_inner_class,
3959 contains_type_p, decl_maybe_in_construction_p,
3960 ipa_polymorphic_call_context::stream_out,
3961 ipa_polymorphic_call_context::debug,
3962 ipa_polymorphic_call_context::stream_in,
3963 ipa_polymorphic_call_context::set_by_decl,
3964 ipa_polymorphic_call_context::set_by_invariant,
3965 walk_ssa_copies,
3966 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3967 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3968 extr_type_from_vtbl_ptr_store, record_known_type
3969 check_stmt_for_type_change,
3970 ipa_polymorphic_call_context::get_dynamic_type): Move to
3971 ipa-polymorphic-call.c
3972 (type_all_derivations_known_p, types_odr_comparable,
3973 types_must_be_same_for_odr): Export.
3974 (type_known_to_have_no_deriavations_p): New function.
3975 * Makefile.in: Add ipa-polymorphic-call.c
3976
3977 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3978
3979 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3980 for better storage.
3981 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3982 (possible_polymorphic_call_targets): Instead of computing both
3983 speculative and non-speculative answers, do just one at a time.
3984 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3985 (dump_targets): Break out from ...
3986 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3987 and non-speculative lists.
3988 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3989 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3990
3991 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3992
3993 PR rtl-optimization/63348
3994 * emit-rtl.c (try_split): Do not emit extra barrier.
3995
3996 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3997
3998 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3999 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
4000 new predicates.
4001 (aarch64_<sur>shll2_n<mode>): Likewise.
4002 (aarch64_<sur>shr_n<mode>): Likewise.
4003 (aarch64_<sur>sra_n<mode>: Likewise.
4004 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
4005 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
4006 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
4007 * config/aarch64/iterators.md (ve_mode): New.
4008 (offsetlr): Remap to infix text for use in new predicates.
4009 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
4010 (aarch64_simd_shift_imm_hi): Likewise.
4011 (aarch64_simd_shift_imm_si): Likewise.
4012 (aarch64_simd_shift_imm_di): Likewise.
4013 (aarch64_simd_shift_imm_offset_qi): Likewise.
4014 (aarch64_simd_shift_imm_offset_hi): Likewise.
4015 (aarch64_simd_shift_imm_offset_si): Likewise.
4016 (aarch64_simd_shift_imm_offset_di): Likewise.
4017 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
4018 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
4019 (aarch64_simd_shift_imm_bitsize_si): Likewise.
4020 (aarch64_simd_shift_imm_bitsize_di): Likewise.
4021
4022 2014-09-25 Jiong Wang <jiong.wang@arm.com>
4023
4024 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
4025 new created BB as the intersection of live-in from "old_dest" and
4026 live-out from "bb".
4027
4028 2014-09-25 Felix Yang <felix.yang@huawei.com>
4029
4030 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
4031 * genautomata.c (merge_states): Ditto.
4032
4033 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
4034
4035 PR target/62218
4036 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
4037 in instruction sequence.
4038
4039 2014-09-25 Nick Clifton <nickc@redhat.com>
4040
4041 PR target/62218
4042 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
4043 in instruction sequence.
4044
4045 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4046
4047 PR target/63335
4048 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
4049 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
4050
4051 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
4052 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4053 Anna Tikhonova <anna.tikhonova@intel.com>
4054 Ilya Tocar <ilya.tocar@intel.com>
4055 Andrey Turetskiy <andrey.turetskiy@intel.com>
4056 Ilya Verbin <ilya.verbin@intel.com>
4057 Kirill Yukhin <kirill.yukhin@intel.com>
4058 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4059
4060 * config/i386/sse.md
4061 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
4062 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
4063 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
4064 (define_expand "<avx512>_perm<mode>_mask"): ... this.
4065 Use VI8F_256_512 mode iterator.
4066 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
4067 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
4068
4069 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
4070 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4071 Anna Tikhonova <anna.tikhonova@intel.com>
4072 Ilya Tocar <ilya.tocar@intel.com>
4073 Andrey Turetskiy <andrey.turetskiy@intel.com>
4074 Ilya Verbin <ilya.verbin@intel.com>
4075 Kirill Yukhin <kirill.yukhin@intel.com>
4076 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4077
4078 * config/i386/sse.md
4079 (define_insn "avx_movshdup256<mask_name>"): Add masking.
4080 (define_insn "sse3_movshdup<mask_name>"): Ditto.
4081 (define_insn "avx_movsldup256<mask_name>"): Ditto.
4082 (define_insn "sse3_movsldup<mask_name>"): Ditto.
4083 (define_insn "vec_dupv2df<mask_name>"): Ditto.
4084 (define_insn "*vec_concatv2df"): Add EVEX version.
4085
4086 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
4087 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4088 Anna Tikhonova <anna.tikhonova@intel.com>
4089 Ilya Tocar <ilya.tocar@intel.com>
4090 Andrey Turetskiy <andrey.turetskiy@intel.com>
4091 Ilya Verbin <ilya.verbin@intel.com>
4092 Kirill Yukhin <kirill.yukhin@intel.com>
4093 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4094
4095 * config/i386/sse.md
4096 (define_insn "vec_set<mode>_0"): Add EVEX version.
4097
4098 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
4099 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4100 Anna Tikhonova <anna.tikhonova@intel.com>
4101 Ilya Tocar <ilya.tocar@intel.com>
4102 Andrey Turetskiy <andrey.turetskiy@intel.com>
4103 Ilya Verbin <ilya.verbin@intel.com>
4104 Kirill Yukhin <kirill.yukhin@intel.com>
4105 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4106
4107 * config/i386/sse.md
4108 (define_insn
4109 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
4110 New.
4111 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4112 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
4113 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
4114 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
4115 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
4116 (define_expand "sse2_cvtpd2ps_mask): New.
4117 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
4118 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
4119
4120 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
4121 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4122 Anna Tikhonova <anna.tikhonova@intel.com>
4123 Ilya Tocar <ilya.tocar@intel.com>
4124 Andrey Turetskiy <andrey.turetskiy@intel.com>
4125 Ilya Verbin <ilya.verbin@intel.com>
4126 Kirill Yukhin <kirill.yukhin@intel.com>
4127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4128
4129 * config/i386/i386.c
4130 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
4131 (ufix_notruncv8dfv8si2_mask_round): ... this.
4132 * config/i386/sse.md
4133 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
4134 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
4135 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
4136 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
4137 (define_expand "sse2_cvtpd2dq"): Delete.
4138 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
4139 make 2nd operand const0 vector.
4140 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
4141 Delete.
4142 (define_mode_attr pd2udqsuff): New.
4143 (define_insn
4144 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
4145 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
4146 (define_insn "*avx_cvttpd2dq256_2"): Delete.
4147 (define_expand "sse2_cvttpd2dq"): Ditto.
4148 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
4149 make 2nd operand const0 vector.
4150
4151 2014-09-25 Jakub Jelinek <jakub@redhat.com>
4152
4153 PR tree-optimization/63341
4154 * tree-vectorizer.h (vect_create_data_ref_ptr,
4155 vect_create_addr_base_for_vector_ref): Add another tree argument
4156 defaulting to NULL_TREE.
4157 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
4158 argument, pass it down to vect_create_addr_base_for_vector_ref.
4159 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
4160 add that to base_offset too if non-NULL.
4161 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
4162 for dr_explicit_realign_optimized set it to vector byte size
4163 - 1 instead of setting offset, pass byte_offset down to
4164 vect_create_data_ref_ptr.
4165
4166 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
4167
4168 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
4169 forgotten debug output; canonicalize querries more wtih LTO.
4170
4171 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
4172
4173 * cgraph.h (class ipa_polymorphic_call_context): Move here from
4174 ipa-utils.h; add stream_int and stream_out methods.
4175 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
4176 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
4177 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
4178 add CONTEXT.
4179 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4180 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4181 ipa_polymorphic_call_context::clear_speculation,
4182 ipa_polymorphic_call_context::clear_outer_type): Move here from
4183 ipa-utils.h
4184 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
4185 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4186 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4187 ipa_polymorphic_call_context::clear_speculation,
4188 ipa_polymorphic_call_context::clear_outer_type): Likewise.
4189 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
4190 streamer-hooks.h
4191 (ipa_polymorphic_call_context::stream_out): New method.
4192 (ipa_polymorphic_call_context::stream_in): New method.
4193 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
4194 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
4195 OUTER_TYPE.
4196 (ipa_analyze_call_uses): Simplify.
4197 (update_indirect_edges_after_inlining): Do not care about outer_type.
4198 (ipa_write_indirect_edge_info): Update.
4199 (ipa_write_indirect_edge_info): Likewise.
4200 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
4201 (dump_edge_flags): Break out from ...
4202 (cgraph_node::dump): ... here; dump indirect edges.
4203
4204 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
4205
4206 * ipa-utils.h (polymorphic_call_context): Add
4207 metdhos dump, debug and clear_outer_type.
4208 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4209 (ipa_polymorphic_call_context::clear_outer_type): New method.
4210 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
4211 * ipa-devirt.c (types_odr_comparable): New function.
4212 (types_must_be_same_for_odr): New function.
4213 (odr_subtypes_equivalent_p): Simplify.
4214 (possible_placement_new): Break out from ...
4215 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
4216 be more cuatious about returning false in cases the context may be
4217 valid in derived type or via placement new.
4218 (contains_type_p): Clear maybe_derived_type
4219 (ipa_polymorphic_call_context::dump): New method.
4220 (ipa_polymorphic_call_context::debug): New method.
4221 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
4222 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
4223 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4224 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
4225 to suceed on all valid cases; remove confused sanity check.
4226 (dump_possible_polymorphic_call_targets): Simplify.
4227
4228 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
4229
4230 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
4231 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
4232 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
4233 varpool.c: Rename all instances of DECL_ABSTRACT to
4234 DECL_ABSTRACT_P.
4235
4236 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4237
4238 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
4239 special handling for stores whose SET_SRC is an UNSPEC (such as
4240 UNSPEC_STVE).
4241
4242 2014-09-24 Jiong Wang <jiong.wang@arm.com>
4243
4244 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
4245 !REG_P (src) to release more instruction sink opportunities.
4246
4247 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
4248
4249 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
4250 move costs for 128-bit types.
4251
4252 2014-09-24 Martin Jambor <mjambor@suse.cz>
4253
4254 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
4255 when duplicating a PASS_THROUGH jump function when creating a
4256 speculative edge.
4257
4258 2014-09-24 Marek Polacek <polacek@redhat.com>
4259
4260 PR c/61405
4261 PR c/53874
4262 * asan.c (maybe_instrument_call): Add default case.
4263 * ipa-pure-const.c (special_builtin_state): Likewise.
4264 * predict.c (expr_expected_value_1): Likewise.
4265 * lto-streamer-out.c (write_symbol): Initialize variable.
4266
4267 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4268
4269 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
4270 the lane.
4271 (vmuld_laneq_f64): Likewise.
4272 (vmuls_lane_f32): Likewise.
4273 (vmuls_laneq_f32): Likewise.
4274
4275 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
4276
4277 PR bootstrap/63235
4278 * varpool.c (varpool_node::add): Pass decl attributes
4279 to lookup_attribute.
4280
4281 2014-09-24 Jakub Jelinek <jakub@redhat.com>
4282
4283 PR sanitizer/63316
4284 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
4285
4286 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4287
4288 PR tree-optimization/63266
4289 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
4290 marker for unknown byte value.
4291 (MARKER_MASK): New macro.
4292 (MARKER_BYTE_UNKNOWN): New macro.
4293 (HEAD_MARKER): New macro.
4294 (do_shift_rotate): Mark bytes with unknown values due to sign
4295 extension when doing an arithmetic right shift. Replace hardcoded
4296 mask for marker by new MARKER_MASK macro.
4297 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
4298 numbers accordingly.
4299
4300 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4301 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4302 Anna Tikhonova <anna.tikhonova@intel.com>
4303 Ilya Tocar <ilya.tocar@intel.com>
4304 Andrey Turetskiy <andrey.turetskiy@intel.com>
4305 Ilya Verbin <ilya.verbin@intel.com>
4306 Kirill Yukhin <kirill.yukhin@intel.com>
4307 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4308
4309 * config/i386/sse.md
4310 (define_insn
4311 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
4312 Add masking.
4313 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
4314 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
4315
4316 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4317 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4318 Anna Tikhonova <anna.tikhonova@intel.com>
4319 Ilya Tocar <ilya.tocar@intel.com>
4320 Andrey Turetskiy <andrey.turetskiy@intel.com>
4321 Ilya Verbin <ilya.verbin@intel.com>
4322 Kirill Yukhin <kirill.yukhin@intel.com>
4323 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4324
4325 * config/i386/sse.md
4326 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
4327 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
4328 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
4329 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
4330 (define_expand "avx512vl_pshuflw_mask"): New.
4331 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
4332 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
4333 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
4334 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
4335 (define_expand "avx512vl_pshufhw_mask"): New.
4336 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
4337
4338 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4339 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4340 Anna Tikhonova <anna.tikhonova@intel.com>
4341 Ilya Tocar <ilya.tocar@intel.com>
4342 Andrey Turetskiy <andrey.turetskiy@intel.com>
4343 Ilya Verbin <ilya.verbin@intel.com>
4344 Kirill Yukhin <kirill.yukhin@intel.com>
4345 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4346
4347 * config/i386/i386.c
4348 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
4349 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
4350 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
4351 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
4352 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
4353 * config/i386/sse.md
4354 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
4355 (define_insn
4356 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
4357 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
4358 (define_insn
4359 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
4360 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
4361 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
4362 (define_expand "avx512vl_pshufd_mask"): New.
4363 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
4364
4365 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4366 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4367 Anna Tikhonova <anna.tikhonova@intel.com>
4368 Ilya Tocar <ilya.tocar@intel.com>
4369 Andrey Turetskiy <andrey.turetskiy@intel.com>
4370 Ilya Verbin <ilya.verbin@intel.com>
4371 Kirill Yukhin <kirill.yukhin@intel.com>
4372 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4373
4374 * config/i386/i386.c
4375 (CODE_FOR_avx2_extracti128): Rename to ...
4376 (CODE_FOR_avx_vextractf128v4di): this.
4377 (CODE_FOR_avx2_inserti128): Rename to ...
4378 (CODE_FOR_avx_vinsertf128v4di): this.
4379 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
4380 CODE_FOR_avx_vextractf128v4di.
4381 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
4382 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
4383 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
4384 CODE_FOR_avx512vl_vinsertv8si.
4385 * config/i386/sse.md
4386 (define_expand
4387 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
4388 AVX512_VEC mode iterator.
4389 (define_insn
4390 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
4391 Ditto.
4392 (define_expand
4393 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
4394 AVX512_VEC_2 mode iterator.
4395 (define_insn "vec_set_lo_<mode><mask_name>"): New.
4396 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4397 (define_expand "avx512vl_vinsert<mode>"): Ditto.
4398 (define_insn "avx2_vec_set_lo_v4di"): Delete.
4399 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
4400 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
4401 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4402 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
4403 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4404 (define_expand "avx2_extracti128"): Delete.
4405 (define_expand "avx2_inserti128"): Ditto.
4406
4407 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4408 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4409 Anna Tikhonova <anna.tikhonova@intel.com>
4410 Ilya Tocar <ilya.tocar@intel.com>
4411 Andrey Turetskiy <andrey.turetskiy@intel.com>
4412 Ilya Verbin <ilya.verbin@intel.com>
4413 Kirill Yukhin <kirill.yukhin@intel.com>
4414 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4415
4416 * config/i386/sse.md
4417 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
4418 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
4419 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
4420 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
4421 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
4422 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
4423 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
4424 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
4425 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
4426 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
4427 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
4428 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
4429 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
4430
4431 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
4432
4433 PR rtl-optimization/63210
4434 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
4435 HARD_REGNO is not available for CONFLICT_A.
4436
4437 2014-09-23 Andi Kleen <ak@linux.intel.com>
4438
4439 * cgraph.h (symtab_node): Add no_reorder attribute.
4440 (symbol_table::output_asm_statements): Remove.
4441 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
4442 (cgraph_node::create_version_clone): Dito.
4443 (symbol_table::output_asm_statements): Remove.
4444 * trans-mem.c (ipa_tm_create_version_alias): Dito.
4445 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
4446 (output_in_order): Add no_reorder flag. Only handle no_reorder
4447 nodes when set.
4448 (symbol_table::compile): Add separate pass for no_reorder nodes.
4449 (process_common_attributes): Set no_reorder flag in symtab node.
4450 Add node argument.
4451 (process_function_and_variable_attributes): Pass symtab nodes to
4452 process_common_attributes.
4453 * doc/extend.texi (no_reorder): Document no_reorder attribute.
4454 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
4455 (lto_output_varpool_node): Dito.
4456 (input_overwrite_node): Dito.
4457 (input_varpool_node): Dito.
4458 * varpool.c (varpool_node::add): Set no_reorder attribute.
4459 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
4460 (symbol_table::output_variables): Dito.
4461 * symtab.c (symtab_node::dump_base): Print no_reorder.
4462
4463 2014-09-23 Jiong Wang <jiong.wang@arm.com>
4464
4465 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
4466 be INVALID_REGNUM.
4467
4468 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
4469
4470 * configure: Regenerate.
4471
4472 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
4473
4474 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
4475 when result_mode == shift_mode.
4476
4477 2014-09-23 Kostya Serebryany <kcc@google.com>
4478
4479 Update to match the changed asan API.
4480 * asan.c (asan_global_struct): Update the __asan_global definition
4481 to match the new API.
4482 (asan_add_global): Ditto.
4483 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
4484 to __asan_init_v4.
4485
4486 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4487
4488 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
4489 refine the constraints used on 32/64-bit floating point moves.
4490 (f32_av): Likewise.
4491 (f64_vsx): Likewise.
4492 (f64_dm): Likewise.
4493 (f64_av): Likewise.
4494 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
4495 (BOOL_REGS_OP1): Likewise.
4496 (BOOL_REGS_OP2): Likewise.
4497 (BOOL_REGS_UNARY): Likewise.
4498 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
4499 32/64-bit floating point moves. Do not use wa, instead use ww/ws
4500 for moves involving VSX registers. Do not use constraints that
4501 target VSX registers for decimal types.
4502 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
4503 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
4504
4505 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
4506
4507 * tree.h (int_bit_position): Turn into inline function;
4508 implement using wide int.
4509 * tree.c (int_bit_position): Remove.
4510
4511 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
4512
4513 PR bootstrap/63280
4514 * target-globals.c (target_globals::~target_globals): Fix location
4515 of ira_int destruction.
4516
4517 2014-09-23 Renlin Li <renlin.li@arm.com>
4518
4519 * config/aarch64/aarch64.md (return): New.
4520 (simple_return): Likewise.
4521 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
4522 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
4523
4524 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
4525
4526 * common/config/aarch64/aarch64-common.c:
4527 (default_options aarch_option_optimization_table):
4528 Default to -fsched-pressure.
4529
4530 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
4531
4532 * cfgcleanup.c (try_optimize_cfg): Do not remove label
4533 with LABEL_PRESERVE_P flag set.
4534
4535 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4536 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4537 Anna Tikhonova <anna.tikhonova@intel.com>
4538 Ilya Tocar <ilya.tocar@intel.com>
4539 Andrey Turetskiy <andrey.turetskiy@intel.com>
4540 Ilya Verbin <ilya.verbin@intel.com>
4541 Kirill Yukhin <kirill.yukhin@intel.com>
4542 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4543
4544 * config/i386/sse.md
4545 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
4546 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
4547 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
4548 (define_insn "sse2_shufpd_v2df_mask"): New.
4549
4550 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4551 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4552 Anna Tikhonova <anna.tikhonova@intel.com>
4553 Ilya Tocar <ilya.tocar@intel.com>
4554 Andrey Turetskiy <andrey.turetskiy@intel.com>
4555 Ilya Verbin <ilya.verbin@intel.com>
4556 Kirill Yukhin <kirill.yukhin@intel.com>
4557 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4558
4559 * config/i386/sse.md
4560 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
4561 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4562 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4563 (define_insn "sse_shufps_v4sf_mask"): New.
4564
4565 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4566 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4567 Anna Tikhonova <anna.tikhonova@intel.com>
4568 Ilya Tocar <ilya.tocar@intel.com>
4569 Andrey Turetskiy <andrey.turetskiy@intel.com>
4570 Ilya Verbin <ilya.verbin@intel.com>
4571 Kirill Yukhin <kirill.yukhin@intel.com>
4572 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4573
4574 * config/i386/sse.md
4575 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4576 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4577 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4578 (define_insn "unpcklps128_mask"): New.
4579
4580 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4581 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4582 Anna Tikhonova <anna.tikhonova@intel.com>
4583 Ilya Tocar <ilya.tocar@intel.com>
4584 Andrey Turetskiy <andrey.turetskiy@intel.com>
4585 Ilya Verbin <ilya.verbin@intel.com>
4586 Kirill Yukhin <kirill.yukhin@intel.com>
4587 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4588
4589 * config/i386/sse.md
4590 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4591 (define_insn "avx512vl_unpckhpd128_mask"): New.
4592 (define_expand "avx_movddup256<mask_name>"): Add masking.
4593 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4594 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4595 (define_insn "avx512vl_unpcklpd128_mask"): New.
4596
4597 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4598
4599 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4600 * doc/tm.texi: Regenerate.
4601 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4602 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4603 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4604 Remove.
4605 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4606 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4607 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4608 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4609 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4610 Remove.
4611 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4612 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4613 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4614 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4615 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4616 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4617 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4618 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4619 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4620 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4621 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4622 Remove.
4623
4624 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
4625
4626 * tree-ssa-ccp.c (prop_value_d): Rename to ...
4627 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4628 * ipa-prop.c (struct type_change_info): Rename to ...
4629 (prop_type_change_info): ... this; update uses.
4630 * ggc-page.c (globals): Rename to ...
4631 (static struct ggc_globals): ... this; update uses.
4632 * tree-ssa-loop-im.c (mem_ref): Rename to ...
4633 (im_mem_ref): ... this; update uses.
4634 * ggc-common.c (loc_descriptor): Rename to ...
4635 (ggc_loc_descriptor): ... this; update uses.
4636 * lra-eliminations.c (elim_table): Rename to ...
4637 (lra_elim_table): ... this; update uses.
4638 * bitmap.c (output_info): Rename to ...
4639 (bitmap_output_info): ... this; update uses.
4640 * gcse.c (expr): Rename to ...
4641 (gcse_expr) ... this; update uses.
4642 (occr): Rename to ...
4643 (gcse_occr): .. this; update uses.
4644 * tree-ssa-copy.c (prop_value_d): Rename to ...
4645 (prop_value_t): ... this.
4646 * predict.c (block_info_def): Rename to ...
4647 (block_info): ... this; update uses.
4648 (edge_info_def): Rename to ...
4649 (edge_info): ... this; update uses.
4650 * profile.c (bb_info): Rename to ...
4651 (bb_profile_info): ... this; update uses.
4652 * alloc-pool.c (output_info): Rename to ...
4653 (pool_output_info): ... this; update uses.
4654 * ipa-cp.c (topo_info): Rename to ..
4655 (ipa_topo_info): ... this; update uses.
4656 * tree-nrv.c (nrv_data): Rename to ...
4657 (nrv_data_t): ... this; update uses.
4658 * ipa-split.c (bb_info): Rename to ...
4659 (split_bb_info): ... this one.
4660 * profile.h (edge_info): Rename to ...
4661 (edge_profile_info): ... this one; update uses.
4662 * dse.c (bb_info): Rename to ...
4663 (dse_bb_info): ... this one; update uses.
4664 * cprop.c (occr): Rename to ...
4665 (cprop_occr): ... this one; update uses.
4666 (expr): Rename to ...
4667 (cprop_expr): ... this one; update uses.
4668
4669 2014-09-22 Jason Merrill <jason@redhat.com>
4670
4671 * Makefile.in (check-parallel-%): Add @.
4672
4673 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4674
4675 * config/aarch64/geniterators.sh: New.
4676 * config/aarch64/iterators.md (VDQF_DF): New.
4677 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4678 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4679
4680 2014-09-22 Peter A. Bigot <pab@pabigot.com>
4681
4682 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4683 -lnosys when -msim absent.
4684
4685 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
4686
4687 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4688
4689 2014-09-22 Richard Biener <rguenther@suse.de>
4690
4691 * gimplify.c (gimplify_init_constructor): Do not leave
4692 non-GIMPLE vector constructors around.
4693 * tree-cfg.c (verify_gimple_assign_single): Verify that
4694 CONSTRUCTORs have gimple elements.
4695
4696 2014-09-22 Jakub Jelinek <jakub@redhat.com>
4697
4698 PR debug/63328
4699 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4700 insert a debug source bind stmt setting DEBUG_EXPR_DECL
4701 instead of a normal gimple assignment stmt.
4702
4703 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4704
4705 * config/bfin/bfin.md: Fix use of constraints in define_split.
4706
4707 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4708
4709 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4710 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4711
4712 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4713
4714 * hard-reg-set.h: Include hash-table.h.
4715 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4716 field.
4717 * target-globals.c (target_globals::~target_globals): Call
4718 hard_regs->finalize.
4719 * rtl.h (subreg_shape): New structure.
4720 (shape_of_subreg): New function.
4721 (simplifiable_subregs): Declare.
4722 * reginfo.c (simplifiable_subreg): New structure.
4723 (simplifiable_subregs_hasher): Likewise.
4724 (simplifiable_subregs): New function.
4725 (invalid_mode_changes): Delete.
4726 (alid_mode_changes, valid_mode_changes_obstack): New variables.
4727 (record_subregs_of_mode): Remove subregs_of_mode parameter.
4728 Record valid mode changes in valid_mode_changes.
4729 (find_subregs_of_mode): Remove subregs_of_mode parameter.
4730 Update calls to record_subregs_of_mode.
4731 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4732 handling. Initialize new variables. Update call to
4733 find_subregs_of_mode.
4734 (invalid_mode_change_p): Check new variables instead of
4735 invalid_mode_changes.
4736 (finish_subregs_of_mode): Finalize new variables instead of
4737 invalid_mode_changes.
4738 (target_hard_regs::finalize): New function.
4739 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4740 even when CLASS_CANNOT_CHANGE_MODE is undefined.
4741
4742 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4743
4744 * combine.c (subst): Use simplify_subreg_regno rather than
4745 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4746
4747 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4748
4749 * rtl.h (subreg_info): Expand commentary
4750 * rtlanal.c (subreg_get_info): Likewise.
4751
4752 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4753
4754 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4755 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4756 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4757
4758 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
4759
4760 * config/arm/arm.c: #include "tm-constrs.h"
4761 (thumb1_size_rtx_costs): Adjust rtx costs.
4762
4763 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
4764
4765 * configure.ac (target_header_dir): Move block defining
4766 this to before the block setting inhibit_libc.
4767 (inhibit_libc): When considering $with_headers, just
4768 check it it's explicitly "no". If not, also check if
4769 $target_header_dir/stdio.h is present. If not, set
4770 inhibit_libc=true.
4771 * configure: Regenerate.
4772
4773 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
4774
4775 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4776
4777 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4778
4779 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
4780 insn for divides by integer powers of two.
4781 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4782 (mod<mode>3): Fix formatting.
4783 (three anonymous define_insn and two define_split): Delete.
4784
4785 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4786
4787 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4788 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4789 (floatdisf2_internal2): Ditto.
4790 (ashrdi3_no_power): Ditto. Fix formatting.
4791
4792 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4793
4794 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4795 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4796 Tidy.
4797
4798 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4799
4800 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4801 constant, use addsi3 directly.
4802 (three anonymous define_insn, two define_split): Delete.
4803 (sub<mode>3): Move. Do not allow constant second operand.
4804 Generate different insn for constant first operand.
4805 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4806 (subf<mode>3_imm): New.
4807 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4808 (*plus_ltu<mode>): Only handle registers.
4809 (*plus_ltu<mode>_1): New. Handle integer third operand.
4810 (*plus_gtu<mode>): Only handle registers.
4811 (*plus_gtu<mode>_1): New. Handle integer third operand.
4812
4813 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4814
4815 * config/rs6000/rs6000.md (iorxor): New code_iterator.
4816 (iorxor): New code_attr.
4817 (IORXOR): New code_attr.
4818 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4819 (ior<mode>3, xor<mode>3): Delete.
4820 (<iorxor><mode>3): New.
4821 (splitter for "big" integer ior, xor): New.
4822 (*bool<mode>3): Move. Also handle AND.
4823 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4824 (splitter for "big" integer ior, xor): Delete.
4825
4826 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4827
4828 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4829 (two anonymous define_insn and two define_split): Delete.
4830 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4831
4832 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4833
4834 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4835 (two anonymous define_insn and two define_split): Delete.
4836 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4837
4838 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4839
4840 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4841
4842 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4843
4844 * config/rs6000/predicates.md (ca_operand): Allow subregs.
4845 (input_operand): Do not allow ca_operand.
4846 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4847 carry bit, allow SImode and Pmode.
4848 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4849
4850 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
4851
4852 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4853 clobbered registers using clobber_reg. Remove UNSPEC decoration.
4854 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4855 (*call_rex64_ms_sysv): Remove.
4856 (*call_value_rex64_ms_sysv): Ditto.
4857 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4858
4859 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
4860
4861 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4862 operand 3 to "CnL".
4863
4864 2014-09-20 Andreas Schwab <schwab@suse.de>
4865
4866 * config/ia64/ia64.md: Remove constraints from define_split
4867 patterns.
4868
4869 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4870
4871 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4872 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4873 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4874 (get_dynamic_type): Remove.
4875 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4876 (clear_speculation): Bring to ipa-deivrt.h
4877 (get_class_context): Rename to ...
4878 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4879 (contains_type_p): Update.
4880 (get_dynamic_type): Rename to ...
4881 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4882 (possible_polymorphic_call_targets): UPdate.
4883 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4884 * ipa-prop.c (ipa_analyze_call_uses): Update.
4885
4886 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4887
4888 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4889 privatize dynamic TLS variables.
4890
4891 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4892
4893 * diagnostic.c (warning_n): New function.
4894 * diagnostic-core.h (warning_n): Declare.
4895 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4896 output dynamic counts when available.
4897
4898 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4899
4900 PR tree-optimization/63255
4901 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4902 issue in setting body_removed flag.
4903
4904 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4905
4906 PR c++/61825
4907 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4908 that visibility change is possible
4909 (handle_weakref_attribute): Likewise.
4910 * cgraph.h (symtab_node): Add method get_create and
4911 field refuse_visibility_changes.
4912 (symtab_node::get_create): New method.
4913 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4914 * varasm.c (mark_weak): Verify that visibility change is
4915 possible.
4916
4917 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4918
4919 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4920 for base_reg_operand to be common between LO_SUM and PLUS.
4921 (fusion_gpr_mem_combo): New predicate to match a fused address
4922 that combines the addis and memory offset address.
4923
4924 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4925 calling signature.
4926 (emit_fusion_gpr_load): Likewise.
4927
4928 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4929 signature to pass each argument separately, rather than
4930 using an operands array. Rewrite the insns found by peephole2 to
4931 be a single insn, rather than hoping the insns will still be
4932 together when the peephole pass is done. Drop being called via a
4933 normal peephole.
4934 (emit_fusion_gpr_load): Change calling signature to be called from
4935 the fusion_gpr_load_<mode> insns with a combined memory address
4936 instead of the peephole pass passing the addis and offset
4937 separately.
4938
4939 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4940 fusion.
4941 (power8 fusion peephole): Drop support for doing power8 via a
4942 normal peephole that was created by the peephole2 pass.
4943 (power8 fusion peephole2): Create a new insn with the fused
4944 address, so that the fused operation is kept together after
4945 register allocation is done.
4946 (fusion_gpr_load_<mode>): Likewise.
4947
4948 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4949
4950 PR lto/63286
4951 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4952
4953 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4954
4955 * recog.c (scratch_operand): Do not simply allow all hard registers:
4956 only allow those that are allocatable.
4957
4958 2014-09-19 Felix Yang <felix.yang@huawei.com>
4959
4960 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4961 comments and fix spacing to conform to coding style.
4962
4963 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4964
4965 * genrecog.c (validate_pattern): Allow empty constraints in
4966 a match_scratch.
4967
4968 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4969
4970 * dwarf2out.c (decl_ultimate_origin): Update comment.
4971 * tree.c (block_ultimate_origin): Same.
4972
4973 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4974
4975 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4976 Update GCC version name to GCC 5.
4977 (rs6000_function_arg_boundary): Likewise.
4978 (rs6000_function_arg): Likewise.
4979
4980 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4981
4982 * config/sh/sh.md: Fix use of constraints in define_split.
4983
4984 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4985
4986 PR ipa/61998
4987 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4988
4989 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4990
4991 * doc/md.texi (Modifiers): Consistently use "read/write"
4992 nomenclature rather than "input/output".
4993 * genrecog.c (constraints_supported_in_insn_p): New.
4994 (validate_pattern): If needed, also check constraints on
4995 MATCH_SCRATCH operands.
4996 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4997 operands with no '=' or '+' modifier.
4998
4999 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
5000
5001 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
5002 scratch register as written.
5003
5004 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5005
5006 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
5007 assignment.
5008
5009 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5010
5011 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
5012 expanders.
5013
5014 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5015
5016 PR target/62662
5017 * config/s390/s390.c (s390_emit_epilogue): When doing the return
5018 address load optimization force s390_optimize_prologue to leave it
5019 that way. Only do the optimization if we already decided to push
5020 r14 into a stack slot.
5021
5022 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
5023
5024 * asan.c (build_check_stmt): Alignment arg was added.
5025 (asan_expand_check_ifn): Optimization for alignment >= 8.
5026
5027 2014-09-19 Olivier Hainque <hainque@adacore.com>
5028
5029 * config/i386/vxworksae.h: Remove obsolete definitions.
5030 (STACK_CHECK_PROTECT): Define.
5031 * config/i386/vx-common.h: Remove. Merge contents within
5032 config/i386/vxworks.h.
5033 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
5034 i386/vx-common.h.
5035
5036 2014-09-19 Olivier Hainque <hainque@adacore.com>
5037
5038 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
5039 * config/rs6000/t-vxworksmils: New file.
5040 * config/rs6000/vxworksmils.h: New file.
5041
5042 2014-09-19 Olivier Hainque <hainque@adacore.com>
5043
5044 * varasm.c (default_section_type_flags): Flag .persistent.bss
5045 sections as SECTION_BSS.
5046
5047 2014-09-19 Nick Clifton <nickc@redhat.com>
5048
5049 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
5050 pop'ed registers so that DCE does not eliminate them.
5051
5052 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
5053
5054 PR lto/63298
5055 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
5056
5057 2014-09-18 Joseph Myers <joseph@codesourcery.com>
5058
5059 * system.h (LIBGCC2_TF_CEXT): Poison.
5060 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
5061 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
5062 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
5063 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
5064 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
5065 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
5066 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
5067 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
5068 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
5069
5070 2014-09-19 Kito Cheng <kito@0xlab.org>
5071
5072 * except.h: Fix header guard.
5073 * addresses.h: Add missing header guard.
5074 * cfghooks.h: Likewise.
5075 * collect-utils.h: Likewise.
5076 * collect2-aix.h: Likewise.
5077 * conditions.h: Likewise.
5078 * cselib.h: Likewise.
5079 * dwarf2asm.h: Likewise.
5080 * graphds.h: Likewise.
5081 * graphite-scop-detection.h: Likewise.
5082 * gsyms.h: Likewise.
5083 * hw-doloop.h: Likewise.
5084 * incpath.h: Likewise.
5085 * ipa-inline.h: Likewise.
5086 * ipa-ref.h: Likewise.
5087 * ira-int.h: Likewise.
5088 * ira.h: Likewise.
5089 * lra-int.h: Likewise.
5090 * lra.h: Likewise.
5091 * lto-section-names.h: Likewise.
5092 * read-md.h: Likewise.
5093 * reload.h: Likewise.
5094 * rtl-error.h: Likewise.
5095 * sdbout.h: Likewise.
5096 * targhooks.h: Likewise.
5097 * tree-affine.h: Likewise.
5098 * xcoff.h: Likewise.
5099 * xcoffout.h: Likewise.
5100
5101 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
5102
5103 PR debug/63285
5104 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
5105 if advance != 0.
5106
5107 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
5108
5109 PR target/61360
5110 * lra.c (lra): Call recog_init.
5111
5112 2014-09-18 Jakub Jelinek <jakub@redhat.com>
5113
5114 PR c++/62017
5115 * asan.c (transform_statements): Don't instrument clobber statements.
5116
5117 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5118
5119 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
5120 to neon_load1_1reg<q>.
5121
5122 2014-09-17 Jakub Jelinek <jakub@redhat.com>
5123
5124 PR debug/63284
5125 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
5126 if there are only debug stmts after the noreturn call, instead
5127 remove the debug stmts.
5128
5129 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
5130
5131 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
5132 (odr_types_equivalent_p): Use pair hash.
5133 (odr_subtypes_equivalent_p): Likewise, do structural compare
5134 on ODR types that may be mismatched.
5135 (warn_odr): Support warning when only one field is given.
5136 (odr_types_equivalent_p): Strenghten comparsions made;
5137 support VOIDtype.
5138 (add_type_duplicate): Update VISITED hash set.
5139
5140 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
5141
5142 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
5143 Enable selection of 'posix' or no thread model.
5144
5145 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
5146
5147 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
5148 when architecture is older than ARMv7.
5149
5150 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
5151
5152 PR target/61853
5153 * config/pa/pa.c (pa_function_value): Directly handle aggregates
5154 that fit exactly in a word or double word.
5155
5156 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
5157
5158 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
5159 zmm/k regs support.
5160
5161 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
5162 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5163 Anna Tikhonova <anna.tikhonova@intel.com>
5164 Ilya Tocar <ilya.tocar@intel.com>
5165 Andrey Turetskiy <andrey.turetskiy@intel.com>
5166 Ilya Verbin <ilya.verbin@intel.com>
5167 Kirill Yukhin <kirill.yukhin@intel.com>
5168 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5169
5170 * config/i386/i386.c
5171 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
5172 * config/i386/sse.md
5173 (define_mode_iterator VI48F_256): New.
5174 (define_mode_attr extract_type): Ditto.
5175 (define_mode_attr extract_suf): Ditto.
5176 (define_mode_iterator AVX512_VEC): Ditto.
5177 (define_expand
5178 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
5179 AVX512_VEC.
5180 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
5181 (define_insn
5182 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
5183 Ditto.
5184 (define_mode_attr extract_type_2): Ditto.
5185 (define_mode_attr extract_suf_2): Ditto.
5186 (define_mode_iterator AVX512_VEC_2): Ditto.
5187 (define_expand
5188 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
5189 AVX512_VEC_2 mode iterator.
5190 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5191 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
5192 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5193 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5194 (define_split for V16FI mode): Ditto.
5195 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5196 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5197 (define_split for VI8F_256 mode): Ditto.
5198 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5199 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5200 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5201 (define_split for VI4F_256 mode): Ditto.
5202 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
5203 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5204 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5205 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
5206 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
5207 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
5208 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
5209 Update `type' attribute, remove explicit `memory' attribute calculation.
5210
5211 2014-09-16 Kito Cheng <kito@0xlab.org>
5212
5213 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
5214 ira_spilled_reg_stack_slots_num if using lra.
5215 (do_reload): Remove release ira_spilled_reg_stack_slots part.
5216 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
5217 make sure not using lra.
5218 (ira_reuse_stack_slot): Likewise.
5219 (ira_mark_new_stack_slot): Likewise.
5220
5221 2014-09-15 Andi Kleen <ak@linux.intel.com>
5222
5223 * function.c (allocate_struct_function): Force
5224 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
5225 profiling is disabled.
5226
5227 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
5228
5229 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
5230 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
5231 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
5232 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
5233 macro with statically checked member functions.
5234 * rtl.h (rtx_insn::deleted): New method.
5235 (rtx_insn::set_deleted): Likewise.
5236 (rtx_insn::set_undeleted): Likewise.
5237 (INSN_DELETED_P): Remove.
5238
5239 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
5240
5241 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
5242 result of emit_jump_insn_before to a new variable.
5243 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
5244 (mark_jump_label_1): Likewise.
5245 (mark_jump_label_asm): Likewise.
5246 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
5247 * rtl.h (mark_jump_label): Adjust.
5248
5249 2014-09-15 Jakub Jelinek <jakub@redhat.com>
5250
5251 * Makefile.in (dg_target_exps): Remove.
5252 (check_gcc_parallelize): Change to just an upper bound number.
5253 (check-%-subtargets): Always print the non-parallelized goals.
5254 (check_p_vars, check_p_comma, check_p_subwork): Remove.
5255 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
5256 check_p_numbers3, check_p_numbers4, check_p_numbers5,
5257 check_p_numbers6): New variables.
5258 (check_p_numbers): Set to sequence from 1 to 9999.
5259 (check_p_subdirs): Set to sequence from 1 to minimum of
5260 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
5261 or 128.
5262 (check-%, check-parallel-%): Rewritten so that for parallelized
5263 testing each job runs all the *.exp files, with
5264 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
5265
5266 2014-09-15 David Malcolm <dmalcolm@redhat.com>
5267
5268 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
5269 rtx to rtx_insn *.
5270 (arc_sets_cc_p): Likewise.
5271 * config/arc/arc.c (arc_print_operand): Use methods of
5272 "final_sequence" for clarity, and to enable strengthening of
5273 locals "jump" and "delay" from rtx to rtx_insn *.
5274 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
5275 rtx_insn *; use method of rtx_sequence for typesafety.
5276 (arc_get_insn_variants): Use insn method of rtx_sequence for
5277 typesafety.
5278 (arc_pad_return): Likewise.
5279 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
5280 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
5281 dyn_cast to rtx_sequence *, using insn method for typesafety.
5282 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
5283 rtx_sequence * and use insn method when invoking get_attr_length.
5284 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
5285 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
5286 rtx_sequence *, introducing a local "seq", using its insn method
5287 from typesafety and clarity.
5288 (add_sched_insns_for_speculation): Strengthen local "next" from
5289 rtx to rtx_insn *.
5290 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
5291 (predicate_insn): Likewise.
5292 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
5293 second param.
5294 * config/cris/cris.c (cris_notice_update_cc): Likewise.
5295 * config/epiphany/epiphany-protos.h
5296 (extern void epiphany_insert_mode_switch_use): Likewise for param
5297 "insn".
5298 (get_attr_sched_use_fpu): Likewise for param.
5299 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
5300 Likewise for param "insn".
5301 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
5302 param "insn" of "target_insert_mode_switch_use" callback.
5303 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
5304 (frv_issues_to_branch_unit_p): Likewise.
5305 (frv_pack_insn_p): Likewise.
5306 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
5307 const rtx * (i.e. mutable rtx_def * const *) to
5308 rtx_insn * const *.
5309 * config/i386/i386-protos.h (standard_sse_constant_opcode):
5310 Strengthen first param from rtx to rtx_insn *.
5311 (output_fix_trunc): Likewise.
5312 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
5313 (output_fix_trunc): Likewise.
5314 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
5315 local "insn".
5316 (min_insn_size): Likewise for param "insn".
5317 (get_mem_group): Likewise.
5318 (is_cmp): Likewise.
5319 (get_insn_path): Likewise.
5320 (get_insn_group): Likewise.
5321 (count_num_restricted): Likewise.
5322 (fits_dispatch_window): Likewise.
5323 (add_insn_window): Likewise.
5324 (add_to_dispatch_window): Likewise.
5325 (debug_insn_dispatch_info_file): Likewise.
5326 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
5327 first param.
5328 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
5329 "cmp" and local "prev".
5330 (m32c_output_compare): Likewise for param "insn".
5331 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
5332 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
5333 (define_predicate "large_insn_p"): Likewise.
5334 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
5335 param from rtx to rtx_insn *.
5336 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
5337 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
5338 (m68k_sched_attr_size): Likewise.
5339 (sched_get_opxy_mem_type): Likewise for param "insn".
5340 (m68k_sched_attr_op_mem): Likewise.
5341 (sched_mem_operand_p): Likewise.
5342 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
5343 * config/mep/mep.c (mep_multi_slot): Likewise.
5344 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
5345 first param.
5346 (mips_sync_loop_insns): Likewise.
5347 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
5348 method of "final_sequence" for typesafety.
5349 (mips_process_sync_loop): Strengthen param "insn" from rtx to
5350 rtx_insn *.
5351 (mips_output_sync_loop): Likewise.
5352 (mips_sync_loop_insns): Likewise.
5353 (mips_74k_agen_init): Likewise.
5354 (mips_sched_init): Use NULL rather than NULL_RTX when working with
5355 insns.
5356 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
5357 Strengthen param "insn" from rtx to rtx_insn *.
5358 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
5359 local "insn".
5360 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
5361 param.
5362 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
5363 "insn". Use method of rtx_sequence for typesafety.
5364 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
5365 rtx_insn *.
5366 (branch_needs_nop_p): Likewise.
5367 (use_skip_p): Likewise.
5368 (pa_insn_refs_are_delayed): Likewise.
5369 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
5370 for locals "insn", "ninsn".
5371 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
5372 "insn".
5373 (is_cracked_insn): Likewise.
5374 (is_branch_slot_insn): Likewise.
5375 (is_nonpipeline_insn): Likewise.
5376 (insn_terminates_group_p): Likewise.
5377 (insn_must_be_first_in_group): Likewise.
5378 (insn_must_be_last_in_group): Likewise.
5379 (force_new_group): Likewise for param "next_insn".
5380 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
5381 "insn".
5382 (s390_sched_score): Likewise.
5383 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
5384 (rtx sfunc_uses_reg): Likewise for sole param.
5385 * config/sh/sh.c (sh_print_operand): Use insn method of
5386 final_sequence for typesafety.
5387 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
5388 Use insn method of final_sequence for typesafety.
5389 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
5390 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
5391 for param.
5392 (eligible_for_return_delay): Likewise.
5393 (eligible_for_sibcall_delay): Likewise.
5394 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
5395 (eligible_for_return_delay): Likewise.
5396 (eligible_for_sibcall_delay): Likewise.
5397 * config/stormy16/stormy16-protos.h
5398 (xstormy16_output_cbranch_hi): Likewise for final param.
5399 (xstormy16_output_cbranch_si): Likewise.
5400 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
5401 (xstormy16_output_cbranch_si): Likewise.
5402 * config/v850/v850-protos.h (notice_update_cc): Likewise.
5403 * config/v850/v850.c (notice_update_cc): Likewise.
5404
5405 * final.c (get_attr_length_1): Strengthen param "insn" and param
5406 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
5407 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
5408 (get_attr_min_length): Likewise.
5409 (shorten_branches): Likewise for signature of locals "length_fun"
5410 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
5411 from a checked cast and use its methods for clarity and to enable
5412 strengthening local "inner_insn" from rtx to rtx_insn *.
5413 * genattr.c (gen_attr): When writing out the prototypes of the
5414 various generated "get_attr_" functions, strengthen the params of
5415 the non-const functions from rtx to rtx_insn *.
5416 Similarly, strengthen the params of insn_default_length,
5417 insn_min_length, insn_variable_length_p, insn_current_length.
5418 (main): Similarly, strengthen the param of num_delay_slots,
5419 internal_dfa_insn_code, insn_default_latency, bypass_p,
5420 insn_latency, min_issue_delay, print_reservation,
5421 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
5422 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
5423 to hook_int_rtx_insn_unreachable.
5424 * genattrtab.c (write_attr_get): When writing out the generated
5425 "get_attr_" functions, strengthen the param "insn" from rtx to
5426 rtx_insn *, eliminating a checked cast.
5427 (make_automaton_attrs): When writing out prototypes of
5428 "internal_dfa_insn_code_", "insn_default_latency_" functions
5429 and the "internal_dfa_insn_code" and "insn_default_latency"
5430 callbacks, strengthen their params from rtx to rtx_insn *
5431 * genautomata.c (output_internal_insn_code_evaluation): When
5432 writing out code, add a checked cast from rtx to rtx_insn * when
5433 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
5434 (output_dfa_insn_code_func): Strengthen param of generated
5435 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
5436 (output_trans_func): Likewise for generated function
5437 "state_transition".
5438 (output_internal_insn_latency_func): When writing out generated
5439 function "internal_insn_latency", rename params from "insn" and
5440 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
5441 locals "insn" and "insn2" as rtx_insn * with checked casts once
5442 we've proven that we're not dealing with const0_rtx.
5443 (output_insn_latency_func): Strengthen param of generated
5444 function "insn_latency" from rtx to rtx_insn *.
5445 (output_print_reservation_func): Likewise for generated function
5446 "print_reservation".
5447 (output_insn_has_dfa_reservation_p): Likewise for generated
5448 function "insn_has_dfa_reservation_p".
5449 * hooks.c (hook_int_rtx_unreachable): Rename to...
5450 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
5451 from rtx to rtx_insn *.
5452 * hooks.h (hook_int_rtx_unreachable): Likewise.
5453 (extern int hook_int_rtx_insn_unreachable): Likewise.
5454 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
5455 (get_attr_min_length): Likewise.
5456 * recog.c (get_enabled_alternatives): Likewise.
5457 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
5458 * reorg.c (find_end_label): Introduce local rtx "pat" and
5459 strengthen local "insn" from rtx to rtx_insn *.
5460 (redundant_insn): Use insn method of "seq" rather than element for
5461 typesafety; strengthen local "control" from rtx to rtx_insn *.
5462 * resource.c (mark_referenced_resources): Add checked cast to
5463 rtx_insn * within INSN/JUMP_INSN case.
5464 (mark_set_resources): Likewise.
5465 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
5466 rtx to rtx_insn *.
5467
5468 2014-09-15 David Malcolm <dmalcolm@redhat.com>
5469
5470 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
5471 param "label" from rtx to rtx_insn *.
5472 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
5473 and local "op".
5474 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
5475 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
5476 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5477 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5478 * final.c (default_label_align_after_barrier_max_skip): Strengthen
5479 param from rtx to rtx_insn *.
5480 (default_loop_align_max_skip): Likewise.
5481 (default_label_align_max_skip): Likewise.
5482 (default_jump_align_max_skip): Likewise.
5483 * target.def (label_align_after_barrier_max_skip): Likewise.
5484 (loop_align_max_skip): Likewise.
5485 (label_align_max_skip): Likewise.
5486 (jump_align_max_skip): Likewise.
5487 * targhooks.h (default_label_align_after_barrier_max_skip):
5488 Likewise.
5489 (default_loop_align_max_skip): Likewise.
5490 (default_label_align_max_skip): Likewise.
5491 (default_jump_align_max_skip): Likewise.
5492
5493 2014-09-15 David Malcolm <dmalcolm@redhat.com>
5494
5495 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
5496 from const_rtx to const rtx_insn *. Update union members from rtx
5497 to rtx_insn *.
5498 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
5499 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
5500 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
5501 strengthen both params from const_rtx to const rtx_insn *.
5502 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
5503 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
5504 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
5505 rtx_insn *.
5506 * target.def (can_follow_jump): Strengthen both params from
5507 const_rtx to const rtx_insn *, and update default implementation
5508 from hook_bool_const_rtx_const_rtx_true to
5509 hook_bool_const_rtx_insn_const_rtx_insn_true.
5510
5511 2014-09-15 David Malcolm <dmalcolm@redhat.com>
5512
5513 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
5514 "insn" from rtx to rtx_insn *.
5515 * sched-int.h (deps_start_bb): Likewise for 2nd param.
5516
5517 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
5518 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5519 Anna Tikhonova <anna.tikhonova@intel.com>
5520 Ilya Tocar <ilya.tocar@intel.com>
5521 Andrey Turetskiy <andrey.turetskiy@intel.com>
5522 Ilya Verbin <ilya.verbin@intel.com>
5523 Kirill Yukhin <kirill.yukhin@intel.com>
5524 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5525
5526 * config/i386/sse.md
5527 (define_insn "vcvtph2ps<mask_name>"): Add masking.
5528 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
5529 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
5530 (define_expand "vcvtps2ph_mask"): New.
5531 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
5532 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
5533 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
5534
5535 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
5536 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5537 Anna Tikhonova <anna.tikhonova@intel.com>
5538 Ilya Tocar <ilya.tocar@intel.com>
5539 Andrey Turetskiy <andrey.turetskiy@intel.com>
5540 Ilya Verbin <ilya.verbin@intel.com>
5541 Kirill Yukhin <kirill.yukhin@intel.com>
5542 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5543
5544 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
5545 New.
5546 (define_mode_iterator VI24_AVX512BW_1): Ditto.
5547 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
5548 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
5549 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
5550 also for TARGET_AVX512VL.
5551 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
5552
5553 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
5554
5555 * doc/install.texi (Options specification): add
5556 --disable-libsanitizer item.
5557
5558 2014-09-14 James Clarke <jrtc27@jrtc27.com>
5559 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5560
5561 PR target/61407
5562 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5563 and above.
5564 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5565 kernel version check to avoid incrementing it after every major OS X
5566 release.
5567 (darwin_default_min_version): Avoid static memory buffer.
5568
5569 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
5570
5571 * tree.c (need_assembler_name_p): Store C++ type mangling only
5572 for aggregates.
5573
5574 2014-09-13 Marek Polacek <polacek@redhat.com>
5575
5576 * tree.c (protected_set_expr_location): Don't check whether T is
5577 non-null here.
5578
5579 2014-09-12 DJ Delorie <dj@redhat.com>
5580
5581 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5582 (extend_and_shift1_hipsi2): Likewise.
5583 (extend_and_shift2_hipsi2): Likewise.
5584
5585 2014-09-12 David Malcolm <dmalcolm@redhat.com>
5586
5587 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5588 with NULL when dealing with an insn.
5589 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5590 from rtx to rtx_insn *.
5591 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5592 const_rtx to const rtx_insn *.
5593 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5594
5595 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
5596
5597 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5598 assert.
5599
5600 2014-09-12 Joseph Myers <joseph@codesourcery.com>
5601
5602 * target.def (libgcc_floating_mode_supported_p): New hook.
5603 * targhooks.c (default_libgcc_floating_mode_supported_p): New
5604 function.
5605 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5606 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5607 (LIBGCC2_HAS_TF_MODE): Remove.
5608 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5609 * doc/tm.texi: Regenerate.
5610 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5611 machine mode.
5612 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5613 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5614 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5615 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5616 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5617 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5618 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5619 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5620 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5621 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5622 function.
5623 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5624 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5625 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5626 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5627 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5628 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5629 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5630 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5631 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5632 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5633 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5634 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5635 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5636 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5637 Remove.
5638 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5639 New macro.
5640 (ia64_libgcc_floating_mode_supported_p): New function.
5641 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5642 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5643 (IA64_NO_LIBGCC_TFMODE): Define.
5644 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5645 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5646 macro.
5647 (pdp11_scalar_mode_supported_p): New function.
5648 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5649 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5650
5651 2014-09-12 Richard Biener <rguenther@suse.de>
5652
5653 PR middle-end/63237
5654 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5655
5656 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
5657
5658 * tree.c (integer_each_onep): New function.
5659 * tree.h (integer_each_onep): Declare it.
5660 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5661 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5662 (X & 1) == 0 for vector and complex.
5663
5664 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5665
5666 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5667 for A57.
5668 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
5669 cost to spilling from integer to FP registers.
5670
5671 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5672
5673 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5674 move handling.
5675 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5676 are now handled correctly.
5677
5678 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5679
5680 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5681 handling of CALLER_SAVE_REGS and POINTER_REGS.
5682
5683 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5684
5685 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5686 the number of hard registers.
5687
5688 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5690 Anna Tikhonova <anna.tikhonova@intel.com>
5691 Ilya Tocar <ilya.tocar@intel.com>
5692 Andrey Turetskiy <andrey.turetskiy@intel.com>
5693 Ilya Verbin <ilya.verbin@intel.com>
5694 Kirill Yukhin <kirill.yukhin@intel.com>
5695 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5696
5697 * config/i386/sse.md
5698 (define_mode_iterator VI48_AVX512VL): New.
5699 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5700 "avx512f_vternlog<mode>_maskz" and update mode iterator.
5701 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5702 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5703 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5704 "avx512f_vternlog<mode>_mask" and update mode iterator.
5705 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5706 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5707 iterator.
5708 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5709 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5710 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5711 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5712 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5713 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5714
5715 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5716 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5717 Anna Tikhonova <anna.tikhonova@intel.com>
5718 Ilya Tocar <ilya.tocar@intel.com>
5719 Andrey Turetskiy <andrey.turetskiy@intel.com>
5720 Ilya Verbin <ilya.verbin@intel.com>
5721 Kirill Yukhin <kirill.yukhin@intel.com>
5722 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5723
5724 * config/i386/sse.md (VI128_256): Delete.
5725 (define_mode_iterator VI124_256): New.
5726 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5727 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5728 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5729 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5730 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5731 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5732 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5733 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5734 iterator.
5735 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5736 in presence of AVX-512.
5737
5738 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5740 Anna Tikhonova <anna.tikhonova@intel.com>
5741 Ilya Tocar <ilya.tocar@intel.com>
5742 Andrey Turetskiy <andrey.turetskiy@intel.com>
5743 Ilya Verbin <ilya.verbin@intel.com>
5744 Kirill Yukhin <kirill.yukhin@intel.com>
5745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5746
5747 * config/i386/sse.md
5748 (define_expand "<avx512>_gathersi<mode>"): Rename from
5749 "avx512f_gathersi<mode>".
5750 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5751 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5752 (define_expand "<avx512>_gatherdi<mode>"): Rename from
5753 "avx512f_gatherdi<mode>".
5754 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5755 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5756 wide versions.
5757 (define_expand "<avx512>_scattersi<mode>"): Rename from
5758 "avx512f_scattersi<mode>".
5759 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5760 (define_expand "<avx512>_scatterdi<mode>"): Rename from
5761 "avx512f_scatterdi<mode>".
5762 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5763
5764 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
5765
5766 * ira.h (ira_finish_once): Delete.
5767 * ira-int.h (target_ira_int::~target_ira_int): Declare.
5768 (target_ira_int::free_ira_costs): Likewise.
5769 (target_ira_int::free_register_move_costs): Likewise.
5770 (ira_finish_costs_once): Delete.
5771 * ira.c (free_register_move_costs): Replace with...
5772 (target_ira_int::free_register_move_costs): ...this new function.
5773 (target_ira_int::~target_ira_int): Define.
5774 (ira_init): Call free_register_move_costs as a member function rather
5775 than a global function.
5776 (ira_finish_once): Delete.
5777 * ira-costs.c (free_ira_costs): Replace with...
5778 (target_ira_int::free_ira_costs): ...this new function.
5779 (ira_init_costs): Call free_ira_costs as a member function rather
5780 than a global function.
5781 (ira_finish_costs_once): Delete.
5782 * target-globals.c (target_globals::~target_globals): Call the
5783 target_ira_int destructor.
5784 * toplev.c: Include lra.h.
5785 (finalize): Call lra_finish_once rather than ira_finish_once.
5786
5787 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
5788
5789 * common.opt (flto-odr-type-merging): New flag.
5790 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5791 (types_same_for_odr): Likewise.
5792 (odr_subtypes_equivalent_p): Likewise.
5793 (add_type_duplicate): Do not walk type variants.
5794 (register_odr_type): New function.
5795 * ipa-utils.h (register_odr_type): Declare.
5796 (odr_type_p): New function.
5797 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5798 TYPE_DECLs
5799 * doc/invoke.texi (-flto-odr-type-merging): Document.
5800 * tree.c (need_assembler_name_p): Compute ODR names when asked
5801 for it.
5802 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5803
5804 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
5805
5806 PR target/63228
5807 * config/i386/i386.c (ix86_option_override_internal): Also turn
5808 off OPTION_MASK_ABI_X32 for -m16.
5809
5810 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5811
5812 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5813 GPR instead of P.
5814
5815 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
5816
5817 PR target/58757
5818 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5819 Directly forward to __*_DENORM_MIN__.
5820
5821 2014-09-11 David Malcolm <dmalcolm@redhat.com>
5822
5823 * rtl.h (LABEL_REF_LABEL): New macro.
5824
5825 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5826 of XEXP (, 0), where we know that we have a LABEL_REF.
5827 * cfgbuild.c (make_edges): Likewise.
5828 (purge_dead_tablejump_edges): Likewise.
5829 * cfgexpand.c (convert_debug_memory_address): Likewise.
5830 * cfgrtl.c (patch_jump_insn): Likewise.
5831 * combine.c (distribute_notes): Likewise.
5832 * cse.c (hash_rtx_cb): Likewise.
5833 (exp_equiv_p): Likewise.
5834 (fold_rtx): Likewise.
5835 (check_for_label_ref): Likewise.
5836 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5837 (cselib_hash_rtx): Likewise.
5838 * emit-rtl.c (mark_label_nuses): Likewise.
5839 * explow.c (convert_memory_address_addr_space): Likewise.
5840 * final.c (output_asm_label): Likewise.
5841 (output_addr_const): Likewise.
5842 * gcse.c (add_label_notes): Likewise.
5843 * genconfig.c (walk_insn_part): Likewise.
5844 * genrecog.c (validate_pattern): Likewise.
5845 * ifcvt.c (cond_exec_get_condition): Likewise.
5846 (noce_emit_store_flag): Likewise.
5847 (noce_get_alt_condition): Likewise.
5848 (noce_get_condition): Likewise.
5849 * jump.c (maybe_propagate_label_ref): Likewise.
5850 (mark_jump_label_1): Likewise.
5851 (redirect_exp_1): Likewise.
5852 (rtx_renumbered_equal_p): Likewise.
5853 * lra-constraints.c (operands_match_p): Likewise.
5854 * reload.c (operands_match_p): Likewise.
5855 (find_reloads): Likewise.
5856 * reload1.c (set_label_offsets): Likewise.
5857 * reorg.c (get_branch_condition): Likewise.
5858 * rtl.c (rtx_equal_p_cb): Likewise.
5859 (rtx_equal_p): Likewise.
5860 * rtlanal.c (reg_mentioned_p): Likewise.
5861 (rtx_referenced_p): Likewise.
5862 (get_condition): Likewise.
5863 * sched-vis.c (print_value): Likewise.
5864 * varasm.c (const_hash_1): Likewise.
5865 (compare_constant): Likewise.
5866 (const_rtx_hash_1): Likewise.
5867 (output_constant_pool_1): Likewise.
5868
5869 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5870
5871 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5872 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5873 instead of minus.
5874 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5875 cr6_test_for_lt_reverse): Ditto.
5876
5877 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
5878
5879 PR c++/61489
5880 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5881
5882 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5883
5884 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5885 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5886 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5887 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5888 Delete.
5889
5890 (aarch64_fold_builtin): Remove all reinterpret cases.
5891
5892 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5893
5894 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5895
5896 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5897 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5898 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5899 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5900 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5901 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5902 aarch64_reinterpretv2df<mode>): Delete.
5903
5904 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5905
5906 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5907 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5908 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5909 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5910 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5911 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5912 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5913 vreinterpret_u32_f64): Use cast.
5914
5915 * config/aarch64/iterators.md (VD_RE): Delete.
5916
5917 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5918
5919 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5920 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5921 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5922 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5923 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5924 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5925 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5926 Replace inline assembler with __aarch64_vset_lane_any.
5927
5928 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
5929
5930 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5931 types.
5932 (vmull_high_lane_s32): Likewise.
5933 (vmull_high_lane_u16): Likewise.
5934 (vmull_high_lane_u32): Likewise.
5935
5936 2014-09-11 Jason Merrill <jason@redhat.com>
5937
5938 PR c++/58678
5939 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5940
5941 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5942
5943 PR target/63223
5944 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5945 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5946 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5947
5948 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5950 Anna Tikhonova <anna.tikhonova@intel.com>
5951 Ilya Tocar <ilya.tocar@intel.com>
5952 Andrey Turetskiy <andrey.turetskiy@intel.com>
5953 Ilya Verbin <ilya.verbin@intel.com>
5954 Kirill Yukhin <kirill.yukhin@intel.com>
5955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5956
5957 * config/i386/sse.md
5958 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5959 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5960 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5961 New.
5962 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5963 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5964 iterator.
5965 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5966 New.
5967 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5968 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5969 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5970 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5971 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5972 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5973 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5974 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5975 iterator.
5976 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5977 New.
5978 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5979 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5980 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5981
5982 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5983
5984 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5985 to access removed nodes.
5986
5987 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5988
5989 PR tree-optimization/63186
5990 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5991 (mark_nonssa_use): Likewise.
5992 (verify_non_ssa_vars): Verify all header blocks for label
5993 definitions.
5994
5995 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5997 Anna Tikhonova <anna.tikhonova@intel.com>
5998 Ilya Tocar <ilya.tocar@intel.com>
5999 Andrey Turetskiy <andrey.turetskiy@intel.com>
6000 Ilya Verbin <ilya.verbin@intel.com>
6001 Kirill Yukhin <kirill.yukhin@intel.com>
6002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6003
6004 * config/i386/sse.md
6005 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
6006 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
6007 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
6008 "<avx2_avx512f>_permvar<mode><mask_name>".
6009 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
6010 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
6011 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
6012 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
6013 Ditto.
6014 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
6015 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
6016 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
6017 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
6018
6019 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6020
6021 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
6022 V2DF, V4SF, DF, and DI modes.
6023 (vsx_fmav2df2): Likewise.
6024 (vsx_float_fix_<mode>2): Likewise.
6025 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
6026
6027 2014-09-10 Xinliang David Li <davidxl@google.com>
6028
6029 PR target/63209
6030 * config/arm/arm.md (movcond_addsi): Handle case where source
6031 and target operands are the same.
6032
6033 2014-09-10 David Malcolm <dmalcolm@redhat.com>
6034
6035 * final.c (this_is_asm_operands): Strengthen this variable from
6036 rtx to const rtx_insn *.
6037 * output.h (this_is_asm_operands): Likewise.
6038 * rtl-error.c (location_for_asm): Strengthen param "insn" from
6039 const_rtx to const rtx_insn *.
6040 (diagnostic_for_asm): Likewise.
6041 * rtl-error.h (error_for_asm): Likewise.
6042 (warning_for_asm): Likewise.
6043
6044 2014-09-10 David Malcolm <dmalcolm@redhat.com>
6045
6046 * genextract.c (print_header): When writing out insn_extract to
6047 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
6048 * recog.h (insn_extract): Strengthen the param from rtx to
6049 rtx_insn *.
6050
6051 2014-09-10 Mike Stump <mikestump@comcast.net>
6052
6053 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
6054 8.6.1.
6055
6056 2014-09-10 Martin Jambor <mjambor@suse.cz>
6057
6058 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
6059 (analyze): Do not set analyze flag if expand_thunk returns false;.
6060 (create_wrapper): Likewise.
6061 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
6062
6063 2014-09-10 Martin Jambor <mjambor@suse.cz>
6064
6065 PR ipa/61654
6066 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
6067 new decl properly. Analyze the new thunk if it is expanded.
6068
6069 2014-09-10 Andreas Schwab <schwab@suse.de>
6070
6071 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
6072 [USED_FOR_TARGET]: Define.
6073
6074 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
6075
6076 * config/mips/mips.c (mips_secondary_reload_class): Handle
6077 regno < 0 case.
6078
6079 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
6080
6081 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
6082 assignment.
6083
6084 2014-09-10 Jakub Jelinek <jakub@redhat.com>
6085
6086 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
6087 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
6088 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
6089 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
6090 flag_delete_null_pointer_checks for them.
6091 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
6092 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
6093 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
6094 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
6095 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
6096 stmt's iterator.
6097 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
6098 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
6099 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
6100 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
6101 * doc/invoke.texi (-fsanitize=nonnull-attribute,
6102 -fsanitize=returns-nonnull-attribute): Document.
6103
6104 * ubsan.h (struct ubsan_mismatch_data): Removed.
6105 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6106 * ubsan.c (ubsan_source_location): For unknown locations,
6107 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
6108 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
6109 Allow more than one location and arbitrary extra arguments passed
6110 in ... instead of through MISMATCH pointer.
6111 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
6112 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
6113 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
6114 callers.
6115
6116 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6117 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6118 Anna Tikhonova <anna.tikhonova@intel.com>
6119 Ilya Tocar <ilya.tocar@intel.com>
6120 Andrey Turetskiy <andrey.turetskiy@intel.com>
6121 Ilya Verbin <ilya.verbin@intel.com>
6122 Kirill Yukhin <kirill.yukhin@intel.com>
6123 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6124
6125 * config/i386/sse.md
6126 (define_mode_iterator VI48F): New.
6127 (define_insn "<avx512>_compress<mode>_mask"): Rename from
6128 "avx512f_compress<mode>_mask" and update mode iterator.
6129 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
6130 "avx512f_compressstore<mode>_mask" and update mode iterator.
6131 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
6132 "avx512f_expand<mode>_maskz" and update mode iterator.
6133 (define_insn "<avx512>_expand<mode>_mask"): Rename from
6134 "avx512f_expand<mode>_mask" and update mode iterator.
6135
6136 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6137 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6138 Anna Tikhonova <anna.tikhonova@intel.com>
6139 Ilya Tocar <ilya.tocar@intel.com>
6140 Andrey Turetskiy <andrey.turetskiy@intel.com>
6141 Ilya Verbin <ilya.verbin@intel.com>
6142 Kirill Yukhin <kirill.yukhin@intel.com>
6143 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6144
6145 * config/i386/i386.c
6146 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
6147 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
6148 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
6149 avx512dq_rangepv4sf_mask.
6150 * config/i386/sse.md
6151 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
6152 UNSPEC_RANGE.
6153 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
6154 (define_insn "reduces<mode>"): Ditto.
6155 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6156 Ditto.
6157 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
6158 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
6159 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
6160
6161 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6162 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6163 Anna Tikhonova <anna.tikhonova@intel.com>
6164 Ilya Tocar <ilya.tocar@intel.com>
6165 Andrey Turetskiy <andrey.turetskiy@intel.com>
6166 Ilya Verbin <ilya.verbin@intel.com>
6167 Kirill Yukhin <kirill.yukhin@intel.com>
6168 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6169
6170 * config/i386/i386.c
6171 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
6172 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
6173 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
6174 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
6175 avx512vl_getmantv2df_mask.
6176 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
6177 avx512f_vgetmantv4sf_round.
6178 * config/i386/sse.md
6179 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
6180 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
6181 mode iterator.
6182 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
6183 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
6184 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
6185 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
6186 iterator..
6187 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
6188 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
6189 update mode iterator.
6190 (define_expand
6191 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
6192 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
6193 mode iterator.
6194 (define_insn
6195 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
6196 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
6197 update mode iterator.
6198 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
6199 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
6200 iterator..
6201 (define_insn
6202 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
6203 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
6204 mode iterator..
6205 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
6206 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
6207 update mode iterator.
6208 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
6209 "avx512f_getmant<mode><round_saeonly_name>".
6210
6211 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
6212
6213 PR ipa/63166
6214 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
6215
6216 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6217 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6218 Anna Tikhonova <anna.tikhonova@intel.com>
6219 Ilya Tocar <ilya.tocar@intel.com>
6220 Andrey Turetskiy <andrey.turetskiy@intel.com>
6221 Ilya Verbin <ilya.verbin@intel.com>
6222 Kirill Yukhin <kirill.yukhin@intel.com>
6223 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6224
6225 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
6226 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
6227 (define_mode_iterator FMAMODE_AVX512): New.
6228 (define_mode_iterator FMAMODE): Remove conditions.
6229 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
6230 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
6231 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
6232 mode iterator.
6233 (define_mode_iterator FMAMODE_NOVF512): Remove.
6234 (define_insn "*fma_fmadd_<mode>"): Rename from
6235 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
6236 FMAMODE mode iterator.
6237 (define_mode_iterator VF_SF_AVX512VL): New.
6238 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
6239 Use VF_SF_AVX512VL mode iterator.
6240 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
6241 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6242 iterator.
6243 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
6244 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6245 iterator.
6246 (define_insn "*fma_fmsub_<mode>"): Rename from
6247 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
6248 FMAMODE mode iterator.
6249 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
6250 Use VF_SF_AVX512VL mode iterator.
6251 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
6252 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6253 iterator.
6254 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
6255 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6256 iterator.
6257 (define_insn "*fma_fnmadd_<mode>"): Rename from
6258 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
6259 use FMAMODE mode iterator.
6260 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
6261 Use VF_SF_AVX512VL mode iterator.
6262 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
6263 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6264 iterator.
6265 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
6266 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6267 iterator.
6268 (define_insn "*fma_fnmsub_<mode>"): Rename from
6269 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
6270 FMAMODE mode iterator.
6271 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
6272 Use VF_SF_AVX512VL mode iterator.
6273 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
6274 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6275 iterator.
6276 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
6277 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6278 iterator.
6279 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
6280 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
6281 use VF_AVX512VL mode iterator.
6282 (define_insn "*fma_fmaddsub_<mode>"): Rename from
6283 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
6284 remove subst usage.
6285 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
6286 Use VF_SF_AVX512VL mode iterator.
6287 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
6288 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6289 iterator.
6290 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
6291 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6292 iterator.
6293 (define_insn "*fma_fmsubadd_<mode>"): Rename from
6294 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
6295 remove usage of subst.
6296 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
6297 Use VF_SF_AVX512VL mode iterator.
6298 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
6299 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6300 iterator.
6301 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
6302 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6303 iterator.
6304
6305 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
6306
6307 Revert r213751:
6308 * calls.c (precompute_arguments): Check
6309 promoted_for_signed_and_unsigned_p and set the promoted mode.
6310 (promoted_for_signed_and_unsigned_p): New function.
6311 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6312 and set the promoted mode.
6313 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6314 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6315 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6316
6317 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6318
6319 * opth-gen.awk: Generate mapping from cpp message reasons to the
6320 options that enable them.
6321 * doc/options.texi (CppReason): Document.
6322
6323 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6324
6325 * doc/invoke.texi (Wnormalized=): Update.
6326
6327 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
6328
6329 PR target/63195
6330 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
6331 operands. Split off the constant operand alternative to ...
6332 (*bool<mode>3_imm): New.
6333
6334 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6335
6336 * rtl.h (single_set_2): Strengthen first param from const_rtx to
6337 const rtx_insn *, and move prototype to above...
6338 (single_set): ...this. Convert this from a macro to an inline
6339 function, enforcing the requirement that the param is a const
6340 rtx_insn *.
6341 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
6342
6343 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
6344 Strengthen both params from rtx to rtx_insn *.
6345 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6346 Likewise; introduce locals "producer_set", "consumer_set", using
6347 them in place of "producer" and "consumer" when dealing with SET
6348 rather than insn.
6349 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
6350 when invoking single_set in region guarded by INSN_P.
6351 (avr_out_bitop): Likewise.
6352 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
6353 region guarded by GET_CODE check, using methods to strengthen
6354 local "this_insn" from rtx to rtx_insn *, and for clarity.
6355 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
6356 Strengthen local "insn" from rtx to rtx_insn *.
6357 (define_insn_and_split "xload<mode>_A"): Likewise.
6358 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
6359 "insn".
6360 (find_load): Likewise for return type.
6361 (workaround_speculation): Likewise for both locals named
6362 "load_insn".
6363 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
6364 local "cc0_user".
6365 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
6366 for local "prev".
6367 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
6368 param 2.
6369 * config/h8300/h8300.c (notice_update_cc): Likewise.
6370 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
6371 "insn" and "dep_insn".
6372 (exact_store_load_dependency): Likewise for both params.
6373 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
6374 since this now clashes with inline function. Instead, delay
6375 calling single_set until the point where its needed, and then
6376 assign the result to "compare_set" and rework the conditional that
6377 follows.
6378 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
6379 local "last" from rtx to rtx_insn *.
6380 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
6381 second param.
6382 (mips_store_data_bypass_p): Likewise for both params.
6383 * config/mips/mips.c (mips_load_store_insns): Likewise for second
6384 param.
6385 (mips_store_data_bypass_p): Likewise for both params.
6386 (mips_orphaned_high_part_p): Likewise for param "insn".
6387 * config/mn10300/mn10300.c (extract_bundle): Likewise.
6388 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
6389 Introduce local rtx "insn2_pat".
6390 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
6391 "ninsn".
6392 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
6393 Introduce local rtx "set", using it in place of "insn" for the
6394 result of single_set. This appears to fix a bug, since the call
6395 to find_regno_note on a SET does nothing.
6396 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
6397 params from rtx to rtx_insn *.
6398 (set_to_load_agen): Likewise.
6399 * config/s390/s390.c (s390_label_align): Likewise for local
6400 "prev_insn". Introduce new rtx locals "set" and "src", using
6401 them in place of "prev_insn" for the results of single_set
6402 and SET_SRC respectively.
6403 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
6404 Introduce new rtx local "set" using in place of "jump" for the
6405 result of single_set. Use SET_SRC (set) rather than plain
6406 XEXP (set, 1).
6407 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
6408 rtx to rtx_insn *.
6409 (noncall_uses_reg): Likewise.
6410 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
6411 guarded by GET_CODE check, using its methods for clarity, and to
6412 enable strengthening local "this_insn" from rtx to rtx_insn *.
6413 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
6414 "insn" from rtx to rtx_insn *.
6415 (define_expand "umulhisi3"): Likewise.
6416 (define_expand "smulsi3_highpart"): Likewise.
6417 (define_expand "umulsi3_highpart"): Likewise.
6418 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6419 local "after". Replace GET_CODE check with a dyn_cast,
6420 introducing new local rtx_sequence * "seq", using insn method for
6421 typesafety.
6422
6423 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
6424 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
6425 place of "insn" once we're dealing with patterns rather than the
6426 input insn.
6427 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
6428 (scan_trace): Likewise for local "elt", updating lookups within
6429 sequence to use insn method rather than element method.
6430 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
6431 to rtx_insn *.
6432 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
6433 * ifcvt.c (noce_try_abs): Likewise for local "insn".
6434 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
6435 invoking single_set.
6436 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
6437 "insn" from rtx to rtx_insn *.
6438 (skip_usage_debug_insns): Likewise for return type, adding a
6439 checked cast.
6440 (check_secondary_memory_needed_p): Likewise for local "insn".
6441 (inherit_reload_reg): Likewise.
6442 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
6443 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
6444 checked casts.
6445 (store_data_bypass_p): Likewise for both params.
6446 (if_test_bypass_p): Likewise.
6447 * recog.h (store_data_bypass_p): Likewise for both params.
6448 (if_test_bypass_p): Likewise.
6449 * reload.c (find_equiv_reg): Likewise for local "where".
6450 * reorg.c (delete_jump): Likewise for param "insn".
6451 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
6452 to const rtx_insn *.
6453 * store-motion.c (replace_store_insn): Likewise for param "del".
6454 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
6455 and use its methods for clarity, and to strengthen local "del"
6456 from rtx to rtx_insn *.
6457 (build_store_vectors): Use insn method of "st" when calling
6458 replace_store_insn for typesafety and clarity.
6459
6460 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6461
6462 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
6463 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
6464 on how to make it legal in future.
6465
6466 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6467
6468 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
6469 to rtx_insn *.
6470 (restinsn): Likewise.
6471 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6472 Likewise for param.
6473 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
6474 Likewise.
6475 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
6476 first param.
6477 (arc_hazard): Likewise for both params.
6478 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
6479 checked casts to rtx_sequence * and uses of the insn method for
6480 type-safety.
6481 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
6482 (arc_adjust_insn_length): Likewise for param "insn".
6483 (struct insn_length_parameters_s): Likewise for first param of
6484 "get_variants" callback field.
6485 (arc_get_insn_variants): Likewise for first param and local
6486 "inner". Replace a check of GET_CODE with a dyn_cast to
6487 rtx_sequence *, using methods for type-safety and clarity.
6488 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
6489 rtx_sequence * and uses of the insn method for type-safety when
6490 invoking arc_adjust_insn_length.
6491 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
6492 for param.
6493 (arm_address_offset_is_imm): Likewise.
6494 (struct tune_params): Likewise for params 1 and 3 of the
6495 "sched_adjust_cost" callback field.
6496 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
6497 params 1 and 3 ("insn" and "dep").
6498 (xscale_sched_adjust_cost): Likewise.
6499 (fa726te_sched_adjust_cost): Likewise.
6500 (cortexa7_older_only): Likewise for param "insn".
6501 (cortexa7_younger): Likewise.
6502 (arm_attr_length_move_neon): Likewise.
6503 (arm_address_offset_is_imm): Likewise.
6504 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
6505 * config/avr/avr.c (avr_notice_update_cc): Likewise.
6506 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
6507 (workaround_speculation): Likewise for local "last_condjump".
6508 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
6509 (shadow_or_blockage_p): Likewise.
6510 (get_unit_reqs): Likewise.
6511 (get_unit_operand_masks): Likewise.
6512 (c6x_registers_update): Likewise.
6513 (returning_call_p): Likewise.
6514 (can_use_callp): Likewise.
6515 (convert_to_callp): Likewise.
6516 (find_last_same_clock): Likwise for local "t".
6517 (reorg_split_calls): Likewise for local "shadow".
6518 (hwloop_pattern_reg): Likewise for param "insn".
6519 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
6520 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
6521 (frv_extract_membar): Likewise.
6522 (frv_optimize_membar_local): Strengthen param "last_membar" from
6523 rtx * to rtx_insn **.
6524 (frv_optimize_membar_global): Strengthen param "membar" from rtx
6525 to rtx_insn *.
6526 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
6527 to rtx_insn **.
6528 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
6529 both params from rtx to rtx_insn *.
6530 (ia64_ld_address_bypass_p): Likewise.
6531 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
6532 "insn".
6533 (ia64_safe_type): Likewise.
6534 (group_barrier_needed): Likewise.
6535 (safe_group_barrier_needed): Likewise.
6536 (ia64_single_set): Likewise.
6537 (is_load_p): Likewise.
6538 (record_memory_reference): Likewise.
6539 (get_mode_no_for_insn): Likewise.
6540 (important_for_bundling_p): Likewise.
6541 (unknown_for_bundling_p): Likewise.
6542 (ia64_st_address_bypass_p): Likewise for both params.
6543 (ia64_ld_address_bypass_p): Likewise.
6544 (expand_vselect): Introduce new local rtx_insn * "insn", using it
6545 in place of rtx "x" after the emit_insn call.
6546 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
6547 Strengthen param from rtx to rtx_insn *.
6548 (ix86_agi_dependent): Likewise for both params.
6549 (ix86_attr_length_immediate_default): Likewise for param 1.
6550 (ix86_attr_length_address_default): Likewise for param.
6551 (ix86_attr_length_vex_default): Likewise for param 1.
6552 * config/i386/i386.c (ix86_attr_length_immediate_default):
6553 Likewise for param "insn".
6554 (ix86_attr_length_address_default): Likewise.
6555 (ix86_attr_length_vex_default): Likewise.
6556 (ix86_agi_dependent): Likewise for both params.
6557 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
6558 (vselect_insn): Likewise for this variable.
6559 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
6560 for param 1.
6561 (m68k_sched_attr_opy_type): Likewise.
6562 * config/m68k/m68k.c (sched_get_operand): Likewise.
6563 (sched_attr_op_type): Likewise.
6564 (m68k_sched_attr_opx_type): Likewise.
6565 (m68k_sched_attr_opy_type): Likewise.
6566 (sched_get_reg_operand): Likewise.
6567 (sched_get_mem_operand): Likewise.
6568 (m68k_sched_address_bypass_p): Likewise for both params.
6569 (sched_get_indexed_address_scale): Likewise.
6570 (m68k_sched_indexed_address_bypass_p): Likewise.
6571 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6572 (m68k_sched_indexed_address_bypass_p): Likewise.
6573 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6574 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6575 removing another.
6576 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6577 params from rtx to rtx_insn *.
6578 (mips_fmadd_bypass): Likewise.
6579 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6580 (mips_linked_madd_p): Likewise.
6581 (mips_macc_chains_last_hilo): Likewise for this variable.
6582 (mips_macc_chains_record): Likewise for param.
6583 (vr4130_last_insn): Likewise for this variable.
6584 (vr4130_swap_insns_p): Likewise for both params.
6585 (mips_ls2_variable_issue): Likewise for param.
6586 (mips_need_noat_wrapper_p): Likewise for param "insn".
6587 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6588 in place of "x" after the emit_insn.
6589 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6590 params from rtx to rtx_insn *.
6591 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6592 (pa_combine_instructions): Introduce local "par" for result of
6593 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6594 to make_insn_raw.
6595 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6596 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6597 (rl78_alloc_physical_registers_op1): Likewise.
6598 (rl78_alloc_physical_registers_op2): Likewise.
6599 (rl78_alloc_physical_registers_ro1): Likewise.
6600 (rl78_alloc_physical_registers_cmp): Likewise.
6601 (rl78_alloc_physical_registers_umul): Likewise.
6602 (rl78_alloc_address_registers_macax): Likewise.
6603 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6604 * config/s390/predicates.md (execute_operation): Likewise for
6605 local "insn".
6606 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6607 params.
6608 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6609 (addr_generation_dependency_p): Likewise for param "insn".
6610 (s390_agen_dep_p): Likewise for both params.
6611 (s390_fpload_toreg): Likewise for param "insn".
6612 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6613 * config/sh/sh.c (sh_loop_align): Likewise for param and local
6614 "next".
6615 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6616 * config/sh/sh_treg_combine.cc
6617 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6618 and local "i".
6619 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6620 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6621 "and_insn", "load", "shift".
6622 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6623 "insn".
6624 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6625 for XEXP (note, 0) of the REG_CC_SETTER note.
6626 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6627 rtx_insn *, eliminating a checked cast made redundant by this.
6628 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6629 to rtx_insn *.
6630 * genattr.c (main): When writing out the prototype to
6631 const_num_delay_slots, strengthen the param from rtx to
6632 rtx_insn *.
6633 * genattrtab.c (write_const_num_delay_slots): Likewise when
6634 writing out the implementation of const_num_delay_slots.
6635 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6636 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6637 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6638 favor of new rtx locals "src" and "set" and new local rtx_insn *
6639 "insn" and "seq".
6640 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6641 to rtx_insn *.
6642 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6643 locals "cond", "if_then_else", "set" and new rtx_insn * locals
6644 "insn" and "seq".
6645 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6646 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
6647 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
6648 the top-level scope, replacing with new more tightly-scoped rtx
6649 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6650 "new_insn", "copy_of_insn_b", and make local rtx "set" more
6651 tightly-scoped.
6652 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6653 rtx_insn *.
6654 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6655 "move_insn".
6656 (ira_setup_alts): Likewise for param "insn".
6657 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6658 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6659 and an rtx_insn *.
6660 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6661 new more-tightly scoped rtx locals "add3_insn", "insn",
6662 "add2_insn" and rtx_insn * "move_insn".
6663 * postreload-gcse.c (eliminate_partially_redundant_load): Add
6664 checked cast on result of gen_move_insn when invoking
6665 extract_insn.
6666 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6667 rtx_insn *.
6668 (verify_changes): Add a checked cast on "object" when invoking
6669 insn_invalid_p.
6670 (extract_insn_cached): Strengthen param "insn" from rtx to
6671 rtx_insn *.
6672 (extract_constrain_insn_cached): Likewise.
6673 (extract_insn): Likewise.
6674 * recog.h (insn_invalid_p): Likewise for param 1.
6675 (recog_memoized): Likewise for param.
6676 (extract_insn): Likewise.
6677 (extract_constrain_insn_cached): Likewise.
6678 (extract_insn_cached): Likewise.
6679 * reload.c (can_reload_into): Likewise for local "test_insn".
6680 * reload.h (cleanup_subreg_operands): Likewise for param.
6681 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6682 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6683 result of emit_insn. Remove a checked cast made redundant by this
6684 change.
6685 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6686 rtx to rtx_insn *.
6687 * sel-sched.c (get_reg_class): Likewise.
6688
6689 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
6690 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6691
6692 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6693 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6694 Define.
6695 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6696
6697 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6698
6699 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6700 const rtx_insn *, and from rtx to rtx_insn * for the other
6701 overloaded variant.
6702 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6703 INSN_LOCATION, since we know INSN_P holds.
6704 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6705 (insn_file): Likewise.
6706 (insn_scope): Likewise.
6707 (insn_location): Likewise.
6708
6709 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6710 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6711 for the result of gen_load_const_gp.
6712 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6713 param from rtx to rtx_insn *.
6714 * config/rs6000/rs6000.c (output_call): Likewise.
6715 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6716 introducing a checked cast to rtx_sequence * and use of the insn
6717 method.
6718 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6719 from rtx to rtx_insn *.
6720 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6721 (insn_line): Likewise.
6722 (insn_file): Likewise.
6723 (insn_location): Likewise.
6724 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6725 from rtx to rtx_insn *.
6726 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6727 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6728 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6729 via a checked cast.
6730 * reorg.c (relax_delay_slots): Strengthen locals named "after"
6731 from rtx to rtx_insn *; use methods of "pat" for type-safety.
6732
6733 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6734
6735 * combine.c (try_combine): Eliminate checked cast on result of
6736 gen_rtx_INSN.
6737 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6738 autogenerated one by strengthening the return type and params 2 and 3
6739 from rtx to rtx_insn *, and by naming the params.
6740 * gengenrtl.c (special_rtx): Add INSN to those that are
6741 special-cased.
6742 * rtl.h (gen_rtx_INSN): New prototype.
6743
6744 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6745
6746 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6747 than NULL_RTX.
6748 (no_equiv): Likewise.
6749 (update_equiv_regs): Likewise.
6750 (setup_reg_equiv): Likewise. Strengthen locals "elem",
6751 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6752 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
6753 clarity.
6754 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6755 from rtx to rtx_insn_list *.
6756 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6757 rtx_insn_list * and use methods for clarity and typesafety.
6758 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6759 "list".
6760 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
6761 redundant check on INSN_P (insns): this cannot hold, as "insns" is
6762 an INSN_LIST, not an insn.
6763 (reverse_equiv_p): Strengthen local "insns" from rtx to
6764 rtx_insn_list * and use methods for clarity and typesafety.
6765 (contains_reloaded_insn_p): Likewise for local "list".
6766
6767 2014-09-09 Jiong Wang <jiong.wang@arm.com>
6768
6769 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6770 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6771 (arm_builtin_vectorized_function): Likewise.
6772 * config/arm/arm_neon_builtins.def: New macro for copysignf.
6773 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6774
6775 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
6776
6777 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6778 * builtins.h (default_target_builtins): Likewise.
6779 * gcse.h (default_target_gcse): Likewise.
6780 * target-globals.h (target_globals): Add a destructor. Convert
6781 void-pointer fields back to their real type and change from
6782 GTY((atomic)) to GTY((skip)).
6783 (restore_target_globals): Remove casts accordingly.
6784 * target-globals.c (save_target_globals): Use XCNEW rather than
6785 ggc_internal_cleared_alloc to allocate non-GC structures.
6786 Use ggc_cleared_alloc to allocate the target_globals structure
6787 itself.
6788 (target_globals::~target_globals): Define.
6789
6790 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6791
6792 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6793 mnemonic instead of fldmfdd.
6794 * config/arm/arm.c (vfp_output_fstmd): Rename to...
6795 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
6796 Output vpush when address register is SP.
6797 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6798 (vfp_output_vstmd): ... This.
6799 * config/arm/vfp.md (push_multi_vfp): Update call to
6800 vfp_output_vstmd.
6801
6802 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6803
6804 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6805
6806 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6807
6808 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6809 (*sqrtdf2_vfp): Likewise.
6810 (*cmpsf_vfp): Likewise.
6811 (*cmpsf_trap_vfp): Likewise.
6812 (*cmpdf_vfp): Likewise.
6813 (*cmpdf_trap_vfp): Likewise.
6814
6815 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6816
6817 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6818 (*truncdfsf2_vfp): Likewise.
6819 (*truncsisf2_vfp): Likewise.
6820 (*truncsidf2_vfp): Likewise.
6821 (fixuns_truncsfsi2): Likewise.
6822 (fixuns_truncdfsi2): Likewise.
6823 (*floatsisf2_vfp): Likewise.
6824 (*floatsidf2_vfp): Likewise.
6825 (floatunssisf2): Likewise.
6826 (floatunssidf2): Likewise.
6827
6828 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6829
6830 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6831 (*muldf3_vfp): Likewise.
6832 (*mulsf3negsf_vfp): Likewise.
6833 (*muldf3negdf_vfp): Likewise.
6834 (*mulsf3addsf_vfp): Likewise.
6835 (*muldf3adddf_vfp): Likewise.
6836 (*mulsf3subsf_vfp): Likewise.
6837 (*muldf3subdf_vfp): Likewise.
6838 (*mulsf3negsfaddsf_vfp): Likewise.
6839 (*fmuldf3negdfadddf_vfp): Likewise.
6840 (*mulsf3negsfsubsf_vfp): Likewise.
6841 (*muldf3negdfsubdf_vfp): Likewise.
6842
6843 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6844
6845 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6846 (*absdf2_vfp): Likewise.
6847 (*negsf2_vfp): Likewise.
6848 (*negdf2_vfp): Likewise.
6849 (*addsf3_vfp): Likewise.
6850 (*adddf3_vfp): Likewise.
6851 (*subsf3_vfp): Likewise.
6852 (*subdf3_vfp): Likewise.
6853 (*divsf3_vfp): Likewise.
6854 (*divdf3_vfp): Likewise.
6855
6856 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6857
6858 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6859 multiple.
6860 (arm_print_operand): Don't convert real values to decimal
6861 representation in default case.
6862 (fp_immediate_constant): Delete.
6863 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6864 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6865 syntax.
6866 (*thumb2_movsi_vfp): Likewise.
6867 (*movdi_vfp): Likewise.
6868 (*movdi_vfp_cortexa8): Likewise.
6869 (*movhf_vfp_neon): Likewise.
6870 (*movhf_vfp): Likewise.
6871 (*movsf_vfp): Likewise.
6872 (*thumb2_movsf_vfp): Likewise.
6873 (*movdf_vfp): Likewise.
6874 (*thumb2_movdf_vfp): Likewise.
6875 (*movsfcc_vfp): Likewise.
6876 (*thumb2_movsfcc_vfp): Likewise.
6877 (*movdfcc_vfp): Likewise.
6878 (*thumb2_movdfcc_vfp): Likewise.
6879
6880 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
6881
6882 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6883 (-mtune): Likewise.
6884 (-mcpu): Likewise.
6885
6886 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6887
6888 PR target/61749
6889 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6890 Use qualifier_immediate for last operand. Rename to...
6891 (aarch64_types_ternop_lane_qualifiers): ... This.
6892 (TYPES_QUADOP): Rename to...
6893 (TYPES_TERNOP_LANE): ... This.
6894 (aarch64_simd_expand_args): Return const0_rtx when encountering user
6895 error. Change return of 0 to return of NULL_RTX.
6896 (aarch64_crc32_expand_builtin): Likewise.
6897 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6898 ICE when expanding unknown builtin.
6899 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6900 TERNOP_LANE qualifiers.
6901 (sqdmlsl_lane): Likewise.
6902 (sqdmlal_laneq): Likewise.
6903 (sqdmlsl_laneq): Likewise.
6904 (sqdmlal2_lane): Likewise.
6905 (sqdmlsl2_lane): Likewise.
6906 (sqdmlal2_laneq): Likewise.
6907 (sqdmlsl2_laneq): Likewise.
6908
6909 2014-09-09 Nick Clifton <nickc@redhat.com>
6910
6911 * doc/invoke.texi (Optimization Options): Add missing @gol to the
6912 end of a line.
6913 (S/390 and zSeries Options): Remove superfluous word from the
6914 description of the -mhotpatch option.
6915
6916 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
6917
6918 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6919 * ira.c: #include "shrink-wrap.h"
6920 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6921 * ifcvt.c: #include "shrink-wrap.h"
6922 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6923
6924 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
6925
6926 * common/config/picochip/picochip-common.c: Remove.
6927 * config.gcc: Remove support for picochip.
6928 * config/picochip/constraints.md: Remove.
6929 * config/picochip/dfa_space.md: Remove.
6930 * config/picochip/dfa_speed.md: Remove.
6931 * config/picochip/picochip-protos.h: Remove.
6932 * config/picochip/picochip.c: Remove.
6933 * config/picochip/picochip.h: Remove.
6934 * config/picochip/picochip.md: Remove.
6935 * config/picochip/picochip.opt: Remove.
6936 * config/picochip/predicates.md: Remove.
6937 * config/picochip/t-picochip: Remove.
6938 * doc/md.texi: Don't document picochi.
6939
6940 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6941
6942 * basic-block.h (control_flow_insn_p): Strengthen param from
6943 const_rtx to const rtx_insn *.
6944 * cfgbuild.c (control_flow_insn_p): Likewise.
6945
6946 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6947
6948 * gcse.c (modify_mem_list): Strengthen this variable from
6949 vec<rtx> * to vec<rtx_insn *> *.
6950 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6951 vec<rtx_insn *>.
6952 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6953 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6954 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6955 rtx_insn *.
6956 (record_last_set_info): Likewise for local "last_set_insn".
6957
6958 2014-09-08 DJ Delorie <dj@redhat.com>
6959
6960 * doc/invoke.texi (MSP430 Options): Add -minrt.
6961
6962 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6963
6964 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6965 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6966 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6967 handling SH_SPLAT.
6968 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6969 of extracted lane.
6970 (adjust_splat): New function.
6971 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6972 (dump_swap_insn_table): Add case for SH_SPLAT.
6973
6974 2014-09-08 Richard Biener <rguenther@suse.de>
6975
6976 PR ipa/63196
6977 * tree-inline.c (copy_loops): The source loop header should
6978 always be non-NULL.
6979 (tree_function_versioning): If loops need fixup after removing
6980 unreachable blocks fix them.
6981 * omp-low.c (simd_clone_adjust): Do not add incr block to
6982 loop under construction.
6983
6984 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6985
6986 * config/aarch64/aarch64-builtins.c
6987 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6988
6989 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6990
6991 * config/i386/cygming.h (TF_SIZE): Remove.
6992 * config/i386/darwin.h (TF_SIZE): Remove.
6993 * config/i386/dragonfly.h (TF_SIZE): Remove.
6994 * config/i386/freebsd.h (TF_SIZE): Remove.
6995 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6996 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6997 * config/i386/sol2.h (TF_SIZE): Remove.
6998 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6999 * config/ia64/linux.h (TF_SIZE): Remove.
7000 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
7001 * doc/tm.texi: Regenerate.
7002 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
7003
7004 2014-09-08 Joseph Myers <joseph@codesourcery.com>
7005
7006 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
7007 Remove.
7008 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
7009 Remove.
7010 * doc/tm.texi: Regenerate.
7011 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
7012 Poison.
7013 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
7014 * config/cris/cris.h (__make_dp): Remove.
7015
7016 2014-09-08 Richard Biener <rguenther@suse.de>
7017
7018 PR bootstrap/63204
7019 * cfgloop.c (mark_loop_for_removal): Track former header
7020 unconditionally.
7021 * cfgloop.h (struct loop): Add former_header member unconditionally.
7022 * loop-init.c (fix_loop_structure): Enable bogus loop removal
7023 diagnostic unconditionally.
7024
7025 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
7026
7027 PR target/63190
7028 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
7029 constraint for operand0 and remove write only modifier from operand3.
7030
7031 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
7032
7033 PR rtl-optimization/62208
7034 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
7035 rather than const0_rtx in eq/ne-xor simplifications.
7036
7037 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
7038
7039 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
7040 (arc_output_mi_thunk): Likewise.
7041
7042 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
7043 arguments to silence bogus warning.
7044
7045 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
7046
7047 PR middle-end/63171
7048 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
7049
7050 2014-09-06 Tom de Vries <tom@codesourcery.com>
7051
7052 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
7053 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
7054 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7055
7056 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
7057
7058 PR target/63188
7059 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
7060 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
7061
7062 2014-09-05 Easwaran Raman <eraman@google.com>
7063
7064 PR rtl-optimization/62146
7065 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
7066 hoisted instruction unconditional.
7067
7068 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
7069
7070 PR target/63187
7071 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
7072 Do not allow any_mask_operand for operands[2].
7073 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
7074
7075 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7076
7077 * config/arc/arc.c (arc_print_operand): Use insn method of
7078 final_sequence for type-safety.
7079 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
7080 "insn" from rtx to rtx_insn *.
7081 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
7082 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7083 Likewise for locals "branch", "label".
7084 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
7085 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
7086 (same_cmp_following_p): Likewise for locals "i2", "i3".
7087 * config/sh/sh_optimize_sett_clrt.cc
7088 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
7089 param "cbranch_insn".
7090 * function.c (convert_jumps_to_returns): Likewis for local "jump".
7091 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
7092 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
7093 const rtx_insn *.
7094 (condjump_p): Likewise.
7095 (condjump_in_parallel_p): Likewise.
7096 (pc_set): Likewise.
7097 (any_uncondjump_p): Likewise.
7098 (any_condjump_p): Likewise.
7099 (condjump_label): Likewise.
7100 (returnjump_p): Strengthen param "insn" from rtx to
7101 const rtx_insn *.
7102 (onlyjump_p): Strengthen param "insn" from const_rtx to
7103 const rtx_insn *.
7104 (jump_to_label_p): Likewise.
7105 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
7106 (invert_jump): Likewise.
7107 * reorg.c (simplejump_or_return_p): Add checked cast when calling
7108 simplejump_p.
7109 (get_jump_flags): Strengthen param "insn" from rtx to
7110 const rtx_insn *.
7111 (get_branch_condition): Likewise.
7112 (condition_dominates_p): Likewise.
7113 (make_return_insns): Move declaration of local "pat" earlier, to
7114 after we've handled NONJUMP_INSN_P and non-sequences, using its
7115 methods to simplify the code and for type-safety.
7116 * rtl.h (find_constant_src): Strengthen param from const_rtx to
7117 const rtx_insn *.
7118 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
7119 (condjump_p): Strengthen param from const_rtx to
7120 const rtx_insn *.
7121 (any_condjump_p): Likewise.
7122 (any_uncondjump_p): Likewise.
7123 (pc_set): Likewise.
7124 (condjump_label): Likewise.
7125 (simplejump_p): Likewise.
7126 (returnjump_p): Likewise.
7127 (onlyjump_p): Likewise.
7128 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
7129 (invert_jump): Likewise.
7130 (condjump_in_parallel_p): Strengthen param from const_rtx to
7131 const rtx_insn *.
7132 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
7133 to const rtx_insn *.
7134 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
7135 to const rtx_insn *.
7136 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
7137
7138 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7139
7140 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
7141 above the conditional, and convert the check on GET_CODE to a
7142 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
7143 the conditional. Simplify the conditional by using methods of
7144 "trial_seq".
7145
7146 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7147
7148 * haifa-sched.c (check_clobbered_conditions): Strengthen local
7149 "link" from rtx to rtx_insn_list *, and use its methods for
7150 clarity and type-safety.
7151 (toggle_cancelled_flags): Likewise.
7152 (restore_last_backtrack_point): Likewise.
7153 (queue_to_ready): Use insn method of "link" in one place.
7154 (schedule_block): Strengthen local "link" from rtx to
7155 rtx_insn_list *, and use its methods for clarity and type-safety.
7156
7157 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7158
7159 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
7160 param "insn" from const_rtx to const rtx_insn *.
7161 (sched_get_reverse_condition_uncached): Likewise.
7162 (sched_get_condition_with_rev): Likewise.
7163 (sched_has_condition_p): Likewise.
7164 (sched_insns_conditions_mutex_p): Likewise for both params.
7165 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
7166 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
7167 (setup_insn_reg_uses): Move local "list" to be more tightly
7168 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
7169 its methods for clarity and type-safety.
7170 (sched_analyze_1): Strengthen local "pending" from rtx to
7171 rtx_insn_list *, and local "pending_mem" from rtx to
7172 rtx_expr_list *. Use methods of each for clarity and type-safety.
7173 (sched_analyze_2): Likewise.
7174 (sched_analyze_insn): Likewise.
7175
7176 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
7177 param from const_rtx to const rtx_insn *.
7178 (sched_insns_conditions_mutex_p): Likewise for both params.
7179 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
7180 param.
7181
7182 * system.h (CONST_CAST_RTX_INSN): New macro.
7183
7184 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7185
7186 * recog.c (peep2_attempt): Strengthen return type from rtx to
7187 rtx_insn *.
7188 (peep2_update_life): Likewise for params "last", "prev", removing
7189 a checked cast made redundant by this.
7190 (peephole2_optimize): Likewise for local "last".
7191
7192 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7193
7194 * basic-block.h (set_block_for_insn): Eliminate this macro in
7195 favor of...
7196 * rtl.h (set_block_for_insn): New inline function, imposing the
7197 requirement that the "insn" param is an rtx_insn *.
7198
7199 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7200
7201 * caller-save.c (setup_save_areas): Strengthen local "insn" from
7202 rtx to rtx_insn *.
7203 * final.c (get_call_reg_set_usage): Likewise for first param,
7204 eliminating a checked cast.
7205 * regs.h (get_call_reg_set_usage): Likewise for first param.
7206 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
7207 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
7208 cast, replacing references to "x" with "call_insn" where
7209 appropriate.
7210 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
7211 rtx_insn *, adding a checked cast.
7212
7213 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7214
7215 * output.h (final_scan_insn): Strengthen first param from rtx to
7216 rtx_insn *.
7217
7218 * final.c (final_scan_insn): Likewise, renaming it back from
7219 "uncast_insn" to "insn", eliminating the checked cast.
7220
7221 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
7222 "vec" with an rtx_sequence * "seq", taking a copy of
7223 "final_sequence", and using methods of "seq" for clarity, and for
7224 type-safety in the calls to final_scan_insn.
7225 * config/mips/mips.c (mips_output_conditional_branch): Use methods
7226 of "final_sequence" for clarity, and for type-safety in the call to
7227 final_scan_insn.
7228 * config/sh/sh.c (print_slot): Strengthen param from rtx to
7229 rtx_sequence * and rename from "insn" to "seq".
7230
7231 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7232
7233 * jump.c (delete_related_insns): Introduce a new local "table" by
7234 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
7235 get_labels method of "table" to simplify access to the labels in
7236 the jump table.
7237
7238 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7239
7240 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
7241 f_minmaxs, f_minmaxd types.
7242
7243 2014-09-05 Richard Biener <rguenther@suse.de>
7244
7245 * cfgloop.c (mark_loop_for_removal): Record former header
7246 when ENABLE_CHECKING.
7247 * cfgloop.h (strut loop): Add former_header member when
7248 ENABLE_CHECKING.
7249 * loop-init.c (fix_loop_structure): Sanity check loops
7250 marked for removal if they re-appeared.
7251
7252 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7253
7254 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
7255 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
7256
7257 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
7258 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
7259 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
7260 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
7261 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
7262 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
7263 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
7264 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
7265 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
7266 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
7267 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
7268 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
7269 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
7270 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
7271 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
7272 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
7273 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
7274 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
7275 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
7276 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
7277 with int{32,16,8}_t.
7278
7279 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7280
7281 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
7282 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
7283 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
7284 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
7285 Remove temporary __asm__ and reimplement.
7286
7287 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7288
7289 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
7290 handling cmge, cmgt, cmeq, cmtst.
7291
7292 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
7293 cmlt, cmgeu, cmgtu, cmtst): Remove.
7294
7295 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
7296 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
7297 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
7298 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
7299
7300 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7301
7302 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
7303 TYPES_TST): Define.
7304 (aarch64_fold_builtin): Update pattern for cmtst.
7305
7306 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
7307 Declare.
7308
7309 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
7310
7311 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
7312 Switch operands, separate out more cases, refactor.
7313
7314 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
7315
7316 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
7317 argument; rename old version to...
7318 (aarch64_const_vec_all_same_in_range_p): ...this.
7319 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
7320
7321 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
7322
7323 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7324
7325 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7326 Remove qualifier_const_pointer, update comment.
7327
7328 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7329
7330 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
7331
7332 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7333
7334 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
7335 varargs with pointer parameter.
7336 (aarch64_simd_expand_builtin): pass pointer into previous.
7337
7338 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7339
7340 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
7341 alus_ext.
7342
7343 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7344
7345 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
7346 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
7347 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
7348 Replace temporary asm with call to builtin.
7349 (vrbit_p8, vrbitq_p8): New functions.
7350
7351 2014-09-05 Richard Biener <rguenther@suse.de>
7352
7353 * cfgloop.c (mark_loop_for_removal): New function.
7354 * cfgloop.h (mark_loop_for_removal): Declare.
7355 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
7356 (merge_blocks): Likewise.
7357 (duplicate_block): Likewise.
7358 * except.c (sjlj_emit_dispatch_table): Likewise.
7359 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
7360 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
7361 (thread_through_loop_header): Likewise.
7362
7363 2014-09-05 Richard Biener <rguenther@suse.de>
7364
7365 PR middle-end/63148
7366 * fold-const.c (try_move_mult_to_index): Remove.
7367 (fold_binary_loc): Do not call it.
7368 * tree-data-ref.c (dr_analyze_indices): Strip conversions
7369 from the base object again.
7370
7371 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
7372
7373 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
7374 DImode.
7375
7376 2014-09-05 Bin Cheng <bin.cheng@arm.com>
7377
7378 PR target/55701
7379 * config/arm/arm.md (setmem): New pattern.
7380 * config/arm/arm-protos.h (struct tune_params): New fields.
7381 (arm_gen_setmem): New prototype.
7382 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7383 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7384 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7385 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7386 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7387 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7388 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7389 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7390 (arm_const_inline_cost): New function.
7391 (arm_block_set_max_insns): New function.
7392 (arm_block_set_non_vect_profit_p): New function.
7393 (arm_block_set_vect_profit_p): New function.
7394 (arm_block_set_unaligned_vect): New function.
7395 (arm_block_set_aligned_vect): New function.
7396 (arm_block_set_unaligned_non_vect): New function.
7397 (arm_block_set_aligned_non_vect): New function.
7398 (arm_block_set_vect, arm_gen_setmem): New functions.
7399
7400 2014-09-05 Bin Cheng <bin.cheng@arm.com>
7401
7402 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
7403
7404 2014-09-05 Bin Cheng <bin.cheng@arm.com>
7405
7406 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7407
7408 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
7409
7410 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
7411 an rtx.
7412 * valtrack.h: Adjust.
7413
7414 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
7415
7416 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
7417 an rtx.
7418 (emit_jump_insn_before_noloc): Likewise.
7419 (emit_call_insn_before_noloc): Likewise.
7420 (emit_label_before): Likewise.
7421 (emit_label_after): Likewise.
7422 (emit_insn_before_setloc): Likewise.
7423 (emit_jump_insn_before_setloc): Likewise.
7424 (emit_call_insn_before_setloc): Likewise.
7425 (emit_call_insn_before): Likewise.
7426 * rtl.h: Adjust.
7427
7428 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7429
7430 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
7431 rtx_insn *, eliminating a checked cast.
7432
7433 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7434
7435 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
7436 const_rtx to const rtx_insn *.
7437 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
7438 cast.
7439
7440 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7441
7442 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
7443 fixup_args_size_notes.
7444 * expr.c (fixup_args_size_notes): Strengthen first two params from
7445 rtx to rtx_insn *, eliminating a checked cast.
7446 * rtl.h (fixup_args_size_notes): Strengthen first two params from
7447 rtx to rtx_insn *.
7448
7449 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7450
7451 * haifa-sched.c (get_ready_element): Strengthen return type from
7452 rtx to rtx_insn *.
7453 * sched-int.h (get_ready_element): Likewise.
7454
7455 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
7456
7457 PR target/63165
7458 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
7459 indexed_or_indirect_operand instead of memory_operand.
7460 (floatsi<mode>2_lfiwzx_mem): Ditto.
7461
7462 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
7463
7464 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
7465 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
7466 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
7467
7468 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
7469
7470 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
7471 rtx.
7472 (get_last_nonnote_insn): Likewise.
7473 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
7474 * resource.c (find_basic_block): Likewise.
7475 * rtl.h: Adjust.
7476 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
7477 const_rtx.
7478
7479 2014-09-04 David Malcolm <dmalcolm@redhat.com>
7480
7481 * genattr.c (main): Within the prototype of insn_latency written
7482 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
7483 * genautomata.c (output_internal_maximal_insn_latency_func):
7484 Within the implementation of insn_latency written out to
7485 insn-automata.c, strengthen both params from rtx to rtx_insn *,
7486 eliminating a pair of checked casts.
7487
7488 2014-09-04 David Malcolm <dmalcolm@redhat.com>
7489
7490 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
7491 rtx_insn *.
7492
7493 * rtl.h (eh_returnjump_p): Likewise.
7494
7495 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
7496
7497 * Makefile.in (TAGS): Handle constructs in timevar.def.
7498
7499 2014-09-04 Guozhi Wei <carrot@google.com>
7500
7501 PR target/62040
7502 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
7503 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
7504 it into two patterns.
7505 (move_lo_quad_internal_be_<mode>): Likewise.
7506
7507 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7508
7509 * doc/options.texi: Document that Var and Init are required if CPP
7510 is given.
7511 * optc-gen.awk: Require Var and Init if CPP is given.
7512 * common.opt (Wpedantic): Use Init.
7513
7514 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7515
7516 * config/rs6000/rs6000.c (special_handling_values): Add
7517 SH_EXTRACT.
7518 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
7519 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
7520 as swappable with special handling SH_EXTRACT. Remove
7521 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
7522 optimization.
7523 (adjust_extract): New function.
7524 (handle_special_swappables): Add default to case statement; add
7525 case for SH_EXTRACT that calls adjust_extract.
7526 (dump_swap_insn_table): Handle SH_EXTRACT.
7527
7528 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7529
7530 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
7531 selection of 0th memory doubleword, regardless of endianness.
7532
7533 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7534
7535 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
7536
7537 2014-09-04 Alan Modra <amodra@gmail.com>
7538
7539 PR debug/60655
7540 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
7541 can't be output.
7542
7543 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
7544
7545 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
7546 * targhooks.c (default_dwarf_frame_reg_mode): New function.
7547 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
7548 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
7549 * doc/tm.texi: Regenerate.
7550 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
7551 selection logic to default_dwarf_frame_reg_mode.
7552
7553 2014-09-03 Marek Polacek <polacek@redhat.com>
7554
7555 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
7556 by -Wall.
7557
7558 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
7559
7560 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
7561 the automodified register.
7562
7563 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
7564
7565 * output.h (get_some_local_dynamic_name): Declare.
7566 * final.c (some_local_dynamic_name): New variable.
7567 (get_some_local_dynamic_name): New function.
7568 (final_end_function): Clear some_local_dynamic_name.
7569 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7570 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7571 (print_operand): Report an error if '%&' is used inappropriately.
7572 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7573 (get_some_local_dynamic_name_1): Delete.
7574 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7575 (rs6000_get_some_local_dynamic_name): Delete.
7576 (rs6000_get_some_local_dynamic_name_1): Delete.
7577 (print_operand): Report an error if '%&' is used inappropriately.
7578 * config/s390/s390.c (machine_function): Remove some_ld_name.
7579 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7580 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7581 * config/sparc/sparc.c: Include rtl-iter.h.
7582 (machine_function): Remove some_ld_name.
7583 (sparc_print_operand): Report an error if '%&' is used inappropriately.
7584 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7585
7586 2014-09-03 Richard Henderson <rth@redhat.com>
7587
7588 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7589 (aarch64_popwb_pair_reg): Remove.
7590 (aarch64_set_frame_expr): Remove.
7591 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7592 the restore ops performed by the insns generated.
7593 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7594 insn. Perform the calls_eh_return addition later; do not attempt to
7595 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
7596 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7597 special markup at all. Load cfun->machine->frame.hard_fp_offset
7598 into a local variable.
7599 (aarch64_frame_pointer_required): Don't check calls_alloca.
7600
7601 2014-09-03 Richard Biener <rguenther@suse.de>
7602
7603 * opts.c (default_options_optimization): Adjust
7604 max-combine-insns to 2 for -Og.
7605
7606 2014-09-03 Martin Jambor <mjambor@suse.cz>
7607
7608 PR ipa/62015
7609 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7610 pass-trough jump functions correctly.
7611
7612 2014-09-03 Martin Jambor <mjambor@suse.cz>
7613
7614 PR ipa/61986
7615 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7616 created replacements in ascending order of offsets.
7617 (known_aggs_to_agg_replacement_list): Likewise.
7618
7619 2014-09-03 Martin Liska <mliska@suse.cz>
7620
7621 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7622 is set to set uninitialized value for vnresult.
7623
7624 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7625
7626 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7627 for TARGET_MUST_PASS_IN_STACK.
7628
7629 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7630
7631 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7632 for TARGET_ARG_PARTIAL_BYTES.
7633
7634 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7635
7636 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7637 instructions for varargs implementation.
7638 (nds32_expand_epilogue): Emit stack adjustment instructions for
7639 varargs implementation.
7640
7641 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7642
7643 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7644 optimization detection.
7645
7646 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7647
7648 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7649 arguments.
7650 (nds32_function_arg_advance): Deal with nameless arguments.
7651 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7652 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7653 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7654
7655 2014-09-03 Richard Biener <rguenther@suse.de>
7656
7657 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7658 (struct bb_bitmap_sets): Remove deferred member.
7659 (BB_DEFERRED): Remove.
7660 (defer_or_phi_translate_block): Remove.
7661 (compute_antic_aux): Remove deferring of blocks, assert
7662 proper iteration order.
7663 (compute_antic): Do not set BB_DEFERRED.
7664 (eliminate): Allocate el_avail of proper size initially.
7665
7666 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7667
7668 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7669 according to the value of crtl->args.pretend_args_size.
7670
7671 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7672
7673 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7674 varargs information.
7675
7676 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7677
7678 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7679 implementation for TARGET_SETUP_INCOMING_VARARGS.
7680 (nds32_strict_argument_naming): Refine comment.
7681 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7682 Define for future implementation.
7683
7684 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
7685
7686 * config/i386/adxintrin.h (_subborrow_u32): New.
7687 (_addcarry_u32): Ditto.
7688 (_subborrow_u64): Ditto.
7689 (_addcarry_u64): Ditto.
7690 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7691 IX86_BUILTIN_SBB64.
7692 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7693 __builtin_ia32_sbb_u64
7694
7695 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7696
7697 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7698 GPR-specific stuff.
7699 (nds32_function_arg_advance): Likewise.
7700 (nds32_init_cumulative_args): Likewise.
7701 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7702 (NDS32_FIRST_GPR_REGNUM): Define.
7703 (NDS32_LAST_GPR_REGNUM): Define.
7704 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7705 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7706 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7707 (machine_function): Use GRP-specific stuff.
7708
7709 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7710
7711 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7712 (nds32_expand_epilogue): Likewise.
7713 (nds32_expand_prologue_v3push): Likewise.
7714 (nds32_expand_epilogue_v3pop): Likewise.
7715
7716 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7717
7718 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7719 v3push/v3pop for variadic function.
7720 * config/nds32/nds32.md (prologue, epilogue): Likewise.
7721
7722 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7723
7724 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7725 Check rtx for varargs implementation.
7726 (nds32_output_stack_pop): Likewise.
7727 * config/nds32/nds32-protos.h: Have a rtx argument for
7728 nds32_output_stack_push and nds32_output_stack_pop.
7729 * config/nds32/nds32.md: Likewise.
7730
7731 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7732
7733 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7734 to check if FUNC is an interrupt service routine.
7735 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7736
7737 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7738
7739 * config/nds32/nds32.h (machine_function): Add some fields for variadic
7740 arguments implementation.
7741
7742 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7743
7744 * config/nds32/nds32-predicates.c
7745 (nds32_valid_stack_push_pop): Rename to ...
7746 (nds32_valid_stack_push_pop_p): ... this.
7747 * config/nds32/nds32-protos.h: Likewise.
7748 * config/nds32/predicates.md: Likewise.
7749
7750 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7751
7752 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7753 (nds32_emit_stack_v3push): ... this.
7754 (nds32_gen_stack_v3pop): Rename to ...
7755 (nds32_emit_stack_v3pop): ... this and consider CFA restore
7756 information.
7757
7758 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7759
7760 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7761 (nds32_emit_stack_push_multiple): ... this.
7762 (nds32_gen_stack_pop_multiple): Rename to ...
7763 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7764 information.
7765
7766 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7767
7768 PR target/61078
7769 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7770 and add a second splitter to handle the remaining cases.
7771
7772 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7773
7774 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7775
7776 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7777
7778 * cfgexpand.c (label_rtx_for_bb): Change type to
7779 hash_map<basic_block, rtx_code_label *> *.
7780 (expand_gimple_basic_block): Adjust.
7781 (pass_expand::execute): Likewise.
7782
7783 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7784
7785 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7786 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7787 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7788 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7789 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7790 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7791 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7792 of rtx.
7793
7794 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7795
7796 * alloc-pool.c: Include coretypes.h.
7797 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7798 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7799 hash_set instead of htab.
7800 * ggc-page.c (in_gc): New variable.
7801 (ggc_free): Do nothing if a collection is taking place.
7802 (ggc_collect): Set in_gc appropriately.
7803 * ggc.h (gt_ggc_mx(const char *)): New function.
7804 (gt_pch_nx(const char *)): Likewise.
7805 (gt_ggc_mx(int)): Likewise.
7806 (gt_pch_nx(int)): Likewise.
7807 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7808 (hash_map::hash_entry::pch_nx): Likewise.
7809 (hash_map::hash_entry::pch_nx_helper): Likewise.
7810 (hash_map::hash_map): Adjust.
7811 (hash_map::create_ggc): New function.
7812 (gt_ggc_mx): Likewise.
7813 (gt_pch_nx): Likewise.
7814 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7815 (default_hashset_traits::pch_nx): Likewise.
7816 (hash_set::hash_entry::ggc_mx): Likewise.
7817 (hash_set::hash_entry::pch_nx): Likewise.
7818 (hash_set::hash_entry::pch_nx_helper): Likewise.
7819 (hash_set::hash_set): Adjust.
7820 (hash_set::create_ggc): New function.
7821 (hash_set::elements): Likewise.
7822 (gt_ggc_mx): Likewise.
7823 (gt_pch_nx): Likewise.
7824 * hash-table.h (hash_table::hash_table): Adjust.
7825 (hash_table::m_ggc): New member.
7826 (hash_table::~hash_table): Adjust.
7827 (hash_table::expand): Likewise.
7828 (hash_table::empty): Likewise.
7829 (gt_ggc_mx): New function.
7830 (hashtab_entry_note_pointers): Likewise.
7831 (gt_pch_nx): Likewise.
7832
7833 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7834
7835 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
7836 built-in definition.
7837 (XVCVUXDDP_SCALE): Likewise.
7838 (XVCVDPSXDS_SCALE): Likewise.
7839 (XVCVDPUXDS_SCALE): Likewise.
7840 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7841 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7842 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7843 VSX_BUILTIN_XVCVDPUXDS_SCALE.
7844 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7845 prototype.
7846 * config/rs6000/rs6000.c (real.h): New include.
7847 (rs6000_scale_v2df): New function.
7848 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7849 (UNSPEC_VSX_XVCVUXDDP): Likewise.
7850 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7851 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7852 (vsx_xvcvsxddp_scale): New define_expand.
7853 (vsx_xvcvsxddp): New define_insn.
7854 (vsx_xvcvuxddp_scale): New define_expand.
7855 (vsx_xvcvuxddp): New define_insn.
7856 (vsx_xvcvdpsxds_scale): New define_expand.
7857 (vsx_xvcvdpsxds): New define_insn.
7858 (vsx_xvcvdpuxds_scale): New define_expand.
7859 (vsx_xvcvdpuxds): New define_insn.
7860 * doc/extend.texi (vec_ctf): Add new prototypes.
7861 (vec_cts): Likewise.
7862 (vec_ctu): Likewise.
7863 (vec_splat): Likewise.
7864 (vec_div): Likewise.
7865 (vec_mul): Likewise.
7866
7867 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7868
7869 PR target/62275
7870 * config/arm/neon.md
7871 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7872 <v_cmp_result>): New pattern.
7873 * config/arm/iterators.md (NEON_VCVT): New int iterator.
7874 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7875 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7876 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7877 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7878 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7879
7880 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7881
7882 PR target/62275
7883 * config/arm/iterators.md (FIXUORS): New code iterator.
7884 (VCVT): New int iterator.
7885 (su_optab): New code attribute.
7886 (su): Likewise.
7887 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7888
7889 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7890
7891 * config/aarch64/predicates.md (aarch64_comparison_operation):
7892 New special predicate.
7893 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7894 aarch64_comparison_operation instead of matching an operator.
7895 Update operand numbers.
7896 (csinc3<mode>_insn): Likewise.
7897 (*csinv3<mode>_insn): Likewise.
7898 (*csneg3<mode>_insn): Likewise.
7899 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7900 * config/aarch64/aarch64.c (aarch64_get_condition_code):
7901 Return -1 instead of aborting on invalid condition codes.
7902 (aarch64_print_operand): Update aarch64_get_condition_code callsites
7903 to assert that the returned condition code is valid.
7904 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7905
7906 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
7907
7908 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7909 tree.def, and gimple.def
7910
7911 2014-09-02 Jakub Jelinek <jakub@redhat.com>
7912 Balaji V. Iyer <balaji.v.iyer@intel.com>
7913 Igor Zamyatin <igor.zamyatin@intel.com>
7914
7915 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7916 (__cilkrts_cilk_for_64): Likewise.
7917 * cilk-common.c (declare_cilk_for_builtin): New function.
7918 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7919 __cilkrts_cilk_for_64 bultins.
7920 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7921 CILK_TI_F_LOOP_64.
7922 (cilk_for_32_fndecl): New define.
7923 (cilk_for_64_fndecl): Likewise.
7924 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7925 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7926 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7927 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7928 GF_OMP_FOR_COMBINED_INTO.
7929 * gimplify.c (gimplify_scan_omp_clauses): Added
7930 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7931 (gimplify_adjust_omp_clauses): Ditto.
7932 (gimplify_omp_for): Added CILK_FOR case.
7933 (gimplify_expr): Ditto.
7934 * omp-low.c: Include cilk.h.
7935 (extract_omp_for_data): Set appropriate kind for
7936 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7937 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7938 (create_omp_child_function_name): Added second argument to handle
7939 cilk_for case.
7940 (cilk_for_check_loop_diff_type): New function.
7941 (expand_cilk_for_call): Likewise.
7942 (expand_cilk_for): Likewise.
7943 (create_omp_child_function): Set cilk_for_count; handle the cases when
7944 it is true; call create_omp_child_function_name with second argument.
7945 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7946 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7947 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7948 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7949 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7950 (convert_local_omp_clauses): Ditto.
7951 * tree-pretty-print.c (dump_omp_clause): Added
7952 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7953 (dump_generic_node): Added CILK_FOR case.
7954 * tree.c (omp_clause_num_ops): New element
7955 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7956 (omp_clause_code_name): New element _Cilk_for_count_.
7957 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7958 * tree.def: Add tree code for CILK_FOR.
7959
7960 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7961
7962 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7963 (ppc403-compare): Add "exts with dot" case.
7964 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7965 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7966 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7967 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7968 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7969 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7970 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7971 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7972 cell-cmp-microcoded): Similarly.
7973 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7974 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7975 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7976 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7977 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7978 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7979 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7980 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7981 (power6-compare): Add "exts with dot" case.
7982 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7983 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7984 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7985
7986 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7987 if avoiding Cell microcode.
7988 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7989 (is_cracked_insn): Ditto.
7990 (insn_must_be_first_in_group): Ditto.
7991 * config/rs6000/rs6000.md (dot): Adjust comment.
7992 (cell_micro): Handle exts+dot.
7993 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7994 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7995 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7996 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7997 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7998 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7999 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
8000
8001 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
8002
8003 * config/rs6000/rs6000.md (QHSI): Delete.
8004 (EXTQI, EXTHI, EXTSI): New mode iterators.
8005 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
8006 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
8007 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
8008 9 anonymous instructions, and 8 splitters): Delete.
8009 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
8010 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
8011 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
8012 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
8013 *zero_extendsi<mode>2_dot2): New.
8014
8015 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
8016
8017 * config/rs6000/rs6000.md (any_extend): New code iterator.
8018 (u, su): New code attributes.
8019 (dmode, DMODE): New mode attributes.
8020 (<su>mul<mode>3_highpart): New.
8021 (*<su>mul<mode>3_highpart): New.
8022 (<su>mulsi3_highpart_le): New.
8023 (<su>muldi3_highpart_le): New.
8024 (<su>mulsi3_highpart_64): New.
8025 (<u>mul<mode><dmode>3): New.
8026 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
8027 splitters): Delete.
8028 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
8029 splitters): Delete.
8030
8031 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
8032
8033 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
8034 *mulsi3_internal2, and two splitters): Delete.
8035 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
8036 Delete.
8037 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
8038
8039 2014-09-02 Richard Biener <rguenther@suse.de>
8040
8041 PR tree-optimization/62695
8042 * tree-ssa-structalias.c (find_func_clobbers): Add missing
8043 vector truncate.
8044
8045 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
8046
8047 PR target/62312
8048 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
8049
8050 2014-09-01 Andi Kleen <ak@linux.intel.com>
8051
8052 * file-find.c (add_prefix_begin): Add.
8053 (do_add_prefix): Rename from add_prefix with first argument.
8054 (add_prefix): Add new wrapper.
8055 * file-find.h (add_prefix_begin): Add.
8056 * gcc-ar.c (main): Support -B option.
8057
8058 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
8059
8060 * genemit.c: Include dumpfile.h.
8061 (gen_split): Print name of splitter function to dump file.
8062
8063 2014-09-01 Richard Biener <rguenther@suse.de>
8064
8065 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
8066 Use stack auto_vecs for constraint expressions.
8067 (find_func_aliases_for_call): Likewise.
8068 (find_func_aliases): Likewise.
8069 (find_func_clobbers): Likewise.
8070
8071 2014-09-01 Richard Biener <rguenther@suse.de>
8072
8073 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
8074 operands vector in most cases. Remove redundant code.
8075
8076 2014-09-01 Olivier Hainque <hainque@adacore.com>
8077
8078 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
8079 $WIND_BASE instead of designating a harcoded arbitrary home dir.
8080 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
8081
8082 2014-09-01 Richard Biener <rguenther@suse.de>
8083
8084 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
8085 copy_reference_ops_from_call, vn_nary_op_compute_hash,
8086 vn_reference_compute_hash, vn_reference_insert): Remove.
8087 (vn_reference_lookup_call): New function.
8088 * tree-ssa-sccvn.c (vn_reference_compute_hash,
8089 copy_reference_ops_from_ref, copy_reference_ops_from_call,
8090 vn_reference_insert, vn_nary_op_compute_hash): Make static.
8091 (create_reference_ops_from_call): Remove.
8092 (vn_reference_lookup_3): Properly update shared_lookup_references.
8093 (vn_reference_lookup_pieces): Assert that we updated
8094 shared_lookup_references properly.
8095 (vn_reference_lookup): Likewise.
8096 (vn_reference_lookup_call): New function.
8097 (visit_reference_op_call): Use it. Avoid re-building the
8098 reference ops.
8099 (visit_reference_op_load): Remove redundant lookup.
8100 (visit_reference_op_store): Perform special tail-merging work
8101 only when possibly doing tail-merging.
8102 (visit_use): Likewise.
8103 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
8104
8105 2014-09-01 Jakub Jelinek <jakub@redhat.com>
8106
8107 PR target/62025
8108 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
8109 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
8110 (find_inc): Revert 2014-08-13 change.
8111
8112 2014-09-01 Marek Polacek <polacek@redhat.com>
8113
8114 PR middle-end/61903
8115 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
8116 Change the type of V to unsigned HOST_WIDE_INT.
8117
8118 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
8119
8120 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
8121 the size of byte markers.
8122 (do_shift_rotate): Fix confusion between host, target and marker byte
8123 size.
8124 (verify_symbolic_number_p): Likewise.
8125 (find_bswap_or_nop_1): Likewise.
8126 (find_bswap_or_nop): Likewise.
8127
8128 2014-09-01 Olivier Hainque <hainque@adacore.com>
8129
8130 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
8131 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
8132
8133 2014-09-01 Jakub Jelinek <jakub@redhat.com>
8134
8135 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
8136 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
8137 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
8138
8139 2014-09-01 Yury Gribov <y.gribov@samsung.com>
8140
8141 PR sanitizer/61897
8142 PR sanitizer/62140
8143 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
8144 (build_check_stmt): Likewise.
8145 (instrument_strlen_call): Likewise.
8146 (asan_expand_check_ifn): Likewise and fix types.
8147 (maybe_cast_to_ptrmode): New function.
8148
8149 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8150
8151 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
8152
8153 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
8154
8155 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
8156
8157 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
8158
8159 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
8160 prefix to function labels when generating fast indirect calls.
8161
8162 2014-08-30 David Malcolm <dmalcolm@redhat.com>
8163
8164 PR bootstrap/62304
8165
8166 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
8167 param back from rtx_insn * to rtx. Rename param from "label" to
8168 "label_or_return", reintroducing "label" as an rtx_insn * after
8169 we've ensured it's not a RETURN.
8170 (first_active_target_insn): Likewise for return type and param;
8171 add a checked cast to rtx_insn * once we've ensured "insn" is not
8172 a RETURN.
8173 (steal_delay_list_from_target): Convert param "pnew_thread" back
8174 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
8175 with JUMP_LABEL.
8176 (own_thread_p): Convert param "thread" back from an rtx_insn * to
8177 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
8178 cast once we've established we're not dealing with a RETURN,
8179 renaming subsequent uses of "thread" to "thread_insn".
8180 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
8181 to JUMP_LABEL.
8182 (follow_jumps): Convert return type and param "label" from
8183 rtx_insn * back to rtx. Move initialization of "value" to after
8184 the handling for ANY_RETURN_P, adding a checked cast there to
8185 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
8186 rename to "this_label_or_return", reintroducing "this_label" as
8187 an rtx_insn * once we've handled the case where it could be an
8188 ANY_RETURN_P.
8189 (fill_slots_from_thread): Rename param "thread" to
8190 "thread_or_return", converting from an rtx_insn * back to an rtx.
8191 Reintroduce name "thread" as an rtx_insn * local with a checked
8192 cast once we've handled the case of it being an ANY_RETURN_P.
8193 Convert local "new_thread" from an rtx_insn * back to an rtx.
8194 Add a checked cast when assigning to "trial" from "new_thread".
8195 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
8196 checked cast to rtx_insn * from "new_thread" when invoking
8197 get_label_before.
8198 (fill_eager_delay_slots): Convert locals "target_label",
8199 "insn_at_target" from rtx_insn * back to rtx.
8200 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
8201 (relax_delay_slots): Convert locals "trial", "target_label" from
8202 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
8203 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
8204 invoking update_block.
8205 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
8206 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
8207
8208 * resource.h (mark_target_live_regs): Undo erroneous conversion
8209 of second param of r214693, converting it back from rtx_insn * to
8210 rtx, since it could be a RETURN.
8211
8212 * resource.c (find_dead_or_set_registers): Similarly, convert
8213 param "jump_target" back from an rtx_insn ** to an rtx *, as we
8214 could be writing back a RETURN. Rename local rtx_insn * "next" to
8215 "next_insn", and introduce "lab_or_return" as a local rtx,
8216 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
8217 (mark_target_live_regs): Undo erroneous conversion
8218 of second param of r214693, converting it back from rtx_insn * to
8219 rtx, since it could be a RETURN. Rename it from "target" to
8220 "target_maybe_return", reintroducing the name "target" as a local
8221 rtx_insn * with a checked cast, after we've handled the case of
8222 ANY_RETURN_P.
8223
8224 2014-08-29 DJ Delorie <dj@redhat.com>
8225
8226 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
8227 pointer size up to a power of two.
8228 * defaults.h (DWARF2_ADDR_SIZE): Round up.
8229 (POINTER_SIZE_UNITS): New, rounded up value.
8230 * dwarf2asm.c (size_of_encoded_value): Use it.
8231 (dw2_output_indirect_constant_1): Likewise.
8232 * expmed.c (init_expmed_one_conv): We now know the sizes of
8233 partial int modes.
8234 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
8235 * optabs.c (expand_float): Use precision, not size.
8236 (expand_fix): Likewise.
8237 * simplify-rtx (simplify_unary_operation_1): Likewise.
8238 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8239 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
8240 (default_assemble_integer) Likewise.
8241 (dump_tm_clone_pairs): Likewise.
8242 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
8243 * var-tracking.c (adjust_mems): Allow partial-int modes also.
8244 (prepare_call_arguments): Likewise.
8245 * stor-layout.c (finalize_type_size): Preserve precision.
8246 (layout_type): Use precision, not size.
8247
8248 * expr.c (convert_move): If the target has an explicit converter,
8249 use it.
8250
8251 2014-08-29 David Malcolm <dmalcolm@redhat.com>
8252
8253 * gdbinit.in: Skip various inline functions in rtl.h when
8254 stepping.
8255
8256 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
8257
8258 PR bootstrap/62301
8259 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
8260
8261 2014-08-29 Richard Biener <rguenther@suse.de>
8262
8263 PR tree-optimization/62291
8264 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
8265 exactly the vector size needed and use quick_push.
8266 (phi_translate_1): Adjust comment.
8267 (valid_in_sets): Remove block argument and remove pointless
8268 checking of NAMEs.
8269 (dependent_clean): Adjust for removal of block argument.
8270 (clean): Likewise.
8271 (compute_antic_aux): Likewise.
8272 (compute_partial_antic_aux): Likewise.
8273
8274 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
8275 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8276 Anna Tikhonova <anna.tikhonova@intel.com>
8277 Ilya Tocar <ilya.tocar@intel.com>
8278 Andrey Turetskiy <andrey.turetskiy@intel.com>
8279 Ilya Verbin <ilya.verbin@intel.com>
8280 Kirill Yukhin <kirill.yukhin@intel.com>
8281 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8282
8283 * config/i386/sse.md
8284 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
8285 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
8286 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
8287 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
8288
8289 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
8290 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8291 Anna Tikhonova <anna.tikhonova@intel.com>
8292 Ilya Tocar <ilya.tocar@intel.com>
8293 Andrey Turetskiy <andrey.turetskiy@intel.com>
8294 Ilya Verbin <ilya.verbin@intel.com>
8295 Kirill Yukhin <kirill.yukhin@intel.com>
8296 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8297
8298 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
8299 * config/i386/sse.md
8300 (define_mode_iterator VI4_128_8_256): New.
8301 (define_mode_iterator VI2_128_4_256): Ditto.
8302 (define_mode_iterator PMOV_DST_MODE): Rename into
8303 (define_mode_iterator PMOV_DST_MODE_1): this.
8304 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
8305 Use PMOV_DST_MODE_1 mode iterator.
8306 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8307 Ditto.
8308 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8309 Ditto.
8310 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
8311 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
8312 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
8313 (define_mode_iterator PMOV_DST_MODE_2): New.
8314 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
8315 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
8316 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
8317 Ditto.
8318 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
8319 (define_mode_attr pmov_dst_3): Ditto.
8320 (define_mode_attr pmov_dst_zeroed_3): Ditto.
8321 (define_mode_attr pmov_suff_3): Ditto.
8322 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
8323 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
8324 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
8325 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
8326 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
8327 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
8328 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
8329 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
8330 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
8331 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
8332 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
8333 (define_mode_attr pmov_dst_4): Ditto.
8334 (define_mode_attr pmov_dst_zeroed_4): Ditto.
8335 (define_mode_attr pmov_suff_4): Ditto.
8336 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
8337 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
8338 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
8339 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
8340 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
8341 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
8342 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
8343 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
8344 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
8345 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
8346 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
8347
8348 2014-08-29 Richard Biener <rguenther@suse.de>
8349
8350 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
8351 NON_LVALUE_EXPR in gimple.
8352
8353 2014-08-29 Richard Biener <rguenther@suse.de>
8354
8355 PR middle-end/62292
8356 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
8357 from previous refactoring.
8358 (gimple_fold_builtin_strncpy): Likewise.
8359
8360 2014-08-29 David Malcolm <dmalcolm@redhat.com>
8361
8362 PR bootstrap/62300
8363 * function.c (assign_parm_setup_reg): Remove erroneous checked
8364 cast to rtx_insn * on result of gen_extend_insn in favor of
8365 introducing a new local rtx "pat".
8366
8367 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8368
8369 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
8370 to silence warning.
8371 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
8372
8373 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8374
8375 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
8376 (next_insn): Likewise.
8377 * emit-rtl.c (next_insn): Likewise.
8378 (previous_insn): Likewise.
8379 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
8380 "insn" and "next" from rtx to rtx_insn *.
8381 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
8382 "insn", "insn1", "vliw_start", "prologue_end_note",
8383 "last_insn_in_packet".
8384
8385 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8386
8387 * shrink-wrap.h (active_insn_between): Strengthen both params from
8388 rtx to rtx_insn *.
8389 * function.c (active_insn_between): Likewise.
8390
8391 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8392
8393 * genattr.c (main): When writing out insn-attr.h, strengthen param
8394 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
8395 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
8396 writing out the definition of dfa_clear_single_insn_cache to the
8397 generated insn-automata.c
8398
8399 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8400
8401 * resource.h (clear_hashed_info_for_insn): Strengthen param from
8402 rtx to rtx_insn *.
8403 (incr_ticks_for_insn): Likewise.
8404 (init_resource_info): Likewise.
8405
8406 * resource.c (init_resource_info): Likewise.
8407 (clear_hashed_info_for_insn): Likewise.
8408 (incr_ticks_for_insn): Likewise.
8409
8410 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
8411 rtx to rtx_insn *.
8412 (steal_delay_list_from_target): Use methods of "seq".
8413 (try_merge_delay_insns): Use methods of "merged_insns".
8414 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
8415 (reorg_redirect_jump): Likewise for param "jump".
8416
8417 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8418
8419 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
8420 rtx to rtx_insn *.
8421 * config/s390/s390.c (s390_split_branches): Eliminate top-level
8422 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
8423 "set_insn".
8424 (s390_mainpool_finish): In three places, split out a local rtx
8425 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
8426 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
8427 and split another local rtx "insn" out into rtx "pat" and
8428 rtx_insn * "insn".
8429 * config/sh/sh.c (output_branchy_insn): Rather than working
8430 directly on operands[9], introduce local rtx_code_label *
8431 variables named "lab" in two places, working on them, and then
8432 assigning them to operands[9], so that the intervening operations
8433 are known by the type system to be on insns.
8434
8435 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8436
8437 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
8438 const rtx_insn *.
8439
8440 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
8441 in invocation of INSN_HAS_LOCATION.
8442
8443 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8444
8445 * config/rs6000/altivec.h (vec_xl): New #define.
8446 (vec_xst): Likewise.
8447 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
8448 (XXSPLTD_V2DI): Likewise.
8449 (DIV_V2DI): Likewise.
8450 (UDIV_V2DI): Likewise.
8451 (MUL_V2DI): Likewise.
8452 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8453 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
8454 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
8455 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
8456 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
8457 (UNSPEC_VSX_DIVSD): Likewise.
8458 (UNSPEC_VSX_DIVUD): Likewise.
8459 (UNSPEC_VSX_MULSD): Likewise.
8460 (vsx_mul_v2di): New insn-and-split.
8461 (vsx_div_v2di): Likewise.
8462 (vsx_udiv_v2di): Likewise.
8463 (vsx_xxspltd_<mode>): New insn.
8464
8465 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8466
8467 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
8468 NEXT_INSN.
8469 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
8470 (NEXT_INSN): Likewise.
8471 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
8472 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
8473 const rtx_insn *.
8474 (no_labels_between_p): Likewise for both params.
8475
8476 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
8477 cast when using NEXT_INSN on operands[2].
8478 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
8479 "insn" from rtx to rtx_insn *, adding a checked cast.
8480 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
8481 rtx_insn *.
8482 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
8483 for third param.
8484 (arc_text_label): Likewise for param "insn".
8485 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
8486 "insn".
8487 (arc_ccfsm_record_condition): Likewise for param "jump".
8488 (arc_text_label): Likewise for local "label".
8489 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
8490 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
8491 a method for typesafety. Add a checked cast.
8492 * config/arc/constraints.md (Clb): Add a checked cast when getting
8493 the CODE_LABEL from a LABEL_REF.
8494 * config/arm/arm.c (require_pic_register): Strengthen locals
8495 "seq", "insn" from rtx to rtx_insn *.
8496 (create_fix_barrier): Likewise for locals "selected", "next".
8497 (thumb1_reorg): Likewise for locals "prev", "insn".
8498 (arm_expand_prologue): Likewise for local "last".
8499 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
8500 operands[0].
8501 (thumb2_output_casesi): Likewise for operands[2].
8502 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
8503 strengthen local "insn" from rtx to rtx_insn *.
8504 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
8505 type and param "insn".
8506 (find_prev_insn_start): Likewise.
8507 (hwloop_optimize): Likewise for locals "insn", "last_insn",
8508 "prev".
8509 (gen_one_bundle): Likewise for loal "t".
8510 (find_load): Likewise for param "insn".
8511 (workaround_speculation): Likewise for locals "insn", "next",
8512 "target", "next_tgt".
8513 * config/c6x/c6x.c (assign_reservations): Likewise for both params
8514 and for locals "insn", "within", "last".
8515 (count_unit_reqs): Likewise for params "head", "tail" and local
8516 "insn".
8517 (try_rename_operands): Likewise for params "head", "tail".
8518 (reshuffle_units): Likewise for locals "head", "tail", "insn".
8519 (struct c6x_sched_context): Likewise for fields
8520 "last_scheduled_insn", "last_scheduled_iter0".
8521 (init_sched_state): Replace NULL_RTX with NULL.
8522 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
8523 to rtx_insn *.
8524 (undo_split_delayed_nonbranch): Likewise for param and for local
8525 "prev".
8526 (conditionalize_after_sched): Likewise for local "insn".
8527 (bb_earliest_end_cycle): Likewise.
8528 (filter_insns_above): Likewise for locals "insn", "next".
8529 (hwloop_optimize): Remove redundant checked cast.
8530 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
8531 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
8532 NULL_RTX with NULL.
8533 (cris_simple_epilogue): Likewise.
8534 (cris_expand_prologue): Likewise.
8535 (cris_expand_epilogue): Likewise.
8536 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
8537 local "insn" from rtx to rtx_insn *.
8538 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
8539 (struct frv_packet_group): Likewise for the elements within array
8540 fields "insns", "sorted", and for field "nop".
8541 (frv_packet): Likewise for the elements within array field
8542 "insns".
8543 (frv_add_insn_to_packet): Likewise for param "insn".
8544 (frv_insert_nop_in_packet): Likewise for param "insn" and local
8545 "last".
8546 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
8547 (frv_sort_insn_group_1): Likewise for local "insn".
8548 (frv_optimize_membar_local): Likewise.
8549 (frv_align_label): Likewise for locals "x", "last", "barrier",
8550 "label".
8551 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
8552 local.
8553 (ia64_sched_init): Likewise for local "insn".
8554 (scheduled_good_insn): Likewise for param "last".
8555 (struct _ia64_sched_context): Likewise for field
8556 "last_scheduled_insn".
8557 (ia64_init_sched_context): Replace NULL_RTX with NULL.
8558 (struct bundle_state): Likewise for field "insn".
8559 (issue_nops_and_insn): Likewise for param "insn".
8560 (get_next_important_insn): Likewise for return type and both
8561 params.
8562 (ia64_add_bundle_selector_before): Likewise for param "insn".
8563 (bundling): Likewise for params "prev_head_insn", "tail" and
8564 locals "insn", "next_insn", "b". Eliminate top-level local rtx
8565 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8566 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8567 Strengthen final param from rtx to rtx_insn *.
8568 (iq2000_move_1word): Likewise for second param.
8569 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8570 param "cur_insn" and local "next_insn".
8571 (iq2000_move_1word): Likewise for param "insn".
8572 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8573 casts when using NEXT_INSN on operands[1].
8574 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8575 "insn" from rtx to rtx_insn *.
8576 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8577 "x", introducing local rtx_insn * "insn" for when working with the
8578 CODE_LABEL of the LABEL_REF.
8579 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8580 rtx_insn *.
8581 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8582 param.
8583 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8584 type.
8585 (conditionalize_block): Likewise for return type and param.
8586 (mcore_is_dead): Likewise for param "first" and local "insn".
8587 (emit_new_cond_insn): Likewise for return type.
8588 (conditionalize_block): Likewise for return type, param, and
8589 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8590 "newinsn".
8591 (conditionalize_optimization): Likewise for local "insn".
8592 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8593 using NEXT_INSN.
8594 * config/microblaze/microblaze.md: Add checked casts when using
8595 NEXT_INSN.
8596 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8597 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8598 and rtx_insn * "insn".
8599 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8600 checked cast when using NEXT_INSN on operands[2].
8601 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8602 local "insn" from rtx to rtx_insn *.
8603 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8604 Likewise.
8605 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8606 Add a checked cast when using NEXT_INSN on operands[1].
8607 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8608 rtx to rtx_insn *.
8609 (pa_output_cbranch): Likewise for final param.
8610 (pa_output_lbranch): Likewise for second param.
8611 (pa_output_bb): Likewise for third param.
8612 (pa_output_bvb): Likewise.
8613 (pa_output_dbra): Likewise for second param.
8614 (pa_output_movb): Likewise.
8615 (pa_output_parallel_movb): Likewise.
8616 (pa_output_parallel_addb): Likewise.
8617 (pa_output_millicode_call): Likewise for first param.
8618 (pa_output_mul_insn): Likewise for second param.
8619 (pa_output_div_insn): Likewise for third param.
8620 (pa_output_mod_insn): Likewise for second param.
8621 (pa_jump_in_call_delay): Likewise for param.
8622 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8623 (pa_output_div_insn): Likewise.
8624 (pa_output_mod_insn): Likewise.
8625 (pa_output_cbranch): Likewise.
8626 (pa_output_lbranch): Likewise.
8627 (pa_output_bb): Likewise.
8628 (pa_output_bvb): Likewise.
8629 (pa_output_dbra): Likewise.
8630 (pa_output_movb): Likewise.
8631 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8632 to simplify and for typesafety.
8633 (pa_output_call): Use method of rtx_sequence *.
8634 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8635 (pa_jump_in_call_delay): Likewise.
8636 (pa_output_parallel_movb): Likewise.
8637 (pa_output_parallel_addb): Likewise.
8638 (pa_following_call): Likewise.
8639 (pa_combine_instructions): Likewise for locals "anchor",
8640 "floater".
8641 (pa_can_combine_p): Likewise for params "anchor", "floater" and
8642 locals "start", "end".
8643 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8644 param "insn" and local "local_insn".
8645 (picochip_final_prescan_insn): Likewise for local "local_insn".
8646 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8647 local "insn".
8648 (uses_TOC): Likewise.
8649 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8650 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8651 splitting out to more tightly-scoped locals, 3 as rtx and one as
8652 rtx_insn *.
8653 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8654 to rtx_insn *.
8655 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8656 where needed.
8657 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8658 to rtx_insn *.
8659 (fixup_addr_diff_vecs): Likewise.
8660 (reg_unused_after): Likewise for param 2.
8661 (sh_can_redirect_branch): Likewise for both params.
8662 (check_use_sfunc_addr): Likewise for param 1.
8663 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8664 (find_barrier): Likewise for local "last_got".
8665 (gen_block_redirect): Likewise for return type, param "jump" and
8666 locals "prev", "scan", "next", "insn".
8667 (struct far_branch): Likewise for fields "near_label",
8668 "insert_place", "far_label".
8669 (gen_far_branch): Likewise for local "jump".
8670 (fixup_addr_diff_vecs): Likewise for param "first" and locals
8671 "insn", "prev".
8672 (barrier_align): Likewise for param and for locals "prev", "x".
8673 Introduce local rtx_sequence * "prev_seq" and use insn method for
8674 typesafety and clarity.
8675 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8676 (get_dest_uid): Likewise for local "dest".
8677 (split_branches): Likewise for locals "next", "beyond", "label",
8678 "block", "far_label". Add checked casts when assigning to
8679 bp->far_label and "far_label".
8680 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8681 (sequence_insn_p): Likewise.
8682 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
8683 more loop-scoped rtx "insn" when walking LABEL_REFS.
8684 (sh_can_redirect_branch): Strengthen both params from rtx to
8685 rtx_insn *.
8686 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
8687 new local rtx_sequence * "seq" via a dyn_cast, and use a method
8688 for clarity and typesafety.
8689 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8690 "insn" from rtx to rtx_insn *.
8691 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8692 when using NEXT_INSN on the CODE_LABEL in operands[2].
8693 (define_insn "casesi_worker_2"): Likewise.
8694 (define_insn "casesi_shift_media"): Likewise.
8695 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8696 operands[3].
8697 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8698 Strengthen field "insn" from rtx to rtx_insn *.
8699 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8700 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8701 param "start_insn" and local "start_insn".
8702 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8703 field "insn".
8704 (find_set_of_reg_bb): Likewise for param "insn".
8705 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8706 (trace_reg_uses): Likewise for param "start_insn".
8707 (sh_treg_combine::cbranch_trace): Likewise for field
8708 "cbranch_insn".
8709 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8710 param "insn".
8711 (sh_treg_combine::record_set_of_reg): Likewise for param
8712 "start_insn" and local "i".
8713 (sh_treg_combine::can_remove_cstore): Likewise for local
8714 "prev_insn".
8715 (sh_treg_combine::try_optimize_cbranch): Likewise for param
8716 "insn".
8717 (sh_treg_combine::execute): Likewise for local "i".
8718 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8719 param.
8720 (sparc_check_64): Likewise for second param.
8721 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8722 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
8723 dyn_cast, using its insn method for typesafety and clarity.
8724 (empty_delay_slot): Strengthen param "insn" from rtx to
8725 rtx_insn *.
8726 (set_extends): Likewise.
8727 (sparc_check_64): Likewise.
8728 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8729 for locals "seq", "last_insn".
8730 (combine_bnp): Likewise for param "insn".
8731 (xstormy16_reorg): Likewise for local "insn".
8732 * config/v850/v850.c (substitute_ep_register): Likewise for params
8733 "first_insn", "last_insn" and local "insn".
8734 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8735 elements of "regs" array, and local "insn".
8736 * except.c (emit_note_eh_region_end): Likewise for param "insn".
8737 * final.c (final_sequence): Strengthen this global from rtx to
8738 rtx_sequence *.
8739 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8740 rtx_insn *.
8741 (final_scan_insn): Update assignment to "final_sequence" to be
8742 from "seq", the cast version of "body", for type-safety.
8743 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8744 "insns" from rtx to rtx_insn *.
8745 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8746 * genattr.c (main): When writing out generated insn-attr.h,
8747 strengthen params 1 and 3 of eligible_for_delay,
8748 eligible_for_annul_true, eligible_for_annul_false from rtx to
8749 rtx_insn *.
8750 * genattrtab.c (write_eligible_delay): Likewise when writing out
8751 generated insn-attrtab.c; also local "insn" the generated
8752 functions.
8753 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8754 to rtx_insn *.
8755 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8756 "start_label" from rtx to rtx_insn *.
8757 * ira.c (decrease_live_ranges_number): Likewise for local "p".
8758 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8759 "insns" and local "insn".
8760 (validate_equiv_mem): Likewise for param "start" and local "insn".
8761 (memref_used_between_p): Likewise for params "start", "end" and
8762 local "insn".
8763 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8764 final param.
8765 * loop-doloop.c (doloop_optimize): Within region guarded by
8766 INSN_P (doloop_pat), introduce a new local rtx_insn *
8767 "doloop_insn" via a checked cast, and use it for typesafety,
8768 eventually writing the value back into doloop_pat.
8769 * output.h (final_sequence): Strengthen this global from rtx to
8770 rtx_sequence *.
8771 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8772 reintroducing "insn" as an rtx_insn * via a checked cast.
8773 Strengthen param "attempt" and local "new_insn"from rtx to
8774 rtx_insn *.
8775 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8776 to rtx_insn *.
8777 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8778 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8779 "p" in favor of more tightly-scoped replacements, sometimes rtx
8780 and sometimes rtx_insn *, as appropriate.
8781 (delete_output_reload): Eliminate top-level rtx "i1", splitting
8782 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8783 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
8784 local "trial" from rtx to rtx_insn *.
8785 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8786 rtx to rtx_insn *. Strenghten local "pat" from rtx to
8787 rtx_sequence * and use methods for clarity and typesafety.
8788 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8789 rtx to rtx_insn *. Strenghten local "li" from rtx to
8790 rtx_insn_list * and use its methods for clarity and typesafety.
8791 (steal_delay_list_from_target): Strengthen param "insn" from rtx
8792 to rtx_insn *.
8793 (steal_delay_list_from_fallthrough): Likewise.
8794 (try_merge_delay_insns): Likewise for param "thread" and locals
8795 "trial", "next_trial", "delay_insn".
8796 (redundant_insn): Likewise for param "target" and local "trial".
8797 (own_thread_p): Likewise for param "thread" and locals
8798 "active_insn", "insn".
8799 (get_label_before): Likewise for param "insn".
8800 (fill_simple_delay_slots): Likewise for local "new_label"; use
8801 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8802 (label_before_next_insn): Strengthen return type and local "insn"
8803 from rtx to rtx_insn *.
8804 (relax_delay_slots): Likewise for locals "other", "tmp".
8805 (make_return_insns): Likewise for param "first" and locals "insn",
8806 "jump_insn", "prev". Move declaration of "pat" to its assignment
8807 and strengthen from rtx to rtx_sequence *. Use its methods for
8808 clarity and typesafety.
8809 * rtlanal.c (no_labels_between_p): Strengthen params from
8810 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
8811 rtx_insn *.
8812 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8813 from const_rtx to const rtx_insn *.
8814 (reg_set_between_p): Rename param "from_insn" to
8815 "uncast_from_insn", and reintroduce "from_insn" as a
8816 const rtx_insn * via a checked cast.
8817 (modified_between_p): Likewise for param "start" as "uncast_start".
8818 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8819 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8820 "tmp", head" from rtx to rtx_insn *.
8821 (recompute_rev_top_order): Likewise for local "insn".
8822 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8823 * store-motion.c (build_store_vectors): Likewise for local "insn".
8824 Strengthen local "st" from rtx to rtx_insn_list * and use methods
8825 for clarity and typesafety.
8826 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8827 rtx to rtx_insn *.
8828 (computation_cost): Likewise for local "seq".
8829 (get_address_cost): Likewise.
8830
8831 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8832
8833 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8834 const rtx_insn *.
8835 (label_is_jump_target_p): Likewise for second param.
8836
8837 * rtlanal.c (tablejump_p): Likewise for param "insn".
8838 (label_is_jump_target_p): Likewise for param "jump_insn".
8839
8840 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8841
8842 * rtl.h (find_first_parameter_load): Strengthen return type and
8843 both params from rtx to rtx_insn *.
8844 * rtlanal.c (find_first_parameter_load): Strengthen return type,
8845 both params and locals "before", "first_set" from rtx to
8846 rtx_insn *. Remove now-redundant cast.
8847 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8848
8849 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8850
8851 * rtl.h (find_last_value): Delete.
8852 * rtlanal.c (find_last_value): Delete.
8853
8854 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8855
8856 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8857 from rtx to rtx_insn *.
8858 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8859 rtx "note" with new local rtx_insn * "new_head" when calculating
8860 head insn of new basic block.
8861 * combine.c (combine_split_insns): Strengthen return type and local
8862 "ret" from rtx to rtx_insn *.
8863 (likely_spilled_retval_p): Likewise for locals "use" and "p".
8864 (try_combine): Eliminate local "m_split", splitting into new
8865 locals "m_split_insn" and "m_split_pat".
8866 (find_split_point): Strengthen local "seq" from rtx into
8867 rtx_insn *.
8868 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8869 locals "label", "branch".
8870 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8871 for local "insn".
8872 (define_expand "umulsi3_highpart"): Likewise for local "insn".
8873 * dse.c (note_add_store_info): Likewise for fields "first",
8874 "current".
8875 (note_add_store): Likewise for local "insn".
8876 (emit_inc_dec_insn_before): Likewise for locals "insn",
8877 "new_insn", "cur".
8878 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8879 (replace_read): Likewise for locals "insns", "this_insn".
8880 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8881 (notice_eh_throw): Likewise for param "insn".
8882 (before_next_cfi_note): Likewise for return type, param, and local
8883 "prev".
8884 (connect_traces): Likewise for local "note".
8885 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8886 (verify_rtl_sharing): Likewise.
8887 (unshare_all_rtl_in_chain): Likewise for param "insn".
8888 (get_first_nonnote_insn): Likewise for local "insn".
8889 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
8890 "seq" and use its methods to clarify things.
8891 (next_insn): Strengthen return type from rtx to rtx_insn *.
8892 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8893 local rtx_insn * using a checked cast, dropping a checked cast
8894 made redundant by this change. Use a cast to and method of
8895 rtx_sequence to clarify the code.
8896 (previous_insn): Rename param "insn" to "uncast_insn" and
8897 reintroduce "insn" as a local rtx_insn * using a checked cast,
8898 dropping a checked cast made redundant by this change. Use a cast
8899 to and method of rtx_sequence to clarify the code.
8900 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8901 reintroduce "insn" as a local rtx_insn * using a checked cast,
8902 dropping a checked cast made redundant by this change.
8903 (next_nonnote_insn_bb): Likewise.
8904 (prev_nonnote_insn): Likewise.
8905 (prev_nonnote_insn_bb): Likewise.
8906 (next_nondebug_insn): Likewise.
8907 (prev_nondebug_insn): Likewise.
8908 (next_nonnote_nondebug_insn): Likewise.
8909 (prev_nonnote_nondebug_insn): Likewise.
8910 (next_real_insn): Likewise.
8911 (prev_real_insn): Likewise.
8912 (next_active_insn): Likewise.
8913 (prev_active_insn): Likewise.
8914 (next_cc0_user): Likewise. Use rtx_sequence and a method for
8915 clarity.
8916 (prev_cc0_setter): Likewise.
8917 (try_split): Rename param "trial" to "uncast_trial" and
8918 reintroduce "insn" as a local rtx_insn * using a checked cast,
8919 dropping checked casts made redundant by this change.
8920 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8921 rtx to rtx_insn *.
8922 (remove_insn): Rename param "insn" to "uncast_insn" and
8923 reintroduce "insn" as a local rtx_insn * using a checked cast.
8924 (emit_pattern_after_setloc): Likewise for param "after", as
8925 "uncast_after".
8926 (emit_pattern_after): Likewise. Strengthen local "prev" from
8927 rtx to rtx_insn *.
8928 (emit_pattern_before_setloc): Rename param "before" to
8929 "uncast_before" and reintroduce "before" as a local rtx_insn *
8930 using a checked cast. Strengthen locals "first", "last" from
8931 rtx to rtx_insn *.
8932 (emit_pattern_before): Likewise rename/cast param "before" to
8933 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8934 * except.c (copy_reg_eh_region_note_forward): Strengthen param
8935 "first" and local "insn" from rtx to rtx_insn *.
8936 (copy_reg_eh_region_note_backward): Likewise for param "last"
8937 and local "insn".
8938 * expr.c (fixup_args_size_notes): Rename param "last" to
8939 "uncast_last" and reintroduce "last" as a local rtx_insn *
8940 using a checked cast. Strengthen local "insn" from rtx to
8941 rtx_insn *.
8942 * function.c (set_insn_locations): Strengthen param "insn" from
8943 rtx to rtx_insn *.
8944 (record_insns): Likewise for param "insns" and local "tmp".
8945 (active_insn_between): Rename param "tail" to
8946 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8947 using a checked cast.
8948 (thread_prologue_and_epilogue_insns): Split out top-level local
8949 rtx "seq" into three different rtx_insn * locals. Strengthen
8950 local "prologue_seq" from rtx to rtx_insn *.
8951 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8952 from rtx to rtx_insn *.
8953 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8954 (priority): Likewise for locals "prev_first", "twin".
8955 (setup_insn_max_reg_pressure): Likewise for param "after".
8956 (sched_setup_bb_reg_pressure_info): Likewise.
8957 (no_real_insns_p): Strengthen params from const_rtx to
8958 const rtx_insn *.
8959 (schedule_block): Strengthen local "next_tail" from rtx to
8960 rtx_insn *.
8961 * ifcvt.c (find_active_insn_before): Strengthen return type and
8962 param "insn" from rtx to rtx_insn *.
8963 (find_active_insn_after): Likewise.
8964 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8965 (cond_exec_process_if_block): Likewise for locals "then_start",
8966 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8967 (noce_process_if_block): Likewise for local "jump".
8968 (merge_if_block): Likewise for two locals named "end".
8969 (cond_exec_find_if_block): Likewise for local "last_insn".
8970 * jump.c (delete_related_insns): Rename param "insn" to
8971 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8972 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8973 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8974 NULL.
8975 (split_reg): Likewise.
8976 * lra.c (lra_process_new_insns): Likewise.
8977 * modulo-sched.c (permute_partial_schedule): Strengthen param
8978 "last" from rtx to rtx_insn *.
8979 * optabs.c (add_equal_note): Likewise for param "insns" and local
8980 "last_insn".
8981 (expand_binop_directly): Add checked casts to rtx_insn * within
8982 NEXT_INSN (pat) uses.
8983 (expand_unop_direct): Likewise.
8984 (maybe_emit_unop_insn): Likewise.
8985 * recog.c (peep2_attempt): Strengthen locals "last",
8986 "before_try", "x" from rtx to rtx_insn *.
8987 * reorg.c (optimize_skip): Strengthen return type and local
8988 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8989 and locals "trial", "next_trial" from rtx to rtx_insn *.
8990 * resource.c (next_insn_no_annul): Strengthen return type and
8991 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8992 rtx_sequence to clarify the code.
8993 (mark_referenced_resources): Add a checked cast to rtx_insn *
8994 within PREV_INSN (x).
8995 (find_dead_or_set_registers): Strengthen return type, param
8996 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8997 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8998 to rtx_insn **.
8999 (mark_target_live_regs): Strengthen params "insns" and "target",
9000 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
9001 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
9002 the code.
9003 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
9004 from rtx to rtx_insn *.
9005 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
9006 from rtx to rtx_insn *.
9007 (copy_reg_eh_region_note_backward): Likewise.
9008 (unshare_all_rtl_in_chain): Likewise for sole param.
9009 (dump_rtl_slim): Strengthen second and third params from const_rtx
9010 to const rtx_insn *.
9011 * sched-deps.c (sched_free_deps): Strengthen params "head" and
9012 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
9013 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
9014 "next_tail" from rtx to rtx_insn *.
9015 (begin_move_insn): Likewise for local "next".
9016 * sched-int.h (sched_free_deps): Likewise for first and second
9017 params.
9018 (no_real_insns_p): Strengthen both params from const_rtx to
9019 const rtx_insn *.
9020 (sched_setup_bb_reg_pressure_info): Strengthen second params from
9021 rtx to rtx_insn *.
9022 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
9023 "next_tail".
9024 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
9025 and locals "insn", "tail" from const_rtx to const rtx_insn *.
9026 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
9027 rtx_insn *.
9028 (debug_rtl_slim): Strengthen params "first" and "last" from
9029 const_rtx to const rtx_insn *.
9030 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
9031 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
9032 (convert_to_simple_return): Likewise for param "returnjump".
9033 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
9034 "prologue_seq".
9035 (convert_to_simple_return): Likewise for param "returnjump".
9036 * valtrack.c (propagate_for_debug): Likewise for params
9037 "insn", "last".
9038 * valtrack.h (propagate_for_debug): Likewise for second param.
9039
9040 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9041
9042 * output.h (insn_current_reference_address): Strengthen param
9043 from rtx to rtx_insn *.
9044 * final.c (insn_current_reference_address): Likewise.
9045
9046 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9047
9048 * basic-block.h (inside_basic_block_p): Strengthen param from
9049 const_rtx to const rtx_insn *.
9050 * cfgbuild.c (inside_basic_block_p): Likewise.
9051
9052 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9053
9054 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
9055 rtx_insn *.
9056 (get_trace_info): Likewise for param "insn".
9057 (save_point_p): Likewise.
9058 (maybe_record_trace_start): Likewise for both params.
9059 (maybe_record_trace_start_abnormal): Likewise.
9060 (create_trace_edges): Likewise for sole param and for three of the
9061 locals named "lab".
9062 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
9063 to rtx_insn *, and update a call to pat->element to pat->insn.
9064
9065 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9066
9067 * function.h (struct expr_status): Convert field "x_forced_labels"
9068 from rtx_expr_list * to rtx_insn_list *.
9069
9070 * cfgbuild.c (make_edges): Convert local "x" from an
9071 rtx_expr_list * to an rtx_insn_list *, replacing use of
9072 "element" method with "insn" method.
9073 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9074 * except.c (sjlj_emit_dispatch_table): Replace use of
9075 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
9076 forced_labels.
9077 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
9078 rtx_expr_list * to an rtx_insn_list *, replacing use of
9079 "element" method with "insn" method.
9080 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9081 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
9082 rtx_insn *, adding a checked cast. Replace use of
9083 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
9084 forced_labels.
9085 (expand_label): Likewise for local "label_r".
9086
9087 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9088
9089 * function.h (struct rtl_data): Convert field
9090 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
9091 rtx_insn_list *.
9092 * rtl.h (remove_node_from_insn_list): New prototype.
9093
9094 * builtins.c (expand_builtin): When prepending to
9095 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9096 gen_rtx_EXPR_LIST.
9097 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
9098 to rtx_insn_list *, and use its "insn" method rather than
9099 "element" method.
9100 * cfgrtl.c (delete_insn): Use new function
9101 remove_node_from_insn_list rather than
9102 remove_node_from_expr_list.
9103 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
9104 to rtx_insn_list *, and use its "insn" method rather than
9105 "element" method.
9106 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9107 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9108 * rtlanal.c (remove_node_from_insn_list): New function, adapted
9109 from remove_node_from_expr_list.
9110 * stmt.c (expand_label): When prepending to
9111 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
9112 gen_rtx_EXPR_LIST.
9113
9114 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9115
9116 * function.h (struct rtl_data): Strengthen fields "x_return_label"
9117 and "x_naked_return_label" from rtx to rtx_code_label *.
9118
9119 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9120
9121 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
9122 (SET_NEXT_INSN): Likewise.
9123 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
9124
9125 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
9126 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
9127 to split out the SEQUENCE from local "bundle", strengthening the
9128 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
9129 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
9130 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
9131 and the type of the elements of the "slot" array from rtx to
9132 rtx_insn *.
9133 (reorg_split_calls): Likewise for locals "insn" and "next", and
9134 the type of the elements of the "slot" array.
9135
9136 * config/frv/frv.c (frv_nops): Likewise for the elements of this
9137 array.
9138 (frv_function_prologue): Likewise for locals "insn", "next",
9139 "last_call".
9140 (frv_register_nop): Introduce a local "nop_insn" to be the
9141 rtx_insn * containing rtx "nop".
9142
9143 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
9144 used as an insn and sometimes as a pattern, so rename it to
9145 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
9146 using it where dealing with the core insn.
9147
9148 * config/picochip/picochip.c (reorder_var_tracking_notes):
9149 Strengthen locals "insn", "next", "last_insn", "queue",
9150 "next_queue", "prev" from rtx to rtx_insn *.
9151
9152 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
9153 the second param is an rtx_insn ** rather than an rtx **.
9154 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
9155 from rtx to rtx_sequence *, and introduce local named "sequence",
9156 using methods of rtx_sequence to clarify the code.
9157 (remove_insn): Introduce local rtx_sequence * named "sequence" and
9158 use its methods.
9159 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
9160 Rename param "after" to "uncast_after", reintroducing "after" as a
9161 local rtx_insn * with a checked cast.
9162 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
9163 reintroducing "after" as a local rtx_insn * with a checked cast.
9164 Strengthen local "last" from rtx to rtx_insn * and remove the
9165 now-redundant checked casts.
9166 (copy_delay_slot_insn): Strengthen return type and param from rtx
9167 to rtx_insn *.
9168
9169 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
9170 "last" from rtx to rtx_insn *.
9171
9172 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9173
9174 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
9175 param from rtx to rtx_insn *.
9176
9177 * emit-rtl.c (copy_delay_slot_insn): Likewise.
9178
9179 * reorg.c (skip_consecutive_labels): Strengthen return type, param
9180 and local "insn" from rtx to rtx_insn *.
9181 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
9182 (unfilled_slots_next): Likewise.
9183 (function_return_label): Strengthen from rtx to rtx_code_label *.
9184 (function_simple_return_label): Likewise.
9185 (first_active_target_insn): Strengthen return type and param from
9186 rtx to rtx_insn *.
9187 (find_end_label): Strengthen return type from rtx to
9188 rtx_code_label *; strengthen locals as appropriate.
9189 (emit_delay_sequence): Strengthen return type, param "insn" and
9190 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
9191 and local "li" from rtx to rtx_insn_list *, using methods of
9192 rtx_insn_list for clarity and typesafety.
9193 (add_to_delay_list): Strengthen return type and param "insn" from
9194 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
9195 rtx_insn_list * and use methods of rtx_insn_list.
9196 (delete_from_delay_slot): Strengthen return type, param "insn",
9197 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
9198 Strengthen local "seq" from rtx to rtx_sequence *, and local
9199 "delay_list" from rtx to rtx_insn_list *, using methods of
9200 rtx_sequence for clarity and type-safety.
9201 (delete_scheduled_jump): Add checked cast when invoking
9202 delete_from_delay_slot. Strengthen local "trial" from rtx to
9203 rtx_insn *.
9204 (optimize_skip): Strengthen return type and local "delay_list"
9205 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
9206 rtx_insn *.
9207 (steal_delay_list_from_target): Strengthen return type, param
9208 "delay_list" and local "new_delay_list" from rtx to
9209 rtx_insn_list *. Strengthen param "seq" from rtx to
9210 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
9211 rtx_insn **.
9212 Split out local "temp" into multiple more-tightly scoped locals:
9213 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
9214 of rtx_insn_list and rtx_sequence for clarity and typesafety.
9215 Strengthen locals named "trial" from rtx to rtx_insn *.
9216 (steal_delay_list_from_fallthrough): Strengthen return type and
9217 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
9218 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
9219 Strengthen local "trial" from rtx to rtx_insn *.
9220 (try_merge_delay_insns): Strength local "merged_insns" from rtx
9221 to rtx_insn_list * and use its methods. Strengthen local "pat"
9222 from rtx to rtx_sequence * and use its methods. Strengthen locals
9223 "dtrial" and "new_rtx" from rtx to rtx_insn *.
9224 (get_label_before): Strengthen return type and local "label" from
9225 rtx to rtx_insn *.
9226 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
9227 "next_trial", "next", prev". Strengthen local "delay_list" from
9228 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
9229 rtx_insn **.
9230 (follow_jumps): Strengthen return type, param "label" and locals
9231 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
9232 (fill_slots_from_thread): Strengthen return type, param
9233 "delay_list" from rtx to rtx_insn_list *. Strengthen params
9234 "insn", "thread", "opposite_thread" and locals "new_thread",
9235 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
9236 "sequence" from a checked cast to rtx_sequence so that we can call
9237 steal_delay_list_from_target and steal_delay_list_from_fallthrough
9238 with an rtx_sequence *.
9239 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
9240 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
9241 Strengthen local "delay_list" from rtx to rtx_insn_list *.
9242 (relax_delay_slots): Strengthen param "first" and locals "insn",
9243 "next", "trial", "delay_insn", "target_label" from rtx to
9244 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
9245 Introduce a local "trial_seq" for PATTERN (trial) of type
9246 rtx_sequence *, in both cases using methods of rtx_sequence.
9247 (dbr_schedule): Strengthen param "first" and locals "insn",
9248 "next", "epilogue_insn" from rtx to rtx_insn *.
9249
9250 2014-08-28 Richard Biener <rguenther@suse.de>
9251
9252 PR tree-optimization/62283
9253 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9254 Do not peel loops for alignment where the vector loop likely
9255 doesn't run at least VF times.
9256
9257 2014-08-28 Bin Cheng <bin.cheng@arm.com>
9258
9259 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
9260 important_candidates. Consider all important candidates if
9261 IVS doesn't give any result. Remove check on ivs->upto.
9262 (try_add_cand_for): Call iv_ca_add_use only once.
9263
9264 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9265 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9266 Anna Tikhonova <anna.tikhonova@intel.com>
9267 Ilya Tocar <ilya.tocar@intel.com>
9268 Andrey Turetskiy <andrey.turetskiy@intel.com>
9269 Ilya Verbin <ilya.verbin@intel.com>
9270 Kirill Yukhin <kirill.yukhin@intel.com>
9271 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9272
9273 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
9274 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
9275 masking.
9276 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
9277 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9278 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9279 (define_insn "*mul<mode>3"): Add EVEX version.
9280
9281 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9282 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9283 Anna Tikhonova <anna.tikhonova@intel.com>
9284 Ilya Tocar <ilya.tocar@intel.com>
9285 Andrey Turetskiy <andrey.turetskiy@intel.com>
9286 Ilya Verbin <ilya.verbin@intel.com>
9287 Kirill Yukhin <kirill.yukhin@intel.com>
9288 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9289
9290 * config/i386/sse.md
9291 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
9292 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
9293 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
9294 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
9295 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
9296 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
9297 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
9298 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
9299 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
9300 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
9301 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
9302 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
9303 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
9304 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
9305 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
9306 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
9307
9308 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9309 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9310 Anna Tikhonova <anna.tikhonova@intel.com>
9311 Ilya Tocar <ilya.tocar@intel.com>
9312 Andrey Turetskiy <andrey.turetskiy@intel.com>
9313 Ilya Verbin <ilya.verbin@intel.com>
9314 Kirill Yukhin <kirill.yukhin@intel.com>
9315 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9316
9317 * config/i386/sse.md
9318 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
9319 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
9320 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
9321
9322 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9323 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9324 Anna Tikhonova <anna.tikhonova@intel.com>
9325 Ilya Tocar <ilya.tocar@intel.com>
9326 Andrey Turetskiy <andrey.turetskiy@intel.com>
9327 Ilya Verbin <ilya.verbin@intel.com>
9328 Kirill Yukhin <kirill.yukhin@intel.com>
9329 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9330
9331 * config/i386/sse.md
9332 (define_mode_iterator VI128_256): New.
9333 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
9334
9335 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9336 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9337 Anna Tikhonova <anna.tikhonova@intel.com>
9338 Ilya Tocar <ilya.tocar@intel.com>
9339 Andrey Turetskiy <andrey.turetskiy@intel.com>
9340 Ilya Verbin <ilya.verbin@intel.com>
9341 Kirill Yukhin <kirill.yukhin@intel.com>
9342 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9343
9344 * config/i386/sse.md
9345 (define_mode_iterator VI8_256_512): New.
9346 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
9347 Ditto.
9348 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9349 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
9350 Ditto.
9351 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
9352
9353 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9354
9355 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
9356 pointer to the cumulative reloc value and return the value for
9357 this reloc instead.
9358 (compute_reloc_for_rtx): Take a const_rtx. Call
9359 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
9360 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
9361 for_each_rtx for the CONST case.
9362
9363 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9364
9365 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
9366 (mark_constants_in_pattern): ...this new function to iterate over
9367 all the subrtxes.
9368 (mark_constants): Update accordingly.
9369
9370 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9371
9372 * varasm.c: Include rtl-iter.h.
9373 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
9374 Remove the pointer to the cumulative hashval_t and just return
9375 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
9376 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9377 Accumulate the hashval_ts here instead of const_rtx_hash_1.
9378
9379 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9380
9381 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
9382 Give real type of data parameter. Remove return value.
9383 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
9384 to iterate over subrtxes.
9385
9386 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9387
9388 * var-tracking.c (use_narrower_mode_test): Turn from being a
9389 for_each_rtx callback to being a function that examines each
9390 subrtx itself.
9391 (adjust_mems): Update accordingly.
9392
9393 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9394
9395 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
9396 callback to being a function that examines each subrtx itself.
9397 Remove handling of null rtxes.
9398 (add_uses): Update accordingly.
9399
9400 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9401
9402 * var-tracking.c: Include rtl-iter.h.
9403 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
9404 to being a function that examines each subrtx itself.
9405 (use_type): Update accordingly.
9406
9407 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9408
9409 * store-motion.c: Include rtl-iter.h.
9410 (extract_mentioned_regs_1): Delete.
9411 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
9412 for_each_rtx to iterate over subrtxes.
9413
9414 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9415
9416 * sel-sched.c: Include rtl-iter.h
9417 (count_occurrences_1): Delete.
9418 (count_occurrences_equiv): Turn rtxes into const_rtxes.
9419 Use FOR_EACH_SUBRTX rather than for_each_rtx.
9420
9421 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9422
9423 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
9424 * rtlanal.c (tls_referenced_p_1): Delete.
9425 (tls_referenced_p): Take a const_rtx rather than an rtx.
9426 Use FOR_EACH_SUBRTX rather than for_each_rtx.
9427
9428 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9429
9430 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
9431 (for_each_inc_dec): Take an rtx rather than an rtx *.
9432 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
9433 (cselib_record_sets): Likewise.
9434 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
9435 (check_for_inc_dec): Likewise.
9436 * rtlanal.c (for_each_inc_dec_ops): Delete.
9437 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
9438 rather than a pointer to the memory address. Replace
9439 for_each_inc_dec_ops argument with separate function and data
9440 arguments. Abort on non-autoinc addresses.
9441 (for_each_inc_dec_find_mem): Delete.
9442 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
9443 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
9444
9445 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9446
9447 * rtl.h (find_all_hard_regs): Declare.
9448 * rtlanal.c (find_all_hard_regs): New function.
9449 (record_hard_reg_uses_1): Delete.
9450 (record_hard_reg_uses): Use find_all_hard_regs.
9451
9452 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9453
9454 * rtl.h (replace_label_data): Delete.
9455 (replace_label): Take the old label, new label and update-nuses flag
9456 as direct arguments. Return void.
9457 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
9458 * rtlanal.c (replace_label): Update interface as above. Handle
9459 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
9460 iterator. Use FOR_EACH_SUBRTX_PTR.
9461
9462 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9463
9464 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
9465 with const_rtx parameters.
9466 * varasm.c (get_pool_constant): Likewise.
9467 * rtlanal.c (rtx_referenced_p_1): Delete.
9468 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9469 Assert that the rtx we're looking for is nonnull. Allow searches
9470 for constant pool SYMBOL_REFs.
9471
9472 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9473
9474 * reload1.c: Include rtl-iter.h.
9475 (note_reg_elim_costly): Turn from being a for_each_rtx callback
9476 to being a function that examines each subrtx itself.
9477 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
9478
9479 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9480
9481 * regcprop.c (cprop_find_used_regs_1): Delete.
9482 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9483
9484 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9485
9486 * regcprop.c: Include rtl-iter.h.
9487 (kill_value): Take a const_rtx.
9488 (kill_autoinc_value): Turn from being a for_each_rtx callback
9489 to being a function that examines each subrtx itself.
9490 (copyprop_hardreg_forward_1): Update accordingly.
9491
9492 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9493
9494 * reg-stack.c: Include rtl-iter.h.
9495 (subst_stack_regs_in_debug_insn): Delete.
9496 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
9497 instead of for_each_rtx.
9498
9499 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9500
9501 * lower-subreg.c (find_decomposable_subregs): Turn from being
9502 a for_each_rtx callback to being a function that examines each
9503 subrtx itself. Remove handling of null rtxes.
9504 (decompose_multiword_subregs): Update accordingly.
9505
9506 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9507
9508 * lower-subreg.c (adjust_decomposed_uses): Delete.
9509 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
9510 Remove handling of null rtxes.
9511
9512 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9513
9514 * lower-subreg.c: Include rtl-iter.h.
9515 (resolve_subreg_use): Turn from being a for_each_rtx callback
9516 to being a function that examines each subrtx itself. Remove
9517 handling of null rtxes.
9518 (resolve_reg_notes, resolve_simple_move): Update accordingly.
9519 (decompose_multiword_subregs): Likewise.
9520
9521 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9522
9523 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
9524 to being a function that examines each subrtx itself.
9525 (simplify_using_condition, simplify_using_initial_values): Update
9526 accordingly.
9527
9528 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9529
9530 * loop-iv.c: Include rtl-iter.h.
9531 (find_single_def_src): New function.
9532 (replace_single_def_regs): Turn from being a for_each_rtx callback
9533 to being a function that examines each subrtx itself.
9534 (replace_in_expr, simplify_using_initial_values): Update accordingly.
9535
9536 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9537
9538 * jump.c (eh_returnjump_p_1): Delete.
9539 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9540 Remove handling of null rtxes.
9541
9542 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9543
9544 * jump.c: Include rtl-iter.h.
9545 (returnjump_p_1): Delete.
9546 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9547 Remove handling of null rtxes.
9548
9549 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9550
9551 * ira.c: Include rtl-iter.h.
9552 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
9553 to being a function that examines each subrtx itself. Remove
9554 handling of null rtxes.
9555 (update_equiv_regs): Update call accordingly.
9556
9557 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9558
9559 * fwprop.c: Include rtl-iter.h.
9560 (varying_mem_p): Turn from being a for_each_rtx callback to being
9561 a function that examines each subrtx itself.
9562 (propagate_rtx): Update accordingly.
9563
9564 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9565
9566 * function.c: Include rtl-iter.h
9567 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9568 callback to being a function that examines each subrtx itself.
9569 Return the changed flag.
9570 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9571 (instantiate_virtual_regs): Update calls accordingly.
9572
9573 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9574
9575 * final.c: Include rtl-iter.h.
9576 (mark_symbol_ref_as_used): Delete.
9577 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9578 for_each_rtx.
9579
9580 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9581
9582 * emit-rtl.c: Include rtl-iter.h.
9583 (find_auto_inc): Turn from being a for_each_rtx callback to being
9584 a function that examines each subrtx itself. Assume the first operand
9585 to an RTX_AUTOINC is the automodified register.
9586 (try_split): Update call accordingly.
9587
9588 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9589
9590 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9591 Return a bool, inverting the result so that 0/false means "not ok".
9592 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9593 subrtxes of a CONST.
9594 (mem_loc_descriptor, add_const_value_attribute)
9595 (resolve_addr_in_expr): Update calls accordingly.
9596
9597 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9598
9599 * dwarf2out.c: Include rtl-iter.h.
9600 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9601 Remove unused data parameter. Return a bool, inverting the result
9602 so that 0/false means "not ok".
9603 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
9604 instead of for_each_rtx.
9605
9606 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9607
9608 * dse.c: Include rtl-iter.h.
9609 (check_mem_read_rtx): Change void * parameter to real type.
9610 Remove return value.
9611 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
9612 for_each_rtx. Don't handle null rtxes.
9613
9614 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9615
9616 * df-problems.c: Include rtl-iter.h.
9617 (find_memory): Turn from being a for_each_rtx callback to being
9618 a function that examines each subrtx itself. Continue to look for
9619 volatile references even after a nonvolatile one has been found.
9620 (can_move_insns_across): Update calls accordingly.
9621
9622 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9623
9624 * ddg.c (walk_mems_2, walk_mems_1): Delete.
9625 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9626 to iterate over subrtxes. Return a bool rather than an int.
9627
9628 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9629
9630 * ddg.c: Include rtl-iter.h.
9631 (mark_mem_use_1): Rename to...
9632 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
9633 instead of for_each_rtx.
9634 (mem_read_insn_p): Update accordingly.
9635
9636 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9637
9638 * cse.c (change_cc_mode_args): Delete.
9639 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9640 a function that examines each subrtx itself. Take the fields of
9641 change_cc_mode_args as argument and return void.
9642 (cse_change_cc_mode_insn): Update calls accordingly.
9643
9644 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9645
9646 * cse.c (is_dead_reg): Change argument to const_rtx.
9647 (dead_debug_insn_data): Delete.
9648 (is_dead_debug_insn): Expand commentary. Turn from being a
9649 for_each_rtx callback to being a function that examines
9650 each subrtx itself. Take the fields of dead_debug_insn_data
9651 as argument.
9652 (delete_trivially_dead_insns): Update call accordingly.
9653
9654 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9655
9656 * cse.c (check_for_label_ref): Move earlier in file. Turn from
9657 being a for_each_rtx callback to being a function that examines
9658 each subrtx itself.
9659 (cse_extended_basic_block): Update call accordingly.
9660
9661 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9662
9663 * cse.c (check_dependence_data): Delete.
9664 (check_dependence): Change from being a for_each_rtx callback to being
9665 a function that examines all subrtxes itself. Don't handle null rtxes.
9666 (invalidate): Update call accordingly.
9667
9668 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9669
9670 * cse.c: Include rtl-iter.h.
9671 (approx_reg_cost_1): Delete.
9672 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9673 Don't handle null rtxes.
9674
9675 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9676
9677 * cfgcleanup.c: Include rtl-iter.h.
9678 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9679 to being a function that examines each subrtx itself.
9680 (thread_jump): Update accordingly.
9681
9682 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9683
9684 * combine-stack-adj.c: Include rtl-iter.h.
9685 (record_stack_refs_data): Delete.
9686 (record_stack_refs): Turn from being a for_each_rtx callback
9687 to being a function that examines each subrtx itself.
9688 Take a pointer to the reflist. Invert sense of return value
9689 so that true means success and false means failure. Don't
9690 handle null rtxes.
9691 (combine_stack_adjustments_for_block): Update accordingly.
9692
9693 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9694
9695 * combine.c (record_truncated_value): Turn from being a for_each_rtx
9696 callback to a function that takes an rtx and returns a bool
9697 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9698 for_each_rtx.
9699
9700 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9701
9702 * combine.c: Include rtl-iter.h.
9703 (unmentioned_reg_p_1): Delete.
9704 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9705 Don't handle null rtxes.
9706
9707 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9708
9709 * calls.c: Include rtl-iter.h.
9710 (internal_arg_pointer_based_exp_1): Delete.
9711 (internal_arg_pointer_based_exp): Take a const_rtx.
9712 Use FOR_EACH_SUBRTX to iterate over subrtxes.
9713
9714 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9715
9716 * caller-save.c: Include rtl-iter.h.
9717 (add_used_regs_1): Delete.
9718 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9719 to iterate over subrtxes. Assert that any remaining pseudos
9720 have been spilled.
9721
9722 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9723
9724 * bt-load.c: Include rtl-iter.h.
9725 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9726 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
9727 to iterate over subrtxes.
9728 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9729 find_btr_use rather than btr_referenced_p.
9730
9731 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9732
9733 * alias.c: Include rtl-iter.h.
9734 (refs_newer_value_cb): Delete.
9735 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9736
9737 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9738
9739 * rtl-iter.h: New file.
9740 * rtlanal.c: Include it.
9741 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9742 (generic_subrtx_iterator <T>::add_single_to_queue)
9743 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9744 (generic_subrtx_iterator <T>::free_array): New functions.
9745 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9746 (generic_subrtx_iterator <const_rtx_accessor>)
9747 (generic_subrtx_iterator <rtx_var_accessor>
9748 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9749 (setup_reg_subrtx_bounds): New function.
9750 (init_rtlanal): Call it.
9751
9752 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
9753
9754 PR target/62261
9755 * config/sh/sh.md (ashlsi3): Handle negative shift count for
9756 TARGET_SHMEDIA.
9757 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9758
9759 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9760
9761 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9762
9763 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9764
9765 * rtl.h (JUMP_LABEL_AS_INSN): New.
9766
9767 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9768
9769 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9770 rtx_expr_list **.
9771 (alloc_EXPR_LIST): Strengthen return type from rtx to
9772 rtx_expr_list *.
9773 (remove_free_EXPR_LIST_node): Likewise for param.
9774 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9775 from rtx to rtx_expr_list *.
9776 * sched-int.h (struct deps_desc): Strengthen fields
9777 "pending_read_mems" and "pending_write_mems" from rtx to
9778 rtx_expr_list *.
9779
9780 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9781 rtx to rtx_expr_list *.
9782 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9783 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9784 rtx_expr_list **.
9785 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
9786 from rtx to rtx_expr_list *.
9787 * loop-iv.c (simplify_using_initial_values): Strengthen local
9788 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9789 "pnote_next" from rtx * to rtx_expr_list **.
9790 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
9791 param "exprp" from rtx * to rtx_expr_list **.
9792 (add_insn_mem_dependence): Strengthen local "mem_list" from
9793 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
9794 to rtx_expr_list *.
9795 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9796 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
9797 param "old_mems_p" from rtx * to rtx_expr_list **.
9798 * var-tracking.c (struct adjust_mem_data): Strengthen field
9799 "side_effects" from rtx to rtx_expr_list *.
9800 (adjust_insn): Replace NULL_RTX with NULL when assigning to
9801 rtx_expr_list *.
9802 (prepare_call_arguments): Likewise.
9803
9804 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9805
9806 * function.h (struct rtl_data): Strengthen field
9807 "x_stack_slot_list" from rtx to rtx_expr_list *.
9808
9809 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9810 when assigning to stack_slot_list.
9811
9812 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9813
9814 * function.h (struct rtl_data): Strengthen field
9815 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9816 * rtl.h (remove_node_from_expr_list): Strengthen second param from
9817 rtx * to rtx_expr_list **.
9818
9819 * cfgbuild.c (make_edges): In loop over
9820 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9821 rtx_expr_list *, and use methods of the latter class to clarify
9822 the code.
9823 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9824 rtx_expr_list *, and use methods of the latter class to clarify
9825 the code.
9826 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9827 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9828 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9829 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
9830 to rtx_expr_list *. Use methods of the latter class to clarify
9831 the code.
9832
9833 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9834
9835 * function.h (struct expr_status): Strengthen field
9836 "x_forced_labels" from rtx to rtx_expr_list *.
9837
9838 * cfgbuild.c (make_edges): Split local "x" into two locals,
9839 strengthening one from rtx to rtx_expr_list *, and using methods
9840 of said class.
9841 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9842 loop over forced_labels, introduce strengthen it from rtx to
9843 rtx_expr_list *, using methods to clarify the code.
9844 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9845 to rtx_expr_list *, using methods of said class to clarify the
9846 code.
9847 * reload1.c (set_initial_label_offsets): Split local "x" into two
9848 per-loop variables, strengthening the first from rtx to
9849 rtx_expr_list * and using methods.
9850
9851 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9852
9853 * coretypes.h (class rtx_expr_list): Add forward declaration.
9854 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9855 * gengenrtl.c (special_rtx): Add EXPR_LIST.
9856 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9857 invariant: GET_CODE (X) == EXPR_LIST.
9858 (is_a_helper <rtx_expr_list *>::test): New.
9859 (rtx_expr_list::next): New.
9860 (rtx_expr_list::element): New.
9861 (gen_rtx_EXPR_LIST): New.
9862
9863 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9864
9865 * varasm.c (mark_constants): Convert a GET_CODE check into a
9866 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9867 Use methods of rtx_sequence to clarify the code.
9868
9869 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9870
9871 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9872 local "seq" via a checked cast, and use methods of rtx_sequence
9873 to simplify the code.
9874
9875 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9876
9877 * resource.c (mark_referenced_resources): Strengthen local
9878 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9879 using methods of rtx_sequence to clarify the code.
9880 (find_dead_or_set_registers): Within the switch statement, convert
9881 a GET_CODE check to a dyn_cast, introducing local "seq". Within
9882 the JUMP_P handling, introduce another local "seq", adding a
9883 checked cast to rtx_sequence *. In both cases, use methods of
9884 rtx_sequence to clarify the code.
9885 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9886 via a checked cast, and use methods of rtx_sequence to simplify
9887 the code.
9888
9889 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9890
9891 * reorg.c (redundant_insn): In two places in the function, replace
9892 a check of GET_CODE with a dyn_cast, introducing local "seq", and
9893 usings methods of rtx_sequence to clarify the code.
9894
9895 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9896
9897 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9898 local "seq" with a checked cast, and use methods of rtx_sequence
9899 to clarify the code.
9900
9901 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9902
9903 * function.c (contains): Introduce local "seq" for PATTERN (insn),
9904 with a checked cast, in the region for where we know it's a
9905 SEQUENCE. Use methods of rtx_sequence.
9906
9907 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9908
9909 * final.c (get_attr_length_1): Replace GET_CODE check with a
9910 dyn_cast, introducing local "seq" and the use of methods of
9911 rtx_sequence.
9912 (shorten_branches): Likewise, introducing local "body_seq".
9913 Strengthen local "inner_insn" from rtx to rtx_insn *.
9914 (reemit_insn_block_notes): Replace GET_CODE check with a
9915 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9916 Use methods of rtx_sequence.
9917 (final_scan_insn): Likewise, introducing local "seq" for when
9918 "body" is known to be a SEQUENCE, using its methods.
9919
9920 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9921
9922 * except.c (can_throw_external): Strengthen local "seq" from rtx
9923 to rtx_sequence *. Use methods of rtx_sequence.
9924 (insn_nothrow_p): Likewise.
9925
9926 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9927
9928 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9929 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9930 Use methods of rtx_sequence.
9931 (scan_trace): Likewise for local "pat".
9932
9933 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9934
9935 * coretypes.h (class rtx_sequence): Add forward declaration.
9936 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9937 invariant: GET_CODE (X) == SEQUENCE.
9938 (is_a_helper <rtx_sequence *>::test): New.
9939 (is_a_helper <const rtx_sequence *>::test): New.
9940 (rtx_sequence::len): New.
9941 (rtx_sequence::element): New.
9942 (rtx_sequence::insn): New.
9943
9944 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9945
9946 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9947 rtx_insn_list **.
9948 (alloc_INSN_LIST): Strengthen return type from rtx to
9949 rtx_insn_list *.
9950 (copy_INSN_LIST): Likewise for return type and param.
9951 (concat_INSN_LIST): Likewise for both params and return type.
9952 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9953 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9954 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9955 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9956
9957 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9958 "implicit_sets", "control_uses", "clobbers" from rtx to
9959 rtx_insn_list *.
9960 (struct deps_desc): Likewise for fields "pending_read_insns",
9961 "pending_write_insns", "pending_jump_insns",
9962 "last_pending_memory_flush", "last_function_call",
9963 "last_function_call_may_noreturn", "sched_before_next_call",
9964 "sched_before_next_jump".
9965 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9966 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9967
9968 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9969 from rtx to rtx_insn_list *.
9970 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9971 rtx_insn_list *.
9972
9973 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9974 to rtx_insn_list **.
9975 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9976 rtx_insn_list *.
9977 (queue_insn): Likewise for local "link".
9978 (struct haifa_saved_data): Strengthen field "insn_queue" from
9979 rtx * to rtx_insn_list **.
9980 (save_backtrack_point): Update allocation of save->insn_queue to
9981 reflect the strengthening of elements from rtx to rtx_insn_list *.
9982 (queue_to_ready): Strengthen local "link" from rtx to
9983 rtx_insn_list *; use methods "next" and "insn" when traversing the
9984 list.
9985 (early_queue_to_ready): Likewise for locals "link", "next_link",
9986 "prev_link".
9987 (schedule_block): Update allocation of insn_queue to reflect the
9988 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9989 local "link" from rtx to rtx_insn_list *, and use methods when
9990 working it.
9991 (add_to_speculative_block): Strengthen locals "twins" and
9992 "next_node" from rtx to rtx_insn_list *, and use methods when
9993 working with them. Strengthen local "twin" from rtx to
9994 rtx_insn *, eliminating a checked cast.
9995 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9996 from rtx to rtx_insn_list *, and use methods when working with
9997 them.
9998
9999 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
10000 from rtx to rtx_insn_list *, adding a checked cast.
10001 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
10002 rtx_insn_list **.
10003 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
10004 "newlink" from rtx to rtx_insn_list *. Strengthen local
10005 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
10006 from rtx to rtx_insn *.
10007 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
10008 from rtx to rtx_insn_list *. Use methods of the latter class.
10009 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
10010 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
10011 (remove_free_INSN_LIST_node): Strengthen return type and local
10012 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
10013 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
10014 rtx_insn_list *, using "insn" method.
10015
10016 * sched-deps.c (add_dependence_list): Strengthen param "list"
10017 from rtx to rtx_insn_list *, and use methods when working with it.
10018 (add_dependence_list_and_free): Strengthen param "listp" from
10019 rtx * to rtx_insn_list **.
10020 (remove_from_dependence_list): Strenghten param "listp" from rtx *
10021 to rtx_insn_list **, and use methods when working with *listp.
10022 (remove_from_both_dependence_lists): Strengthen param "listp" from
10023 rtx * to rtx_insn_list **
10024 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
10025 to rtx_insn_list **. Eliminate local "link", in favor of two new
10026 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
10027 respectively.
10028 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
10029 by introducing local "cond_deps".
10030 (remove_from_deps): Strengthen param "insn" from rtx to
10031 rtx_insn *.
10032
10033 * sched-rgn.c (concat_insn_mem_list): Strengthen param
10034 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
10035 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
10036 Use methods of rtx_insn_list.
10037
10038 * store-motion.c (struct st_expr): Strengthen fields
10039 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
10040 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
10041 rtx_insn_list *.
10042 (find_moveable_store): Split out "tmp" into multiple more-tightly
10043 scoped locals. Use methods of rtx_insn_list *.
10044 (compute_store_table): Strengthen local "tmp" from rtx to
10045 rtx_insn *. Use methods of rtx_insn_list *.
10046
10047 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10048
10049 * coretypes.h (class rtx_insn_list): Add forward declaration.
10050 * rtl.h (class rtx_insn_list): New subclass of rtx_def
10051 (is_a_helper <rtx_insn_list *>::test): New.
10052 (rtx_insn_list::next): New.
10053 (rtx_insn_list::insn): New.
10054 (gen_rtx_INSN_LIST): Add prototype.
10055 * emit-rtl.c (gen_rtx_INSN_LIST): New.
10056 * gengenrtl.c (special_rtx): Add INSN_LIST.
10057
10058 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10059
10060 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
10061 "prev" from rtx to rtx_insn *.
10062
10063 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10064
10065 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
10066 functions. Require merely an rtx for now, not an rtx_insn *.
10067 (BLOCK_FOR_INSN): Likewise.
10068 (INSN_LOCATION): Likewise.
10069 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
10070
10071 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10072
10073 * rtl.h (PATTERN): Convert this macro into a pair of inline
10074 functions, for now, requiring const_rtx and rtx.
10075
10076 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10077
10078 * target.def (unwind_emit): Strengthen param "insn" from rtx to
10079 rtx_insn *.
10080 (final_postscan_insn): Likewise.
10081 (adjust_cost): Likewise.
10082 (adjust_priority): Likewise.
10083 (variable_issue): Likewise.
10084 (macro_fusion_pair_p): Likewise.
10085 (dfa_post_cycle_insn): Likewise.
10086 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
10087 (first_cycle_multipass_issue): Likewise.
10088 (dfa_new_cycle): Likewise.
10089 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
10090 (speculate_insn): Likewise for param "insn".
10091 (gen_spec_check): Likewise for params "insn" and "label".
10092 (get_insn_spec_ds): Likewise for param "insn".
10093 (get_insn_checked_ds): Likewise.
10094 (dispatch_do): Likewise.
10095 (dispatch): Likewise.
10096 (cannot_copy_insn_p): Likewise.
10097 (invalid_within_doloop): Likewise.
10098 (legitimate_combined_insn): Likewise.
10099 (needed): Likewise.
10100 (after): Likewise.
10101
10102 * doc/tm.texi: Automatically updated to reflect changes to
10103 target.def.
10104
10105 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
10106 working with insn.
10107 (schedule_block): Likewise.
10108 (sched_init): Likewise.
10109 (sched_speculate_insn): Strengthen param "insn" from rtx to
10110 rtx_insn *.
10111 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
10112 working with insn.
10113 * hooks.c (hook_bool_rtx_true): Rename to...
10114 hook_bool_rtx_insn_true): ...this, and strengthen first param from
10115 rtx to rtx_insn *.
10116 (hook_constcharptr_const_rtx_null): Rename to...
10117 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10118 first param from const_rtx to const rtx_insn *.
10119 (hook_bool_rtx_int_false): Rename to...
10120 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10121 param from rtx to rtx_insn *.
10122 (hook_void_rtx_int): Rename to...
10123 (hook_void_rtx_insn_int): ...this, and strengthen first param from
10124 rtx to rtx_insn *.
10125
10126 * hooks.h (hook_bool_rtx_true): Rename to...
10127 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
10128 rtx to rtx_insn *.
10129 (hook_bool_rtx_int_false): Rename to...
10130 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
10131 param from rtx to rtx_insn *.
10132 (hook_void_rtx_int): Rename to...
10133 (hook_void_rtx_insn_int): ...this, and strengthen first param from
10134 rtx to rtx_insn *.
10135 (hook_constcharptr_const_rtx_null): Rename to...
10136 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
10137 first param from const_rtx to const rtx_insn *.
10138
10139 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
10140 and local "prev" from rtx to rtx_insn *.
10141
10142 * sched-int.h (sched_speculate_insn): Strengthen first param from
10143 rtx to rtx_insn *.
10144
10145 * sel-sched.c (create_speculation_check): Likewise for local "label".
10146 * targhooks.c (default_invalid_within_doloop): Strengthen param
10147 "insn" from const_rtx to const rtx_insn *.
10148 * targhooks.h (default_invalid_within_doloop): Strengthen param
10149 from const_rtx to const rtx_insn *.
10150
10151 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
10152 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
10153
10154 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
10155 "insn".
10156 (arc_invalid_within_doloop): Likewise, with const.
10157
10158 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
10159 (arm_cannot_copy_insn_p): Likewise for param "insn".
10160 (arm_unwind_emit): Likewise.
10161
10162 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
10163 "dep_insn".
10164
10165 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
10166 (c6x_variable_issue): Likewise. Removed now-redundant checked
10167 cast.
10168 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
10169
10170 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
10171 Likewise for param "insn".
10172 (epiphany_mode_after): Likewise.
10173 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
10174 params "insn", "dep_insn".
10175 (epiphany_mode_needed): Likewise for param "insn".
10176 (epiphany_mode_after): Likewise.
10177
10178 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
10179 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10180 (ix86_avx_u128_mode_needed): Likewise.
10181 (ix86_i387_mode_needed): Likewise.
10182 (ix86_mode_needed): Likewise.
10183 (ix86_avx_u128_mode_after): Likewise.
10184 (ix86_mode_after): Likewise.
10185 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
10186 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
10187 (ix86_adjust_priority): Likewise for param "insn".
10188 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
10189 (do_dispatch): Likewise.
10190 (has_dispatch): Likewise.
10191 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
10192
10193 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
10194 reflect renaming of default hook implementation from
10195 hook_constcharptr_const_rtx_null to
10196 hook_constcharptr_const_rtx_insn_null.
10197 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
10198 rtx to rtx_insn *.
10199 (ia64_variable_issue): Likewise for param "insn".
10200 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
10201 (ia64_dfa_new_cycle): Likewise.
10202 (ia64_get_insn_spec_ds): Likewise.
10203 (ia64_get_insn_checked_ds): Likewise.
10204 (ia64_speculate_insn): Likewise.
10205 (ia64_gen_spec_check): Likewise for params "insn", "label".
10206 (ia64_asm_unwind_emit): Likewise for param "insn".
10207
10208 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
10209
10210 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
10211 "insn", "def_insn".
10212 (m68k_sched_variable_issue): Likewise for param "insn".
10213
10214 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
10215 "def_insn".
10216
10217 * config/microblaze/microblaze.c (microblaze_adjust_cost):
10218 Likewise for params "insn", "dep".
10219
10220 * config/mips/mips.c (mips_adjust_cost): Likewise.
10221 (mips_variable_issue): Likewise for param "insn".
10222 (mips_final_postscan_insn): Likewise.
10223
10224 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
10225 for params "insn", "dep".
10226
10227 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
10228 "dep_insn".
10229 (pa_adjust_priority): Likewise for param "insn".
10230
10231 * config/picochip/picochip.c (picochip_sched_adjust_cost):
10232 Likewise for params "insn", "dep_insn".
10233
10234 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
10235 param "insn".
10236 (rs6000_variable_issue): Likewise.
10237 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
10238 (rs6000_debug_adjust_cost): Likewise.
10239 (rs6000_adjust_priority): Likewise for param "insn".
10240 (rs6000_use_sched_lookahead_guard): Likewise.
10241 (get_next_active_insn): Likewise for return type and both params.
10242 (redefine_groups): Likewise for params "prev_head_insn", "tail"
10243 and locals "insn", "next_insn".
10244 (pad_groups): Likewise.
10245
10246 * config/s390/s390.c (s390_adjust_priority): Likewise for param
10247 "insn".
10248 (s390_cannot_copy_insn_p): Likewise.
10249 (s390_sched_variable_issue): Likewise for third param, eliminating
10250 checked cast.
10251 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
10252 default hook implementation from hook_constcharptr_const_rtx_null
10253 to hook_constcharptr_const_rtx_insn_null.
10254
10255 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
10256 from rtx to rtx_insn *.
10257 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
10258 (sh_variable_issue): Likewise for param "insn".
10259 (sh_dfa_new_cycle): Likewise.
10260 (sh_mode_needed): Likewise.
10261 (sh_mode_after): Likewise.
10262
10263 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
10264 params "insn", "dep_insn".
10265 (hypersparc_adjust_cost): Likewise.
10266 (sparc_adjust_cost): Likewise.
10267
10268 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
10269 param, eliminated checked cast.
10270 (spu_sched_adjust_cost): Likewise for first and third params.
10271
10272 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
10273 params "insn" and "dep_insn" from rtx to rtx_insn *.
10274
10275 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
10276
10277 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10278
10279 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
10280 (set_is_load_p): ...this, updating to work on a SET pattern rather
10281 than an insn.
10282 (is_store_insn): Rename to...
10283 (set_is_store_p): ...this, updating to work on a SET pattern
10284 rather than an insn.
10285 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
10286 top of function to where it is needed. Rewrite the bogus
10287 condition that checks for "insn" and "dep" being PARALLEL to
10288 instead use single_set, introducing locals "insn_set" and
10289 "dep_set". Given that we only ever returned "cost" for a non-pair
10290 of SETs, bail out early if we don't have a pair of SET.
10291 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
10292 use the new locals "insn_set" and "dep_set", and update calls to
10293 is_load_insn and is_store_insn to be calls to set_is_load_p and
10294 set_is_store_p.
10295
10296 2014-08-27 Guozhi Wei <carrot@google.com>
10297
10298 PR target/62262
10299 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
10300 amount before using it.
10301
10302 2014-08-27 Richard Biener <rguenther@suse.de>
10303
10304 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
10305 get_maxval_strlen inside a more useful API.
10306 (gimple_fold_builtin_with_strlen): Remove and fold into ...
10307 (gimple_fold_builtin): ... caller.
10308 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
10309 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
10310 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
10311 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
10312 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
10313 gimple_fold_builtin_sprintf): Adjust to compute maxval
10314 themselves.
10315
10316 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
10317
10318 PR other/62248
10319 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
10320
10321 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10322 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10323 Anna Tikhonova <anna.tikhonova@intel.com>
10324 Ilya Tocar <ilya.tocar@intel.com>
10325 Andrey Turetskiy <andrey.turetskiy@intel.com>
10326 Ilya Verbin <ilya.verbin@intel.com>
10327 Kirill Yukhin <kirill.yukhin@intel.com>
10328 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10329
10330 * config/i386/sse.md
10331 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
10332 Use `concat_tg_mode' attribute to determine asm register size.
10333
10334 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10335 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10336 Anna Tikhonova <anna.tikhonova@intel.com>
10337 Ilya Tocar <ilya.tocar@intel.com>
10338 Andrey Turetskiy <andrey.turetskiy@intel.com>
10339 Ilya Verbin <ilya.verbin@intel.com>
10340 Kirill Yukhin <kirill.yukhin@intel.com>
10341 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10342
10343 * config/i386/sse.md
10344 (define_mode_iterator VI48_AVX512VL): New.
10345 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
10346 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
10347 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
10348 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10349 with VI1): Change mode iterator.
10350 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10351 with VI_ULOADSTORE_BW_AVX512VL): New.
10352 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10353 with VI_ULOADSTORE_F_AVX512VL): Ditto.
10354 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10355 with VI1): Change mode iterator.
10356 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10357 with VI_ULOADSTORE_BW_AVX512VL): New.
10358 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10359 with VI_ULOADSTORE_F_AVX512VL): Ditto.
10360 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10361 with VI1): Change mode iterator.
10362 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10363 with VI_ULOADSTORE_BW_AVX512VL): New.
10364 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10365 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
10366 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
10367 (define_insn "<avx512>_storedqu<mode>_mask" with
10368 VI48_AVX512VL): New.
10369 (define_insn "<avx512>_storedqu<mode>_mask" with
10370 VI12_AVX512VL): Ditto.
10371
10372 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10373 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10374 Anna Tikhonova <anna.tikhonova@intel.com>
10375 Ilya Tocar <ilya.tocar@intel.com>
10376 Andrey Turetskiy <andrey.turetskiy@intel.com>
10377 Ilya Verbin <ilya.verbin@intel.com>
10378 Kirill Yukhin <kirill.yukhin@intel.com>
10379 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10380
10381 * config/i386/sse.md
10382 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
10383 (define_mode_iterator VI48_AVX512BW): New.
10384 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
10385 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10386 with VI48_AVX2_48_AVX512F): New.
10387 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10388 with VI2_AVX512VL): Ditto.
10389
10390 2014-08-27 Richard Biener <rguenther@suse.de>
10391
10392 PR middle-end/62239
10393 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
10394 (fold_builtin_3): Do not fold strcat_chk here.
10395 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
10396 from builtins.c.
10397 (gimple_fold_builtin): Fold strcat_chk here.
10398
10399 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
10400
10401 * dwarf2out.h (dwarf2out_decl): Remove prototype.
10402 * dwarf2out.c (dwarf2out_decl): Make static.
10403
10404 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
10405
10406 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
10407
10408 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10409
10410 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
10411 from rtx to rtx_insn *.
10412 (cselib_lookup_from_insn): Likewise for final param.
10413 (cselib_subst_to_values_from_insn): Likewise.
10414 (cselib_add_permanent_equiv): Likewise.
10415
10416 * cselib.c (cselib_current_insn): Likewise for this variable.
10417 (cselib_subst_to_values_from_insn): Likewise for param "insn".
10418 (cselib_lookup_from_insn): Likewise.
10419 (cselib_add_permanent_equiv): Likewise for param "insn" and local
10420 "save_cselib_current_insn".
10421 (cselib_process_insn): Replace use of NULL_RTX with NULL.
10422
10423 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
10424 from rtx to rtx_insn *.
10425
10426 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10427
10428 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
10429 rtx_insn *.
10430
10431 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10432
10433 * df.h (df_dump_insn_problem_function): Strengthen first param of
10434 this callback from const_rtx to const rtx_insn *.
10435 (struct df_insn_info): Strengthen field "insn" from rtx to
10436 rtx_insn *.
10437 (DF_REF_INSN): Eliminate this function, reinstating the older
10438 macro definition.
10439 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
10440 (df_reg_defined): Likewise.
10441 (df_find_use): Likewise.
10442 (df_reg_used): Likewise.
10443 (df_dump_insn_top): Strengthen param 1 from const_rtx to
10444 const rtx_insn *.
10445 (df_dump_insn_bottom): Likewise.
10446 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
10447 (df_insn_debug_regno): Likewise.
10448 (debug_df_insn): Likewise.
10449 (df_rd_simulate_one_insn): Likewise for param 2.
10450 (df_word_lr_simulate_defs): Likewise for param 1.
10451 (df_word_lr_simulate_uses): Likewise.
10452 (df_md_simulate_one_insn): Likewise for param 2.
10453 (df_simulate_find_noclobber_defs): Likewise for param 1.
10454 (df_simulate_find_defs): Likewise.
10455 (df_simulate_defs): Likewise.
10456 (df_simulate_uses): Likewise.
10457 (df_simulate_one_insn_backwards): Likewise for param 2.
10458 (df_simulate_one_insn_forwards): Likewise.
10459 (df_uses_create): Likewise for param 2.
10460 (df_insn_create_insn_record): Likewise for param 1.
10461 (df_insn_delete): Likewise.
10462 (df_insn_rescan): Likewise.
10463 (df_insn_rescan_debug_internal): Likewise.
10464 (df_insn_change_bb): Likewise.
10465 (df_notes_rescan): Likewise.
10466 * rtl.h (remove_death): Likewise for param 2.
10467 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
10468 const rtx_insn *.
10469 * sched-int.h (reemit_notes): Strengthen param from rtx to
10470 rtx_insn *.
10471 * valtrack.h (propagate_for_debug): Likewise for param 1.
10472
10473 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
10474 local "tmp_rtx" from const_rtx to const rtx_insn *.
10475 * combine.c (remove_death): Strengthen param "insn" from rtx to
10476 rtx_insn *.
10477 (move_deaths): Likewise for local "where_dead".
10478 * cse.c (delete_trivially_dead_insns): Introduce local
10479 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
10480 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
10481 rtx_insn *.
10482 (df_reg_defined): Likewise.
10483 (df_find_use): Likewise.
10484 (df_reg_used): Likewise.
10485 (df_dump_insn_problem_data): Strengthen param "insn" from
10486 const_rtx to const rtx_insn *.
10487 (df_dump_insn_top): Likewise.
10488 (df_dump_insn_bottom): Likewise.
10489 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
10490 (df_insn_debug_regno): Likewise.
10491 (debug_df_insn): Likewise.
10492 (DF_REF_INSN): Delete.
10493 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
10494 from rtx to rtx_insn *.
10495 (df_chain_insn_top_dump): Strengthen param "insn" from
10496 const_rtx to const rtx_insn *.
10497 (df_chain_insn_bottom_dump): Likewise.
10498 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
10499 rtx_insn *.
10500 (df_word_lr_simulate_uses): Likewise.
10501 (df_print_note): Likewise.
10502 (df_remove_dead_and_unused_notes): Likewise.
10503 (df_set_unused_notes_for_mw): Likewise.
10504 (df_set_dead_notes_for_mw): Likewise.
10505 (df_create_unused_note): Likewise.
10506 (df_simulate_find_defs): Likewise.
10507 (df_simulate_find_uses): Likewise.
10508 (df_simulate_find_noclobber_defs): Likewise.
10509 (df_simulate_defs): Likewise.
10510 (df_simulate_uses): Likewise.
10511 (df_simulate_one_insn_backwards): Likewise.
10512 (df_simulate_one_insn_forwards): Likewise.
10513 (df_md_simulate_one_insn): Likewise.
10514 * df-scan.c (df_uses_create): Likewise.
10515 (df_insn_create_insn_record): Likewise.
10516 (df_insn_delete): Likewise.
10517 (df_insn_rescan): Likewise.
10518 (df_insn_rescan_debug_internal): Likewise.
10519 (df_insn_change_bb): Likewise.
10520 (df_notes_rescan): Likewise.
10521 (df_refs_add_to_chains): Likewise.
10522 (df_insn_refs_verify): Likewise.
10523 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
10524 when invoking df_insn_delete.
10525 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
10526 (set_unique_reg_note): Add checked cast.
10527 * final.c (cleanup_subreg_operands): Likewise.
10528 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
10529 "insn" from rtx to rtx_insn *.
10530 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
10531 "last" from rtx to rtx_insn *.
10532 * ira-emit.c (change_regs_in_insn): New function.
10533 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
10534 Invoke change_regs_in_insn rather than change_regs.
10535 * ira.c (update_equiv_regs): Strengthen locals "insn",
10536 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
10537 for_each_rtx_in_insn rather than for_each_rtx.
10538 * recog.c (confirm_change_group): Add checked casts.
10539 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
10540 Add checked cast.
10541 (peep2_fill_buffer): Add checked cast.
10542 * rtlanal.c (remove_note): Likewise.
10543 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
10544 locals "next" "end" from rtx to rtx_insn *.
10545
10546 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10547
10548 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
10549 to rtx_insn *.
10550 (struct reg_use_data): Likewise for field "insn".
10551 (insn_cost): Likewise for param.
10552 (real_insn_for_shadow): Likewise for return type and param.
10553 (increase_insn_priority): Likewise for param 1.
10554 (debug_dependencies): Likewise for both params.
10555
10556 * haifa-sched.c (insn_delay): Likewise for param "insn".
10557 (real_insn_for_shadow): Likewise for return type and param "insn".
10558 (update_insn_after_change): Likewise for param "insn".
10559 (recompute_todo_spec): Likewise for param "next" and locals "pro",
10560 "other".
10561 (insn_cost): Likewise for param "insn".
10562 (increase_insn_priority): Likewise.
10563 (calculate_reg_deaths): Likewise.
10564 (setup_insn_reg_pressure_info): Likewise.
10565 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10566 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10567 (model_recompute): Likewise.
10568 (must_restore_pattern_p): Likewise for param "next".
10569 (model_excess_cost): Likewise for param "insn".
10570 (queue_remove): Likewise.
10571 (adjust_priority): Likewise for param "prev".
10572 (update_register_pressure): Likewise for param "insn".
10573 (setup_insn_max_reg_pressure): Likewise for local "insn".
10574 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10575 (model_add_to_schedule): Likewise.
10576 (model_reset_queue_indices): Likewise for local "insn".
10577 (unschedule_insns_until): Strengthen local "recompute_vec" from
10578 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
10579 "con" from rtx to rtx_insn *.
10580 (restore_last_backtrack_point): Likewise for both locals "x". Add
10581 checked casts.
10582 (estimate_insn_tick): Likewise for param "insn".
10583 (commit_schedule): Likewise for params "prev_head", "tail" and
10584 local "x".
10585 (verify_shadows): Likewise for locals "i1", "i2".
10586 (dump_insn_stream): Likewise for params "head", "tail" and locals
10587 "next_tail", "insn".
10588 (schedule_block): Likewise for locals "insn", "x". Add a checked
10589 cast.
10590 (fix_inter_tick): Likewise for params "head", "tail".
10591 (create_check_block_twin): Likewise for local "jump".
10592 (haifa_change_pattern): Likewise for param "insn".
10593 (haifa_speculate_insn): Likewise.
10594 (dump_new_block_header): Likewise for params "head", "tail".
10595 (fix_jump_move): Likewise for param "jump".
10596 (move_block_after_check): Likewise.
10597 (sched_init_insn_luid): Likewise for param "insn".
10598 (sched_init_luids): Likewise for local "insn".
10599 (insn_luid): Likewise for param "insn".
10600 (init_h_i_d): Likewise.
10601 (haifa_init_h_i_d): Likewise for local "insn".
10602 (haifa_init_insn): Likewise for param "insn".
10603 * sched-deps.c (add_dependence): Likewise for local "real_pro",
10604 "other".
10605 (create_insn_reg_use): Likewise for param "insn".
10606 (setup_insn_reg_uses): Likewise. Add a checked cast.
10607 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10608 "tail" from rtx to rtx_insn *.
10609 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10610 "insn", "next_tail".
10611
10612 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10613
10614 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10615 from rtx to rtx_insn *.
10616 (model_add_to_schedule): Likewise for locals "start", "end",
10617 "iter".
10618
10619 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10620
10621 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10622 rtx_insn *.
10623 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
10624 "to" and locals "insn", "next", "copy". Remove now-redundant
10625 checked cast.
10626
10627 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10628
10629 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10630 rtx_insn * and param 4 from rtx * to rtx_insn **.
10631 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10632 param 2 from rtx * to rtx_insn **.
10633
10634 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10635 rtx_insn * and final param from rtx * to rtx_insn **.
10636
10637 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10638 from rtx to rtx_insn *.
10639 (try_head_merge_bb): Likewise for both locals named "move_upto".
10640 * df-problems.c (can_move_insns_across): Likewise for params
10641 "from", "to", "across_from", "across_to" and locals "insn",
10642 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
10643 rtx_insn **.
10644 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10645 from rtx to rtx_insn *.
10646 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10647 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10648 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10649 rtx_insn *.
10650 (noce_try_abs): Likewise.
10651 (noce_get_condition): Likewise for param "jump". Strengthen param
10652 "earliest" from rtx * to rtx_insn **.
10653 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10654 rtx_insn *.
10655 (find_cond_trap): Likewise.
10656 (dead_or_predicable): Likewise for local "earliest".
10657 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
10658 checked cast.
10659 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10660 and local "prev". Strengthen param "earliest" from rtx * to
10661 rtx_insn **.
10662 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10663 Strengthen param "earliest" from rtx * to rtx_insn **.
10664
10665 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10666
10667 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10668 "to" and local "insn" from rtx to rtx_insn *.
10669
10670 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10671
10672 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10673 from rtx to rtx_insn *.
10674 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10675 (code_motion_path_driver): Likewise for local "last_insn".
10676 (simplify_changed_insns): Likewise for local "insn".
10677
10678 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10679
10680 * rtl.h (push_to_sequence): Strengthen param from rtx to
10681 rtx_insn *.
10682 (push_to_sequence2): Likewise for both params.
10683 (delete_insns_since): Likewise for param.
10684 (reorder_insns_nobb): Likewise for all three params.
10685 (set_new_first_and_last_insn): Likewise for both params.
10686
10687 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10688 rtx_insn *. Remove now-redundant cast.
10689 (set_last_insn): Likewise.
10690
10691 * builtins.c (expand_builtin_return): Strengthen local
10692 "call_fusage" from rtx to rtx_insn *.
10693 * cfgrtl.c (create_basic_block_structure): Likewise for local
10694 "after".
10695 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10696 "first", "last" and local "insn".
10697 (delete_insns_since): Likewise for param "from".
10698 (reorder_insns_nobb): Likewise for params "from", "to", "after"
10699 and local "x".
10700 (push_to_sequence): Likewise for param "first" and local "last".
10701 (push_to_sequence2): Likewise for params "first" and "last".
10702 * lra.c (emit_add3_insn): Likewise for local "last".
10703 (lra_emit_add): Likewise.
10704 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10705 "last_insn".
10706 (process_address_1): Likewise for locals "insn", last".
10707 * modulo-sched.c (ps_first_note): Likewise for return type.
10708 * optabs.c (expand_binop_directly): Likewise for param "last".
10709
10710 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10711
10712 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10713 to rtx_insn*.
10714 * emit-rtl.c (get_last_insn_anywhere): Likewise.
10715
10716 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10717
10718 * function.h (struct sequence_stack): Strengthen fields "first"
10719 and "last" from rtx to rtx_insn *.
10720 (struct emit_status): Likewise for fields "x_first_insn" and
10721 "x_last_insn".
10722
10723 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10724 (set_first_insn): Add checked cast.
10725 (get_last_insn): Remove now-redundant checked cast.
10726 (set_last_insn): Add checked cast.
10727
10728 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10729 "saved_first" and "saved_last" from rtx to rtx_insn *.
10730
10731 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10732
10733 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10734 (unlink_insn_chain): Strengthen both params from rtx to
10735 rtx_insn *.
10736
10737 * cfgrtl.c (cfg_layout_function_header): Likewise for this
10738 variable.
10739 (unlink_insn_chain): Likewise for params "first" and "last".
10740 Remove now-redundant checked cast.
10741 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10742 (fixup_reorder_chain): Strengthen local "insn" from rtx to
10743 rtx_insn *.
10744 * emit-rtl.c (link_insn_into_chain): Likewise for all three
10745 params.
10746 (add_insn): Likewise for param "insn" and local "prev".
10747 (add_insn_after_nobb): Likewise for both params and local "next".
10748 (add_insn_before_nobb): Likewise for both params and local "prev".
10749 (add_insn_after): Rename param "after" to "uncast_after",
10750 introducing local "after" with another checked cast.
10751 (add_insn_before): Rename params "insn" and "before", giving them
10752 "uncast_" prefixes, adding the old names back using checked casts.
10753 (emit_note_after): Likewise for param "after".
10754 (emit_note_before): Likewise for param "before".
10755 (emit_label): Add a checked cast.
10756
10757 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10758
10759 * cselib.h (cselib_record_sets_hook): Strengthen initial param
10760 "insn" from rtx to rtx_insn *.
10761
10762 * cselib.c (cselib_record_sets_hook): Likewise.
10763
10764 * var-tracking.c (add_with_sets): Likewise, renaming back from
10765 "uncast_insn" to "insn" and eliminating the checked cast from rtx
10766 to rtx_insn *.
10767
10768 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10769
10770 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10771 and "header_" from rtx to rtx_insn *.
10772 (struct basic_block_d): Likewise for field "head_" within "x"
10773 field of union basic_block_il_dependent.
10774 (BB_HEAD): Drop function...
10775 (SET_BB_HEAD): ...and this function in favor of...
10776 (BB_HEAD): ...reinstate macro.
10777 (BB_END): Drop function...
10778 (SET_BB_END): ...and this function in favor of...
10779 (BB_END): ...reinstate macro.
10780 (BB_HEADER): Drop function...
10781 (SET_BB_HEADER): ...and this function in favor of...
10782 (BB_HEADER): ...reinstate macro.
10783
10784 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10785 (fix_crossing_unconditional_branches): Likewise.
10786 * caller-save.c (save_call_clobbered_regs): Likewise.
10787 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10788 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10789 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10790 (merge_blocks_move_successor_nojumps): Likewise.
10791 (outgoing_edges_match): Update use of for_each_rtx to
10792 for_each_rtx_in_insn.
10793 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10794 (expand_gimple_cond): Likewise.
10795 (expand_gimple_tailcall): Likewise.
10796 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10797 SET_BB_END.
10798 (construct_exit_block): Drop use of SET_BB_END.
10799 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10800 rtx_insn *.
10801 (delete_insn): Rename param "insn" to "uncast_insn", introducing
10802 a new local "insn" with a checked cast to rtx_insn *. Drop use of
10803 SET_BB_HEAD and SET_BB_END.
10804 (create_basic_block_structure): Drop use of SET_BB_HEAD and
10805 SET_BB_END.
10806 (rtl_delete_block): Drop use of SET_BB_HEAD.
10807 (rtl_split_block): Drop use of SET_BB_END.
10808 (emit_nop_for_unique_locus_between): Likewise.
10809 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10810 (block_label): Drop use of SET_BB_HEAD.
10811 (fixup_abnormal_edges): Drop use of SET_BB_END.
10812 (record_effective_endpoints): Drop use of SET_BB_HEADER.
10813 (relink_block_chain): Likewise.
10814 (fixup_reorder_chain): Drop use of SET_BB_END.
10815 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10816 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10817 rtx_insn **. Drop use of SET_BB_HEADER.
10818 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10819 SET_BB_HEAD.
10820 (BB_HEAD): Delete this function.
10821 (SET_BB_HEAD): Likewise.
10822 (BB_END): Likewise.
10823 (SET_BB_END): Likewise.
10824 (BB_HEADER): Likewise.
10825 (SET_BB_HEADER): Likewise.
10826 * emit-rtl.c (add_insn_after): Rename param "insn" to
10827 "uncast_insn", adding a new local "insn" and a checked cast to
10828 rtx_insn *. Drop use of SET_BB_END.
10829 (remove_insn): Strengthen locals "next" and "prev" from rtx to
10830 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
10831 (reorder_insns): Drop use of SET_BB_END.
10832 (emit_insn_after_1): Strengthen param "first" and locals "last",
10833 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
10834 (emit_pattern_after_noloc): Add checked cast.
10835 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10836 (restore_other_notes): Likewise.
10837 (move_insn): Likewise.
10838 (sched_extend_bb): Likewise.
10839 (fix_jump_move): Likewise.
10840 * ifcvt.c (noce_process_if_block): Likewise.
10841 (dead_or_predicable): Likewise.
10842 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10843 * reg-stack.c (change_stack): Drop use of SET_BB_END.
10844 * sel-sched-ir.c (sel_move_insn): Likewise.
10845 * sel-sched.c (move_nop_to_previous_block): Likewise.
10846
10847 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10848 SET_BB_END.
10849 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10850
10851 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10852
10853 * basic-block.h (create_basic_block_structure): Strengthen params
10854 1 "head" and 2 "end" from rtx to rtx_insn *.
10855 * cfgrtl.c (create_basic_block_structure): Likewise.
10856 (rtl_create_basic_block): Update casts from void * to rtx to
10857 rtx_insn *, so that we can pass them as rtx_insn * to
10858 create_basic_block_structure.
10859 * sel-sched-ir.c (sel_create_basic_block): Likewise.
10860
10861 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10862
10863 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10864 rtx_insn **.
10865 (check_for_inc_dec): Strengthen param "insn" from rtx to
10866 rtx_insn *.
10867
10868 * cselib.h (cselib_process_insn): Likewise.
10869
10870 * cselib.c (cselib_record_sets): Likewise.
10871 (cselib_process_insn): Likewise.
10872
10873 * dse.c (struct insn_info): Likewise for field "insn".
10874 (check_for_inc_dec_1): Likewise for local "insn".
10875 (check_for_inc_dec): Likewise for param "insn".
10876 (scan_insn): Likewise.
10877 (dse_step1): Likewise for local "insn".
10878
10879 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10880 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
10881
10882 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10883
10884 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10885 from rtx to rtx_insn *.
10886 (DEP_PRO): Delete this function and...
10887 (SET_DEP_PRO): ...this function in favor of...
10888 (DEP_PRO): ...reinstate this macro.
10889 (DEP_CON): Delete this function and...
10890 (SET_DEP_CON): ...this function in favor of...
10891 (DEP_CON): ...reinstate this old macro.
10892 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10893 (init_dep): Likewise.
10894 (set_priorities): Likewise for both params.
10895 (sd_copy_back_deps): Likewise for params 1 and 2.
10896
10897 * haifa-sched.c (priority): Likewise for param "insn" and local
10898 "next".
10899 (set_priorities): Likewise for params "head" and "tail" and local
10900 "insn".
10901 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10902 local "consumer".
10903 (add_to_speculative_block): Add a checked cast.
10904 (create_check_block_twin): Drop use of SET_DEP_CON.
10905 (add_jump_dependencies): Strengthen params "insn" and "jump" from
10906 rtx to rtx_insn *.
10907
10908 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10909 Drop use of SET_DEP_PRO
10910 (init_dep): Strengthen params "pro" and "con" from rtx to
10911 rtx_insn *.
10912 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
10913 use of SET_DEP_CON.
10914 (DEP_PRO): Delete.
10915 (DEP_CON): Delete.
10916 (SET_DEP_PRO): Delete.
10917 (SET_DEP_CON): Delete.
10918
10919 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10920
10921 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10922 from rtx to rtx_insn *.
10923 (VINSN_INSN_RTX): Eliminate rvalue function and...
10924 (SET_VINSN_INSN): ...lvalue function in favor of...
10925 (VINSN_INSN_RTX): reinstate this old macro.
10926
10927 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10928 in favor of VINSN_INSN_RTX.
10929 (VINSN_INSN_RTX): Delete this function.
10930 (SET_VINSN_INSN_RTX): Likewise.
10931
10932 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10933
10934 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10935 (BND_TO): Delete this function and...
10936 (SET_BND_TO): ...this functions in favor of...
10937 (BND_TO): ...reinstating this macro.
10938 (struct _fence): Strengthen field "executing_insns" from
10939 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10940 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10941 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10942 and param "insn" from rtx to insn_t.
10943 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10944 rtx_insn *.
10945
10946 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10947 vec<rtx_insn *> .
10948 (rtx_vec_t): Likewise.
10949 (struct sched_deps_info_def): Strengthen param of "start_insn"
10950 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10951 "note_mem_dep" callback and first param of "note_dep" callback.
10952
10953 * haifa-sched.c (add_to_speculative_block): Strengthen param
10954 "insn" from rtx to rtx_insn *.
10955 (clear_priorities): Likewise.
10956 (calc_priorities): Likewise for local "insn".
10957
10958 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10959 Remove redundant checked cast.
10960 (haifa_note_mem_dep): Likewise for param "pending_insn".
10961 (haifa_note_dep): Likewise for param "elem".
10962 (note_mem_dep): Likewise for param "e".
10963 (sched_analyze_1): Add checked casts.
10964 (sched_analyze_2): Likewise.
10965
10966 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10967 from rtx to rtx_insn *.
10968 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10969 from vec<rtx> * to vec<rtx_insn *> *.
10970
10971 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10972 scaffolding.
10973 (flist_add): Strengthen param "executing_insns" from
10974 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10975 (advance_deps_context): Remove now-redundant checked cast.
10976 (init_fences): Replace uses of NULL_RTX with NULL.
10977 (merge_fences): Strengthen params "last_scheduled_insn" and
10978 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10979 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10980 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10981 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10982 an instruction, rather than doing double-duty as a pattern.
10983 (return_nop_to_pool): Update for change of insn_t.
10984 (deps_init_id): Remove now-redundant checked cast.
10985 (struct sched_scan_info_def): Strengthen param of "init_insn"
10986 callback from rtx to insn_t.
10987 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10988 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10989 NULL.
10990 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10991 "end" from rtx to rtx_insn *.
10992 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10993 (rtx insn_rtx, bool force_unique_p)
10994 (BND_TO): Delete function.
10995 (SET_BND_TO): Delete function.
10996
10997 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10998 rtx to rtx_insn *.
10999 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
11000 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
11001 rtx to rtx_insn *.
11002 (undo_transformations): Likewise for param "insn".
11003 (update_liveness_on_insn): Likewise.
11004 (compute_live_below_insn): Likewise for param "insn" and local
11005 "succ".
11006 (update_data_sets): Likewise for param "insn".
11007 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
11008 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
11009 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
11010 rtx_insn *.
11011 (move_cond_jump): Likewise for param "insn".
11012 (move_cond_jump): Drop use of SET_BND_TO.
11013 (compute_av_set_on_boundaries): Likewise.
11014 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
11015 (update_and_record_unavailable_insns): Strengthen local "bb_end"
11016 from rtx to rtx_insn *.
11017 (maybe_emit_renaming_copy): Likewise for param "insn".
11018 (maybe_emit_speculative_check): Likewise.
11019 (handle_emitting_transformations): Likewise.
11020 (remove_insn_from_stream): Likewise.
11021 (code_motion_process_successors): Strengthen local "succ" from rtx
11022 to insn_t.
11023
11024 2014-08-26 David Malcolm <dmalcolm@redhat.com>
11025
11026 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
11027 ilist_t, not _xlist_t;
11028 (ILIST_INSN): Define in terms of new union field "insn".
11029 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
11030 _XLIST_NEXT.
11031 (struct _list_node): Add new field "insn" to the union, of type
11032 insn_t.
11033 (ilist_add): Replace macro with an inline function, requiring an
11034 insn_t.
11035 (ilist_remove): Define this macro directly in terms of
11036 _list_remove, rather than indirectly via _xlist_remove.
11037 (ilist_clear): Likewise, in terms of _list_clear rather than
11038 _xlist_clear.
11039 (ilist_is_in_p): Replace macro with an inline function, requiring
11040 an insn_t.
11041 (_list_iter_cond_insn): New function.
11042 (ilist_iter_remove): Define this macro directly in terms of
11043 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
11044 (ilist_iterator): Define directly in terms of _list_iterator
11045 rather than indirectly through _xlist_iterator.
11046 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
11047 than in terms of _FOR_EACH_X.
11048 (FOR_EACH_INSN_1): Likewise.
11049
11050 2014-08-26 Joseph Myers <joseph@codesourcery.com>
11051
11052 PR target/60606
11053 PR target/61330
11054 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
11055 DECL_HARD_REGISTER and return for invalid register specifications.
11056 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
11057 DECL_HARD_REGISTER, call expand_one_error_var.
11058 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
11059 CC_REGNUM with non-MODE_CC modes.
11060 (arm_regno_class): Return NO_REGS for PC_REGNUM.
11061
11062 2014-08-26 Marek Polacek <polacek@redhat.com>
11063
11064 PR c/61271
11065 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
11066
11067 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
11068
11069 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
11070 qi cost; add di cost.
11071 (cortexa57_addrcost_table): Likewise.
11072
11073 2014-08-26 Marek Polacek <polacek@redhat.com>
11074
11075 PR c/61271
11076 * expr.c (is_aligning_offset): Remove logical not.
11077
11078 2014-08-26 Marek Polacek <polacek@redhat.com>
11079
11080 PR c/61271
11081 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
11082 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
11083
11084 2014-08-26 Richard Biener <rguenther@suse.de>
11085
11086 PR tree-optimization/62175
11087 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11088 expand possibly trapping operations.
11089
11090 2014-08-26 David Malcolm <dmalcolm@redhat.com>
11091
11092 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
11093 "insn" from rtx to rtx_insn *.
11094 (permute_load): Likewise for param "insn".
11095 (permute_store): Likewise.
11096 (handle_special_swappables): Likewise for local "insn".
11097 (replace_swap_with_copy): Likewise for locals "insn" and
11098 "new_insn".
11099 (rs6000_analyze_swaps): Likewise for local "insn".
11100
11101 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11102
11103 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
11104 to rtx_insn *.
11105
11106 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11107
11108 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
11109 "note_list" from rtx to rtx_insn *.
11110 (BB_NOTE_LIST): Replace this function and...
11111 (SET_BB_NOTE_LIST): ...this function with...
11112 (BB_NOTE_LIST): ...the former macro implementation.
11113
11114 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
11115 local "from_start" from rtx to rtx_insn *. Strengthen param
11116 "to_endp" from rtx * to rtx_insn **.
11117
11118 * haifa-sched.c (concat_note_lists): Likewise.
11119 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
11120 BB_NOTE_LIST.
11121 (sel_restore_notes): Likewise.
11122 (move_bb_info): Likewise.
11123 (BB_NOTE_LIST): Delete this function.
11124 (SET_BB_NOTE_LIST): Delete this function.
11125 * sel-sched.c (create_block_for_bookkeeping): Eliminate
11126 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
11127
11128 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11129
11130 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
11131 from rtx * to rtx_insn **.
11132 (reorder2): Likewise.
11133 (dependencies_evaluation_hook): Strengthen params "head", "tail"
11134 from rtx to rtx_insn *.
11135
11136 * doc/tm.texi: Update mechanically for above change to target.def.
11137
11138 * sched-int.h (note_list): Strengthen this variable from rtx to
11139 rtx_insn *.
11140 (remove_notes): Likewise for both params.
11141 (restore_other_notes): Likewise for return type and first param.
11142 (struct ready_list): Strengthen field "vec" from rtx * to
11143 rtx_insn **.
11144 (struct dep_replacement): Strenghten field "insn" from rtx to
11145 rtx_insn *.
11146 (struct deps_desc): Likewise for fields "last_debug_insn",
11147 "last_args_size".
11148 (struct haifa_sched_info): Likewise for callback field
11149 "can_schedule_ready_p"'s param, for first param of "new_ready"
11150 callback field, for both params of "rank" callback field, for
11151 first field of "print_insn" callback field (with a const), for
11152 both params of "contributes_to_priority" callback, for param
11153 of "insn_finishes_block_p" callback, for fields "prev_head",
11154 "next_tail", "head", "tail", for first param of "add_remove_insn"
11155 callback, for first param of "begin_schedule_ready" callback, for
11156 both params of "begin_move_insn" callback, and for second param
11157 of "advance_target_bb" callback.
11158 (add_dependence): Likewise for params 1 and 2.
11159 (sched_analyze): Likewise for params 2 and 3.
11160 (deps_analyze_insn): Likewise for param 2.
11161 (ready_element): Likewise for return type.
11162 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11163 (try_ready): Strenghten param from rtx to rtx_insn *.
11164 (sched_emit_insn): Likewise for return type.
11165 (record_delay_slot_pair): Likewise for params 1 and 2.
11166 (add_delay_dependencies): Likewise for param.
11167 (contributes_to_priority): Likewise for both params.
11168 (find_modifiable_mems): Likewise.
11169
11170 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
11171 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
11172 "first_older_only_insn" from rtx to rtx_insn *.
11173 (arm_sched_reorder): Strengthen param "ready" from rtx * to
11174 rtx_insn **.
11175
11176 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
11177 "last_scheduled_iter0" from rtx to rtx_insn *.
11178 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
11179 (c6x_sched_reorder_1): Strengthen param "ready" and locals
11180 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
11181 "insn" from rtx to rtx_insn *.
11182 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
11183 rtx_insn **.
11184 (c6x_sched_reorder2): Strengthen param "ready" and locals
11185 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
11186 "insn" from rtx to rtx_insn *.
11187 (c6x_variable_issue): Add a checked cast when assigning from insn
11188 to ss.last_scheduled_iter0.
11189 (split_delayed_branch): Strengthen param "insn" and local "i1"
11190 from rtx to rtx_insn *.
11191 (split_delayed_nonbranch): Likewise.
11192 (undo_split_delayed_nonbranch): Likewise for local "insn".
11193 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
11194 "entry_after", "end_packet", "head_insn", "tail_insn",
11195 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
11196 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
11197 to rtx_insn **. Remove now-redundant checked cast on last_insn,
11198 but add a checked cast on loop->start_label. Consolidate calls to
11199 avoid assigning result of gen_spkernel to "insn", now an
11200 rtx_insn *.
11201
11202 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
11203 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
11204 rtx to rtx_insn *.
11205 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
11206 rtx_insn **. Strengthen locals "top", "next" from rtx to
11207 rtx_insn *.
11208 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
11209 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
11210 (add_parameter_dependencies): Strengthen params "call", "head" and
11211 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
11212 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
11213 (add_dependee_for_func_arg): Likewise for param "arg" and local
11214 "insn".
11215 (ix86_dependencies_evaluation_hook): Likewise for params "head",
11216 "tail" and locals "insn", "first_arg".
11217
11218 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
11219 for params "head", "tail" and locals "insn", "next", "next_tail".
11220 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
11221 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
11222 "insn", "lowest", "highest" from rtx to rtx_insn *.
11223 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
11224 rtx_insn **.
11225 (ia64_sched_reorder2): Likewise.
11226
11227 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
11228 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
11229 from rtx * to rtx_insn **.
11230 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
11231 rtx_insn **.
11232 (mep_print_sched_insn): Strengthen param "insn" from rtx to
11233 rtx_insn *.
11234 (mep_sched_reorder): Strengthen param "ready" from rtx * to
11235 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
11236 to rtx_insn *.
11237
11238 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
11239 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
11240 to rtx_insn *.
11241 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
11242 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
11243 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
11244 rtx_insn **.
11245 (vr4130_reorder): Likewise.
11246 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
11247 rtx to rtx_insn *.
11248 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
11249 rtx_insn **.
11250 (mips_sched_reorder): Likewise.
11251 (mips_sched_reorder2): Likewise.
11252
11253 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
11254
11255 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
11256 Strengthen local "tmp" from rtx to rtx_insn *.
11257 (rs6000_sched_reorder2): Likewise.
11258
11259 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
11260 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
11261 (s390_sched_reorder): Strengthen param "ready" from rtx * to
11262 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
11263
11264 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
11265 "tmp2" from rtx to rtx_insn *.
11266 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
11267 Strengthen local "insn" from rtx to rtx_insn *.
11268 (ready_reorder): Strengthen param "ready" from rtx * to
11269 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
11270 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
11271 (sh_reorder2): Likewise.
11272
11273 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
11274 local "insn" from rtx to rtx_insn *.
11275
11276 * haifa-sched.c (note_list): Strengthen this variable from rtx to
11277 rtx_insn *.
11278 (scheduled_insns): Strengthen this variable from vec<rtx> to
11279 vec<rtx_insn *>.
11280 (set_modulo_params): Likewise for locals "i1", "i2".
11281 (record_delay_slot_pair): Likewise for params "i1", "i2".
11282 (add_delay_dependencies): Likewise for param "insn".
11283 (cond_clobbered_p): Likewise.
11284 (recompute_todo_spec): Likewise for local "prev".
11285 (last_scheduled_insn): Likewise for this variable.
11286 (nonscheduled_insns_begin): Likewise.
11287 (model_set_excess_costs): Strengthen param "insns" from rtx * to
11288 rtx_insn **.
11289 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
11290 rtx_insn *.
11291 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
11292 Strengthen local "insn" from rtx to rtx_insn *.
11293 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
11294 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11295 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
11296 (ready_remove_first): Likewise for return type and local "t".
11297 (ready_element): Likewise for return type.
11298 (ready_remove): Likewise for return type and local "t".
11299 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
11300 (check_clobbered_conditions): Strengthen local "x" from rtx to
11301 rtx_insn *, adding a checked cast.
11302 (schedule_insn): Likewise for param "insn".
11303 (remove_notes): Likewise for params "head", "tail" and locals
11304 "next_tail", "insn", "next".
11305 (struct haifa_saved_data): Likewise for fields
11306 "last_scheduled_insn", "nonscheduled_insns_begin".
11307 (save_backtrack_point): Update for change to field "vec" of
11308 struct ready_list.
11309 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
11310 rtx_insn **.
11311 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
11312 from rtx to rtx_insn *
11313 (resolve_dependencies): Strengthen param "insn" from rtx to
11314 rtx_insn *
11315 (restore_other_notes): Likewise for return type, for param "head"
11316 and local "note_head".
11317 (undo_all_replacements): Likewise for local "insn".
11318 (first_nonscheduled_insn): Likewise for return type and local "insn".
11319 (queue_to_ready): Likewise for local "insn", adding checked casts.
11320 (early_queue_to_ready): Likewise for local "insn".
11321 (debug_ready_list_1): Strengthen local "p" from rtx * to
11322 rtx_insn **.
11323 (move_insn): Strengthen param "insn" and local "note" from rtx to
11324 rtx_insn *
11325 (insn_finishes_cycle_p): Likewise for param "insn".
11326 (max_issue): Likewise for local "insn".
11327 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
11328 to rtx_insn **.
11329 (commit_schedule): Strengthen param "prev_head" and local "insn"
11330 from rtx to rtx_insn *
11331 (prune_ready_list): Likewise for local "insn".
11332 (schedule_block): Likewise for locals "prev_head", "head", "tail",
11333 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
11334 (set_priorities): Likewise for local "prev_head".
11335 (try_ready): Likewise for param "next".
11336 (fix_tick_ready): Likewise.
11337 (change_queue_index): Likewise.
11338 (sched_extend_ready_list): Update for change to field "vec" of
11339 struct ready_list.
11340 (generate_recovery_code): Strengthen param "insn" from rtx to
11341 rtx_insn *.
11342 (begin_speculative_block): Likewise.
11343 (create_check_block_twin): Likewise for param "insn" and locals
11344 "label", "check", "twin". Introduce local "check_pat" to avoid
11345 "check" being used as a plain rtx before being used as an insn.
11346 (fix_recovery_deps): Add a checked cast to rtx_insn * when
11347 extracting elements from ready_list.
11348 (sched_remove_insn): Strengthen param "insn" from rtx to
11349 rtx_insn *.
11350 (sched_emit_insn): Likewise for return type.
11351 (ready_remove_first_dispatch): Likewise for return type and local
11352 "insn".
11353
11354 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
11355
11356 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
11357 const rtx_insn *.
11358
11359 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
11360 from rtx to rtx_insn *.
11361 (add_dependence_list): Likewise for param "insn". Add a checked
11362 cast.
11363 (add_dependence_list_and_free): Strengthen param "insn" from rtx
11364 to rtx_insn *. Strengthen param "list_p" from rtx * to
11365 rtx_insn **.
11366 (chain_to_prev_insn): Strengthen param "insn" and locals
11367 "prec_nonnote", "i" from rtx to rtx_insn *.
11368 (flush_pending_lists): Likewise for param "insn".
11369 (cur_insn): Likewise for this variable.
11370 (haifa_start_insn): Add a checked cast.
11371 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
11372 (sched_analyze_reg): Likewise for param "insn".
11373 (sched_analyze_1): Likewise.
11374 (sched_analyze_2): Likewise. Add checked casts.
11375 (sched_analyze_insn): Likewise. Also for local "prev".
11376 (deps_analyze_insn): Likewise for param "insn".
11377 (sched_analyze): Likewise for params "head", "tail" and local "insn".
11378 (add_dependence_1): Likewise for params "insn", "elem".
11379 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
11380 (parse_add_or_inc): Likewise for param "insn".
11381 (find_inc): Likewise for local "inc_cand".
11382 (find_modifiable_mems): Likewise for params "head", "tail" and
11383 locals "insn", "next_tail".
11384
11385 * sched-ebb.c (init_ready_list): Likewise for local "insn".
11386 (begin_schedule_ready): Likewise for param "insn".
11387 (begin_move_insn): Likewise for params "insn" and "last".
11388 (ebb_print_insn): Strengthen param "insn" from const_rtx to
11389 const rtx_insn *.
11390 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
11391 (ebb_contributes_to_priority): Likewise for params "next", "insn".
11392 (ebb_add_remove_insn): Likewise for param "insn".
11393 (advance_target_bb): Likewise.
11394
11395 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
11396 "insn".
11397 (check_live): Likewise for param "insn".
11398 (init_ready_list): Likewise for local "insn".
11399 (can_schedule_ready_p): Likewise for param "insn".
11400 (begin_schedule_ready): Likewise.
11401 (new_ready): Likewise for param "next".
11402 (rgn_print_insn): Likewise for param "insn".
11403 (rgn_rank): Likewise for params "insn1", "insn2".
11404 (contributes_to_priority): Likewise for params "next", "insn".
11405 (rgn_insn_finishes_block_p): Likewise for param "insn".
11406 (add_branch_dependences): Likewise for params "head", "tail" and
11407 locals "insn", "last".
11408 (rgn_add_remove_insn): Likewise for param "insn".
11409 (advance_target_bb): Likewise.
11410
11411 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
11412 const_rtx to const rtx_insn *.
11413
11414 * sel-sched-dump.h (sel_print_insn): Likewise.
11415
11416 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
11417 (deps_init_id): Likewise.
11418
11419 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
11420 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
11421 rtx_insn **.
11422
11423 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11424
11425 * output.h (final_start_function): Strengthen param 1 from rtx to
11426 rtx_insn *.
11427
11428 * final.c (final_start_function): Likewise, renaming back from
11429 "uncast_first" to "first", and dropping the checked cast from rtx
11430 to rtx_insn *.
11431
11432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11433
11434 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
11435 * final.c (final): Likewise. Rename param back from
11436 "uncast_first" to "first" and eliminate the checked cast from rtx
11437 to rtx_insn *.
11438
11439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11440
11441 * output.h (shorten_branches): Strengthen param from rtx to
11442 rtx_insn *.
11443
11444 * final.c (shorten_branches): Likewise, renaming param back from
11445 "uncast_first" to "first", and dropping the checked cast from rtx
11446 to rtx_insn *.
11447
11448 * genattr.c (gen_attr): Likewise when writing out the prototype of
11449 shorten_branches.
11450
11451 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11452
11453 * sched-int.h (struct haifa_sched_info): Strengthen fields
11454 "prev_head" and "next_tail" from rtx to rtx_insn *.
11455
11456 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11457
11458 * rtl.h (rtx_jump_table_data::get_labels): New method.
11459 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
11460 with use of the new rtx_jump_table_data::get_labels method.
11461 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
11462 to rtx_jump_table_data *. Simplify by using get_labels method.
11463 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
11464 a dyn_cast, introducing local "table", using it to replace
11465 label-lookup logic with a get_labels method call.
11466 (patch_jump_insn): Simplify using get_labels method.
11467 * dwarf2cfi.c (create_trace_edges): Likewise.
11468 * rtlanal.c (label_is_jump_target_p): Likewise.
11469
11470 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11471
11472 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
11473 to rtx_insn *.
11474
11475 * emit-rtl.c (unshare_all_rtl_1): Likewise.
11476 (unshare_all_rtl_again): Likewise, also for local "p".
11477
11478 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11479
11480 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
11481 to rtx_insn *.
11482 * cfgrtl.c (delete_insn_and_edges): Likewise.
11483
11484 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11485
11486 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
11487 from rtx to rtx_insn *.
11488
11489 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
11490
11491 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11492
11493 * function.c (thread_prologue_and_epilogue_insns): Likewise for
11494 locals "returnjump", "epilogue_end", "insn", "next".
11495
11496 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
11497 "returnjump" from rtx * to rtx_insn **.
11498 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
11499
11500 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11501
11502 * basic-block.h (struct edge_def). Strengthen "r" within
11503 union edge_def_insns from rtx to rtx_insn *.
11504
11505 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
11506 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
11507 rtx_insn *.
11508 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
11509 from rtx to rtx_insn *.
11510 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
11511 rtx_insn *.
11512 * postreload-gcse.c (reg_killed_on_edge): Likewise.
11513 (reg_used_on_edge): Likewise.
11514 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
11515 (gt_pch_nx): New overload for rtx_insn *&.
11516 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
11517 from rtx to rtx_insn *.
11518
11519 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11520
11521 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
11522 from rtx to rtx_insn *.
11523 (BB_FOOTER): Replace function with access macro.
11524 (SET_BB_FOOTER): Delete.
11525
11526 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
11527 with BB_FOOTER.
11528 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11529 (emit_barrier_after_bb): Likewise.
11530 (record_effective_endpoints): Likewise.
11531 (relink_block_chain): Likewise.
11532 (fixup_fallthru_exit_predecessor): Likewise.
11533 (cfg_layout_duplicate_bb): Likewise.
11534 (cfg_layout_split_block): Likewise.
11535 (cfg_layout_delete_block): Likewise.
11536 (cfg_layout_merge_blocks): Likewise.
11537 (BB_FOOTER): Delete function.
11538 (SET_BB_FOOTER): Delete function.
11539 * combine.c (update_cfg_for_uncondjump): Replace uses of
11540 SET_BB_FOOTER with BB_FOOTER.
11541
11542 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11543
11544 * except.h (struct eh_landing_pad_d): Strengthen field
11545 "landing_pad" from rtx to rtx_code_label *.
11546
11547 * except.c (sjlj_emit_dispatch_table): Likewise for param
11548 "dispatch_label"
11549 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
11550
11551 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11552
11553 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
11554 first param from rtx to rtx_insn *.
11555 * config/xtensa/xtensa.c (struct machine_function): Likewise for
11556 field "set_frame_ptr_insn".
11557 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
11558 "csend" from rtx to rtx_code_label *.
11559 (xtensa_expand_atomic): Likewise for local "csloop".
11560 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11561 rtx_insn *.
11562 (xtensa_call_tls_desc): Likewise for return type and locals
11563 "call_insn", "insns".
11564 (xtensa_legitimize_tls_address): Likewise for local "insns".
11565 (xtensa_expand_prologue): Likewise for locals "insn", "first".
11566
11567 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11568
11569 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11570 first param from rtx to rtx_insn *.
11571 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11572 "insn".
11573
11574 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11575
11576 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11577 Strengthen param 1 from rtx to rtx_insn *.
11578 (tilepro_output_cbranch): Likewise.
11579 (tilepro_adjust_insn_length): Likewise.
11580 (tilepro_final_prescan_insn): Likewise for sole param.
11581
11582 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11583 Likewise for local "last".
11584 (cbranch_predicted_p): Likewise for param "insn".
11585 (tilepro_output_simple_cbranch_with_opcode): Likewise.
11586 (tilepro_output_cbranch_with_opcode): Likewise.
11587 (tilepro_output_cbranch): Likewise.
11588 (frame_emit_load): Likewise for return type and locals "seq",
11589 "insn".
11590 (emit_sp_adjust): Likewise for return type and local "insn".
11591 (tilepro_expand_epilogue): Likewise for locals "last_insn",
11592 "insn".
11593 (tilepro_adjust_insn_length): Likewise for param "insn".
11594 (next_insn_to_bundle): Likewise for return type and params
11595 "r", "end".
11596 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11597 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11598 local "new_insns".
11599 (match_addli_pcrel): Likewise for param "insn".
11600 (replace_addli_pcrel): Likewise.
11601 (match_auli_pcrel): Likewise.
11602 (replace_auli_pcrel): Likewise.
11603 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11604 "next_insn".
11605 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11606 "queue", "next_queue", "prev".
11607 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11608 (tilepro_final_prescan_insn): Likewise for param "insn".
11609
11610 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11611
11612 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11613 Strengthen param 1 from rtx to rtx_insn *.
11614 (tilegx_output_cbranch): Likewise.
11615 (tilegx_adjust_insn_length): Likewise.
11616 (tilegx_final_prescan_insn): Likewise for sole param.
11617
11618 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11619 or local "last".
11620 (cbranch_predicted_p): Likewise for param "insn".
11621 (tilegx_output_simple_cbranch_with_opcode): Likewise.
11622 (tilegx_output_cbranch_with_opcode): Likewise.
11623 (tilegx_output_cbranch): Likewise.
11624 (frame_emit_load): Likewise for return type.
11625 (set_frame_related_p): Likewise for locals "seq", "insn".
11626 (emit_sp_adjust): Likewise for return type, and for local "insn".
11627 Introduce local "pat" for use in place of "insn" where the latter
11628 isn't an instruction.
11629 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11630 from rtx to rtx_insn *.
11631 (tilegx_adjust_insn_length): Likewise for param "insn".
11632 (next_insn_to_bundle): Likewise for return type and params "r" and
11633 "end".
11634 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11635 "end".
11636 (replace_insns): Likewise for params "old_insn", "new_insns".
11637 (replace_mov_pcrel_step1): Likewise for param "insn" and local
11638 "new_insns".
11639 (replace_mov_pcrel_step2): Likewise.
11640 (replace_mov_pcrel_step3): Likewise.
11641 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11642 "next_insn".
11643 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11644 "queue", "next_queue", "prev".
11645 (tilegx_output_mi_thunk): Likewise for local "insn".
11646 (tilegx_final_prescan_insn): Likewise for param "insn".
11647
11648 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11649
11650 * config/spu/spu.c (frame_emit_store): Strengthen return type from
11651 rtx to rtx_insn *.
11652 (frame_emit_load): Likewise.
11653 (frame_emit_add_imm): Likewise, also for local "insn".
11654 (spu_expand_prologue): Likewise for local "insn".
11655 (struct spu_bb_info): Likewise for field "prop_jump".
11656 (emit_nop_for_insn): Likewise for param "insn" and local
11657 "new_insn".
11658 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11659 "hbr_insn".
11660 (spu_emit_branch_hint): Likewise for params "before", "branch" and
11661 locals "hint", "insn".
11662 (get_branch_target): Likewise for param "branch".
11663 (insn_clobbers_hbr): Likewise for param "insn".
11664 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11665 locals "insn", "before_4", "before_16".
11666 (insert_hbrp): Likewise for local "insn".
11667 (spu_machine_dependent_reorg): Likewise for locals "branch",
11668 "insn", "next", "bbend".
11669 (uses_ls_unit): Likewise for param "insn".
11670 (get_pipe): Likewise.
11671 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11672 introducing a checked cast.
11673 (spu_sched_adjust_cost): Likewise for params "insn" and
11674 "dep_insn".
11675 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11676 (spu_sms_res_mii): Likewise.
11677
11678 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11679
11680 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11681 from rtx to rtx_insn *.
11682 (output_cbranch): Likewise for param 6.
11683 (output_return): Likewise for param 1.
11684 (output_sibcall): Likewise.
11685 (output_v8plus_shift): Likewise.
11686 (output_v8plus_mult): Likewise.
11687 (output_v9branch): Likewise for param 7.
11688 (output_cbcond): Likewise for param 3.
11689
11690 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11691 for local "insn".
11692 (sparc_legitimize_pic_address): Likewise.
11693 (sparc_emit_call_insn): Likewise.
11694 (emit_save_or_restore_regs): Likewise.
11695 (emit_window_save): Likewise for return type and local "insn".
11696 (sparc_expand_prologue): Likewise for local "insn".
11697 (sparc_flat_expand_prologue): Likewise.
11698 (output_return): Likewise for param "insn".
11699 (output_sibcall): Likewise for param "insn" and local "delay".
11700 (output_ubranch): Likewise for param "insn".
11701 (output_cbranch): Likewise.
11702 (output_cbcond): Likewise.
11703 (output_v9branch): Likewise.
11704 (output_v8plus_shift): Likewise.
11705 (sparc_output_mi_thunk): Likewise for local "insn".
11706 (get_some_local_dynamic_name): Likewise.
11707 (output_v8plus_mult): Likewise for param "insn".
11708
11709 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11710
11711 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11712 from rtx to rtx_insn *.
11713 (output_branchy_insn): Likewise for param 3.
11714 (output_far_jump): Likewise for param 1.
11715 (final_prescan_insn): Likewise.
11716 (sh_insn_length_adjustment): Likewise for sole param.
11717
11718 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11719 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11720 rtx_code_label *.
11721 (sh_emit_compare_and_set): Likewise for local "lab".
11722 (output_far_jump): Strengthen param "insn" and local "prev" from
11723 rtx to rtx_insn *.
11724 (output_branchy_insn): Likewise for param "insn" and local
11725 "next_insn".
11726 (output_ieee_ccmpeq): Likewise for param "insn".
11727 (struct label_ref_list_d): Strengthen field "label" from rtx to
11728 rtx_code_label *.
11729 (pool_node): Likewise.
11730 (pool_window_label): Likewise for this global.
11731 (add_constant): Likewise for return type and locals "lab", "new_rtx".
11732 (dump_table): Strengthen params "start", "barrier" and local
11733 "scan" from rtx to rtx_insn *.
11734 (broken_move): Likewise for param "insn".
11735 (untangle_mova): Likewise for params "first_mova" and "new_mova".
11736 Strengthen param "first_mova" from rtx * to rtx_insn **.
11737 (mova_p): Likewise for param "insn".
11738 (fixup_mova): Likewise for param "mova".
11739 (find_barrier): Likewise for return type, params "mova" and
11740 "from", and locals "barrier_before_mova", "found_barrier",
11741 "good_barrier", "orig", "last_symoff", "next". Strengthen local
11742 "label" from rtx to rtx_code_label *.
11743 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11744 rtx to rtx_insn *.
11745 (sh_reorg): Likewise for locals "link", "scan", "barrier".
11746 (split_branches): Likewise for param "first" and local "insn".
11747 (final_prescan_insn): Likewise for param "insn".
11748 (sequence_insn_p): Likewise for locals "prev", "next".
11749 (sh_insn_length_adjustment): Likewise for param "insn".
11750 (sh_can_redirect_branch): Likewise for local "insn".
11751 (find_r0_life_regions): Likewise for locals "end", "insn".
11752 (sh_output_mi_thunk): Likewise for local "insns".
11753
11754 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11755
11756 * config/score/score.c (score_output_mi_thunk): Strengthen local
11757 "insn" from rtx to rtx_insn *.
11758 (score_prologue): Likewise.
11759
11760 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11761
11762 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11763 1 from rtx to rtx_insn *.
11764 (s390_emit_jump): Likewise for return type.
11765 (s390_emit_call): Likewise.
11766 (s390_load_got): Likewise.
11767
11768 * config/s390/s390.c (last_scheduled_insn): Likewise for this
11769 variable.
11770 (s390_match_ccmode): Likewise for param "insn".
11771 (s390_emit_jump): Likewise for return type.
11772 (s390_split_branches): Likewise for local "label".
11773 (struct constant): Strengthen field "label" from rtx to
11774 rtx_code_label *.
11775 (struct constant_pool): Likewise for field "label". Strengthen
11776 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11777 rtx_insn *.
11778 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11779 insns.
11780 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11781 (s390_end_pool): Likewise.
11782 (s390_dump_pool): Likewise for local "insn".
11783 (s390_mainpool_start): Likewise.
11784 (s390_chunkify_start): Likewise.
11785 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11786 with insns. Strengthen locals "label", "jump", "barrier", "next",
11787 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11788 (s390_chunkify_finish): Strengthen local "insn" from rtx to
11789 rtx_insn *.
11790 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11791 "jump", "label", "next_insn".
11792 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11793 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11794 "tbegin_insn".
11795 (s390_load_got): Likewise for return type and local "insns".
11796 (s390_save_gprs_to_fprs): Likewise for local "insn".
11797 (s390_restore_gprs_from_fprs): Likewise.
11798 (pass_s390_early_mach::execute): Likewise.
11799 (s390_emit_prologue): Likewise for local "insns".
11800 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11801 rtx_code_label *.
11802 (s390_emit_call): Strengthen return type and local "insn" from
11803 rtx to rtx_insn *.
11804 (s390_emit_tpf_eh_return): Likewise for local "insn".
11805 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11806 "next_insn", introducing locals "s_pat", "rpat" to allow this.
11807 (s390_fix_long_loop_prediction): Likewise for param "insn" and
11808 local "cur_insn".
11809 (s390_non_addr_reg_read_p): Likewise for param "insn".
11810 (find_cond_jump): Likewise for return type and param "insn".
11811 (s390_swap_cmp): Likewise for param "insn".
11812 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11813 "prev_insn", "next_insn".
11814 (s390_reorg): Likewise for locals "insn", "target".
11815 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11816 (s390_sched_variable_issue): For now, rename param "insn" to
11817 "uncast_insn", introducing a checked cast.
11818 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11819 insn.
11820 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11821 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
11822
11823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11824
11825 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11826 param from rtx to rtx_insn *.
11827 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11828
11829 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11830
11831 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11832 4 from rtx to rtx_insn *.
11833 (rs6000_final_prescan_insn): Likewise for first param.
11834 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11835 local "insn".
11836 (rs6000_get_some_local_dynamic_name): Likewise.
11837 (output_cbranch): Likewise for param "insn".
11838 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11839 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11840 (rs6000_emit_allocate_stack): Likewise for local "insn".
11841 (load_cr_save): Likewise.
11842 (restore_saved_cr): Likewise.
11843 (restore_saved_lr): Likewise.
11844 (emit_cfa_restores): Likewise.
11845 (rs6000_output_function_epilogue): Likewise for locals "insn" and
11846 "deleted_debug_label".
11847 (rs6000_output_mi_thunk): Likewise for local "insn".
11848 (rs6000_final_prescan_insn): Likewise for param "insn".
11849
11850 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11851
11852 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11853 Strengthen param "insn" from rtx to rtx_insn *.
11854 * config/picochip/picochip.c (picochip_current_prescan_insn):
11855 Likewise for this variable.
11856 (picochip_final_prescan_insn): Likewise for param "insn".
11857
11858 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11859
11860 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11861 from rtx to rtx_insn *.
11862 (pa_output_indirect_call): Likewise.
11863 (pa_adjust_insn_length): Likewise.
11864 (pa_attr_length_millicode_call): Likewise.
11865 (pa_attr_length_call): Likewise.
11866 (pa_attr_length_indirect_call): Likewise.
11867
11868 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11869 "insn".
11870 (pa_attr_length_millicode_call): Likewise.
11871 (pa_attr_length_call): Likewise.
11872 (pa_output_call): Likewise.
11873 (pa_attr_length_indirect_call): Likewise.
11874 (pa_output_indirect_call): Likewise.
11875
11876 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11877
11878 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11879 Strengthen first param from rtx to rtx_insn *.
11880 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11881 param "insn".
11882
11883 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11884
11885 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11886 type from rtx to rtx_insn *.
11887 (mips_expand_call): Likewise.
11888 (mips_adjust_insn_length): Likewise for first param.
11889 (mips_output_conditional_branch): Likewise.
11890 (mips_output_order_conditional_branch): Likewise.
11891 (mips_final_prescan_insn): Likewise.
11892
11893 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11894 rtx_insn * for the SEQUENCE case.
11895 (SEQ_END): Likewise.
11896 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11897 (mips_emit_call_insn): Likewise, also for local "insn".
11898 (mips16_gp_pseudo_reg): Likewise for local "scan".
11899 (mips16_build_call_stub): Likewise for return type and for local
11900 "insn". Introduce a new local "pattern" so that "insn" can indeed
11901 be an insn.
11902 (mips_expand_call): Strengthen return type and local "insn" from
11903 rtx to rtx_insn *.
11904 (mips_block_move_loop): Strengthen local "label" from rtx to
11905 rtx_code_label *.
11906 (mips_expand_synci_loop): Likewise for locals "label",
11907 "end_label".
11908 (mips_set_frame_expr): Strengthen local "insn" from rtx to
11909 rtx_insn *.
11910 (mips16e_collect_argument_saves): Likewise for locals "insn",
11911 "next".
11912 (mips_find_gp_ref): Likewise for param of callback for "pred"
11913 param, and for local "insn".
11914 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11915 (mips_insn_has_flexible_gp_ref_p): Likewise.
11916 (mips_epilogue_emit_cfa_restores): Likewise for return type and
11917 local "insn".
11918 (mips_epilogue_set_cfa): Likewise for local "insn".
11919 (mips_expand_epilogue): Likewise.
11920 (mips_adjust_insn_length): Likewise for param "insn".
11921 (mips_output_conditional_branch): Likewise.
11922 (mips_output_order_conditional_branch): Likewise.
11923 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11924 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11925 "falu2_turn_enabled_insn".
11926 (mips_builtin_branch_and_move): Strengthen locals "true_label",
11927 "done_label" from rtx to rtx_code_label *.
11928 (struct mips16_constant): Likewise for field "label".
11929 (mips16_add_constant): Likewise for return type.
11930 (mips16_emit_constants_1): Strengthen return type and param "insn"
11931 from rtx to rtx_insn *.
11932 (mips16_emit_constants): Likewise for param "insn".
11933 (mips16_insn_length): Likewise.
11934 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11935 to rtx_code_label *.
11936 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11937 from rtx to rtx_insn *.
11938 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11939 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11940 (r10k_simplify_address): Strengthen param "insn" and local
11941 "def_insn" from rtx to rtx_insn *.
11942 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11943 rtx_insn *.
11944 (r10k_needs_protection_p_1): Update target type of cast of data
11945 from to rtx to rtx_insn *.
11946 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11947 rtx * to rtx_insn **.
11948 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11949 rtx_insn *.
11950 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11951 (mips_call_expr_from_insn): Likewise for param "insn".
11952 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11953 (mips_find_pic_call_symbol): Likewise for param "insn".
11954 (mips_annotate_pic_calls): Likewise for local "insn".
11955 (mips_sim_insn): Likewise for this variable.
11956 (struct mips_sim): Likewise for field "insn" within elements of
11957 last_set array.
11958 (mips_sim_wait_reg): Likewise for param "insn".
11959 (mips_sim_wait_regs): Likewise.
11960 (mips_sim_wait_units): Likewise.
11961 (mips_sim_wait_insn): Likewise.
11962 (mips_sim_issue_insn): Likewise.
11963 (mips_sim_finish_insn): Likewise.
11964 (mips_seq_time): Likewise for param "seq" and local "insn".
11965 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11966 locals "first", "second".
11967 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11968 "last", "last2", "next".
11969 (mips_avoid_hazard): Likewise for params "after", "insn".
11970 (mips_reorg_process_insns): Likewise for locals "insn",
11971 "last_insn", "subinsn", "next_insn".
11972 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11973 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11974 "jump_sequence".
11975 (mips_output_mi_thunk): Likewise for local "insn".
11976 (mips_final_prescan_insn): Likewise for param "insn".
11977
11978 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11979
11980 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11981 Strengthen return type and local "insns" from rtx to rtx_insn *.
11982 (microblaze_legitimize_tls_address): Likewise for local "insns".
11983 (microblaze_block_move_loop): Strengthen local "label" from rtx
11984 to rtx_code_label *.
11985 (microblaze_expand_prologue): Strengthen two locals named "insn"
11986 from rtx to rtx_insn *.
11987 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11988 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11989 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11990 to rtx_code_label *.
11991
11992 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11993
11994 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11995 param from rtx to rtx_insn *.
11996 (mep_reuse_lo): Likewise for third param.
11997 (mep_use_post_modify_p): Likewise for first param.
11998 (mep_core_address_length): Likewise.
11999 (mep_cop_address_length): Likewise.
12000 (mep_final_prescan_insn): Likewise.
12001 (mep_store_data_bypass_p): Likewise for both params.
12002 (mep_mul_hilo_bypass_p): Likewise.
12003 (mep_ipipe_ldc_p): Likewise for param.
12004
12005 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
12006 (mep_rewrite_mult): Likewise.
12007 (mep_rewrite_mulsi3): Likewise.
12008 (mep_rewrite_maddsi3): Likewise.
12009 (mep_reuse_lo_p_1): Likewise.
12010 (mep_reuse_lo_p): Likewise.
12011 (mep_frame_expr): Likewise.
12012 (mep_make_parallel): Likewise for both params.
12013 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
12014 local "insn".
12015 (mep_use_post_modify_p): Likewise for param "insn".
12016 (mep_core_address_length): Likewise.
12017 (mep_cop_address_length): Likewise.
12018 (mep_reg_set_in_function): Likewise for local "insn".
12019 (mep_asm_without_operands_p): Likewise.
12020 (F): Likewise for return type and param "x".
12021 (add_constant): Likewise for local "insn".
12022 (maybe_dead_move): Likewise for return type and local "insn".
12023 (mep_expand_prologue): Likewise for local "insn".
12024 (mep_final_prescan_insn): Likewise for param "insn".
12025 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
12026 "next", "follow", "x".
12027 (mep_insert_repeat_label_last): Likewise for return type, param
12028 "last_insn", and locals "next", "prev". Strengthen param "label"
12029 from rtx to rtx_code_label *.
12030 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
12031 rtx_insn *.
12032 (struct mep_doloop_end): Likewise for fields "insn" and
12033 "fallthrough".
12034 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
12035 Strengthen local "repeat_label" from rtx to rtx_code_label *.
12036 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
12037 rtx_insn *.
12038 (mep_invert_branch): Likewise for params "insn" and "after".
12039 (mep_reorg_erepeat): Likewise for param "insns" and locals
12040 "insn", "prev", "new_last", "barrier", "user". Strengthen local
12041 "l" from rtx to rtx_code_label *.
12042 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
12043 from rtx to rtx_insn *.
12044 (mep_reorg_addcombine): Likewise for param "insns" and locals
12045 "i", "n".
12046 (add_sp_insn_p): Likewise for param "insn".
12047 (mep_reorg_noframe): Likewise for param "insns" and locals
12048 "start_frame_insn", "end_frame_insn", "next".
12049 (mep_reorg): Likewise for local "insns".
12050 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
12051 cast.
12052 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
12053 (mep_mul_hilo_bypass_p): Likewise.
12054 (mep_ipipe_ldc_p): Likewise for param "insn".
12055 (mep_make_bundle): Likewise for return type, param "cop" and local
12056 "insn", splitting out the latter into a new local "seq" for when it
12057 is a SEQUENCE rather than an insn.
12058 (core_insn_p): Likewise for param "insn".
12059 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
12060 "last", "first", "note", "prev", "core_insn".
12061
12062 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12063
12064 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
12065 rtx to rtx_insn *.
12066 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
12067 (m68k_final_prescan_insn): Likewise for first param.
12068
12069 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
12070 (m68k_set_frame_related): Likewise for param "insn".
12071 (output_btst): Likewise for param "insn".
12072 (m68k_final_prescan_insn): Likewise.
12073 (m68k_move_to_reg): Likewise for local "insn".
12074 (m68k_call_tls_get_addr): Likewise for local "insns".
12075 (m68k_call_m68k_read_tp): Likewise.
12076 (strict_low_part_peephole_ok): Likewise for param "first_insn".
12077 (m68k_output_mi_thunk): Likewise for local "insn".
12078
12079 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12080
12081 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
12082 first param from rtx to rtx_insn *.
12083 (iq2000_adjust_insn_length): Likewise.
12084 (iq2000_output_conditional_branch): Likewise.
12085 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
12086 "insn" and local "nop_insn".
12087 (iq2000_annotate_frame_insn): Likewise for param "insn".
12088 (iq2000_expand_prologue): Likewise for both locals "insn".
12089 (iq2000_adjust_insn_length): Likewise for param "insn".
12090 (iq2000_output_conditional_branch): Likewise.
12091
12092 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12093
12094 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
12095 "insns" from rtx to rtx_insn *.
12096 (ia64_emit_cond_move): Likewise for locals "insn", "first".
12097 (struct spill_fill_data): Likewise for field "init_after" and for
12098 elements of array field "prev_insn".
12099 (spill_restore_mem): Likewise for locals "insn", "first".
12100 (do_spill): Likewise for local "insn".
12101 (do_restore): Likewise.
12102 (ia64_expand_prologue): Likewise.
12103 (ia64_expand_epilogue): Likewise.
12104 (emit_insn_group_barriers): Likewise for locals "insn",
12105 "last_label".
12106 (emit_all_insn_group_barriers): Likewise for locals "insn",
12107 "last".
12108 (dfa_stop_insn): Likewise for this global.
12109 (dfa_pre_cycle_insn): Likewise.
12110 (ia64_nop): Likewise.
12111 (final_emit_insn_group_barriers): Likewise for locals "insn",
12112 "last".
12113 (emit_predicate_relation_info): Likewise for locals "head", "n",
12114 "insn", "b", "a".
12115 (ia64_reorg): Likewise for local "insn".
12116 (ia64_output_mi_thunk): Likewise.
12117 (expand_vec_perm_interleave_2): Likewise for local "seq".
12118
12119 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12120
12121 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
12122 param 1 "insn" from rtx to rtx_insn *.
12123 (ix86_use_lea_for_mov): Likewise.
12124 (ix86_avoid_lea_for_addr): Likewise.
12125 (ix86_split_lea_for_addr): Likewise.
12126 (ix86_lea_for_add_ok): Likewise.
12127 (ix86_output_call_insn): Likewise.
12128
12129 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
12130 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
12131 (ix86_output_function_epilogue): Likewise for locals "insn",
12132 "deleted_debug_label".
12133 (legitimize_tls_address): Likewise for local "insn".
12134 (get_some_local_dynamic_name): Likewise.
12135 (increase_distance): Likewise for params "prev", "next".
12136 (distance_non_agu_define_in_bb): Likewise for params "insn",
12137 "start" and locals "prev", "next".
12138 (distance_non_agu_define): Likewise for param "insn".
12139 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
12140 locals "next", "prev".
12141 (distance_agu_use): Likewise for param "insn".
12142 (ix86_lea_outperforms): Likewise.
12143 (ix86_ok_to_clobber_flags): Likewise.
12144 (ix86_avoid_lea_for_add): Likewise.
12145 (ix86_use_lea_for_mov): Likewise.
12146 (ix86_avoid_lea_for_addr): Likewise.
12147 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
12148 (ix86_split_lea_for_addr): Likewise for param "insn".
12149 (ix86_lea_for_add_ok): Likewise for param "insn".
12150 (ix86_expand_carry_flag_compare): Likewise for local
12151 "compare_seq".
12152 (ix86_expand_int_movcc): Likewise.
12153 (ix86_output_call_insn): Likewise for param "insn".
12154 (ix86_output_call_insn): Likewise for local "i".
12155 (x86_output_mi_thunk): Introduce local "insn", using it in place
12156 of "tmp" when dealing with insns.
12157 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
12158 "start".
12159 (ix86_pad_returns): Likewise for locals "ret", "prev".
12160 (ix86_count_insn_bb): Likewise for local "insn".
12161 (ix86_pad_short_function): Likewise for locals "ret", "insn".
12162 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
12163 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
12164 (expand_vec_perm_interleave2): Likewise for local "seq".
12165 (expand_vec_perm_vperm2f128_vblend): Likewise.
12166 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
12167 call to for_each_rtx with for_each_rtx_in_insn.
12168
12169 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12170
12171 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
12172 "label" from rtx to rtx_code_label *.
12173 (ix86_expand_prologue): Likewise.
12174 (ix86_expand_split_stack_prologue): Likewise for locals "label",
12175 "varargs_label".
12176 (ix86_split_idivmod): Likewise for locals "end_label" and
12177 "qimode_label".
12178 (ix86_expand_branch): Likewise for local "label2".
12179 (ix86_expand_aligntest): Likewise for return type and local "label".
12180 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
12181 "top_label".
12182 (expand_movmem_epilogue): Likewise for the various locals named
12183 "label".
12184 (expand_setmem_epilogue): Likewise.
12185 (expand_small_movmem_or_setmem): Likewise for local "label".
12186 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12187 Strengthen param "done_label" from rtx * to rtx_code_label **.
12188 Strengthen locals "loop_label" and "label" from rtx to
12189 rtx_code_label *.
12190 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12191 Likewise for locals "loop_label", "label".
12192 (ix86_expand_set_or_movmem): Likewise for locals "label",
12193 "jump_around_label", "hot_label".
12194 (ix86_expand_strlensi_unroll_1): Likewise for locals
12195 "align_2_label", align_3_label", "align_4_label", "end_0_label",
12196 "end_2_label".
12197 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
12198 (void ix86_emit_i387_log1p): Likewise for locals "label1",
12199 "label2", "jump_label".
12200 (ix86_expand_sse_compare_and_jump): Likewise for return type and
12201 local "label".
12202 (ix86_expand_lfloorceil): Likewise for local "label".
12203 (ix86_expand_rint): Likewise.
12204 (ix86_expand_floorceildf_32): Likewise.
12205 (ix86_expand_floorceil): Likewise.
12206 (ix86_expand_rounddf_32): Likewise.
12207 (ix86_expand_trunc): Likewise.
12208 (ix86_expand_truncdf_32): Likewise.
12209 (ix86_expand_round): Likewise.
12210
12211 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12212
12213 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
12214 first param from rtx to rtx_insn *.
12215 (h8300_insn_length_from_table): Likewise.
12216 * config/h8300/h8300.c (F): Likewise for return type and param
12217 "x".
12218 (Fpa): Add a checked cast to rtx_insn *.
12219 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
12220 rtx_insn *.
12221 (final_prescan_insn): Likewise for param "insn".
12222 (h8300_binary_length): Likewise.
12223 (h8300_insn_length_from_table): Likewise.
12224
12225 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12226
12227 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
12228 Strengthen first param "insn" from rtx to rtx_insn *.
12229
12230 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
12231 Likewise.
12232 (frame_insn): Likewise for return type. Introduce local "insn"
12233 for use in place of local "x" for use as an rtx_insn *.
12234 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
12235 (epiphany_expand_prologue): Likewise for local "insn".
12236 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
12237 * config/epiphany/resolve-sw-modes.c
12238 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
12239 "seq".
12240
12241 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12242
12243 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
12244 param from rtx to rtx_insn *.
12245 (c6x_final_prescan_insn): Likewise for first param.
12246
12247 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
12248 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
12249 (c6x_expand_compare): Strengthen local "insns" from rtx to
12250 rtx_insn *.
12251 (c6x_get_unit_specifier): Likewise for param "insn".
12252 (c6x_print_unit_specifier_field): Likewise.
12253 (c6x_final_prescan_insn): Likewise.
12254 (emit_add_sp_const): Likewise for local "insn".
12255 (c6x_expand_prologue): Likewise.
12256
12257 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12258
12259 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
12260 param 1 from rtx to rtx_insn *.
12261 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
12262 the various locals named "insn".
12263 (expand_epilogue_reg_restore): Likewise.
12264 (frame_related_constant_load): Likewise.
12265 (add_to_reg): Likewise.
12266 (emit_link_insn): Likewise.
12267 (do_link): Likewise.
12268 (expand_interrupt_handler_prologue): Likewise.
12269 (branch_dest): Likewise for param "branch".
12270 (asm_conditional_branch): Likewise for param "insn".
12271 (gen_one_bundle): Likewise for elements of param "slot" and local
12272 "t".
12273 (bfin_gen_bundles): Likewise for locals "insn", "next" and
12274 elements of local "slot".
12275 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
12276 "queue", "next_queue", "prev".
12277 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
12278 (add_sched_insns_for_speculation): Likewise for local "insn".
12279
12280 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12281
12282 * config/avr/avr-protos.h (output_movqi): Strengthen first param
12283 from rtx to rtx_insn *.
12284 (output_movhi): Likewise.
12285 (output_movsisf): Likewise.
12286 (avr_out_tstsi): Likewise.
12287 (avr_out_tsthi): Likewise.
12288 (avr_out_tstpsi): Likewise.
12289 (avr_out_compare): Likewise.
12290 (avr_out_compare64): Likewise.
12291 (avr_out_movpsi): Likewise.
12292 (ashlqi3_out): Likewise.
12293 (ashlhi3_out): Likewise.
12294 (ashlsi3_out): Likewise.
12295 (ashrqi3_out): Likewise.
12296 (ashrhi3_out): Likewise.
12297 (ashrsi3_out): Likewise.
12298 (lshrqi3_out): Likewise.
12299 (lshrhi3_out): Likewise.
12300 (lshrsi3_out): Likewise.
12301 (avr_out_ashlpsi3): Likewise.
12302 (avr_out_ashrpsi3): Likewise.
12303 (avr_out_lshrpsi3): Likewise.
12304 (avr_out_fract): Likewise.
12305 (avr_out_sbxx_branch): Likewise.
12306 (avr_out_round): Likewise.
12307 (avr_out_xload): Likewise.
12308 (avr_out_movmem): Likewise.
12309 (adjust_insn_length): Likewise.
12310 (avr_out_lpm): Likewise.
12311 (reg_unused_after): Likewise.
12312 (_reg_unused_after): Likewise.
12313 (avr_jump_mode): Likewise for second param.
12314 (jump_over_one_insn): Likewise for first param.
12315 (avr_final_prescan_insn): Likewise.
12316 (out_shift_with_cnt): Likewise for second param.
12317
12318 * config/avr/avr.c (get_sequence_length): Likewise for param
12319 "insns" and local "insn".
12320 (emit_push_byte): Likewise for local "insn".
12321 (emit_push_sfr): Likewise.
12322 (avr_prologue_setup_frame): Likewise for locals "insn",
12323 "fp_plus_insns", "sp_plus_insns".
12324 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
12325 "sp_plus_insns".
12326 (avr_jump_mode): Likewise for param "insn".
12327 (avr_final_prescan_insn): Likewise.
12328 (avr_find_unused_d_reg): Likewise.
12329 (avr_out_lpm_no_lpmx): Likewise.
12330 (avr_out_lpm): Likewise.
12331 (avr_out_xload): Likewise.
12332 (output_movqi): Likewise.
12333 (output_movhi): Likewise.
12334 (out_movqi_r_mr): Likewise.
12335 (out_movhi_r_mr): Likewise.
12336 (out_movsi_r_mr): Likewise.
12337 (out_movsi_mr_r): Likewise.
12338 (output_movsisf): Likewise.
12339 (avr_out_load_psi): Likewise.
12340 (avr_out_store_psi): Likewise.
12341 (avr_out_movpsi): Likewise.
12342 (out_movqi_mr_r): Likewise.
12343 (avr_out_movhi_mr_r_xmega): Likewise.
12344 (out_movhi_mr_r): Likewise.
12345 (compare_condition): Likewise for param "insn" and local "next".
12346 (compare_sign_p): Likewise for param "insn".
12347 (compare_diff_p): Likewise.
12348 (compare_eq_p): Likewise.
12349 (avr_out_compare): Likewise.
12350 (avr_out_compare64): Likewise.
12351 (avr_out_tsthi): Likewise.
12352 (avr_out_tstpsi): Likewise.
12353 (avr_out_tstsi): Likewise.
12354 (out_shift_with_cnt): Likewise.
12355 (ashlqi3_out): Likewise.
12356 (ashlhi3_out): Likewise.
12357 (avr_out_ashlpsi3): Likewise.
12358 (ashlsi3_out): Likewise.
12359 (ashrqi3_out): Likewise.
12360 (ashrhi3_out): Likewise.
12361 (avr_out_ashrpsi3): Likewise.
12362 (ashrsi3_out): Likewise.
12363 (lshrqi3_out): Likewise.
12364 (lshrhi3_out): Likewise.
12365 (avr_out_lshrpsi3): Likewise.
12366 (lshrsi3_out): Likewise.
12367 (avr_out_fract): Likewise.
12368 (avr_out_round): Likewise.
12369 (avr_adjust_insn_length): Likewise.
12370 (reg_unused_after): Likewise.
12371 (_reg_unused_after): Likewise.
12372 (avr_compare_pattern): Likewise.
12373 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
12374 and locals "branch1", "branch2", "insn2", "jump".
12375 (avr_reorg): Likewise for local "insn".
12376 (avr_2word_insn_p): Likewise for param "insn".
12377 (jump_over_one_insn_p): Likewise.
12378 (avr_out_sbxx_branch): Likewise.
12379 (avr_out_movmem): Likewise.
12380
12381 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12382
12383 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
12384 param from rtx to rtx_insn *.
12385 (thumb1_final_prescan_insn): Likewise.
12386 (thumb2_final_prescan_insn): Likewise.
12387
12388 * config/arm/arm.c (emit_set_insn): Strengthen return type from
12389 rtx to rtx_insn *.
12390 (struct minipool_node): Likewise for field "insn".
12391 (dump_minipool): Likewise for param "scan".
12392 (create_fix_barrier): Likewise for local "from". Strengthen local
12393 "label" from rtx to rtx_code_label *.
12394 (push_minipool_barrier): Strengthen param "insn" from rtx to
12395 rtx_insn *.
12396 (push_minipool_fix): Likewise.
12397 (note_invalid_constants): Likewise.
12398 (thumb2_reorg): Likewise for local "insn".
12399 (arm_reorg): Likewise.
12400 (thumb2_final_prescan_insn): Likewise for param
12401 "insn" and local "first_insn".
12402 (arm_final_prescan_insn): Likewise for param "insn" and locals
12403 "start_insn", "this_insn".
12404 (arm_debugger_arg_offset): Likewise for param "insn".
12405 (thumb1_emit_multi_reg_push): Likewise for return type and local
12406 "insn".
12407 (thumb1_final_prescan_insn): Likewise for param "insn".
12408 (thumb_far_jump_used_p): Likewise for local "insn".
12409 (thumb1_expand_prologue): Likewise.
12410 (arm_expand_epilogue_apcs_frame): Likewise.
12411 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
12412 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
12413 from rtx to rtx_code_label *.
12414 (arm_split_atomic_op): Likewise for local "label".
12415 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
12416
12417 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12418
12419 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
12420 first param from rtx to rtx_insn *.
12421 (arc_verify_short): Likewise.
12422 (arc_short_long): Likewise.
12423 (arc_need_delay): Likewise.
12424
12425 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
12426 "target_insn".
12427 (arc_ccfsm_advance): Likewise for param "insn" and locals
12428 "start_insn", "this_insn".
12429 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
12430 (arc_ccfsm_post_advance): Likewise for param "insn".
12431 (arc_next_active_insn): Likewise for return type and param "insn".
12432 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
12433 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
12434 (output_short_suffix): Likewise for local "insn".
12435 (arc_final_prescan_insn): Likewise for param "insn". Remove
12436 now-redundant checked cast.
12437 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
12438 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
12439 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
12440 for use where lc_set became an insn.
12441 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
12442 rtx to rtx_insn *.
12443 (arc_get_insn_variants): Likewise for local "prev".
12444 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
12445 "next".
12446 (arc_predicate_delay_insns): Likewise for local "insn".
12447 (arc_pad_return): Likewise for local "prev". For now, add a
12448 checked cast when extracting the insn from "final_sequence".
12449 (arc_short_long): Likewise for param "insn".
12450 (arc_need_delay): Likewise for param "insn" and local "next".
12451 (arc_label_align): Likewise for locals "prev", "next".
12452
12453 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12454
12455 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
12456 "insn" from rtx to rtx_insn *.
12457 (alpha_gp_save_rtx): Likewise for local "seq".
12458 (alpha_instantiate_decls): Likewise for local "top".
12459 (get_some_local_dynamic_name): Likewise for local "insn".
12460 (alpha_does_function_need_gp): Likewise.
12461 (set_frame_related_p): Likewise for return type and for locals
12462 "seq" and "insn".
12463 (emit_frame_store_1): Likewise for local "insn".
12464 (alpha_expand_prologue): Likewise for locals "insn", "seq".
12465 (alpha_end_function): Likewise for local "insn".
12466 (alpha_output_mi_thunk_osf): Likewise.
12467 (alphaev4_insn_pipe): Likewise for param "insn".
12468 (alphaev5_insn_pipe): Likewise.
12469 (alphaev4_next_group): Likewise for return type and param 1
12470 "insn".
12471 (alphaev5_next_group): Likewise.
12472 (alpha_align_insns_1): Likewise for return type and param 1 of
12473 callback param "next_group", and for locals "i", "next", "prev",
12474 "where", "where2", "insn".
12475
12476 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
12477
12478 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
12479 rather than modifying the stmt.
12480
12481 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12482
12483 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
12484 cgraph_state conversion.
12485
12486 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12487
12488 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12489 Strengthen local "insns" from rtx to rtx_insn *.
12490 (aarch64_set_frame_expr): Likewise for local "insn".
12491 (aarch64_save_or_restore_fprs): Likewise.
12492 (aarch64_save_or_restore_callee_save_registers): Likewise.
12493 (aarch64_expand_prologue): Likewise.
12494 (aarch64_expand_epilogue): Likewise.
12495 (aarch64_output_mi_thunk): Likewise.
12496 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
12497 "label2" from rtx to rtx_code_label *.
12498 (aarch64_split_atomic_op): Likewise for local "label".
12499
12500 2014-08-25 Martin Liska <mliska@suse.cz>
12501
12502 * cgraph.h (symtab_node):
12503 (bool needed_p (void)): created from decide_is_symbol_needed
12504 (bool referred_to_p (void)): created from referred_to_p
12505 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
12506 * cgraph.h (cgraph_node):
12507 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
12508 (void expand (void)): created from expand_function
12509 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
12510 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
12511 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
12512 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
12513 * cgraph.h (varpool_node):
12514 (static void add (tree decl): created from varpool_add_new_variable
12515 * cgraph.h (cgraph_edge):
12516 void remove (void);
12517 (void remove_caller (void)): created from cgraph_edge_remove_caller
12518 (void remove_callee (void)): created from cgraph_edge_remove_callee
12519 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
12520 created from cgraph_set_call_stmt
12521 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
12522 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
12523 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
12524 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
12525 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
12526 created from cgraph_speculative_call_info
12527 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
12528 int freq_scale, bool update_original)): created from cgraph_clone_edge
12529 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
12530 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
12531 (bool recursive_p (void)): created from cgraph_edge_recursive_p
12532 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
12533 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
12534 (static void rebuild_references (void)): created from cgraph_rebuild_references
12535 * cgraph.h (symbol_table):
12536 (create_reference): renamed from add_reference
12537 (maybe_create_reference): renamed from maybe_add_reference
12538 (void register_symbol (symtab_node *node)): new function
12539 (void clear_asm_symbols (void)): new function
12540 (void unregister (symtab_node *node)): new function
12541 (void release_symbol (cgraph_node *node, int uid)): new function
12542 (cgraph_node * allocate_cgraph_symbol (void)): new function
12543 (void initialize (void)): created from cgraph_init
12544 (symtab_node *first_symbol (void)):new function
12545 (asm_node *first_asm_symbol (void)):new function
12546 (symtab_node *first_defined_symbol (void)):new function
12547 (varpool_node *first_variable (void)):new function
12548 (varpool_node *next_variable (varpool_node *node)):new function
12549 (varpool_node *first_static_initializer (void)):new function
12550 (varpool_node *next_static_initializer (varpool_node *node)):new function
12551 (varpool_node *first_defined_variable (void)):new function
12552 (varpool_node *next_defined_variable (varpool_node *node)):new function
12553 (cgraph_node *first_defined_function (void)):new function
12554 (cgraph_node *next_defined_function (cgraph_node *node)):new function
12555 (cgraph_node *first_function (void)):new function
12556 (cgraph_node *next_function (cgraph_node *node)):new function
12557 (cgraph_node *first_function_with_gimple_body (void)):new function
12558 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
12559 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
12560 created from symtab_remove_unreachable_nodes
12561 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12562 (void process_new_functions (void)): created from cgraph_process_new_functions
12563 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12564 (bool output_variables (void)): created from varpool_node::output_variables
12565 (void output_asm_statements (void)): created from output_asm_statements
12566 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12567 (void compile (void)): created from compile
12568 (void output_weakrefs (void)): created from output_weakrefs
12569 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12570 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12571 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12572 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12573 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12574 created from cgraph_next_function_with_gimple_body
12575 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12576 created from cgraph_remove_edge_removal_hook
12577 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12578 created from cgraph_add_node_removal_hook
12579 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12580 created from cgraph_remove_node_removal_hook
12581 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12582 created from varpool_add_node_removal_hook
12583 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12584 created from varpool_remove_node_removal_hook
12585 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12586 created from cgraph_add_function_insertion_hook
12587 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12588 created from cgraph_remove_function_insertion_hook
12589 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12590 created from varpool_add_variable_insertion_hook
12591 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12592 created from varpool_remove_variable_insertion_hook
12593 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12594 created from cgraph_add_edge_duplication_hook
12595 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12596 created from cgraph_remove_edge_duplication_hook
12597 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12598 created from cgraph_add_node_duplication_hook
12599 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12600 created from cgraph_remove_node_duplication_hook
12601 (void call_edge_removal_hooks (cgraph_edge *e)):
12602 created from cgraph_call_edge_removal_hooks
12603 (void call_cgraph_insertion_hooks (cgraph_node *node)):
12604 created from call_function_insertion_hooks
12605 (void call_cgraph_removal_hooks (cgraph_node *node)):
12606 created from cgraph_call_node_removal_hooks
12607 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12608 created from cgraph_node::call_duplication_hooks
12609 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12610 created from cgraph_call_edge_duplication_hooks
12611 (void call_varpool_removal_hooks (varpool_node *node)):
12612 created from varpool_call_node_removal_hooks
12613 (void call_varpool_insertion_hooks (varpool_node *node)):
12614 created from varpool_call_variable_insertion_hooks
12615 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12616 created from insert_to_assembler_name_hash
12617 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12618 created from unlink_from_assembler_name_hash
12619 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12620 created from symtab_prevail_in_asm_name_hash
12621 (void symtab_initialize_asm_name_hash (void)):
12622 created from symtab_initialize_asm_name_hash
12623 (void change_decl_assembler_name (tree decl, tree name)):
12624 created from change_decl_assembler_name
12625 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12626 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12627 created from decl_assembler_name_hash
12628 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12629 created from decl_assembler_name_equal
12630 (static hashval_t hash_node_by_assembler_name (const void *p)):
12631 created from hash_node_by_assembler_name
12632 (static int eq_assembler_name (const void *p1, const void *p2)):
12633 created from eq_assembler_name
12634
12635 2014-08-25 Marek Polacek <polacek@redhat.com>
12636
12637 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12638
12639 2014-08-25 Petr Murzin <petr.murzin@intel.com>
12640
12641 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12642 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12643 SWI1248_AVX512BW mode iterator.
12644
12645 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
12646
12647 PR target/62111
12648 * config/sh/predicates.md (general_extend_operand): Disable
12649 TRUNCATE before reload completes.
12650
12651 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
12652
12653 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12654
12655 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
12656
12657 PR target/61996
12658 * config/sh/sh.opt (musermode): Allow negative form.
12659 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12660 targets that don't support it.
12661 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12662 Document -mno-usermode option.
12663
12664 2014-08-24 Kito Cheng <kito@0xlab.org>
12665
12666 * system.h (CALLER_SAVE_PROFITABLE): Poison.
12667 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12668 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12669 * doc/tm.texi: Regenerate.
12670
12671 2014-08-24 Kito Cheng <kito@0xlab.org>
12672
12673 * ira.c: Fix typo in comment.
12674
12675 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
12676
12677 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12678 Deprecate c++1y. Change language to reflect greater confidence in C++14.
12679
12680 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
12681
12682 PR target/62038
12683 * config/pa/pa.c (pa_output_function_epilogue): Don't set
12684 last_address when the current function is a thunk.
12685 (pa_asm_output_mi_thunk): When we don't have named sections or they
12686 are not being used, check that thunk can reach the stub table with a
12687 short branch.
12688
12689 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12690
12691 * web.c (union_match_dups): Strengthen param "insn" from rtx to
12692 rtx_insn *.
12693 (pass_web::execute): Likewise for local "insn".
12694
12695 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12696
12697 * var-tracking.c (struct micro_operation_def): Strengthen field
12698 "insn" from rtx to rtx_insn *.
12699 (struct emit_note_data_def): Likewise.
12700 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12701 (vt_stack_adjustments): Likewise for local "insn".
12702 (adjust_insn): Likewise for param "insn".
12703 (val_store): Likewise.
12704 (val_resolve): Likewise.
12705 (struct count_use_info): Likewise for field "insn".
12706 (log_op_type): Likewise for param "insn".
12707 (reverse_op): Likewise.
12708 (prepare_call_arguments): Likewise.
12709 (add_with_sets): The initial param takes an insn, but we can't
12710 yet strengthen it from rtx to rtx_insn * since it's used as a
12711 cselib_record_sets_hook callback. For now rename initial param
12712 from "insn" to "uncast_insn", and introduce a local "insn" of
12713 the stronger rtx_insn * type, with a checked cast.
12714 (compute_bb_dataflow): Strengthen local "insn" from rtx to
12715 rtx_insn *.
12716 (emit_note_insn_var_location): Likewise.
12717 (emit_notes_for_changes): Likewise.
12718 (emit_notes_for_differences): Likewise.
12719 (next_non_note_insn_var_location): Likewise for return type and
12720 for param "insn".
12721 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12722 (vt_initialize): Likewise for local "insn".
12723 (delete_debug_insns): Likewise for locals "insn" and "next".
12724
12725 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12726
12727 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12728 rtx_insn *.
12729 (mark_constant_pool): Likewise for local "insn".
12730
12731 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12732
12733 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12734 rtx to rtx_insn *.
12735 (dead_debug_promote_uses): Likewise.
12736 (dead_debug_insert_temp): Likewise.
12737
12738 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12739
12740 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12741 from const_rtx to const rtx_insn *.
12742 (store_killed_after): Likewise. Strengthen locals "last", "act"
12743 from rtx to rtx_insn *.
12744 (store_killed_before): Strengthen param "insn" from const_rtx to
12745 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
12746 (find_moveable_store): Strengthen param "insn" from rtx to
12747 rtx_insn *.
12748 (compute_store_table): Likewise for local "insn".
12749 (insert_insn_start_basic_block): Likewise for param "insn" and
12750 locals "prev", "before", "insn".
12751 (insert_store): For now, add a checked cast to rtx_insn * on the
12752 result of gen_move_insn.
12753 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12754 to rtx_insn *.
12755 (replace_store_insn): Likewise. For now, add a checked cast to
12756 rtx_insn * on the result of gen_move_insn.
12757
12758 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12759
12760 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12761 rtx_insn *.
12762 (expand_sjlj_dispatch_table): Likewise.
12763
12764 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12765
12766 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12767 "insn" from rtx to rtx_insn *.
12768
12769 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12770
12771 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12772 "insn" from rtx to rtx_insn *.
12773 (dup_block_and_redirect): Likewise for param 3 "before".
12774
12775 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12776 from rtx to rtx_insn *.
12777 (move_insn_for_shrink_wrap): Likewise.
12778 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12779 (dup_block_and_redirect): Likewise for param "before" and local
12780 "insn".
12781 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12782 "end".
12783 (convert_to_simple_return): Likewise for local "start".
12784
12785 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12786 Strengthen local "insn" from rtx to rtx_insn *, for use when
12787 invoking requires_stack_frame_p.
12788
12789 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12790
12791 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12792 rtx_insn *.
12793 (speculate_expr): Likewise for locals "orig_insn_rtx",
12794 "spec_insn_rtx".
12795 (eq_transformed_insns): Likewise for locals "i1", "i2".
12796 (check_for_new_jump): Likewise for return type and local "end".
12797 (find_new_jump): Likewise for return type and local "jump".
12798 (sel_split_edge): Likewise for local "jump".
12799 (sel_create_recovery_block): Likewise.
12800 (sel_redirect_edge_and_branch_force): Likewise.
12801 (sel_redirect_edge_and_branch): Likewise.
12802
12803 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12804
12805 * sel-sched.c (substitute_reg_in_expr): Strengthen local
12806 "new_insn" from rtx to rtx_insn *.
12807 (create_insn_rtx_with_rhs): Likewise for return type and for local
12808 "insn_rtx".
12809 (create_insn_rtx_with_lhs): Likewise.
12810 (create_speculation_check): Likewise for local "insn_rtx".
12811 (implicit_clobber_conflict_p): Likewise for local "insn".
12812 (get_expr_cost): Likewise.
12813 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12814 (move_cond_jump): Likewise for locals "next", "prev", "link",
12815 "head", "from", "to".
12816
12817 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12818
12819 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12820 "next" from rtx to rtx_insn *.
12821 (find_conditional_protection): Likewise for local "next".
12822 (is_conditionally_protected): Likewise for local "insn1".
12823 (is_pfree): Likewise for locals "insn1", "insn2".
12824
12825 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12826
12827 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12828 from rtx to rtx_insn *.
12829
12830 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12831 locals "insn1", "insn2" from rtx to rtx_insn *.
12832 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12833 locals "insn", "prev", "last_jump", "next_tail".
12834 (schedule_ebb): Likewise for params "head", "tail".
12835 (schedule_ebbs): Likewise for locals "tail", "head".
12836
12837 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12838 to rtx_insn on "last_insn" in one of the invocations of
12839 schedule_ebb.
12840
12841 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12842
12843 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12844 "elem", "insn" from rtx to rtx_insn *.
12845 (change_spec_dep_to_hard): Likewise.
12846 (get_back_and_forw_lists): Likewise for local "con".
12847 (sd_add_dep): Likewise for locals "elem", "insn".
12848 (sd_resolve_dep): Likewise for locals "pro", "con".
12849 (sd_unresolve_dep): Likewise.
12850 (sd_delete_dep): Likewise.
12851 (chain_to_prev_insn): Likewise for local "pro".
12852 (find_inc): Likewise for locals "pro", "con".
12853
12854 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12855
12856 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12857 to rtx_insn *.
12858 (reg_set_between_p): Strengthen local "insn" from const_rtx to
12859 const rtx_insn *.
12860 (modified_between_p): Strengthen local "insn" from rtx to
12861 rtx_insn *.
12862 (remove_reg_equal_equiv_notes_for_regno): Likewise.
12863 (keep_with_call_p): Strengthen local "i2" from const_rtx to
12864 const rtx_insn *.
12865
12866 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12867
12868 * resource.c (next_insn_no_annul): Strengthen local "next" from
12869 rtx to rtx_insn *.
12870 (mark_referenced_resources): Likewise for local "insn".
12871
12872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12873
12874 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12875 to rtx_insn *.
12876 (find_reloads): Likewise for param 1.
12877 (subst_reloads): Likewise for sole param.
12878 (find_equiv_reg): Likwise for param 2.
12879 (regno_clobbered_p): Likwise for param 2.
12880 (reload): Likewise for param 1.
12881
12882 * caller-save.c (save_call_clobbered_regs): Strengthen local
12883 "insn" from rtx to rtx_insn *.
12884 (insert_one_insn): Likewise for local "insn".
12885
12886 * reload.c (this_insn): Likewise for this global.
12887 (find_reloads): Likewise for param "insn".
12888 (find_reloads_toplev): Likewise.
12889 (find_reloads_address): Likewise.
12890 (subst_reg_equivs): Likewise.
12891 (update_auto_inc_notes): Likewise.
12892 (find_reloads_address_1): Likewise.
12893 (find_reloads_subreg_address): Likewise.
12894 (subst_reloads): Likewise.
12895 (find_equiv_reg): Likewise, also for local "p".
12896 (regno_clobbered_p): Likewise for param "insn".
12897
12898 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12899 array.
12900 (spill_reg_store): Likewise for the elements of this array.
12901 (remove_init_insns): Likewise for local "equiv_insn".
12902 (will_delete_init_insn_p): Likewise for param "insn".
12903 (reload): Likewise for param ""first" and local "insn".
12904 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12905 rtx_insn *.
12906 (calculate_elim_costs_all_insns): Likewise.
12907 (delete_caller_save_insns): Likewise.
12908 (spill_failure): Likewise for param "insn".
12909 (delete_dead_insn): Likewise.
12910 (set_label_offsets): Likewise.
12911 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12912 "prev_insn".
12913 (elimination_costs_in_insn): Likewise for param "insn".
12914 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12915 when referring to an insn.
12916 (set_initial_label_offsets): Likewise.
12917 (set_offsets_for_label): Strengthen param "insn" from rtx to
12918 rtx_insn *.
12919 (init_eliminable_invariants): Likewise for param "first" and local
12920 "insn".
12921 (fixup_eh_region_note): Likewise for param "insn".
12922 (reload_as_needed): Likewise for locals "prev", "insn",
12923 "old_next", "old_prev", "next".
12924 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12925 "last".
12926 (reload_inheritance_insn): Strengthen elements of this array from
12927 rtx to rtx_insn *.
12928 (failed_reload): Likewise for param "insn".
12929 (choose_reload_regs): Likewise for local "insn". Replace use of
12930 NULL_RTX with NULL when referring to an insn.
12931 (input_reload_insns): Strengthen elements of this array from rtx
12932 to rtx_insn *.
12933 (other_input_address_reload_insns): Likewise for this global.
12934 (other_input_reload_insns): Likewise for this global.
12935 (input_address_reload_insns): Likwise for the elements of this
12936 array.
12937 (inpaddr_address_reload_insns): Likwise for the elements of this
12938 array.
12939 (output_reload_insns): Likewise for the elements of this array.
12940 (output_address_reload_insns): Likewise for the elements of this
12941 array.
12942 (outaddr_address_reload_insns): Likewise for the elements of this
12943 array.
12944 (operand_reload_insns): Likewise for this global.
12945 (other_operand_reload_insns): Likewise for this global.
12946 (other_output_reload_insns): Likewise for the elements of this
12947 array.
12948 (new_spill_reg_store): Likewise for the elements of this
12949 array.
12950 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12951 Strengthen local "where" from rtx * to rtx_insn **.
12952 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12953 from rtx to rtx_insn *.
12954 (do_input_reload): Likewise for local "insn".
12955 (do_output_reload): Likewise for local "insn".
12956 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12957 (emit_insn_if_valid_for_reload): Likewise for return type and local
12958 "last". Add checked cast to rtx_insn when returning "insn" since
12959 this has been through emit_insn.
12960 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12961 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12962 returning "insn" since it's been through
12963 emit_insn_if_valid_for_reload at this point.
12964 (delete_output_reload): Strengthen param "insn" and locals
12965 "output_reload_insn", "i2" from rtx to rtx_insn *.
12966 (delete_address_reloads): Likewise for params "dead_insn",
12967 "current_insn" and locals "prev", "next".
12968 (delete_address_reloads_1): Likewise for params "dead_insn",
12969 "current_insn" and locals "prev", "i2".
12970 (inc_for_reload): Likewise for locals "last", "add_insn".
12971 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12972 rtx_insn *.
12973
12974 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12975 param of this duplicate of the prototype from reload.h
12976
12977 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12978
12979 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12980 rtx to rtx_insn *.
12981 (regstat_bb_compute_calls_crossed): Likewise.
12982
12983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12984
12985 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12986 to rtx_insn *.
12987 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12988 with an insn.
12989 (regrename_analyze): Strengthen local "insn" from rtx to
12990 rtx_insn *.
12991 (scan_rtx_reg): Likewise for param "insn".
12992 (scan_rtx_address): Likewise.
12993 (scan_rtx): Likewise.
12994 (restore_operands): Likewise.
12995 (record_out_operands): Likewise.
12996 (build_def_use): Likewise for local "insn". Replace use of
12997 NULL_RTX with NULL when dealing with an insn.
12998
12999 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13000
13001 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
13002 * reginfo.c (reg_scan): Likewise, also for local "insn".
13003 (reg_scan_mark_refs): Likewise for param "insn".
13004 (init_subregs_of_mode): Likewise for local "insn".
13005
13006 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13007
13008 * regcprop.c (struct queued_debug_insn_change): Strengthen field
13009 "insn" from rtx to rtx_insn *.
13010 (replace_oldest_value_reg): Likewise for param "insn".
13011 (replace_oldest_value_addr): Likewise.
13012 (replace_oldest_value_mem): Likewise.
13013 (apply_debug_insn_changes): Likewise for local "last_insn".
13014 (copyprop_hardreg_forward_1): Likewise for local "insn".
13015
13016 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13017
13018 * reg-stack.c (next_flags_user): Strengthen return type and param
13019 "insn" from rtx to rtx_insn *.
13020 (straighten_stack): Likewise for param "insn".
13021 (check_asm_stack_operands): Likewise.
13022 (remove_regno_note): Likewise.
13023 (emit_pop_insn): Likewise for return type, param "insn", local
13024 "pop_insn".
13025 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
13026 "limit" from rtx to rtx_insn *.
13027 (swap_to_top): Likewise for param "insn".
13028 (move_for_stack_reg): Likewise.
13029 (move_nan_for_stack_reg): Likewise.
13030 (swap_rtx_condition): Likewise.
13031 (compare_for_stack_reg): Likewise.
13032 (subst_all_stack_regs_in_debug_insn): Likewise.
13033 (subst_stack_regs_pat): Likewise, and local "insn2".
13034 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
13035 rtx_insn *.
13036 (subst_stack_regs): Likewise.
13037 (change_stack): Likewise.
13038 (convert_regs_1): Likewise for locals "insn", "next".
13039
13040 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13041
13042 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
13043 rtx_insn *.
13044 (combine_set_extension): Likewise for param "curr_insn".
13045 (transform_ifelse): Likewise for param "def_insn".
13046 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
13047 from vec<rtx> * to vec<rtx_insn *> *.
13048 (is_cond_copy_insn): Likewise for param "insn".
13049 (struct ext_state): Strengthen the four vec fields from vec<rtx>
13050 to vec<rtx_insn *>.
13051 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
13052 local "def_insn" from rtx to rtx_insn *.
13053 (get_sub_rtx): Likewise for param "def_insn".
13054 (merge_def_and_ext): Likewise.
13055 (combine_reaching_defs): Likewise.
13056 (add_removable_extension): Likewise for param "insn".
13057 (find_removable_extensions): Likewise for local "insn".
13058 (find_and_remove_re): Likewise for locals "curr_insn" and
13059 "def_insn". Strengthen locals "reinsn_del_list" and
13060 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
13061
13062 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13063
13064 * recog.c (split_insn): Strengthen param "insn" and locals
13065 "first", "last" from rtx to rtx_insn *.
13066 (split_all_insns): Likewise for locals "insn", "next".
13067 (split_all_insns_noflow): Likewise.
13068
13069 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13070
13071 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
13072 const rtx_insn *.
13073 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13074 (debug_rtx_find): Likewise for param 1 "x".
13075
13076 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
13077 const_rtx to const rtx_insn *. Likewise for local "insn".
13078 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
13079 (debug_rtx_find): Likewise for param 1 "x".
13080 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
13081 from const_rtx to const rtx_insn * within the appropriate cases of
13082 the switch statement.
13083
13084 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
13085 Strengthen local "insns" from rtx to rtx_insn * since this is
13086 passed to a call to debug_rtx_list.
13087
13088 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13089
13090 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
13091 to rtx_insn *.
13092
13093 * function.c (stack_protect_epilogue): Add checked cast to
13094 rtx_insn for now when invoking predict_insn_def.
13095
13096 * predict.c (predict_insn): Strengthen param "insn" from rtx to
13097 rtx_insn *.
13098 (predict_insn_def): Likewise.
13099 (rtl_predict_edge): Likewise for local "last_insn".
13100 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
13101 const rtx_insn *.
13102 (combine_predictions_for_insn): Strengthen param "insn" from rtx
13103 to rtx_insn *.
13104 (bb_estimate_probability_locally): Likewise for local "last_insn".
13105 (expensive_function_p): Likewise for local "insn".
13106
13107 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
13108 local "jmp", since this is used when invoking predict_insn_def.
13109
13110 2014-08-22 Marek Polacek <polacek@redhat.com>
13111
13112 PR c++/62199
13113 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
13114
13115 2014-08-22 Marek Polacek <polacek@redhat.com>
13116
13117 PR c/61271
13118 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
13119 a comparison in parens.
13120 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
13121 in parens.
13122
13123 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13124
13125 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
13126 rtx_insn *.
13127
13128 * cprop.c (fis_get_condition): Likewise.
13129
13130 * postreload.c (reload_cse_regs): Likewise for param "first".
13131 (reload_cse_simplify): Likewise for param "insn".
13132 (reload_cse_regs_1): Likewise for local "insn".
13133 (reload_cse_simplify_set): Likewise for param "insn".
13134 (reload_cse_simplify_operands): Likewise.
13135 (struct reg_use): Likewise for field "insn".
13136 (reload_combine_purge_insn_uses): Likewise for param "insn".
13137 (fixup_debug_insns): Likewise for params "from", "to" and local
13138 "insn".
13139 (try_replace_in_use): Likewise for local "use_insn".
13140 (reload_combine_recognize_const_pattern): Likewise for param
13141 "insn" and locals "add_moved_after_insn", "use_insn".
13142 (reload_combine_recognize_pattern): Likewise for param "insn" and
13143 local "prev".
13144 (reload_combine): Likewise for locals "insn", "prev".
13145 (reload_combine_note_use): Likewise for param "insn".
13146 (move2add_use_add2_insn): Likewise.
13147 (move2add_use_add3_insn): Likewise.
13148 (reload_cse_move2add): Likewise, also for local "next".
13149 (move2add_note_store): Likewise for local "insn".
13150
13151 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13152
13153 * postreload-gcse.c (struct occr): Strengthen field "insn" from
13154 rtx to rtx_insn *.
13155 (struct unoccr): Likewise.
13156 (struct modifies_mem): Likewise.
13157 (alloc_mem): Likewise for local "insn".
13158 (insert_expr_in_table): Likewise for param "insn".
13159 (dump_expr_hash_table_entry): Likewise for local "insn".
13160 (oprs_unchanged_p): Likewise for param "insn".
13161 (load_killed_in_block_p): Likewise for local "setter".
13162 (record_last_reg_set_info): Likewise for param "insn".
13163 (record_last_reg_set_info_regno): Likewise.
13164 (record_last_mem_set_info): Likewise.
13165 (record_last_set_info): Likewise for local "last_set_insn".
13166 (record_opr_changes): Likewise for param "insn".
13167 (hash_scan_set): Likewise.
13168 (compute_hash_table): Likewise for local "insn".
13169 (get_avail_load_store_reg): Likewise for param "insn".
13170 (eliminate_partially_redundant_load): Likewise, also for locals
13171 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
13172 RTX for insns.
13173 (eliminate_partially_redundant_loads): Likewise for local "insn".
13174
13175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13176
13177 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
13178 rtx to rtx_insn *.
13179 (expand_binop): Likewise for locals "entry_last", "last", "insns"
13180 (expand_twoval_unop): Likewise for locals entry_last", "last".
13181 (expand_twoval_binop): Likewise.
13182 (expand_twoval_binop_libfunc): Likewise for local "insns".
13183 (widen_leading): Likewise for local "last".
13184 (expand_doubleword_clz): Likewise for local "seq". Strengthen
13185 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
13186 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
13187 (expand_parity): Likewise for locals "last" and "seq".
13188 (expand_ffs): Likewise for local "seq". Strengthen local
13189 "nonzero_label" from rtx to rtx_code_label *.
13190 (expand_absneg_bit): Strengthen local "insns" from rtx to
13191 rtx_insn *.
13192 (expand_unop_direct): Likewise for local "last".
13193 (expand_unop): Likewise for locals "last", "insns".
13194 (expand_abs_nojump): Likewise for local "last".
13195 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
13196 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
13197 rtx_insn *.
13198 (expand_copysign_absneg): Strengthen local "label" from rtx to
13199 rtx_code_label *.
13200 (expand_copysign_bit): Strengthen local "insns" from rtx to
13201 rtx_insn *.
13202 (struct no_conflict_data): Likewise for fields "first", "insn".
13203 (emit_libcall_block_1): Likewise for param "insns" and locals
13204 "next", "last", "insn".
13205 (emit_libcall_block): For now, add a checked cast to rtx_insn *
13206 on "insns" when invoking emit_libcall_block_1. Ultimately we
13207 want to strengthen insns itself.
13208 (prepare_cmp_insn): Strengthen local "last" from rtx to
13209 rtx_insn *.
13210 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
13211 (prepare_float_lib_cmp): Likewise for local "insns".
13212 (emit_conditional_move): Likewise for local "last".
13213 (emit_conditional_add): Likewise.
13214 (have_sub2_insn): Likewise for local "seq".
13215 (expand_float): Likewise for local "insns". Strengthen locals
13216 "label", "neglabel" from rtx to rtx_code_label *.
13217 (expand_fix): Likewise for locals "last", "insn", "insns" (to
13218 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
13219 (expand_fixed_convert): Likewise for local "insns" (to
13220 rtx_insn *).
13221 (expand_sfix_optab): Likewise for local "last".
13222 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
13223 to rtx_code_label *.
13224 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
13225 from rtx to rtx_insn *.
13226 (expand_atomic_fetch_op): Likewise for local "insn".
13227 (maybe_legitimize_operand_same_code): Likewise for local "last".
13228 (maybe_legitimize_operands): Likewise.
13229
13230 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13231
13232 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
13233 "insn" from rtx to rtx_insn *.
13234 (ps_rtl_insn): Likewise for return type.
13235 (doloop_register_get): Likewise for params "head", "tail" and
13236 locals "insn", "first_insn_not_to_check".
13237 (schedule_reg_move): Likewise for local "this_insn".
13238 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
13239 of gen_move_insn for now.
13240 (reset_sched_times): Strengthen local "insn" from rtx to
13241 rtx_insn *.
13242 (permute_partial_schedule): Likewise.
13243 (duplicate_insns_of_cycles): Likewise for local "u_insn".
13244 (dump_insn_location): Likewise for param "insn".
13245 (loop_canon_p): Likewise for local "insn".
13246 (sms_schedule): Likewise.
13247 (print_partial_schedule): Likewise.
13248 (ps_has_conflicts): Likewise.
13249
13250 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13251
13252 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
13253 "tailp" from rtx * to rtx_insn **.
13254
13255 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
13256 from rtx to rtx_insn *.
13257 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
13258 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
13259 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
13260 rtx to rtx_insn *.
13261 * modulo-sched.c (const_iteration_count): Strengthen return type
13262 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
13263 use of NULL_RTX with NULL when working with insns.
13264 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
13265 to rtx_insn *.
13266 (sms_schedule): Likewise.
13267 * sched-rgn.c (init_ready_list): Likewise, also for locals
13268 "src_head" and "src_next_tail".
13269 (compute_block_dependences): Likewise.
13270 (free_block_dependencies): Likewise.
13271 (debug_rgn_dependencies): Likewise.
13272 (free_rgn_deps): Likewise.
13273 (compute_priorities): Likewise.
13274 (schedule_region): Likewise.
13275 * sel-sched.c (find_ebb_boundaries): Likewise.
13276
13277 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
13278 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
13279
13280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13281
13282 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
13283 from rtx to rtx_insn *.
13284 (new_seginfo): Likewise for param "insn".
13285 (create_pre_exit): Likewise for locals "last_insn",
13286 "before_return_copy", "return_copy".
13287 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
13288 "mode_set".
13289
13290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13291
13292 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
13293 from rtx to rtx_insn *.
13294 (lra_push_insn): Likewise for 1st param.
13295 (lra_push_insn_and_update_insn_regno_info): Likewise.
13296 (lra_pop_insn): Likewise for return type.
13297 (lra_invalidate_insn_data): Likewise for 1st param.
13298 (lra_set_insn_deleted): Likewise.
13299 (lra_delete_dead_insn): Likewise.
13300 (lra_process_new_insns): Likewise for first 3 params.
13301 (lra_set_insn_recog_data): Likewise for 1st param.
13302 (lra_update_insn_recog_data): Likewise.
13303 (lra_set_used_insn_alternative): Likewise.
13304 (lra_invalidate_insn_regno_info): Likewise.
13305 (lra_update_insn_regno_info): Likewise.
13306 (lra_former_scratch_operand_p): Likewise.
13307 (lra_eliminate_regs_1): Likewise.
13308 (lra_get_insn_recog_data): Likewise.
13309
13310 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
13311 rtx to rtx_insn *.
13312
13313 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
13314 "mv1" and "mv2".
13315 (substitute_within_insn): New.
13316 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
13317 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
13318 Replace call to "substitute" with call to substitute_within_insn.
13319
13320 * lra-constraints.c (curr_insn): Strengthen from rtx to
13321 rtx_insn *.
13322 (get_equiv_with_elimination): Likewise for param "insn".
13323 (match_reload): Strengthen params "before" and "after" from rtx *
13324 to rtx_insn **.
13325 (emit_spill_move): Likewise for return type. Add a checked cast
13326 to rtx_insn * on result of gen_move_insn for now.
13327 (check_and_process_move): Likewise for local "before". Replace
13328 NULL_RTX with NULL when referring to insns.
13329 (process_addr_reg): Strengthen params "before" and "after" from
13330 rtx * to rtx_insn **.
13331 (insert_move_for_subreg): Likewise.
13332 (simplify_operand_subreg): Strengthen locals "before" and "after"
13333 from rtx to rtx_insn *.
13334 (process_address_1): Strengthen params "before" and "after" from
13335 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
13336 rtx to rtx_insn *.
13337 (process_address): Strengthen params "before" and "after" from
13338 rtx * to rtx_insn **.
13339 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
13340 (curr_insn_transform): Strengthen locals "before" and "after"
13341 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
13342 to insns.
13343 (loc_equivalence_callback): Update cast of "data", changing
13344 resulting type from rtx to rtx_insn *.
13345 (substitute_pseudo_within_insn): New.
13346 (inherit_reload_reg): Strengthen param "insn" from rtx to
13347 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
13348 NULL when referring to insns. Add a checked cast to rtx_insn *
13349 when using usage_insn to invoke lra_update_insn_regno_info.
13350 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
13351 likewise for locals "restore", "save". Add checked casts to
13352 rtx_insn * when using usage_insn to invoke
13353 lra_update_insn_regno_info and lra_process_new_insns. Replace
13354 NULL_RTX with NULL when referring to insns.
13355 (split_if_necessary): Strengthen param "insn" from rtx to
13356 rtx_insn *.
13357 (update_ebb_live_info): Likewise for params "head", "tail" and local
13358 "prev_insn".
13359 (get_last_insertion_point): Likewise for return type and local "insn".
13360 (get_live_on_other_edges): Likewise for local "last".
13361 (inherit_in_ebb): Likewise for params "head", "tail" and locals
13362 "prev_insn", "next_insn", "restore".
13363 (remove_inheritance_pseudos): Likewise for local "prev_insn".
13364 (undo_optional_reloads): Likewise for local "insn".
13365
13366 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
13367 "insn".
13368 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
13369 insns.
13370 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
13371 rtx_insn *.
13372 (spill_pseudos): Likewise for local "insn".
13373 (init_elimination): Likewise.
13374 (process_insn_for_elimination): Likewise for param "insn".
13375
13376 * lra-lives.c (curr_insn): Likewise.;
13377
13378 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
13379 (remove_pseudos): Likewise for param "insn".
13380 (spill_pseudos): Likewise for local "insn".
13381 (lra_final_code_change): Likewise for locals "insn", "curr".
13382
13383 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
13384 (lra_set_insn_deleted): Likewise.
13385 (lra_delete_dead_insn): Likewise, and for local "prev".
13386 (new_insn_reg): Likewise for param "insn".
13387 (lra_set_insn_recog_data): Likewise.
13388 (lra_update_insn_recog_data): Likewise.
13389 (lra_set_used_insn_alternative): Likewise.
13390 (get_insn_freq): Likewise.
13391 (invalidate_insn_data_regno_info): Likewise.
13392 (lra_invalidate_insn_regno_info): Likewise.
13393 (lra_update_insn_regno_info): Likewise.
13394 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
13395 vec<rtx_insn *>.
13396 (lra_push_insn_1): Strengthen param "insn" from rtx to
13397 rtx_insn *.
13398 (lra_push_insn): Likewise.
13399 (lra_push_insn_and_update_insn_regno_info): Likewise.
13400 (lra_pop_insn): Likewise for return type and local "insn".
13401 (push_insns): Likewise for params "from", "to", and local "insn".
13402 (setup_sp_offset): Likewise for params "from", "last" and locals
13403 "before", "insn".
13404 (lra_process_new_insns): Likewise for params "insn", "before",
13405 "after" and local "last".
13406 (struct sloc): Likewise for field "insn".
13407 (lra_former_scratch_operand_p): Likewise for param "insn".
13408 (remove_scratches): Likewise for locals "insn", "last".
13409 (check_rtl): Likewise for local "insn".
13410 (add_auto_inc_notes): Likewise for param "insn".
13411 (update_inc_notes): Likewise for local "insn".
13412 (lra): Replace NULL_RTX with NULL when referring to insn.
13413
13414 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13415
13416 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
13417 to rtx_insn *.
13418 (resolve_reg_notes): Likewise.
13419 (resolve_simple_move): Likewise for return type, param "insn", and
13420 locals "insns", "minsn".
13421 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
13422 (resolve_use): Likewise.
13423 (resolve_debug): Likewise.
13424 (find_decomposable_shift_zext): Likewise.
13425 (resolve_shift_zext): Likewise for return type, param "insn", and
13426 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
13427 (decompose_multiword_subregs): Likewise for local "insn",
13428 "orig_insn", "decomposed_shift", "end".
13429
13430 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13431
13432 * basic-block.h (basic_block split_edge_and_insert): Strengthen
13433 param "insns" from rtx to rtx_insn *.
13434
13435 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
13436 rtx to rtx_insn *.
13437 (struct iv_to_split): Likewise.
13438 (loop_exit_at_end_p): Likewise for local "insn".
13439 (split_edge_and_insert): Likewise for param "insns".
13440 (compare_and_jump_seq): Likewise for return type, param "cinsn",
13441 and locals "seq", "jump".
13442 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
13443 "branch_code"; update invocations of compare_and_jump_seq to
13444 eliminate NULL_RTX in favor of NULL.
13445 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
13446 rtx to rtx_insn *.
13447 (reset_debug_uses_in_loop): Likewise.
13448 (analyze_insn_to_expand_var): Likewise for param "insn".
13449 (analyze_iv_to_split_insn): Likewise.
13450 (analyze_insns_in_loop): Likewise for local "insn".
13451 (insert_base_initialization): Likewise for param
13452 "insn" and local "seq".
13453 (split_iv): Likewise for param "insn" and local "seq".
13454 (expand_var_during_unrolling): Likewise for param "insn".
13455 (insert_var_expansion_initialization): Likewise for local "seq".
13456 (combine_var_copies_in_loop_exit): Likewise.
13457 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
13458 "insn".
13459 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
13460 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
13461 "next".
13462
13463 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13464
13465 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
13466 rtx_insn *.
13467 (iv_analyze_result): Likewise.
13468 (iv_analyze_expr): Likewise.
13469 (biv_p): Likewise.
13470
13471 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
13472 local "def_insn" from rtx to rtx_insn *.
13473 (get_biv_step_1): Likewise for local "insn".
13474 (iv_analyze_expr): Likewise for param "insn".
13475 (iv_analyze_def): Likewise for local "insn".
13476 (iv_analyze_op): Likewise for param "insn".
13477 (iv_analyze): Likewise.
13478 (iv_analyze_result): Likewise.
13479 (biv_p): Likewise.
13480 (suitable_set_for_replacement): Likewise.
13481 (simplify_using_initial_values): Likewise for local "insn".
13482 (iv_number_of_iterations): Likewise for param "insn".
13483 (check_simple_exit): Add checked cast to rtx_insn when invoking
13484 iv_number_of_iterations for now (until get_condition is
13485 strengthened).
13486
13487 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
13488 "insn" from rtx to rtx_insn *.
13489 (analyze_insns_in_loop): Likewise for local "insn".
13490
13491 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13492
13493 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
13494 to rtx_insn *.
13495 (struct invariant): Likewise.
13496 (hash_invariant_expr_1): Likewise for param "insn".
13497 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
13498 (find_exits): Likewise for local "insn".
13499 (create_new_invariant): Likewise for param "insn".
13500 (check_dependencies): Likewise.
13501 (find_invariant_insn): Likewise.
13502 (record_uses): Likewise.
13503 (find_invariants_insn): Likewise.
13504 (find_invariants_bb): Likewise for local "insn".
13505 (get_pressure_class_and_nregs): Likewise for param "insn".
13506 (calculate_loop_reg_pressure): Likewise for local "insn".
13507
13508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13509
13510 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
13511 to rtx_insn *.
13512 (add_test): Likewise for locals "seq", "jump".
13513 (doloop_modify): Likewise for locals "sequence", "jump_insn".
13514
13515 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13516
13517 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
13518 rtx_insn *.
13519 (rebuild_jump_labels_chain): Likewise for param "chain".
13520
13521 * cfgexpand.c (pass_expand::execute): Add checked cast to
13522 rtx_insn * when calling rebuild_jump_labels_chain in region where
13523 we know e->insns.r is non-NULL.
13524
13525 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
13526 rtx_insn *.
13527 (rebuild_jump_labels): Likewise.
13528 (rebuild_jump_labels_chain): Likewise for param "chain".
13529 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
13530 (init_label_info): Likewise for param "f".
13531 (maybe_propagate_label_ref): Likewise for params "jump_insn",
13532 "prev_nonjump_insn".
13533 (mark_all_labels): Likewise for param "f" and locals "insn",
13534 "prev_nonjump_insn".
13535
13536 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13537
13538 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
13539 from rtx to rtx_insn *insn.
13540 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
13541 (ira_add_allocno_copy): Likewise.
13542 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
13543 rtx to rtx_insn *.
13544 (ira_create_copy): Likewise.
13545 (ira_add_allocno_copy): Likewise.
13546 (create_bb_allocnos): Likewise for local "insn".
13547 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
13548 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
13549 process_regs_for_copy for rtx_insn * param.
13550 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
13551 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
13552 process_regs_for_copy for rtx_insn * param.
13553 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
13554 * ira-costs.c (record_reg_classes): Likewise for param "insn".
13555 (record_operand_costs): Likewise.
13556 (scan_one_insn): Likewise for return type, and for param "insn".
13557 (process_bb_for_costs): Likewise for local "insn".
13558 (process_bb_node_for_hard_reg_moves): Likewise.
13559 * ira-emit.c (struct move): Likewise for field "insn".
13560 (create_move): Eliminate use of NULL_RTX when dealing with an
13561 rtx_insn *.
13562 (emit_move_list): Strengthen return type and locals "result",
13563 "insn" from rtx to rtx_insn *insn.
13564 (emit_moves): Likewise for locals "insns", "tmp".
13565 (ira_emit): Likewise for local "insn".
13566 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13567 "insn".
13568 (find_call_crossed_cheap_reg): Likewise.
13569 (process_bb_node_lives): Likewise for local "insn".
13570 * ira.c (decrease_live_ranges_number): Likewise.
13571 (compute_regs_asm_clobbered): Likewise.
13572 (build_insn_chain): Likewise.
13573 (find_moveable_pseudos): Likewise, also locals "def_insn",
13574 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
13575 to rtx_insn **. Add a checked cast when assigning from
13576 "closest_use" into closest_uses array in a region where we know
13577 it's a non-NULL insn.
13578 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13579 to rtx_insn *.
13580 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13581 "last_interesting_insn", "uin".
13582 (move_unallocated_pseudos): Likewise for locals "def_insn",
13583 "move_insn", "newinsn".
13584
13585 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13586
13587 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13588 Strengthen locals "done_label", "do_error" from rtx to
13589 rtx_code_label *.
13590 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13591 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
13592 rtx_code_label *.
13593 (ubsan_expand_si_overflow_neg_check): Likewise for locals
13594 "done_label", "do_error" to rtx_code_label * and local "last" to
13595 rtx_insn *.
13596 (ubsan_expand_si_overflow_mul_check): Likewise for locals
13597 "done_label", "do_error", "large_op0", "small_op0_large_op1",
13598 "one_small_one_large", "both_ops_large", "after_hipart_neg",
13599 "after_lopart_neg", "do_overflow", "hipart_different" to
13600 rtx_code_label * and local "last" to rtx_insn *.
13601
13602 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13603
13604 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13605 "insn" and "move_insn" from rtx to rtx_insn *.
13606
13607 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13608
13609 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13610 rtx_insn *.
13611 (cheap_bb_rtx_cost_p): Likewise.
13612 (first_active_insn): Likewise for return type and local "insn".
13613 (last_active_insn): Likewise for return type and locals "insn",
13614 "head".
13615 (struct noce_if_info): Likewise for fields "jump", "insn_a",
13616 "insn_b".
13617 (end_ifcvt_sequence): Likewise for return type and locals "insn",
13618 "seq".
13619 (noce_try_move): Likewise for local "seq".
13620 (noce_try_store_flag): Likewise.
13621 (noce_try_store_flag_constants): Likewise.
13622 (noce_try_addcc): Likewise.
13623 (noce_try_store_flag_mask): Likewise.
13624 (noce_try_cmove): Likewise.
13625 (noce_try_minmax): Likewise.
13626 (noce_try_abs): Likewise.
13627 (noce_try_sign_mask): Likewise.
13628 (noce_try_bitop): Likewise.
13629 (noce_can_store_speculate_p): Likewise for local "insn".
13630 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13631 seq".
13632 (check_cond_move_block): Likewise for local "insn".
13633 (cond_move_convert_if_block): Likewise.
13634 (cond_move_process_if_block): Likewise for locals "seq",
13635 "loc_insn".
13636 (noce_find_if_block): Likewise for local "jump".
13637 (merge_if_block): Likewise for local "last".
13638 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13639 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13640 (block_has_only_trap): Likewise for return type and local "trap".
13641 (find_if_case_1): Likewise for local "jump".
13642 (dead_or_predicable): Likewise for locals "head", "end", "jump",
13643 "insn".
13644
13645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13646
13647 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13648 "last_insn", "loop_end" from rtx to rtx_insn *.
13649
13650 * hw-doloop.c (scan_loop): Likewise for local "insn".
13651 (discover_loop): Likewise for param "tail_insn".
13652 (discover_loops): Likewise for local "tail".
13653
13654 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13655 cast to rtx_insn * when assigning from an rtx local to a
13656 hwloop_info's "last_insn" field.
13657
13658 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13659
13660 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13661 (add_delay_dependencies): Strengthen local "pro" from rtx to
13662 rtx_insn *.
13663 (recompute_todo_spec): Likewise.
13664 (dep_cost_1): Likewise for locals "insn", "used".
13665 (schedule_insn): Likewise for local "dbg".
13666 (schedule_insn): Likewise for locals "pro", "next".
13667 (unschedule_insns_until): Likewise for local "con".
13668 (restore_pattern): Likewise for local "next".
13669 (estimate_insn_tick): Likewise for local "pro".
13670 (resolve_dependencies): Likewise for local "next".
13671 (fix_inter_tick): Likewise.
13672 (fix_tick_ready): Likewise for local "pro".
13673 (add_to_speculative_block): Likewise for locals "check", "twin",
13674 "pro".
13675 (sched_extend_bb): Likewise for locals "end", "insn".
13676 (init_before_recovery): Likewise for local "x".
13677 (sched_create_recovery_block): Likewise for local "barrier".
13678 (create_check_block_twin): Likewise for local "pro".
13679 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13680 "consumer".
13681 (unlink_bb_notes): Update for change to type of bb_header.
13682 Strengthen locals "prev", "label", "note", "next" from rtx to
13683 rtx_insn *.
13684 (clear_priorities): Likewise for local "pro".
13685
13686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13687
13688 * gcse.c (struct occr): Strengthen field "insn" from rtx to
13689 rtx_insn *.
13690 (test_insn): Likewise for this global.
13691 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13692 const rtx_insn *.
13693 (oprs_anticipatable_p): Likewise.
13694 (oprs_available_p): Likewise.
13695 (insert_expr_in_table): Strengthen param "insn" from rtx to
13696 rtx_insn *.
13697 (hash_scan_set): Likewise.
13698 (hash_scan_clobber): Likewise.
13699 (hash_scan_call): Likewise.
13700 (hash_scan_insn): Likewise.
13701 (compute_hash_table_work): Likewise for local "insn".
13702 (process_insert_insn): Likewise for return type and local "pat".
13703 (insert_insn_end_basic_block): Likewise for locals "new_insn",
13704 "pat", "pat_end", "maybe_cc0_setter".
13705 (pre_edge_insert): Likewise for local "insn".
13706 (pre_insert_copy_insn): Likewise for param "insn".
13707 (pre_insert_copies): Likewise for local "insn".
13708 (struct set_data): Likewise for field "insn".
13709 (single_set_gcse): Likewise for param "insn".
13710 (gcse_emit_move_after): Likewise.
13711 (pre_delete): Likewise for local "insn".
13712 (update_bb_reg_pressure): Likewise for param "from" and local
13713 "insn".
13714 (should_hoist_expr_to_dom): Likewise for param "from".
13715 (hoist_code): Likewise for local "insn".
13716 (get_pressure_class_and_nregs): Likewise for param "insn".
13717 (calculate_bb_reg_pressure): Likewise for local "insn".
13718 (compute_ld_motion_mems): Likewise.
13719
13720 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13721
13722 * genpeep.c (main): Rename param back from "uncast_ins1" to
13723 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
13724 checked cast.
13725
13726 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13727
13728 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13729
13730 PR target/62195
13731 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13732 documentation to state it is only for VSX operations.
13733
13734 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13735 constraint only active if VSX.
13736
13737 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13738 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13739 (lfiwzx): Likewise.
13740
13741 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13742
13743 * fwprop.c (single_def_use_dom_walker::before_dom_children):
13744 Strengthen local "insn" from rtx to rtx_insn *.
13745 (use_killed_between): Likewise for param "target_insn".
13746 (all_uses_available_at): Likewise for param "target_insn" and
13747 local "next".
13748 (update_df_init): Likewise for params "def_insn", "insn".
13749 (update_df): Likewise for param "insn".
13750 (try_fwprop_subst): Likewise for param "def_insn" and local
13751 "insn".
13752 (free_load_extend): Likewise for param "insn".
13753 (forward_propagate_subreg): Likewise for param "def_insn" and
13754 local "use_insn".
13755 (forward_propagate_asm): Likewise for param "def_insn" and local
13756 "use_insn".
13757 (forward_propagate_and_simplify): Likewise for param "def_insn"
13758 and local "use_insn".
13759 (forward_propagate_into): Likewise for locals "def_insn" and
13760 "use_insn".
13761
13762 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13763
13764 * function.c (emit_initial_value_sets): Strengthen local "seq"
13765 from rtx to rtx_insn *.
13766 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13767 local "seq".
13768 (instantiate_virtual_regs): Likewise for local "insn".
13769 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13770 (reorder_blocks_1): Likewise for param "insns" and local "insn".
13771 (expand_function_end): Likewise for locals "insn" and "seq".
13772 (epilogue_done): Likewise for local "insn".
13773 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13774 "last", "trial".
13775 (reposition_prologue_and_epilogue_notes): Likewise for locals
13776 "insn", "last", "note", "first".
13777 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13778 (pass_match_asm_constraints::execute): Likewise for local "insn".
13779
13780 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13781
13782 * output.h (final_scan_insn): Strengthen return type from rtx to
13783 rtx_insn *.
13784 (final_forward_branch_p): Likewise for param.
13785 (current_output_insn): Likewise for this global.
13786
13787 * final.c (rtx debug_insn): Likewise for this variable.
13788 (current_output_insn): Likewise.
13789 (get_attr_length_1): Rename param "insn" to "uncast_insn",
13790 adding "insn" back in as an rtx_insn * with a checked cast, so
13791 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13792 first param.
13793 (compute_alignments): Strengthen local "label" from rtx to
13794 rtx_insn *.
13795 (shorten_branches): Rename param from "first" to "uncast_first",
13796 introducing a new local rtx_insn * "first" using a checked cast to
13797 effectively strengthen "first" from rtx to rtx_insn * without
13798 affecting the type signature. Strengthen locals "insn", "seq",
13799 "next", "label" from rtx to rtx_insn *.
13800 (change_scope): Strengthen param "orig_insn" and local "insn" from
13801 rtx to rtx_insn *.
13802 (final_start_function): Rename param from "first" to "uncast_first",
13803 introducing a new local rtx_insn * "first" using a checked cast to
13804 effectively strengthen "first" from rtx to rtx_insn * without
13805 affecting the type signature. Strengthen local "insn" from rtx to
13806 rtx_insn *.
13807 (dump_basic_block_info): Strengthen param "insn" from rtx to
13808 rtx_insn *.
13809 (final): Rename param from "first" to "uncast_first",
13810 introducing a new local rtx_insn * "first" using a checked cast to
13811 effectively strengthen "first" from rtx to rtx_insn * without
13812 affecting the type signature. Strengthen locals "insn", "next"
13813 from rtx to rtx_insn *.
13814 (output_alternate_entry_point): Strengthen param "insn" from rtx to
13815 rtx_insn *.
13816 (call_from_call_insn): Strengthen param "insn" from rtx to
13817 rtx_call_insn *.
13818 (final_scan_insn): Rename param from "insn" to "uncast_insn",
13819 introducing a new local rtx_insn * "insn" using a checked cast to
13820 effectively strengthen "insn" from rtx to rtx_insn * without
13821 affecting the type signature. Strengthen return type and locals
13822 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
13823 now-redundant checked cast to rtx_insn * from both invocations of
13824 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
13825 introducing a local "call_insn" for use when invoking
13826 call_from_call_insn.
13827 (notice_source_line): Strengthen param "insn" from rtx to
13828 rtx_insn *.
13829 (leaf_function_p): Likewise for local "insn".
13830 (final_forward_branch_p): Likewise.
13831 (leaf_renumber_regs): Likewise for param "first".
13832 (rest_of_clean_state): Likewise for locals "insn" and "next".
13833 (self_recursive_call_p): Likewise for param "insn".
13834 (collect_fn_hard_reg_usage): Likewise for local "insn".
13835 (get_call_fndecl): Likewise for param "insn".
13836 (get_call_cgraph_rtl_info): Likewise.
13837 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13838 introducing a new local rtx_insn * "insn" using a checked cast to
13839 effectively strengthen "insn" from rtx to rtx_insn * without
13840 affecting the type signature.
13841
13842 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13843 cast when assigning from param "insn" to current_output_insn.
13844 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13845 so that we can assign it back to current_output_insn.
13846
13847 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13848
13849 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13850 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13851 atmxt540s and atmxt540sreva devices.
13852 * config/avr/avr-tables.opt: Regenerate.
13853 * config/avr/t-multilib: Regenerate.
13854 * doc/avr-mmcu.texi: Regenerate.
13855
13856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13857
13858 * expr.c (convert_move): Strengthen local "insns" from rtx to
13859 rtx_insn *.
13860 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13861 "top_label" from rtx to rtx_code_label *.
13862 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13863 rtx_insn *.
13864 (emit_single_push_insn): Likewise for locals "prev", "last".
13865 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13866 to rtx_code_label *.
13867 (store_constructor): Likewise for locals "loop_start", "loop_end".
13868 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13869 rtx_insn *.
13870 (expand_expr_real_2): Likewise.
13871 (expand_expr_real_1): Strengthen local "label" from rtx to
13872 rtx_code_label *.
13873
13874 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13875
13876 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13877 from rtx to rtx_insn *.
13878 (store_bit_field_1): Likewise.
13879 (extract_bit_field_1): Likewise.
13880 (expand_mult_const): Likewise for local "insns".
13881 (expmed_mult_highpart): Strengthen local "label" from rtx to
13882 rtx_code_label *.
13883 (expand_smod_pow2): Likewise.
13884 (expand_sdiv_pow2): Likewise.
13885 (expand_divmod): Strengthen locals "last", "insn" from rtx to
13886 rtx_insn *. Strengthen locals "label", "label1", "label2",
13887 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13888 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13889 (emit_store_flag): Likewise.
13890 (emit_store_flag_force): Strengthen local "label" from rtx to
13891 rtx_code_label *.
13892 (do_cmp_and_jump): Likewise for param "label".
13893
13894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13895
13896 * explow.c (force_reg): Strengthen local "insn" from rtx to
13897 rtx_insn *.
13898 (adjust_stack_1): Likewise.
13899 (allocate_dynamic_stack_space): Likewise. Strengthen locals
13900 "final_label", "available_label", "space_available" from rtx to
13901 rtx_code_label *.
13902 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13903 (anti_adjust_stack_and_probe): Likewise.
13904
13905 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13906
13907 * except.h (sjlj_emit_function_exit_after): Strengthen param
13908 "after" from rtx to rtx_insn *. This is only called with
13909 result of get_last_insn (in function.c) so type-change should be
13910 self-contained.
13911
13912 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13913 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13914 to rtx_insn *. These fields are only used from except.c so this
13915 type-change should be self-contained to this patch.
13916
13917 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13918 local "last" from rtx to rtx_insn *.
13919 (dw2_build_landing_pads): Likewise for local "seq".
13920 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13921 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13922 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
13923 rtx to rtx_insn *.
13924 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13925 to rtx_insn *.
13926 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13927 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13928 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13929 referring to an insn. Strengthen local "dispatch_label" from
13930 rtx to rtx_code_label *.
13931 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13932 rtx_insn *.
13933 (expand_eh_return): Strengthen local "around_label" from
13934 rtx to rtx_code_label *.
13935 (convert_to_eh_region_ranges): Strengthen locals "iter",
13936 "last_action_insn", "first_no_action_insn",
13937 "first_no_action_insn_before_switch",
13938 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13939
13940 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13941
13942 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13943 from rtx to rtx_insn *.
13944 (cached_next_real_insn): Likewise.
13945 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13946 working with insns.
13947 (dwarf2out_var_location): Strengthen locals "next_real",
13948 "next_note", "expected_next_loc_note", "last_start", "insn" from
13949 rtx to rtx_insn *.
13950
13951 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13952
13953 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13954 from rtx to rtx_insn *.
13955 (create_pseudo_cfg): Likewise for local "insn".
13956
13957 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13958
13959 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13960 from rtx to rtx_insn *.
13961 (df_bb_regno_last_def_find): Likewise.
13962
13963 * df-problems.c (df_rd_bb_local_compute): Likewise.
13964 (df_lr_bb_local_compute): Likewise.
13965 (df_live_bb_local_compute): Likewise.
13966 (df_chain_remove_problem): Likewise.
13967 (df_chain_create_bb): Likewise.
13968 (df_word_lr_bb_local_compute): Likewise.
13969 (df_remove_dead_eq_notes): Likewise for param "insn".
13970 (df_note_bb_compute): Likewise for local "insn".
13971 (simulate_backwards_to_point): Likewise.
13972 (df_md_bb_local_compute): Likewise.
13973
13974 * df-scan.c (df_scan_free_bb_info): Likewise.
13975 (df_scan_start_dump): Likewise.
13976 (df_scan_start_block): Likewise.
13977 (df_install_ref_incremental): Likewise for local "insn".
13978 (df_insn_rescan_all): Likewise.
13979 (df_reorganize_refs_by_reg_by_insn): Likewise.
13980 (df_reorganize_refs_by_insn_bb): Likewise.
13981 (df_recompute_luids): Likewise.
13982 (df_bb_refs_record): Likewise.
13983 (df_update_entry_exit_and_calls): Likewise.
13984 (df_bb_verify): Likewise.
13985
13986 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13987
13988 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13989 "first_note" from rtx to rtx_insn *.
13990 (get_node_of_insn): Likewise for param 2 "insn".
13991 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13992
13993 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13994 rtx_insn *.
13995 (mem_write_insn_p): Likewise.
13996 (mem_access_insn_p): Likewise.
13997 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13998 (def_has_ccmode_p): Likewise for param "insn".
13999 (add_cross_iteration_register_deps): Likewise for locals
14000 "def_insn" and "use_insn".
14001 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
14002 (build_intra_loop_deps): Likewise for local "src_insn".
14003 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
14004 to rtx_insn *.
14005 (get_node_of_insn): Likewise for param "insn".
14006
14007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
14008
14009 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
14010 (deletable_insn_p): Strengthen param "insn" from rtx to
14011 rtx_insn *. Add checked cast to rtx_call_insn when invoking
14012 find_call_stack_args, since this is guarded by CALL_P (insn).
14013 (marked_insn_p): Strengthen param "insn" from rtx to
14014 rtx_insn *.
14015 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
14016 invoking find_call_stack_args, since this is guarded by
14017 CALL_P (insn).
14018 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
14019 rtx_insn *; we know this is an insn since this was called by
14020 mark_nonreg_stores.
14021 (mark_nonreg_stores_2): Likewise.
14022 (mark_nonreg_stores): Strengthen param "insn" from rtx to
14023 rtx_insn *.
14024 (find_call_stack_args): Strengthen param "call_insn" from rtx to
14025 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
14026 to rtx_insn *.
14027 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
14028 from rtx to rtx_insn *.
14029 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
14030 "next", "ref_insn".
14031 (delete_unmarked_insns): Likewise for locals "insn", "next".
14032 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
14033 (mark_reg_dependencies): Likewise for param "insn".
14034 (rest_of_handle_ud_dce): Likewise for local "insn".
14035 (word_dce_process_block): Likewise.
14036 (dce_process_block): Likewise.
14037
14038 2014-08-22 David Malcolm <dmalcolm@redhat.com>
14039
14040 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
14041 from rtx to rtx_insn *.
14042 (struct change_cc_mode_args): Likewise for field "insn".
14043 (this_insn): Strengthen from rtx to rtx_insn *.
14044 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
14045 with insn.
14046 (validate_canon_reg): Strengthen param "insn" from rtx to
14047 rtx_insn *.
14048 (canon_reg): Likewise.
14049 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
14050 dealing with insn.
14051 (record_jump_equiv): Strengthen param "insn" from rtx to
14052 rtx_insn *.
14053 (try_back_substitute_reg): Likewise, also for locals "prev",
14054 "bb_head".
14055 (find_sets_in_insn): Likewise for param "insn".
14056 (canonicalize_insn): Likewise.
14057 (cse_insn): Likewise. Add a checked cast.
14058 (invalidate_from_clobbers): Likewise for param "insn".
14059 (invalidate_from_sets_and_clobbers): Likewise.
14060 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
14061 dealing with insn.
14062 (cse_prescan_path): Strengthen local "insn" from rtx to
14063 rtx_insn *.
14064 (cse_extended_basic_block): Likewise for locals "insn" and
14065 "prev_insn".
14066 (cse_main): Likewise for param "f".
14067 (check_for_label_ref): Likewise for local "insn".
14068 (set_live_p): Likewise for second param ("insn").
14069 (insn_live_p): Likewise for first param ("insn") and for local
14070 "next".
14071 (cse_change_cc_mode_insn): Likewise for first param "insn".
14072 (cse_change_cc_mode_insns): Likewise for first and second params
14073 "start" and "end".
14074 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
14075 and "end".
14076 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
14077 "cc_src_insn".
14078
14079 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
14080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14081 Anna Tikhonova <anna.tikhonova@intel.com>
14082 Ilya Tocar <ilya.tocar@intel.com>
14083 Andrey Turetskiy <andrey.turetskiy@intel.com>
14084 Ilya Verbin <ilya.verbin@intel.com>
14085 Kirill Yukhin <kirill.yukhin@intel.com>
14086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14087
14088 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
14089 New.
14090 * config/i386/sse.md
14091 (define_mode_iterator VI248_AVX2): Delete.
14092 (define_mode_iterator VI2_AVX2_AVX512BW): New.
14093 (define_mode_iterator VI48_AVX2): Ditto.
14094 (define_insn <shift_insn><mode>3): Delete.
14095 (define_insn "<shift_insn><mode>3<mask_name>" with
14096 VI2_AVX2_AVX512BW): New.
14097 (define_insn "<shift_insn><mode>3<mask_name>" with
14098 VI48_AVX2): Ditto.
14099
14100 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
14101 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14102 Anna Tikhonova <anna.tikhonova@intel.com>
14103 Ilya Tocar <ilya.tocar@intel.com>
14104 Andrey Turetskiy <andrey.turetskiy@intel.com>
14105 Ilya Verbin <ilya.verbin@intel.com>
14106 Kirill Yukhin <kirill.yukhin@intel.com>
14107 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14108
14109 * config/i386/sse.md
14110 (define_mode_iterator VI4F_BRCST32x2): New.
14111 (define_mode_attr 64x2_mode): Ditto.
14112 (define_mode_attr 32x2mode): Ditto.
14113 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
14114 with VI4F_BRCST32x2): Ditto.
14115 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
14116 with V16FI mode iterator): Ditto.
14117 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14118 with V16FI): Ditto.
14119 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
14120 with VI8F_BRCST64x2): Ditto.
14121
14122 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
14123 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14124 Anna Tikhonova <anna.tikhonova@intel.com>
14125 Ilya Tocar <ilya.tocar@intel.com>
14126 Andrey Turetskiy <andrey.turetskiy@intel.com>
14127 Ilya Verbin <ilya.verbin@intel.com>
14128 Kirill Yukhin <kirill.yukhin@intel.com>
14129 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14130
14131 * config/i386/sse.md
14132 (define_mode_iterator VI8_AVX512VL): New.
14133 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
14134
14135 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
14136
14137 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
14138 (define_mode_iterator V48_AVX512VL): New.
14139 (define_mode_iterator V12_AVX512VL): Ditto.
14140 (define_insn <avx512>_load<mode>_mask): Split into two similar
14141 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
14142 Refactor output template.
14143 (define_insn "<avx512>_store<mode>_mask"): Ditto.
14144
14145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
14146
14147 * cprop.c (struct occr): Strengthen field "insn" from rtx to
14148 rtx_insn *.
14149 (reg_available_p): Likewise for param "insn".
14150 (insert_set_in_table): Likewise.
14151 (hash_scan_set): Likewise.
14152 (hash_scan_insn): Likewise.
14153 (make_set_regs_unavailable): Likewise.
14154 (compute_hash_table_work): Likewise for local "insn".
14155 (reg_not_set_p): Strengthen param "insn" from const_rtx to
14156 const rtx_insn *.
14157 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
14158 (try_replace_reg): Likewise.
14159 (find_avail_set): Likewise.
14160 (cprop_jump): Likewise for params "setcc", "jump".
14161 (constprop_register): Likewise for param "insn".
14162 (cprop_insn): Likewise.
14163 (do_local_cprop): Likewise.
14164 (local_cprop_pass): Likewise for local "insn".
14165 (bypass_block): Likewise for params "setcc" and "jump".
14166 (bypass_conditional_jumps): Likewise for locals "setcc" and
14167 "insn".
14168 (one_cprop_pass): Likewise for local "insn".
14169
14170 2014-08-22 David Malcolm <dmalcolm@redhat.com>
14171
14172 * compare-elim.c (struct comparison_use): Strengthen field "insn"
14173 from rtx to rtx_insn *.
14174 (struct comparison): Likewise, also for field "prev_clobber".
14175 (conforming_compare): Likewise for param "insn".
14176 (arithmetic_flags_clobber_p): Likewise.
14177 (find_flags_uses_in_insn): Likewise.
14178 (find_comparison_dom_walker::before_dom_children): Likewise for
14179 locals "insn", "next", "last_clobber".
14180 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
14181
14182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
14183
14184 * combine-stack-adj.c (struct csa_reflist): Strengthen field
14185 "insn" from rtx to rtx_insn *.
14186 (single_set_for_csa): Likewise for param "insn".
14187 (record_one_stack_ref): Likewise.
14188 (try_apply_stack_adjustment): Likewise.
14189 (struct record_stack_refs_data): Likewise for field "insn".
14190 (maybe_move_args_size_note): Likewise for params "last" and "insn".
14191 (prev_active_insn_bb): Likewise for return type and param "insn".
14192 (next_active_insn_bb): Likewise.
14193 (force_move_args_size_note): Likewise for params "prev" and "last"
14194 and locals "test", "next_candidate", "prev_candidate".
14195 (combine_stack_adjustments_for_block): Strengthen locals
14196 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
14197 rtx_insn *.
14198
14199 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14200
14201 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
14202 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
14203 (subst_insn): Likewise for this variable.
14204 (added_links_insn): Likewise.
14205 (struct insn_link): Likewise for field "insn".
14206 (alloc_insn_link): Likewise for param "insn".
14207 (struct undobuf): Likewise for field "other_insn".
14208 (find_single_use): Likewise for param "insn" and local "next".
14209 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
14210 (delete_noop_moves): Likewise for locals "insn", "next".
14211 (create_log_links): Likewise for locals "insn", "use_insn".
14212 Strengthen local "next_use" from rtx * to rtx_insn **.
14213 (insn_a_feeds_b): Likewise for params "a", "b".
14214 (combine_instructions): Likewise for param "f" and locals "insn",
14215 "next", "prev", "first", "last_combined_insn", "link", "link1",
14216 "temp". Replace use of NULL_RTX with NULL when referring to
14217 insns.
14218 (setup_incoming_promotions): Likewise for param "first"
14219 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
14220 (can_combine_p): Likewise for params "insn", "i3", "pred",
14221 "pred2", "succ", "succ2" and for local "p".
14222 (combinable_i3pat): Likewise for param "i3".
14223 (cant_combine_insn_p): Likewise for param "insn".
14224 (likely_spilled_retval_p): Likewise.
14225 (adjust_for_new_dest): Likewise.
14226 (update_cfg_for_uncondjump): Likewise, also for local "insn".
14227 (try_combine): Likewise for return type and for params "i3", "i2",
14228 "i1", "i0", "last_combined_insn", and for locals "insn",
14229 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
14230 "i0_insn". Eliminate local "tem" in favor of new locals
14231 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
14232 checked cast for now to rtx_insn * on the return type of
14233 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
14234 insns.
14235 (find_split_point): Strengthen param "insn" from rtx to
14236 rtx_insn *.
14237 (simplify_set): Likewise for local "other_insn".
14238 (recog_for_combine): Likewise for param "insn".
14239 (record_value_for_reg): Likewise.
14240 (record_dead_and_set_regs_1): Likewise for local
14241 "record_dead_insn".
14242 (record_dead_and_set_regs): Likewise for param "insn".
14243 (record_promoted_value): Likewise.
14244 (check_promoted_subreg): Likewise.
14245 (get_last_value_validate): Likewise.
14246 (reg_dead_at_p): Likewise.
14247 (move_deaths): Likewise for param "to_insn".
14248 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
14249 and locals "place", "place2", "cc0_setter". Eliminate local "tem
14250 in favor of new locals "tem_note" and "tem_insn", the latter being
14251 an rtx_insn *.
14252 (distribute_links): Strengthen locals "place", "insn" from rtx to
14253 rtx_insn *.
14254
14255 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14256
14257 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
14258 than a const_rtx.
14259 (can_delete_label_p): Require a const rtx_code_label * rather than
14260 a const_rtx.
14261 (delete_insn): Add checked cast to rtx_code_label * when we know
14262 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
14263 rtx to rtx_insn *.
14264 (delete_insn_chain): Strengthen locals "prev" and "current" from
14265 rtx to rtx_insn *. Add a checked cast when assigning from
14266 "finish" (strengthening the params will come later). Add a
14267 checked cast to rtx_note * in region where we know
14268 NOTE_P (current).
14269 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
14270 rtx_insn *.
14271 (compute_bb_for_insn): Likewise.
14272 (free_bb_for_insn): Likewise for local "insn".
14273 (compute_bb_for_insn): Likewise.
14274 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
14275 local "insn" from rtx to rtx_insn *
14276 (flow_active_insn_p): Require a const rtx_insn * rather than a
14277 const_rtx.
14278 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
14279 rtx_insn *.
14280 (can_fallthru): Likewise for locals "insn" and "insn2".
14281 (bb_note): Likewise for local "note".
14282 (first_insn_after_basic_block_note): Likewise for local "note" and
14283 for return type.
14284 (rtl_split_block): Likewise for locals "insn" and "next".
14285 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
14286 "end".
14287 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
14288 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
14289 "prev", "tmp".
14290 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
14291 them), "kill_from", "barrier", "new_insn".
14292 (patch_jump_insn): Likewise for params "insn", "old_label".
14293 (redirect_branch_edge): Likewise for locals "old_label", "insn".
14294 (force_nonfallthru_and_redirect): Likewise for locals "insn",
14295 "old_label", "new_label".
14296 (rtl_tidy_fallthru_edge): Likewise for local "q".
14297 (rtl_split_edge): Likewise for locals "before", "last".
14298 (commit_one_edge_insertion): Likewise for locals "before",
14299 "after", "insns", "tmp", "last", adding a checked cast where
14300 currently necessary.
14301 (commit_edge_insertions): Likewise.
14302 (rtl_dump_bb): Likewise for locals "insn", "last".
14303 (print_rtl_with_bb): Likewise for local "x".
14304 (rtl_verify_bb_insns): Likewise for local "x".
14305 (rtl_verify_bb_pointers): Likewise for local "insn".
14306 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
14307 "head", "end".
14308 (rtl_verify_fallthru): Likewise for local "insn".
14309 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
14310 (purge_dead_edges): Likewise for local "insn".
14311 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
14312 (skip_insns_after_block): Likewise for return type and for locals
14313 "insn", "last_insn", "next_head", "prev".
14314 (record_effective_endpoints): Likewise for locals "next_insn",
14315 "insn", "end".
14316 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
14317 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
14318 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
14319 (duplicate_insn_chain): For now, add checked cast from rtx to
14320 rtx_insn * when returning insn.
14321 (cfg_layout_duplicate_bb): Likewise for local "insn".
14322 (cfg_layout_delete_block): Likewise for locals "insn", "next",
14323 "prev", "remaints".
14324 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
14325 (rtl_block_empty_p): Likewise.
14326 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
14327 "split_point", "last".
14328 (rtl_block_ends_with_call_p): Likewise for local "insn".
14329 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
14330 const rtx_insn *.
14331 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
14332 "split_at_insn" from rtx to rtx_insn *.
14333 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
14334 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
14335 to const rtx_insn *.
14336 (rtl_account_profile_record): Likewise.
14337
14338 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14339
14340 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
14341 rtx to rtx_insn *.
14342 (average_num_loop_insns): Likewise.
14343 (init_set_costs): Likewise for local "seq".
14344 (seq_cost): Likewise for param "seq", from const_rtx to const
14345 rtx_insn *.
14346
14347 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14348
14349 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
14350 rtx to rtx_insn *.
14351
14352 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14353
14354 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
14355 "f1" and "f2" from rtx * to rtx_insn **.
14356 (flow_find_head_matching_sequence): Likewise.
14357
14358 * cfgcleanup.c (try_simplify_condjump): Strengthen local
14359 "cbranch_insn" from rtx to rtx_insn *.
14360 (thread_jump): Likewise for local "insn".
14361 (try_forward_edges): Likewise for local "last".
14362 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
14363 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
14364 "real_b_end".
14365 (can_replace_by): Likewise for params "i1", "i2".
14366 (old_insns_match_p): Likewise.
14367 (merge_notes): Likewise.
14368 (walk_to_nondebug_insn): Likewise for param "i1".
14369 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
14370 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
14371 "afterlast1", "afterlast2" from rtx to rtx_insn *.
14372 (flow_find_head_matching_sequence): Strengthen params "f1" and
14373 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
14374 "last1", "last2", "beforelast1", "beforelast2" from rtx to
14375 rtx_insn *.
14376 (outgoing_edges_match): Likewise for locals "last1", "last2".
14377 (try_crossjump_to_edge): Likewise for local "insn".
14378 Replace call to for_each_rtx with for_each_rtx_in_insn.
14379
14380 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
14381 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
14382 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
14383 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
14384 (try_optimize_cfg): Strengthen local "last" from rtx to
14385 rtx_insn *.
14386 (delete_dead_jumptables): Likewise for locals "insn", "next",
14387 "label".
14388
14389 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
14390 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
14391 "rtx else_first_tail", to reflect the basic-block.h changes above.
14392
14393 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14394
14395 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
14396 rtx_insn *.
14397 (purge_dead_tablejump_edges): Likewise.
14398 (find_bb_boundaries): Likewise for locals "insn", "end",
14399 "flow_transfer_insn".
14400
14401 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14402
14403 * caller-save.c (save_call_clobbered_regs): Strengthen locals
14404 "ins" and "prev" from rtx to rtx_insn *.
14405
14406 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14407
14408 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
14409 rtx_insn *.
14410 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
14411 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
14412 "scan_start".
14413 (load_register_parameters): Likewise for local "before_arg".
14414 (check_sibcall_argument_overlap): Likewise for param "insn".
14415 (expand_call): Likewise for locals "normal_call_insns",
14416 "tail_call_insns", "insns", "before_call", "after_args",
14417 "before_arg", "last", "prev". Strengthen one of the "last" from
14418 rtx to rtx_call_insn *.
14419 (fixup_tail_calls): Strengthen local "insn" from rtx to
14420 rtx_insn *.
14421 (emit_library_call_value_1): Likewise for locals "before_call" and
14422 "last".
14423
14424 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14425
14426 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
14427 and "last" from rtx to rtx_insn *.
14428 (expand_builtin_nonlocal_goto): Likewise for local "insn".
14429 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
14430 rtx_call_insn *.
14431 (expand_errno_check): Strengthen local "lab" from rtx to
14432 rtx_code_label *.
14433 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
14434 rtx_insn *.
14435 (expand_builtin_mathfn_2): Likewise.
14436 (expand_builtin_mathfn_ternary): Likewise.
14437 (expand_builtin_mathfn_3): Likewise.
14438 (expand_builtin_interclass_mathfn): Likewise for local "last".
14439 (expand_builtin_int_roundingfn): Likewise for local "insns".
14440 (expand_builtin_int_roundingfn_2): Likewise.
14441 (expand_builtin_strlen): Likewise for local "before_strlen".
14442 (expand_builtin_strncmp): Likewise for local "seq".
14443 (expand_builtin_signbit): Likewise for local "last".
14444 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
14445 from rtx to rtx_code_label *.
14446 (expand_stack_restore): Strengthen local "prev" from rtx to
14447 rtx_insn *.
14448
14449 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14450
14451 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
14452 to rtx_insn *.
14453 (struct btr_def_s): Likewise.
14454 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
14455 const rtx_insn *.
14456 (add_btr_def): Likewise.
14457 (new_btr_user): Likewise.
14458 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
14459 rtx to rtx_insn *.
14460 (link_btr_uses): Likewise.
14461 (move_btr_def): Likewise for locals "insp", "old_insn",
14462 "new_insn". Add checked cast to rtx_insn * for now on result of
14463 gen_move_insn.
14464 (can_move_up): Strengthen param "insn" from const_rtx to
14465 const rtx_insn *.
14466
14467 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14468
14469 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
14470 rtx_insn *.
14471 (get_uncond_jump_length): Likewise for locals "label", "jump".
14472 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
14473 "jump", "insn".
14474 (add_labels_and_missing_jumps): Likewise for local "new_jump".
14475 (fix_up_fall_thru_edges): Likewise for local "old_jump".
14476 (find_jump_block): Likewise for local "insn".
14477 (fix_crossing_conditional_branches): Likewise for locals
14478 "old_jump", "new_jump".
14479 (fix_crossing_unconditional_branches): Likewise for locals
14480 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
14481 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
14482
14483 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14484
14485 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
14486 rtx to rtx_insn *.
14487 (struct mem_insn): Likewise for field "insn".
14488 (reg_next_use): Strengthen from rtx * to rtx_insn **.
14489 (reg_next_inc_use): Likewise.
14490 (reg_next_def): Likewise.
14491 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
14492 from rtx to rtx_insn *.
14493 (move_insn_before): Likewise for param "next_insn" and local "insns".
14494 (attempt_change): Likewise for local "mov_insn".
14495 (try_merge): Likewise for param "last_insn".
14496 (get_next_ref): Likewise for return type and local "insn".
14497 Strengthen param "next_array" from rtx * to rtx_insn **.
14498 (parse_add_or_inc): Strengthen param "insn" from rtx to
14499 rtx_insn *.
14500 (find_inc): Likewise for locals "insn" and "other_insn" (three of
14501 the latter).
14502 (merge_in_block): Likewise for locals "insn", "curr",
14503 "other_insn".
14504 (pass_inc_dec::execute): Update allocations of the arrays to
14505 reflect the stronger types.
14506
14507 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14508
14509 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
14510 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
14511 from rtx to rtx_code_label *.
14512
14513 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14514
14515 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
14516 to rtx_insn *.
14517
14518 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14519
14520 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
14521 generated a warning and prevented bootstrapping the compiler.
14522
14523 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14524
14525 * rtl.h (delete_related_insns): Strengthen return type from rtx to
14526 rtx_insn *.
14527
14528 * jump.c (delete_related_insns): Likewise, also for locals "next"
14529 and "prev".
14530
14531 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14532
14533 * genautomata.c (output_internal_insn_latency_func): When writing
14534 the function "internal_insn_latency" to insn-automata.c,
14535 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14536 allowing the optional guard function of (define_bypass) clauses to
14537 expect a pair of rtx_insn *, rather than a pair of rtx.
14538 (output_insn_latency_func): When writing the function
14539 "insn_latency", add an "uncast_" prefix to params "insn" and
14540 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
14541 using checked casts from the params, thus enabling the above
14542 change to the generated "internal_insn_latency" function.
14543
14544 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
14545
14546 PR tree-optimization/62091
14547 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
14548 handle correctly arrays.
14549 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
14550 inheritance binfos.
14551 (record_known_type): Walk into inner type.
14552 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
14553 condition on no type changes.
14554
14555 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14556
14557 * genattrtab.c (write_attr_get): Within the generated get_attr_
14558 functions, rename param "insn" to "uncast_insn" and reintroduce
14559 "insn" as an local rtx_insn * using a checked cast, so that "insn"
14560 is an rtx_insn * within insn-attrtab.c
14561
14562 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14563
14564 * output.h (peephole): Strengthen return type from rtx to
14565 rtx_insn *.
14566 * rtl.h (delete_for_peephole): Likewise for both params.
14567 * genpeep.c (main): In generated "peephole" function, strengthen
14568 return type and local "insn" from rtx to rtx_insn *. For now,
14569 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14570 rtx_insn *, with a checked cast.
14571 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14572 locals "insn", "next", "prev" from rtx to rtx_insn *.
14573
14574 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
14575
14576 PR tree-optimization/62112
14577 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14578 * gimple-iterator.h (gsi_replace): Return bool.
14579 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14580 moved from ref_may_alias_global_p.
14581 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14582 New overloads.
14583 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14584 (stmt_kills_ref_p_1): Rename...
14585 (stmt_kills_ref_p): ... to this.
14586 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14587 stmt_kills_ref_p): Declare.
14588 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14589 Move the self-assignment case...
14590 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14591
14592 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14593
14594 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14595
14596 * emit-rtl.c (try_split): Likewise, also for locals "before" and
14597 "after". For now, don't strengthen param "trial", which requires
14598 adding checked casts when returning it.
14599
14600 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14601
14602 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14603 "label" from rtx to rtx_code_label *. Strengthen param 1 of
14604 "var_location" hook from rtx to rtx_insn *.
14605 (debug_nothing_rtx): Delete in favor of...
14606 (debug_nothing_rtx_code_label): New prototype.
14607 (debug_nothing_rtx_rtx): Delete unused prototype.
14608 (debug_nothing_rtx_insn): New prototype.
14609
14610 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14611 invoking debug_hooks->var_location (in two places, one in a NOTE
14612 case of a switch statement, the other guarded by a CALL_P
14613 conditional. Add checked cast to rtx_code_label * when invoking
14614 debug_hooks->label (within CODE_LABEL case of switch statement).
14615
14616 * dbxout.c (dbx_debug_hooks): Update "label" hook from
14617 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
14618 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14619 (xcoff_debug_hooks): Likewise.
14620 * debug.c (do_nothing_debug_hooks): Likewise.
14621 (debug_nothing_rtx): Delete in favor of...
14622 (debug_nothing_rtx_insn): New function.
14623 (debug_nothing_rtx_rtx): Delete unused function.
14624 (debug_nothing_rtx_code_label): New function.
14625 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14626 debug_nothing_rtx to debug_nothing_rtx_code_label.
14627 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14628 to rtx_insn *.
14629 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14630 debug_nothing_rtx to debug_nothing_rtx_insn.
14631 (sdbout_label): Strengthen param "insn" from rtx to
14632 rtx_code_label *.
14633 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14634 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
14635 "var_location" hook from debug_nothing_rtx to
14636 debug_nothing_rtx_insn.
14637
14638 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14639
14640 * recog.h (insn_output_fn): Update this function typedef to match
14641 the changes below to the generated output functions, strengthening
14642 the 2nd param from rtx to rtx_insn *.
14643
14644 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14645 insn when invoking an output function, to match the new signature
14646 of insn_output_fn with a stronger second param.
14647
14648 * genconditions.c (write_header): In the generated code for
14649 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14650 to match the other changes in this patch.
14651
14652 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14653 the generated "gen_" functions from rtx to rtx_insn * within their
14654 implementations.
14655
14656 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14657 the subfunctions within the generated "recog_", "split", "peephole2"
14658 function trees from rtx to rtx_insn *. For now, the top-level
14659 generated functions ("recog", "split", "peephole2") continue to
14660 take a plain rtx for "insn", to avoid introducing dependencies on
14661 other patches. Rename this 2nd param from "insn" to
14662 "uncast_insn", and reintroduce "insn" as a local variable of type
14663 rtx_insn *, initialized at the top of the generated function with
14664 a checked cast on "uncast_insn".
14665 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14666 the generated "gen_" functions from rtx to rtx_insn * within their
14667 prototypes.
14668
14669 * genoutput.c (process_template): Strengthen the 2nd param within
14670 the generated "output_" functions "insn" from rtx to rtx_insn *.
14671
14672 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14673
14674 * tree-profile.c (tree_profiling): Skip external functions
14675 when doing coverage instrumentation.
14676 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14677
14678 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14679
14680 * config/rs6000/altivec.h (vec_cpsgn): New #define.
14681 (vec_mergee): Likewise.
14682 (vec_mergeo): Likewise.
14683 (vec_cntlz): Likewise.
14684 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14685 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14686 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14687 VMRGEW, and VMRGOW.
14688 * doc/extend.texi: Document various forms of vec_cpsgn,
14689 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14690 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14691 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14692 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14693 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14694
14695 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14696
14697 * config/rs6000/rs6000.c (context.h): New include.
14698 (tree-pass.h): Likewise.
14699 (make_pass_analyze_swaps): New decl.
14700 (rs6000_option_override): Register pass_analyze_swaps.
14701 (swap_web_entry): New subsclass of web_entry_base (df.h).
14702 (special_handling_values): New enum.
14703 (union_defs): New function.
14704 (union_uses): Likewise.
14705 (insn_is_load_p): Likewise.
14706 (insn_is_store_p): Likewise.
14707 (insn_is_swap_p): Likewise.
14708 (rtx_is_swappable_p): Likewise.
14709 (insn_is_swappable_p): Likewise.
14710 (chain_purpose): New enum.
14711 (chain_contains_only_swaps): New function.
14712 (mark_swaps_for_removal): Likewise.
14713 (swap_const_vector_halves): Likewise.
14714 (adjust_subreg_index): Likewise.
14715 (permute_load): Likewise.
14716 (permute_store): Likewise.
14717 (handle_special_swappables): Likewise.
14718 (replace_swap_with_copy): Likewise.
14719 (dump_swap_insn_table): Likewise.
14720 (rs6000_analyze_swaps): Likewise.
14721 (pass_data_analyze_swaps): New pass_data.
14722 (pass_analyze_swaps): New rtl_opt_pass.
14723 (make_pass_analyze_swaps): New function.
14724 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14725
14726 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14727
14728 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14729 type from rtx to rtx_insn *.
14730 (create_copy_of_insn_rtx): Likewise.
14731 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14732 (create_copy_of_insn_rtx): Likewise, also for local "res".
14733
14734 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14735
14736 * rtl.h (find_first_parameter_load): Strengthen return type from
14737 rtx to rtx_insn *.
14738 * rtlanal.c (find_first_parameter_load): Strengthen return type
14739 from rtx to rtx_insn *. Add checked cast for now, to postpone
14740 strengthening the params.
14741
14742 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14743
14744 PR fortran/44054
14745 * diagnostic.c: Set default caret.
14746 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14747 line is needed.
14748 * diagnostic.h (struct diagnostic_context):
14749
14750 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14751
14752 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14753 (sel_bb_head): Strengthen return type insn_t (currently just an
14754 rtx) to rtx_insn *.
14755 (sel_bb_end): Likewise.
14756
14757 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14758 (sel_bb_head): Strengthen return type and local "head" from
14759 insn_t (currently just an rtx) to rtx_insn *.
14760 (sel_bb_end): Likewise for return type.
14761 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14762 working with insn.
14763
14764 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14765
14766 * basic-block.h (get_last_bb_insn): Strengthen return type from
14767 rtx to rtx_insn *.
14768 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14769 end".
14770
14771 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14772
14773 PR fortran/44054
14774 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14775 to here ...
14776 (diagnostic_report_diagnostic): ... from here.
14777 * toplev.c (general_init): Move code to c-family.
14778
14779 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14780
14781 * df.h (web_entry_base): Replace existing struct web_entry with a
14782 new class web_entry_base with only the predecessor member.
14783 (unionfind_root): Remove declaration and move to class member.
14784 (unionfind_union): Remove declaration and move to friend
14785 function.
14786 (union_defs): Remove declaration.
14787 * web.c (web_entry_base::unionfind_root): Modify to be member
14788 function and adjust accessors.
14789 (unionfind_union): Modify to be friend function and adjust
14790 accessors.
14791 (web_entry): New subclass of web_entry_base containing the reg
14792 member.
14793 (union_match_dups): Modify for struct -> class changes.
14794 (union_defs): Likewise.
14795 (entry_register): Likewise.
14796 (pass_web::execute): Likewise.
14797
14798 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
14799
14800 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14801 builtin define __VEC_ELEMENT_REG_ORDER__.
14802
14803 2014-08-20 Martin Jambor <mjambor@suse.cz>
14804 Wei Mi <wmi@google.com>
14805
14806 PR ipa/60449
14807 PR middle-end/61776
14808 * tree-ssa-operands.c (update_stmt_operands): Remove
14809 MODIFIED_NORETURN_CALLS.
14810 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14811 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14812 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14813 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14814 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14815 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14816 (gimple_call_set_ctrl_altering): New func.
14817 (gimple_call_ctrl_altering_p): Ditto.
14818 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14819 (make_blocks): Use gimple_call_initialize_ctrl_altering.
14820 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14821 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14822 remove MODIFIED_NORETURN_CALLS.
14823
14824 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14825
14826 * coverage.c (coverage_compute_profile_id): Return non-0;
14827 also handle symbols with unique name.
14828 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14829
14830 2014-08-20 Steve Ellcey <sellcey@mips.com>
14831
14832 PR middle-end/49191
14833 * doc/sourcebuild.texi (non_strict_align): New.
14834
14835 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14836
14837 * cgraphunit.c (ipa_passes, compile): Reshedule
14838 symtab_remove_unreachable_nodes passes; update comments.
14839 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14840 TODO_remove_functions before the pass; the functions ought to be
14841 already removed.
14842 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14843 TODO_remove_functions.
14844 * passes.c (pass_data_early_local_passes): Do not schedule function
14845 removal.
14846 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14847
14848 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14849
14850 PR c/59304
14851 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14852 before setting the option.
14853 * diagnostic.c (diagnostic_classify_diagnostic): Record
14854 command-line status.
14855
14856 2014-08-20 Richard Biener <rguenther@suse.de>
14857
14858 PR lto/62190
14859 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14860 to build uint{16,32,64}_type_node.
14861
14862 2014-08-20 Terry Guo <terry.guo@arm.com>
14863
14864 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14865 with immediate_operand.
14866
14867 2014-08-20 David Malcolm <dmalcolm@redhat.com>
14868
14869 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14870 "insn" from an as_a to a safe_as_a, for the case when "insn" is
14871 NULL.
14872
14873 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14874
14875 PR preprocessor/51303
14876 * incpath.c (remove_duplicates): Use cpp_warning.
14877
14878 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14879
14880 PR c/60975
14881 PR c/53063
14882 * doc/options.texi (CPP): Document it.
14883 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14884 * optc-gen.awk: Handle CPP.
14885 * opth-gen.awk: Likewise.
14886
14887 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14888
14889 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14890 rtx_insn *.
14891 (duplicate_insn_chain): Likewise.
14892 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14893 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
14894 checked cast for now (until we can strengthen the params in the
14895 same way).
14896 (duplicate_insn_chain): Likewise.
14897
14898 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14899
14900 * rtl.h (next_cc0_user): Strengthen return type from rtx to
14901 rtx_insn *.
14902 (prev_cc0_setter): Likewise.
14903
14904 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14905 rtx_insn *, adding checked casts for now as necessary.
14906 (prev_cc0_setter): Likewise.
14907
14908 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14909
14910 * expr.h (emit_move_insn): Strengthen return type from rtx to
14911 rtx_insn *.
14912 (emit_move_insn_1): Likewise.
14913 (emit_move_complex_push): Likewise.
14914 (emit_move_complex_parts): Likewise.
14915
14916 * expr.c (emit_move_via_integer): Strengthen return type from rtx
14917 to rtx_insn *. Replace use of NULL_RTX with NULL when working
14918 with insns.
14919 (emit_move_complex_push): Strengthen return type from rtx to
14920 rtx_insn *.
14921 (emit_move_complex): Likewise, also for local "ret".
14922 (emit_move_ccmode): Likewise.
14923 (emit_move_multi_word): Likewise for return type and locals
14924 "last_insn", "seq".
14925 (emit_move_insn_1): Likewise for return type and locals "result",
14926 "ret".
14927 (emit_move_insn): Likewise for return type and local "last_insn".
14928 (compress_float_constant): Likewise.
14929
14930 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14931
14932 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14933 from rtx to rtx_insn *.
14934
14935 * rtl.h (emit_insn_before): Likewise.
14936 (emit_insn_before_noloc): Likewise.
14937 (emit_insn_before_setloc): Likewise.
14938 (emit_jump_insn_before): Likewise.
14939 (emit_jump_insn_before_noloc): Likewise.
14940 (emit_jump_insn_before_setloc): Likewise.
14941 (emit_call_insn_before): Likewise.
14942 (emit_call_insn_before_noloc): Likewise.
14943 (emit_call_insn_before_setloc): Likewise.
14944 (emit_debug_insn_before): Likewise.
14945 (emit_debug_insn_before_noloc): Likewise.
14946 (emit_debug_insn_before_setloc): Likewise.
14947 (emit_label_before): Likewise.
14948 (emit_insn_after): Likewise.
14949 (emit_insn_after_noloc): Likewise.
14950 (emit_insn_after_setloc): Likewise.
14951 (emit_jump_insn_after): Likewise.
14952 (emit_jump_insn_after_noloc): Likewise.
14953 (emit_jump_insn_after_setloc): Likewise.
14954 (emit_call_insn_after): Likewise.
14955 (emit_call_insn_after_noloc): Likewise.
14956 (emit_call_insn_after_setloc): Likewise.
14957 (emit_debug_insn_after): Likewise.
14958 (emit_debug_insn_after_noloc): Likewise.
14959 (emit_debug_insn_after_setloc): Likewise.
14960 (emit_label_after): Likewise.
14961 (emit_insn): Likewise.
14962 (emit_debug_insn): Likewise.
14963 (emit_jump_insn): Likewise.
14964 (emit_call_insn): Likewise.
14965 (emit_label): Likewise.
14966 (gen_clobber): Likewise.
14967 (emit_clobber): Likewise.
14968 (gen_use): Likewise.
14969 (emit_use): Likewise.
14970 (emit): Likewise.
14971
14972 (emit_barrier_before): Strengthen return type from rtx to
14973 rtx_barrier *.
14974 (emit_barrier_after): Likewise.
14975 (emit_barrier): Likewise.
14976
14977 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14978 from rtx to rtx_insn *. Add checked casts for now when converting
14979 "last" from rtx to rtx_insn *.
14980 (emit_insn_before_noloc): Likewise for return type.
14981 (emit_jump_insn_before_noloc): Likewise.
14982 (emit_call_insn_before_noloc): Likewise.
14983 (emit_debug_insn_before_noloc): Likewise.
14984 (emit_barrier_before): Strengthen return type and local "insn"
14985 from rtx to rtx_barrier *.
14986 (emit_label_before): Strengthen return type from rtx to
14987 rtx_insn *. Add checked cast for now when returning param
14988 (emit_pattern_after_noloc): Strengthen return type from rtx to
14989 rtx_insn *. Add checked casts for now when converting "last" from
14990 rtx to rtx_insn *.
14991 (emit_insn_after_noloc): Strengthen return type from rtx to
14992 rtx_insn *.
14993 (emit_jump_insn_after_noloc): Likewise.
14994 (emit_call_insn_after_noloc): Likewise.
14995 (emit_debug_insn_after_noloc): Likewise.
14996 (emit_barrier_after): Strengthen return type from rtx to
14997 rtx_barrier *.
14998 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14999 Add checked cast for now when converting "label" from rtx to
15000 rtx_insn *.
15001 (emit_pattern_after_setloc): Strengthen return type from rtx to
15002 rtx_insn *. Add checked casts for now when converting "last" from
15003 rtx to rtx_insn *.
15004 (emit_pattern_after): Strengthen return type from rtx to
15005 rtx_insn *.
15006 (emit_insn_after_setloc): Likewise.
15007 (emit_insn_after): Likewise.
15008 (emit_jump_insn_after_setloc): Likewise.
15009 (emit_jump_insn_after): Likewise.
15010 (emit_call_insn_after_setloc): Likewise.
15011 (emit_call_insn_after): Likewise.
15012 (emit_debug_insn_after_setloc): Likewise.
15013 (emit_debug_insn_after): Likewise.
15014 (emit_pattern_before_setloc): Likewise. Add checked casts for now
15015 when converting "last" from rtx to rtx_insn *.
15016 (emit_pattern_before): Strengthen return type from rtx to
15017 rtx_insn *.
15018 (emit_insn_before_setloc): Likewise.
15019 (emit_insn_before): Likewise.
15020 (emit_jump_insn_before_setloc): Likewise.
15021 (emit_jump_insn_before): Likewise.
15022 (emit_call_insn_before_setloc): Likewise.
15023 (emit_call_insn_before): Likewise.
15024 (emit_debug_insn_before_setloc): Likewise.
15025 (emit_debug_insn_before): Likewise.
15026 (emit_insn): Strengthen return type and locals "last", "insn",
15027 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
15028 within cases where we know we have an insn.
15029 (emit_debug_insn): Likewise.
15030 (emit_jump_insn): Likewise.
15031 (emit_call_insn): Strengthen return type and local "insn" from rtx
15032 to rtx_insn *.
15033 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
15034 a checked cast to rtx_insn * for now on "label".
15035 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
15036 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
15037 (emit_use): Likewise.
15038 (gen_use): Likewise, also for local "seq".
15039 (emit): Likewise for return type and local "insn".
15040 (rtx_insn): Likewise for return type and local "new_rtx".
15041
15042 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
15043 from rtx to rtx_barrier *.
15044
15045 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
15046 changed return type from rtx to rtx_insn *, we must update
15047 "emit_fn" type, and this in turn means updating...
15048 (frame_insn): ...this. Strengthen return type from rtx to
15049 rtx_insn *. Introduce a new local "insn" of the appropriate type.
15050
15051 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15052
15053 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
15054 rtx to rtx_jump_table_data *. Also for local.
15055 * rtl.h (emit_jump_table_data): Likewise.
15056
15057 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15058
15059 * basic-block.h (create_basic_block_structure): Strengthen third
15060 param "bb_note" from rtx to rtx_note *.
15061 * rtl.h (emit_note_before): Strengthen return type from rtx to
15062 rtx_note *.
15063 (emit_note_after): Likewise.
15064 (emit_note): Likewise.
15065 (emit_note_copy): Likewise. Also, strengthen param similarly.
15066 * function.h (struct rtl_data): Strengthen field
15067 "x_stack_check_probe_note" from rtx to rtx_note *.
15068
15069 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
15070 from rtx to rtx_note *.
15071 * cfgrtl.c (create_basic_block_structure): Strengthen third param
15072 "bb_note" from rtx to rtx_note *.
15073 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
15074 when calling emit_note_copy.
15075 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
15076 rtx_note *.
15077 (emit_note_after): Likewise.
15078 (emit_note_before): Likewise.
15079 (emit_note_copy): Likewise. Also, strengthen param similarly.
15080 (emit_note): Likewise.
15081 * except.c (emit_note_eh_region_end): Likewise for return type.
15082 Strengthen local "next" from rtx to rtx_insn *.
15083 (convert_to_eh_region_ranges): Strengthen local "note"
15084 from rtx to rtx_note *.
15085 * final.c (change_scope): Likewise.
15086 (reemit_insn_block_notes): Likewise, for both locals named "note".
15087 Also, strengthen local "insn" from rtx to rtx_insn *.
15088 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
15089 rtx to rtx_note *.
15090 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
15091 strengthen local "seq" from rtx to rtx_insn *.
15092 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
15093 to rtx_note *.
15094 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
15095 vec<rtx_note *>.
15096 (get_bb_note_from_pool): Strengthen return type from rtx to
15097 rtx_note *.
15098 (sel_create_basic_block): Strengthen local "new_bb_note" from
15099 insn_t to rtx_note *.
15100 * var-tracking.c (emit_note_insn_var_location): Strengthen local
15101 "note" from rtx to rtx_note *.
15102 (emit_notes_in_bb): Likewise.
15103
15104 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15105
15106 * function.h (struct rtl_data): Strengthen field
15107 "x_parm_birth_insn" from rtx to rtx_insn *.
15108 * function.c (struct assign_parm_data_all): Strengthen fields
15109 "first_conversion_insn" and "last_conversion_insn" from rtx to
15110 rtx_insn *.
15111
15112 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15113
15114 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
15115 to rtx_insn *; also for local "var_end_seq".
15116 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
15117 (maybe_cleanup_end_of_block): Likewise for param "last" and local
15118 "insn".
15119 (expand_gimple_cond): Likewise for locals "last2" and "last".
15120 (mark_transaction_restart_calls): Likewise for local "insn".
15121 (expand_gimple_stmt): Likewise for return type and locals "last"
15122 and "insn".
15123 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
15124 (avoid_complex_debug_insns): Likewise for param "insn".
15125 (expand_debug_locations): Likewise for locals "insn", "last",
15126 "prev_insn" and "insn2".
15127 (expand_gimple_basic_block): Likewise for local "last".
15128 (construct_exit_block): Likewise for locals "head", "end",
15129 "orig_end".
15130 (pass_expand::execute): Likewise for locals "var_seq",
15131 "var_ret_seq", "next".
15132
15133 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15134
15135 * asan.h (asan_emit_stack_protection): Strengthen return type from
15136 rtx to rtx_insn *.
15137 * asan.c (asan_emit_stack_protection): Likewise. Add local
15138 "insns" to hold the return value.
15139
15140 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15141
15142 * basic-block.h (bb_note): Strengthen return type from rtx to
15143 rtx_note *.
15144 * sched-int.h (bb_note): Likewise.
15145 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
15146
15147 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15148
15149 * rtl.h (make_insn_raw): Strengthen return type from rtx to
15150 rtx_insn *.
15151
15152 * emit-rtl.c (make_insn_raw): Strengthen return type and local
15153 "insn" from rtx to rtx_insn *.
15154 (make_debug_insn_raw): Strengthen return type from rtx to
15155 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
15156 (make_jump_insn_raw): Strengthen return type from rtx to
15157 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
15158 (make_call_insn_raw): Strengthen return type from rtx to
15159 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
15160 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
15161 callback from rtx to rtx_insn *; likewise for local "insn" and
15162 "next", adding a checked cast to rtx_insn in the relevant cases of
15163 the switch statement.
15164 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
15165 callback from rtx to rtx_insn *.
15166 (emit_pattern_after_setloc): Likewise.
15167 (emit_pattern_after): Likewise.
15168 (emit_pattern_before_setloc): Likewise.
15169 (emit_pattern_before): Likewise.
15170
15171 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15172
15173 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
15174 rtx_call_insn *.
15175 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
15176 accepting an rtx_insn *.
15177 (last_call_insn): Strengthen return type from rtx to
15178 rtx_call_insn *.
15179
15180 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15181
15182 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
15183 "insns" from rtx to rtx_insn *.
15184 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
15185 locals "insn" and "prev".
15186
15187 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15188
15189 * rtl.h (tablejump_p): Strengthen third param from rtx * to
15190 rtx_jump_table_data **.
15191
15192 * cfgbuild.c (make_edges): Introduce local "table", using it in
15193 place of "tmp" for jump table data.
15194 (find_bb_boundaries): Strengthen local "table" from rtx to
15195 rtx_jump_table_data *.
15196 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15197 (outgoing_edges_match): Likewise for locals "table1" and "table2".
15198 (try_crossjump_to_edge): Likewise.
15199 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
15200 "table".
15201 (patch_jump_insn): Introduce local "table", using it in place of
15202 "tmp" for jump table data.
15203 (force_nonfallthru_and_redirect): Introduce local "table", so that
15204 call to tablejump_p can receive an rtx_jump_table_data **. Update
15205 logic around the call to overwrite "note" appropriately if
15206 tablejump_p returns non-zero.
15207 (get_last_bb_insn): Introduce local "table", using it in place of
15208 "tmp" for jump table data.
15209 * dwarf2cfi.c (create_trace_edges): Likewise.
15210
15211 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
15212 from rtx to rtx_jump_table_data *.
15213 (create_fix_barrier): Strengthen local "tmp" from rtx to
15214 rtx_jump_table_data *.
15215 (arm_reorg): Likewise for local "table".
15216
15217 * config/s390/s390.c (s390_chunkify_start): Likewise.
15218
15219 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
15220
15221 * jump.c (delete_related_insns): Strengthen local "lab_next" from
15222 rtx to rtx_jump_table_data *.
15223
15224 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
15225 rtx_jump_table_data **. Add a checked cast when writing through
15226 the pointer: we know there that local "table" is non-NULL and that
15227 JUMP_TABLE_DATA_P (table) holds.
15228 (label_is_jump_target_p): Introduce local "table", using it in
15229 place of "tmp" for jump table data.
15230
15231 2014-08-19 Marek Polacek <polacek@redhat.com>
15232
15233 PR c++/62153
15234 * doc/invoke.texi: Document -Wbool-compare.
15235
15236 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15237
15238 * rtl.h (entry_of_function): Strengthen return type from rtx to
15239 rtx_insn *.
15240 * cfgrtl.c (entry_of_function): Likewise.
15241
15242 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15243
15244 * emit-rtl.h (get_insns): Strengthen return type from rtx to
15245 rtx_insn *, adding a checked cast for now.
15246 (get_last_insn): Likewise.
15247
15248 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15249
15250 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
15251 rtx_code_label *.
15252
15253 * emit-rtl.c (gen_label_rtx): Likewise.
15254
15255 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15256
15257 * rtl.h (previous_insn): Strengthen return type from rtx to
15258 rtx_insn *.
15259 (next_insn): Likewise.
15260 (prev_nonnote_insn): Likewise.
15261 (prev_nonnote_insn_bb): Likewise.
15262 (next_nonnote_insn): Likewise.
15263 (next_nonnote_insn_bb): Likewise.
15264 (prev_nondebug_insn): Likewise.
15265 (next_nondebug_insn): Likewise.
15266 (prev_nonnote_nondebug_insn): Likewise.
15267 (next_nonnote_nondebug_insn): Likewise.
15268 (prev_real_insn): Likewise.
15269 (next_real_insn): Likewise.
15270 (prev_active_insn): Likewise.
15271 (next_active_insn): Likewise.
15272
15273 * emit-rtl.c (next_insn): Strengthen return type from rtx to
15274 rtx_insn *, adding a checked cast.
15275 (previous_insn): Likewise.
15276 (next_nonnote_insn): Likewise.
15277 (next_nonnote_insn_bb): Likewise.
15278 (prev_nonnote_insn): Likewise.
15279 (prev_nonnote_insn_bb): Likewise.
15280 (next_nondebug_insn): Likewise.
15281 (prev_nondebug_insn): Likewise.
15282 (next_nonnote_nondebug_insn): Likewise.
15283 (prev_nonnote_nondebug_insn): Likewise.
15284 (next_real_insn): Likewise.
15285 (prev_real_insn): Likewise.
15286 (next_active_insn): Likewise.
15287 (prev_active_insn): Likewise.
15288
15289 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
15290 param "stepfunc" so that it returns an rtx_insn * rather than an
15291 rtx, to track the change to prev_nonnote_insn_bb, which is the
15292 only function this is called with.
15293 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
15294
15295 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
15296
15297 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
15298 assert.
15299
15300 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15301
15302 * coretypes.h (class rtx_debug_insn): Add forward declaration.
15303 (class rtx_nonjump_insn): Likewise.
15304 (class rtx_jump_insn): Likewise.
15305 (class rtx_call_insn): Likewise.
15306 (class rtx_jump_table_data): Likewise.
15307 (class rtx_barrier): Likewise.
15308 (class rtx_code_label): Likewise.
15309 (class rtx_note): Likewise.
15310
15311 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
15312 adding the invariant DEBUG_INSN_P (X).
15313 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
15314 the invariant NONJUMP_INSN_P (X).
15315 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
15316 the invariant JUMP_P (X).
15317 (class rtx_call_insn): New, a subclass of rtx_insn, adding
15318 the invariant CALL_P (X).
15319 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
15320 invariant JUMP_TABLE_DATA_P (X).
15321 (class rtx_barrier): New, a subclass of rtx_insn, adding the
15322 invariant BARRIER_P (X).
15323 (class rtx_code_label): New, a subclass of rtx_insn, adding
15324 the invariant LABEL_P (X).
15325 (class rtx_note): New, a subclass of rtx_insn, adding
15326 the invariant NOTE_P(X).
15327 (is_a_helper <rtx_debug_insn *>::test): New.
15328 (is_a_helper <rtx_nonjump_insn *>::test): New.
15329 (is_a_helper <rtx_jump_insn *>::test): New.
15330 (is_a_helper <rtx_call_insn *>::test): New.
15331 (is_a_helper <rtx_jump_table_data *>::test): New functions,
15332 overloaded for both rtx and rtx_insn *.
15333 (is_a_helper <rtx_barrier *>::test): New.
15334 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
15335 for both rtx and rtx_insn *.
15336 (is_a_helper <rtx_note *>::test): New.
15337
15338 2014-08-19 Marek Polacek <polacek@redhat.com>
15339
15340 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
15341 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15342 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
15343 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15344
15345 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15346
15347 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
15348 rtx_insn *. To help with transition, for now, convert from an
15349 access macro into a pair of functions: BND_TO, returning an
15350 rtx_insn *, and...
15351 (SET_BND_TO): New function, for use where BND_TO is used as an
15352 lvalue.
15353
15354 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
15355 SET_BND_TO.
15356 (BND_TO): New function, adding a checked cast.
15357 (SET_BND_TO): New function.
15358
15359 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
15360 SET_BND_TO.
15361 (compute_av_set_on_boundaries): Likewise.
15362
15363 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
15364
15365 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
15366 destination if it is used in source.
15367 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
15368 (*popcount<mode>2_falsedep_1): Likewise.
15369
15370 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
15371
15372 PR other/62168
15373 * configure.ac: Set install_gold_as_default to no first.
15374 * configure: Regenerated.
15375
15376 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15377
15378 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
15379 "note_list" field will eventually be an rtx_insn *. To help with
15380 transition, for now, convert from an access macro into a pair of
15381 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
15382 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
15383 used as an lvalue.
15384
15385 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
15386 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
15387
15388 * sel-sched-ir.c (init_bb): Likewise.
15389 (sel_restore_notes): Likewise.
15390 (move_bb_info): Likewise.
15391 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
15392 (SET_BB_NOTE_LIST): New function.
15393
15394 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15395
15396 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
15397 field will eventually be an rtx_insn *. To help with transition,
15398 for now, convert from an access macro into a pair of functions:
15399 VINSN_INSN_RTX, returning an rtx_insn *, and...
15400 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
15401 is used as an lvalue.
15402
15403 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
15404 SET_VINSN_INSN_RTX where it's used as an lvalue.
15405 (VINSN_INSN_RTX): New function.
15406 (SET_VINSN_INSN_RTX): New function.
15407
15408 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15409
15410 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
15411 eventually be rtx_insn *, but to help with transition, for now,
15412 convert from an access macro into a pair of functions: DEP_PRO
15413 returning an rtx_insn * and...
15414 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
15415 lvalue, returning an rtx&.
15416 (DEP_CON): Analogous changes to DEP_PRO above.
15417 (SET_DEP_CON): Likewise.
15418
15419 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
15420 an lvalue to SET_DEP_CON.
15421 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
15422 (sd_copy_back_deps): Likewise for DEP_CON.
15423 (DEP_PRO): New function, adding a checked cast for now.
15424 (DEP_CON): Likewise.
15425 (SET_DEP_PRO): New function.
15426 (SET_DEP_CON): Likewise.
15427
15428 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
15429
15430 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
15431 (extra_options): Add i386/cygwin.opt.
15432 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
15433 (CPP_SPEC): Accept -pthread.
15434 (LINK_SPEC): Ditto.
15435 (GOMP_SELF_SPECS): Update comment.
15436 * config/i386/cygwin.opt: New file for -pthread flag.
15437
15438 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15439
15440 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
15441 * df.h (DF_REF_INSN): Convert from a macro to a function, so
15442 that we can return an rtx_insn *.
15443
15444 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
15445
15446 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
15447 when building executables, not DLLs. Add --large-address-aware
15448 under the same conditions.
15449 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
15450 when building executables, not DLLs. Add --large-address-aware
15451 under the same conditions when using -m32.
15452
15453 * config/i386/cygwin-stdint.h: Throughout, make type
15454 definitions dependent on target architecture, not host.
15455
15456 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15457
15458 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
15459 the return type from rtx to rtx_insn *, which will enable various
15460 conversions in followup patches. For now this is is done by a
15461 checked cast.
15462 (NEXT_INSN): Likewise.
15463 (SET_PREV_INSN): Convert to an inline function. This is intended
15464 for use as an lvalue, and so returns an rtx& to allow in-place
15465 modification.
15466 (SET_NEXT_INSN): Likewise.
15467
15468 2014-07-08 Mark Wielaard <mjw@redhat.com>
15469
15470 PR debug/59051
15471 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
15472
15473 2014-08-19 Marek Polacek <polacek@redhat.com>
15474
15475 PR c/61271
15476 * cgraphunit.c (handle_alias_pairs): Fix condition.
15477
15478 2014-08-19 Richard Biener <rguenther@suse.de>
15479
15480 * gimple-fold.c (fold_gimple_assign): Properly build a
15481 null-pointer constant when devirtualizing addresses.
15482
15483 2014-07-07 Mark Wielaard <mjw@redhat.com>
15484
15485 * dwarf2out.c (decl_quals): New function.
15486 (modified_type_die): Take one cv_quals argument instead of two,
15487 one for const and one for volatile.
15488 (add_type_attribute): Likewise.
15489 (generic_parameter_die): Call add_type_attribute with one modifier
15490 argument.
15491 (base_type_for_mode): Likewise.
15492 (add_bounds_info): Likewise.
15493 (add_subscript_info): Likewise.
15494 (gen_array_type_die): Likewise.
15495 (gen_descr_array_type_die): Likewise.
15496 (gen_entry_point_die): Likewise.
15497 (gen_enumeration_type_die): Likewise.
15498 (gen_formal_parameter_die): Likewise.
15499 (gen_subprogram_die): Likewise.
15500 (gen_variable_die): Likewise.
15501 (gen_const_die): Likewise.
15502 (gen_field_die): Likewise.
15503 (gen_pointer_type_die): Likewise.
15504 (gen_reference_type_die): Likewise.
15505 (gen_ptr_to_mbr_type_die): Likewise.
15506 (gen_inheritance_die): Likewise.
15507 (gen_subroutine_type_die): Likewise.
15508 (gen_typedef_die): Likewise.
15509 (force_type_die): Likewise.
15510
15511 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15512
15513 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
15514 if unset.
15515 * configure: Regenerate.
15516
15517 2014-08-19 Richard Biener <rguenther@suse.de>
15518
15519 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
15520 DECL_EXTERNALs in BLOCKs as non-references.
15521 * tree-streamer-out.c (streamer_write_chain): Likewise.
15522
15523 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
15524 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15525 Anna Tikhonova <anna.tikhonova@intel.com>
15526 Ilya Tocar <ilya.tocar@intel.com>
15527 Andrey Turetskiy <andrey.turetskiy@intel.com>
15528 Ilya Verbin <ilya.verbin@intel.com>
15529 Kirill Yukhin <kirill.yukhin@intel.com>
15530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15531
15532 * config/i386/sse.md
15533 (define_mode_iterator VI48_AVX512F): Delete.
15534 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
15535 (define_mode_iterator VI2_AVX512VL): Ditto.
15536 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
15537 Delete.
15538 (define_insn
15539 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
15540 New.
15541 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
15542 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
15543 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15544 with VI48_AVX512F_AVX512VL): New.
15545 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15546 with VI2_AVX512VL): Ditto.
15547
15548 2014-08-19 Marek Polacek <polacek@redhat.com>
15549
15550 * doc/invoke.texi: Document -Wc99-c11-compat.
15551
15552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15553
15554 * rtl.h (PREV_INSN): Split macro in two: the existing one,
15555 for rvalues, and...
15556 (SET_PREV_INSN): New macro, for use as an lvalue.
15557 (NEXT_INSN, SET_NEXT_INSN): Likewise.
15558
15559 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
15560 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
15561 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15562 (fixup_abnormal_edges): Likewise.
15563 (unlink_insn_chain): Likewise.
15564 (fixup_reorder_chain): Likewise.
15565 (cfg_layout_delete_block): Likewise.
15566 (cfg_layout_merge_blocks): Likewise.
15567 * combine.c (update_cfg_for_uncondjump): Likewise.
15568 * emit-rtl.c (link_insn_into_chain): Likewise.
15569 (remove_insn): Likewise.
15570 (delete_insns_since): Likewise.
15571 (reorder_insns_nobb): Likewise.
15572 (emit_insn_after_1): Likewise.
15573 * final.c (rest_of_clean_state): Likewise.
15574 (final_scan_insn): Likewise.
15575 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15576 * haifa-sched.c (concat_note_lists): Likewise.
15577 (remove_notes): Likewise.
15578 (restore_other_notes): Likewise.
15579 (move_insn): Likewise.
15580 (unlink_bb_notes): Likewise.
15581 (restore_bb_notes): Likewise.
15582 * jump.c (delete_for_peephole): Likewise.
15583 * optabs.c (emit_libcall_block_1): Likewise.
15584 * reorg.c (emit_delay_sequence): Likewise.
15585 (fill_simple_delay_slots): Likewise.
15586 * sel-sched-ir.c (sel_move_insn): Likewise.
15587 (sel_remove_insn): Likewise.
15588 (get_bb_note_from_pool): Likewise.
15589 * sel-sched.c (move_nop_to_previous_block): Likewise.
15590
15591 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15592 * config/c6x/c6x.c (gen_one_bundle): Likewise.
15593 (c6x_gen_bundles): Likewise.
15594 (hwloop_optimize): Likewise.
15595 * config/frv/frv.c (frv_function_prologue): Likewise.
15596 (frv_register_nop): Likewise.
15597 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15598 (ia64_reorg): Likewise.
15599 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15600 (mep_make_bundle): Likewise.
15601 (mep_bundle_insns): Likewise.
15602 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15603 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15604 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15605
15606 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15607
15608 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
15609 return type from rtx to rtx_insn *.
15610 (BB_END): Likewise.
15611 (BB_HEADER): Likewise.
15612 (BB_FOOTER): Likewise.
15613 (SET_BB_HEAD): Convert to a function.
15614 (SET_BB_END): Likewise.
15615 (SET_BB_HEADER): Likewise.
15616 (SET_BB_FOOTER): Likewise.
15617
15618 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15619 Strengthen the return type from rtx to rtx_insn *. For now, this
15620 is done by adding a checked cast, but this will eventually
15621 become a field lookup.
15622 (BB_END): Likewise.
15623 (BB_HEADER): Likewise.
15624 (BB_FOOTER): Likewise.
15625 (SET_BB_HEAD): New function, from macro of same name. This is
15626 intended for use as an lvalue, and so returns an rtx& to allow
15627 in-place modification.
15628 (SET_BB_END): Likewise.
15629 (SET_BB_HEADER): Likewise.
15630 (SET_BB_FOOTER): Likewise.
15631
15632 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15633
15634 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15635 for rvalues, and...
15636 (SET_BB_HEAD): New macro, for use as a lvalue.
15637 (BB_END, SET_BB_END): Likewise.
15638 (BB_HEADER, SET_BB_HEADER): Likewise.
15639 (BB_FOOTER, SET_BB_FOOTER): Likewise.
15640
15641 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15642 of BB_* macros into SET_BB_* macros.
15643 (fix_crossing_unconditional_branches): Likewise.
15644 * caller-save.c (save_call_clobbered_regs): Likewise.
15645 (insert_one_insn): Likewise.
15646 * cfgbuild.c (find_bb_boundaries): Likewise.
15647 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15648 (outgoing_edges_match): Likewise.
15649 (try_optimize_cfg): Likewise.
15650 * cfgexpand.c (expand_gimple_cond): Likewise.
15651 (expand_gimple_tailcall): Likewise.
15652 (expand_gimple_basic_block): Likewise.
15653 (construct_exit_block): Likewise.
15654 * cfgrtl.c (delete_insn): Likewise.
15655 (create_basic_block_structure): Likewise.
15656 (rtl_delete_block): Likewise.
15657 (rtl_split_block): Likewise.
15658 (emit_nop_for_unique_locus_between): Likewise.
15659 (rtl_merge_blocks): Likewise.
15660 (block_label): Likewise.
15661 (try_redirect_by_replacing_jump): Likewise.
15662 (emit_barrier_after_bb): Likewise.
15663 (fixup_abnormal_edges): Likewise.
15664 (record_effective_endpoints): Likewise.
15665 (relink_block_chain): Likewise.
15666 (fixup_reorder_chain): Likewise.
15667 (fixup_fallthru_exit_predecessor): Likewise.
15668 (cfg_layout_duplicate_bb): Likewise.
15669 (cfg_layout_split_block): Likewise.
15670 (cfg_layout_delete_block): Likewise.
15671 (cfg_layout_merge_blocks): Likewise.
15672 * combine.c (update_cfg_for_uncondjump): Likewise.
15673 * emit-rtl.c (add_insn_after): Likewise.
15674 (remove_insn): Likewise.
15675 (reorder_insns): Likewise.
15676 (emit_insn_after_1): Likewise.
15677 * haifa-sched.c (get_ebb_head_tail): Likewise.
15678 (restore_other_notes): Likewise.
15679 (move_insn): Likewise.
15680 (sched_extend_bb): Likewise.
15681 (fix_jump_move): Likewise.
15682 * ifcvt.c (noce_process_if_block): Likewise.
15683 (dead_or_predicable): Likewise.
15684 * ira.c (update_equiv_regs): Likewise.
15685 * reg-stack.c (change_stack): Likewise.
15686 * sel-sched-ir.c (sel_move_insn): Likewise.
15687 * sel-sched.c (move_nop_to_previous_block): Likewise.
15688
15689 * config/c6x/c6x.c (hwloop_optimize): Likewise.
15690 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15691
15692 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15693
15694 * rtl.h (for_each_rtx_in_insn): New function.
15695 * rtlanal.c (for_each_rtx_in_insn): Likewise.
15696
15697 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15698
15699 * coretypes.h (class rtx_insn): Add forward declaration.
15700
15701 * rtl.h: Include is-a.h.
15702 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15703 workaround to ensure gengtype knows inheritance is occurring,
15704 whilst continuing to use the pre-existing special-casing for
15705 rtx_def.
15706 (class rtx_insn): New subclass of rtx_def, adding the
15707 invariant that we're dealing with something we can sanely use
15708 INSN_UID, NEXT_INSN, PREV_INSN on.
15709 (is_a_helper <rtx_insn *>::test): New.
15710 (is_a_helper <const rtx_insn *>::test): New.
15711
15712 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15713
15714 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15715
15716 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15717
15718 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15719 comdats as extern.
15720
15721 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15722
15723 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15724 to BUILT_IN_UNREACHABLE.
15725
15726 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
15727
15728 PR target/62011
15729 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15730 New tune flag.
15731 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15732 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15733 (ffs<mode>2): Do not expand with tzcnt for
15734 TARGET_AVOID_FALSE_DEP_FOR_BMI.
15735 (ffssi2_no_cmove): Ditto.
15736 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15737 (ctz<mode>2): New expander.
15738 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15739 (*ctz<mode>2_falsedep): New insn.
15740 (*ctz<mode>2): Rename from ctz<mode>2.
15741 (clz<mode>2_lzcnt): New expander.
15742 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15743 (*clz<mode>2_lzcnt_falsedep): New insn.
15744 (*clz<mode>2): Rename from ctz<mode>2.
15745 (popcount<mode>2): New expander.
15746 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15747 (*popcount<mode>2_falsedep): New insn.
15748 (*popcount<mode>2): Rename from ctz<mode>2.
15749 (*popcount<mode>2_cmp): Remove.
15750 (*popcountsi2_cmp_zext): Ditto.
15751
15752 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
15753
15754 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15755 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15756 * config/microblaze/microblaze.h
15757 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15758
15759 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
15760
15761 PR other/62168
15762 * configure.ac: Set install_gold_as_default to no for
15763 --enable-gold=no.
15764 * configure: Regenerated.
15765
15766 2014-08-18 Roman Gareev <gareevroman@gmail.com>
15767
15768 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15769 * config.in: Add undef of HAVE_isl.
15770 * configure: Regenerate.
15771 * configure.ac: Add definition of HAVE_isl.
15772 * graphite-blocking.c: Add checking of HAVE_isl.
15773 * graphite-dependences.c: Likewise.
15774 * graphite-interchange.c: Likewise.
15775 * graphite-isl-ast-to-gimple.c: Likewise.
15776 * graphite-optimize-isl.c: Likewise.
15777 * graphite-poly.c: Likewise.
15778 * graphite-scop-detection.c: Likewise.
15779 * graphite-sese-to-poly.c: Likewise.
15780 * graphite.c: Likewise.
15781 * toplev.c: Replace the checking of HAVE_cloog with the checking
15782 of HAVE_isl.
15783
15784 2014-08-18 Richard Biener <rguenther@suse.de>
15785
15786 PR tree-optimization/62090
15787 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15788 (fold_builtin_3): Do not fold snprintf.
15789 (fold_builtin_4): Likewise.
15790 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15791 moved from builtins.c.
15792 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15793 (gimple_fold_builtin): Do not fold sprintf here.
15794
15795 2014-08-18 Richard Biener <rguenther@suse.de>
15796
15797 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15798 code to ...
15799 (maybe_canonicalize_mem_ref_addr): ... this function.
15800 (fold_stmt_1): Apply it here before all simplification.
15801
15802 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
15803
15804 PR ipa/61800
15805 * cgraph.h (cgraph_node::create_indirect_edge): Add
15806 compute_indirect_info param.
15807 * cgraph.c (cgraph_node::create_indirect_edge): Compute
15808 indirect_info only when it is required.
15809 * cgraphclones.c (cgraph_clone_edge): Do not recompute
15810 indirect_info fore cloned indirect edge.
15811
15812 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15813 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15814 Anna Tikhonova <anna.tikhonova@intel.com>
15815 Ilya Tocar <ilya.tocar@intel.com>
15816 Andrey Turetskiy <andrey.turetskiy@intel.com>
15817 Ilya Verbin <ilya.verbin@intel.com>
15818 Kirill Yukhin <kirill.yukhin@intel.com>
15819 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15820
15821 * config/i386/sse.md
15822 (define_mode_iterator VI8_AVX2_AVX512BW): New.
15823 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15824
15825 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15826 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15827 Anna Tikhonova <anna.tikhonova@intel.com>
15828 Ilya Tocar <ilya.tocar@intel.com>
15829 Andrey Turetskiy <andrey.turetskiy@intel.com>
15830 Ilya Verbin <ilya.verbin@intel.com>
15831 Kirill Yukhin <kirill.yukhin@intel.com>
15832 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15833
15834 * config/i386/sse.md
15835 (define_mode_iterator VF1_AVX512VL): New.
15836 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15837 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15838 New.
15839
15840 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15841 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15842 Anna Tikhonova <anna.tikhonova@intel.com>
15843 Ilya Tocar <ilya.tocar@intel.com>
15844 Andrey Turetskiy <andrey.turetskiy@intel.com>
15845 Ilya Verbin <ilya.verbin@intel.com>
15846 Kirill Yukhin <kirill.yukhin@intel.com>
15847 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15848
15849 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15850 * config/i386/i386.md
15851 (define_code_iterator any_float): New.
15852 (define_code_attr floatsuffix): New.
15853 * config/i386/sse.md
15854 (define_mode_iterator VF1_128_256VL): New.
15855 (define_mode_iterator VF2_512_256VL): New.
15856 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15857 TARGET check.
15858 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15859 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15860 New.
15861 (define_mode_attr qq2pssuff): New.
15862 (define_mode_attr sselongvecmode): New.
15863 (define_mode_attr sselongvecmodelower): New.
15864 (define_mode_attr sseintvecmode3): New.
15865 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15866 New.
15867 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15868 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15869 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15870 (define_insn "ufloatv2siv2df2<mask_name>"): New.
15871
15872 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15873 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15874 Anna Tikhonova <anna.tikhonova@intel.com>
15875 Ilya Tocar <ilya.tocar@intel.com>
15876 Andrey Turetskiy <andrey.turetskiy@intel.com>
15877 Ilya Verbin <ilya.verbin@intel.com>
15878 Kirill Yukhin <kirill.yukhin@intel.com>
15879 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15880
15881 * config/i386/sse.md
15882 (define_mode_iterator VF2_AVX512VL): New.
15883 (define_mode_attr sseintvecmode2): New.
15884 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15885 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15886 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15887 (define_insn
15888 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15889 Ditto.
15890 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15891 Ditto.
15892 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15893 Ditto.
15894
15895 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15896 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15897 Anna Tikhonova <anna.tikhonova@intel.com>
15898 Ilya Tocar <ilya.tocar@intel.com>
15899 Andrey Turetskiy <andrey.turetskiy@intel.com>
15900 Ilya Verbin <ilya.verbin@intel.com>
15901 Kirill Yukhin <kirill.yukhin@intel.com>
15902 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15903
15904 * config/i386/i386.md
15905 (define_insn "*movoi_internal_avx"): Add evex version.
15906 (define_insn "*movti_internal"): Ditto.
15907
15908 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15909 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15910 Anna Tikhonova <anna.tikhonova@intel.com>
15911 Ilya Tocar <ilya.tocar@intel.com>
15912 Andrey Turetskiy <andrey.turetskiy@intel.com>
15913 Ilya Verbin <ilya.verbin@intel.com>
15914 Kirill Yukhin <kirill.yukhin@intel.com>
15915 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15916
15917 * config/i386/i386.md
15918 (define_attr "isa"): Add avx512dq, noavx512dq.
15919 (define_attr "enabled"): Ditto.
15920 * config/i386/sse.md
15921 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15922
15923 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15924 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15925 Anna Tikhonova <anna.tikhonova@intel.com>
15926 Ilya Tocar <ilya.tocar@intel.com>
15927 Andrey Turetskiy <andrey.turetskiy@intel.com>
15928 Ilya Verbin <ilya.verbin@intel.com>
15929 Kirill Yukhin <kirill.yukhin@intel.com>
15930 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15931
15932 * config/i386/i386.c
15933 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15934 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15935 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15936 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15937 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15938 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15939 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15940 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15941 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15942 * config/i386/sse.md
15943 (define_mode_iterator VMOVE): Allow V4TI mode.
15944 (define_mode_iterator V_AVX512VL): New.
15945 (define_mode_iterator V): New handling for AVX512VL.
15946 (define_insn "avx512f_load<mode>_mask"): Delete.
15947 (define_insn "<avx512>_load<mode>_mask"): New.
15948 (define_insn "avx512f_store<mode>_mask"): Delete.
15949 (define_insn "<avx512>_store<mode>_mask"): New.
15950
15951
15952 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15953
15954 PR sanitizer/62089
15955 * asan.c (instrument_derefs): Fix bitfield check.
15956
15957 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15958
15959 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15960 * config/rs6000/htm.md (ttest): Remove clobber.
15961 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15962 (and_operand): Reformat.
15963 (and_2rld_operand): New predicate.
15964 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15965 parameter.
15966 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15967 parameter. Handle AND directly.
15968 (rs6000_split_logical_di): Remove last parameter.
15969 (rs6000_split_logical): Remove last parameter. Remove obsolete
15970 comment.
15971 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15972 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15973 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15974 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15975 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15976 and 5 anonymous splitters): Delete.
15977 (and<mode>3): New expander.
15978 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15979 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15980 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15981 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15982 (floatdisf2_internal1): Remove clobbers.
15983 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15984 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15985 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15986 (and<mode>3 for BOOL_128): Remove clobber.
15987 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15988 rs6000_split_logical.
15989 (*bool<mode>3_internal for BOOL_128): Adjust call of
15990 rs6000_split_logical.
15991 (*boolc<mode>3_internal1 for BOOL_128,
15992 *boolc<mode>3_internal2 for BOOL_128,
15993 *boolcc<mode>3_internal1 for BOOL_128,
15994 *boolcc<mode>3_internal2 for BOOL_128,
15995 *eqv<mode>3_internal1 for BOOL_128,
15996 *eqv<mode>3_internal2 for BOOL_128,
15997 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15998 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15999 clobber.
16000 (*vec_reload_and_reg_<mptrsize>): Delete.
16001
16002 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
16003
16004 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
16005 and split, *boolccsi3_internal3 and split): Delete.
16006 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
16007 *boolccdi3_internal3 and split): Delete.
16008 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
16009 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
16010
16011 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
16012
16013 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
16014 and split, *boolcsi3_internal3 and split): Delete.
16015 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
16016 *boolcdi3_internal3 and split): Delete.
16017 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
16018
16019 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
16020
16021 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
16022 <'u'>: Also support printing the low-order 16 bits.
16023 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
16024 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
16025 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
16026 *booldi3_internal3 and split): Delete.
16027 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
16028 *bool<mode>3_dot2): New.
16029 (two anonymous define_splits for non_logical_cint_operand): Merge.
16030
16031 2014-08-17 Marek Polacek <polacek@redhat.com>
16032 Manuel López-Ibáñez <manu@gcc.gnu.org>
16033
16034 PR c/62059
16035 * diagnostic.c (adjust_line): Add gcc_checking_assert.
16036 (diagnostic_show_locus): Don't print caret diagnostic
16037 if a column is larger than the line_width.
16038
16039 2014-08-17 Roman Gareev <gareevroman@gmail.com>
16040
16041 * common.opt: Make the ISL AST generator to be the main code generator
16042 of Graphite.
16043
16044 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
16045
16046 * wide-int.h (generic_wide_int): Declare as class instead of struct.
16047
16048 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
16049
16050 PR target/61641
16051 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
16052 Declare.
16053 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
16054 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
16055 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
16056 Define.
16057 * config/pa/pa.md (begin_brtab): Delete insn.
16058 (end_brtab): Likewise.
16059
16060 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16061
16062 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
16063
16064 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
16065
16066 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
16067 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
16068 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
16069 (get_dynamic_type): Remove.
16070 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
16071 (clear_speculation): Bring to ipa-deivrt.h
16072 (get_class_context): Rename to ...
16073 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
16074 (contains_type_p): Update.
16075 (get_dynamic_type): Rename to ...
16076 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
16077 (possible_polymorphic_call_targets): UPdate.
16078 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
16079 * ipa-prop.c (ipa_analyze_call_uses): Update.
16080
16081 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
16082
16083 * doc/invoke.texi (SH options): Document missing processor variant
16084 options. Remove references to Hitachi. Undocument deprecated mspace
16085 option.
16086
16087 2014-08-15 Jason Merrill <jason@redhat.com>
16088
16089 * tree.c (type_hash_canon): Uncomment assert.
16090
16091 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16092
16093 * input.h (in_system_header_at): Add comment.
16094
16095 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16096
16097 PR fortran/44054
16098 * diagnostic.c (build_message_string): Make it extern.
16099 * diagnostic.h (build_message_string): Make it extern.
16100
16101 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
16102
16103 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
16104 load/store from/to non-floating class pseudo.
16105
16106 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16107
16108 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
16109
16110 2014-08-15 Richard Biener <rguenther@suse.de>
16111
16112 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
16113 (get_constraint_for_ssa_var): Remove dead code.
16114 (get_constraint_for_1): Adjust.
16115 (find_what_var_points_to): Likewise.
16116 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
16117
16118 2014-08-15 Ilya Tocar <tocarip@gmail.com>
16119
16120 PR target/61878
16121 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
16122 (_mm512_mask_cmpge_epu32_mask): Ditto.
16123 (_mm512_cmpge_epu32_mask): Ditto.
16124 (_mm512_mask_cmpge_epi64_mask): Ditto.
16125 (_mm512_cmpge_epi64_mask): Ditto.
16126 (_mm512_mask_cmpge_epu64_mask): Ditto.
16127 (_mm512_cmpge_epu64_mask): Ditto.
16128 (_mm512_mask_cmple_epi32_mask): Ditto.
16129 (_mm512_cmple_epi32_mask): Ditto.
16130 (_mm512_mask_cmple_epu32_mask): Ditto.
16131 (_mm512_cmple_epu32_mask): Ditto.
16132 (_mm512_mask_cmple_epi64_mask): Ditto.
16133 (_mm512_cmple_epi64_mask): Ditto.
16134 (_mm512_mask_cmple_epu64_mask): Ditto.
16135 (_mm512_cmple_epu64_mask): Ditto.
16136 (_mm512_mask_cmplt_epi32_mask): Ditto.
16137 (_mm512_cmplt_epi32_mask): Ditto.
16138 (_mm512_mask_cmplt_epu32_mask): Ditto.
16139 (_mm512_cmplt_epu32_mask): Ditto.
16140 (_mm512_mask_cmplt_epi64_mask): Ditto.
16141 (_mm512_cmplt_epi64_mask): Ditto.
16142 (_mm512_mask_cmplt_epu64_mask): Ditto.
16143 (_mm512_cmplt_epu64_mask): Ditto.
16144 (_mm512_mask_cmpneq_epi32_mask): Ditto.
16145 (_mm512_mask_cmpneq_epu32_mask): Ditto.
16146 (_mm512_cmpneq_epu32_mask): Ditto.
16147 (_mm512_mask_cmpneq_epi64_mask): Ditto.
16148 (_mm512_cmpneq_epi64_mask): Ditto.
16149 (_mm512_mask_cmpneq_epu64_mask): Ditto.
16150 (_mm512_cmpneq_epu64_mask): Ditto.
16151 (_mm512_castpd_ps): Ditto.
16152 (_mm512_castpd_si512): Ditto.
16153 (_mm512_castps_pd): Ditto.
16154 (_mm512_castps_si512): Ditto.
16155 (_mm512_castsi512_ps): Ditto.
16156 (_mm512_castsi512_pd): Ditto.
16157 (_mm512_castpd512_pd128): Ditto.
16158 (_mm512_castps512_ps128): Ditto.
16159 (_mm512_castsi512_si128): Ditto.
16160 (_mm512_castpd512_pd256): Ditto.
16161 (_mm512_castps512_ps256): Ditto.
16162 (_mm512_castsi512_si256): Ditto.
16163 (_mm512_castpd128_pd512): Ditto.
16164 (_mm512_castps128_ps512): Ditto.
16165 (_mm512_castsi128_si512): Ditto.
16166 (_mm512_castpd256_pd512): Ditto.
16167 (_mm512_castps256_ps512): Ditto.
16168 (_mm512_castsi256_si512): Ditto.
16169 (_mm512_cmpeq_epu32_mask): Ditto.
16170 (_mm512_mask_cmpeq_epu32_mask): Ditto.
16171 (_mm512_mask_cmpeq_epu64_mask): Ditto.
16172 (_mm512_cmpeq_epu64_mask): Ditto.
16173 (_mm512_cmpgt_epu32_mask): Ditto.
16174 (_mm512_mask_cmpgt_epu32_mask): Ditto.
16175 (_mm512_mask_cmpgt_epu64_mask): Ditto.
16176 (_mm512_cmpgt_epu64_mask): Ditto.
16177 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
16178 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
16179 * config/i386/i386.c (enum ix86_builtins): Add
16180 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
16181 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
16182 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
16183 (bdesc_args): Add __builtin_ia32_si512_256si,
16184 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
16185 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
16186 __builtin_ia32_pd512_pd.
16187 (ix86_expand_args_builtin): Handle new FTYPEs.
16188 * config/i386/sse.md (castmode): Add 512-bit modes.
16189 (AVX512MODE2P): New.
16190 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
16191 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
16192
16193 2014-08-15 Richard Biener <rguenther@suse.de>
16194
16195 * fold-const.c (tree_swap_operands_p): Put all constants
16196 last, also strip sign-changing NOPs when considering further
16197 canonicalization. Canonicalize also when optimizing for size.
16198
16199 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16200
16201 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
16202 one_match > zero_match case to just before simple_sequence.
16203
16204 2014-08-15 Richard Biener <rguenther@suse.de>
16205
16206 * data-streamer.h (streamer_string_index, string_for_index):
16207 Remove.
16208 * data-streamer-out.c (streamer_string_index): Make static.
16209 * data-streamer-in.c (string_for_index): Likewise.
16210 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
16211 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
16212
16213 2014-08-15 Richard Biener <rguenther@suse.de>
16214
16215 PR tree-optimization/62031
16216 * tree-data-ref.c (dr_analyze_indices): Do not set
16217 DR_UNCONSTRAINED_BASE.
16218 (dr_may_alias_p): All indirect accesses have to go the
16219 formerly DR_UNCONSTRAINED_BASE path.
16220 * tree-data-ref.h (struct indices): Remove
16221 unconstrained_base member.
16222 (DR_UNCONSTRAINED_BASE): Remove.
16223
16224 2014-08-15 Jakub Jelinek <jakub@redhat.com>
16225
16226 PR middle-end/62092
16227 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
16228 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
16229 in OMP_CLAUSE_MAP in some outer target region.
16230
16231 2014-08-15 Bin Cheng <bin.cheng@arm.com>
16232
16233 * tree-ssa-loop-ivopts.c (ivopts_data): New field
16234 name_expansion_cache.
16235 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
16236 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
16237 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
16238 (difference_cannot_overflow_p): New parameter. Use affine
16239 expansion for equality check.
16240 (iv_elimination_compare_lt): Pass new argument.
16241
16242 2014-08-14 DJ Delorie <dj@redhat.com>
16243
16244 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
16245 variables to the accumulator.
16246
16247 * config/rl78/predicates.md (rl78_near_mem_operand): New.
16248 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
16249 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
16250 with far-far moves.
16251
16252 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
16253 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
16254 (umulqihi3_virt): Likewise.
16255 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
16256 (umulqihi3_real): Likewise.
16257
16258 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
16259
16260 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
16261
16262 PR tree-optimization/62091
16263 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
16264 function_entry_reached.
16265 (walk_aliased_vdefs): Clear it here.
16266 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
16267
16268 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
16269
16270 * ipa-utils.h (compare_virtual_tables): Declare.
16271 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
16272
16273 2014-08-14 Marek Polacek <polacek@redhat.com>
16274
16275 DR 458
16276 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
16277 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
16278
16279 2014-08-14 Tom de Vries <tom@codesourcery.com>
16280
16281 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
16282
16283 2014-08-14 Tom de Vries <tom@codesourcery.com>
16284
16285 PR rtl-optimization/62004
16286 PR rtl-optimization/62030
16287 * ifcvt.c (rtx_interchangeable_p): New function.
16288 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
16289 * emit-rtl.h (mem_attrs_eq_p): Declare.
16290
16291 2014-08-14 Roman Gareev <gareevroman@gmail.com>
16292
16293 * graphite-scop-detection.c:
16294 Add inclusion of cp-tree.h.
16295 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
16296 in case they are pointers to object types
16297
16298 2014-08-14 Richard Biener <rguenther@suse.de>
16299
16300 * BASE-VER: Change to 5.0.0
16301
16302 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16304 Anna Tikhonova <anna.tikhonova@intel.com>
16305 Ilya Tocar <ilya.tocar@intel.com>
16306 Andrey Turetskiy <andrey.turetskiy@intel.com>
16307 Ilya Verbin <ilya.verbin@intel.com>
16308 Kirill Yukhin <kirill.yukhin@intel.com>
16309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16310
16311 * config/i386/sse.md (define_mode_attr avx512): New.
16312 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
16313 V4DI modes.
16314 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
16315 (define_mode_attr ssse3_avx2): Ditto.
16316 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
16317 (define_mode_attr avx2_avx512bw): New.
16318 (define_mode_attr ssedoublemodelower): New.
16319 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
16320 V32HI, V64QI modes.
16321 (define_mode_attr ssebytemode): Allow V8DI modes.
16322 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
16323 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
16324 (define_mode_attr ssePSmode2): New.
16325 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
16326 V16HI, V32HI modes.
16327 (define_mode_attr dbpsadbwmode): New.
16328 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
16329 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
16330 (vi8_sse4_1_avx2_avx512): New.
16331 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
16332 mode attribute.
16333 (define_mode_attr blendbits): Move before its immediate use.
16334
16335 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16336 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16337 Anna Tikhonova <anna.tikhonova@intel.com>
16338 Ilya Tocar <ilya.tocar@intel.com>
16339 Andrey Turetskiy <andrey.turetskiy@intel.com>
16340 Ilya Verbin <ilya.verbin@intel.com>
16341 Kirill Yukhin <kirill.yukhin@intel.com>
16342 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16343
16344 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
16345 * config/i386/subst.md
16346 (define_mode_iterator SUBST_V): Update.
16347 (define_mode_iterator SUBST_A): Ditto.
16348 (define_subst_attr "mask_operand7"): New.
16349 (define_subst_attr "mask_operand10"): New.
16350 (define_subst_attr "mask_operand_arg34") : New.
16351 (define_subst_attr "mask_expand_op3"): New.
16352 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
16353 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
16354 (define_subst_attr "mask_avx512vl_condition"): New.
16355 (define_subst_attr "round_mask_operand4"): Ditto.
16356 (define_subst_attr "round_mask_scalar_op3"): Delete.
16357 (define_subst_attr "round_mask_op4"): New.
16358 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
16359 V16SImode.
16360 (define_subst_attr "round_modev8sf_condition"): New.
16361 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
16362 <MODE>mode.
16363 (define_subst_attr "round_saeonly_mask_operand4"): New.
16364 (define_subst_attr "round_saeonly_mask_op4"): New.
16365 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
16366 V8DImode, V16SImode.
16367 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
16368 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
16369 (define_subst_attr "mask_expand4_args"): New.
16370 (define_subst "mask_expand4"): New.
16371
16372 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16373 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16374 Anna Tikhonova <anna.tikhonova@intel.com>
16375 Ilya Tocar <ilya.tocar@intel.com>
16376 Andrey Turetskiy <andrey.turetskiy@intel.com>
16377 Ilya Verbin <ilya.verbin@intel.com>
16378 Kirill Yukhin <kirill.yukhin@intel.com>
16379 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16380
16381 * config/i386/i386.md
16382 (define_attr "isa"): Add avx512bw,noavx512bw.
16383 (define_attr "enabled"): Ditto.
16384 (define_split): Add 32/64-bit mask logic.
16385 (define_insn "*k<logic>qi"): New.
16386 (define_insn "*k<logic>hi"): New.
16387 (define_insn "*anddi_1"): Add mask version.
16388 (define_insn "*andsi_1"): Ditto.
16389 (define_insn "*<code><mode>_1"): Ditto.
16390 (define_insn "*<code>hi_1"): Ditto.
16391 (define_insn "kxnor<mode>"): New.
16392 (define_insn "kunpcksi"): New.
16393 (define_insn "kunpckdi"): New.
16394 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
16395 (define_insn "*one_cmplhi2_1"): Ditto.
16396
16397 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16399 Anna Tikhonova <anna.tikhonova@intel.com>
16400 Ilya Tocar <ilya.tocar@intel.com>
16401 Andrey Turetskiy <andrey.turetskiy@intel.com>
16402 Ilya Verbin <ilya.verbin@intel.com>
16403 Kirill Yukhin <kirill.yukhin@intel.com>
16404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16405
16406 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
16407 V32HImode.
16408
16409 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16411 Anna Tikhonova <anna.tikhonova@intel.com>
16412 Ilya Tocar <ilya.tocar@intel.com>
16413 Andrey Turetskiy <andrey.turetskiy@intel.com>
16414 Ilya Verbin <ilya.verbin@intel.com>
16415 Kirill Yukhin <kirill.yukhin@intel.com>
16416 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16417
16418 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
16419 registers.
16420 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
16421 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
16422 xmm/ymm16+ when availble.
16423 * config/i386/i386.h
16424 (HARD_REGNO_NREGS): Add mask regs.
16425 (VALID_AVX512F_REG_MODE): Ditto.
16426 (VALID_AVX512F_REG_MODE) : Define.
16427 (VALID_MASK_AVX512BW_MODE): Ditto.
16428 (reg_class) (MASK_REG_P(X)): Define.
16429 * config/i386/i386.md: Do not split long moves with mask register,
16430 use kmovb if avx512bw is availible.
16431 (movdi_internal): Handle mask registers.
16432
16433 2014-08-14 Richard Biener <rguenther@suse.de>
16434
16435 PR tree-optimization/62081
16436 * tree-ssa-loop.c (pass_fix_loops): New pass.
16437 (pass_tree_loop::gate): Do not fixup loops here.
16438 * tree-pass.h (make_pass_fix_loops): Declare.
16439 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
16440
16441 2014-08-14 Richard Biener <rguenther@suse.de>
16442
16443 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
16444 (type_hash_canon): ... this and avoid 2nd lookup for the add.
16445
16446 2014-08-14 Richard Biener <rguenther@suse.de>
16447
16448 PR tree-optimization/62090
16449 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
16450 (fold_builtin_2): Do not fold sprintf.
16451 (fold_builtin_3): Likewise.
16452 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
16453 moved from builtins.c.
16454 (gimple_fold_builtin): Fold sprintf.
16455
16456 2014-08-14 Richard Biener <rguenther@suse.de>
16457
16458 PR rtl-optimization/62079
16459 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
16460 run cleanup_cfg.
16461
16462 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
16463
16464 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
16465 current_function_decl.
16466
16467 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
16468
16469 * cgraph.c (cgraph_node::function_symbol): Fix wrong
16470 cgraph_function_node to cgraph_node::function_symbol
16471 refactoring.
16472
16473 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
16474
16475 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
16476 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
16477
16478 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
16479
16480 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
16481 warning.
16482
16483 2014-08-13 Roman Gareev <gareevroman@gmail.com>
16484
16485 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
16486 generator.
16487
16488 2014-08-12 Jakub Jelinek <jakub@redhat.com>
16489
16490 PR target/62025
16491 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
16492 any registers that are used in mem_insn.
16493
16494 2014-08-12 Steve Ellcey <sellcey@mips.com>
16495
16496 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
16497
16498 2014-08-12 Steve Ellcey <sellcey@mips.com>
16499
16500 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
16501 (MULTILIB_DIRNAMES): Ditto.
16502 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
16503 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
16504 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
16505 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
16506 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
16507 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
16508
16509 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16510
16511 PR target/61413
16512 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
16513 of __ARM_SIZEOF_WCHAR_T.
16514
16515 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16516
16517 PR target/62098
16518 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
16519 Remove unnecessary attributes.
16520
16521 2014-08-12 Yury Gribov <y.gribov@samsung.com>
16522
16523 * internal-fn.c (init_internal_fns): Fix off-by-one.
16524
16525 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
16526 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16527 Anna Tikhonova <anna.tikhonova@intel.com>
16528 Ilya Tocar <ilya.tocar@intel.com>
16529 Andrey Turetskiy <andrey.turetskiy@intel.com>
16530 Ilya Verbin <ilya.verbin@intel.com>
16531 Kirill Yukhin <kirill.yukhin@intel.com>
16532 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16533
16534 * config/i386/i386.c (standard_sse_constant_opcode): Use
16535 vpxord/vpternlog if avx512 is availible.
16536
16537 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
16538
16539 PR middle-end/62103
16540 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
16541 bitfields, that is when size doesn't match the size of type or the
16542 size of the constructor.
16543
16544 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16545
16546 * config/rs6000/constraints.md (wh constraint): New constraint,
16547 for FP registers if direct move is available.
16548 (wi constraint): New constraint, for VSX/FP registers that can
16549 handle 64-bit integers.
16550 (wj constraint): New constraint for VSX/FP registers that can
16551 handle 64-bit integers for direct moves.
16552 (wk constraint): New constraint for VSX/FP registers that can
16553 handle 64-bit doubles for direct moves.
16554 (wy constraint): Make documentation match implementation.
16555
16556 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
16557 scalar_in_vmx_p field to simplify tests of whether SFmode or
16558 DFmode can go in the Altivec registers.
16559 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
16560 (rs6000_setup_reg_addr_masks): Likewise.
16561 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16562 field, and wh/wi/wj/wk constraints.
16563 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16564 the wh/wi/wj/wk constraints.
16565 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16566 upper registers, prefer VSX registers unless the operation is a
16567 memory operation with REG+OFFSET addressing.
16568
16569 * config/rs6000/vsx.md (VSr mode attribute): Add support for
16570 DImode. Change SFmode to use ww constraint instead of d to allow
16571 SF registers in the upper registers.
16572 (VSr2): Likewise.
16573 (VSr3): Likewise.
16574 (VSr5): Fix thinko in comment.
16575 (VSa): New mode attribute that is an alternative to wa, that
16576 returns the VSX register class that a mode can go in, but may not
16577 be the preferred register class.
16578 (VS_64dm): New mode attribute for appropriate register classes for
16579 referencing 64-bit elements of vectors for direct moves and normal
16580 moves.
16581 (VS_64reg): Likewise.
16582 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16583 register allocator to only registers the data type can handle.
16584 (vsx_le_perm_load_<mode>): Likewise.
16585 (vsx_le_perm_store_<mode>): Likewise.
16586 (vsx_xxpermdi2_le_<mode>): Likewise.
16587 (vsx_xxpermdi4_le_<mode>): Likewise.
16588 (vsx_lxvd2x2_le_<mode>): Likewise.
16589 (vsx_lxvd2x4_le_<mode>): Likewise.
16590 (vsx_stxvd2x2_le_<mode>): Likewise.
16591 (vsx_add<mode>3): Likewise.
16592 (vsx_sub<mode>3): Likewise.
16593 (vsx_mul<mode>3): Likewise.
16594 (vsx_div<mode>3): Likewise.
16595 (vsx_tdiv<mode>3_internal): Likewise.
16596 (vsx_fre<mode>2): Likewise.
16597 (vsx_neg<mode>2): Likewise.
16598 (vsx_abs<mode>2): Likewise.
16599 (vsx_nabs<mode>2): Likewise.
16600 (vsx_smax<mode>3): Likewise.
16601 (vsx_smin<mode>3): Likewise.
16602 (vsx_sqrt<mode>2): Likewise.
16603 (vsx_rsqrte<mode>2): Likewise.
16604 (vsx_tsqrt<mode>2_internal): Likewise.
16605 (vsx_fms<mode>4): Likewise.
16606 (vsx_nfma<mode>4): Likewise.
16607 (vsx_eq<mode>): Likewise.
16608 (vsx_gt<mode>): Likewise.
16609 (vsx_ge<mode>): Likewise.
16610 (vsx_eq<mode>_p): Likewise.
16611 (vsx_gt<mode>_p): Likewise.
16612 (vsx_ge<mode>_p): Likewise.
16613 (vsx_xxsel<mode>): Likewise.
16614 (vsx_xxsel<mode>_uns): Likewise.
16615 (vsx_copysign<mode>3): Likewise.
16616 (vsx_float<VSi><mode>2): Likewise.
16617 (vsx_floatuns<VSi><mode>2): Likewise.
16618 (vsx_fix_trunc<mode><VSi>2): Likewise.
16619 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16620 (vsx_x<VSv>r<VSs>i): Likewise.
16621 (vsx_x<VSv>r<VSs>ic): Likewise.
16622 (vsx_btrunc<mode>2): Likewise.
16623 (vsx_b2trunc<mode>2): Likewise.
16624 (vsx_floor<mode>2): Likewise.
16625 (vsx_ceil<mode>2): Likewise.
16626 (vsx_<VS_spdp_insn>): Likewise.
16627 (vsx_xscvspdp): Likewise.
16628 (vsx_xvcvspuxds): Likewise.
16629 (vsx_float_fix_<mode>2): Likewise.
16630 (vsx_set_<mode>): Likewise.
16631 (vsx_extract_<mode>_internal1): Likewise.
16632 (vsx_extract_<mode>_internal2): Likewise.
16633 (vsx_extract_<mode>_load): Likewise.
16634 (vsx_extract_<mode>_store): Likewise.
16635 (vsx_splat_<mode>): Likewise.
16636 (vsx_xxspltw_<mode>): Likewise.
16637 (vsx_xxspltw_<mode>_direct): Likewise.
16638 (vsx_xxmrghw_<mode>): Likewise.
16639 (vsx_xxmrglw_<mode>): Likewise.
16640 (vsx_xxsldwi_<mode>): Likewise.
16641 (vsx_xscvdpspn): Tighten constraints to only use register classes
16642 the types use.
16643 (vsx_xscvspdpn): Likewise.
16644 (vsx_xscvdpspn_scalar): Likewise.
16645
16646 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16647 wj, and wk constraints.
16648 (GPR_REG_CLASS_P): New helper macro for register classes targeting
16649 general purpose registers.
16650
16651 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16652 direct moves.
16653 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16654 DImode instead of wm. Use wk constraint for direct move of DFmode
16655 instead of wm.
16656 (extendsidi2_lfiwax): Likewise.
16657 (lfiwax): Likewise.
16658 (lfiwzx): Likewise.
16659 (movdi_internal64): Likewise.
16660
16661 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16662 wk constraints. Make the wy constraint documentation match them
16663 implementation.
16664
16665 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
16666
16667 Replacement of isl_int by isl_val
16668 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16669 (compute_bounds_for_param): use isl_val instead of isl_int
16670 (compute_bounds_for_loop): likewise
16671 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16672 (build_linearized_memory_access): use isl_val instead of isl_int
16673 (pdr_stride_in_loop): likewise
16674 * graphite-optimize-isl.c:
16675 (getPrevectorMap): use isl_val instead of isl_int
16676 * graphite-poly.c:
16677 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16678 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16679 (extern the_isl_ctx): declare
16680 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16681 (extract_affine_gmp): likewise
16682 (wrap): likewise
16683 (build_loop_iteration_domains): likewise
16684 (add_param_constraints): likewise
16685
16686 2014-08-11 Richard Biener <rguenther@suse.de>
16687
16688 PR tree-optimization/62075
16689 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16690 handle uses in patterns.
16691
16692 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16693 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16694 Anna Tikhonova <anna.tikhonova@intel.com>
16695 Ilya Tocar <ilya.tocar@intel.com>
16696 Andrey Turetskiy <andrey.turetskiy@intel.com>
16697 Ilya Verbin <ilya.verbin@intel.com>
16698 Kirill Yukhin <kirill.yukhin@intel.com>
16699 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16700
16701 * common/config/i386/i386-common.c
16702 (OPTION_MASK_ISA_AVX512VL_SET): Define.
16703 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16704 (ix86_handle_option): Handle OPT_mavx512vl.
16705 * config/i386/cpuid.h (bit_AVX512VL): Define.
16706 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16707 set -mavx512vl accordingly.
16708 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16709 OPTION_MASK_ISA_AVX512VL.
16710 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16711 (ix86_option_override_internal): Define PTA_AVX512VL, handle
16712 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16713 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16714 * config/i386/i386.h (TARGET_AVX512VL): Define.
16715 (TARGET_AVX512VL_P(x)): Ditto.
16716 * config/i386/i386.opt: Add mavx512vl.
16717
16718 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
16719
16720 PR tree-optimization/62073
16721 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16722 a basic block.
16723
16724 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16725 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16726 Anna Tikhonova <anna.tikhonova@intel.com>
16727 Ilya Tocar <ilya.tocar@intel.com>
16728 Andrey Turetskiy <andrey.turetskiy@intel.com>
16729 Ilya Verbin <ilya.verbin@intel.com>
16730 Kirill Yukhin <kirill.yukhin@intel.com>
16731 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16732
16733 * common/config/i386/i386-common.c
16734 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16735 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16736 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16737 (ix86_handle_option): Handle OPT_mavx512bw.
16738 * config/i386/cpuid.h (bit_AVX512BW): Define.
16739 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16740 set -mavx512bw accordingly.
16741 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16742 OPTION_MASK_ISA_AVX512BW.
16743 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16744 (ix86_option_override_internal): Define PTA_AVX512BW, handle
16745 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16746 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16747 * config/i386/i386.h (TARGET_AVX512BW): Define.
16748 (TARGET_AVX512BW_P(x)): Ditto.
16749 * config/i386/i386.opt: Add mavx512bw.
16750
16751 2014-08-11 Richard Biener <rguenther@suse.de>
16752
16753 PR tree-optimization/62070
16754 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16755 Remove SSA checking.
16756
16757 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16758
16759 * asan.c (asan_check_flags): New enum.
16760 (build_check_stmt_with_calls): Removed function.
16761 (build_check_stmt): Split inlining logic to
16762 asan_expand_check_ifn.
16763 (instrument_derefs): Rename parameter.
16764 (instrument_mem_region_access): Rename parameter.
16765 (instrument_strlen_call): Likewise.
16766 (asan_expand_check_ifn): New function.
16767 (asan_instrument): Remove old code.
16768 (pass_sanopt::execute): Change handling of
16769 asan-instrumentation-with-call-threshold.
16770 (asan_clear_shadow): Fix formatting.
16771 (asan_function_start): Likewise.
16772 (asan_emit_stack_protection): Likewise.
16773 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16774 Update description.
16775 * internal-fn.c (expand_ASAN_CHECK): New function.
16776 * internal-fn.def (ASAN_CHECK): New internal function.
16777 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16778 Update description.
16779 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16780 * tree.c: Small comment fix.
16781
16782 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16783
16784 * gimple.c (gimple_call_fnspec): Support internal functions.
16785 (gimple_call_return_flags): Use const.
16786 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16787 * internal-fn.def: Add fnspec information.
16788 * internal-fn.h (internal_fn_fnspec): New function.
16789 (init_internal_fns): Declare new function.
16790 * internal-fn.c (internal_fn_fnspec_array): New global variable.
16791 (init_internal_fns): New function.
16792 * tree-core.h: Update macro call.
16793 * tree.c (build_common_builtin_nodes): Initialize internal fns.
16794
16795 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
16796
16797 * lto-streamer.h (struct output_block::symbol): Change from
16798 struct symtab_node to plain symtab_node.
16799 (referenced_from_this_partition_p): Change first parameter
16800 from struct symtab_node to plain symtab_node.
16801
16802 2014-08-10 Marek Polacek <polacek@redhat.com>
16803
16804 PR c/51849
16805 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16806
16807 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
16808
16809 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16810 DECL correctly; do not give up on types in static storage.
16811
16812 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
16813
16814 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16815
16816 2014-08-09 Roman Gareev <gareevroman@gmail.com>
16817
16818 * graphite-isl-ast-to-gimple.c:
16819 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16820
16821 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16822
16823 2014-08-08 Guozhi Wei <carrot@google.com>
16824
16825 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16826
16827 2014-08-08 Cary Coutant <ccoutant@google.com>
16828
16829 * dwarf2out.c (get_skeleton_type_unit): Remove.
16830 (output_skeleton_debug_sections): Remove skeleton type units.
16831 (output_comdat_type_unit): Likewise.
16832 (dwarf2out_finish): Likewise.
16833
16834 2014-08-07 Yi Yang <ahyangyi@google.com>
16835
16836 * predict.c (expr_expected_value_1): Remove the redundant assignment.
16837
16838 2014-08-08 Richard Biener <rguenther@suse.de>
16839
16840 * lto-streamer.h (struct lto_input_block): Make it a class
16841 with a constructor.
16842 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16843 (struct lto_function_header, struct lto_simple_header,
16844 struct lto_simple_header_with_strings,
16845 struct lto_decl_header, struct lto_function_header): Make
16846 a simple inheritance hieararchy. Remove unused fields.
16847 (struct lto_asm_header): Remove.
16848 * lto-streamer-out.c (produce_asm): Adjust.
16849 (lto_output_toplevel_asms): Likewise.
16850 (produce_asm_for_decls): Likewise.
16851 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16852 * data-streamer-in.c (string_for_index): Likewise.
16853 * ipa-inline-analysis.c (inline_read_section): Likewise.
16854 * ipa-prop.c (ipa_prop_read_section): Likewise.
16855 (read_replacements_section): Likewise.
16856 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16857 * lto-section-in.c (lto_create_simple_input_block): Likewise.
16858 (lto_destroy_simple_input_block): Likewise.
16859 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16860 (lto_input_toplevel_asms): Likewise.
16861
16862 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
16863 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16864 Anna Tikhonova <anna.tikhonova@intel.com>
16865 Ilya Tocar <ilya.tocar@intel.com>
16866 Andrey Turetskiy <andrey.turetskiy@intel.com>
16867 Ilya Verbin <ilya.verbin@intel.com>
16868 Kirill Yukhin <kirill.yukhin@intel.com>
16869 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16870
16871 * common/config/i386/i386-common.c
16872 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16873 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16874 (ix86_handle_option): Handle OPT_mavx512dq.
16875 * config/i386/cpuid.h (bit_AVX512DQ): Define.
16876 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16877 set -mavx512dq accordingly.
16878 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16879 OPTION_MASK_ISA_AVX512DQ.
16880 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16881 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16882 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16883 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16884 * config/i386/i386.h (TARGET_AVX512DQ): Define.
16885 (TARGET_AVX512DQ_P(x)): Ditto.
16886 * config/i386/i386.opt: Add mavx512dq.
16887
16888 2014-08-08 Richard Biener <rguenther@suse.de>
16889
16890 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16891 target_percent, target_percent_s): Export.
16892 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16893 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16894 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16895 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16896 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16897 Move to gimple-fold.c.
16898 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16899 strcat and strcpy.
16900 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16901 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16902 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16903 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16904 (rewrite_call_expr_array): Remove.
16905 (fold_builtin_sprintf_chk): Likewise.
16906 (fold_builtin_snprintf_chk): Likewise.
16907 (fold_builtin_varargs): Remove handling of sprintf_chk,
16908 vsprintf_chk, snprintf_chk and vsnprintf_chk.
16909 (gimple_fold_builtin_sprintf_chk): Remove.
16910 (gimple_fold_builtin_snprintf_chk): Likewise.
16911 (gimple_fold_builtin_varargs): Likewise.
16912 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16913 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16914 * gimple.c (gimple_seq_add_seq_without_update): New function.
16915 * gimple.h (gimple_seq_add_seq_without_update): Declare.
16916 * gimple-fold.c: Include output.h.
16917 (gsi_replace_with_seq_vops): New function, split out from ...
16918 (gimplify_and_update_call_from_tree): ... here.
16919 (replace_call_with_value): New function.
16920 (replace_call_with_call_and_fold): Likewise.
16921 (var_decl_component_p): Moved from builtins.c.
16922 (gimple_fold_builtin_memory_op): Moved from builtins.c
16923 fold_builtin_memory_op and rewritten to GIMPLE.
16924 (gimple_fold_builtin_memset): Likewise.
16925 (gimple_fold_builtin_strcpy): Likewise.
16926 (gimple_fold_builtin_strncpy): Likewise.
16927 (gimple_fold_builtin_strcat): Likewise.
16928 (gimple_fold_builtin_fputs): Likewise.
16929 (gimple_fold_builtin_memory_chk): Likewise.
16930 (gimple_fold_builtin_stxcpy_chk): Likewise.
16931 (gimple_fold_builtin_stxncpy_chk): Likewise.
16932 (gimple_fold_builtin_snprintf_chk): Likewise.
16933 (gimple_fold_builtin_sprintf_chk): Likewise.
16934 (gimple_fold_builtin_strlen): New function.
16935 (gimple_fold_builtin_with_strlen): New function split out from
16936 gimple_fold_builtin.
16937 (gimple_fold_builtin): Change signature and handle
16938 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16939 here. Call gimple_fold_builtin_with_strlen.
16940 (gimple_fold_call): Adjust.
16941
16942 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16943
16944 * calls.c (precompute_arguments): Check
16945 promoted_for_signed_and_unsigned_p and set the promoted mode.
16946 (promoted_for_signed_and_unsigned_p): New function.
16947 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16948 and set the promoted mode.
16949 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16950 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16951 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16952
16953
16954 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16955
16956 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16957 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16958 (expand_call): Likewise.
16959 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16960 to get promoted mode.
16961 * combine.c (record_promoted_value): Skip > 0 comparison with
16962 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16963 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16964 of SUBREG_PROMOTED_UNSIGNED_P.
16965 (convert_modes): Likewise.
16966 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16967 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16968 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16969 SUBREG_PROMOTED_UNSIGNED_SET.
16970 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16971 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16972 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16973 SUBREG_PROMOTED_SET.
16974 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16975 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16976 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16977 of SUBREG_PROMOTED_UNSIGNED_P.
16978 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16979 (SUBREG_PROMOTED_SET): New define.
16980 (SUBREG_PROMOTED_GET): Likewise.
16981 (SUBREG_PROMOTED_SIGN): Likewise.
16982 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16983 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16984 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16985 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16986 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16987 (nonzero_bits1): Skip > 0 comparison with the results as
16988 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16989 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16990 of !SUBREG_PROMOTED_UNSIGNED_P.
16991 * simplify-rtx.c (simplify_unary_operation_1): Use new
16992 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16993 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16994 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16995 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16996
16997 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16998
16999 * ipa-devirt.c: Include gimple-pretty-print.h
17000 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
17001 further tests.
17002 (decl_maybe_in_construction_p): Fix conditional on cdtor check
17003 (get_polymorphic_call_info): Fix return value
17004 (type_change_info): New sturcture based on ipa-prop
17005 variant.
17006 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
17007 based on ipa-prop variant.
17008 (extr_type_from_vtbl_ptr_store): New function
17009 based on ipa-prop variant.
17010 (record_known_type): New function.
17011 (check_stmt_for_type_change): New function.
17012 (get_dynamic_type): New function.
17013 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
17014 * tree-ssa-pre.c: ipa-utils.h
17015 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
17016 machinery; sanity check with ipa-prop devirtualization.
17017 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
17018 polymorphic flag.
17019
17020 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
17021
17022 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
17023 * alias.c, cfgexpand.c, cgraphbuild.c,
17024 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
17025 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
17026 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
17027 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
17028 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
17029 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17030 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
17031 dse.c, except.c, gengtype.c, gimple-expr.c,
17032 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
17033 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
17034 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
17035 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
17036 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
17037 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
17038 pointer-set.h.
17039 * pointer-set.c: Remove file.
17040 * pointer-set.h: Remove file.
17041
17042 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17043
17044 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
17045 * config/arm/types.md (f_sels, f_seld): Delete.
17046
17047 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17048
17049 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
17050 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
17051 (aarch64_movdi_<mode>high): Likewise.
17052 (aarch64_mov<mode>high_di): Likewise.
17053 (aarch64_movdi_<mode>low): Likewise.
17054 (aarch64_mov<mode>low_di): Likewise.
17055 (aarch64_movtilow_tilow): Likewise.
17056 Add comment explaining usage of fp,simd attributes and of
17057 TARGET_FLOAT and TARGET_SIMD.
17058
17059 2014-08-07 Ian Bolton <ian.bolton@arm.com>
17060 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17061
17062 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
17063 Use MOVN when one of the half-words is 0xffff.
17064
17065 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
17066
17067 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
17068
17069 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17070
17071 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
17072 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
17073 (rfs_str): String corresponding to RFS_* constants.
17074 (rank_for_schedule_stats_t): New typedef.
17075 (rank_for_schedule_stats): New static variable.
17076 (rfs_result): New static function.
17077 (rank_for_schedule): Track statistics for deciding heuristics.
17078 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
17079 static functions.
17080 (ready_sort): Use them for debug printouts.
17081 (schedule_block): Init statistics state. Print statistics on
17082 rank_for_schedule decisions.
17083
17084 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17085
17086 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
17087
17088 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
17089
17090 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
17091 constraint.
17092
17093 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
17094
17095 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
17096 function to not conflict.
17097 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
17098 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
17099 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
17100 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
17101 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
17102 of pointer_map.
17103
17104 2014-08-07 Marek Polacek <polacek@redhat.com>
17105
17106 * fold-const.c (fold_binary_loc): Add folding of
17107 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
17108
17109 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
17110
17111 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
17112 instead of type size.
17113 (ASM_FINISH_DECLARE_OBJECT): Likewise.
17114
17115 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
17116
17117 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
17118 (*thumb1_movqi_insn): Likewise.
17119 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
17120
17121 2014-08-07 Tom de Vries <tom@codesourcery.com>
17122
17123 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17124 (glibc_2_11_or_earlier): Remove effective-target keywords.
17125
17126 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17127
17128 * config/arm/arm.c (bdesc_2arg): Fix typo.
17129 (arm_atomic_assign_expand_fenv): Remove The default implementation.
17130
17131 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
17132
17133 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
17134
17135 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
17136
17137 PR debug/61923
17138 * haifa-sched.c (advance_one_cycle): Fix dump.
17139 (schedule_block): Don't advance cycle if we are already at the
17140 beginning of the cycle.
17141
17142 2014-08-06 Martin Jambor <mjambor@suse.cz>
17143
17144 PR ipa/61393
17145 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
17146
17147 2014-08-06 Richard Biener <rguenther@suse.de>
17148
17149 PR lto/62034
17150 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
17151 SCCs here.
17152 (lto_input_tree): Pop SCCs here.
17153
17154 2014-08-06 Richard Biener <rguenther@suse.de>
17155
17156 PR tree-optimization/61320
17157 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
17158 handle misaligned loads.
17159
17160 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
17161
17162 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
17163 (aarch64_expand_vec_perm_const): Check for dup before zip.
17164
17165 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17166
17167 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
17168 CONST_INT_P instead of GET_CODE and compare.
17169 (aarch64_select_cc_mode): Likewise.
17170 (aarch64_print_operand): Likewise.
17171 (aarch64_rtx_costs): Likewise.
17172 (aarch64_simd_valid_immediate): Likewise.
17173 (aarch64_simd_check_vect_par_cnst_half): Likewise.
17174 (aarch64_simd_emit_pair_result_insn): Likewise.
17175
17176 2014-08-05 David Malcolm <dmalcolm@redhat.com>
17177
17178 * gdbhooks.py (find_gcc_source_dir): New helper function.
17179 (class PassNames): New class, locating and parsing passes.def.
17180 (class BreakOnPass): New command "break-on-pass".
17181
17182 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
17183
17184 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
17185 getting olde.
17186
17187 2014-08-05 Richard Biener <rguenther@suse.de>
17188
17189 PR rtl-optimization/61672
17190 * emit-rtl.h (mem_attrs_eq_p): Declare.
17191 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
17192 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
17193 * cfgcleanup.c (merge_memattrs): Likewise.
17194 Include emit-rtl.h.
17195
17196 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17197
17198 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
17199 rather than singleton vectors.
17200 (vqdmlsls_lane_s32): Likewise.
17201
17202 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17203
17204 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
17205 Use VSDQ_HSI mode iterator.
17206 (aarch64_sqrdmulh_laneq<mode>): Likewise.
17207 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
17208 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
17209 Use BUILTIN_VDQHS macro.
17210 (sqrdmulh_laneq): Likewise.
17211 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
17212 (vqdmlals_laneq_s32): Likewise.
17213 (vqdmlslh_laneq_s16): Likewise.
17214 (vqdmlsls_laneq_s32): Likewise.
17215 (vqdmulhh_laneq_s16): Likewise.
17216 (vqdmulhs_laneq_s32): Likewise.
17217 (vqrdmulhh_laneq_s16): Likewise.
17218 (vqrdmulhs_laneq_s32): Likewise.
17219
17220 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17221
17222 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
17223 (vmuld_laneq_f64): Likewise.
17224 (vmuls_laneq_f32): Likewise.
17225 (vmul_n_f64): Likewise.
17226 (vmuld_lane_f64): Reimplement in C.
17227 (vmuls_lane_f32): Likewise.
17228
17229 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17230
17231 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
17232 to reservation.
17233 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
17234
17235 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17236
17237 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
17238 (rbitsi2): Likewise.
17239 (*arm_rev): Set predicable and predicable_short_it attributes.
17240
17241 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17242
17243 * convert.c (convert_to_integer): Guard transformation to lrint by
17244 -fno-math-errno.
17245
17246 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
17247
17248 * config/aarch64/aarch64-builtins.c
17249 (aarch64_simd_builtin_type_mode): Delete.
17250 (v8qi_UP): Remap to V8QImode.
17251 (v4hi_UP): Remap to V4HImode.
17252 (v2si_UP): Remap to V2SImode.
17253 (v2sf_UP): Remap to V2SFmode.
17254 (v1df_UP): Remap to V1DFmode.
17255 (di_UP): Remap to DImode.
17256 (df_UP): Remap to DFmode.
17257 (v16qi_UP):V16QImode.
17258 (v8hi_UP): Remap to V8HImode.
17259 (v4si_UP): Remap to V4SImode.
17260 (v4sf_UP): Remap to V4SFmode.
17261 (v2di_UP): Remap to V2DImode.
17262 (v2df_UP): Remap to V2DFmode.
17263 (ti_UP): Remap to TImode.
17264 (ei_UP): Remap to EImode.
17265 (oi_UP): Remap to OImode.
17266 (ci_UP): Map to CImode.
17267 (xi_UP): Remap to XImode.
17268 (si_UP): Remap to SImode.
17269 (sf_UP): Remap to SFmode.
17270 (hi_UP): Remap to HImode.
17271 (qi_UP): Remap to QImode.
17272 (aarch64_simd_builtin_datum): Make mode a machine_mode.
17273 (VAR1): Build builtin name.
17274 (aarch64_init_simd_builtins): Remove dead code.
17275
17276 2014-08-05 Roman Gareev <gareevroman@gmail.com>
17277
17278 * graphite-isl-ast-to-gimple.c:
17279 (set_options): New function.
17280 (scop_to_isl_ast): Add calling of set_options.
17281
17282 2014-08-05 Jakub Jelinek <jakub@redhat.com>
17283
17284 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
17285 (analyze_iv_to_split_insn): Don't initialize them.
17286 (get_ivts_expr): Removed.
17287 (allocate_basic_variable, insert_base_initialization): Use
17288 SET_SRC instead of *get_ivts_expr.
17289 (split_iv): Use &SET_SRC instead of get_ivts_expr.
17290
17291 2014-08-05 Roman Gareev <gareevroman@gmail.com>
17292
17293 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
17294 (translate_isl_ast_for_loop): Add checking of the
17295 flag_loop_parallelize_all.
17296 (ast_build_before_for): New function.
17297 (scop_to_isl_ast): Add checking of the
17298 flag_loop_parallelize_all.
17299 * graphite-dependences.c: Move the defenition of the
17300 scop_get_dependences from graphite-optimize-isl.c to this file.
17301 (apply_schedule_on_deps): Add checking of the ux's emptiness.
17302 (carries_deps): Add checking of the x's value.
17303 * graphite-optimize-isl.c: Move the defenition of the
17304 scop_get_dependences to graphite-dependences.c.
17305 * graphite-poly.h: Add declarations of scop_get_dependences
17306 and carries_deps.
17307
17308 2014-08-04 Rohit <rohitarulraj@freescale.com>
17309
17310 PR target/60102
17311 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
17312 names.
17313 (alt_reg_names): Likewise.
17314 (rs6000_dwarf_register_span): For SPE high registers, replace
17315 dwarf register numbers with GCC hard register numbers.
17316 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
17317 (rs6000_dbx_register_number): For SPE high registers, return dwarf
17318 register number for the corresponding GCC hard register number.
17319 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
17320 newly added GCC hard register numbers for SPE high registers.
17321 (DWARF_FRAME_REGISTERS): Likewise.
17322 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
17323 (DWARF_FRAME_REGNUM): Likewise.
17324 (FIXED_REGISTERS): Likewise.
17325 (CALL_USED_REGISTERS): Likewise.
17326 (CALL_REALLY_USED_REGISTERS): Likewise.
17327 (REG_ALLOC_ORDER): Likewise.
17328 (enum reg_class): Likewise.
17329 (REG_CLASS_NAMES): Likewise.
17330 (REG_CLASS_CONTENTS): Likewise.
17331 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
17332
17333 2014-08-04 Richard Biener <rguenther@suse.de>
17334
17335 * gimple-fold.h (gimple_fold_builtin): Remove.
17336 * gimple-fold.c (gimple_fold_builtin): Make static.
17337 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
17338 fold_stmt, not gimple_fold_builtin.
17339
17340 2014-08-04 Martin Liska <mliska@suse.cz>
17341
17342 * cgraph.h (csi_end_p): Removed.
17343 (csi_next): Likewise.
17344 (csi_node): Likewise.
17345 (csi_start): Likewise.
17346 (cgraph_node_in_set_p): Likewise.
17347 (cgraph_node_set_size): Likewise.
17348 (vsi_end_p): Likewise.
17349 (vsi_next): Likewise.
17350 (vsi_node): Likewise.
17351 (vsi_start): Likewise.
17352 (varpool_node_set_size): Likewise.
17353 (cgraph_node_set_nonempty_p): Likewise.
17354 (varpool_node_set_nonempty_p): Likewise.
17355 * cgraphunit.c (cgraph_process_new_functions): vec replaces
17356 cgraph_node_set.
17357 * ipa-inline-transform.c: Likewise.
17358 * ipa-utils.c (cgraph_node_set_new): Removed.
17359 (cgraph_node_set_add): Likewise.
17360 (cgraph_node_set_remove): Likewise.
17361 (cgraph_node_set_find): Likewise.
17362 (dump_cgraph_node_set): Likewise.
17363 (debug_cgraph_node_set): Likewise.
17364 (free_cgraph_node_set): Likewise.
17365 (varpool_node_set_new): Likewise.
17366 (varpool_node_set_add): Likewise.
17367 (varpool_node_set_remove): Likewise.
17368 (varpool_node_set_find): Likewise.
17369 (dump_varpool_node_set): Likewise.
17370 (free_varpool_node_set): Likewise.
17371 (debug_varpool_node_set): Likewise.
17372 * tree-emutls.c (struct tls_var_data):
17373 (emutls_index): Removed.
17374 (emutls_decl): Likewise.
17375 (gen_emutls_addr): Function implementation uses newly added
17376 hash_map<varpool_node *, tls_var_data>.
17377 (clear_access_vars): Likewise.
17378 (create_emultls_var): Likewise.
17379 (ipa_lower_emutls): Likewise.
17380 (reset_access): New function.
17381
17382 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17383
17384 * config/i386/i386.c (ix86_option_override_internal): Add
17385 PTA_RDRND and PTA_MOVBE for bdver4.
17386
17387 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17388 James Greenhalgh <james.greenhalgh@arm.com>
17389
17390 * doc/md.texi (clrsb): Document.
17391 (clz): Change reference to x into operand 1.
17392 (ctz): Likewise.
17393 (popcount): Likewise.
17394
17395 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17396
17397 PR target/61713
17398 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
17399 move to subtarget in serial version if result is ignored.
17400
17401 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17402 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17403
17404 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
17405 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
17406 (sched_analyze_insn): Update use of try_group_insn to
17407 sched_macro_fuse_insns.
17408 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
17409 arguments that are not conditional jumps.
17410
17411 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17412
17413 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
17414 family information. Handle BTVER2 cpu with cpuid family value.
17415
17416 2014-08-04 Tom de Vries <tom@codesourcery.com>
17417
17418 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17419 (glibc_2_11_or_earlier): Document effective-target keywords.
17420
17421 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
17422
17423 * ipa-devirt.c (odr_type_warn_count): Add type.
17424 (possible_polymorphic_call_targets): Set it.
17425 (ipa_devirt): Use it.
17426
17427 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
17428
17429 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
17430 Document.
17431 * ipa-devirt.c: Include hash-map.h
17432 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
17433 (clear_speculation): Break out of ...
17434 (get_class_context): ... here; speed up handling obviously useless
17435 speculations.
17436 (odr_type_warn_count, decl_warn_count): New structures.
17437 (final_warning_record): New structure.
17438 (final_warning_records): New static variable.
17439 (possible_polymorphic_call_targets): Cleanup handling of
17440 speculative info; do not build speculation when user do not care;
17441 record info about warnings when asked for.
17442 (add_decl_warning): New function.
17443 (type_warning_cmp): New function.
17444 (decl_warning_cmp): New function.
17445 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
17446 (gate): Enable pass when warnings are requested.
17447 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
17448 options.
17449
17450 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
17451
17452 * hash-map.h (default_hashmap_traits::mark_key_deleted):
17453 Fix cast.
17454 (hash_map::remove): New method.
17455 (hash_map::traverse): New method.
17456 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
17457 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
17458 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
17459 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
17460 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
17461 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
17462 pointer_map.
17463
17464 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
17465
17466 * hash-set.h: new File.
17467 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
17468 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
17469 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
17470 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
17471 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
17472 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
17473 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
17474 varpool.c: Use hash_set instead of pointer_set.
17475
17476 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
17477
17478 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
17479
17480 2014-08-01 Jiong Wang <jiong.wang@arm.com>
17481
17482 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
17483 for frame access when strict_p is false.
17484
17485 2014-08-01 Renlin Li <renlin.li@arm.com>
17486 2014-08-01 Jiong Wang <jiong.wang@arm.com>
17487
17488 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
17489 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
17490 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
17491 Declaration.
17492 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
17493 predicate.
17494 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
17495 aarch64_mem_pair_offset.
17496
17497 2014-08-01 Jiong Wang <jiong.wang@arm.com>
17498
17499 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
17500 offset.
17501 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
17502 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
17503
17504 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
17505
17506 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
17507
17508 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
17509
17510 PR regression/61510
17511 * cgraphunit.c (analyze_functions): Use get_create rather than get
17512 for decls which are clones of abstract functions.
17513
17514 2014-08-01 Martin Liska <mliska@suse.cz>
17515
17516 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
17517 * ipa-prop.h (count_formal_params): Global function created from static.
17518 * ipa-prop.c (count_formal_params): Likewise.
17519 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
17520 profiles for semantically equivalent functions.
17521 * passes.c (do_per_function): If we load body of a function
17522 during WPA, this condition should behave same.
17523 * varpool.c (ctor_for_folding): More tolerant assert for variable
17524 aliases created during WPA.
17525
17526 2014-08-01 Martin Liska <mliska@suse.cz>
17527
17528 * doc/invoke.texi (Options That Control Optimization): Documentation
17529 for -foptimize-strlen introduced. Optimization levels default options
17530 fixed.
17531
17532 2014-08-01 Jakub Jelinek <jakub@redhat.com>
17533
17534 * opts.c (common_handle_option): Handle -fsanitize=alignment.
17535 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
17536 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
17537 type to bool.
17538 * stor-layout.h (min_align_of_type): New prototype.
17539 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
17540 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
17541 check.
17542 * ubsan.c: Include builtins.h.
17543 (ubsan_expand_bounds_ifn): Change return type to bool,
17544 always return true.
17545 (ubsan_expand_null_ifn): Change return type to bool, change
17546 argument to gimple_stmt_iterator *. Handle both null and alignment
17547 sanitization, take type from ckind argument's type rather than
17548 first argument.
17549 (instrument_member_call): Removed.
17550 (instrument_mem_ref): Remove t argument, add mem and base arguments.
17551 Handle both null and alignment sanitization, don't say whole
17552 struct access is member access. Build 3 argument IFN_UBSAN_NULL
17553 call instead of 2 argument.
17554 (instrument_null): Adjust instrument_mem_ref caller. Don't
17555 instrument calls here.
17556 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
17557 like SANITIZE_NULL.
17558 * stor-layout.c (min_align_of_type): New function.
17559 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
17560 Or it into SANITIZE_UNDEFINED.
17561 * doc/invoke.texi (-fsanitize=alignment): Document.
17562
17563 2014-07-31 Andi Kleen <ak@linux.intel.com>
17564
17565 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17566
17567 2014-07-31 Andi Kleen <ak@linux.intel.com>
17568
17569 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17570 inchash.
17571 (vn_reference_compute_hash): Dito.
17572 (vn_nary_op_compute_hash): Dito.
17573 (vn_phi_compute_hash): Dito.
17574 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17575
17576 2014-07-31 Andi Kleen <ak@linux.intel.com>
17577
17578 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17579 Rename to inchash:add_expr_commutative. Convert to inchash.
17580 (iterative_hash_hashable_expr): Rename to
17581 inchash:add_hashable_expr. Convert to inchash.
17582 (avail_expr_hash): Dito.
17583
17584 2014-07-31 Andi Kleen <ak@linux.intel.com>
17585
17586 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17587 Convert to inchash.
17588
17589 2014-07-31 Andi Kleen <ak@linux.intel.com>
17590
17591 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17592
17593 2014-07-31 Andi Kleen <ak@linux.intel.com>
17594
17595 * Makefile.in (OBJS): Add rtlhash.o
17596 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17597 (loc_checksum): Dito.
17598 (loc_checksum_ordered): Dito.
17599 (hash_loc_operands): Dito.
17600 (hash_locs): Dito.
17601 (hash_loc_list): Dito.
17602 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17603 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17604 * rtlhash.c: New file.
17605 * rtlhash.h: New file.
17606
17607 2014-07-31 Andi Kleen <ak@linux.intel.com>
17608
17609 * inchash.h (inchash): Change inchash class to namespace.
17610 (class hash): ... Rename from inchash.
17611 (add_object): Move from macro to class template.
17612 * lto-streamer-out.c (hash_tree): Change inchash
17613 to inchash::hash.
17614 * tree.c (build_type_attribute_qual_variant): Dito.
17615 (type_hash_list): Dito.
17616 (attribute_hash_list): Dito.
17617 (iterative_hstate_expr): Rename to inchash::add_expr
17618 (build_range_type_1): Change inchash to inchash::hash
17619 and use hash::add_expr.
17620 (build_array_type_1): Dito.
17621 (build_function_type): Dito
17622 (build_method_type_directly): Dito.
17623 (build_offset_type): Dito.
17624 (build_complex_type): Dito.
17625 (make_vector_type): Dito.
17626 * tree.h (iterative_hash_expr): Dito.
17627
17628 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
17629
17630 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17631
17632 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17633
17634 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17635 correct alphabetical position.
17636 (vpaddd_f64): Rewrite using builtins.
17637 (vpaddd_s64): Move to correct alphabetical position.
17638 (vpaddd_u64): New.
17639
17640 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
17641
17642 PR target/61844
17643 * config/sh/sh.c (sh_legitimate_address_p,
17644 sh_legitimize_reload_address): Handle reg+reg address modes when
17645 ALLOW_INDEXED_ADDRESS is false.
17646 * config/sh/predicates.md (general_movsrc_operand,
17647 general_movdst_operand): Likewise.
17648
17649 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17650
17651 * config/aarch64/aarch64-builtins.c
17652 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17653 BYTES_BIG_ENDIAN.
17654
17655 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17656
17657 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17658 the generated mask based on BYTES_BIG_ENDIAN.
17659 (aarch64_simd_check_vect_par_cnst_half): New.
17660 * config/aarch64/aarch64-protos.h
17661 (aarch64_simd_check_vect_par_cnst_half): New.
17662 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17663 the check out to aarch64_simd_check_vect_par_cnst_half.
17664 (vect_par_cnst_lo_half): Likewise.
17665 * config/aarch64/aarch64-simd.md
17666 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17667 (move_hi_quad_<mode>): Always generate a low mask.
17668
17669 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17670
17671 * doc/invoke.texi (AVR Options): Add documentation about
17672 __AVR_DEVICE_NAME__ built-in macro.
17673
17674 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
17675
17676 PR target/61948
17677 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17678 constraints are satisfied.
17679 (<shift>di3_neon): Likewise.
17680
17681 2014-07-31 Richard Biener <rguenther@suse.de>
17682
17683 PR tree-optimization/61964
17684 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17685 by structural equality.
17686
17687 2014-07-31 Yury Gribov <y.gribov@samsung.com>
17688
17689 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17690 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17691 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17692 New enums.
17693 * gcc.c (sanitize_spec_function): Support new option.
17694 (SANITIZER_SPEC): Remove now redundant check.
17695 * opts.c (common_handle_option): Support new option.
17696 (finish_options): Check for incompatibilities.
17697 * toplev.c (process_options): Split userspace-specific checks.
17698
17699 2014-07-31 Richard Biener <rguenther@suse.de>
17700
17701 * lto-streamer.h (struct output_block): Remove global.
17702 (struct data_in): Remove labels, num_named_labels and
17703 num_unnamed_labels.
17704 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17705 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17706
17707 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
17708
17709 PR c++/60517
17710 * common.opt (-Wreturn-local-addr): Moved from c.opt.
17711 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17712 (isolate_path): New argument to avoid inserting a trap.
17713 (find_implicit_erroneous_behaviour): Handle returning the address
17714 of a local variable.
17715 (find_explicit_erroneous_behaviour): Likewise.
17716
17717 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
17718
17719 PR lto/61868
17720 * toplev.c (init_random_seed): Move piece of code never called to
17721 set_random_seed.
17722 (set_random_seed): see above.
17723
17724 2014-07-31 Tom de Vries <tom@codesourcery.com>
17725
17726 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17727
17728 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17729
17730 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17731 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17732
17733 2014-07-31 Richard Biener <rguenther@suse.de>
17734
17735 * data-streamer.h (streamer_write_data_stream): Declare here,
17736 renamed from ...
17737 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
17738 * lto-cgraph.c (lto_output_node): Adjust.
17739 (lto_output_varpool_node): Likewise.
17740 * data-streamer-out.c (streamer_string_index): Likewise.
17741 (streamer_write_data_stream, lto_append_block): Move from ...
17742 * lto-section-out.c (lto_output_data_stream,
17743 lto_append_block): ... here.
17744
17745 2014-07-30 Mike Stump <mikestump@comcast.net>
17746
17747 * configure.ac: Also check for popen.
17748 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17749 * configure: Regenerate.
17750 * config.in: Regenerate.
17751
17752 2014-07-30 Martin Jambor <mjambor@suse.cz>
17753
17754 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17755 parameter to gimple.
17756
17757 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17758
17759 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17760 address as second parameter to __tpf_eh_return routine.
17761
17762 2014-07-30 Jiong Wang <jiong.wang@arm.com>
17763
17764 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17765 Thumb2.
17766
17767 2014-07-30 Tom Tromey <tromey@redhat.com>
17768
17769 PR c/59855
17770 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17771 * doc/extend.texi (Type Attributes): Document designated_init
17772 attribute.
17773
17774 2014-07-30 Roman Gareev <gareevroman@gmail.com>
17775
17776 * graphite-isl-ast-to-gimple.c:
17777 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17778 (gcc_expression_from_isl_expression): Pass type to
17779 gcc_expression_from_isl_ast_expr_id.
17780
17781 2014-07-30 Richard Biener <rguenther@suse.de>
17782
17783 * lto-streamer.h (lto_write_data): New function.
17784 * langhooks.c (lhd_append_data): Do not free block.
17785 * lto-section-out.c (lto_write_data): New function writing
17786 raw data to the current section.
17787 (lto_write_stream): Adjust for langhook semantic change.
17788 (lto_destroy_simple_output_block): Write header directly.
17789 * lto-opts.c (lto_write_options): Write options directly.
17790 * lto-streamer-out.c (produce_asm): Write heaeder directly.
17791 (lto_output_toplevel_asms): Likewise.
17792 (copy_function_or_variable): Copy data directly.
17793 (write_global_references): Output index table directly.
17794 (lto_output_decl_state_refs): Likewise.
17795 (write_symbol): Write data directly.
17796 (produce_symtab): Adjust.
17797 (produce_asm_for_decls): Output header and refs directly.
17798
17799 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17800
17801 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17802 to speculative_targets
17803 (get_class_context): Fix handling of contextes without outer type;
17804 avoid matching non-polymorphic types in LTO.
17805 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17806 parameter to speculative_targetsp; handle speculation.
17807 (dump_possible_polymorphic_call_targets): Update dumping.
17808
17809 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17810
17811 * common.opt (Wodr): Enable by default.
17812
17813 2014-07-29 Olivier Hainque <hainque@adacore.com>
17814
17815 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17816
17817 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
17818
17819 PR bootstrap/61914
17820 * gengtype.c (strtoken): New function.
17821 (create_user_defined_type): Replace strtok with strtoken.
17822
17823 2014-07-29 Nathan Sidwell <nathan@acm.org>
17824
17825 * gcov-io.c (gcov_var): Make hidden.
17826 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17827 (gcov_do_dump): Declare.
17828 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17829
17830 2014-07-29 Martin Jambor <mjambor@suse.cz>
17831
17832 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17833 parameter to gimple.
17834 (sra_modify_assign): Likewise.
17835
17836 2014-07-29 Richard Biener <rguenther@suse.de>
17837
17838 PR middle-end/52478
17839 * expr.c (expand_expr_real_2): Revert last change.
17840
17841 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17842
17843 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17844 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17845 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17846 call.
17847 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17848 (contains_type_p): Forward declare.
17849 (polymorphic_call_target_hasher::hash): Hash speculative info.
17850 (polymorphic_call_target_hasher::equal): Compare speculative info.
17851 (get_class_context): Handle speuclation.
17852 (contains_type_p): Update.
17853 (get_polymorphic_call_info_for_decl): Update.
17854 (walk_ssa_copies): Break out from ...
17855 (get_polymorphic_call_info): ... here; set speculative context
17856 before giving up.
17857 * ipa-prop.c (ipa_write_indirect_edge_info,
17858 ipa_read_indirect_edge_info): Stream speculative context.
17859 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17860 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17861 SPECULATIVE_MAYBE_DERIVED_TYPE).
17862 (possible_polymorphic_call_targets overriders): Update.
17863 (dump_possible_polymorphic_call_targets overriders): Update.
17864 (dump_possible_polymorphic_call_target_p overriders): Update.
17865
17866 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17867
17868 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17869 ipa-devirt path; fix thinko there.
17870
17871 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
17872
17873 * config/i386/i386.c (ix86_return_in_memory): Replace one
17874 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17875
17876 2014-07-28 Marek Polacek <polacek@redhat.com>
17877
17878 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
17879
17880 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
17881
17882 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17883 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17884 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17885 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17886 (USE_LD_AS_NEEDED): Likewise.
17887 (ASM_APP_ON): Likewise.
17888 (ASM_APP_OFF): Likewise.
17889 (TARGET_POSIX_IO): Likewise.
17890 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17891 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17892 (USE_LD_AS_NEEDED): Likewise.
17893 (ASM_APP_ON): Likewise.
17894 (ASM_APP_OFF): Likewise.
17895 (TARGET_POSIX_IO): Likewise.
17896
17897 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
17898
17899 PR middle-end/61734
17900 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17901 operators other than the equality operators.
17902
17903 2014-07-28 Richard Biener <rguenther@suse.de>
17904
17905 PR middle-end/52478
17906 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17907 sure to register SImode ones, not only >= word_mode ones.
17908 * expr.c (expand_expr_real_2): When expanding -ftrapv
17909 binops do not use OPTAB_LIB_WIDEN.
17910
17911 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
17912
17913 PR middle-end/61919
17914 * tree-outof-ssa.c (insert_partition_copy_on_edge)
17915 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17916 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17917 inserting them in the insn stream.
17918
17919 2014-07-28 Marek Polacek <polacek@redhat.com>
17920
17921 PR middle-end/61913
17922 * common.opt (Wodr): Add Var.
17923
17924 2014-07-28 Richard Biener <rguenther@suse.de>
17925
17926 PR tree-optimization/61921
17927 * tree-ssa-structalias.c (create_variable_info_for_1): Check
17928 if there is a varpool node before dereferencing it.
17929
17930 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17931
17932 * graphite-sese-to-poly.c:
17933 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17934 id of the pbb), which contains pointer to the pbb1.
17935
17936 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17937
17938 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17939
17940 * graphite-isl-ast-to-gimple.c:
17941 (graphite_create_new_guard): New function.
17942 (translate_isl_ast_node_if): New function.
17943 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17944
17945 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17946
17947 2014-07-27 Anthony Green <green@moxielogic.com>
17948
17949 * config.gcc: Add moxie-*-moxiebox* configuration.
17950 * config/moxie/moxiebox.h: New file.
17951
17952 2014-07-26 Andrew Pinski <apinski@cavium.com>
17953
17954 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17955 from the read only register.
17956
17957 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17958
17959 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17960 as the allocation class if it isn't likely to be spilled.
17961
17962 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17963
17964 * rtl.h (tls_referenced_p): Declare.
17965 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17966 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17967 (mips_cannot_force_const_mem): Use tls_referenced_p.
17968 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17969 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17970 instead of pa_tls_referenced_p.
17971 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17972 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17973 (pa_legitimate_constant_p): Likewise.
17974 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17975 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17976 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17977 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17978 rs6000_tls_referenced_p.
17979 (rs6000_tls_symbol_ref_1): Delete.
17980
17981 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17982
17983 PR target/44551
17984 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17985 Optimize inverse of a VEC_CONCAT.
17986
17987 2014-07-25 Xinliang David Li <davidxl@google.com>
17988
17989 * params.def: New parameter.
17990 * coverage.c (get_coverage_counts): Check new flag.
17991 (coverage_compute_profile_id): Check new flag.
17992 (coverage_begin_function): Check new flag.
17993 (coverage_end_function): Check new flag.
17994 * value-prof.c (coverage_node_map_initialized_p): New function.
17995 (init_node_map): Populate map with all functions.
17996 * doc/invoke.texi: Document new parameter.
17997
17998 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17999 Richard Biener <rguenther@suse.de>
18000
18001 * lto-streamer-out.c (struct sccs): Turn to ...
18002 (class DFS): ... this one; refactor the DFS walk so it can
18003 be re-done on per-SCC basis.
18004 (DFS::DFS): New constructor.
18005 (DFS::~DFS): New destructor.
18006 (hash_tree): Add new MAP argument holding in-SCC hash values;
18007 remove POINTER_TYPE hashing hack.
18008 (scc_entry_compare): Rename to ...
18009 (DFS::scc_entry_compare): ... this one.
18010 (hash_scc): Rename to ...
18011 (DFS::hash_scc): ... this one; pass output_block instead
18012 of streamer_cache; work harder to get unique and stable SCC
18013 hashes.
18014 (DFS_write_tree): Rename to ...
18015 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
18016 (lto_output_tree): Update.
18017
18018 2014-07-25 Andi Kleen <ak@linux.intel.com>
18019
18020 * lto-streamer-out.c (hash_tree): Convert to inchash.
18021
18022 2014-07-25 Andi Kleen <ak@linux.intel.com>
18023
18024 * tree.c (build_type_attribute_qual_variant): Use inchash.
18025 (type_hash_list): Dito.
18026 (attribute_hash_list): Dito
18027 (iterative_hstate_expr): Dito.
18028 (iterative_hash_expr): Dito.
18029 (build_range_type_1): Dito.
18030 (build_array_type_1): Dito.
18031 (build_function_type): Dito.
18032 (build_method_type_directly): Dito.
18033 (build_offset_type): Dito.
18034 (build_complex_type): Dito.
18035 (make_vector_type): Dito.
18036 * tree.h (iterative_hash_expr): Add compat wrapper.
18037 (iterative_hstate_expr): Add.
18038
18039 2014-07-25 Andi Kleen <ak@linux.intel.com>
18040
18041 * Makefile.in (OBJS): Add inchash.o.
18042 (PLUGIN_HEADERS): Add inchash.h.
18043 * ipa-devirt.c: Include inchash.h.
18044 * lto-streamer-out.c: Dito.
18045 * tree-ssa-dom.c: Dito.
18046 * tree-ssa-pre.c: Dito.
18047 * tree-ssa-sccvn.c: Dito.
18048 * tree-ssa-tail-merge.c: Dito.
18049 * asan.c: Dito.
18050 * tree.c (iterative_hash_hashval_t): Move to ...
18051 (iterative_hash_host_wide_int): Move to ...
18052 * inchash.c: Here. New file.
18053 * tree.h (iterative_hash_hashval_t): Move to ...
18054 (iterative_hash_host_wide_int): Move to ...
18055 * inchash.h: Here. New file.
18056
18057 2014-07-25 Richard Biener <rguenther@suse.de>
18058
18059 PR middle-end/61762
18060 PR middle-end/61894
18061 * fold-const.c (native_encode_int): Add and handle offset
18062 parameter to do partial encodings of expr.
18063 (native_encode_fixed): Likewise.
18064 (native_encode_real): Likewise.
18065 (native_encode_complex): Likewise.
18066 (native_encode_vector): Likewise.
18067 (native_encode_string): Likewise.
18068 (native_encode_expr): Likewise.
18069 * fold-const.c (native_encode_expr): Add offset parameter
18070 defaulting to -1.
18071 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
18072 (fold_ctor_reference): Handle all reads from tcc_constant
18073 ctors.
18074
18075 2014-07-25 Richard Biener <rguenther@suse.de>
18076
18077 * tree-inline.c (estimate_move_cost): Mark speed_p argument
18078 as possibly unused.
18079
18080 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18081
18082 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
18083
18084 2014-07-24 Kyle McMartin <kyle@redhat.com>
18085
18086 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
18087
18088 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18089
18090 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
18091 Add prototype.
18092 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
18093 function.
18094 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
18095 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
18096 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
18097
18098 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18099
18100 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
18101 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
18102 aggregate types. Instead, *all* aggregate types, except for single-
18103 element or homogeneous float/vector aggregates, are quadword-aligned
18104 if required by their type alignment. Issue -Wpsabi note when a type
18105 is now treated differently than before.
18106
18107 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18108
18109 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
18110 does not fit fully into floating-point registers, and there is still
18111 space in the register parameter area, use GPRs to pass those parts
18112 of the argument. Issue -Wpsabi note if any parameter is now treated
18113 differently than before.
18114 (rs6000_arg_partial_bytes): Update.
18115
18116 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
18117
18118 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
18119
18120 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
18121
18122 * rtl.h (target_rtl): Remove lang_dependent_initialized.
18123 * toplev.c (initialize_rtl): Don't use it. Move previously
18124 "language-dependent" calls to...
18125 (backend_init): ...here.
18126 (lang_dependent_init_target): Don't set lang_dependent_initialized.
18127 Assert that RTL initialization hasn't happend yet.
18128
18129 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
18130
18131 PR rtl-optimization/61629
18132 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
18133 they have already been initialized.
18134
18135 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
18136
18137 PR middle-end/61268
18138 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
18139 DECL_INCOMING_RTL and entry_parm.
18140 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
18141 * calls.c (load_register_parameters): Likewise argument values.
18142 (emit_library_call_value_1, store_one_arg): Likewise argument
18143 save areas.
18144 * config/i386/i386.c (assign_386_stack_local): Likewise the local
18145 stack slot.
18146 * explow.c (validize_mem): Modify the argument in-place.
18147
18148 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18149
18150 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
18151 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
18152
18153 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18154
18155 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
18156 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
18157
18158 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18159
18160 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
18161 (aarch64_save_callee_saves): New parameter "skip_wb".
18162 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
18163
18164 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18165
18166 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
18167 "wb_candidate2".
18168 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
18169
18170 2014-07-24 Roman Gareev <gareevroman@gmail.com>
18171
18172 * graphite-isl-ast-to-gimple.c:
18173 (graphite_create_new_loop): Add calling of isl_id_free to properly
18174 decrement reference counts.
18175
18176 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
18177
18178 2014-07-24 Martin Liska <mliska@suse.cz>
18179 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
18180 function used.
18181 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
18182 (rs6000_code_end): Likewise.
18183
18184 2014-07-24 Martin Liska <mliska@suse.cz>
18185
18186 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
18187 symtab_node funtion used.
18188 (rs6000_xcoff_declare_object_name): Likewise.
18189
18190 2014-07-24 Martin Liska <mliska@suse.cz>
18191
18192 * cgraphunit.c (compile): Correct function used.
18193
18194 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
18195
18196 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
18197 as non-indexable.
18198
18199 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
18200
18201 PR lto/61802
18202 * varasm.c (bss_initializer_p): Handle offlined ctors.
18203 (align_variable, get_variable_align): Likewise.
18204 (make_decl_one_only): Likewise.
18205 (default_binds_local_p_1): Likewise.
18206 (decl_binds_to_current_def_p): Likewise.
18207 (get_variable_section): Get constructor if it is offlined.
18208 (assemble_variable_contents): Sanity check that the caller
18209 streamed in the ctor in LTO.
18210
18211 2014-07-24 Roman Gareev <gareevroman@gmail.com>
18212
18213 * graphite-isl-ast-to-gimple.c:
18214 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
18215 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
18216 isl_ast_op_pdiv_r to the different case.
18217
18218 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
18219
18220 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18221
18222 PR middle-end/61876
18223 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
18224 when flag_errno_math is on.
18225
18226 2014-07-24 Martin Liska <mliska@suse.cz>
18227
18228 * cgraph.h (varpool_node):
18229 (availability get_availability (void)):
18230 created from cgraph_variable_initializer_availability
18231 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
18232 created from: cgraph_variable_initializer_availability
18233 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
18234 (void finalize_named_section_flags (void)):
18235 created from varpool_finalize_named_section_flags
18236 (bool assemble_decl (void)): created from varpool_assemble_decl
18237 (void analyze (void)): created from varpool_analyze_node
18238 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
18239 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
18240 (void remove_initializer (void)): created from varpool_remove_initializer
18241 (tree get_constructor (void)): created from varpool_get_constructor
18242 (bool externally_visible_p (void)): created from varpool_externally_visible_p
18243 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
18244 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
18245 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
18246 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
18247 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
18248 (static bool output_variables (void)): created from varpool_output_variables
18249 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
18250 created from varpool_extra_name_alias
18251 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
18252 (static void dump_varpool (FILE *f)): created from dump_varpool
18253 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
18254 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
18255 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
18256 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
18257 (void assemble_aliases (void)): created from assemble_aliases
18258
18259 2014-07-24 Martin Liska <mliska@suse.cz>
18260
18261 * cgraph.h (symtab_node):
18262 (void register_symbol (void)): created from symtab_register_node
18263 (void remove (void)): created from symtab_remove_node
18264 (void dump (FILE *f)): created from dump_symtab_node
18265 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
18266 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
18267 (struct ipa_ref *add_reference (symtab_node *referred_node,
18268 enum ipa_ref_use use_type)): created from add_reference
18269 (struct ipa_ref *add_reference (symtab_node *referred_node,
18270 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
18271 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
18272 gimple stmt)): created from maybe_add_reference
18273 (bool semantically_equivalent_p (symtab_node *target)): created from
18274 symtab_semantically_equivalent_p
18275 (void remove_from_same_comdat_group (void)): created from
18276 remove_from_same_comdat_group
18277 (void add_to_same_comdat_group (symtab_node *old_node)): created from
18278 symtab_add_to_same_comdat_group
18279 (void dissolve_same_comdat_group_list (void)): created from
18280 symtab_dissolve_same_comdat_group_list
18281 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
18282 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
18283 created from symtab_alias_ultimate_target
18284 (inline symtab_node *next_defined_symbol (void)): created from
18285 symtab_next_defined_symbol
18286 (bool resolve_alias (symtab_node *target)): created from
18287 symtab_resolve_alias
18288 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
18289 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
18290 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
18291 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
18292 (void set_section (const char *section)): created from set_section_1
18293 (enum availability get_availability (void)): created from symtab_node_availability
18294 (void make_decl_local (void)): created from symtab_make_decl_local
18295 (bool real_symbol_p (void)): created from symtab_read_node
18296 (can_be_discarded_p (void)): created from symtab_can_be_discarded
18297 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
18298 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
18299 symtab_in_same_comdat_p;
18300 (bool address_taken_from_non_vtable_p (void)): created from
18301 address_taken_from_non_vtable_p
18302 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
18303 (static void dump_table (FILE *)): created from dump_symtab
18304 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
18305 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
18306 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
18307 symtab_used_from_object_file_p
18308 (void dump_base (FILE *)): created from dump_symtab_base
18309 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
18310 (void unregister (void)): created from symtab_unregister_node
18311 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
18312 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
18313 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
18314 symtab_nonoverwritable_alias_1
18315 * cgraph.h (cgraph_node):
18316 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
18317 created from cgraph_remove_node_and_inline_clones
18318 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
18319 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
18320 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
18321 (cgraph_node *function_symbol (enum availability *avail = NULL)):
18322 created from cgraph_function_node
18323 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
18324 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
18325 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
18326 created from cgraph_create_clone
18327 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
18328 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
18329 created from cgraph_create_virtual_clone
18330 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
18331 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
18332 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
18333 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
18334 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
18335 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
18336 created from cgraph_function_version_info
18337 (struct cgraph_function_version_info *insert_new_function_version (void)):
18338 created from insert_new_cgraph_node_version
18339 (struct cgraph_function_version_info *function_version (void)): created from
18340 get_cgraph_node_version
18341 (void analyze (void)): created from analyze_function
18342 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
18343 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
18344 tree real_alias) cgraph_add_thunk
18345 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
18346 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
18347 created from cgraph_function_or_thunk_node
18348 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
18349 created from expand_thunk
18350 (void reset (void)): created from cgraph_reset_node
18351 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
18352 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
18353 (void remove (void)): created from cgraph_remove_node
18354 (void dump (FILE *f)): created from dump_cgraph_node
18355 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
18356 (bool get_body (void)): created from cgraph_get_body
18357 (void release_body (void)): created from cgraph_release_function_body
18358 (void unnest (void)): created from cgraph_unnest_node
18359 (void make_local (void)): created from cgraph_make_node_local
18360 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
18361 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
18362 gcov_type count, int freq)): created from cgraph_create_edge
18363 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
18364 gcov_type count, int freq)): created from cgraph_create_indirect_edge
18365 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
18366 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
18367 created from cgraph_create_edge_including_clones
18368 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
18369 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
18370 (void remove_callers (void)): created from cgraph_node_remove_callers
18371 (void remove_callees (void)): created from cgraph_node_remove_callees
18372 (enum availability get_availability (void)): created from cgraph_function_body_availability
18373 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
18374 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
18375 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
18376 (void call_duplication_hooks (cgraph_node *node2)): created from
18377 cgraph_call_node_duplication_hooks
18378 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
18379 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
18380 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
18381 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
18382 (void call_function_insertion_hooks (void)):
18383 created from cgraph_call_function_insertion_hooks
18384 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
18385 (bool local_p (void)): created from cgraph_local_node
18386 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
18387 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
18388 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
18389 (inline bool only_called_directly_or_aliased_p (void)):
18390 created from cgraph_only_called_directly_or_aliased_p
18391 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
18392 created from cgraph_will_be_removed_from_program_if_no_direct_calls
18393 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
18394 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
18395 (bool can_remove_if_no_direct_calls_p (void)):
18396 created from cgraph_can_remove_if_no_direct_calls_p
18397 (inline bool has_gimple_body_p (void)):
18398 created from cgraph_function_with_gimple_body_p
18399 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
18400 (static void dump_cgraph (FILE *f)): created from dump_cgraph
18401 (static inline void debug_cgraph (void)): created from debug_cgraph
18402 (static void record_function_versions (tree decl1, tree decl2)):
18403 created from record_function_versions
18404 (static void delete_function_version (tree decl)):
18405 created from delete_function_version
18406 (static void add_new_function (tree fndecl, bool lowered)):
18407 created from cgraph_add_new_function
18408 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
18409 (static cgraph_node * create (tree decl)): created from cgraph_create_node
18410 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
18411 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
18412 (static cgraph_node *get_for_asmname (tree asmname)):
18413 created from cgraph_node_for_asm
18414 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
18415 created from cgraph_same_body_alias
18416 (static bool used_from_object_file_p_worker (cgraph_node *node,
18417 void *): new function
18418 (static bool non_local_p (cgraph_node *node, void *)):
18419 created from cgraph_non_local_node_p_1
18420 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
18421 created from verify_cgraph
18422 (static bool make_local (cgraph_node *node, void *)):
18423 created from cgraph_make_node_local
18424 (static cgraph_node *create_alias (tree alias, tree target)):
18425 created from cgraph_create_function_alias
18426 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
18427 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
18428 created from cgraph_create_edge_1
18429 * cgraph.h (varpool_node):
18430 (void remove (void)): created from varpool_remove_node
18431 (void dump (FILE *f)): created from dump_varpool_node
18432
18433 2014-07-24 Richard Biener <rguenther@suse.de>
18434
18435 PR ipa/61823
18436 * tree-ssa-structalias.c (create_variable_info_for_1):
18437 Use varpool_get_constructor.
18438 (create_variable_info_for): Likewise.
18439
18440 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18441
18442 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
18443 subtract outgoing area size when restoring stack_pointer_rtx.
18444
18445 2014-07-24 Nick Clifton <nickc@redhat.com>
18446
18447 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
18448 that operations are taking place in parallel.
18449 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
18450
18451 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
18452
18453 * omp-low.c (extract_omp_for_data): Add missing break statement.
18454
18455 2014-07-24 Richard Biener <rguenther@suse.de>
18456
18457 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
18458 * tree-inline.c (estimate_move_cost): Add speed_p parameter
18459 and adjust MOVE_RATIO query accordingly.
18460 (estimate_num_insns): Adjust callers.
18461 * ipa-prop.c (ipa_populate_param_decls): Likewise.
18462 * ipa-cp.c (gather_context_independent_values,
18463 estimate_local_effects): Likewise.
18464 * ipa-split.c (consider_split): Likewise.
18465
18466 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
18467
18468 * config/i386/driver-i386.c: Remove names of unused arguments and
18469 unnecessary unused attributes.
18470 * config/i386/host-mingw32.c: Likewise.
18471 * config/i386/i386.c: Likewise.
18472 * config/i386/winnt-stubs.c: Likewise.
18473 * config/i386/winnt.c: Likewise.
18474
18475 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18476
18477 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
18478 (aarch64_gen_loadwb_pair): New helper function.
18479 (aarch64_expand_epilogue): Simplify code using new helper functions.
18480 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
18481
18482 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18483
18484 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
18485 (aarch64_gen_storewb_pair): New helper function.
18486 (aarch64_expand_prologue): Simplify code using new helper functions.
18487 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
18488
18489 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18490
18491 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
18492 Rename to aarch64_save_callee_saves, remove restore code.
18493 (aarch64_restore_callee_saves): New function.
18494
18495 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18496
18497 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
18498 (aarch64_save_callee_saves): New function to handle reg save
18499 for both core and vectore regs.
18500
18501 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18502
18503 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
18504 (aarch64_gen_store_pair): New helper function.
18505 (aarch64_save_or_restore_callee_save_registers)
18506 (aarch64_save_or_restore_fprs): Use new helper functions.
18507
18508 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18509
18510 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
18511 (aarch64_save_or_restore_callee_save_registers)
18512 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
18513
18514 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18515
18516 * config/aarch64/aarch64.c
18517 (aarch64_save_or_restore_callee_save_registers)
18518 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
18519
18520 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18521
18522 * config/aarch64/aarch64.c
18523 (aarch64_save_or_restore_callee_save_registers)
18524 (aarch64_save_or_restore_fprs): Remove 'increment'.
18525
18526 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18527
18528 * config/aarch64/aarch64.c
18529 (aarch64_save_or_restore_callee_save_registers)
18530 (aarch64_save_or_restore_fprs): Use register offset in
18531 cfun->machine->frame.reg_offset.
18532
18533 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18534
18535 * config/aarch64/aarch64.c
18536 (aarch64_save_or_restore_callee_save_registers)
18537 (aarch64_save_or_restore_fprs): Remove base_rtx.
18538
18539 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18540
18541 * config/aarch64/aarch64.c
18542 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
18543 to 'start_offset'. Remove local variable 'start_offset'.
18544
18545 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18546
18547 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
18548 type to HOST_WIDE_INT.
18549
18550 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18551
18552 * config/aarch64/aarch64.c (aarch64_expand_prologue)
18553 (aarch64_save_or_restore_fprs)
18554 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
18555
18556 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
18557
18558 * config/arm/t-rtems-eabi: Add
18559 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
18560 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
18561 mbig-endian/mthumb/march=armv7-r, and
18562 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18563 multilibs.
18564
18565 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
18566 Chris Johns <chrisj@rtems.org>
18567 Joel Sherrill <joel.sherrill@oarcorp.com>
18568
18569 * config.gcc: Add nios2-*-rtems*.
18570 * config/nios2/rtems.h: New file.
18571 * gcc/config/nios2/t-rtems: New file.
18572
18573 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18574
18575 PR target/61396
18576 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18577 constant numbers, not general constants.
18578 (rs6000_expand_vector_init): Ditto.
18579
18580 2014-07-23 Nathan Sidwell <nathan@acm.org>
18581
18582 * gcov-tool.c (gcov_list): Declare here.
18583 (set_gcov_list): Remove.
18584 (gcov_output_files): Set gcov_list directly.
18585
18586 2014-07-23 Host Schirmeier <horst@schirmeier.com>
18587
18588 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18589
18590 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18591
18592 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18593 callee-saved registers are available for padding purpose
18594 and r3 is not mandatory, then prefer use those callee-saved
18595 instead of r3.
18596
18597 2014-07-23 Richard Biener <rguenther@suse.de>
18598
18599 * params.def (PARAM_MAX_COMBINE_INSNS): New.
18600 * combine.c: Include statistics.h and params.h.
18601 (combine_instructions): Guard three and four insn combines
18602 with max-combine-insns value. Record statistics for combines
18603 performed.
18604 * doc/invoke.texi (max-combine-insns): Document new param.
18605
18606 2014-07-23 Roman Gareev <gareevroman@gmail.com>
18607
18608 * graphite-isl-ast-to-gimple.c:
18609 (translate_isl_ast_node_block): New function.
18610 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18611
18612 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18613 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18614
18615 2014-07-23 Roman Gareev <gareevroman@gmail.com>
18616
18617 * graphite-isl-ast-to-gimple.c:
18618 (get_max_schedule_dimensions): New function.
18619 (extend_schedule): Likewise.
18620 (generate_isl_schedule): Add calling of extend_schedule and
18621 get_max_schedule_dimensions.
18622
18623 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18624
18625 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18626 (case UNSPEC): Handle UNSPEC_RBIT.
18627
18628 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18629
18630 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18631 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18632
18633 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18634
18635 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18636
18637 2014-07-22 Roman Gareev <gareevroman@gmail.com>
18638
18639 * graphite-isl-ast-to-gimple.c:
18640 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18641 (ivs_params_clear):
18642 (build_iv_mapping): New function.
18643 (translate_isl_ast_node_user): Likewise.
18644 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18645
18646 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18647 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18648 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18649
18650 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18651
18652 PR target/55701
18653 * config/arm/arm.md (setmem): New pattern.
18654 * config/arm/arm-protos.h (struct tune_params): New fields.
18655 (arm_gen_setmem): New prototype.
18656 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18657 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18658 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18659 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18660 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18661 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18662 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18663 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18664 (arm_const_inline_cost): New function.
18665 (arm_block_set_max_insns): New function.
18666 (arm_block_set_non_vect_profit_p): New function.
18667 (arm_block_set_vect_profit_p): New function.
18668 (arm_block_set_unaligned_vect): New function.
18669 (arm_block_set_aligned_vect): New function.
18670 (arm_block_set_unaligned_non_vect): New function.
18671 (arm_block_set_aligned_non_vect): New function.
18672 (arm_block_set_vect, arm_gen_setmem): New functions.
18673
18674 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18675
18676 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18677
18678 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
18679
18680 PR target/61855
18681 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18682 out of #ifdef __OPTIMIZE__.
18683
18684 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18685
18686 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18687 different trapping status if -fnon-call-exceptions is enabled.
18688
18689 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18690
18691 * expr.c (store_field): Handle VOIDmode for calls that return values
18692 in multiple locations.
18693
18694 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18695
18696 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
18697 (altivec_vsldoi_<mode>): Likewise.
18698
18699 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18700
18701 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18702 to the number of characters in the line.
18703
18704 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18705
18706 * graphite-isl-ast-to-gimple.c: Add using of
18707 build_nonstandard_integer_type instead of int128_integer_type_node.
18708
18709 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
18710
18711 * toplev.c (output_stack_usage): Adjust the location of the warning.
18712
18713 2014-07-19 Daniel Cederman <cederman@gaisler.com>
18714
18715 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18716 (*membar_storeload): Disable for LEON3.
18717
18718 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
18719
18720 PR rtl-optimization/61461
18721 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18722
18723 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
18724
18725 PR target/61794
18726 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18727 Fix instruction constraint.
18728 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18729
18730 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
18731
18732 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18733
18734 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
18735
18736 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18737 GNU coding standards.
18738 (nds32_register_move_cost): Likewise.
18739 (nds32_memory_move_cost): Likewise.
18740 (nds32_address_cost): Likewise.
18741
18742 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18743
18744 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18745
18746 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
18747
18748 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18749 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18750 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18751 (HAVE_sync_compare_and_swapqi): Define.
18752 (HAVE_sync_compare_and_swaphi): Likewise.
18753 (HAVE_sync_compare_and_swapsi): Likewise.
18754
18755 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
18756
18757 * config/mips/p5600.md: Add missing cpu tests.
18758
18759 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18760
18761 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18762 (vmla_f64): Likewise.
18763 (vfms_f64): Likewise.
18764 (vmls_f64): Likewise.
18765
18766 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18767
18768 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18769 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18770
18771 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18772
18773 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18774 (vmlal_high_lane_s32): Likewise.
18775 (vmlal_high_lane_u16): Likewise.
18776 (vmlal_high_lane_u32): Likewise.
18777 (vmlsl_high_lane_s16): Likewise.
18778 (vmlsl_high_lane_s32): Likewise.
18779 (vmlsl_high_lane_u16): Likewise.
18780 (vmlsl_high_lane_u32): Likewise.
18781
18782 2014-07-17 Terry Guo <terry.guo@arm.com>
18783
18784 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18785 (alus_reg): Renamed to alus_sreg.
18786 * config/arm/arm-fixed.md: Change type of non-dsp instructions
18787 from alu_reg to alu_sreg. Change type of dsp instructions from
18788 alu_reg to alu_dsp_reg.
18789 * config/arm/thumb1.md: Likewise.
18790 * config/arm/thumb2.md: Likewise.
18791 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18792 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18793 with alu_sreg and alus_sreg.
18794 * config/arm/arm1026ejs.md (alu_op): Likewise.
18795 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18796 * config/arm/arm926ejs.md (9_alu_op): Likewise.
18797 * config/arm/fa526.md (526_alu_op): Likewise.
18798 * config/arm/fa606te.md (606te_alu_op): Likewise.
18799 * config/arm/fa626te.md (626te_alu_op): Likewise.
18800 * config/arm/fa726te.md (726te_alu_op): Likewise.
18801 * config/arm/fmp626.md (mp626_alu_op): Likewise.
18802 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18803 alu_sreg, alu_dsp_reg and alus_sreg.
18804 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18805 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18806 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18807 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18808 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18809 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18810 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18811 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18812 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18813 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18814 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18815 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18816 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18817 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18818 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18819 alus_reg to alus_sreg.
18820
18821 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
18822
18823 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18824 infinity format.
18825
18826 2014-07-17 Richard Biener <rguenther@suse.de>
18827
18828 PR rtl-optimization/61801
18829 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18830 don't set reg_pending_barrier if it appears in a debug-insn.
18831
18832 2014-07-16 DJ Delorie <dj@redhat.com>
18833
18834 * config/rx/rx.c (rx_option_override): Fix alignment values.
18835 (rx_align_for_label): Likewise.
18836
18837 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
18838
18839 PR target/61737.
18840 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18841 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18842 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18843 functions.
18844 (cris_print_index, cris_print_operand, cris_constant_index_p)
18845 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18846 (cris_address_cost): Ditto last CONSTANT_P.
18847 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
18848 callers changed. Yield cris_offsettable_symbol for non-PIC
18849 constant symbolic expressions including labels. Yield cris_unspec
18850 for all unspecs.
18851 (cris_expand_pic_call_address): New parameter MARKERP. Set its
18852 target to pic_offset_table_rtx for calls that will likely go
18853 through PLT, const0_rtx when they can't. All callers changed.
18854 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18855 symbolic expressions to be PICified. Remove second, redundant,
18856 assert on can_create_pseudo_p returning non-zero. Use
18857 replace_equiv_address_nv, not replace_equiv_address, for final
18858 operand update.
18859 * config/cris/cris.md ("movsi"): Move variable t to pattern
18860 toplevel. Adjust assert for new cris_symbol_type member. Use
18861 CONSTANT_P instead of CONSTANT_ADDRESS_P.
18862 ("*movsi_internal") <case 9>: Make check for valid unspec operands
18863 for lapc stricter.
18864 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18865 ("call", "call_value"): Use second incoming operand as a marker
18866 for pic-offset-table-register being used.
18867 ("*expanded_call_non_v32", "*expanded_call_v32")
18868 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18869 second incoming operand to CALL, match cris_call_type_marker.
18870 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
18871 ("*expanded_call_side"): Ditto. Fix typo in comment.
18872 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18873 CONSTANT_P.
18874 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18875 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18876 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
18877 users changed. Add members cris_offsettable_symbol and cris_unspec.
18878 (cris_symbol_type): Rename from cris_pic_symbol_type.
18879 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18880 just CONSTANT_P.
18881 * config/cris/cris-protos.h (cris_symbol_type_of,
18882 cris_expand_pic_call_address): Adjust prototypes.
18883 (cris_legitimate_constant_p): New prototype.
18884
18885 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18886 an existing tmake_file. Don't add t-slibgcc and t-linux.
18887
18888 2014-07-17 Jason Merrill <jason@redhat.com>
18889
18890 PR c++/61623
18891 * symtab.c (symtab_remove_from_same_comdat_group): Also
18892 set_comdat_group to NULL_TREE.
18893 (verify_symtab): Fix diagnostic.
18894
18895 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
18896
18897 PR target/61662
18898 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18899
18900 2014-07-16 Dodji Seketeli <dodji@redhat.com>
18901
18902 Support location tracking for built-in macro tokens
18903 * input.h (is_location_from_builtin_token): New function declaration.
18904 * input.c (is_location_from_builtin_token): New function definition.
18905 * toplev.c (general_init): Tell libcpp what the pre-defined
18906 spelling location for built-in tokens is.
18907
18908 2014-07-16 Jakub Jelinek <jakub@redhat.com>
18909
18910 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18911 on the FUNCTION_DECL.
18912
18913 2014-07-16 Richard Biener <rguenther@suse.de>
18914
18915 PR other/61782
18916 * doc/extend.texi (always_inline): Clarify.
18917
18918 2014-07-15 Eric Christopher <echristo@gmail.com>
18919
18920 * doc/invoke.texi (Link Options): Document -z option.
18921
18922 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
18923
18924 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18925 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18926
18927 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
18928
18929 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18930
18931 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
18932
18933 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18934 varpool_assemble_decl.
18935 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18936 true.
18937
18938 2014-07-15 Michael Matz <matz@suse.de>
18939
18940 PR rtl-optimization/61772
18941 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18942
18943 2014-07-15 Richard Biener <rguenther@suse.de>
18944
18945 * opts.c (default_options_table): Disable bit-ccp at -Og.
18946
18947 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18948
18949 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18950
18951 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18952
18953 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18954 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18955 call langhook for unknown declaration.
18956 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18957 * tree.h (DECL_ARGUMENTS): Update.
18958 * print-tree.c (print_node): Update.
18959 * tree-core.h (tree_decl_non_common): Remove arguments.
18960 (tree_function_decl): Add arguments.
18961
18962 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18963
18964 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18965
18966 2014-07-14 Richard Biener <rguenther@suse.de>
18967
18968 PR tree-optimization/61779
18969 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18970 simplifying a condition.
18971
18972 2014-07-14 Richard Biener <rguenther@suse.de>
18973
18974 * builtins.c (c_strlen): Make only_value == 2 really only
18975 affect warning generation.
18976
18977 2014-07-14 Richard Biener <rguenther@suse.de>
18978
18979 PR tree-optimization/61757
18980 PR tree-optimization/61783
18981 PR tree-optimization/61787
18982 * tree-ssa-dom.c (record_equality): Revert canonicalization
18983 change and add comment.
18984 (propagate_rhs_into_lhs): Revert previous fix, removing
18985 loop depth restriction again.
18986
18987 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18988
18989 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18990 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18991 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18992 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18993 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18994 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18995 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18996
18997 2014-07-14 Richard Biener <rguenther@suse.de>
18998
18999 * cgraph.h (decl_in_symtab_p): Make inline.
19000
19001 2014-07-14 Jakub Jelinek <jakub@redhat.com>
19002
19003 PR middle-end/61294
19004 * doc/invoke.texi (-Wmemset-transposed-args): Document.
19005
19006 PR target/61656
19007 * config/i386/i386.c (classify_argument): Don't merge classes above
19008 number of words.
19009
19010 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
19011
19012 * cgraph.h (symtab_node): Add nonzero_address.
19013 (decl_in_symtab_p): Break out from ...
19014 (symtab_get_node): ... here.
19015 * fold-const.c: Include cgraph.h
19016 (tree_single_nonzero_warnv_p): Use symtab to determine
19017 if symbol is non-zero.
19018 * symtab.c (symtab_node::nonzero_address): New method.
19019
19020 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
19021
19022 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
19023 forgotten in previous commit.
19024
19025 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
19026
19027 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
19028 on builtin types.
19029 * ipa-devirt.c: Include stor-layout.h and intl.h
19030 (odr_subtypes_equivalent_p): New function.
19031 (warn_odr): New function.
19032 (warn_type_mismatch): New function.
19033 (odr_types_equivalent_p): New function.
19034 (add_type_duplicate): Use it.
19035 * common.opt (Wodr): New flag.
19036 * doc/invoke.texi (Wodr): Document new warning.
19037
19038 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
19039
19040 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
19041 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
19042 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
19043 (varpool_get_constructor): Push CTORS_IN timevar.
19044 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
19045
19046 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
19047
19048 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
19049 Remove VOID_FTYPE_PUSHORT.
19050 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
19051 Change code to USHORT_FTYPE_VOID.
19052 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
19053 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
19054 (ix86_atomic_assign_expand_fenv): Update for
19055 __builtin_ia32_fnstsw changes.
19056 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
19057 (fnstsw): Change operand 0 to nonimmediate operand.
19058
19059 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
19060
19061 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
19062 (varpool_get_constructor): New function.
19063 (varpool_ctor_useable_for_folding_p): Break out from ...
19064 (ctor_for_folding): ... here; use varpool_get_constructor.
19065 (varpool_assemble_decl): Likewise.
19066 * lto-streamer.h (struct output_block): Turn cgraph_node
19067 to symbol filed.
19068 (lto_input_variable_constructor): Declare.
19069 * ipa-visibility.c (function_and_variable_visibility): Use
19070 varpool_get_constructor.
19071 * cgraph.h (varpool_get_constructor): Declare.
19072 (varpool_ctor_useable_for_folding_p): New function.
19073 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
19074 parameter; return error_mark_node for non-trivial constructors.
19075 (lto_write_tree_1, DFS_write_tree): Update use of
19076 get_symbol_initial_value.
19077 (output_function): Update initialization of symbol.
19078 (output_constructor): New function.
19079 (copy_function): Rename to ..
19080 (copy_function_or_variable): ... this one; handle vars too.
19081 (lto_output): Output variable sections.
19082 * lto-streamer-in.c (input_constructor): New function.
19083 (lto_read_body): Rename from ...
19084 (lto_read_body_or_constructor): ... this one; handle vars too.
19085 (lto_input_variable_constructor): New function.
19086 * ipa-prop.c (ipa_prop_write_jump_functions,
19087 ipa_prop_write_all_agg_replacement): Update.
19088 * lto-cgraph.c (compute_ltrans_boundary): Use it.
19089 (output_cgraph_opt_summary): Set symbol to NULL.
19090
19091 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
19092
19093 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
19094 non-polymorphic types.
19095 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
19096 * ipa-devirt.c (types_same_for_odr): Do not explode when one
19097 of types is not polymorphic.
19098
19099 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
19100
19101 * lra-constraints.c (remove_inheritance_pseudos): Process
19102 destination pseudo too.
19103
19104 2014-07-11 Rong Xu <xur@google.com>
19105
19106 * gcov-tool.c (gcov_output_files): Fix build error introduced in
19107 commit r212448.
19108
19109 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19110
19111 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
19112 * config/avr/avr-devices.c (AVR_MCU): Same.
19113 (avr_mcu_types): add text start value to end of device list.
19114 * config/avr/avr-mcus.def: Add text section start for all devices.
19115 (ata5782): Add new avr5 device.
19116 (ata5831): Same.
19117 * config/avr/avr-tables.opt: Regenerate.
19118 * config/avr/avr.h: Add declaration for text section start handler.
19119 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
19120 SPEC functions.
19121 (LINK_SPEC): Include text section start handler to linker spec.
19122 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
19123 pass -Ttext option to linker if the text section start for the device
19124 is not zero.
19125 * config/avr/t-multilib: Regenerate.
19126 * doc/avr-mmcu.texi: Regenerate.
19127
19128 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
19129
19130 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
19131 * config/rs6000/aix52.h (LINK_SPEC): Same.
19132 * config/rs6000/aix53.h (LINK_SPEC): Same.
19133 * config/rs6000/aix61.h (LINK_SPEC): Same.
19134 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
19135
19136 2014-07-11 Roman Gareev <gareevroman@gmail.com>
19137
19138 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
19139 (graphite_verify): New function.
19140 (ivs_params_clear): New function.
19141 (gcc_expression_from_isl_ast_expr_id): New function.
19142 (gcc_expression_from_isl_expr_int): New function.
19143 (binary_op_to_tree): New function.
19144 (ternary_op_to_tree): New function.
19145 (unary_op_to_tree): New function.
19146 (nary_op_to_tree): New function.
19147 (gcc_expression_from_isl_expr_op): New function.
19148 (gcc_expression_from_isl_expression): New function.
19149 (graphite_create_new_loop): New function.
19150 (translate_isl_ast_for_loop): New function.
19151 (get_upper_bound): New function.
19152 (graphite_create_new_loop_guard): New function.
19153 (translate_isl_ast_node_for): New function.
19154 (translate_isl_ast): New function.
19155 (add_parameters_to_ivs_params): New function.
19156 (scop_to_isl_ast): New parameter ip.
19157 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
19158
19159 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
19160
19161 * config/xtensa/predicates.md (call expander): Update for
19162 DECL_SECTION_NAME being string.
19163
19164 2014-07-11 Richard Biener <rguenther@suse.de>
19165
19166 PR middle-end/61473
19167 * builtins.c (fold_builtin_memory_op): Inline memory moves that
19168 can be implemented with a single load followed by a single store.
19169 (c_strlen): Only warn when only_value is not 2.
19170
19171 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
19172
19173 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
19174
19175 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
19176
19177 PR target/61561
19178 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
19179 (*movhi_bytes): Likewise.
19180 (*arm_movqi_insn): Likewise.
19181
19182 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
19183
19184 PR target/56858
19185 * config/alpha/alpha.c: Include tree-pass.h, context.h
19186 and pass_manager.h.
19187 (pass_data_handle_trap_shadows): New pass.
19188 (pass_handle_trap_shadows::gate): New pass gate function.
19189 (make_pass_handle_trap_shadows): New function.
19190 (rest_of_handle_trap_shadows): Ditto.
19191
19192 (alpha_align_insns_1): Rename from alpha_align_insns.
19193 (pass_data_align_insns): New pass.
19194 (pass_align_insns::gate): New pass gate function.
19195 (make_pass_aling_insns): New function.
19196 (rest_of_align_insns): Ditto.
19197 (alpha_align_insns): Ditto.
19198
19199 (alpha_option_override): Declare handle_trap_shadows info
19200 and align_insns_info. Register handle_trap_shadows and align_insns
19201 passes here.
19202 (alpha_reorg): Do not call alpha_trap_shadows and
19203 alpha_align_insn from here.
19204
19205 (alpha_pad_function_end): Do not skip BARRIERs.
19206
19207 2014-07-10 Rong Xu <xur@google.com>
19208
19209 Add gcov-tool: an offline gcda profile processing tool support.
19210 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
19211 (gcov_is_error): Ditto.
19212 (gcov_read_string): Ditto.
19213 (gcov_read_sync): Ditto.
19214 * gcov-io.h: Move counter defines to gcov-counter.def.
19215 * gcov-dump.c (tag_counters): Use gcov-counter.def.
19216 * coverage.c: Ditto.
19217 * gcov-tool.c: Offline gcda profile processing tool.
19218 (unlink_gcda_file): Remove one gcda file.
19219 (unlink_profile_dir): Remove gcda files from the profile path.
19220 (gcov_output_files): Output gcda files to an output dir.
19221 (profile_merge): Merge two profiles in directory.
19222 (print_merge_usage_message): Print merge usage.
19223 (merge_usage): Print merge usage and exit.
19224 (do_merge): Driver for profile merge sub-command.
19225 (profile_rewrite): Rewrite profile.
19226 (print_rewrite_usage_message): Print rewrite usage.
19227 (rewrite_usage): Print rewrite usage and exit.
19228 (do_rewrite): Driver for profile rewrite sub-command.
19229 (print_usage): Print gcov-info usage and exit.
19230 (print_version): Print gcov-info version.
19231 (process_args): Process arguments.
19232 (main): Main routine for gcov-tool.
19233 * Makefile.in: Build and install gcov-tool.
19234 * gcov-counter.def: New file split from gcov-io.h.
19235 * doc/gcc.texi: Include gcov-tool.texi.
19236 * doc/gcov-tool.texi: Document for gcov-tool.
19237
19238 2014-07-10 Richard Biener <rguenther@suse.de>
19239
19240 PR tree-optimization/61757
19241 * tree-ssa-dom.c (loop_depth_of_name): Restore.
19242 (propagate_rhs_into_lhs): Revert part of last change.
19243
19244 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
19245
19246 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
19247 FUNCTION_DECLs.
19248
19249 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
19250
19251 PR middle-end/53590
19252 * function.c (allocate_struct_function): Revert r188667 change.
19253
19254 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
19255
19256 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
19257
19258 * doc/install.texi: Remove links to defunct package providers for
19259 Solaris.
19260
19261 2014-07-09 Tom de Vries <tom@codesourcery.com>
19262
19263 * final.c (get_call_fndecl): Declare.
19264 (self_recursive_call_p): New function.
19265 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
19266
19267 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19268
19269 * ipa-devirt.c (record_node): Walk through aliases.
19270
19271 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19272
19273 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
19274
19275 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19276
19277 Revert:
19278 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19279
19280 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19281
19282 * ipa-visibility.c (function_and_variable_visibility): Remove
19283 temporary hack disabling local aliases on AIX.
19284
19285 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19286
19287 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
19288 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
19289
19290 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19291
19292 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
19293 * rs6000/rs6000.c: Inline output of .set instruction.
19294 (declare_alias_data): New struct.
19295 (rs6000_declare_alias): New function.
19296 (rs6000_xcoff_declare_function_name): Use it.
19297 (rs6000_xcoff_declare_object_name): New function.
19298 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
19299 (ASM_OUTPUT_DEF): Turn to empty definition.
19300
19301 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
19302
19303 PR bootstrap/61679
19304 * hash-table.h: use hash_table::value_type instead of
19305 Descriptor::value_type in the return types of several methods.
19306
19307 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
19308
19309 * tree-pass.h (pass_data): Remove has_execute member.
19310 * passes.c (execute_one_pass): Don't check pass->has_execute.
19311 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19312 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19313 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19314 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19315 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19316 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19317 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19318 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19319 gimple-low.c, gimple-ssa-isolate-paths.c,
19320 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19321 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
19322 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
19323 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
19324 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
19325 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19326 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
19327 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
19328 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
19329 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
19330 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
19331 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19332 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19333 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19334 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19335 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19336 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19337 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19338 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19339 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19340 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19341 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19342 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
19343 web.c: Remove initializer for pass_data::has_execute.
19344
19345 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
19346
19347 * graphite-htab.h: Use hash_map instead of hash_table.
19348 * graphite-clast-to-gimple.c: Adjust.
19349 * passes.c: Use hash_map instead of hash_table.
19350 * sese.c: Likewise.
19351 * sese.h: Remove now unused code.
19352
19353 2014-07-08 Sriraman Tallam <tmsriram@google.com>
19354
19355 PR target/61599
19356 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
19357 than zero.
19358
19359 2014-07-08 Jakub Jelinek <jakub@redhat.com>
19360
19361 PR rtl-optimization/61673
19362 * combine.c (simplify_comparison): Test just mode's sign bit
19363 in tmode rather than the sign bit and any bits above it.
19364
19365 2014-07-08 Roman Gareev <gareevroman@gmail.com>
19366
19367 * graphite-isl-ast-to-gimple.c (generate_isl_context):
19368 Add __isl_give to the declaration.
19369 (generate_isl_schedule): Likewise.
19370 (scop_to_isl_ast): Likewise.
19371
19372 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19373
19374 * config/arm/arm.c (cortexa5_extra_costs): New table.
19375 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
19376
19377 2014-07-08 Jakub Jelinek <jakub@redhat.com>
19378
19379 PR tree-optimization/61725
19380 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
19381 range, use range_includes_zerop_p instead of integer_zerop on
19382 vr0->min, only use log2 of max if min is not negative.
19383
19384 2014-07-08 Richard Biener <rguenther@suse.de>
19385
19386 * tree-ssa-dom.h (loop_depth_of_name): Remove.
19387 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
19388 restriction on loop depth difference.
19389 (record_equality): Likewise.
19390 (propagate_rhs_into_lhs): Likewise. Simplify condition.
19391 (loop_depth_of_name): Remove.
19392 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
19393 restriction on loop depth difference.
19394 (init_copy_prop): Likewise.
19395
19396 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19397
19398 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
19399 parameter.
19400 (walk_aliased_vdefs): Likewise.
19401 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
19402 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
19403 (detect_type_change_from_memory_writes): Check if entry was reached.
19404
19405 2014-07-08 Richard Biener <rguenther@suse.de>
19406
19407 PR tree-optimization/61681
19408 * tree-ssa-structalias.c (find_what_var_points_to): Expand
19409 NONLOCAL inside ESCAPED.
19410
19411 2014-07-08 Richard Biener <rguenther@suse.de>
19412
19413 PR tree-optimization/61680
19414 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19415 Handle properly all read-write dependences with group accesses.
19416
19417 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
19418
19419 PR tree-optimization/61576
19420 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
19421 block containing reduction statement is predecessor of phi basi block.
19422
19423 2014-07-08 Marek Polacek <polacek@redhat.com>
19424
19425 PR c/60226
19426 * fold-const.c (round_up_loc): Change the parameter type.
19427 Remove assert.
19428 * fold-const.h (round_up_loc): Adjust declaration.
19429 * stor-layout.c (finalize_record_size): Check for too large types.
19430
19431 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
19432
19433 * symtab.c: Include calls.h.
19434 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
19435
19436 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
19437
19438 * config/rs6000/rs6000.c (output_vec_const_move): Handle
19439 little-endian code generation.
19440 * config/rs6000/spe.md (spe_evmergehi): Rename to...
19441 (vec_perm00_v2si): ... this. Handle little-endian code generation.
19442 (spe_evmergehilo): Rename to...
19443 (vec_perm01_v2si): ... this. Handle little-endian code generation.
19444 (spe_evmergelo): Rename to...
19445 (vec_perm11_v2si): ... this. Handle little-endian code generation.
19446 (spe_evmergelohi): Rename to...
19447 (vec_perm10_v2si): ... this. Handle little-endian code generation.
19448 (spe_evmergehi, spe_evmergehilo): New expanders.
19449 (spe_evmergelo, spe_evmergelohi): Likewise.
19450 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
19451 (*frob_tf_ti): Likewise.
19452 (*frob_<mode>_di_2): Likewise.
19453 (*frob_tf_di_8_2): Likewise.
19454 (*frob_di_<mode>): Likewise.
19455 (*frob_ti_tf): Likewise.
19456 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
19457 (*frob_ti_<mode>_8_2): Likewise.
19458 (*frob_ti_tf_2): Likewise.
19459 (mov_si<mode>_e500_subreg0): Rename to...
19460 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
19461 endianness only.
19462 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
19463 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
19464 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
19465 the big endianness only.
19466 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
19467 (*mov_si<mode>_e500_subreg0_2): Rename to...
19468 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
19469 big big endianness only.
19470 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
19471 (*mov_si<mode>_e500_subreg4): Rename to...
19472 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
19473 endianness only.
19474 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
19475 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
19476 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
19477 the big endianness only.
19478 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
19479 pattern.
19480 (*mov_si<mode>_e500_subreg4_2): Rename to...
19481 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
19482 endianness only.
19483 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
19484 (*mov_sitf_e500_subreg8): Rename to...
19485 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
19486 endianness only.
19487 (*mov_sitf_e500_subreg8_le): New instruction pattern.
19488 (*mov_sitf_e500_subreg8_2): Rename to...
19489 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
19490 endianness only.
19491 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
19492 (*mov_sitf_e500_subreg12): Rename to...
19493 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
19494 endianness only.
19495 (*mov_sitf_e500_subreg12_le): New instruction pattern.
19496 (*mov_sitf_e500_subreg12_2): Rename to...
19497 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
19498 endianness only.
19499 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
19500
19501 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
19502
19503 * asan.c (instrument_strlen_call): Do not instrument first byte
19504 in strlen if already instrumented.
19505
19506 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19507
19508 * config/arm/arm.opt (mwords-little-endian): Delete.
19509 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
19510 of TARGET_LITTLE_WORDS.
19511 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
19512 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
19513 warning.
19514 * doc/invoke.texi: Remove references to -mwords-little-endian.
19515
19516 2014-07-07 Jakub Jelinek <jakub@redhat.com>
19517
19518 * expmed.c (struct init_expmed_rtl): Change all fields but
19519 pow2 and cint from struct rtx_def to rtx.
19520 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
19521 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
19522 at the end again.
19523
19524 2014-07-06 Marek Polacek <polacek@redhat.com>
19525
19526 PR c/6940
19527 * doc/invoke.texi: Document -Wsizeof-array-argument.
19528
19529 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
19530
19531 * wide-int.h (wide_int_storage): Change declaration from struct
19532 to class.
19533
19534 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
19535
19536 * cgraph.c (cgraph_create_indirect_edge): Update call of
19537 get_polymorphic_call_info.
19538 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
19539 (possible_polymorphic_call_targets): Add parameter call.
19540 (decl_maybe_in_construction_p): New predicate.
19541 (get_polymorphic_call_info): Add parameter call;
19542 use decl_maybe_in_construction_p.
19543 * gimple-fold.c (fold_gimple_assign): Update use of
19544 possible_polymorphic_call_targets.
19545 (gimple_fold_call): Likewise.
19546 * ipa-prop.c: Inlcude calls.h
19547 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
19548 (param_type_may_change_p): New predicate.
19549 (detect_type_change_from_memory_writes): Break out from ...
19550 (detect_type_change): ... this one; use param_type_may_change_p.
19551 (detect_type_change_ssa): Use param_type_may_change_p.
19552 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
19553
19554 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
19555
19556 PR target/49423
19557 * config/arm/arm-protos.h (arm_legitimate_address_p,
19558 arm_is_constant_pool_ref): Add prototypes.
19559 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
19560 (arm_is_constant_pool_ref) New function.
19561 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19562 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19563 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19564 operand. Remove pool_range and neg_pool_range attributes.
19565 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19566 pool_range and neg_pool_range attributes.
19567 * config/arm/constraints.md (Uh): New constraint.
19568 (Uq): Don't allow constant pool references.
19569
19570 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
19571
19572 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19573 (move_lo_quad_internal_be_<mode>): Likewise.
19574 (move_lo_quad_<mode>): Convert to define_expand.
19575 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19576 (aarch64_simd_move_hi_quad_be_<mode>): New.
19577 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19578 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19579 (aarch64_combinez_be<mode>): New.
19580 (aarch64_combine<mode>): Convert to define_expand.
19581 (aarch64_combine_internal<mode>): New.
19582 (aarch64_simd_combine<mode>): Remove bogus RTL description.
19583
19584 2014-07-04 Tom de Vries <tom@codesourcery.com>
19585
19586 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19587 combination of earlyclobber and read/write modifiers.
19588
19589 2014-07-04 Tom de Vries <tom@codesourcery.com>
19590
19591 * config/aarch64/aarch64-simd.md
19592 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19593
19594 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
19595
19596 PR target/61714
19597 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19598
19599 2014-07-04 Jakub Jelinek <jakub@redhat.com>
19600
19601 PR middle-end/61654
19602 * cgraphunit.c (expand_thunk): Call free_dominance_info.
19603
19604 PR tree-optimization/61684
19605 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19606 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19607
19608 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19609 Kito Cheng <kito@0xlab.org>
19610 Monk Chiang <sh.chiang04@gmail.com>
19611
19612 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19613 (nds32_symbol_load_store_p): Move to ...
19614 (nds32_fp_as_gp_check_available): Move to ...
19615 * config/nds32/nds32-fp-as-gp.c: ... here.
19616 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19617 extern declaration.
19618
19619 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19620 Kito Cheng <kito@0xlab.org>
19621 Monk Chiang <sh.chiang04@gmail.com>
19622
19623 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19624 (nds32_expand_store_multiple): Move to ...
19625 (nds32_expand_movmemqi): Move to ...
19626 * config/nds32/nds32-memory-manipulation.c: ... here.
19627
19628 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19629 Kito Cheng <kito@0xlab.org>
19630 Monk Chiang <sh.chiang04@gmail.com>
19631
19632 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19633 (nds32_output_casesi_pc_relative): Move to ...
19634 (nds32_output_casesi): Move to ...
19635 (nds32_mem_format): Move to ...
19636 (nds32_output_16bit_store): Move to ...
19637 (nds32_output_16bit_load): Move to ...
19638 (nds32_output_32bit_store): Move to ...
19639 (nds32_output_32bit_load): Move to ...
19640 (nds32_output_32bit_load_s): Move to ...
19641 (nds32_output_stack_push): Move to ...
19642 (nds32_output_stack_pop): Move to ...
19643 * config/nds32/nds32-md-auxiliary.c: ... here.
19644
19645 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19646 Ling-Hua Tseng <uranus@tinlans.org>
19647
19648 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19649 the purpose of this file.
19650
19651 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19652 Kito Cheng <kito@0xlab.org>
19653 Monk Chiang <sh.chiang04@gmail.com>
19654
19655 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19656 (nds32_address_cost): Move implementation to ...
19657 * config/nds32/nds32-cost.c: ... here.
19658 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19659 (nds32_address_cost_impl): Declare.
19660
19661 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19662 Kito Cheng <kito@0xlab.org>
19663 Monk Chiang <sh.chiang04@gmail.com>
19664
19665 * config/nds32/nds32.c
19666 (nds32_consecutive_registers_load_store_p): Move to ...
19667 (nds32_valid_multiple_load_store): Move to ...
19668 (nds32_valid_stack_push_pop): Move to ...
19669 (nds32_can_use_bclr_p): Move to ...
19670 (nds32_can_use_bset_p): Move to ...
19671 (nds32_can_use_btgl_p): Move to ...
19672 (nds32_can_use_bitci_p): Move to ...
19673 * config/nds32/nds32-predicates.c: ... here.
19674
19675 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19676 Kito Cheng <kito@0xlab.org>
19677 Monk Chiang <sh.chiang04@gmail.com>
19678
19679 * config/nds32/nds32.c
19680 (nds32_expand_builtin_null_ftype_reg): Move to ...
19681 (nds32_expand_builtin_reg_ftype_imm): Move to ...
19682 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19683 (nds32_init_builtins): Move implementation to ...
19684 (nds32_expand_builtin): Move implementation to ...
19685 * config/nds32/nds32-intrinsic.c: ... here.
19686 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19687 (nds32_expand_builtin_impl): Declare.
19688
19689 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19690 Kito Cheng <kito@0xlab.org>
19691 Monk Chiang <sh.chiang04@gmail.com>
19692
19693 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19694 (nds32_emit_section_tail_template): Move to ...
19695 (nds32_emit_isr_jmptbl_section): Move to ...
19696 (nds32_emit_isr_vector_section): Move to ...
19697 (nds32_emit_isr_reset_conten): Move to ...
19698 (nds32_check_isr_attrs_conflict): Move to ...
19699 (nds32_construct_isr_vectors_information): Move to ...
19700 (nds32_asm_file_start): Move implementation to ...
19701 (nds32_asm_file_end): Move implementation to ...
19702 * config/nds32/nds32-isr.c: ... here.
19703 * config/nds32/nds32-protos.h
19704 (nds32_check_isr_attrs_conflict): Declare.
19705 (nds32_construct_isr_vectors_information): Declare.
19706 (nds32_asm_file_start_for_isr): Declare.
19707 (nds32_asm_file_end_for_isr): Declare.
19708
19709 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19710 Kito Cheng <kito@0xlab.org>
19711 Monk Chiang <sh.chiang04@gmail.com>
19712
19713 * config.gcc (nds32*): Add new modules to extra_objs.
19714 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19715 (nds32be-*-*): Likewise.
19716 * config/nds32/nds32-cost.c: New file.
19717 * config/nds32/nds32-fp-as-gp.c: New file.
19718 * config/nds32/nds32-intrinsic.c: New file.
19719 * config/nds32/nds32-isr.c: New file.
19720 * config/nds32/nds32-md-auxiliary.c: New file.
19721 * config/nds32/nds32-memory-manipulation.c: New file.
19722 * config/nds32/nds32-pipelines-auxiliary.c: New file.
19723 * config/nds32/nds32-predicates.c: New file.
19724 * config/nds32/t-nds32: New file.
19725
19726 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19727
19728 PR tree-optimization/61682
19729 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19730 using cases and when one of the operands is equal to 1.
19731
19732 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
19733
19734 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19735 ashr<mode>3): Correct mode of operands[2].
19736 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19737 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19738 Correct mode of operands[2]. Fix split condition.
19739
19740 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
19741
19742 * arm.md (arch): Add armv6_or_vfpv3.
19743 (arch_enabled): Add test for the above.
19744 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19745 on VFP9.
19746 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19747
19748 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19749
19750 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19751 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19752 HWI 1 and negate the unsigned value.
19753 * expmed.c (expand_sdiv_pow2): For modes wider than word always
19754 use AND instead of shift.
19755 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19756
19757 2014-07-03 Marek Polacek <polacek@redhat.com>
19758
19759 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19760 (-fsanitize=float-divide-by-zero): Move to the table with
19761 -fsanitize=undefined suboptions.
19762 (-fsanitize=float-cast-overflow): Likewise.
19763
19764 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
19765
19766 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19767 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19768 endianness.
19769
19770 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19771
19772 * loop-invariant.c (struct invariant): Add a new member: eqno;
19773 (find_identical_invariants): Update eqno;
19774 (create_new_invariant): Init eqno;
19775 (get_inv_cost): Compute comp_cost with eqno;
19776
19777 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19778
19779 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19780 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19781 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19782 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19783 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19784
19785 2014-07-02 Christian Bruel <christian.bruel@st.com>
19786
19787 PR target/29349
19788 PR target/53513
19789 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19790 (make_preds_opaque): Delete.
19791 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19792 (commit_mode_sets): New function.
19793 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19794 Process all modes at once.
19795 * basic-block.h (pre_edge_lcm_avs): Declare.
19796 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19797 Call clear_aux_for_edges. Fix comments.
19798 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19799 (pre_edge_rev_lcm): Idem.
19800 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19801 parameter.
19802 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19803 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19804 Idem.
19805 * config/i386/i386.c (x96_emit_mode_set): Idem.
19806 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19807 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
19808 (fpscr_toggle) Disallow from delay slot.
19809 * target.def (emit_mode_set): Add prev_mode parameter.
19810 * doc/tm.texi: Regenerate.
19811
19812 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19813
19814 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19815 variable i.
19816
19817 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19818
19819 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19820 vtable_pointer_value_to_vtable): Constify.
19821 (contains_polymorphic_type_p): Declare.
19822 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19823 vtable_pointer_value_to_vtable): Constify.
19824 (contains_polymorphic_type_p): New predicate.
19825 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19826 polymorphic types.
19827 (ipa_set_ancestor_jf): Likewise.
19828 (detect_type_change): Return false in easy cases.
19829 (compute_complex_assign_jump_func): Require type to contain
19830 polymorphic type.
19831 (compute_known_type_jump_func): Likewise.
19832
19833 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19834
19835 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19836 Remove.
19837 (type_in_anonymous_namespace_p): Constify argument.
19838 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19839 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19840 (main_odr_variant): New function.
19841 (hash_type_name): Make static; update assert; do not ICE on
19842 non-records.
19843 (types_same_for_odr): Bring here from tree.c; simplify and remove
19844 old structural comparing code that doesn't work for templates.
19845 (odr_hasher::equal): Update assert.
19846 (add_type_duplicate): Return true when bases should be computed;
19847 replace incomplete loader by complete; do not output duplicated
19848 warnings; do not ICE on non-records; set odr_violated flag.
19849 (get_odr_type): Be ready to replace incomplete type by complete
19850 one; work on ODR variants instead of main variants; reorder item
19851 in array so bases have still smaller indexes.
19852 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19853 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19854
19855 2014-07-01 Cary Coutant <ccoutant@google.com>
19856
19857 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19858 lookup.
19859 (resolve_addr_in_expr): When replacing the rtx in a location list
19860 entry, get a new address table entry.
19861 (dwarf2out_finish): Call index_location_lists even if there are no
19862 addr_index_table entries yet.
19863
19864 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19865
19866 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19867 change for not being obvious.
19868
19869 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19870
19871 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19872 unused argument.
19873
19874 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19875
19876 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19877 (vcagt_f64): Likewise.
19878 (vcale_f64): Likewise.
19879 (vcaled_f64): Likewise.
19880 (vcales_f32): Likewise.
19881 (vcalt_f64): Likewise.
19882 (vcaltd_f64): Likewise.
19883 (vcalts_f32): Likewise.
19884
19885 2014-07-01 Marek Polacek <polacek@redhat.com>
19886
19887 * doc/invoke.texi: Document -Wint-conversion.
19888
19889 2014-07-01 Marek Polacek <polacek@redhat.com>
19890
19891 PR c/58286
19892 * doc/invoke.texi: Document -Wincompatible-pointer-types.
19893
19894 2014-07-01 Martin Liska <mliska@suse.cz>
19895
19896 IPA REF alias refactoring
19897 * cgraph.h (iterate_direct_aliases): New function.
19898 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19899 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19900 FOR_EACH_ALIAS added.
19901 (cgraph_for_node_and_aliases): Likewise.
19902 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19903 * ipa-inline.c (reset_edge_caches): Likewise.
19904 (update_caller_keys): Likewise.
19905 * trans-mem.c (ipa_tm_execute): Likewise.
19906 *varpool.c (varpool_analyze_node): Likewise.
19907 (varpool_for_node_and_aliases): Likewise.
19908 * ipa-ref.h (first_alias): New function.
19909 (last_alias): Likewise.
19910 (has_aliases_p): Likewise.
19911 * ipa-ref.c (ipa_ref::remove_reference): Removal function
19912 is sensitive to IPA_REF_ALIASes.
19913 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19914 are put at the beginning of the list.
19915 (symtab_node::iterate_direct_aliases): New function.
19916
19917 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19918
19919 Revert:
19920 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19921 type is complete.
19922 (write_ts_type_common_tree_pointers): Do not stream fields not set
19923 for incomplete types; do not stream duplicated fields for variants;
19924 sanity check that variant and type match.
19925 (write_ts_type_non_common_tree_pointers): Likewise.
19926 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19927 TYPE_SIZE whether type is complete.
19928 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19929 write_ts_type_common_tree_pointers
19930 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19931
19932 2014-06-30 Joseph Myers <joseph@codesourcery.com>
19933
19934 * var-tracking.c (add_stores): Return instead of asserting if old
19935 and new values for conditional store are the same.
19936
19937 2014-06-30 Richard Henderson <rth@redhat.com>
19938
19939 PR rtl-opt/61608
19940 PR target/39284
19941 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19942 the cfg if there were any changes.
19943 * passes.def: Revert move of peephole2 after reorder_blocks;
19944 move duplicate_computed_gotos before peephole2.
19945
19946 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19947
19948 * except.c (emit_note_eh_region_end): New helper function.
19949 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19950 emit EH_REGION_END note.
19951 * jump.c (cleanup_barriers): Do not split a call and its
19952 corresponding CALL_ARG_LOCATION note.
19953
19954 2014-06-30 Jeff Law <law@redhat.com>
19955
19956 PR tree-optimization/61607
19957 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19958 deeper into the SSA_NAME_VALUE chain.
19959
19960 2014-06-30 Marek Polacek <polacek@redhat.com>
19961
19962 * convert.c (convert_to_integer): Don't instrument conversions if the
19963 function has no_sanitize_undefined attribute.
19964 * ubsan.c: Don't run the ubsan pass if the function has
19965 no_sanitize_undefined attribute.
19966
19967 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19968
19969 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19970 -fsanitize=undefined suboptions.
19971
19972 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19973
19974 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19975 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19976 against bigendian and adjust indices.
19977
19978 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19979
19980 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19981
19982 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19983
19984 PR target/61633
19985 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19986 Add alternative; make early clobber. Adjust both split patterns
19987 to use operand 0 as the working register.
19988
19989 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19990
19991 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19992 as ira_object_id_map might be NULL, or 1.
19993
19994 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19995
19996 * loop-invariant.c (get_inv_cost): Handle register class.
19997 (gain_for_invariant): Check the register pressure of the inv
19998 and its overlapped register class, other than all.
19999
20000 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
20001
20002 * doc/invoke.texi (Optimize Options): Fix descriptions of
20003 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
20004
20005 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
20006
20007 * doc/extend.texi (Function Attributes): Update 'naked' attribute
20008 documentation.
20009
20010 2014-06-29 Tobias Grosser <tobias@grosser.es>
20011
20012 PR bootstrap/61650
20013 * graphite-isl-ast-to-gimple.c: Add missing guards.
20014
20015 2014-06-29 Roman Gareev <gareevroman@gmail.com>
20016
20017 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
20018 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
20019 * flag-types.h: Add new enum fgraphite_generator.
20020 * graphite-isl-ast-to-gimple.c: New.
20021 * graphite-isl-ast-to-gimple.h: New.
20022 * graphite.c (graphite_transform_loops): Add choice of Graphite
20023 code generator, which depends on flag_graphite_code_gen.
20024
20025 2014-06-29 Roman Gareev <gareevroman@gmail.com>
20026
20027 * graphite-dependences.c (subtract_commutative_associative_deps):
20028 Add NULL checking of the following variables: must_raw_no_source,
20029 may_raw_no_source, must_war_no_source, may_war_no_source,
20030 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
20031 must_war, may_war, must_waw, may_waw.
20032
20033 2014-06-29 Roman Gareev <gareevroman@gmail.com>
20034
20035 * graphite-clast-to-gimple.c: gloog is renamed to
20036 graphite_regenerate_ast_cloog. gloog_error is renamed to
20037 graphite_regenerate_error.
20038 * graphite-clast-to-gimple.h: The definition of the struct
20039 bb_pbb_def is moved to graphite-htab.h.
20040 Add inclusion of the hash-table.h.
20041 * graphite-htab.h: The declaration of the function gloog is moved
20042 to graphite-clast-to-gimple.h and renamed to
20043 graphite_regenerate_ast_cloog.
20044 * graphite.c (graphite_transform_loops): gloog is renamed
20045 to graphite_regenerate_ast_cloog.
20046
20047 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
20048
20049 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
20050 type is complete.
20051 (write_ts_type_common_tree_pointers): Do not stream fields not set
20052 for incomplete types; do not stream duplicated fields for variants;
20053 sanity check that variant and type match.
20054 (write_ts_type_non_common_tree_pointers): Likewise.
20055 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
20056 TYPE_SIZE whether type is complete.
20057 (lto_input_ts_type_common_tree_pointers): Do same changes as in
20058 write_ts_type_common_tree_pointers
20059 (lto_input_ts_type_non_common_tree_pointers): Likewise.
20060
20061 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
20062
20063 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
20064
20065 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
20066
20067 * tree-inline.c (remap_type_1): Do not duplicate fields
20068 that are shared in between type and its main variant.
20069
20070 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
20071
20072 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
20073 of the type.
20074 (ipa_set_ancestor_jf) Likewise.
20075 (check_stmt_for_type_change): Check that we work on main variant.
20076 (detect_type_change): Look into main variant.
20077 (compute_known_type_jump_func): Check that main variant has BINFO.
20078
20079 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
20080
20081 * ipa-devirt.c (set_type_binfo): New function.
20082 (add_type_duplicate): Use it.
20083 (get_odr_type): Sanity check that binfos points to main variants.
20084 (get_class_context): Be sure the context's outer_type is main variant.
20085 (contains_type_p): Walk main variant.
20086 (get_polymorphic_call_info_for_decl): Set outer_type to be
20087 main variant.
20088 (get_polymorphic_call_info): Likewise.
20089 (possible_polymorphic_call_targets): Sanity check that we operate
20090 on main variant.
20091
20092 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
20093
20094 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
20095
20096 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20097
20098 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
20099 accidental change due to wide-int branch merge.
20100
20101 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20102
20103 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
20104 compressed debug support.
20105 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
20106 * configure: Regenerate.
20107 * config.in: Regenerate.
20108 * common.opt (compressed_debug_sections): New enum.
20109 (gz, gz=): New options.
20110 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
20111 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
20112 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
20113 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
20114 LINK_COMPRESS_DEBUG_SPEC.
20115 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
20116 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
20117 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
20118 (Debugging Options): Document -gz[=type].
20119
20120 2014-06-27 Martin Jambor <mjambor@suse.cz>
20121
20122 PR ipa/61160
20123 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
20124 args_to_skip, use those from node instead. Copy args_to_skip and
20125 combined_args_to_skip from node to the new thunk.
20126 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
20127 (cgraph_create_virtual_clone): Moved computation of
20128 combined_args_to_skip...
20129 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
20130
20131 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
20132
20133 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
20134 redundant diagnostic machinary.
20135
20136 2014-06-27 Richard Biener <rguenther@suse.de>
20137
20138 * tree-ssa-math-opts.c (bswap_replace): Fix
20139 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
20140
20141 2014-06-27 Martin Liska <mliska@suse.cz>
20142
20143 * gimple.h (gimple_location_safe): New function introduced.
20144 * cgraphunit.c (walk_polymorphic_call_targets): Usage
20145 of gimple_location_safe replaces gimple_location.
20146 (gimple_fold_call): Likewise.
20147 * ipa-devirt.c (ipa_devirt): Likewise.
20148 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20149 * ipa.c (walk_polymorphic_call_targets): Likewise.
20150 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20151
20152 2014-06-27 Jakub Jelinek <jakub@redhat.com>
20153
20154 PR tree-optimization/57233
20155 PR tree-optimization/61299
20156 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
20157 functions.
20158 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
20159 would be lowered to scalar shifts, check if corresponding
20160 shifts and vector BIT_IOR_EXPR are supported and don't lower
20161 or lower just to narrower vector type in that case.
20162 * expmed.c (expand_shift_1): Fix up handling of vector
20163 shifts and rotates.
20164
20165 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
20166
20167 PR target/61586
20168 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
20169
20170 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
20171
20172 * doc/invoke.texi (-fsemantic-interposition): Document.
20173 * common.opt (fsemantic-interposition): New flag.
20174 * varasm.c (decl_replaceable_p): Use it.
20175
20176 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20177
20178 PR target/61542
20179 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
20180 extraction other than index 3.
20181
20182 2014-06-26 Teresa Johnson <tejohnson@google.com>
20183
20184 * doc/invoke.texi: Fix typo.
20185 * dumpfile.c: Add support for documented -fdump-* options
20186 optimized/missed/note/optall.
20187
20188 2014-06-26 Martin Jambor <mjambor@suse.cz>
20189
20190 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
20191 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
20192 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
20193 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
20194 * opts.c (default_options_optimization): Set
20195 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
20196 * doc/invoke.texi (allow-load-data-races)
20197 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
20198 (allow-store-data-races): Document the new default.
20199
20200 2014-06-26 Martin Jambor <mjambor@suse.cz>
20201
20202 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
20203 renamed to ipa_impossible_devirt_target. Fix typo.
20204 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
20205 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
20206 ipa_impossible_devirt_target.
20207
20208 2014-06-26 Richard Biener <rguenther@suse.de>
20209
20210 PR tree-optimization/61607
20211 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
20212 explaining why we restrict copies on loop depth.
20213 * tree-ssa-dom.c (cprop_operand): Remove restriction on
20214 on loop depth.
20215 (record_equivalences_from_phis): Instead add it here.
20216
20217 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
20218
20219 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
20220 (LTO_WRAPPER_OBJS): New variable.
20221 (lto-wrapper$(exeext)): Use it.
20222 * collect2.c: Include "collect-utils.h".
20223 (verbose, debug): Remove variables.
20224 (at_file_supplied): No longer static.
20225 (tool_name): New variable.
20226 (do_wait, fork_execute, maybe_unlink): Don't declare.
20227 (tool_cleanup): No longer static.
20228 (notice): Remove function.
20229 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
20230 fork_execute calls.
20231 (collect_wait, do_wait, collect_execute): Remove functions.
20232 (maybe_unlink): No longer static.
20233 * collect2.h (verbose, debug): Don't declare.
20234 (at_file_supplied): Declare.
20235 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
20236 changed.
20237 (collect_execute): Replace with implementation from collect2, plus a
20238 new arg use_atfile. All callers changed.
20239 (collect_wait): Replace with implementation from collect2.
20240 (maybe_unlink_file): Remove function.
20241 (fork_execute): Replace with implementation from collect2, plus a
20242 new arg use_atfile. All callers changed.
20243 (do_wait): Add call to utils_cleanup to the error path.
20244 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
20245 (tool_cleanup): Adjust declarations.
20246 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
20247 * tlink.c: Include "collect-utils.h".
20248 (tlink_execute): New arg use_atfile. All callers changed.
20249 (tlink_init, tlink_execute): Remove declarations.
20250
20251 * collect-utils.c (save_temps): New variable.
20252 (do_wait): Use it instead of debug. Use fatal_error.
20253 * collect-utils.h (save_temps): Declare.
20254 * collect2.c (verbose): Rename from vflag. All uses changed.
20255 (tool_cleanup): New function, copied from collect_atexit.
20256 (collect_atexit, handler): Just call it.
20257 * collect2.h (verbose): Declaration renamed from vflag.
20258 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
20259 debug.
20260
20261 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
20262 (lto-wrapper$(exeext)): Link with collect-utils.o.
20263 * collect-utils.c: New file.
20264 * collect-utils.h: New file.
20265 * lto-wrapper.c: Include "collect-utils.h".
20266 (args_name): Delete variable.
20267 (tool_name): New variable.
20268 (tool_cleanup): New function.
20269 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
20270 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
20271 (fork_execute): Remove functions.
20272
20273 2014-06-26 Nick Clifton <nickc@redhat.com>
20274
20275 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
20276
20277 * doc/extend.texi (Function Attributes): Fix typo in description
20278 of RX vector attribute.
20279
20280 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20281
20282 * config.gcc (supported_defaults): Error when passing either
20283 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
20284
20285 2014-06-26 Richard Biener <rguenther@suse.de>
20286
20287 * tree-ssa-dom.c (cprop_operand): Remove restriction on
20288 propagating volatile pointers.
20289
20290 2014-06-26 Richard Biener <rguenther@suse.de>
20291
20292 PR tree-optimization/61607
20293 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
20294 loop if we redirected its latch edge.
20295 (thread_block_1): Do not cancel loops prematurely.
20296
20297 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
20298
20299 * toplev.c (backend_init_target): Move init_emit_regs and
20300 init_regs to...
20301 (backend_init) ... here; skip ira_init_once and backend_init_target.
20302 (target_reinit) ... and here; clear
20303 this_target_rtl->lang_dependent_initialized.
20304 (lang_dependent_init_target): Clear
20305 this_target_rtl->lang_dependent_initialized;
20306 break out rtl initialization to ...
20307 (initialize_rtl): ... here; call also backend_init_target
20308 and ira_init_once.
20309 * toplev.h (initialize_rtl): New function.
20310 * function.c: Include toplev.h
20311 (init_function_start): Call initialize_rtl.
20312 * rtl.h (target_rtl): Add target_specific_initialized,
20313 lang_dependent_initialized.
20314
20315 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
20316 Jakub Jelinek <jakub@redhat.com>
20317
20318 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
20319
20320 2014-06-25 Tom de Vries <tom@codesourcery.com>
20321
20322 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
20323
20324 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
20325
20326 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
20327 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
20328 Issue a strict overflow warning if appropriate.
20329
20330 2014-06-25 Martin Liska <mliska@suse.cz>
20331
20332 IPA REF refactoring
20333 * Makefile.in: Removed header file (ipa-ref-inline.h).
20334 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
20335 called.
20336 (cgraph_speculative_call_info): Likewise.
20337 (cgraph_for_node_thunks_and_aliases): Likewise.
20338 (cgraph_for_node_and_aliases): Likewise.
20339 (verify_cgraph_node): Likewise.
20340 * cgraph.h: Batch of IPA REF functions become member functions of
20341 symtab_node: add_reference, maybe_add_reference, clone_references,
20342 clone_referring, clone_reference, find_reference,
20343 remove_stmt_references, remove_all_references,
20344 remove_all_referring, dump_references, dump_referring,
20345 has_alias_p, iterate_reference, iterate_referring.
20346 * cgraphbuild.c (record_reference): New IPA REF function used.
20347 (record_type_list): Likewise.
20348 (record_eh_tables): Likewise.
20349 (mark_address): Likewise.
20350 (mark_load): Likewise.
20351 (mark_store): Likewise.
20352 (pass_build_cgraph_edges): Likewise.
20353 (rebuild_cgraph_edge): Likewise.
20354 (cgraph_rebuild_references): Likewise.
20355 (pass_remove_cgraph_callee_edges): Likewise.
20356 * cgraphclones.c (cgraph_clone_node): Likewise.
20357 (cgraph_create_virtual_clone): Likewise.
20358 (cgraph_materialize_clone): Likewise.
20359 (cgraph_materialize_all_clones): Likewise.
20360 * cgraphunit.c (cgraph_reset_node): Likewise.
20361 (cgraph_reset_node): Likewise.
20362 (analyze_function): Likewise.
20363 (assemble_thunks_and_aliases): Likewise.
20364 (expand_function): Likewise.
20365 * ipa-comdats.c (propagate_comdat_group): Likewise.
20366 (enqueue_references): Likewise.
20367 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
20368 (create_specialized_node): Likewise.
20369 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
20370 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
20371 * ipa-inline.c (reset_edge_caches): Likewise.
20372 (update_caller_keys): Likewise.
20373 (execute): Likewise.
20374 * ipa-prop.c (remove_described_reference): Likewise.
20375 (propagate_controlled_uses): Likewise.
20376 (ipa_edge_duplication_hook): Likewise.
20377 (ipa_modify_call_arguments): Likewise.
20378 * ipa-pure-const.c (propagate_pure_const): Likewise.
20379 * ipa-ref-inline.h: Header file removed, functions moved
20380 to symtab_node class.
20381 * ipa-ref.c (remove_reference): New class member function.
20382 (cannot_lead_to_return): New class member function.
20383 (referring_ref_list): Likewise.
20384 (referred_ref_list): Likewise.
20385 Rest of functions moved to symtab_node class.
20386 * ipa-ref.h: New member functions remove_reference,
20387 cannot_lead_to_return, referring_ref_list, referred_ref_list added
20388 to ipa_ref class.
20389 ipa_ref_list class has new member functions: first_reference,
20390 first_referring, clear, nreferences.
20391 * ipa-reference.c (analyze_function): New IPA REF function used.
20392 (write_node_summary_p): Likewise.
20393 (ipa_reference_write_optimization_summary): Likewise.
20394 * ipa-split.c (split_function): Likewise.
20395 * ipa-utils.c (ipa_reverse_postorder): Likewise.
20396 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
20397 (function_and_variable_visibility): Likewise.
20398 * ipa.c (has_addr_references_p): Likewise.
20399 (process_references): Argument type changed.
20400 (symtab_remove_unreachable_nodes): New IPA REF function used.
20401 (process_references): Likewise.
20402 (set_writeonly_bit): Likewise.
20403 * lto-cgraph.c: Implementation of new symtab_node member functions
20404 that uses new IPA REF functions.
20405 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
20406 function used.
20407 * lto-streamer-out.c (output_symbol_p): Likewise.
20408 * lto-streamer.h (referenced_from_this_partition_p): Argument type
20409 changed.
20410 * symtab.c: Implementation of new IPA REF API.
20411 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
20412 (ipa_tm_create_version): Likewise.
20413 (ipa_tm_execute): Likewise.
20414 * tree-emutls.c (gen_emutls_addr): Likewise.
20415 * tree-inline.c (copy_bb): Likewise.
20416 (delete_unreachable_blocks_update_callgraph): Likewise.
20417 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
20418 (varpool_for_node_and_aliases): Likewise.
20419
20420 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
20421
20422 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
20423
20424 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
20425
20426 PR bootstrap/61598
20427 * fold-const.c (fold_checksum_tree): Use a hash_table of const
20428 tree_node * instead of tree_node *.
20429 (fold): Adjust.
20430 (print_fold_checksum): Likewise.
20431 (fold_check_failed): Likewise.
20432 (debug_fold_checksum): Likewise.
20433 (fold_build1_stat_loc): Likewise.
20434 (fold_build2_stat_loc): Likewise.
20435 (fold_build3_stat_loc): Likewise.
20436 (fold_build_call_array_loc): Likewise.
20437
20438 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
20439
20440 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
20441 implementation with call to...
20442 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
20443 function.
20444 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
20445 Declare.
20446
20447 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
20448
20449 PR tree-optimization/57742
20450 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
20451 after replacing the statement.
20452
20453 2014-06-25 Nick Clifton <nickc@redhat.com>
20454
20455 * config/v850/v850.c (GHS_default_section_names): Change to const
20456 char * type.
20457 (GHS_current_section_names): Likewise.
20458 (v850_insert_attributes): Do not build strings, just assign the
20459 names directly. Change the type of 'chosen_section' to const
20460 char*.
20461 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
20462 directly to the array entry.
20463 * config/v850/v850.h (GHS_default_section_names): Change to const
20464 char * type.
20465 (GHS_current_section_names): Likewise.
20466
20467 2014-06-25 Jakub Jelinek <jakub@redhat.com>
20468
20469 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
20470 (LANG_HOOKS_DECLS): Add it.
20471 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
20472 has correct type.
20473 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
20474 * langhooks.h (struct lang_hooks_for_decls): Add
20475 omp_clause_linear_ctor hook.
20476 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
20477 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
20478 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
20479 combined simd loop use omp_clause_linear_ctor hook.
20480
20481 2014-06-24 Cong Hou <congh@google.com>
20482
20483 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
20484 pattern recognition.
20485 (type_conversion_p): PROMOTION is true if it's a type promotion
20486 conversion, and false otherwise. Return true if the given expression
20487 is a type conversion one.
20488 * tree-vectorizer.h: Adjust the number of patterns.
20489 * tree.def: Add SAD_EXPR.
20490 * optabs.def: Add sad_optab.
20491 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
20492 * expr.c (expand_expr_real_2): Likewise.
20493 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20494 * gimple.c (get_gimple_rhs_num_ops): Likewise.
20495 * optabs.c (optab_for_tree_code): Likewise.
20496 * tree-cfg.c (estimate_operator_cost): Likewise.
20497 * tree-ssa-operands.c (get_expr_operands): Likewise.
20498 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
20499 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
20500 * doc/generic.texi: Add document for SAD_EXPR.
20501 * doc/md.texi: Add document for ssad and usad.
20502
20503 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20504
20505 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
20506 qualification in cast.
20507
20508 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
20509
20510 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
20511 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
20512 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
20513 (tree_function_decl): ... here.
20514 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
20515 streaming of vindex to ...
20516 (write_ts_function_decl_tree_pointers): ... here.
20517 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20518 Do not stream DECL_VINDEX.
20519 (lto_input_ts_function_decl_tree_pointers): Stream it here.
20520
20521 2014-06-24 Catherine Moore <clm@codesourcery.com>
20522 Sandra Loosemore <sandra@codesourcery.com>
20523
20524 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
20525 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
20526 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
20527
20528 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
20529
20530 * doc/invoke.texi (Warning Options): Remove duplicated
20531 -Wmaybe-uninitialized.
20532
20533 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
20534
20535 PR tree-optimization/57742
20536 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
20537 (handle_builtin_malloc, handle_builtin_memset): New functions.
20538 (strlen_optimize_stmt): Call them.
20539 * passes.def: Move strlen after loop+dom but before vrp.
20540
20541 2014-06-24 Jakub Jelinek <jakub@redhat.com>
20542
20543 PR target/61570
20544 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
20545 model family 6 CPU with has_longmode never use a CPU without
20546 64-bit support.
20547
20548 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
20549
20550 PR target/61570
20551 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
20552 the last change.
20553
20554 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20555
20556 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
20557 * dominance.c (iterate_fix_dominators): Use hash_map instead of
20558 pointer_map.
20559 * hash-map.h: New file.
20560 * ipa-comdats.c: Use hash_map instead of pointer_map.
20561 * ipa.c: Likewise.
20562 * lto-section-out.c: Adjust.
20563 * lto-streamer.h: Replace pointer_map with hash_map.
20564 * symtab.c (verify_symtab): Likewise.
20565 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20566 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20567 * tree-streamer.h: Likewise.
20568 * tree-streamer.c: Adjust.
20569 * pointer-set.h: Remove pointer_map.
20570
20571 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20572
20573 * hash-table.h: Add a template arg to choose between storing values
20574 and storing pointers to values, and then provide partial
20575 specializations for both.
20576 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20577 should store, not the type values should point to.
20578 * tree-into-ssa.c (var_info_hasher): Likewise.
20579 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20580 * tree-complex.c: Adjust.
20581 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20582 table instead of int_tree_map *.
20583 * tree-parloops.c: Adjust.
20584 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20585 type is being stored.
20586 * tree-vectorizer.c: Adjust.
20587
20588 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20589
20590 * hash-table.h: Remove a layer of indirection from hash_table so that
20591 it contains the hash table's data instead of a pointer to the data.
20592 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20593 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20594 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20595 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20596 fold-const.c, gcse.c, ggc-common.c,
20597 gimple-ssa-strength-reduction.c, gimplify.c,
20598 graphite-clast-to-gimple.c, graphite-dependences.c,
20599 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20600 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20601 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20602 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20603 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20604 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20605 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20606 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20607 tree-ssa-live.c, tree-ssa-loop-im.c,
20608 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20609 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20610 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20611 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20612 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20613 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20614 vtable-verify.c, vtable-verify.h: Adjust.
20615
20616 2014-06-24 Richard Biener <rguenther@suse.de>
20617
20618 PR tree-optimization/61572
20619 * tree-ssa-sink.c (statement_sink_location): Do not sink
20620 loads from hard registers.
20621
20622 2014-06-24 Jakub Jelinek <jakub@redhat.com>
20623
20624 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20625 not mentioned in clauses use private clause if the iterator is
20626 declared in #pragma omp for simd, and when adding lastprivate
20627 instead, add it to the outer #pragma omp for too. Diagnose
20628 if the variable is private in outer context. For simd collapse > 1
20629 loops, replace all iterators with temporaries.
20630 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20631 same even in collapse > 1 loops.
20632
20633 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20634 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20635 non-NULL.
20636 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20637 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20638 non-NULL.
20639 (gimplify_adjust_omp_clauses): Likewise.
20640 * omp-low.c (lower_rec_simd_input_clauses,
20641 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20642 safelen the same as safelen(1).
20643 * tree-nested.c (convert_nonlocal_omp_clauses,
20644 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
20645 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20646 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20647 Fixup handling of GIMPLE_OMP_TARGET.
20648 (convert_tramp_reference_stmt, convert_gimple_call): Handle
20649 GIMPLE_OMP_TARGET.
20650
20651 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
20652
20653 PR tree-optimization/61554
20654 * tree-ssa-propagate.c: Include "bitmap.h".
20655 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20656 properly update constructor/destructor.
20657 (substitute_and_fold_dom_walker::before_dom_children):
20658 Remove call to gimple_purge_dead_eh_edges, add bb->index to
20659 need_eh_cleaup instead.
20660 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20661 need_eh_cleanup.
20662
20663 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20664
20665 * varpool.c (dump_varpool_node): Dump used_by_single_function.
20666 * tree-pass.h (make_pass_ipa_single_use): New pass.
20667 * cgraph.h (used_by_single_function): New flag.
20668 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20669 Stream it.
20670 * passes.def (pass_ipa_single_use): Scedule.
20671 * ipa.c (BOTTOM): New macro.
20672 (meet): New function
20673 (propagate_single_user): New function.
20674 (ipa_single_use): New function.
20675 (pass_data_ipa_single_use): New pass.
20676 (pass_ipa_single_use): New pass.
20677 (pass_ipa_single_use::gate): New gate.
20678 (make_pass_ipa_single_use): New function.
20679
20680 2014-06-23 Kai Tietz <ktietz@redhat.com>
20681
20682 PR target/39284
20683 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20684 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20685
20686 2014-06-23 Richard Biener <rguenther@suse.de>
20687
20688 * tree-ssa-loop.c (gate_loop): New function.
20689 (pass_tree_loop::gate): Call it.
20690 (pass_data_tree_no_loop, pass_tree_no_loop,
20691 make_pass_tree_no_loop): New.
20692 * tree-vectorizer.c: Include tree-scalar-evolution.c
20693 (pass_slp_vectorize::execute): Initialize loops and SCEV if
20694 required.
20695 (pass_slp_vectorize::clone): New method.
20696 * timevar.def (TV_TREE_NOLOOP): New.
20697 * tree-pass.h (make_pass_tree_no_loop): Declare.
20698 * passes.def (pass_tree_no_loop): New pass group with
20699 SLP vectorizer.
20700
20701 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
20702
20703 PR target/61570
20704 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20705 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20706
20707 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20708
20709 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20710 "yes" where needed.
20711
20712 2014-06-23 Alan Modra <amodra@gmail.com>
20713
20714 PR bootstrap/61583
20715 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20716 to zero on debug statements.
20717
20718 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20719
20720 PR target/60825
20721 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20722 Ignore third operand if present by marking qualifier_internal.
20723
20724 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20725
20726 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20727 vector extension.
20728 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20729 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20730 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20731 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20732 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20733 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20734 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20735 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20736 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20737 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20738 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20739 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20740 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20741 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20742 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20743 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20744 logic in GCC vector extensions
20745
20746 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20747 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20748 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20749 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20750 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20751 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20752 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20753 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20754 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20755 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20756
20757 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20758
20759 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20760 extensions.
20761
20762 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20763 (vget_low_s64): Use __GET_LOW macro.
20764 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20765 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20766 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20767 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20768 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20769
20770 (vcombine_s64): Use GCC vector extensions; remove cast.
20771 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20772 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20773 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20774 Fix type signature; remove cast.
20775
20776 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20777
20778 PR target/60825
20779 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20780 V1DFmode.
20781 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20782 add V1DFmode
20783 (BUILTIN_VD1): New.
20784 (BUILTIN_VD_RE): Remove.
20785 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20786 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20787 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20788 variant but not df.
20789 (vreinterpretv1df*, vreinterpret*v1df): New.
20790 (vreinterpretdf*, vreinterpret*df): Remove.
20791 * config/aarch64/aarch64-simd.md (aarch64_create,
20792 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20793 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20794 (VD1): New.
20795 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20796 (vcreate_f64): Remove cast, use v1df builtin.
20797 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20798 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20799 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20800 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20801 vmov_n_f64, vst1_f64): Use gcc vector extensions.
20802 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20803 add range check using __builtin_aarch64_im_lane_boundsi.
20804 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20805 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20806 type signature, use gcc vector extensions.
20807 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20808 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20809 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20810 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20811 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20812 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20813 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20814 vreinterpret_u64_f64): Use v1df builtin not df.
20815
20816 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20817
20818 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20819 vector registers.
20820
20821 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20822
20823 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20824 priority directly.
20825
20826 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20827
20828 * loop-invariant.c (pre_check_invariant_p): New function.
20829 (find_invariant_insn): Call pre_check_invariant_p.
20830
20831 2014-06-22 Richard Henderson <rth@redhat.com>
20832
20833 PR target/61565
20834 * compare-elim.c (struct comparison): Add eh_note.
20835 (find_comparison_dom_walker::before_dom_children): Don't eliminate
20836 a redundant comparison in a different EH region. Purge EH edges if
20837 necessary.
20838
20839 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20840
20841 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20842 (var_shift): Use it.
20843 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20844 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20845 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20846 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20847 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20848 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20849 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20850 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20851 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20852 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20853 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20854 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20855 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20856 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20857 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20858 *rotldi3_internal15be): Use the new attribute. Merge register and
20859 integer alternatives.
20860
20861 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20862
20863 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20864 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20865 split, *ashrdi3_internal3 and split): Delete, merge into...
20866 (ashr<mode>3): New expander.
20867 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20868 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
20869
20870 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20871
20872 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20873 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20874 *rotldi3_internal3 and split): Delete, merge into...
20875 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20876 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
20877 Use "rotlw" extended mnemonic.
20878
20879 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20880
20881 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20882 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20883 and split, *ashldi3_internal3 and split): Delete, merge into...
20884 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20885 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
20886
20887 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20888
20889 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20890 (lshrsi3, two anonymous define_insns and define_splits,
20891 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20892 *lshrdi3_internal3 and split): Delete, merge into...
20893 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20894 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
20895
20896 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20897
20898 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20899 Remove "O" alternative.
20900
20901 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
20902
20903 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20904 (mips_move_from_gpr_cost): Likewise.
20905 (mips_register_move_cost): Update accordingly.
20906 (mips_secondary_reload_class): Remove name of in_p.
20907
20908 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
20909
20910 PR target/61503
20911 * config/i386/i386.md (x86_64_shrd, x86_shrd,
20912 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20913
20914 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20915
20916 * config/nios2/nios2.c: Include "builtins.h".
20917
20918 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20919
20920 * cgraph.h (tls_model_names): New variable.
20921 * print-tree.c (print_node): Simplify.
20922 * varpool.c (tls_model_names): New variable.
20923 (dump_varpool_node): Output tls model.
20924
20925 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20926
20927 * ipa-visibility.c (function_and_variable_visibility): Disable
20928 temporarily local aliases for some targets.
20929
20930 2014-06-20 Marek Polacek <polacek@redhat.com>
20931
20932 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20933 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20934 into SANITIZE_UNDEFINED.
20935 * doc/invoke.texi: Describe -fsanitize=bounds.
20936 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20937 functions created in the FEs.
20938 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20939 (expand_UBSAN_BOUNDS): New function.
20940 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20941 * internal-fn.h: Don't define internal functions here.
20942 * opts.c (common_handle_option): Add -fsanitize=bounds.
20943 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20944 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20945 * tree-core.h: Define internal functions here.
20946 (struct tree_base): Add ifn field.
20947 * tree-pretty-print.c: Include "internal-fn.h".
20948 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20949 * tree.c (get_callee_fndecl): Likewise.
20950 (build_call_expr_internal_loc): New function.
20951 * tree.def (CALL_EXPR): Update description.
20952 * tree.h (CALL_EXPR_IFN): Define.
20953 (build_call_expr_internal_loc): Declare.
20954 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20955 types.
20956 (ubsan_type_descriptor): Change bool parameter to enum
20957 ubsan_print_style. Adjust the code. Add handling of
20958 UBSAN_PRINT_ARRAY.
20959 (ubsan_expand_bounds_ifn): New function.
20960 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20961 (ubsan_build_overflow_builtin): Likewise.
20962 (instrument_bool_enum_load): Likewise.
20963 (ubsan_instrument_float_cast): Likewise.
20964 * ubsan.h (enum ubsan_print_style): New enum.
20965 (ubsan_expand_bounds_ifn): Declare.
20966 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20967
20968 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20969
20970 * config/rs6000/rs6000.md: Append `DONE' to preparation
20971 statements of `bswap' pattern splitters.
20972
20973 2014-06-20 Tom de Vries <tom@codesourcery.com>
20974
20975 * target.def (call_fusage_contains_non_callee_clobbers): Update
20976 definition.
20977 * doc/tm.texi: Regenerate.
20978
20979 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20980 Max Ostapenko <m.ostapenko@partner.samsung.com>
20981
20982 PR sanitizer/61547
20983 * asan.c (instrument_strlen_call): Fixed instrumentation of
20984 trailing byte.
20985
20986 2014-06-20 Martin Jambor <mjambor@suse.cz>
20987
20988 PR ipa/61540
20989 * ipa-prop.c (impossible_devirt_target): New function.
20990 (try_make_edge_direct_virtual_call): Use it, also instead of
20991 asserting.
20992
20993 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20994 Max Ostapenko <m.ostapenko@partner.samsung.com>
20995
20996 PR sanitizer/61530
20997 * asan.c (build_check_stmt): Add condition.
20998
20999 2014-06-20 Martin Jambor <mjambor@suse.cz>
21000
21001 PR ipa/61211
21002 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
21003 expanded clones.
21004
21005 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21006
21007 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
21008 Update comments.
21009 (VCONQ): Make comment more helpful.
21010 (VCON): Delete.
21011 * config/aarch64/aarch64-simd.md
21012 (aarch64_sqdmulh_lane<mode>):
21013 Use VCOND for operands 2. Update lane checking and flipping logic.
21014 (aarch64_sqrdmulh_lane<mode>): Likewise.
21015 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
21016 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
21017 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
21018 attribute of operand 3 to VCOND.
21019 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
21020 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
21021 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
21022 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
21023 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
21024 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
21025 define_insn.
21026 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
21027 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
21028 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
21029 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
21030 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
21031 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
21032 operand to VCOND. Update lane flipping and bounds checking logic.
21033 (aarch64_sqdmlal2_lane<mode>): Likewise.
21034 (aarch64_sqdmlsl_lane<mode>): Likewise.
21035 (aarch64_sqdmull_lane<mode>): Likewise.
21036 (aarch64_sqdmull2_lane<mode>): Likewise.
21037 (aarch64_sqdmlal_laneq<mode>):
21038 Replace VCON usage with VCONQ.
21039 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
21040 (aarch64_sqdmlal2_laneq<mode>): Emit
21041 aarch64_sqdmlal2_laneq<mode>_internal insn.
21042 Replace VCON with VCONQ.
21043 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
21044 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21045 (aarch64_sqdmull_laneq<mode>): Emit
21046 aarch64_sqdmull_laneq<mode>_internal insn.
21047 Replace VCON with VCONQ.
21048 (aarch64_sqdmull2_laneq<mode>): Emit
21049 aarch64_sqdmull2_laneq<mode>_internal insn.
21050 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
21051 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
21052 of 3rd argument to int16x4_t.
21053 (vqdmlalh_lane_s16): Likewise.
21054 (vqdmlslh_lane_s16): Likewise.
21055 (vqdmull_high_lane_s16): Likewise.
21056 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
21057 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
21058 (vqdmlsl_lane_s16): Likewise.
21059 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
21060 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
21061 (vqdmlals_lane_s32): Likewise.
21062 (vqdmlsls_lane_s32): Likewise.
21063 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
21064 (vqdmulls_lane_s32): Likewise.
21065 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
21066 (vqdmlsl_lane_s32): Likewise.
21067 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
21068 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
21069 (vqrdmulhh_lane_s16): Likewise.
21070 (vqdmlsl_high_lane_s16): Likewise.
21071 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
21072 (vqdmlsl_high_lane_s32): Likewise.
21073 (vqrdmulhs_lane_s32): Likewise.
21074
21075 2014-06-20 Tom de Vries <tom@codesourcery.com>
21076
21077 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
21078 get_call_reg_set_usage.
21079
21080 2014-06-20 Tom de Vries <tom@codesourcery.com>
21081
21082 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
21083 it contains all call_used_regs.
21084
21085 2014-06-20 Tom de Vries <tom@codesourcery.com>
21086
21087 * final.c (collect_fn_hard_reg_usage): Add and use variable
21088 function_used_regs.
21089
21090 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
21091
21092 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
21093 (set_init_priority, get_init_priority, set_fini_priority,
21094 get_fini_priority): New methods.
21095 * tree.c (init_priority_for_decl): Remove.
21096 (init_ttree): Do not initialize init priority.
21097 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
21098 (decl_priority_info): Remove.
21099 (decl_init_priority_insert): Rewrite.
21100 (decl_fini_priority_insert): Rewrite.
21101 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
21102 tree_priority_map_marked_p): Remove.
21103 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
21104 * lto-streamer-out.c (hash_tree): Do not hash priorities.
21105 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
21106 not output priorities.
21107 (pack_ts_function_decl_value_fields): Likewise.
21108 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21109 not input priorities.
21110 (unpack_ts_function_decl_value_fields): Likewise.
21111 * symtab.c (symbol_priority_map): Declare.
21112 (init_priority_hash): Declare.
21113 (symtab_unregister_node): Unregister from priority hash, too.
21114 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
21115 New methods.
21116 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
21117 (symbol_priority_info): New function.
21118 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
21119 New methods.
21120 * tree-core.h (tree_priority_map): Remove.
21121
21122 2014-06-20 Jakub Jelinek <jakub@redhat.com>
21123
21124 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
21125 0xff to uint64_t before shifting it up.
21126
21127 2014-06-20 Julian Brown <julian@codesourcery.com>
21128 Chung-Lin Tang <cltang@codesourcery.com>
21129
21130 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
21131 TARGET_THUMB1_ONLY. Add comments.
21132
21133 2014-06-19 Tom de Vries <tom@codesourcery.com>
21134
21135 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
21136 return type to void.
21137 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
21138
21139 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21140
21141 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
21142 as "move", from depends_on.
21143
21144 2014-06-19 Terry Guo <terry.guo@arm.com>
21145
21146 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
21147 stage.
21148
21149 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
21150
21151 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
21152 Remove cr5.
21153 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
21154
21155 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
21156
21157 PR target/61550
21158 * config/sh/sh.c (prepare_move_operands): Don't process TLS
21159 addresses here if reload in progress or completed.
21160
21161 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
21162
21163 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
21164 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
21165 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
21166 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
21167 (mips_register_priority): New function that implements the target
21168 hook TARGET_REGISTER_PRIORITY.
21169 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
21170 (mips_lra_p): Likewise for TARGET_LRA_P.
21171 (TARGET_REGISTER_PRIORITY): Define macro.
21172 (TARGET_SPILL_CLASS): Likewise.
21173 (TARGET_LRA_P): Likewise.
21174 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
21175 classes.
21176 (REG_CLASS_NAMES): Likewise.
21177 (REG_CLASS_CONTENTS): Likewise.
21178 (BASE_REG_CLASS): Use M16_SP_REGS.
21179 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
21180 New set attribute to enable alternatives depending on the register
21181 allocator used.
21182 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
21183 (*lea64): Disable pattern for MIPS16.
21184 * config/mips/mips.opt (mlra): New option.
21185
21186 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
21187
21188 * lra-constraints.c (base_to_reg): New function.
21189 (process_address): Use new function.
21190
21191 2014-06-18 Tom de Vries <tom@codesourcery.com>
21192
21193 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
21194 * config/aarch64/aarch64.c
21195 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
21196 (aarch64_emit_call_insn): New function.
21197 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
21198 of emit_call_insn.
21199 * config/aarch64/aarch64.md (define_expand "call_internal")
21200 (define_expand "call_value_internal", define_expand "sibcall_internal")
21201 (define_expand "sibcall_value_internal"): New.
21202 (define_expand "call", define_expand "call_value")
21203 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
21204 expand variant and aarch64_emit_call_insn.
21205
21206 2014-06-18 Radovan Obradovic <robradovic@mips.com>
21207 Tom de Vries <tom@codesourcery.com>
21208
21209 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
21210 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21211 Redefine to true.
21212 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
21213 clobbers to CALL_INSN_FUNCTION_USAGE.
21214 (define_expand "sibcall_internal")
21215 (define_expand "sibcall_value_internal"): New.
21216 (define_expand "call", define_expand "call_value"): Add argument to
21217 arm_emit_call_insn.
21218 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
21219 (define_expand "sibcall_value"): Use sibcall_value_internal and
21220 arm_emit_call_insn.
21221
21222 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21223
21224 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
21225
21226 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21227
21228 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
21229 __udivmoddi4.
21230
21231 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21232
21233 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
21234 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
21235 annotations. Fix DWARF information.
21236
21237 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21238
21239 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
21240 __udivmoddi4, and fixups for negative operands.
21241
21242 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21243
21244 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
21245
21246 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21247
21248 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
21249 to __udivmoddi4.
21250
21251 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21252
21253 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
21254 manipulation.
21255
21256 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21257
21258 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
21259 describing register usage on function entry and exit.
21260
21261 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21262
21263 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
21264 (__aeabi_ldivmod): Fix whitespace.
21265
21266 2014-06-18 Andreas Schwab <schwab@suse.de>
21267
21268 * doc/md.texi (Standard Names): Use @itemx for grouped items.
21269 Remove blank line after @item.
21270
21271 2014-06-18 Richard Henderson <rth@redhat.com>
21272
21273 PR target/61545
21274 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
21275
21276 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21277
21278 * config/arm/arm.c (neon_vector_mem_operand): Allow register
21279 POST_MODIFY for neon loads and stores.
21280 (arm_print_operand): Output post-index register for neon loads and
21281 stores.
21282
21283 2014-06-18 Richard Biener <rguenther@suse.de>
21284
21285 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
21286
21287 2014-06-18 Richard Biener <rguenther@suse.de>
21288
21289 * tree-pass.h (make_pass_dce_loop): Remove.
21290 * passes.def: Replace pass_dce_loop with pass_dce.
21291 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
21292 changed free niter estimates and reset the scev cache.
21293 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
21294 make_pass_dce_loop): Remove.
21295 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
21296 (fini_copy_prop): Return whether something changed. Always
21297 let substitute_and_fold perform DCE and free niter estimates
21298 and reset the scev cache if so.
21299 (execute_copy_prop): If sth changed schedule cleanup-cfg.
21300 (pass_data_copy_prop): Do not unconditionally schedule
21301 cleanup-cfg or update-ssa.
21302
21303 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
21304
21305 PR tree-optimization/61518
21306 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21307 reduction var is used in reduction stmt or phi-function only.
21308
21309 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21310
21311 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
21312
21313 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
21314
21315 PR tree-optimization/61517
21316 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
21317 whose rhs's first tree is the source expression instead of the
21318 expression itself.
21319 (find_bswap_or_nop): Likewise.
21320 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
21321 gimple stmt whose rhs's first tree is the source. In the memory source
21322 case, move the stmt to be replaced close to one of the original load to
21323 avoid the problem of a store between the load and the stmt's original
21324 location.
21325 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
21326 signature.
21327
21328 2014-06-18 Andreas Schwab <schwab@suse.de>
21329
21330 PR rtl-optimization/54555
21331 * postreload.c (move2add_use_add2_insn): Substitute
21332 STRICT_LOW_PART only if it is cheaper.
21333
21334 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
21335
21336 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
21337 Do not use unspec as call operand. Use memory_operand instead of
21338 memory_nox32_operand and add "m" operand constraint. Disable
21339 pattern for TARGET_X32.
21340 (*sibcall_pop_memory): Ditto.
21341 (*sibcall_value_memory): Ditto.
21342 (*sibcall_value_pop_memory): Ditto.
21343 (sibcall peepholes): Merge SImode and DImode patterns using
21344 W mode iterator. Use memory_operand instead of memory_nox32_operand.
21345 Disable pattern for TARGET_X32. Check if eliminated register is
21346 really dead after call insn. Generate call RTX without unspec operand.
21347 (sibcall_value peepholes): Ditto.
21348 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
21349 instead of memory_nox32_operand. Check if eliminated register is
21350 really dead after call insn. Generate call RTX without unspec operand.
21351 (sibcall_value_pop peepholes): Ditto.
21352 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
21353
21354 2014-06-18 Terry Guo <terry.guo@arm.com>
21355
21356 PR target/61544
21357 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
21358 reach the head.
21359
21360 2014-06-18 Olivier Hainque <hainque@adacore.com>
21361
21362 * tree-core.h (tree_block): Add an "end_locus" field, allowing
21363 memorization of the end of block source location.
21364 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
21365 * gimplify.c (gimplify_bind_expr): Propagate the block start and
21366 end source location info we have on the block entry/exit code we
21367 generate.
21368
21369 2014-06-18 Richard Biener <rguenther@suse.de>
21370
21371 * common.opt (fssa-phiopt): New option.
21372 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
21373 but not with -Og.
21374 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
21375 * doc/invoke.texi (-fssa-phiopt): Document.
21376
21377 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21378
21379 * genattrtab.c (n_bypassed): New variable.
21380 (process_bypasses): Initialise n_bypassed.
21381 Count number of bypassed reservations.
21382 (make_automaton_attrs): Allocate space for bypassed reservations
21383 rather than number of bypasses.
21384
21385 2014-06-18 Richard Biener <rguenther@suse.de>
21386
21387 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
21388 we propagated anything.
21389 (substitute_and_fold_dom_walker::before_dom_children): Something
21390 changed if we propagated into PHI arguments.
21391 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
21392 we removed a stmt.
21393
21394 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
21395
21396 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
21397 vector case.
21398 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
21399 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
21400 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
21401 Introduces alternative way of loads group permutaions.
21402 (vect_transform_grouped_load): Try alternative way of permutations.
21403
21404 2014-06-18 Jakub Jelinek <jakub@redhat.com>
21405
21406 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
21407 changed in ORT_TARGET region, don't jump to do_outer.
21408 (struct gimplify_adjust_omp_clauses_data): New type.
21409 (gimplify_adjust_omp_clauses_1): Adjust for data being
21410 a struct gimplify_adjust_omp_clauses_data pointer instead
21411 of tree *. Pass pre_p as a new argument to
21412 lang_hooks.decls.omp_finish_clause hook.
21413 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
21414 splay_tree_foreach to pass both list_p and pre_p.
21415 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
21416 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
21417 gimplify_adjust_omp_clauses callers.
21418 * langhooks.c (lhd_omp_finish_clause): New function.
21419 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
21420 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
21421 * langhooks.h (struct lang_hooks_for_decls): Add a new
21422 gimple_seq * argument to omp_finish_clause hook.
21423 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
21424 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
21425 (scan_omp_parallel, lower_omp_for): When adding
21426 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
21427 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
21428 * tree-nested.c (convert_nonlocal_omp_clauses,
21429 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
21430 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
21431
21432 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
21433
21434 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
21435 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
21436
21437 2014-06-17 Xinliang David Li <davidxl@google.com>
21438
21439 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
21440 * passes.c (pass_init_dump_file): Do not set initialize
21441 flag to false unconditionally.
21442
21443 2014-06-17 Richard Biener <rguenther@suse.de>
21444
21445 * genopinit.c (main): Use vec<>::qsort method.
21446 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
21447 Likewise.
21448 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
21449
21450 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
21451
21452 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
21453 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
21454 (mips_move_to_gpr_cost): Remove ST_REGS case.
21455 (mips_move_from_gpr_cost): Likewise.
21456 (mips_register_move_cost): Likewise.
21457 (mips_secondary_reload_class): Likewise.
21458
21459 2014-06-17 Richard Biener <rguenther@suse.de>
21460
21461 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
21462 (pass_all_optimizations): Move 3rd copy-prop pass from after
21463 fre to before ifcombine/phiopt.
21464
21465 2014-06-17 Richard Biener <rguenther@suse.de>
21466
21467 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
21468 and allow all blocks to be forwarders.
21469
21470 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
21471
21472 PR target/61483
21473 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
21474 variable 'size'; calculate 'size' right in the front; use
21475 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
21476 pcum->aapcs_stack_words.
21477
21478 2014-06-17 Nick Clifton <nickc@redhat.com>
21479
21480 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
21481 (umulhi3, mulsidi3, umulsidi3): Likewise.
21482
21483 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
21484
21485 PR middle-end/61508
21486 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
21487 check for section name.
21488
21489 2014-06-17 Richard Biener <rguenther@suse.de>
21490
21491 * tree-ssa-propagate.c: Include domwalk.h.
21492 (substitute_and_fold): Outline main worker into a domwalker ...
21493 (substitute_and_fold_dom_walker::before_dom_children): ... here.
21494 Schedule stmts we can fully propagate for removal. Remove
21495 poor-mans DCE.
21496 (substitute_and_fold): Apply a dominator walk to perform
21497 substitution. Process stmts scheduled for removal here.
21498
21499 2014-06-17 Richard Biener <rguenther@suse.de>
21500
21501 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
21502 of PHI node moving.
21503
21504 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
21505
21506 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
21507 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
21508 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21509 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
21510 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
21511 TARGET_HARD_FLOAT.
21512 (get_fpscr) : Likewise.
21513
21514 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
21515
21516 PR rtl-optimization/61325
21517 * lra-constraints.c (valid_address_p): Add forward declaration.
21518 (simplify_operand_subreg): Check address validity before and after
21519 alter_reg of memory subreg.
21520
21521 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
21522
21523 * config/i386/i386.c (decide_alg): Correctly handle
21524 maximum size of stringop algorithm.
21525
21526 2014-06-16 Yury Gribov <y.gribov@samsung.com>
21527
21528 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
21529
21530 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
21531
21532 PR rtl-optimization/61522
21533 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
21534
21535 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
21536
21537 Revert:
21538 * symtab.c (symtab_node::reset_section): New method.
21539 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21540 for localization.
21541 * cgraph.h (reset_section): Declare.
21542 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21543 do not consider comdat locals.
21544 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21545 for new symbol.
21546 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21547 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21548 reset sections of symbols dragged out of the comdats.
21549 (function_and_variable_visibility): Reset sections of
21550 localized symbols.
21551
21552 2014-06-16 Richard Biener <rguenther@suse.de>
21553
21554 PR tree-optimization/61482
21555 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
21556 [-INF(OVF), +INF(OVF)] range.
21557
21558 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21559
21560 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
21561 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21562 handling 32-bit multiplication.
21563
21564 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
21565
21566 PR middle-end/61430
21567 * lra-lives.c (process_bb_lives): Skip creating copy during
21568 insn scan when src/dest has constrained to same regno.
21569
21570 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
21571
21572 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21573 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21574
21575 2014-06-16 Yury Gribov <y.gribov@samsung.com>
21576
21577 * asan.c (check_func): New function.
21578 (maybe_create_ssa_name): Likewise.
21579 (build_check_stmt_with_calls): Likewise.
21580 (use_calls_p): Likewise.
21581 (report_error_func): Change interface.
21582 (build_check_stmt): Allow non-integer lengths; add support
21583 for new parameter.
21584 (asan_instrument): Likewise.
21585 (instrument_mem_region_access): Moved code to build_check_stmt.
21586 (instrument_derefs): Likewise.
21587 (instrument_strlen_call): Likewise.
21588 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21589 * doc/invoke.texi: Describe new parameter.
21590 * params.def: Define new parameter.
21591 * params.h: Likewise.
21592 * sanitizer.def: Describe new builtins.
21593
21594 2014-06-16 Richard Biener <rguenther@suse.de>
21595
21596 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21597 Make all defs available at the end.
21598 (eliminate): If we remove a PHI node schedule cfg-cleanup.
21599
21600 2014-06-18 Jakub Jelinek <jakub@redhat.com>
21601
21602 PR plugins/45078
21603 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21604
21605 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
21606
21607 PR bootstrap/61516
21608 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21609 initialization. Replace remaining use of uid.
21610
21611 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
21612
21613 * c-family/c-common.c (handle_tls_model_attribute): Use
21614 set_decl_tls_model.
21615 * c-family/c-common.c (handle_tls_model_attribute): Use
21616 set_decl_tls_model.
21617 * cgraph.h (struct varpool_node): Add tls_model.
21618 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21619 * tree.h (DECL_TLS_MODEL): Update.
21620 (DECL_THREAD_LOCAL_P): Check that variable is static.
21621 (decl_tls_model): Declare.
21622 (set_decl_tls_model): Declare.
21623 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21624 set symbol prorperties.
21625 (get_emutls_init_templ_addr): Cleanup.
21626 (new_emutls_decl): Update.
21627 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21628 (lto_input_varpool_node): Likewise.
21629 * lto-streamer-out.c (hash_tree): Likewise.
21630 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21631 not stream DECL_TLS_MODEL.
21632 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21633 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21634
21635 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21636
21637 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21638
21639 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21640
21641 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21642 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21643 lists.
21644 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21645 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21646 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21647 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21648 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21649 (df_get_artificial_defs, df_get_artificial_uses)
21650 (df_single_def, df_single_use): Update accordingly.
21651 (df_refs_chain_dump): Take the first element in a linked list as
21652 parameter, rather than a pointer to an array of pointers.
21653 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21654 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21655 (df_chain_create_bb_process_use): Likewise.
21656 (df_md_bb_local_compute_process_def): Likewise.
21657 * fwprop.c (process_defs, process_uses): Likewise.
21658 (register_active_defs, update_uses): Likewise.
21659 (forward_propagate_asm): Update for new df_ref linking.
21660 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21661 (df_null_ref_rec, df_null_mw_rec): Likewise.
21662 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21663 explicitly.
21664 (df_scan_free_bb_info): Remove check for null artificial_defs.
21665 (df_install_ref_incremental): Adjust for new df_ref linking.
21666 Use a single-element insertion rather than a full sort.
21667 (df_ref_chain_delete_du_chain): Take the first element
21668 in a linked list as parameter, rather than a pointer to an array of
21669 pointers.
21670 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21671 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21672 (df_insn_info_delete): Remove check for null defs and call to
21673 df_scan_free_mws_vec.
21674 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21675 null rather than df_null_*_rec.
21676 (df_insn_rescan_debug_internal): Likewise, and update null
21677 checks in the same way. Remove check for null defs.
21678 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21679 Move a single element rather doing a full sort.
21680 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21681 linking.
21682 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
21683 Initialize df_ref and df_mw_hardreg lists to null rather than
21684 df_null_*_rec.
21685 (df_ref_compare): Take df_refs as parameter, transferring the
21686 old interface to...
21687 (df_ref_ptr_compare): ...this new function.
21688 (df_sort_and_compress_refs): Update accordingly.
21689 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21690 old interface to...
21691 (df_mw_ptr_compare): ...this new function.
21692 (df_sort_and_compress_mws): Update accordingly.
21693 (df_install_refs, df_install_mws): Return a linked list rather than
21694 an array of pointers.
21695 (df_refs_add_to_chains): Assert that old lists are empty rather
21696 than freeing them.
21697 (df_insn_refs_verify): Don't handle null defs speciailly.
21698 * web.c (union_match_dups): Update for new df_ref linking.
21699
21700 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21701
21702 * df.h (df_ref_create, df_ref_remove): Delete.
21703 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21704 (df_ref_remove): Likewise.
21705
21706 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21707
21708 * df.h (df_single_def, df_single_use): New functions.
21709 * ira.c (find_moveable_pseudos): Use them.
21710
21711 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21712
21713 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21714 * df-problems.c (df_note_bb_compute): Use it.
21715 * regstat.c (regstat_bb_compute_ri): Likewise.
21716
21717 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21718
21719 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21720 * cse.c (cse_extended_basic_block): Use them.
21721 * dce.c (mark_artificial_use): Likewise.
21722 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21723 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21724 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21725 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21726 (df_simulate_initialize_backwards): Likewise.
21727 (df_simulate_finalize_backwards): Likewise.
21728 (df_simulate_initialize_forwards): Likewise.
21729 (df_md_simulate_artificial_defs_at_top): Likewise.
21730 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21731 * regrename.c (init_rename_info): Likewise.
21732 * regstat.c (regstat_bb_compute_ri): Likewise.
21733 (regstat_bb_compute_calls_crossed): Likewise.
21734
21735 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21736
21737 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21738 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21739 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21740 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21741 * combine.c (create_log_links): Likewise.
21742 * compare-elim.c (find_flags_uses_in_insn): Likewise.
21743 (try_eliminate_compare): Likewise.
21744 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21745 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21746 (remove_reg_equal_equiv_notes_for_defs): Likewise.
21747 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21748 (word_dce_process_block, dce_process_block): Likewise.
21749 * ddg.c (def_has_ccmode_p): Likewise.
21750 * df-core.c (df_bb_regno_first_def_find): Likewise.
21751 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21752 * df-problems.c (df_rd_simulate_one_insn): Likewise.
21753 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21754 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21755 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21756 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21757 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21758 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21759 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21760 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21761 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21762 * fwprop.c (local_ref_killed_between_p): Likewise.
21763 (all_uses_available_at, free_load_extend): Likewise.
21764 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21765 * hw-doloop.c (scan_loop): Likewise.
21766 * ifcvt.c (dead_or_predicable): Likewise.
21767 * init-regs.c (initialize_uninitialized_regs): Likewise.
21768 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21769 (process_bb_node_lives): Likewise.
21770 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21771 (find_moveable_pseudos): Likewise.
21772 * loop-invariant.c (check_dependencies, record_uses): Likewise.
21773 * recog.c (peep2_find_free_register): Likewise.
21774 * ree.c (get_defs): Likewise.
21775 * regstat.c (regstat_bb_compute_ri): Likewise.
21776 (regstat_bb_compute_calls_crossed): Likewise.
21777 * sched-deps.c (find_inc, find_mem): Likewise.
21778 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21779 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21780 * shrink-wrap.c (requires_stack_frame_p): Likewise.
21781 (prepare_shrink_wrap): Likewise.
21782 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21783 * web.c (union_defs, pass_web::execute): Likewise.
21784 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21785 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21786
21787 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
21788
21789 * lra-assign.c (assign_by_spills): Add code to assign vector regs
21790 to inheritance pseudos.
21791 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21792
21793 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
21794
21795 PR target/61415
21796 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21797 (BU_MISC_2): Rename to ...
21798 (BU_LDBL128_2): ... this.
21799 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21800 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21801 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21802 RS6000_BTM_LDBL128.
21803 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21804 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21805 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21806 (unpacktf_1): Likewise.
21807 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21808 (__builtin_longdouble_dw1): Likewise.
21809 * doc/sourcebuild.texi (longdouble128): Document.
21810
21811 2014-06-13 Jeff Law <law@redhat.com>
21812
21813 PR rtl-optimization/61094
21814 PR rtl-optimization/61446
21815 * ree.c (combine_reaching_defs): Get the mode for the copy from
21816 the extension insn rather than the defining insn.
21817
21818 2014-06-13 Dehao Chen <dehao@google.com>
21819
21820 * dwarf2out.c (add_linkage_name): Emit more linkage name.
21821
21822 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
21823
21824 * doc/install.texi (--enable-linker-plugin-configure-flags)
21825 (--enable-linker-plugin-flags): Document new flags.
21826
21827 2014-06-13 Martin Jambor <mjambor@suse.cz>
21828
21829 PR ipa/61186
21830 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21831 cache_token if returning early.
21832
21833 2014-06-13 Nick Clifton <nickc@redhat.com>
21834
21835 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21836 requested alignment is active.
21837 (LABEL_ALIGN): Likewise.
21838 (LOOP_ALIGN): Likewise.
21839
21840 2014-06-13 Richard Biener <rguenther@suse.de>
21841
21842 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21843 Rewrite to propagate the VN result into all uses where
21844 possible and to remove stmts becoming dead because of that.
21845 (eliminate): Generalize stmt removal handling, remove in
21846 reverse dominator order to support proper debug stmt
21847 generation. Update stmts before removing stmts.
21848 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21849
21850 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21851
21852 PR tree-optimization/61375
21853 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21854 symbolic number cannot be represented in an uint64_t.
21855 (find_bswap_or_nop_1): Likewise.
21856
21857 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21858
21859 * symtab.c (symtab_node::reset_section): New method.
21860 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21861 for localization.
21862 * cgraph.h (reset_section): Declare.
21863 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21864 do not consider comdat locals.
21865 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21866 for new symbol.
21867 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21868 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21869 reset sections of symbols dragged out of the comdats.
21870 (function_and_variable_visibility): Reset sections of
21871 localized symbols.
21872
21873 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21874
21875 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21876 to use symtab and decl_binds_to_current_def_p
21877 * tree-vectorizer.c (increase_alignment): Increase alignment
21878 of alias target, too.
21879
21880 2014-06-12 Jakub Jelinek <jakub@redhat.com>
21881
21882 PR middle-end/61486
21883 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21884 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21885 if outer combined construct is distribute.
21886 (gimplify_omp_for): For OMP_DISTRIBUTE set
21887 gimplify_omp_ctxp->distribute.
21888 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21889 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21890 mapping into decl map.
21891
21892 2014-06-12 Jason Merrill <jason@redhat.com>
21893
21894 * common.opt (fabi-version): Change default to 0.
21895
21896 2014-06-12 Jason Merrill <jason@redhat.com>
21897
21898 * toplev.c (process_options): Reject -fabi-version=1.
21899
21900 2014-06-12 Jeff Law <law@redhat.com>
21901
21902 PR tree-optimization/61009
21903 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21904 value when we stop processing a block due to problematic PHIs.
21905
21906 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
21907
21908 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21909 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21910 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21911 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21912 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21913 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21914 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21915 are not in the spec.
21916
21917 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
21918
21919 PR target/59843
21920 * config/aarch64/aarch64-modes.def: Add V1DFmode.
21921 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21922 Support V1DFmode.
21923
21924 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
21925
21926 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21927
21928 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
21929
21930 PR target/61443
21931 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21932 loading from address spaces.
21933
21934 2014-06-12 Martin Liska <mliska@suse.cz>
21935
21936 PR ipa/61462
21937 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21938 statement is reachable.
21939
21940 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21941
21942 * symtab.c (section_hash): New hash.
21943 (symtab_unregister_node): Clear section before freeing.
21944 (hash_section_hash_entry): New haser.
21945 (eq_sections): New function.
21946 (symtab_node::set_section_for_node): New method.
21947 (set_section_1): Update.
21948 (symtab_node::set_section): Take string instead of tree as parameter.
21949 (symtab_resolve_alias): Update.
21950 * cgraph.h (section_hash_entry_d): New structure.
21951 (section_hash_entry): New typedef.
21952 (cgraph_node): Change comdat_group_ to x_comdat_group,
21953 change section_ to x_section and turn into section_hash_entry;
21954 update accestors; put set_section_for_node offline.
21955 * tree.c (decl_section_name): Turn into string.
21956 (set_decl_section_name): Change parameter to be string.
21957 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21958 * sdbout.c (sdbout_one_type): Update.
21959 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21960 * varasm.c (IN_NAMED_SECTION, get_named_section,
21961 resolve_unique_section, hot_function_section, get_named_text_section,
21962 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21963 make_decl_rtl, default_unique_section): Update.
21964 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21965 (c6x_elf_unique_section): Update.
21966 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21967 * config/pa/pa.c (pa_function_section): Update.
21968 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21969 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21970 * config/arc/arc.c (arc_in_small_data_p): Update.
21971 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21972 * config/mcore/mcore.c (mcore_unique_section): Update.
21973 * config/mips/mips.c (mips16_build_function_stub): Update.
21974 (mips16_build_call_stub): Update.
21975 (mips_function_rodata_section): Update.
21976 (mips_in_small_data_p): Update.
21977 * config/score/score.c (score_in_small_data_p): Update.
21978 * config/rx/rx.c (rx_in_small_data): Update.
21979 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21980 (rs6000_xcoff_asm_named_section): Update.
21981 (rs6000_xcoff_unique_section): Update.
21982 * config/frv/frv.c (frv_string_begins_with): Update.
21983 (frv_in_small_data_p): Update.
21984 * config/v850/v850.c (v850_encode_data_area): Update.
21985 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21986 (bfin_handle_l1_data_attribute): Update.
21987 (bfin_handle_l2_attribute): Update.
21988 * config/mep/mep.c (mep_unique_section): Update.
21989 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21990 Update.
21991 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21992 (h8300_handle_tiny_data_attribute): Update.
21993 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21994 (m32r_in_small_data_p): Update.
21995 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21996 * config/i386/i386.c (ix86_in_large_data_p): Update.
21997 * config/i386/winnt.c (i386_pe_unique_section): Update.
21998 * config/darwin.c (darwin_function_section): Update.
21999 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
22000 * tree-emutls.c (get_emutls_init_templ_addr): Update.
22001 (new_emutls_decl): Update.
22002 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
22003 input_varpool_node): Update.
22004 (ead_string_cst): Turn to ...
22005 (read_string): ... this one.
22006 * dwarf2out.c (secname_for_decl): Update.
22007 * asan.c (asan_protect_global): Update.
22008
22009 2014-06-11 DJ Delorie <dj@redhat.com>
22010
22011 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
22012 cache lines.
22013 * config/rx/rx.c (rx_option_override): Likewise.
22014 (rx_align_for_label): Likewise.
22015
22016 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
22017
22018 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
22019
22020 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
22021 prototype.
22022
22023 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
22024
22025 * common.md: New file.
22026 * doc/md.texi: Update description of generic, machine-independent
22027 constraints.
22028 * config/s390/constraints.md (e): Delete.
22029 * Makefile.in (md_file): Include common.md.
22030 * config/m32c/t-m32c (md_file): Likewise.
22031 * genpreds.c (general_mem): New array.
22032 (generic_constraint_letters): Remove constraints now defined by
22033 common.md.
22034 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22035 Allow the first character to be '<' or '>' as well.
22036 * genoutput.c (general_mem): New array.
22037 (indep_constraints): Remove constraints now defined by common.md.
22038 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
22039 Remove special handling of 'm'.
22040 * ira-costs.c (record_reg_classes): Remove special handling of
22041 constraints now defined by common.md.
22042 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22043 * ira-lives.c (single_reg_class): Likewise.
22044 (ira_implicitly_set_insn_hard_regs): Likewise.
22045 * lra-constraints.c (reg_class_from_constraints): Likewise.
22046 (process_alt_operands, process_address, curr_insn_transform): Likewise.
22047 * postreload.c (reload_cse_simplify_operands): Likewise.
22048 * reload.c (push_secondary_reload, scratch_reload_class)
22049 (find_reloads, alternative_allows_const_pool_ref): Likewise.
22050 * reload1.c (maybe_fix_stack_asms): Likewise.
22051 * targhooks.c (default_secondary_reload): Likewise.
22052 * stmt.c (parse_output_constraint): Likewise.
22053 * recog.c (preprocess_constraints): Likewise.
22054 (constrain_operands, peep2_find_free_register): Likewise.
22055 (asm_operand_ok): Likewise, but add a comment saying why 'o'
22056 must be handled specially.
22057
22058 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
22059
22060 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
22061 * genpreds.c (have_const_dbl_constraints): Delete.
22062 (add_constraint): Don't set it.
22063 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
22064 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
22065 constraints using the lookup_constraint logic.
22066 * ira-lives.c (single_reg_class): Likewise.
22067 * ira.c (ira_setup_alts): Likewise.
22068 * lra-constraints.c (process_alt_operands): Likewise.
22069 * recog.c (asm_operand_ok, constrain_operands): Likewise.
22070 * reload.c (find_reloads): Likewise.
22071
22072 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
22073
22074 * genpreds.c (const_int_start, const_int_end): New variables.
22075 (choose_enum_order): Output CONST_INT constraints before memory
22076 constraints.
22077 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
22078 Add CT_CONST_INT.
22079 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
22080 * ira.c (ira_setup_alts): Likewise.
22081 * lra-constraints.c (process_alt_operands): Likewise.
22082 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22083 * reload.c (find_reloads): Likewise.
22084
22085 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
22086
22087 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
22088 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
22089 * recog.c (preprocess_constraints): Update accordingly.
22090
22091 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
22092
22093 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
22094 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
22095 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
22096 * genpreds.c (print_type_tree): New function.
22097 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
22098 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
22099 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
22100 Write out enum constraint_type and get_constraint_type.
22101 * lra-constraints.c (satisfies_memory_constraint_p): Take a
22102 constraint_num rather than a constraint string.
22103 (satisfies_address_constraint_p): Likewise.
22104 (reg_class_from_constraints): Avoid old constraint macros.
22105 (process_alt_operands, process_address_1): Likewise.
22106 (curr_insn_transform): Likewise.
22107 * ira-costs.c (record_reg_classes): Likewise.
22108 (record_operand_costs): Likewise.
22109 * ira-lives.c (single_reg_class): Likewise.
22110 (ira_implicitly_set_insn_hard_regs): Likewise.
22111 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22112 * postreload.c (reload_cse_simplify_operands): Likewise.
22113 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22114 (constrain_operands, peep2_find_free_register): Likewise.
22115 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
22116 (find_reloads, alternative_allows_const_pool_ref): Likewise.
22117 * reload1.c (maybe_fix_stack_asms): Likewise.
22118 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
22119 * targhooks.c (default_secondary_reload): Likewise.
22120 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
22121 to EXTRA_CONSTRAINT_STR.
22122 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
22123
22124 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
22125
22126 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
22127 (write_constraint_satisfied_p_array): ...this new function.
22128 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
22129 an array.
22130 (write_insn_preds_c): Update accordingly.
22131
22132 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
22133
22134 * genpreds.c (write_lookup_constraint): Rename to...
22135 (write_lookup_constraint_1): ...this.
22136 (write_lookup_constraint_array): New function.
22137 (write_tm_preds_h): Define lookup_constraint as an inline function
22138 that uses write_lookup_constraint_array where possible.
22139 (write_insn_preds_c): Update for the changes above.
22140
22141 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
22142
22143 * doc/md.texi (regclass_for_constraint): Rename to...
22144 (reg_class_for_constraint): ...this.
22145 * genpreds.c (num_constraints, enum_order, register_start)
22146 (register_end, satisfied_start, memory_start, memory_end)
22147 (address_start, address_end): New variables.
22148 (add_constraint): Count the number of constraints.
22149 (choose_enum_order): New function.
22150 (write_enum_constraint_num): Iterate over enum_order.
22151 (write_regclass_for_constraint): Rename to...
22152 (write_reg_class_for_constraint_1): ...this and update output
22153 accordingly.
22154 (write_constraint_satisfied_p): Rename to...
22155 (write_constraint_satisfied_p_1): ...this and update output
22156 accordingly. Do nothing if all extra constraints are register
22157 constraints.
22158 (write_insn_extra_memory_constraint): Delete.
22159 (write_insn_extra_address_constraint): Delete.
22160 (write_range_function): New function.
22161 (write_tm_preds_h): Define constraint_satisfied_p and
22162 reg_class_for_constraint as inline functions that do a range check
22163 before calling the out-of-line function. Use write_range_function
22164 to implement insn_extra_{register,memory,address}_constraint,
22165 the first of which is new.
22166 (write_insn_preds_c): Update after above changes to write_* functions.
22167 (main): Call choose_enum_order.
22168
22169 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
22170
22171 PR tree-optimization/61306
22172 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
22173 expression instead of its size.
22174 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
22175 false to prevent optimization when the result is unpredictable due to
22176 arithmetic right shift of signed type with highest byte is set.
22177 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
22178 (init_symbolic_number): Likewise.
22179 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
22180 when the result is unpredictable due to sign extension.
22181
22182 2014-06-11 Terry Guo <terry.guo@arm.com>
22183
22184 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
22185 (*thumb1_addsi3): Ditto.
22186 (*thumb_subdi3): Ditto.
22187 (thumb1_subsi3_insn): Ditto.
22188 (*thumb_mulsi3): Ditto.
22189 (*thumb_mulsi3_v6): Ditto.
22190 (*thumb1_andsi3_insn): Ditto.
22191 (thumb1_bicsi3): Ditto.
22192 (*thumb1_iorsi3_insn): Ditto.
22193 (*thumb1_xorsi3_insn): Ditto.
22194 (*thumb1_ashlsi3): Ditto.
22195 (*thumb1_ashrsi3): Ditto.
22196 (*thumb1_lshrsi3): Ditto.
22197 (*thumb1_rotrsi3): Ditto.
22198 (*thumb1_negdi2): Ditto.
22199 (*thumb1_negsi2): Ditto.
22200 (*thumb1_abssi2): Ditto.
22201 (*thumb1_neg_abssi2): Ditto.
22202 (*thumb1_one_cmplsi2): Ditto.
22203 (*thumb1_zero_extendhisi2): Ditto.
22204 (*thumb1_zero_extendqisi2): Ditto.
22205 (*thumb1_zero_extendqisi2_v6): Ditto.
22206 (thumb1_extendhisi2): Ditto.
22207 (thumb1_extendqisi2): Ditto.
22208 (*thumb1_movdi_insn): Ditto.
22209 (*thumb1_movsi_insn): Ditto.
22210 (*thumb1_movhi_insn): Ditto.
22211 (thumb_movhi_clobber): Ditto.
22212 (*thumb1_movqi_insn): Ditto.
22213 (*thumb1_movhf): Ditto.
22214 (*thumb1_movsf_insn): Ditto.
22215 (*thumb_movdf_insn): Ditto.
22216 (movmem12b): Ditto.
22217 (movmem8b): Ditto.
22218 (cbranchqi4): Ditto.
22219 (cbranchsi4_insn): Ditto.
22220 (cbranchsi4_scratch): Ditto.
22221 (*negated_cbranchsi4): Ditto.
22222 (*tbit_cbranch): Ditto.
22223 (*tlobits_cbranch): Ditto.
22224 (*tstsi3_cbranch): Ditto.
22225 (*cbranchne_decr1): Ditto.
22226 (*addsi3_cbranch): Ditto.
22227 (*addsi3_cbranch_scratch): Ditto.
22228 (*thumb_cmpdi_zero): Ditto.
22229 (cstoresi_eq0_thumb1): Ditto.
22230 (cstoresi_ne0_thumb1): Ditto.
22231 (*cstoresi_eq0_thumb1_insn): Ditto.
22232 (*cstoresi_ne0_thumb1_insn): Ditto.
22233 (cstoresi_nltu_thumb1): Ditto.
22234 (cstoresi_ltu_thumb1): Ditto.
22235 (thumb1_addsi3_addgeu): Ditto.
22236 (*thumb_jump): Ditto.
22237 (*call_reg_thumb1_v5): Ditto.
22238 (*call_reg_thumb1): Ditto.
22239 (*call_value_reg_thumb1_v5): Ditto.
22240 (*call_value_reg_thumb1): Ditto.
22241 (*call_insn): Ditto.
22242 (*call_value_insn): Ditto.
22243 (thumb1_casesi_internal_pic): Ditto.
22244 (thumb1_casesi_dispatch): Ditto.
22245 (*thumb1_indirect_jump): Ditto.
22246 (prologue_thumb1_interwork): Ditto.
22247 (*epilogue_insns): Ditto.
22248 (consttable_1): Ditto.
22249 (consttable_2): Ditto.
22250 (tablejump): Ditto.
22251 (*thumb1_tablejump): Ditto.
22252 (thumb_eh_return): Ditto.
22253 (define_peephole2): Two of them are thumb1 only and got moved into
22254 new file thumb1.md.
22255 (define_split): Six of them are thumb1 only and got moved into new
22256 file thumb1.md.
22257 * config/arm/thumb1.md: New file comprised of above thumb1 only
22258 patterns.
22259
22260 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22261
22262 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
22263 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
22264 dependencies.
22265 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
22266 (aarch64_crc_builtin_datum): New struct.
22267 (aarch64_crc_builtin_data): New.
22268 (aarch64_init_crc32_builtins): New function.
22269 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
22270 (aarch64_crc32_expand_builtin): New.
22271 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
22272 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
22273 __ARM_FEATURE_CRC32 when appropriate.
22274 (TARGET_CRC32): Define.
22275 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
22276 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
22277 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
22278 (aarch64_<crc_variant>): New pattern.
22279 * config/aarch64/arm_acle.h: New file.
22280 * config/aarch64/iterators.md (CRC): New int iterator.
22281 (crc_variant, crc_mode): New int attributes.
22282 * doc/aarch64-acle-intrinsics.texi: New file.
22283 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
22284 Include aarch64-acle-intrinsics.texi.
22285
22286 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
22287
22288 * tree-vect-data-refs.c (vect_grouped_store_supported): New
22289 check for stores group of length 3.
22290 (vect_permute_store_chain): New permutations for stores group of
22291 length 3.
22292 * tree-vect-stmts.c (vect_model_store_cost): Change cost
22293 of vec_perm_shuffle for the new permutations.
22294
22295 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
22296
22297 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
22298 table rewriting temporarily on targets not supporting ONE_ONLY.
22299
22300 2014-06-11 Richard Biener <rguenther@suse.de>
22301
22302 PR middle-end/61437
22303 Revert
22304 2014-06-04 Richard Biener <rguenther@suse.de>
22305
22306 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22307 TREE_PUBLIC and DECL_EXTERNAL decls.
22308
22309 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
22310
22311 * varasm.c (set_implicit_section): New function.
22312 (resolve_unique_section): Use it to set implicit section
22313 for aliases, too.
22314 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
22315 (default_function_section): Likewise.
22316 (decl_binds_to_current_def_p): Constify argument.
22317 * varasm.h (decl_binds_to_current_def_p): Update prototype.
22318 * asan.c (asan_protect_global): Use
22319 symtab_get_node (decl)->implicit_section.
22320 * symtab.c (dump_symtab_base): Dump implicit sections.
22321 (verify_symtab_base): Verify sanity of sectoins and comdats.
22322 (symtab_resolve_alias): Alias share the section of its target.
22323 (set_section_1): New function.
22324 (symtab_node::set_section): Move here, recurse to aliases.
22325 (verify_symtab): Check for duplicated symtab lists.
22326 * tree-core.h (implicit_section_name_p): Remove.
22327 * tree-vect-data-refs.c: Include varasm.h.
22328 (vect_can_force_dr_alignment_p): Fix conditional on when
22329 decl bints to current definition; use
22330 symtab_get_node (decl)->implicit_section.
22331 * cgraph.c (cgraph_make_node_local_1): Fix section set.
22332 * cgraph.h (struct symtab_node): Add implicit_section.
22333 (set_section): Rename to ...
22334 (set_section_for_node): ... this one.
22335 (set_section): Declare.
22336 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
22337 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22338 input_overwrite_node, input_varpool_node): Stream implicit_section.
22339 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
22340 removal; it will fail in LTO.
22341
22342 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22343
22344 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
22345 Change second alternative type to f_mcr.
22346 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
22347 and 12th alternatives' types to f_mcr and f_mrc.
22348 (*movdi_aarch64): Same for 12th and 13th alternatives.
22349 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
22350 (aarch64_movtilow_tilow): Change type to fmov.
22351
22352 2014-06-10 Jiong Wang <jiong.wang@arm.com>
22353
22354 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
22355 (aarch64_save_or_restore_callee_save_registers): Fix layout.
22356
22357 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22358
22359 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
22360 New expander.
22361 (aarch64_sqrdmulh_lane<mode>): Likewise.
22362 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22363 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22364 (aarch64_sqdmulh_laneq<mode>): New expander.
22365 (aarch64_sqrdmulh_laneq<mode>): Likewise.
22366 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
22367 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
22368 (aarch64_sqdmulh_lane<mode>): New expander.
22369 (aarch64_sqrdmulh_lane<mode>): Likewise.
22370 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22371 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22372 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
22373 (aarch64_sqdmlal_laneq<mode>): Likewise.
22374 (aarch64_sqdmlsl_lane<mode>): Likewise.
22375 (aarch64_sqdmlsl_laneq<mode>): Likewise.
22376 (aarch64_sqdmlal2_lane<mode>): Likewise.
22377 (aarch64_sqdmlal2_laneq<mode>): Likewise.
22378 (aarch64_sqdmlsl2_lane<mode>): Likewise.
22379 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
22380 (aarch64_sqdmull_lane<mode>): Likewise.
22381 (aarch64_sqdmull_laneq<mode>): Likewise.
22382 (aarch64_sqdmull2_lane<mode>): Likewise.
22383 (aarch64_sqdmull2_laneq<mode>): Likewise.
22384
22385 2014-06-10 Richard Biener <rguenther@suse.de>
22386
22387 PR tree-optimization/61438
22388 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
22389 (eliminate_dom_walker::before_dom_children): Only try to inhibit
22390 insertion of IVs if running PRE.
22391 (eliminate): Adjust.
22392 (pass_pre::execute): Likewise.
22393 (pass_fre::execute): Likewise.
22394
22395 2014-06-10 Richard Biener <rguenther@suse.de>
22396
22397 PR middle-end/61456
22398 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22399 Do not use the main variant for the type comparison.
22400 (ncr_compar): Likewise.
22401 (nonoverlapping_component_refs_p): Likewise.
22402
22403 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
22404
22405 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
22406 REG_CFA_RESTORE mode.
22407
22408 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
22409
22410 * config/i386/i386.c (expand_vec_perm_pblendv): New.
22411 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
22412 expand_vec_perm_pblendv.
22413
22414 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22415
22416 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
22417 available.
22418 Simplify description of __crc32d and __crc32cd intrinsics.
22419 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
22420 availability.
22421
22422 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
22423
22424 PR lto/61334
22425 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
22426 * config.in: Regenerate.
22427 * configure: Likewise.
22428
22429 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
22430
22431 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
22432 and public vars.
22433 (intersect_static_var_sets): Remove.
22434 (propagate): Do not prune local statics.
22435
22436 2014-06-10 Jakub Jelinek <jakub@redhat.com>
22437
22438 PR fortran/60928
22439 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
22440 Set lastprivate_firstprivate even if omp_private_outer_ref
22441 langhook returns true.
22442 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
22443 langhook, call unshare_expr on new_var and call
22444 build_outer_var_ref to get the last argument.
22445
22446 2014-06-10 Marek Polacek <polacek@redhat.com>
22447
22448 PR c/60988
22449 * doc/extend.texi: Add cindex for transparent_union.
22450
22451 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
22452
22453 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
22454 init_symbolic_number ().
22455
22456 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
22457
22458 PR middle-end/61141
22459 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
22460 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
22461 (verify_rtl_sharing): Likewise.
22462
22463 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
22464
22465 PR c++/54442
22466 * tree.c (build_qualified_type): Use a canonical type for
22467 TYPE_CANONICAL.
22468
22469 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22470
22471 * config/arm/arm-modes.def: Remove XFmode.
22472
22473 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
22474
22475 PR target/61062
22476 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
22477 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
22478 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
22479 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
22480 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
22481 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
22482 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
22483 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
22484 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
22485
22486 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
22487
22488 * tree-core.h (tree_decl_with_vis): Remove section_name.
22489
22490 2014-06-09 Kito Cheng <kito@0xlab.org>
22491
22492 * ira.c (ira): Don't call init_caller_save if LRA enabled
22493 since LRA use its own infrastructure to handle that.
22494
22495 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22496
22497 * symtab.c (dump_symtab_base): Update dumping.
22498 (symtab_make_decl_local): Clear only DECL_COMDAT.
22499 * tree-vect-data-refs.c (Check that variable is static before
22500 tampering with sections.
22501 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
22502 (cgraph_create_virtual_clone): Likewise.
22503 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
22504 (decl_section_name, set_decl_section_name): New accessors.
22505 (find_decls_types_r): Do not walk section name
22506 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
22507 (decl_comdat_group, decl_comdat_group_id): Constify.
22508 (decl_section_name, set_decl_section_name): Update.
22509 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
22510 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
22511 (cgraph_make_node_local_1): Clear section and comdat group.
22512 * cgraph.h (set_comdat_group): Sanity check.
22513 (get_section, set_section): New.
22514 * ipa-comdats.c (ipa_comdats): Use get_section.
22515 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
22516 * lto-streamer-out.c: Do not follow section names.
22517 * c-family/c-common.c (handle_section_attribute): Update.
22518 * lto-cgraph.c (lto_output_node): Output section.
22519 (lto_output_varpool_node): Likewise.
22520 (read_comdat_group): Rename to ...
22521 (read_identifier): ... this one.
22522 (read_string_cst): New function.
22523 (input_node, input_varpool_node): Input section names.
22524 * tree-emutls.c (get_emutls_init_templ_addr): Update.
22525 (new_emutls_decl): Update.
22526 (secname_for_decl): Check section names only of static vars.
22527 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
22528 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
22529 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22530 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22531 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
22532 * config/mcore/mcore.c (mcore_unique_section): Likewise.
22533 * config/mips/mips.c (mips16_build_function_stub): Likewise.
22534 * config/v850/v850.c (v850_insert_attributes): Likewise.
22535 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
22536 Likewise.
22537 (h8300_handle_tiny_data_attribute): Likewise.
22538 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
22539 (bfin_handle_l2_attribute): Likewise.
22540
22541 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22542
22543 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
22544 remove static initializer.
22545
22546 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22547
22548 * varasm.c (use_blocks_for_decl_p): Check symbol table
22549 instead of alias attribute.
22550 (place_block_symbol): Recurse on aliases.
22551
22552 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22553
22554 * ipa-visibility.c: Include varasm.h
22555 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
22556
22557 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22558
22559 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
22560 outputting aliases.
22561
22562 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
22563
22564 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22565 from test_insn into GGC space escape via SET_SRC.
22566
22567 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
22568
22569 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22570 call statement, if any.
22571 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22572 statements, if any. Tidy up.
22573
22574 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22575
22576 PR target/61431
22577 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22578 iterators, VSX_D that handles 64-bit types, and VSX_LE that
22579 handles swapping the two 64-bit double words on little endian
22580 systems. Include V1TImode and optionally TImode in VSX_LE so that
22581 these types are properly swapped. Change all of the insns and
22582 splits that do the 64-bit swaps to use VSX_LE.
22583 (vsx_le_perm_load_<mode>): Likewise.
22584 (vsx_le_perm_store_<mode>): Likewise.
22585 (splitters for little endian memory operations): Likewise.
22586 (vsx_xxpermdi2_le_<mode>): Likewise.
22587 (vsx_lxvd2x2_le_<mode>): Likewise.
22588 (vsx_stxvd2x2_le_<mode>): Likewise.
22589
22590 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
22591
22592 PR target/61423
22593 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22594 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22595 and corresponding splitters. Zero extend general register
22596 or memory input operand to XMM temporary. Enable for
22597 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22598 (floatunssi<mode>2): Update expander predicate.
22599
22600 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
22601
22602 PR rtl-optimization/61325
22603 * lra-constraints.c (process_address_1): Check scale equal to one
22604 to prevent transformation: base + scale * index => base + new_reg.
22605
22606 2014-06-06 Richard Biener <rguenther@suse.de>
22607
22608 PR tree-optimization/59299
22609 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22610 a def operand.
22611 (nearest_common_dominator_of_uses): Likewise.
22612 (statement_sink_location): Adjust. Support sinking loads.
22613
22614 2014-06-06 Martin Jambor <mjambor@suse.cz>
22615
22616 * ipa-prop.c (get_place_in_agg_contents_list): New function.
22617 (build_agg_jump_func_from_list): Likewise.
22618 (determine_known_aggregate_parts): Renamed to
22619 determine_locally_known_aggregate_parts. Moved some functionality
22620 to the two functions above, removed bound checks.
22621
22622 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
22623
22624 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22625 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22626 (aarch64_progress_pointer): Likewise.
22627 (aarch64_copy_one_part_and_move_pointers): Likewise.
22628 (aarch64_expand_movmen): Likewise.
22629 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22630 * config/aarch64/aarch64.md (movmem<mode>): New.
22631
22632 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
22633
22634 * targhooks.c (default_add_stmt_cost): Call target specific
22635 hook instead of default one.
22636
22637 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22638
22639 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22640 endianness instead of host endianness.
22641 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22642 comments.
22643
22644 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22645
22646 PR debug/53927
22647 * function.c (instantiate_decls): Process the saved static chain.
22648 (expand_function_start): If not optimizing, save the static chain
22649 onto the stack.
22650 * tree-nested.c (convert_all_function_calls): Always create the static
22651 chain for nested functions if not optimizing.
22652
22653 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22654
22655 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22656
22657 2014-06-06 Richard Biener <rguenther@suse.de>
22658
22659 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22660 (construct_init_block): Likewise.
22661 (construct_exit_block): Likewise.
22662 (pass_expand::execute): Likewise.
22663 * graphite.c (graphite_transforms): Replace check for current_loops
22664 with a check for > 1 loops.
22665 (pass_graphite_transforms::execute): Adjust.
22666 * ipa-split.c (split_function): Remove check for current_loops.
22667 * omp-low.c (expand_parallel_call): Likewise.
22668 (expand_omp_for_init_counts): Likewise.
22669 (extract_omp_for_update_vars): Likewise.
22670 (expand_omp_for_generic): Likewise.
22671 (expand_omp_sections): Likewise.
22672 (expand_omp_target): Likewise.
22673 * tracer.c (tail_duplicate): Likewise.
22674 (pass_tracer::execute): Likewise.
22675 * trans-mem.c (expand_transaction): Likewise.
22676 * tree-complex.c (expand_complex_div_wide): Likewise.
22677 * tree-eh.c (lower_resx): Likewise.
22678 (cleanup_empty_eh_merge_phis): Likewise.
22679 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22680 current_loops with a check for > 1 loops.
22681 (pass_predcom::execute): Adjust.
22682 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22683 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22684 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22685 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22686 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22687 * tree-switch-conversion.c (process_switch): Likewise.
22688 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22689 * tree-vrp.c (vrp_visit_phi_node): Likewise.
22690 (execute_vrp): Likewise.
22691 * ubsan.c (ubsan_expand_null_ifn): Likewise.
22692
22693 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22694
22695 * rtl.h (insn_location): Declare.
22696 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22697 with UNKNOWN_LOCATION.
22698 * emit-rtl.c (insn_location): New function.
22699 * final.c (notice_source_line): Check that the instruction has a
22700 location before retrieving it and use insn_location.
22701 * modulo-sched.c (loop_single_full_bb_p): Likewise.
22702 * print-rtl.c (print_rtx): Likewise.
22703
22704 2014-06-06 Richard Biener <rguenther@suse.de>
22705
22706 * passes.def: Move 2nd VRP pass before phi-only-cprop.
22707
22708 2014-06-06 Christian Bruel <christian.bruel@st.com>
22709
22710 PR tree-optimization/43934
22711 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22712 cost.
22713
22714 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
22715
22716 * ira-lives.c (single_reg_class): Add missing break. Explicitly
22717 return NO_REGS for extra address and memory constraints. Handle
22718 operands that match (or are equivalent to something that matches)
22719 extra constant constraints. Ignore other non-register operands.
22720
22721 2014-06-06 Alan Modra <amodra@gmail.com>
22722
22723 PR target/61300
22724 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22725 * doc/tm.texi: Regenerate.
22726 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22727 Use throughout in place of REG_PARM_STACK_SPACE.
22728 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22729 "incoming" param. Pass to rs6000_function_parms_need_stack.
22730 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22731 prototype_p when incoming. Use function decl when incoming
22732 to handle K&R style functions.
22733 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22734 (INCOMING_REG_PARM_STACK_SPACE): Define.
22735
22736 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22737
22738 PR target/52472
22739 * cfgexpand.c (expand_debug_expr): Use address space of nested
22740 TREE_TYPE for ADDR_EXPR and MEM_REF.
22741
22742 2014-06-05 Jeff Law <law@redhat.com>
22743
22744 PR tree-optimization/61289
22745 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22746 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
22747 looking for those which match LHS. All callers changed.
22748 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22749 parameters and code which manipulated them. All callers changed.
22750 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22751 and DST_MAP parameters. Simplify invalidation code by just calling
22752 invalidate_equivalences. All callers changed.
22753 (thread_across_edge): Simplify now that we don't need to maintain
22754 the map of equivalences to invalidate.
22755
22756 2014-06-05 Kai Tietz <ktietz@redhat.com>
22757 Richard Henderson <rth@redhat.com>
22758
22759 PR target/46219
22760 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22761 checking for !TARGET_X32.
22762 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22763 (sibcall_intern): New define_insn, plus required peepholes.
22764 (sibcall_pop_intern): Likewise.
22765 (sibcall_value_intern): Likewise.
22766 (sibcall_value_pop_intern): Likewise.
22767
22768 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
22769
22770 * tree-inline.c (tree_function_versioning): Check DF info existence
22771 before accessing it.
22772
22773 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22774
22775 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22776 frame_size.
22777 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22778 aarch64_frame hard_fp_offset and frame_size.
22779 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22780 frame_size; remove original_frame_size.
22781 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22782 (aarch64_initial_elimination_offset): Remove frame_size and
22783 offset. Use aarch64_frame frame_size.
22784
22785 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22786 Jiong Wang <jiong.wang@arm.com>
22787 Renlin <renlin.li@arm.com>
22788
22789 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22790 initialization of R30 offset. Update offset. Iterate core
22791 regisers upto X30. Remove X29, X30 specific code.
22792
22793 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22794 Jiong Wang <jiong.wang@arm.com>
22795
22796 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22797 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22798 (aarch64_register_saved_on_entry): Adjust test.
22799
22800 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22801
22802 * config/aarch64/aarch64.h (machine_function): Move
22803 saved_varargs_size from here...
22804 (aarch64_frame): ... to here.
22805
22806 * config/aarch64/aarch64.c (aarch64_expand_prologue)
22807 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22808 (aarch64_initial_elimination_offset)
22809 (aarch64_setup_incoming_varargs): Adjust location of
22810 saved_varargs_size.
22811
22812 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22813
22814 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22815 layout comment.
22816
22817 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
22818 Prachi Godbole <Prachi.Godbole@imgtec.com>
22819
22820 * config/mips/mips-cpus.def: Add definition for p5600. Updated
22821 mips32r5 entry to use PROCESSOR_P5600.
22822 * config/mips/mips-tables.opt: Regenerate.
22823 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22824 * config/mips/mips.c (mips_fmadd_bypass): New function.
22825 (mips_rtx_cost_data): Add costs for p5600.
22826 (mips_issue_rate): Add support for p5600.
22827 (mips_multipass_dfa_lookahead): Likewise.
22828 * config/mips/mips.h (TUNE_P5600): New define.
22829 (TUNE_MACC_CHAINS): Add TUNE_P5600.
22830 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22831 * config/mips/mips.md: Include p5600.md.
22832 (processor): Add p5600.
22833 * config/mips/p5600.md: New file.
22834
22835 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
22836
22837 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22838 * config/i386/predicates.md (palignr_operand): New.
22839 Indicates if permutation is suitable for palignr instruction.
22840
22841 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
22842
22843 PR tree-optimization/61319
22844 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22845 stmt belongs to loop.
22846
22847 2014-06-05 Richard Biener <rguenther@suse.de>
22848
22849 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22850 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22851 (lookup_tmp_var): Adjust.
22852 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22853
22854 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22855
22856 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22857
22858 2014-06-05 Marek Polacek <polacek@redhat.com>
22859
22860 PR c/49706
22861 * doc/invoke.texi: Document -Wlogical-not-parentheses.
22862
22863 2014-06-04 Tom de Vries <tom@codesourcery.com>
22864
22865 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22866 CONST_INT.
22867
22868 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
22869
22870 PR tree-optimization/61385
22871 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22872
22873 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
22874
22875 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
22876 changed to use fatal_error.
22877 (main): Ensure lto_wrapper_cleanup is run atexit.
22878
22879 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22880
22881 * lra-constraints.c (valid_address_p): Move earlier in file.
22882 (address_eliminator): New structure.
22883 (satisfies_memory_constraint_p): New function.
22884 (satisfies_address_constraint_p): Likewise.
22885 (process_alt_operands, process_address, curr_insn_transform): Use them.
22886
22887 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22888
22889 * lra-int.h (lra_static_insn_data): Make operand_alternative a
22890 const pointer.
22891 (target_lra_int, default_target_lra_int, this_target_lra_int)
22892 (op_alt_data): Delete.
22893 * lra.h (lra_init): Delete.
22894 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22895 (init_insn_code_data_once): Remove op_alt_data handling.
22896 (finish_insn_code_data_once): Likewise.
22897 (init_op_alt_data): Delete.
22898 (get_static_insn_data): Initialize operand_alternative to null.
22899 (free_insn_recog_data): Cast operand_alternative before freeing it.
22900 (setup_operand_alternative): Take the operand_alternative as
22901 parameter and assume it isn't already cached in the static
22902 insn data.
22903 (lra_set_insn_recog_data): Update accordingly.
22904 (lra_init): Delete.
22905 * ira.c (ira_init): Don't call lra_init.
22906 * target-globals.h (this_target_lra_int): Declare.
22907 (target_globals): Remove lra_int.
22908 (restore_target_globals): Update accordingly.
22909 * target-globals.c: Don't include lra-int.h.
22910 (default_target_globals, save_target_globals): Remove lra_int.
22911
22912 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22913
22914 * recog.h (operand_alternative): Convert reg_class, reject,
22915 matched and matches into bitfields.
22916 (preprocess_constraints): New overload.
22917 (preprocess_insn_constraints): New function.
22918 (preprocess_constraints): Take the insn as parameter.
22919 (recog_op_alt): Change into a pointer.
22920 (target_recog): Add x_op_alt.
22921 * recog.c (asm_op_alt): New variable.
22922 (recog_op_alt): Change into a pointer.
22923 (preprocess_constraints): New overload, replacing the old function
22924 definition with one that doesn't use global state.
22925 (preprocess_insn_constraints): New function.
22926 (preprocess_constraints): Use them. Take the insn as parameter.
22927 Use asm_op_alt for asms.
22928 (recog_init): Free existing x_op_alt entries.
22929 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22930 pointer const.
22931 (make_early_clobber_and_input_conflicts): Likewise.
22932 (process_bb_node_lives): Pass the insn to process_constraints.
22933 * reg-stack.c (check_asm_stack_operands): Likewise.
22934 (subst_asm_stack_regs): Likewise.
22935 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22936 * regrename.c (build_def_use): Likewise.
22937 * sched-deps.c (sched_analyze_insn): Likewise.
22938 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22939 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22940 (note_invalid_constants): Likewise.
22941 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22942 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22943 const.
22944
22945 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22946
22947 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22948 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22949 alternatives.
22950 (make_early_clobber_and_input_conflicts): Likewise.
22951 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22952
22953 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22954
22955 * recog.h (alternative_class): New function.
22956 (which_op_alt): Return a const recog_op_alt.
22957 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22958 (subst_asm_stack_regs): Likewise.
22959 * config/arm/arm.c (note_invalid_constants): Likewise.
22960 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22961 the operand_alternative; use alternative class instead.
22962 * sel-sched.c (get_reg_class): Likewise.
22963 * regrename.c (build_def_use): Likewise.
22964 (hide_operands, restore_operands, record_out_operands): Update type
22965 accordingly.
22966
22967 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22968
22969 * recog.h (recog_op_alt): Convert to a flat array.
22970 (which_op_alt): New function.
22971 * recog.c (recog_op_alt): Convert to a flat array.
22972 (preprocess_constraints): Update accordingly, grouping all
22973 operands of the same alternative together, rather than the
22974 other way around.
22975 * ira-lives.c (check_and_make_def_conflict): Likewise.
22976 (make_early_clobber_and_input_conflicts): Likewise.
22977 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22978 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22979 (subst_asm_stack_regs): Likewise.
22980 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22981 * regrename.c (hide_operands, record_out_operands): Likewise.
22982 (build_def_use): Likewise.
22983 * sel-sched.c (get_reg_class): Likewise.
22984 * config/arm/arm.c (note_invalid_constants): Likewise.
22985
22986 2014-06-04 Jason Merrill <jason@redhat.com>
22987
22988 PR c++/51253
22989 PR c++/61382
22990 * gimplify.c (gimplify_arg): Non-static.
22991 * gimplify.h: Declare it.
22992
22993 2014-06-04 Richard Biener <rguenther@suse.de>
22994
22995 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22996 TREE_PUBLIC and DECL_EXTERNAL decls.
22997
22998 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22999
23000 * regcprop.c (copyprop_hardreg_forward_1): Account for
23001 HARD_REGNO_CALL_PART_CLOBBERED.
23002
23003 2014-06-04 Richard Biener <rguenther@suse.de>
23004
23005 * configure.ac: Check whether the underlying type of int64_t
23006 is long or long long.
23007 * configure: Regenerate.
23008 * config.in: Likewise.
23009 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
23010 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23011
23012 2014-06-04 Richard Biener <rguenther@suse.de>
23013
23014 PR tree-optimization/60098
23015 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
23016 we hit a kill.
23017 (dse_optimize_stmt): Simplify, now that we found a kill
23018 earlier.
23019
23020 2014-06-04 Richard Biener <rguenther@suse.de>
23021
23022 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
23023 of accesses with non-invariant address.
23024
23025 2014-06-04 Martin Liska <mliska@suse.cz>
23026
23027 * cgraph.h (cgraph_make_wrapper): New function introduced.
23028 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
23029 * ipa-inline.h (inline_analyze_function): The function is global.
23030 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
23031
23032 2014-06-04 Martin Liska <mliska@suse.cz>
23033
23034 * tree.h (private_lookup_attribute_starting): New function.
23035 (lookup_attribute_starting): Likewise.
23036 * tree.c (private_lookup_attribute_starting): Likewise.
23037
23038 2014-06-04 Martin Liska <mliska@suse.cz>
23039
23040 * cgraph.h (expand_thunk): New argument added.
23041 (address_taken_from_non_vtable_p): New global function.
23042 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
23043 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
23044 * cgraphunit.c (analyze_function): Likewise.
23045 (assemble_thunks_and_aliases): Argument added to call.
23046 (expand_thunk): New argument forces to produce GIMPLE thunk.
23047
23048 2014-06-04 Martin Liska <mliska@suse.cz>
23049
23050 * coverage.h (coverage_compute_cfg_checksum): Argument added.
23051 * coverage.c (coverage_compute_cfg_checksum): Likewise.
23052 * profile.c (branch_prob): Likewise.
23053
23054 2014-06-04 Martin Jambor <mjambor@suse.cz>
23055
23056 PR ipa/61340
23057 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
23058 handler for switch on an ipa_ref_use enum.
23059 * ipa-reference.c (analyze_function): Likewise.
23060
23061 2014-06-04 Kai Tietz <ktietz@redhat.com>
23062
23063 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
23064 from old call-instruction.
23065
23066 2014-06-04 Bin Cheng <bin.cheng@arm.com>
23067
23068 * config/aarch64/aarch64.c (aarch64_classify_address)
23069 (aarch64_legitimize_reload_address): Support full addressing modes
23070 for vector modes.
23071 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
23072 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
23073
23074 2014-06-03 Andrew Pinski <apinski@cavium.com>
23075
23076 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
23077 for OP0.
23078
23079 2014-06-03 Andrew Pinski <apinski@cavium.com>
23080
23081 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
23082 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
23083
23084 2014-06-03 Kai Tietz <ktietz@redhat.com>
23085
23086 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
23087 for 64-bit ms-abi.
23088
23089 2014-06-03 Dehao Chen <dehao@google.com>
23090
23091 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
23092 the same loop.
23093
23094 2014-06-03 Marek Polacek <polacek@redhat.com>
23095
23096 PR c/60439
23097 * doc/invoke.texi: Document -Wswitch-bool.
23098 * function.c (stack_protect_epilogue): Cast controlling expression of
23099 the switch to int.
23100 * gengtype.c (walk_type): Generate switch expression with its
23101 controlling expression cast to int.
23102
23103 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
23104
23105 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
23106 and attiny841.
23107 * config/avr/avr-tables.opt: Regenerate.
23108 * config/avr/t-multilib: Regenerate.
23109 * doc/avr-mmcu.texi: Regenerate.
23110
23111 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
23112 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23113
23114 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
23115 (ata6617c, ata664251): Add new avr35 devices.
23116 (ata6612c): Add new avr4 device.
23117 (ata6613c, ata6614q): Add new avr5 devices.
23118 * config/avr/avr-tables.opt: Regenerate.
23119 * config/avr/t-multilib: Regenerate.
23120 * doc/avr-mmcu.texi: Regenerate.
23121
23122 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
23123
23124 * gcc/config/aarch64/aarch64-builtins.c
23125 (aarch64_types_binop_ssu_qualifiers): New static data.
23126 (TYPES_BINOP_SSU): Define.
23127 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
23128 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
23129 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
23130 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
23131 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
23132 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
23133 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
23134 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
23135 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
23136 suffix to builtin function name, remove cast.
23137 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
23138 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
23139 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
23140
23141 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
23142
23143 * gcc/config/aarch64/aarch64-builtins.c
23144 (aarch64_types_binop_uus_qualifiers,
23145 aarch64_types_shift_to_unsigned_qualifiers,
23146 aarch64_types_unsigned_shiftacc_qualifiers): Define.
23147 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
23148 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
23149 sqshlu_n, uqshl_n): Update qualifiers.
23150 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
23151 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
23152 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
23153 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
23154 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
23155 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
23156 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
23157 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
23158 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
23159 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
23160 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
23161 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
23162 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
23163 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
23164 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
23165 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
23166 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
23167 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
23168 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
23169 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
23170 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
23171 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
23172 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
23173 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
23174 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
23175 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
23176 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
23177
23178 2014-06-03 Teresa Johnson <tejohnson@google.com>
23179
23180 * tree-sra.c (modify_function): Record caller nodes after rebuild.
23181
23182 2014-06-02 Jason Merrill <jason@redhat.com>
23183
23184 PR c++/61020
23185 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
23186
23187 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
23188
23189 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
23190 location == 0.
23191
23192 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
23193
23194 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
23195 New pattern.
23196 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
23197 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
23198 * config/aarch64/iterators.md (REVERSE): New iterator.
23199 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
23200 (rev_op): New int_attribute.
23201 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
23202 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
23203 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
23204 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
23205 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
23206 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
23207 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
23208 Replace temporary __asm__ with __builtin_shuffle.
23209
23210 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23211
23212 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
23213 mips64r5.
23214 * config/mips/mips-tables.opt: Regenerate.
23215 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
23216 to use mips_isa_rev rather than ISA_MIPS32R2.
23217 * config/mips/mips.h (ISA_MIPS32R3): New define.
23218 (ISA_MIPS32R5): New define.
23219 (ISA_MIPS64R3): New define.
23220 (ISA_MIPS64R5): New define.
23221 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
23222 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
23223 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
23224 and mips64r5.
23225 (MIPS_ISA_SYNCI_SPEC): Likewise.
23226 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
23227 (LINK_SPEC): Added mips32r3 and mips32r5.
23228 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
23229 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
23230 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
23231 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
23232 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
23233 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
23234 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
23235
23236 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23237
23238 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
23239 options.
23240 * config/mips/mips.opt (mxpa): New option.
23241 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
23242 assembler.
23243
23244 2014-06-03 Martin Jambor <mjambor@suse.cz>
23245
23246 PR ipa/61160
23247 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
23248 thunks.
23249
23250 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
23251
23252 PR tree-optimization/61328
23253 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
23254 initialization from find_bswap_or_nop_1.
23255 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
23256 in source_expr2 before using the size value the function sets. Also
23257 make use of init_symbolic_number () in both the old place and
23258 find_bswap_or_nop_load () to avoid reading uninitialized memory when
23259 doing recursion in the GIMPLE_BINARY_RHS case.
23260
23261 2014-06-03 Richard Biener <rguenther@suse.de>
23262
23263 PR tree-optimization/61383
23264 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
23265 stmts can't trap.
23266
23267 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
23268
23269 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
23270 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
23271 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
23272 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
23273 in this file.
23274 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
23275 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
23276 * system.h: ...here and make it unconditional.
23277 * target.def (conditional_register_usage): Mention
23278 define_register_constraint instead of old-style constraint macros.
23279 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
23280 * doc/tm.texi: Regenerate.
23281 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
23282 protected by !USE_MD_CONSTRAINTS.
23283 * config/frv/frv.md: Remove quote from old version of documentation.
23284 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
23285 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
23286 CONST_DOUBLE_OK_FOR_LETTER.
23287 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
23288
23289 2014-06-02 Andrew Pinski <apinski@cavium.com>
23290
23291 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
23292 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
23293 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
23294 file whose name depends on -mabi= and -mbig-endian.
23295 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
23296 Handle LP64 better and handle ilp32 too.
23297 (MULTILIB_OPTIONS): Delete.
23298 (MULTILIB_DIRNAMES): Delete.
23299
23300 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
23301
23302 * expr.h: Remove prototypes of functions defined in builtins.c.
23303 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
23304 Remove prototypes of functions defined in builtins.c.
23305 * builtins.h: Update prototype list to include all exported functions.
23306 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
23307 no_c99_libc_has_function): Move to targhooks.c
23308 (build_string_literal, build_call_expr_loc_array,
23309 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
23310 to tree.c.
23311 (expand_builtin_object_size, fold_builtin_object_size): Make static.
23312 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
23313 no_c99_libc_has_function): Relocate from builtins.c.
23314 * tree.c: Include builtins.h.
23315 (build_call_expr_loc_array, build_call_expr_loc_vec,
23316 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
23317 from builtins.c.
23318 * fold-const.h (fold_fma): Move prototype to builtins.h.
23319 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
23320 * asan.c: Include builtins.h.
23321 * cfgexpand.c: Likewise.
23322 * convert.c: Likewise.
23323 * emit-rtl.c: Likewise.
23324 * except.c: Likewise.
23325 * expr.c: Likewise.
23326 * fold-const.c: Likewise.
23327 * gimple-fold.c: Likewise.
23328 * gimple-ssa-strength-reduction.c: Likewise.
23329 * gimplify.c: Likewise.
23330 * ipa-inline.c: Likewise.
23331 * ipa-prop.c: Likewise.
23332 * lto-streamer-out.c: Likewise.
23333 * stmt.c: Likewise.
23334 * tree-inline.c: Likewise.
23335 * tree-object-size.c: Likewise.
23336 * tree-sra.c: Likewise.
23337 * tree-ssa-ccp.c: Likewise.
23338 * tree-ssa-forwprop.c: Likewise.
23339 * tree-ssa-loop-ivcanon.c: Likewise.
23340 * tree-ssa-loop-ivopts.c: Likewise.
23341 * tree-ssa-math-opts.c: Likewise.
23342 * tree-ssa-reassoc.c: Likewise.
23343 * tree-ssa-threadedge.c: Likewise.
23344 * tree-streamer-in.c: Likewise.
23345 * tree-vect-data-refs.c: Likewise.
23346 * tree-vect-patterns.c: Likewise.
23347 * tree-vect-stmts.c: Likewise.
23348 * config/aarch64/aarch64.c: Likewise.
23349 * config/alpha/alpha.c: Likewise.
23350 * config/arc/arc.c: Likewise.
23351 * config/arm/arm.c: Likewise.
23352 * config/avr/avr.c: Likewise.
23353 * config/bfin/bfin.c: Likewise.
23354 * config/c6x/c6x.c: Likewise.
23355 * config/cr16/cr16.c: Likewise.
23356 * config/cris/cris.c: Likewise.
23357 * config/epiphany/epiphany.c: Likewise.
23358 * config/fr30/fr30.c: Likewise.
23359 * config/frv/frv.c: Likewise.
23360 * config/h8300/h8300.c: Likewise.
23361 * config/i386/i386.c: Likewise.
23362 * config/i386/winnt.c: Likewise.
23363 * config/ia64/ia64.c: Likewise.
23364 * config/iq2000/iq2000.c: Likewise.
23365 * config/lm32/lm32.c: Likewise.
23366 * config/m32c/m32c.c: Likewise.
23367 * config/m32r/m32r.c: Likewise.
23368 * config/m68k/m68k.c: Likewise.
23369 * config/mcore/mcore.c: Likewise.
23370 * config/mep/mep.c: Likewise.
23371 * config/microblaze/microblaze.c: Likewise.
23372 * config/mips/mips.c: Likewise.
23373 * config/mmix/mmix.c: Likewise.
23374 * config/mn10300/mn10300.c: Likewise.
23375 * config/moxie/moxie.c: Likewise.
23376 * config/msp430/msp430.c: Likewise.
23377 * config/nds32/nds32.c: Likewise.
23378 * config/pa/pa.c: Likewise.
23379 * config/pdp11/pdp11.c: Likewise.
23380 * config/picochip/picochip.c: Likewise.
23381 * config/rl78/rl78.c: Likewise.
23382 * config/rs6000/rs6000.c: Likewise.
23383 * config/rx/rx.c: Likewise.
23384 * config/s390/s390.c: Likewise.
23385 * config/score/score.c: Likewise.
23386 * config/sh/sh.c: Likewise.
23387 * config/sparc/sparc.c: Likewise.
23388 * config/spu/spu.c: Likewise.
23389 * config/stormy16/stormy16.c: Likewise.
23390 * config/tilegx/tilegx.c: Likewise.
23391 * config/tilepro/tilepro.c: Likewise.
23392 * config/v850/v850.c: Likewise.
23393 * config/vax/vax.c: Likewise.
23394 * config/xtensa/xtensa.c: Likewise.
23395
23396 2014-06-02 Jeff Law <law@redhat.com>
23397
23398 PR rtl-optimization/61094
23399 * ree.c (combine_reaching_defs): Do not reextend an insn if it
23400 was marked as do_no_reextend. If a copy is needed to eliminate
23401 an extension, then mark it as do_not_reextend.
23402
23403 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
23404
23405 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
23406
23407 2014-06-02 Richard Henderson <rth@redhat.com>
23408
23409 PR target/61336
23410 * config/alpha/alpha.c (print_operand_address): Allow symbolic
23411 addresses inside asms. Use output_operand_lossage instead of
23412 gcc_unreachable.
23413
23414 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
23415
23416 PR target/61239
23417 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
23418 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
23419
23420 2014-06-02 Tom de Vries <tom@codesourcery.com>
23421
23422 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
23423 case that x has VOIDmode.
23424
23425 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
23426
23427 * varasm.c (copy_constant): Delete function.
23428 (build_constant_desc): Don't call it.
23429
23430 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23431
23432 PR target/61154
23433 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
23434 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
23435 with immediate_operand.
23436
23437 2014-06-02 Andreas Schwab <schwab@suse.de>
23438
23439 * config/ia64/ia64.c
23440 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
23441 pending_data_specs first.
23442
23443 2014-06-02 Richard Biener <rguenther@suse.de>
23444
23445 PR tree-optimization/61378
23446 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
23447 valueized_anything.
23448
23449 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
23450
23451 * config/i386/constraints.md (Bw): Rename from 'w'.
23452 (Bz): Rename from 'z'.
23453 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
23454
23455 2014-06-01 Kai Tietz <ktietz@redhat.com>
23456
23457 PR target/61377
23458 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
23459 * config/i386/i386.md (sibcall_insn_operand): Use Bs
23460 instead of m constraint.
23461
23462 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
23463
23464 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
23465 a separate alternative where the scratch operand 2 is marked as
23466 early clobber.
23467
23468 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
23469
23470 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
23471 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
23472 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
23473 and __builtins_arm_get_fpscr.
23474 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
23475 __builtins_arm_get_fpscr.
23476 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
23477 __builtins_arm_ldfpscr.
23478 (arm_atomic_assign_expand_fenv): New function.
23479 * config/arm/vfp.md (set_fpscr): New pattern.
23480 (get_fpscr) : Likewise.
23481 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
23482 VUNSPEC_SET_FPSCR.
23483 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23484 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
23485
23486 2014-05-30 Jakub Jelinek <jakub@redhat.com>
23487
23488 * asan.c (report_error_func): Add SLOW_P argument, use
23489 BUILT_IN_ASAN_*_N if set.
23490 (build_check_stmt): Likewise.
23491 (instrument_derefs): If T has insufficient alignment,
23492 force same handling as for odd sizes.
23493
23494 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
23495 BUILT_IN_ASAN_REPORT_STORE_N): New.
23496 * asan.c (struct asan_mem_ref): Change access_size type to
23497 HOST_WIDE_INT.
23498 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
23499 update_mem_ref_hash_table): Likewise.
23500 (asan_mem_ref_hasher::hash): Hash in a HWI.
23501 (report_error_func): Change size_in_bytes argument to HWI.
23502 Use *_N builtins if size_in_bytes is larger than 16 or not power of
23503 two.
23504 (build_shadow_mem_access): New function.
23505 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
23506 Handle size_in_bytes not power of two or larger than 16.
23507 (instrument_derefs): Don't give up if size_in_bytes is not
23508 power of two or is larger than 16.
23509
23510 2014-05-30 Kai Tietz <ktietz@redhat.com>
23511
23512 PR target/60104
23513 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
23514 for sibling-tail-calls.
23515 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
23516 to its use.
23517 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
23518 (sibcall_insn_operand): Add check for sibcall_memory_operand.
23519
23520 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23521
23522 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
23523 * config/avr/avr-tables.opt: Regenerate.
23524 * config/avr/t-multilib: Regenerate.
23525 * doc/avr-mmcu.texi: Regenerate.
23526
23527 2014-05-30 Ian Lance Taylor <iant@google.com>
23528
23529 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
23530 target("sse").
23531
23532 2014-05-30 Tom de Vries <tom@codesourcery.com>
23533
23534 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23535 Redefine as true.
23536
23537 2014-05-30 Tom de Vries <tom@codesourcery.com>
23538
23539 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23540 * lra.c (initialize_lra_reg_info_element): Add init of
23541 actual_call_used_reg_set field.
23542 (lra): Call lra_create_live_ranges before lra_inheritance for
23543 -fuse-caller-save.
23544 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23545 -fuse-caller-save.
23546 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
23547 instead of call_used_reg_set for -fuse-caller-save.
23548 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23549
23550 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23551
23552 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
23553 to mov_imm.
23554 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
23555
23556 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
23557
23558 * ira.c (ira_get_dup_out_num): Check for output operands at
23559 the start of the loop. Handle cases where an included alternative
23560 follows an excluded one.
23561
23562 2014-05-29 Mike Stump <mikestump@comcast.net>
23563
23564 PR debug/61352
23565 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23566 post ld passes when lto is used.
23567
23568 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
23569
23570 PR rtl-optimization/61325
23571 * lra-constraints.c (process_address): Rename to process_address_1.
23572 (process_address): New function.
23573
23574 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
23575
23576 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23577 TYPES_BINOPV): New static data.
23578 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23579 New builtin.
23580 * config/aarch64/aarch64-simd.md (aarch64_ext,
23581 aarch64_im_lane_boundsi): New patterns.
23582 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23583 patterns for EXT.
23584 (aarch64_evpc_ext): New function.
23585
23586 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23587
23588 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23589 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23590 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23591 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23592 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23593
23594 2014-05-29 Tom de Vries <tom@codesourcery.com>
23595
23596 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23597
23598 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
23599 Richard Sandiford <rdsandiford@googlemail.com>
23600
23601 * arm/iterators.md (shiftable_ops): New code iterator.
23602 (t2_binop0, arith_shift_insn): New code attributes.
23603 * arm/predicates.md (shift_nomul_operator): New predicate.
23604 * arm/arm.md (insn_enabled): Delete.
23605 (enabled): Remove insn_enabled test.
23606 (*arith_shiftsi): Delete. Replace with ...
23607 (*<arith_shift_insn>_multsi): ... new pattern.
23608 (*<arith_shift_insn>_shiftsi): ... new pattern.
23609 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23610
23611 2014-05-29 Radovan Obradovic <robradovic@mips.com>
23612 Tom de Vries <tom@codesourcery.com>
23613
23614 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23615 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23616 clobber.
23617 (mips_split_call): Use POST_CALL_TMP_REG.
23618 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23619
23620 2014-05-29 Tom de Vries <tom@codesourcery.com>
23621
23622 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23623 with #ifdef STACK_REGS.
23624
23625 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
23626
23627 * varasm.c (get_variable_section): Walk aliases.
23628 (place_block_symbol): Walk aliases.
23629
23630 2014-05-28 Tom de Vries <tom@codesourcery.com>
23631
23632 Revert:
23633 2014-05-28 Tom de Vries <tom@codesourcery.com>
23634
23635 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23636 * lra.c (initialize_lra_reg_info_element): Add init of
23637 actual_call_used_reg_set field.
23638 (lra): Call lra_create_live_ranges before lra_inheritance for
23639 -fuse-caller-save.
23640 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23641 -fuse-caller-save.
23642 * lra-constraints.c (need_for_call_save_p): Use
23643 actual_call_used_reg_set instead of call_used_reg_set for
23644 -fuse-caller-save.
23645 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23646
23647 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23648
23649 * doc/md.texi: Document that the % constraint character must
23650 be at the beginning of the string.
23651 * genoutput.c (validate_insn_alternatives): Check that '=',
23652 '+' and '%' only appear at the beginning of a constraint.
23653 * ira.c (commutative_constraint_p): Delete.
23654 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23655 at the start of the string.
23656 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23657 duplicate '='s.
23658 * config/arm/neon.md (bicdi3_neon): Likewise.
23659 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23660 (slt_si, sltu_si): Likewise.
23661 * config/vax/vax.md (sbcdi3): Likewise.
23662 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23663 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23664 (mul64): Move '%' to beginning of constraint.
23665 * config/arm/arm.md (*xordi3_insn): Likewise.
23666 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23667 (xorsi3): Likewise.
23668
23669 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23670
23671 * doc/md.texi: Document the restrictions on the "enabled" attribute.
23672
23673 2014-05-28 Jason Merrill <jason@redhat.com>
23674
23675 PR c++/47202
23676 * cgraph.h (symtab_node::get_comdat_group_id): New.
23677 * cgraphunit.c (analyze_functions): Call it.
23678 * symtab.c (dump_symtab_node): Likewise.
23679 * tree.c (decl_comdat_group_id): New.
23680 * tree.h: Declare it.
23681 * lto-streamer-out.c (write_symbol): Use it.
23682 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23683
23684 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
23685
23686 PR bootstrap/PR61146
23687 * wide-int.cc: Do not include longlong.h when compiling with clang.
23688
23689 2014-05-28 Richard Biener <rguenther@suse.de>
23690
23691 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23692 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23693 (vrp_visit_assignment_or_call): Print less vertical space.
23694 (vrp_visit_stmt): Likewise.
23695 (vrp_visit_phi_node): Likewise. For a PHI argument with
23696 VR_VARYING range consider recording it as copy.
23697
23698 2014-05-28 Richard Biener <rguenther@suse.de>
23699
23700 Revert
23701 2014-05-28 Richard Biener <rguenther@suse.de>
23702
23703 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23704
23705 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23706
23707 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23708 sufficiently aligned and an offset is used at the same time.
23709 (expand_expr_real_1): Likewise.
23710
23711 2014-05-28 Richard Biener <rguenther@suse.de>
23712
23713 PR middle-end/61045
23714 * fold-const.c (fold_comparison): When folding
23715 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23716 the sign of the remaining constant operand stays the same.
23717
23718 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
23719
23720 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23721 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23722 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23723 to the assembler.
23724 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23725 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23726 (m32bit-doubles) Likewise.
23727 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23728 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23729 option for RL78.
23730
23731 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23732
23733 * configure.ac ($gcc_cv_ld_clearcap): New test.
23734 * configure: Regenerate.
23735 * config.in: Regenerate.
23736 * config/sol2.opt (mclear-hwcap): New option.
23737 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23738 * config/sol2-clearcap.map: Moved here from
23739 testsuite/gcc.target/i386/clearcap.map.
23740 * config/sol2-clearcapv2.map: Move here from
23741 gcc.target/i386/clearcapv2.map.
23742 * config/t-sol2 (install): Depend on install-clearcap-map.
23743 (install-clearcap-map): New target.
23744 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23745 -mclear-hwcap.
23746
23747 2014-05-28 Richard Biener <rguenther@suse.de>
23748
23749 * hwint.h (*_HALF_WIDE_INT*): Move to ...
23750 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23751 ... here and remove the rest.
23752 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23753
23754 2014-05-28 Richard Biener <rguenther@suse.de>
23755
23756 PR tree-optimization/61335
23757 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23758 new range fails, drop to varying.
23759
23760 2014-05-28 Olivier Hainque <hainque@adacore.com>
23761
23762 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23763 (CPP_SPEC): Add entry for -mcpu=8548.
23764 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23765 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23766
23767 2014-05-28 Tom de Vries <tom@codesourcery.com>
23768
23769 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23770 * lra.c (initialize_lra_reg_info_element): Add init of
23771 actual_call_used_reg_set field.
23772 (lra): Call lra_create_live_ranges before lra_inheritance for
23773 -fuse-caller-save.
23774 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23775 -fuse-caller-save.
23776 * lra-constraints.c (need_for_call_save_p): Use
23777 actual_call_used_reg_set instead of call_used_reg_set for
23778 -fuse-caller-save.
23779 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23780
23781 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23782 Tom de Vries <tom@codesourcery.com>
23783
23784 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23785 to gccoptlist.
23786 (@item -fuse-caller-save): New item.
23787
23788 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23789 Tom de Vries <tom@codesourcery.com>
23790
23791 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23792 OPT_fuse_caller_save.
23793
23794 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23795 Tom de Vries <tom@codesourcery.com>
23796
23797 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23798 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23799 get_call_reg_set_usage.
23800 * resource.c (mark_set_resources, mark_target_live_regs): Use
23801 get_call_reg_set_usage.
23802 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23803 field.
23804 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23805 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23806 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23807 * ira-build.c (ira_create_allocno): Init
23808 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23809 (create_cap_allocno, propagate_allocno_info)
23810 (propagate_some_info_from_allocno)
23811 (copy_info_to_removed_store_destinations): Handle
23812 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23813 * ira-costs.c (ira_tune_allocno_costs): Use
23814 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23815
23816 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23817 Tom de Vries <tom@codesourcery.com>
23818
23819 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23820 and function_used_regs_valid fields.
23821 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23822 find_all_hard_reg_sets.
23823 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23824 (get_call_reg_set_usage): New function.
23825 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23826 * regs.h (get_call_reg_set_usage): Declare.
23827
23828 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23829
23830 PR libgcc/61152
23831 * config/dbx.h (License): Add Runtime Library Exception.
23832 * config/newlib-stdint.h (License): Same.
23833 * config/rtems.h (License): Same
23834 * config/initfini-array.h (License): Same
23835 * config/v850/v850.h (License): Same.
23836 * config/v850/v850-opts.h (License): Same
23837 * config/v850/rtems.h (License): Same.
23838
23839 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23840
23841 PR target/61044
23842 * doc/extend.texi (Local Labels): Note that label differences are
23843 not supported for AVR.
23844
23845 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23846 Olivier Hainque <hainque@adacore.com>
23847
23848 * rtl.h (set_for_reg_notes): Declare.
23849 * emit-rtl.c (set_for_reg_notes): New function.
23850 (set_unique_reg_note): Use it.
23851 * optabs.c (add_equal_note): Likewise
23852
23853 2014-05-27 Andrew Pinski <apinski@cavium.com>
23854
23855 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23856 Use <w> for the register in assembly template.
23857 (stack_protect_test): Use the mode of operands[0] for the result.
23858 (stack_protect_test_<mode>): Use <w> for the register
23859 in assembly template.
23860
23861 2014-05-27 DJ Delorie <dj@redhat.com>
23862
23863 * config/rx/rx.c (add_vector_labels): New.
23864 (rx_output_function_prologue): Call it.
23865 (rx_handle_func_attribute): Don't require empty arguments.
23866 (rx_handle_vector_attribute): New.
23867 (rx_attribute_table): Add "vector" attribute.
23868 * doc/extend.texi (interrupt, vector): Document new/changed
23869 RX-specific attributes.
23870
23871 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23872
23873 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23874
23875 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23876 predicate to detect a negative quotient.
23877
23878 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23879
23880 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23881 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23882 Add X - Y CMP 0 to X CMP Y transformation.
23883 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23884
23885 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
23886
23887 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23888 before printing.
23889
23890 2014-05-27 Steve Ellcey <sellcey@mips.com>
23891
23892 * config/mips/mips.c: Add include of cgraph.h.
23893
23894 2014-05-27 Richard Biener <rguenther@suse.de>
23895
23896 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23897
23898 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23899
23900 PR libgcc/61152
23901 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23902 * config/arm/arm-cores.def (License): Same.
23903 * config/arm/arm-opts.h (License): Same.
23904 * config/arm/aout.h (License): Same.
23905 * config/arm/bpabi.h (License): Same.
23906 * config/arm/elf.h (License): Same.
23907 * config/arm/linux-elf.h (License): Same.
23908 * config/arm/linux-gas.h (License): Same.
23909 * config/arm/netbsd-elf.h (License): Same.
23910 * config/arm/uclinux-eabi.h (License): Same.
23911 * config/arm/uclinux-elf.h (License): Same.
23912 * config/arm/vxworks.h (License): Same.
23913
23914 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23915
23916 * config/arm/neon.md (neon_bswap<mode>): New pattern.
23917 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23918 (arm_init_neon_builtins): Handle NEON_BSWAP.
23919 Define required type nodes.
23920 (arm_expand_neon_builtin): Handle NEON_BSWAP.
23921 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23922 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23923 * config/arm/iterators.md (VDQHSD): New mode iterator.
23924
23925 2014-05-27 Richard Biener <rguenther@suse.de>
23926
23927 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23928 Try using literal operands when comparing value-ranges failed.
23929
23930 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23931
23932 * ira.c (commutative_operand): Adjust for change to recog_data.
23933 [Missing from previous commit.]
23934
23935 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23936
23937 * system.h (TEST_BIT): New macro.
23938 * recog.h (alternative_mask): New type.
23939 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23940 (recog_data_d): Replace alternative_enabled_p array with
23941 enabled_alternatives.
23942 (target_recog): New structure.
23943 (default_target_recog, this_target_recog): Declare.
23944 (get_enabled_alternatives, recog_init): Likewise.
23945 * recog.c (default_target_recog, this_target_recog): New variables.
23946 (get_enabled_alternatives): New function.
23947 (extract_insn): Use it.
23948 (recog_init): New function.
23949 (preprocess_constraints, constrain_operands): Adjust for change to
23950 recog_data.
23951 * postreload.c (reload_cse_simplify_operands): Likewise.
23952 * reload.c (find_reloads): Likewise.
23953 * ira-costs.c (record_reg_classes): Likewise.
23954 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23955 all alternatives after a disabled one would be skipped.
23956 (ira_implicitly_set_insn_hard_regs): Likewise.
23957 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23958 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23959 with enabled_alternatives.
23960 * lra.c (free_insn_recog_data): Update accordingly.
23961 (lra_update_insn_recog_data): Likewise.
23962 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23963 * lra-constraints.c (process_alt_operands): Likewise. Handle
23964 only_alternative as part of the enabled mask.
23965 * target-globals.h (this_target_recog): Declare.
23966 (target_globals): Add a recog field.
23967 (restore_target_globals): Restore this_target_recog.
23968 * target-globals.c: Include recog.h.
23969 (default_target_globals): Initialize recog field.
23970 (save_target_globals): Likewise.
23971 * reginfo.c (reinit_regs): Call recog_init.
23972 * toplev.c (backend_init_target): Likewise.
23973
23974 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23975
23976 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23977 rather than any named insn's code.
23978
23979 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23980
23981 PR libgcc/61152
23982 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23983 * config/arm/arm-cores.def (License): Same.
23984
23985 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23986
23987 * tree.h (decl_comdat_group): Declare.
23988 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23989 * tree.c (decl_comdat_group): Here.
23990
23991 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23992
23993 PR rtl-optimization/61222
23994 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23995 the shift, truncate the PLUS operand to the result mode.
23996
23997 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23998
23999 PR target/61271
24000 * config/i386/i386.c (ix86_rtx_costs)
24001 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
24002 Fix condition.
24003
24004 2014-05-26 Martin Jambor <mjambor@suse.cz>
24005
24006 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
24007 subreg uses.
24008
24009 2014-05-26 Richard Biener <rguenther@suse.de>
24010
24011 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
24012 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
24013 Provide specializations.
24014 (wi::int_traits <HOST_WIDE_INT>,
24015 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
24016
24017 2014-05-26 Alan Modra <amodra@gmail.com>
24018
24019 PR target/61098
24020 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
24021 params and return a bool. Remove dead code. Update comment.
24022 Assert we have a const_int source. Remove bogus code from
24023 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
24024 handling of constants > 2G and reg_equal note, from..
24025 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
24026 return value. Update comment. If we can, use a new pseudo
24027 for intermediate calculations.
24028 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
24029 prototype.
24030 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
24031 call to rs6000_emit_set_const in splitter.
24032 (movdi_internal64+2, +3): Likewise.
24033
24034 2014-05-26 Richard Biener <rguenther@suse.de>
24035
24036 * system.h: Define __STDC_FORMAT_MACROS before
24037 including inttypes.h.
24038 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
24039 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
24040 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
24041 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
24042 HOST_WIDEST_INT_C): Remove.
24043 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
24044 if C99 inttypes.h is not available.
24045 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
24046 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
24047 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
24048 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
24049 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
24050 (struct output_info): Likewise.
24051 (print_statistics): Adjust.
24052 (dump_bitmap_statistics): Likewise.
24053 * bt-load.c (migrate_btr_defs): Print with PRId64.
24054 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
24055 (MAX_SAFE_MULTIPLIER): Adjust.
24056 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
24057 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
24058 dump_cgraph_node): Likewise.
24059 * final.c (dump_basic_block_info): Likewise.
24060 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
24061 * gcov.c (format_gcov): Likewise.
24062 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
24063 for calculation.
24064 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
24065 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
24066 (inline_small_functions, dump_overall_stats, dump_inline_stats):
24067 Use PRId64 for dumping.
24068 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
24069 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
24070 (add_allocno_hard_regs): Adjust.
24071 * loop-doloop.c (doloop_modify): Print using PRId64.
24072 * loop-iv.c (inverse): Compute in uint64_t.
24073 (determine_max_iter, iv_number_of_iterations): Likewise.
24074 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
24075 Print using PRId64.
24076 * lto-streamer-out.c (write_symbol): Use uint64_t.
24077 * mcf.c (CAP_INFINITY): Use int64_t maximum.
24078 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
24079 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
24080 * modulo-sched.c (const_iteration_count): Use int64_t.
24081 (sms_schedule): Dump using PRId64.
24082 * predict.c (dump_prediction): Likewise.
24083 * pretty-print.h (pp_widest_integer): Remove.
24084 * profile.c (get_working_sets, is_edge_inconsistent,
24085 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
24086 * tree-pretty-print.c (pp_double_int): Remove case handling
24087 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
24088 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
24089 and adjust users.
24090 (pass_optimize_bswap::execute): Remove restriction on hosts.
24091 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
24092 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
24093 * tree.c (widest_int_cst_value): Remove.
24094 * tree.h (widest_int_cst_value): Likewise.
24095 * value-prof.c (dump_histogram_value): Print using PRId64.
24096 * gengtype.c (main): Also inject int64_t.
24097 * ggc-page.c (struct max_alignment): Use int64_t.
24098 * alloc-pool.c (struct allocation_object_def): Likewise.
24099 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
24100 for computation.
24101 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
24102 * doc/tm.texi: Regenerated.
24103 * gengtype-lex.l (IWORD): Handle [u]int64_t.
24104 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
24105 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
24106 mmix_output_register_setting): Use [u]int64_t in prototypes.
24107 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
24108 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
24109 mmix_output_octa, mmix_output_shifted_value): Adjust.
24110 (mmix_intval): Adjust. Remove unreachable case.
24111 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
24112
24113 2014-05-26 Richard Biener <rguenther@suse.de>
24114
24115 * configure.ac: Drop __int64 type check. Insist that we
24116 found uint64_t and int64_t.
24117 * hwint.h (HOST_BITS_PER___INT64): Remove.
24118 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
24119 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
24120 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
24121 (HOST_WIDEST_FAST_INT): Remove __int64 case.
24122 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
24123 for dst_q_src_df_rms_cdt.
24124 * configure: Regenerate.
24125 * config.in: Likewise.
24126
24127 2014-05-26 Michael Tautschnig <mt@debian.org>
24128
24129 PR target/61249
24130 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
24131 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
24132
24133 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24134
24135 PR rtl-optimization/61278
24136 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
24137
24138 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24139
24140 PR rtl-optimization/61220
24141 Part of PR rtl-optimization/61225
24142 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
24143 insn; skip split_edge for a block with only one successor.
24144
24145 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24146
24147 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
24148 for variables.
24149
24150 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24151
24152 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
24153 (update_vtable_references): New function.
24154 (function_and_variable_visibility): Rewrite also vtable initializers.
24155 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
24156
24157 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24158
24159 * ggc.h (ggc_grow): New function.
24160 * ggc-none.c (ggc_grow): New function.
24161 * ggc-page.c (ggc_grow): Likewise.
24162
24163 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24164
24165 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24166 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
24167 comdat_can_be_unshared_p, cgraph_externally_visible_p,
24168 varpool_externally_visible_p, can_replace_by_local_alias,
24169 update_visibility_by_resolution_info, function_and_variable_visibility,
24170 pass_data_ipa_function_and_variable_visibility,
24171 make_pass_ipa_function_and_variable_visibility,
24172 whole_program_function_and_variable_visibility,
24173 pass_data_ipa_whole_program_visibility,
24174 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
24175 * cgraph.h (cgraph_local_node_p): Declare.
24176 * ipa-visibility.c: New file.
24177 * Makefile.in (OBJS): Add ipa-visiblity.o
24178
24179 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24180
24181 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
24182 that var decl is available.
24183
24184 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24185
24186 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
24187 symtab_node pointer.
24188 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
24189 (find_decls_types_r): Do not walk COMDAT_GROUP.
24190 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
24191 * varasm.c (make_decl_one_only): Use set_comdat_group;
24192 create node if needed.
24193 * ipa-inline-transform.c (save_inline_function_body): Update
24194 way we decl->symtab mapping.
24195 * symtab.c (symtab_hash, hash_node, eq_node
24196 symtab_insert_node_to_hashtable): Remove.
24197 (symtab_register_node): Update.
24198 (symtab_unregister_node): Update.
24199 (symtab_get_node): Reimplement as inline function.
24200 (symtab_add_to_same_comdat_group): Update.
24201 (symtab_dissolve_same_comdat_group_list): Update.
24202 (dump_symtab_base): Update.
24203 (verify_symtab_base): Update.
24204 (symtab_make_decl_local): Update.
24205 (fixup_same_cpp_alias_visibility): Update.
24206 (symtab_nonoverwritable_alias): Update.
24207 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
24208 * ipa.c (update_visibility_by_resolution_info): UPdate.
24209 * bb-reorder.c: Include cgraph.h
24210 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
24211 with comdat groups.
24212 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
24213 * cgraph.c (cgraph_get_create_node): Update.
24214 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
24215 and comdat_group_.
24216 (symtab_get_node): Make inline.
24217 (symtab_insert_node_to_hashtable): Remove.
24218 (symtab_can_be_discarded): Update.
24219 (decl_comdat_group): New function.
24220 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
24221 Update.
24222 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
24223 comdat group name.
24224 (read_comdat_group): New function.
24225 (input_node, input_varpool_node): Use it.
24226 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
24227 comdat groups.
24228 * mips.c (mips_start_unique_function): Likewise.
24229 (ix86_code_end): Likewise.
24230 (rs6000_code_end): Likweise.
24231 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
24232
24233 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24234
24235 * gengtype-state.c (fatal_reading_state): Bring offline.
24236 * optabs.c (widening_optab_handler): Bring offline.
24237 * optabs.h (widening_optab_handler): Likewise.
24238 * final.c (get_attr_length_1): Likewise.
24239
24240 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24241
24242 * sched-int.h (sd_iterator_cond): Manually tail recurse.
24243
24244 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24245
24246 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
24247 (ppc440-compare): Include shift with dot.
24248 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
24249 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
24250 without dot.
24251 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
24252 without dot.
24253 (e6500_sfx2): Include it.
24254 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
24255 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
24256 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
24257 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
24258 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
24259 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
24260 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
24261 *lshiftrt_internal1le, *lshiftrt_internal1be,
24262 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
24263 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
24264 *rotldi3_internal10le, *rotldi3_internal10be,
24265 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
24266 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
24267 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
24268 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
24269 define_insns): Use type "shift" in the appropriate alternatives.
24270
24271 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24272
24273 * config/rs6000/rs6000.md (type): Add "logical". Delete
24274 "fast_compare".
24275 (dot): Adjust comment.
24276 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
24277 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
24278 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
24279 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
24280 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
24281 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
24282 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
24283 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24284
24285 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24286 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24287 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24288 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24289 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24290 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24291 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24292 * config/rs6000/8540.md (ppc8540_su): Adjust.
24293 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24294 cell-cmp-microcoded): Adjust.
24295 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24296 * config/rs6000/e500mc.md (e500mc_su): Adjust.
24297 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24298 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24299 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24300 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24301 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24302 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24303 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24304 Adjust.
24305 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24306 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
24307 Adjust. Adjust comment.
24308 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24309 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24310
24311 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24312
24313 * config/rs6000/rs6000.md (type): Add "add".
24314 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
24315 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
24316 define_insns): Use it.
24317 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24318
24319 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24320 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24321 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24322 * config/rs6000/601.md (ppc601-integer): Adjust.
24323 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24324 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24325 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24326 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24327 * config/rs6000/8540.md (ppc8540_su): Adjust.
24328 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24329 cell-cmp-microcoded): Adjust.
24330 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24331 * config/rs6000/e500mc.md (e500mc_su): Adjust.
24332 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24333 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24334 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24335 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24336 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24337 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24338 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24339 Adjust.
24340 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24341 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
24342 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24343 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24344
24345 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24346
24347 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
24348 "delayed_compare", "var_delayed_compare".
24349 (var_shift): New attribute.
24350 (cell_micro): Adjust.
24351 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
24352 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
24353 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
24354 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
24355 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
24356 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
24357 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
24358 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
24359 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
24360 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24361 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
24362 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
24363 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
24364 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
24365 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
24366 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
24367 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
24368 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
24369 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
24370 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
24371 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
24372 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
24373 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
24374 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24375 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24376
24377 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24378 * config/rs6000/440.md (ppc440-integer): Adjust.
24379 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24380 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
24381 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24382 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24383 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24384 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24385 * config/rs6000/8540.md (ppc8540_su): Adjust.
24386 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24387 cell-cmp-microcoded): Adjust.
24388 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
24389 * config/rs6000/e500mc.md (e500mc_su): Adjust.
24390 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
24391 e500mc64_delayed): Adjust.
24392 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
24393 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
24394 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24395 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
24396 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
24397 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
24398 power6-delayed-compare, power6-var-delayed-compare): Adjust.
24399 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
24400 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
24401 Adjust comment.
24402 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24403 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24404
24405 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24406
24407 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
24408 (bits): New mode_attr.
24409 (idiv_ldiv): Delete mode_attr.
24410 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
24411 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24412 rs6000_adjust_priority, is_nonpipeline_insn,
24413 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24414
24415 * config/rs6000/40x.md (ppc403-idiv): Adjust.
24416 * config/rs6000/440.md (ppc440-idiv): Adjust.
24417 * config/rs6000/476.md (ppc476-idiv): Adjust.
24418 * config/rs6000/601.md (ppc601-idiv): Adjust.
24419 * config/rs6000/603.md (ppc603-idiv): Adjust.
24420 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
24421 ppc620-ldiv): Adjust.
24422 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
24423 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
24424 * config/rs6000/8540.md (ppc8540_divide): Adjust.
24425 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
24426 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
24427 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
24428 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
24429 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
24430 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
24431 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
24432 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
24433 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
24434 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
24435 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
24436 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
24437 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
24438 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
24439 * config/rs6000/titan.md (titan_fxu_div): Adjust.
24440
24441 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24442
24443 * config/rs6000/rs6000.md (type): Delete "insert_word",
24444 "insert_dword". Add "insert".
24445 (size): Update comment.
24446 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24447 insn_must_be_first_in_group): Adjust.
24448 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
24449 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
24450 *insvsi_internal6, insvdi_internal): Adjust.
24451
24452 * config/rs6000/40x.md (ppc403-integer): Adjust.
24453 * config/rs6000/440.md (ppc440-integer): Adjust.
24454 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
24455 * config/rs6000/601.md (ppc601-integer): Adjust.
24456 * config/rs6000/603.md (ppc603-integer): Adjust.
24457 * config/rs6000/6xx.md (ppc604-integer): Adjust.
24458 * config/rs6000/7450.md (ppc7450-integer): Adjust.
24459 * config/rs6000/7xx.md (ppc750-integer): Adjust.
24460 * config/rs6000/8540.md (ppc8540_su): Adjust.
24461 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
24462 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
24463 * config/rs6000/e500mc.md (e500mc_su): Adjust.
24464 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
24465 * config/rs6000/e5500.md (e5500_sfx): Adjust.
24466 * config/rs6000/e6500.md (e6500_sfx): Adjust.
24467 * config/rs6000/mpc.md (mpccore-integer): Adjust.
24468 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
24469 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
24470 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
24471 * config/rs6000/power7.md (power7-integer): Adjust.
24472 * config/rs6000/power8.md (power8-1cyc): Adjust.
24473 * config/rs6000/rs64.md (rs64a-integer): Adjust.
24474 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24475
24476 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24477
24478 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
24479 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
24480 (size): New attribute.
24481 (dot): New attribute.
24482 (cell_micro): Adjust.
24483 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
24484 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
24485 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
24486 umuldi3_highpart): Adjust.
24487 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24488 rs6000_adjust_priority, is_nonpipeline_insn,
24489 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24490
24491 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
24492 ppc405-imul3): Adjust.
24493 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
24494 * config/rs6000/476.md (ppc476-imul): Adjust.
24495 * config/rs6000/601.md (ppc601-imul): Adjust.
24496 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
24497 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
24498 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
24499 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
24500 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
24501 Adjust.
24502 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
24503 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
24504 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
24505 cell-imul): Adjust.
24506 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
24507 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
24508 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
24509 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
24510 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
24511 * config/rs6000/mpc.md (mpccore-imul): Adjust.
24512 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
24513 power4-lmul, power4-imul, power4-imul3): Adjust.
24514 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
24515 power5-lmul, power5-imul, power5-imul3): Adjust.
24516 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
24517 power6-lmul, power6-imul, power6-imul3): Adjust.
24518 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
24519 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
24520
24521 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
24522 rs64a-lmul): Adjust.
24523 * config/rs6000/titan.md (titan_imul): Adjust.
24524
24525 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24526
24527 * config/rs6000/rs6000.md (type): Add new value "halfmul".
24528 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
24529 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
24530 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
24531 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
24532 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
24533 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
24534 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
24535 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
24536 * config/rs6000/titan.md: Delete nonsensical comment.
24537 (titan_imul): Add type imul3.
24538 (titan_mulhw): Remove type imul3; add type halfmul.
24539
24540 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24541
24542 * config/rs6000/rs6000.md (type): Reorder, reformat.
24543
24544 2014-05-23 Martin Jambor <mjambor@suse.cz>
24545
24546 PR tree-optimization/53787
24547 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
24548 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
24549 analysis_done, update all uses.
24550 * ipa-prop.c: Include domwalk.h
24551 (param_analysis_info): Removed.
24552 (param_aa_status): New type.
24553 (ipa_bb_info): Likewise.
24554 (func_body_info): Likewise.
24555 (ipa_get_bb_info): New function.
24556 (aa_overwalked): Likewise.
24557 (find_dominating_aa_status): Likewise.
24558 (parm_bb_aa_status_for_bb): Likewise.
24559 (parm_preserved_before_stmt_p): Changed to use new param AA info.
24560 (load_from_unmodified_param): Accept func_body_info as a parameter
24561 instead of parms_ainfo.
24562 (parm_ref_data_preserved_p): Changed to use new param AA info.
24563 (parm_ref_data_pass_through_p): Likewise.
24564 (ipa_load_from_parm_agg_1): Likewise. Update callers.
24565 (compute_complex_assign_jump_func): Changed to use new param AA info.
24566 (compute_complex_ancestor_jump_func): Likewise.
24567 (ipa_compute_jump_functions_for_edge): Likewise.
24568 (ipa_compute_jump_functions): Removed.
24569 (ipa_compute_jump_functions_for_bb): New function.
24570 (ipa_analyze_indirect_call_uses): Likewise, moved variable
24571 declarations down.
24572 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24573 and info, moved variable declarations down.
24574 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24575 node and info.
24576 (ipa_analyze_stmt_uses): Likewise.
24577 (ipa_analyze_params_uses): Removed.
24578 (ipa_analyze_params_uses_in_bb): New function.
24579 (ipa_analyze_controlled_uses): Likewise.
24580 (free_ipa_bb_info): Likewise.
24581 (analysis_dom_walker): New class.
24582 (ipa_analyze_node): Handle node-specific forbidden analysis,
24583 initialize and free func_body_info, use dominator walker.
24584 (ipcp_modif_dom_walker): New class.
24585 (ipcp_transform_function): Create and free func_body_info, use
24586 ipcp_modif_dom_walker, moved a lot of functionality there.
24587
24588 2014-05-23 Marek Polacek <polacek@redhat.com>
24589 Jakub Jelinek <jakub@redhat.com>
24590
24591 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24592 * gcc.c (sanitize_spec_function): Likewise.
24593 * convert.c (convert_to_integer): Include "ubsan.h". Add
24594 floating-point to integer instrumentation.
24595 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24596 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24597 SANITIZE_NONDEFAULT.
24598 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24599 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24600 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24601 * ubsan.c: Include "realmpfr.h" and "dfp.h".
24602 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24603 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24604 float/double/long double.
24605 (ubsan_instrument_float_cast): New function.
24606 * ubsan.h (ubsan_instrument_float_cast): Declare.
24607
24608 2014-05-23 Jiong Wang <jiong.wang@arm.com>
24609
24610 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24611 predicate.
24612 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
24613 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24614 Adjust for tailcalling through registers.
24615 * config/aarch64/aarch64.h (enum reg_class): New caller save
24616 register class.
24617 (REG_CLASS_NAMES): Likewise.
24618 (REG_CLASS_CONTENTS): Likewise.
24619 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24620 Allow tailcalling without decls.
24621
24622 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
24623
24624 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24625 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24626
24627 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24628 gsi, and variables v_* to v*.
24629
24630 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
24631
24632 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24633
24634 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
24635
24636 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24637 * omp-low.c: Update accordingly.
24638
24639 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24640 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24641 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24642 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24643 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24644 GF_OMP_TARGET_KIND_UPDATE.
24645
24646 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24647 Explicitly enumerate the expected region types.
24648
24649 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
24650
24651 PR other/56955
24652 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
24653 documentation; the old documentation didn't clearly state the
24654 constraints on the contents of the pointed-to storage.
24655
24656 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24657
24658 Fix bootstrap error on ia64
24659 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24660 Return default value.
24661
24662 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
24663
24664 PR tree-optimization/54733
24665 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24666 (CMPNOP): Define.
24667 (find_bswap_or_nop_load): New.
24668 (find_bswap_1): Renamed to ...
24669 (find_bswap_or_nop_1): This. Also add support for memory source.
24670 (find_bswap): Renamed to ...
24671 (find_bswap_or_nop): This. Also add support for memory source and
24672 detection of bitwise operations equivalent to load in target
24673 endianness.
24674 (execute_optimize_bswap): Likewise. Also move its leading comment back
24675 in place and split statement transformation into ...
24676 (bswap_replace): This.
24677
24678 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24679
24680 PR rtl-optimization/61215
24681 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24682 simplify_gen_subreg until final substitution.
24683
24684 2014-05-23 Alan Modra <amodra@gmail.com>
24685
24686 PR target/61231
24687 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24688 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24689 Use "Y" constraint rather than "m".
24690
24691 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24692
24693 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24694 define.
24695 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24696 New function declaration.
24697 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24698 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24699 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24700 (aarch64_init_builtins) : Initialize builtins
24701 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24702 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24703 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24704 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24705 and __builtins_aarch64_set_fpsr.
24706 (aarch64_atomic_assign_expand_fenv): New function.
24707 * config/aarch64/aarch64.md (set_fpcr): New pattern.
24708 (get_fpcr) : Likewise.
24709 (set_fpsr) : Likewise.
24710 (get_fpsr) : Likewise.
24711 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24712 and UNSPECV_SET_FPSR.
24713 * doc/extend.texi (AARCH64 Built-in Functions) : Document
24714 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24715 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24716
24717 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24718
24719 PR rtl-optimization/60969
24720 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24721 constraints. Set up mem cost for NO_REGS case.
24722
24723 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
24724
24725 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24726
24727 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
24728
24729 * config/darwin.c: Include "lto-section-names.h".
24730 (LTO_SEGMENT_NAME): Don't define.
24731 * config/i386/winnt.c: Include "lto-section-names.h".
24732 * lto-streamer.c: Include "lto-section-names.h".
24733 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24734 * lto-wrapper.c: Include "lto-section-names.h".
24735 (LTO_SECTION_NAME_PREFIX): Don't define.
24736 * lto-section-names.h: New file.
24737 * cgraphunit.c: Include "lto-section-names.h".
24738
24739 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
24740
24741 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24742
24743 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
24744
24745 PR target/61208
24746 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24747
24748 2014-05-22 Nick Clifton <nickc@redhat.com>
24749
24750 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24751
24752 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
24753
24754 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24755 -> (T)A transformation to integer types.
24756
24757 2014-05-22 Teresa Johnson <tejohnson@google.com>
24758
24759 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24760 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24761 (gcov_rewrite): Use gcov_nonruntime_assert.
24762 (gcov_open): Ditto.
24763 (gcov_write_words): Ditto.
24764 (gcov_write_length): Ditto.
24765 (gcov_read_words): Use gcov_nonruntime_assert, and remove
24766 gcc_assert from IN_LIBGCOV code.
24767 (gcov_read_summary): Use gcov_error to flag profile corruption.
24768 (gcov_sync): Use gcov_nonruntime_assert.
24769 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24770 (gcov_histo_index): Use gcov_nonruntime_assert.
24771 (static void gcov_histogram_merge): Ditto.
24772 (compute_working_sets): Ditto.
24773 * gcov-io.h (gcov_nonruntime_assert): Define.
24774 (gcov_error): Define for !IN_LIBGCOV
24775
24776 2014-05-22 Richard Biener <rguenther@suse.de>
24777
24778 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24779 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24780 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24781 and deallocation site.
24782 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24783 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24784 passing through the incoming points-to set.
24785 (handle_lhs_call): Use flags argument instead of recomputing it.
24786 (find_func_aliases_for_call): Call handle_lhs_call with proper
24787 call return flags.
24788
24789 2014-05-22 Jakub Jelinek <jakub@redhat.com>
24790
24791 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24792 all padding bits in REAL_VALUE_TYPE are cleared.
24793
24794 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24795
24796 Cleanup and improve multipass_dfa_lookahead_guard
24797 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24798 (core2i7_first_cycle_multipass_begin,)
24799 (core2i7_first_cycle_multipass_issue,)
24800 (core2i7_first_cycle_multipass_backtrack): Update signature.
24801 * config/ia64/ia64.c
24802 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24803 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24804 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24805 hook definition.
24806 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24807 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
24808 values.
24809 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24810 return values.
24811 * doc/tm.texi: Regenerate.
24812 * doc/tm.texi.in
24813 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24814 * haifa-sched.c (ready_try): Make signed to allow negative values.
24815 (rebug_ready_list_1): Update.
24816 (choose_ready): Simplify.
24817 (sched_extend_ready_list): Update.
24818
24819 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24820
24821 Remove IA64 speculation tweaking flags
24822 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24823 speculation tuning flags.
24824 (msched-prefer-non-data-spec-insns,)
24825 (msched-prefer-non-control-spec-insns): Obsolete options.
24826 * haifa-sched.c (choose_ready): Remove handling of
24827 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24828 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24829 and PREFER_NON_DATA_SPEC.
24830 * sel-sched.c (process_spec_exprs): Remove handling of
24831 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24832
24833 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24834
24835 Improve scheduling debug output
24836 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24837 (advance_one_cycle): Update.
24838 (schedule_insn, queue_to_ready): Add debug printouts.
24839 (debug_ready_list_1): New static function.
24840 (debug_ready_list): Update.
24841 (max_issue): Add debug printouts.
24842 (dump_insn_stream): New static function.
24843 (schedule_block): Use it. Also better indent printouts.
24844
24845 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24846
24847 Fix sched_insn debug counter
24848 * haifa-sched.c (schedule_insn): Update.
24849 (struct haifa_saved_data): Add nonscheduled_insns_begin.
24850 (save_backtrack_point, restore_backtrack_point): Update.
24851 (first_nonscheduled_insn): New static function.
24852 (queue_to_ready, choose_ready): Use it.
24853 (schedule_block): Init nonscheduled_insns_begin.
24854 (sched_emit_insn): Update.
24855
24856
24857 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24858
24859 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24860 to GENERAL_REGS.
24861 (aarch64_secondary_reload) : LikeWise.
24862 (aarch64_class_max_nregs) : Remove CORE_REGS.
24863 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24864 (REG_CLASS_NAMES) : Likewise.
24865 (REG_CLASS_CONTENTS) : LikeWise.
24866 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24867
24868 2014-05-21 Guozhi Wei <carrot@google.com>
24869
24870 PR target/61202
24871 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24872 constraint.
24873 (vqdmulhq_n_s16): Likewise.
24874
24875 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24876
24877 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24878
24879 2014-05-21 Marek Polacek <polacek@redhat.com>
24880
24881 PR sanitizer/61272
24882 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24883
24884 2014-05-21 Martin Jambor <mjambor@suse.cz>
24885
24886 * doc/invoke.texi (Optimize Options): Document parameters
24887 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24888 ipa-cp-array-index-hint-bonus.
24889
24890 2014-05-21 Mark Wielaard <mjw@redhat.com>
24891
24892 PR debug/16063
24893 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24894 version >= 3 or not strict DWARF.
24895 * langhooks.h (struct lang_hooks_for_types): Add
24896 enum_underlying_base_type.
24897 * langhooks.c (lhd_enum_underlying_base_type): New function.
24898 * gcc/langhooks.h (struct lang_hooks_for_types): Add
24899 enum_underlying_base_type.
24900 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24901 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24902 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24903
24904 2014-05-21 Richard Biener <rguenther@suse.de>
24905
24906 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24907
24908 2014-05-21 John Marino <gnugcc@marino.st>
24909
24910 * config.gcc (*-*-dragonfly*): New target.
24911 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24912 * configure: Regenerate.
24913 * config/dragonfly-stdint.h: New.
24914 * config/dragonfly.h: New.
24915 * config/dragonfly.opt: New.
24916 * config/i386/dragonfly.h: New.
24917 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24918
24919 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24920
24921 * tree.def (VOID_CST): New.
24922 * tree-core.h (TI_VOID): New.
24923 * tree.h (void_node): New.
24924 * tree.c (tree_node_structure_for_code, tree_code_size)
24925 (iterative_hash_expr): Handle VOID_CST.
24926 (build_common_tree_nodes): Initialize void_node.
24927
24928 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
24929
24930 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24931 functions.
24932 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24933
24934 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24935 more places.
24936
24937 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24938 flag_reorder_blocks_and_partition.
24939 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24940
24941 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24942
24943 PR target/54236
24944 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24945 constraints.
24946 (*addc_r_t): Add new insn_and_split.
24947
24948 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24949
24950 PR middle-end/61252
24951 * omp-low.c (handle_simd_reference): New function.
24952 (lower_rec_input_clauses): Use it. Defer adding reference
24953 initialization even for reduction without placeholder if in simd,
24954 handle it properly later on.
24955
24956 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24957
24958 PR tree-optimization/60899
24959 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24960 assume all static symbols will have definition wile parsing and
24961 check the do have definition later in compilation; check that
24962 variable referring symbol will be output before concluding that
24963 reference is safe; be conservative for referring local statics;
24964 be more precise about when comdat is output in other partition.
24965
24966 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24967
24968 PR bootstrap/60984
24969 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24970 parameter.
24971 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24972 (ipa_inline): Loop inline_to_all_callers until no more aliases
24973 are removed.
24974
24975 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24976
24977 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24978 set writeonly flag only for vars actually written to.
24979
24980 2014-05-20 Dehao Chen <dehao@google.com>
24981
24982 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24983 and callee count to get clone count.
24984 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24985 count in copy_body.
24986
24987 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24988
24989 PR rtl-optimization/61243
24990 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24991
24992 2014-05-20 Xinliang David Li <davidxl@google.com>
24993
24994 * cgraphunit.c (walk_polymorphic_call_targets): Add
24995 dbgcnt and fopt-info support.
24996 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24997 * ipa-devirt.c (ipa_devirt): Ditto.
24998 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24999 * ipa.c (walk_polymorphic_call_targets): Ditto.
25000 * gimple-fold.c (fold_gimple_assign): Ditto.
25001 (gimple_fold_call): Ditto.
25002 * dbgcnt.def: New counter.
25003
25004 2014-05-20 DJ Delorie <dj@redhat.com>
25005
25006 * config/msp430/msp430.md (split): Don't allow subregs when
25007 splitting SImode adds.
25008 (andneghi): Fix subtraction logic.
25009 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
25010
25011 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
25012
25013 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
25014 symbols.
25015 * except.c (switch_to_exception_section, resolve_unique_section,
25016 get_named_text_section, default_function_rodata_section,
25017 align_variable, get_block_for_decl, default_section_type_flags):
25018 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
25019 * symtab.c (symtab_add_to_same_comdat_group,
25020 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
25021 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
25022 Likewise.
25023 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
25024 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
25025 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
25026 (c6x_function_in_section_p): Likewise.
25027 * config/darwin.c (machopic_select_section): Likewise.
25028 * config/arm/arm.c (arm_function_in_section_p): Likewise.
25029 * config/mips/mips.c (mips_function_rodata_section): Likewise.
25030 * config/mep/mep.c (mep_select_section): LIkewise.
25031 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
25032
25033 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
25034
25035 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
25036 EH region of calls to pure functions that can throw an exception.
25037 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
25038 (copy_reference_ops_from_call): Also copy the EH region of the call if
25039 it can throw an exception.
25040
25041 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25042
25043 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
25044 nested VEC_SELECTs that are inverses of each other.
25045
25046 2014-05-20 Richard Biener <rguenther@suse.de>
25047
25048 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
25049 (extract_and_process_scc_for_name): not here.
25050 (cond_dom_walker::before_dom_children): Only process
25051 stmts that end the BB in interesting ways.
25052 (run_scc_vn): Mark param uses as visited.
25053
25054 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25055
25056 * config/arm/arm.md (arith_shiftsi): Do not predicate for
25057 arm_restrict_it.
25058
25059 2014-05-20 Nick Clifton <nickc@redhat.com>
25060
25061 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
25062 (msp430_gimplify_va_arg_expr): New function.
25063 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
25064
25065 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
25066 operand 0 in order to prevent confusion about the number of
25067 registers involved.
25068
25069 2014-05-20 Richard Biener <rguenther@suse.de>
25070
25071 PR tree-optimization/61221
25072 * tree-ssa-pre.c (el_to_update): Remove.
25073 (eliminate_dom_walker::before_dom_children): Handle released
25074 VDEFs by value-numbering them to the associated VUSE. Update
25075 stmt immediately for substituted call address.
25076 (eliminate): Remove delayed stmt updating code.
25077 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
25078 possibly late re-numbered vuses.
25079 (vn_reference_lookup_2): Adjust.
25080 (vn_reference_lookup_pieces): Likewise.
25081 (vn_reference_lookup): Likewise.
25082
25083 2014-05-20 Richard Biener <rguenther@suse.de>
25084
25085 * config.gcc: Remove need_64bit_hwint.
25086 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
25087 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
25088 it to be true.
25089 * config.in: Regenerate.
25090 * configure: Likewise.
25091
25092 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
25093
25094 * doc/extend.texi: Create Label Attributes section,
25095 move all label attributes into it and reference it.
25096
25097 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
25098
25099 * arm.c (thumb1_reorg): When scanning backwards skip anything
25100 that's not a proper insn.
25101
25102 2014-05-19 Richard Biener <rguenther@suse.de>
25103
25104 PR tree-optimization/61221
25105 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25106 Do nothing for unreachable blocks.
25107 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
25108 Improve unreachability detection.
25109
25110 2014-05-19 Richard Biener <rguenther@suse.de>
25111
25112 PR tree-optimization/61209
25113 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
25114
25115 2014-05-19 Nick Clifton <nickc@redhat.com>
25116
25117 * except.c (init_eh): Fix computation of builtin setjmp buffer
25118 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
25119
25120 2014-05-19 Richard Biener <rguenther@suse.de>
25121
25122 PR tree-optimization/61184
25123 * tree-vrp.c (is_negative_overflow_infinity): Use
25124 TREE_OVERFLOW_P and do that check first.
25125 (is_positive_overflow_infinity): Likewise.
25126 (is_overflow_infinity): Likewise.
25127 (vrp_operand_equal_p): Properly treat operands with
25128 differing overflow as not equal.
25129
25130 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
25131
25132 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
25133 shift simplification where it was intended.
25134
25135 2014-05-19 Christian Bruel <christian.bruel@st.com>
25136
25137 PR target/61195
25138 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
25139
25140 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
25141
25142 PR target/61084
25143 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
25144 than wide_int.
25145
25146 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25147
25148 * reg-notes.def (CROSSING_JUMP): Likewise.
25149 * rtl.h (rtx_def): Update comment for jump flag.
25150 (CROSSING_JUMP_P): Define.
25151 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
25152 of a REG_CROSSING_JUMP note.
25153 * cfghooks.c (tidy_fallthru_edges): Likewise.
25154 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
25155 * emit-rtl.c (try_split): Likewise.
25156 * haifa-sched.c (sched_create_recovery_edges): Likewise.
25157 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
25158 * jump.c (redirect_jump_2): Likewise.
25159 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
25160 (relax_delay_slots): Likewise.
25161 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
25162 (bbit_di): Likewise.
25163 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
25164 * config/sh/sh.md (jump_compact): Likewise.
25165 * bb-reorder.c (rotate_loop): Likewise.
25166 (pass_duplicate_computed_gotos::execute): Likewise.
25167 (add_reg_crossing_jump_notes): Rename to...
25168 (update_crossing_jump_flags): ...this.
25169 (pass_partition_blocks::execute): Update accordingly.
25170
25171 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25172
25173 * tree.h: Remove extraneous template <>.
25174
25175 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
25176
25177 * ipa.c (symtab_remove_unreachable_nodes): Remove
25178 symbol from comdat group if its body was eliminated.
25179 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
25180 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
25181 (symtab_unregister_node): ... this one.
25182 (verify_symtab_base): More strict checking of comdats.
25183 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
25184
25185 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
25186
25187 * tree-pass.h (make_pass_ipa_comdats): New pass.
25188 * timevar.def (TV_IPA_COMDATS): New timevar.
25189 * passes.def (pass_ipa_comdats): Add.
25190 * Makefile.in (OBJS): Add ipa-comdats.o
25191 * ipa-comdats.c: New file.
25192
25193 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
25194
25195 * ipa.c (update_visibility_by_resolution_info): New function.
25196 (function_and_variable_visibility): Use it.
25197
25198 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
25199
25200 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
25201 New functions.
25202 (FOR_EACH_DEFINED_SYMBOL): New macro.
25203 (varpool_first_static_initializer, varpool_next_static_initializer,
25204 varpool_first_defined_variable, varpool_next_defined_variable):
25205 Fix comments.
25206 (symtab_in_same_comdat_p): Correctly deal with inline functions.
25207
25208 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25209
25210 * ggc-page.c (ggc_handle_finalizers): Add comment.
25211
25212 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25213
25214 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
25215 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
25216 (ggc_internal_cleared_alloc): Likewise.
25217 * ggc-page.c (finalizer): New class.
25218 (vec_finalizer): Likewise.
25219 (globals::finalizers): New member.
25220 (globals::vec_finalizers): Likewise.
25221 (ggc_internal_alloc): Record the finalizer if any for the block being
25222 allocated.
25223 (ggc_handle_finalizers): New function.
25224 (ggc_collect): Call ggc_handle_finalizers.
25225 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
25226 finalizer.
25227 (ggc_internal_cleared_alloc): Likewise.
25228 (finalize): New function.
25229 (need_finalization_p): Likewise.
25230 (ggc_alloc): Install the type's destructor as the finalizer if it
25231 might do something.
25232 (ggc_cleared_alloc): Likewise.
25233 (ggc_vec_alloc): Likewise.
25234 (ggc_cleared_vec_alloc): Likewise.
25235
25236 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25237
25238 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
25239
25240 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25241
25242 * alias.c (record_alias_subset): Adjust.
25243 * bitmap.c (bitmap_element_allocate): Likewise.
25244 (bitmap_gc_alloc_stat): Likewise.
25245 * cfg.c (init_flow): Likewise.
25246 (alloc_block): Likewise.
25247 (unchecked_make_edge): Likewise.
25248 * cfgloop.c (alloc_loop): Likewise.
25249 (flow_loops_find): Likewise.
25250 (rescan_loop_exit): Likewise.
25251 * cfgrtl.c (init_rtl_bb_info): Likewise.
25252 * cgraph.c (insert_new_cgraph_node_version): Likewise.
25253 (cgraph_allocate_node): Likewise.
25254 (cgraph_create_edge_1): Likewise.
25255 (cgraph_allocate_init_indirect_info): Likewise.
25256 * cgraphclones.c (cgraph_clone_edge): Likewise.
25257 * cgraphunit.c (add_asm_node): Likewise.
25258 (init_lowered_empty_function): Likewise.
25259 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
25260 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25261 (alpha_use_linkage): Likewise.
25262 * config/arc/arc.c (arc_init_machine_status): Likewise.
25263 * config/arm/arm.c (arm_init_machine_status): Likewise.
25264 * config/avr/avr.c (avr_init_machine_status): Likewise.
25265 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25266 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
25267 * config/cris/cris.c (cris_init_machine_status): Likewise.
25268 * config/darwin.c (machopic_indirection_name): Likewise.
25269 (darwin_build_constant_cfstring): Likewise.
25270 (darwin_enter_string_into_cfstring_table): Likewise.
25271 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
25272 * config/frv/frv.c (frv_init_machine_status): Likewise.
25273 * config/i386/i386.c (get_dllimport_decl): Likewise.
25274 (ix86_init_machine_status): Likewise.
25275 (assign_386_stack_local): Likewise.
25276 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25277 (i386_pe_maybe_record_exported_symbol): Likewise.
25278 (i386_pe_record_stub): Likewise.
25279 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25280 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25281 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25282 (m32c_note_pragma_address): Likewise.
25283 * config/mep/mep.c (mep_init_machine_status): Likewise.
25284 (mep_note_pragma_flag): Likewise.
25285 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25286 (mips16_local_alias): Likewise.
25287 (mips_init_machine_status): Likewise.
25288 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25289 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25290 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
25291 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
25292 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
25293 * config/pa/pa.c (pa_init_machine_status): Likewise.
25294 (pa_get_deferred_plabel): Likewise.
25295 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
25296 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25297 (rs6000_init_machine_status): Likewise.
25298 (output_toc): Likewise.
25299 * config/s390/s390.c (s390_init_machine_status): Likewise.
25300 * config/score/score.c (score_output_external): Likewise.
25301 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25302 * config/spu/spu.c (spu_init_machine_status): Likewise.
25303 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
25304 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
25305 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25306 * coverage.c (coverage_end_function): Likewise.
25307 * dbxout.c (dbxout_init): Likewise.
25308 * doc/gty.texi: Don't mention variable_size attribute.
25309 * dwarf2cfi.c (new_cfi): Adjust.
25310 (new_cfi_row): Likewise.
25311 (copy_cfi_row): Likewise.
25312 (create_cie_data): Likewise.
25313 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
25314 (new_loc_descr): Likewise.
25315 (find_AT_string_in_table): Likewise.
25316 (add_addr_table_entry): Likewise.
25317 (new_die): Likewise.
25318 (add_var_loc_to_decl): Likewise.
25319 (clone_die): Likewise.
25320 (clone_as_declaration): Likewise.
25321 (break_out_comdat_types): Likewise.
25322 (new_loc_list): Likewise.
25323 (add_loc_descr_to_each): Likewise.
25324 (add_location_or_const_value_attribute): Likewise.
25325 (add_linkage_name): Likewise.
25326 (lookup_filename): Likewise.
25327 (dwarf2out_var_location): Likewise.
25328 (new_line_info_table): Likewise.
25329 (dwarf2out_init): Likewise.
25330 (mem_loc_descriptor): Likewise.
25331 (loc_descriptor): Likewise.
25332 (add_const_value_attribute): Likewise.
25333 (tree_add_const_value_attribute): Likewise.
25334 (comp_dir_string): Likewise.
25335 (dwarf2out_vms_debug_main_pointer): Likewise.
25336 (string_cst_pool_decl): Likewise.
25337 * emit-rtl.c (set_mem_attrs): Likewise.
25338 (get_reg_attrs): Likewise.
25339 (start_sequence): Likewise.
25340 (init_emit): Likewise.
25341 (init_emit_regs): Likewise.
25342 * except.c (init_eh_for_function): Likewise.
25343 (gen_eh_region): Likewise.
25344 (gen_eh_region_catch): Likewise.
25345 (gen_eh_landing_pad): Likewise.
25346 (add_call_site): Likewise.
25347 * function.c (add_frame_space): Likewise.
25348 (insert_temp_slot_address): Likewise.
25349 (assign_stack_temp_for_type): Likewise.
25350 (get_hard_reg_initial_val): Likewise.
25351 (allocate_struct_function): Likewise.
25352 (prepare_function_start): Likewise.
25353 (types_used_by_var_decl_insert): Likewise.
25354 * gengtype.c (variable_size_p): Remove function.
25355 (enum alloc_quantity): Remove enum.
25356 (write_typed_alloc_def): Remove function.
25357 (write_typed_struct_alloc_def): Likewise.
25358 (write_typed_typedef_alloc_def): Likewise.
25359 (write_typed_alloc_defns): Likewise.
25360 (main): Adjust.
25361 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
25362 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
25363 * ggc.h (ggc_alloc): new function.
25364 (ggc_cleared_alloc): Likewise.
25365 (ggc_vec_alloc): Template on type of vector element, and remove
25366 element size argument.
25367 (ggc_cleared_vec_alloc): Likewise.
25368 * gimple.c (gimple_build_omp_for): Adjust.
25369 (gimple_copy): Likewise.
25370 * ipa-cp.c (get_replacement_map): Likewise.
25371 (find_aggregate_values_for_callers_subset): Likewise.
25372 (known_aggs_to_agg_replacement_list): Likewise.
25373 * ipa-devirt.c (get_odr_type): Likewise.
25374 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
25375 (read_agg_replacement_chain): Likewise.
25376 * loop-iv.c (get_simple_loop_desc): Likewise.
25377 * lto-cgraph.c (input_node_opt_summary): Likewise.
25378 * lto-section-in.c (lto_new_in_decl_state): Likewise.
25379 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25380 (input_eh_region): Likewise.
25381 (input_eh_lp): Likewise.
25382 (input_cfg): Likewise.
25383 * optabs.c (set_optab_libfunc): Likewise.
25384 (init_tree_optimization_optabs): Likewise.
25385 (set_conv_libfunc): Likewise.
25386 * passes.c (do_per_function_toporder): Likewise.
25387 * rtl.h: Don't use variable_size gty attribute.
25388 * sese.c (if_region_set_false_region): Adjust.
25389 * stringpool.c (gt_pch_save_stringpool): Likewise.
25390 * target-globals.c (save_target_globals): Likewise.
25391 * toplev.c (general_init): Likewise.
25392 * trans-mem.c (record_tm_replacement): Likewise.
25393 (split_bb_make_tm_edge): Likewise.
25394 * tree-cfg.c (move_sese_region_to_fn): Likewise.
25395 * tree-data-ref.h (lambda_vector_new): Likewise.
25396 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25397 * tree-iterator.c (tsi_link_before): Likewise.
25398 (tsi_link_after): Likewise.
25399 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25400 * tree-ssa-loop-niter.c (record_estimate): Likewise.
25401 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25402 * tree-ssa-operands.h: Don't use variable_size gty attribute.
25403 * tree-ssa.c (init_tree_ssa): Adjust.
25404 * tree-ssanames.c (set_range_info): Likewise.
25405 (get_ptr_info): Likewise.
25406 (duplicate_ssa_name_ptr_info): Likewise.
25407 (duplicate_ssa_name_range_info): Likewise.
25408 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
25409 (unpack_ts_fixed_cst_value_fields): Likewise.
25410 * tree.c (build_fixed): Likewise.
25411 (build_real): Likewise.
25412 (build_string): Likewise.
25413 (decl_priority_info): Likewise.
25414 (decl_debug_expr_insert): Likewise.
25415 (decl_value_expr_insert): Likewise.
25416 (decl_debug_args_insert): Likewise.
25417 (type_hash_add): Likewise.
25418 (build_omp_clause): Likewise.
25419 * ubsan.c (decl_for_type_insert): Likewise.
25420 * varasm.c (get_unnamed_section): Likewise.
25421 (get_noswitch_section): Likewise.
25422 (get_section): Likewise.
25423 (get_block_for_section): Likewise.
25424 (create_block_symbol): Likewise.
25425 (build_constant_desc): Likewise.
25426 (create_constant_pool): Likewise.
25427 (force_const_mem): Likewise.
25428 (record_tm_clone_pair): Likewise.
25429 * varpool.c (varpool_create_empty_node): Likewise.
25430
25431 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25432
25433 * dwarf2out.c (tree_add_const_value_attribute): Call
25434 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
25435 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
25436 instead of ggc_internal_<x>alloc_stat.
25437 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
25438 (ggc_realloc): Likewise.
25439 * ggc-none.c (ggc_internal_alloc): Likewise.
25440 (ggc_internal_cleared_alloc): Likewise.
25441 * ggc-page.c: Likewise.
25442 * ggc.h (ggc_internal_alloc_stat): Likewise.
25443 (ggc_internal_alloc): Remove macro.
25444 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
25445 (ggc_internal_cleared_alloc): Remove macro.
25446 (GGC_RESIZEVEC): Adjust.
25447 (ggc_resizevar): Remove macro.
25448 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
25449 (ggc_internal_cleared_vec_alloc_stat): Likewise.
25450 (ggc_internal_vec_cleared_alloc): Remove macro.
25451 (ggc_alloc_atomic_stat): Drop _stat suffix.
25452 (ggc_alloc_atomic): Remove macro.
25453 (ggc_alloc_cleared_atomic): Remove macro.
25454 (ggc_alloc_string_stat): Drop _stat suffix.
25455 (ggc_alloc_string): Remove macro.
25456 (ggc_alloc_rtx_def_stat): Adjust.
25457 (ggc_alloc_tree_node_stat): Likewise.
25458 (ggc_alloc_cleared_tree_node_stat): Likewise.
25459 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
25460 (ggc_alloc_cleared_simd_clone_stat): Likewise.
25461 * gimple.c (gimple_build_omp_for): Likewise.
25462 (gimple_copy): Likewise.
25463 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
25464 * toplev.c (realloc_for_line_map): Adjust.
25465 * tree-data-ref.h (lambda_vector_new): Likewise.
25466 * tree-phinodes.c (allocate_phi_node): Likewise.
25467 * tree.c (grow_tree_vec_stat): Likewise.
25468 * vec.h (va_gc::reserve): Adjust.
25469
25470 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
25471
25472 * config/microblaze/microblaze.c (break_handler): New Declaration.
25473 (microblaze_break_function_p,microblaze_is_break_handler): New.
25474 (compute_frame_size): Use microblaze_break_function_p.
25475 Add the test of break_handler.
25476 (microblaze_function_prologue) : Add the test of variable
25477 break_handler. Check the fnname by BREAK_HANDLER_NAME.
25478 (microblaze_function_epilogue) : Add the test of break_handler.
25479 (microblaze_globalize_label) : Add the test of break_handler.
25480 Check the name by BREAK_HANDLER_NAME.
25481
25482 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
25483
25484 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
25485 microblaze_is_break_handler test.
25486 (call_internal1,call_value_intern): Use microblaze_break_function_p.
25487 Use SYMBOL_REF_DECL.
25488
25489 * config/microblaze/microblaze-protos.h
25490 (microblaze_break_function_p,microblaze_is_break_handler):
25491 New Declaration.
25492
25493 * doc/extend.texi (MicroBlaze break_handler Functions): Document
25494 new MicroBlaze break_handler functions.
25495
25496 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
25497
25498 * doc/extend.texi (Size of an asm): Move node text according
25499 to its @menu entry position.
25500
25501 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
25502
25503 PR tree-optimization/61140
25504 PR tree-optimization/61150
25505 PR tree-optimization/61197
25506 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
25507
25508 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
25509
25510 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
25511
25512 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
25513
25514 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
25515 __SIZEOF_INT128__ is defined.
25516
25517 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25518
25519 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
25520 (rs6000_delegitimize_address): Use it.
25521
25522 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25523
25524 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
25525 inplace argument. Store the new address in the original MEM when true.
25526 * emit-rtl.c (change_address_1): Likewise.
25527 (adjust_address_1, adjust_automodify_address_1, offset_address):
25528 Update accordingly.
25529 * rtl.h (plus_constant): Add an inplace argument.
25530 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
25531 when true. Avoid generating (plus X (const_int 0)).
25532 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
25533 in-place. Pass true to plus_constant.
25534 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
25535
25536 2014-05-16 Dehao Chen <dehao@google.com>
25537
25538 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
25539
25540 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25541
25542 PR target/54089
25543 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
25544 patterns.
25545 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
25546
25547 2014-05-16 Dehao Chen <dehao@google.com>
25548
25549 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
25550 optimize_function_for_size_p.
25551 * regs.h (REG_FREQ_FROM_BB): Likewise.
25552
25553 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25554
25555 PR target/51244
25556 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
25557 negt_reg_operand cases.
25558 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
25559 predicate.
25560 * config/sh/predicates.md (cbranch_treg_value): Simplify.
25561
25562 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25563
25564 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25565 target variants.
25566
25567 2014-05-16 David Malcolm <dmalcolm@redhat.com>
25568
25569 Revert:
25570 2014-04-29 David Malcolm <dmalcolm@redhat.com>
25571
25572 * tree-cfg.c (dump_function_to_file): Dump the return type of
25573 functions, in a line to itself before the function body, mimicking
25574 the layout of a C function.
25575
25576 2014-05-16 Dehao Chen <dehao@google.com>
25577
25578 * cfghooks.c (make_forwarder_block): Use direct computation to
25579 get fall-through edge's count and frequency.
25580
25581 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
25582
25583 * config/arc/arc.c (arc_init): Fix typo in error message.
25584 * config/i386/i386.c (ix86_expand_builtin): Likewise.
25585 (split_stack_prologue_scratch_regno): Likewise.
25586 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25587 word from error message.
25588
25589 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25590
25591 * ira-costs.c: Fix typo in comment.
25592
25593 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
25594
25595 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25596
25597 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
25598
25599 * varpool.c (dump_varpool_node): Dump write-only flag.
25600 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25601 write-only flag.
25602 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25603 write-only variables.
25604 * ipa.c (process_references): New function.
25605 (set_readonly_bit): New function.
25606 (set_writeonly_bit): New function.
25607 (clear_addressable_bit): New function.
25608 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25609 fix handling of aliases.
25610 * cgraph.h (struct varpool_node): Add writeonly flag.
25611
25612 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
25613
25614 PR rtl-optimization/60969
25615 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25616 Calculate costs for this case.
25617
25618 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
25619
25620 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25621 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25622
25623 2014-05-16 Richard Biener <rguenther@suse.de>
25624
25625 PR tree-optimization/61194
25626 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25627 bool patterns ending in a COND_EXPR.
25628
25629 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25630
25631 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25632
25633 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25634
25635 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25636 where we were unable to cost an RTX.
25637
25638 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25639
25640 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25641 HIGH, LO_SUM.
25642
25643 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25644 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25645
25646 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25647
25648 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25649 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25650
25651 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25652 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25653
25654 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25655 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25656
25657 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25658 operators.
25659
25660 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25661 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25662
25663 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25664 DIV/MOD.
25665
25666 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25667 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25668
25669 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25670 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25671
25672 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25673 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25674
25675 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25676 rotates and shifts.
25677
25678 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25679 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25680
25681 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25682 ZERO_EXTEND and SIGN_EXTEND better.
25683
25684 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25685 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25686
25687 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25688 logical operations.
25689
25690 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25691 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25692
25693 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25694 costs when costing loads and stores to memory.
25695
25696 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25697 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
25698
25699 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25700 for SET RTX.
25701
25702 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25703
25704 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25705
25706 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25707 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25708
25709 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25710 to...
25711 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25712 well formed.
25713 (aarch64_rtx_mult_cost): New.
25714 (aarch64_rtx_costs): Use it, refactor as appropriate.
25715
25716 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25717 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25718
25719 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25720 emit instructions, return number of instructions which would
25721 be emitted.
25722 (aarch64_add_constant): Update call to aarch64_build_constant.
25723 (aarch64_output_mi_thunk): Likewise.
25724 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25725 a CONST_DOUBLE.
25726
25727 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25728
25729 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25730 (TARGET_RTX_COSTS): Call it.
25731
25732 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25733
25734 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25735 (cortexa57_vector_cost): Likewise.
25736 (cortexa57_tunings): Use them.
25737
25738 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25739
25740 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25741 (cpu_addrcost_table): Use it.
25742 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25743 (aarch64_address_cost): Rewrite using aarch64_classify_address,
25744 move it.
25745
25746 2014-05-16 Richard Biener <rguenther@suse.de>
25747
25748 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25749 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25750 (visit_phi): Ignore edges marked as not executable.
25751 (class cond_dom_walker): New.
25752 (cond_dom_walker::before_dom_children): Value-number
25753 control statements and mark successor edges as not
25754 executable if possible.
25755 (run_scc_vn): First walk all control statements in
25756 dominator order, marking edges as not executable.
25757 * tree-inline.c (copy_edges_for_bb): Be not confused
25758 about random edge flags.
25759
25760 2014-05-16 Richard Biener <rguenther@suse.de>
25761
25762 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25763
25764 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
25765
25766 PR target/61193
25767 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25768 (__TM_simple_begin): Use it.
25769 (__TM_begin): Likewise.
25770
25771 2014-05-15 Martin Jambor <mjambor@suse.cz>
25772
25773 PR ipa/61085
25774 * ipa-prop.c (update_indirect_edges_after_inlining): Check
25775 type_preserved flag when the indirect edge is polymorphic.
25776
25777 2014-05-15 Martin Jambor <mjambor@suse.cz>
25778
25779 PR tree-optimization/61090
25780 * tree-sra.c (sra_modify_expr): Pass the current gsi to
25781 build_ref_for_model.
25782
25783 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25784
25785 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25786 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25787
25788 2014-05-15 Jakub Jelinek <jakub@redhat.com>
25789
25790 PR tree-optimization/61158
25791 * fold-const.c (fold_binary_loc): If X is zero-extended and
25792 shiftc >= prec, make sure zerobits is all ones instead of
25793 invoking undefined behavior.
25794
25795 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25796
25797 * regcprop.h: New file.
25798 * regcprop.c (skip_debug_insn_p): New decl.
25799 (replace_oldest_value_reg): Check skip_debug_insn_p.
25800 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25801 * shrink-wrap.c: Include regcprop.h.
25802 (prepare_shrink_wrap): Call
25803 copyprop_hardreg_forward_bb_without_debug_insn.
25804
25805 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25806
25807 * shrink-wrap.h: Update comment.
25808 * shrink-wrap.c: Update comment.
25809 (next_block_for_reg): Rename to live_edge_for_reg.
25810 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25811 (move_insn_for_shrink_wrap): Split live_edge.
25812 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25813
25814 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25815
25816 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25817 Delete.
25818 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25819 * config/sparc/sparc.md (fptype_ut699): New attribute.
25820 (in_branch_delay): Return false if -mfix-ut699 is specified and
25821 fptype_ut699 is set to single.
25822 (truncdfsf2): Add fptype_ut699 attribute.
25823 (fix_truncdfsi2): Likewise.
25824 (floatsisf2): Change fptype attribute.
25825 (fix_truncsfsi2): Likewise.
25826 (negtf2_notv9): Delete.
25827 (negtf2_v9): Likewise.
25828 (negtf2_hq): New instruction.
25829 (negtf2): New instruction and splitter.
25830 (negdf2_notv9): Rewrite.
25831 (abstf2_notv9): Delete.
25832 (abstf2_hq_v9): Likewise.
25833 (abstf2_v9): Likewise.
25834 (abstf2_hq): New instruction.
25835 (abstf2): New instruction and splitter.
25836 (absdf2_notv9): Rewrite.
25837
25838 2014-05-14 Cary Coutant <ccoutant@google.com>
25839
25840 PR debug/61013
25841 * opts.c (common_handle_option): Don't special-case "-g".
25842 (set_debug_level): Default to at least level 2 with "-g".
25843
25844 2014-05-14 DJ Delorie <dj@redhat.com>
25845
25846 * config/msp430/msp430.c (msp430_builtin): Add
25847 MSP430_BUILTIN_DELAY_CYCLES.
25848 (msp430_init_builtins): Register void __delay_cycles(long long).
25849 (msp430_builtin_decl): Add it.
25850 (cg_magic_constant): New.
25851 (msp430_expand_delay_cycles): New.
25852 (msp430_expand_builtin): Call it.
25853 (msp430_print_operand_raw): Change integer printing from "int" to
25854 HOST_WIDE_INT.
25855 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25856 (delay_cycles_start): New.
25857 (delay_cycles_end): New.
25858 (delay_cycles_32): New.
25859 (delay_cycles_32x): New.
25860 (delay_cycles_16): New.
25861 (delay_cycles_16x): New.
25862 (delay_cycles_2): New.
25863 (delay_cycles_1): New.
25864 * doc/extend.texi: Document __delay_cycles().
25865
25866 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
25867
25868 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25869 length attribute computation.
25870
25871 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
25872
25873 PR debug/61188
25874 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25875
25876 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
25877
25878 PR target/61084
25879 * config/sparc/sparc.md: Fix types of low and high in DI constant
25880 splitter. Use gen_int_mode in some other splitters.
25881
25882 2014-05-14 Martin Jambor <mjambor@suse.cz>
25883
25884 PR ipa/60897
25885 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25886
25887 2014-05-14 James Norris <jnorris@codesourcery.com>
25888
25889 * omp-low.c (expand_parallel_call): Remove shadow variable.
25890 (expand_omp_taskreg): Likewise.
25891
25892 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
25893
25894 * common/config/i386/i386-common.c
25895 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25896 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25897 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25898 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25899 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25900 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25901 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25902 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25903 xsavecintrin.h, xsavesintrin.h.
25904 (x86_64-*-*): Ditto.
25905 * config/i386/clflushoptintrin.h: New.
25906 * config/i386/xsavecintrin.h: Ditto.
25907 * config/i386/xsavesintrin.h: Ditto.
25908 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25909 (bit_XSAVES): Ditto.
25910 (bit_XSAVES): Ditto.
25911 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25912 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25913 -mno-clflushopt.
25914 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25915 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25916 OPTION_MASK_ISA_XSAVES.
25917 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25918 -mxsavec, -mxsaves.
25919 (PTA_CLFLUSHOPT) Define.
25920 (PTA_XSAVEC): Ditto.
25921 (PTA_XSAVES): Ditto.
25922 (ix86_option_override_internal): Handle new options.
25923 (ix86_valid_target_attribute_inner_p): Ditto.
25924 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25925 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25926 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25927 (bdesc_special_args): Add __builtin_ia32_xsaves,
25928 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25929 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25930 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25931 (ix86_expand_builtin): Handle new builtins.
25932 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25933 (TARGET_CLFLUSHOPT_P): Ditto.
25934 (TARGET_XSAVEC): Ditto.
25935 (TARGET_XSAVEC_P): Ditto.
25936 (TARGET_XSAVES): Ditto.
25937 (TARGET_XSAVES_P): Ditto.
25938 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25939 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25940 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25941 (ANY_XRSTOR): New.
25942 (ANY_XRSTOR64): Ditto.
25943 (xrstor): Ditto.
25944 (xrstor): Change into <xrstor>.
25945 (xrstor_rex64): Change into <xrstor>_rex64.
25946 (xrstor64): Change into <xrstor>64
25947 (clflushopt): New.
25948 * config/i386/i386.opt (mclflushopt): New.
25949 (mxsavec): Ditto.
25950 (mxsaves): Ditto.
25951 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25952 xsavecintrin.h.
25953 * doc/invoke.texi: Document new options.
25954
25955 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25956
25957 PR rtl-optimization/60866
25958 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25959 Default it to -1. Pass it down to init_simplejump_data.
25960 (init_simplejump_data): New parameter old_seqno. Pass it down
25961 to get_seqno_for_a_jump.
25962 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25963 initializing new jump seqno as a last resort. Add comment.
25964 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25965 jump and pass it down to sel_init_new_insn.
25966 (sel_redirect_edge_and_branch_force): Likewise.
25967
25968 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25969
25970 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25971 shifted values to avoid build warning.
25972
25973 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25974
25975 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25976 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25977 (cfg_layout_merge_blocks): Likewise.
25978 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25979
25980 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25981
25982 PR rtl-optimization/60901
25983 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25984 bb predecessor belongs to the same scheduling region. Adjust comment.
25985
25986 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25987
25988 * doc/sourcebuild.texi: (dfp_hw): Document.
25989 (p8vector_hw): Likewise.
25990 (powerpc_eabi_ok): Likewise.
25991 (powerpc_elfv2): Likewise.
25992 (powerpc_htm_ok): Likewise.
25993 (ppc_recip_hw): Likewise.
25994 (vsx_hw): Likewise.
25995
25996 2014-05-13 Cary Coutant <ccoutant@google.com>
25997
25998 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25999
26000 2014-05-13 David Malcolm <dmalcolm@redhat.com>
26001
26002 * gengtype-parse.c (require3): Eliminate in favor of...
26003 (require4): New.
26004 (require_template_declaration): Update to support optional single *
26005 on a type.
26006
26007 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
26008 (create_user_defined_type): Handle a single level of explicit
26009 pointerness within template arguments.
26010 (struct write_types_data): Add field "kind".
26011 (filter_type_name): Handle "*" character.
26012 (write_user_func_for_structure_ptr): Require a write_types_data
26013 rather than just a prefix string, so that we can look up the kind
26014 of the wtd and use it as an index into wrote_user_func_for_ptr,
26015 ensuring that such functions are written at most once. Support
26016 subclasses by invoking the marking function of the ultimate base class.
26017 (write_user_func_for_structure_body): Require a write_types_data
26018 rather than just a prefix string, so that we can pass this to
26019 write_user_func_for_structure_ptr.
26020 (write_func_for_structure): Likewise.
26021 (ggc_wtd): Add initializer of new "kind" field.
26022 (pch_wtd): Likewise.
26023
26024 * gengtype.h (enum write_types_kinds): New.
26025 (struct type): Add field wrote_user_func_for_ptr to the "s"
26026 union member.
26027
26028 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
26029
26030 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
26031 instead of const_binop.
26032 (fold_binary_loc): Likewise.
26033
26034 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
26035
26036 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
26037 calculation to match get_ref_base_and_extent.
26038
26039 2014-05-13 Catherine Moore <clm@codesourcery.com>
26040 Sandra Loosemore <sandra@codesourcery.com>
26041
26042 * configure.ac: Fix assembly for explicit JALR relocation check.
26043 * configure: Regenerate.
26044
26045 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26046
26047 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
26048 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
26049 Remove associated type declarations and initialisations.
26050 (arm_expand_neon_builtin): Likewise.
26051 (neon_emit_pair_result_insn): Delete.
26052 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
26053 * config/arm/neon.md (neon_vtrn<mode>): Delete.
26054 (neon_vzip<mode>): Likewise.
26055 (neon_vuzp<mode>): Likewise.
26056
26057 2014-05-13 Richard Biener <rguenther@suse.de>
26058
26059 PR ipa/60973
26060 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
26061 it needs revisiting whether the call still may be tail-called.
26062
26063 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
26064
26065 * rtl.def (SYMBOL_REF): Remove middle "0" field.
26066 * rtl.h (block_symbol): Reduce number of fields to 2.
26067 (rtx_def): Add u2.symbol_ref_flags.
26068 (SYMBOL_REF_FLAGS): Use it.
26069 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
26070 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
26071 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
26072 Lower index of SYMBOL_REF_DATA.
26073 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
26074 Print SYMBOL_REF_FLAGS at the same time.
26075 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
26076
26077 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
26078
26079 * rtl.def (VAR_LOCATION): Remove "i" field.
26080 * rtl.h (rtx_def): Add u2.var_location_status.
26081 (PAT_VAR_LOCATION_STATUS): Use it.
26082 (gen_rtx_VAR_LOCATION): Declare.
26083 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
26084 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
26085 * var-tracking.c (emit_note_insn_var_location): Remove casts.
26086
26087 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
26088
26089 * rtl.def (scratch): Fix outdated comment and remove "0" field.
26090 * gengtype.c (adjust_field_rtx_def): Update accordingly.
26091
26092 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
26093
26094 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
26095 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
26096 * rtl.h (rtx_def): Add insn_uid to u2 field.
26097 (RTX_FLAG_CHECK8): Delete in favor of...
26098 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
26099 (INSN_DELETED_P): Update accordingly.
26100 (INSN_UID): Use u2.insn_uid.
26101 (INSN_CHAIN_CODE_P): Define.
26102 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
26103 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
26104 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
26105 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
26106 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
26107 indices accordingly.
26108 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
26109 Update indices for insn-chain rtxes.
26110 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
26111 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
26112 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
26113 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
26114 * combine.c (try_combine): Likewise.
26115 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26116
26117 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
26118
26119 * rtl.def (REG): Remove middle field.
26120 * rtl.h (rtx_def): Add orignal_regno to u2.
26121 (ORIGINAL_REGNO): Use it instead of field 1.
26122 (REG_ATTRS): Lower field index accordingly.
26123 * gengtype.c (adjust_field_rtx_def): Remove handling of
26124 ORIGINAL_REGNO. Move REG_ATTRS index down.
26125 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
26126 code that prints the REGNO.
26127
26128 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
26129
26130 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
26131 GENERATOR_FILE.
26132
26133 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
26134
26135 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
26136
26137 2014-05-13 Bin Cheng <bin.cheng@arm.com>
26138
26139 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
26140 (alloc_iv): Lower base expressions containing ADDR_EXPR.
26141
26142 2014-05-13 Ian Bolton <ian.bolton@arm.com>
26143
26144 * config/aarch64/aarch64-protos.h
26145 (aarch64_hard_regno_caller_save_mode): New prototype.
26146 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
26147 New function.
26148 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
26149
26150 2014-05-13 Christian Bruel <christian.bruel@st.com>
26151
26152 * target.def (mode_switching): New hook vector.
26153 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
26154 (mode_exit, modepriority_to_mode): Likewise.
26155 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
26156 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26157 * target.h: Include tm.h and hard-reg-set.h.
26158 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
26159 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
26160 * doc/tm.texi Regenerate.
26161 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26162 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26163 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
26164 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
26165 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26166 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26167 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
26168 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
26169 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
26170 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
26171 (ix86_emit_mode_set): Hookify.
26172 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
26173 Delete.
26174 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26175 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
26176 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
26177 (epiphany_mode_priority_to_mode): Remove declaration.
26178 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
26179 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
26180 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
26181 Likewise.
26182 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
26183 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
26184 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
26185
26186 2014-05-13 Jakub Jelinek <jakub@redhat.com>
26187
26188 PR target/61060
26189 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
26190 is const0_rtx, return immediately. Don't test count == 0 when
26191 it is always true.
26192
26193 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26194
26195 * Makefile.in: add shrink-wrap.o.
26196 * config/i386/i386.c: include "shrink-wrap.h"
26197 * function.c: Likewise.
26198 (requires_stack_frame_p, next_block_for_reg,
26199 move_insn_for_shrink_wrap, prepare_shrink_wrap,
26200 dup_block_and_redirect): Move to shrink-wrap.c
26201 (thread_prologue_and_epilogue_insns): Extract three code segments
26202 as functions in shrink-wrap.c
26203 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
26204 shrink-wrap.h
26205 * shrink-wrap.c: New file.
26206 * shrink-wrap.h: New file.
26207
26208 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
26209
26210 * doc/extend.texi: Reflect current numbers of pragmas. Remove
26211 reference to Solaris.
26212
26213 2014-05-12 Mike Stump <mikestump@comcast.net>
26214
26215 PR other/31778
26216 * genattrtab.c (filename): Add.
26217 (convert_set_attr_alternative): Improve error message.
26218 (check_defs): Restore read_md_filename for error messages.
26219 (gen_insn): Save filename.
26220
26221 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
26222
26223 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
26224 -fno-local-ivars and -fivar-visibility.
26225 * c-family/c.opt: Make -Wshadow also implicitly enable
26226 -Wshadow-ivar.
26227
26228 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
26229
26230 * doc/tm.texi: Remove reference to deleted macro.
26231 * doc/tm.texi.in: Likewise.
26232
26233 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26234
26235 PR target/60991
26236 * config/avr/avr.c (avr_out_store_psi): Use correct constant
26237 to restore Y.
26238
26239 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
26240
26241 PR libgcc/61152
26242 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
26243 * config/arm/aout.h (License): Same.
26244 * config/arm/bpabi.h (License): Same.
26245 * config/arm/elf.h (License): Same.
26246 * config/arm/linux-elf.h (License): Same.
26247 * config/arm/linux-gas.h (License): Same.
26248 * config/arm/netbsd-elf.h (License): Same.
26249 * config/arm/uclinux-eabi.h (License): Same.
26250 * config/arm/uclinux-elf.h (License): Same.
26251 * config/arm/vxworks.h (License): Same.
26252
26253 2014-05-11 Jakub Jelinek <jakub@redhat.com>
26254
26255 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
26256 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
26257 number of operands to 3.
26258 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
26259 * tree-nested.c (convert_nonlocal_omp_clauses,
26260 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
26261 * gimplify.c (gimplify_scan_omp_clauses): Handle
26262 OMP_CLAUSE_LINEAR_STMT.
26263 * omp-low.c (lower_rec_input_clauses): Fix typo.
26264 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
26265 cast between Fortran boolean_type_node and C _Bool if
26266 needed.
26267
26268 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
26269
26270 PR tree-optimization/61136
26271 * wide-int.h (multiple_of_p): Define a version that doesn't return
26272 the quotient.
26273 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
26274 integer_zerop/const_binop pair.
26275 (multiple_of_p): Likewise, converting both operands to widest_int
26276 precision.
26277
26278 2014-05-09 Teresa Johnson <tejohnson@google.com>
26279
26280 * cgraphunit.c (analyze_functions): Use correct dump file.
26281
26282 2014-05-09 Florian Weimer <fweimer@redhat.com>
26283
26284 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
26285 expand_used_vars.
26286 (stack_protect_return_slot_p): New function.
26287 (expand_used_vars): Call stack_protect_decl_p and
26288 stack_protect_return_slot_p for -fstack-protector-strong.
26289
26290 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
26291 Andrew Haley <aph@redhat.com>
26292 Richard Sandiford <rdsandiford@googlemail.com>
26293
26294 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
26295 pages.
26296
26297 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
26298
26299 PR middle-end/61111
26300 * fold-const.c (fold_binary_loc): Changed width of mask.
26301
26302 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
26303
26304 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
26305 unsigned int initializers for regno_in, regno_out.
26306
26307 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
26308
26309 PR target/61055
26310 * config/avr/avr.md (cc): Add new attribute set_vzn.
26311 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
26312 Set cc insn attribute to set_vzn instead of set_zn for alternatives
26313 with INC, DEC or NEG.
26314 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
26315 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
26316 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
26317
26318 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26319
26320 Revert:
26321 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26322
26323 * wide-int.cc (UTItype): Define.
26324 (UDWtype): Define for appropriate W_TYPE_SIZE.
26325
26326 2014-05-09 Richard Biener <rguenther@suse.de>
26327
26328 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
26329 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
26330 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
26331 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
26332 ssa_propagate): Adjust.
26333
26334 2014-05-08 Jeff Law <law@redhat.com>
26335
26336 PR tree-optimization/61009
26337 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
26338 tri-state rather than a boolean. When a block is too big to
26339 thread through, inform caller via negative return value.
26340 (thread_across_edge): If a block was too big for normal threading,
26341 then it's too big for a joiner too, so remove temporary equivalences
26342 and return immediately.
26343
26344 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
26345 Matthias Klose <doko@ubuntu.com>
26346
26347 PR driver/61106
26348 * optc-gen.awk: Fix option handling for -Wunused-parameter.
26349
26350 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
26351
26352 PR target/59952
26353 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
26354
26355 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
26356
26357 PR target/61092
26358 * config/alpha/alpha.c: Include gimple-iterator.h.
26359 (alpha_gimple_fold_builtin): New function. Move
26360 ALPHA_BUILTIN_UMULH folding from ...
26361 (alpha_fold_builtin): ... here.
26362 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
26363
26364 2014-05-08 Wei Mi <wmi@google.com>
26365
26366 PR target/58066
26367 * config/i386/i386.c (ix86_compute_frame_layout): Update
26368 preferred_stack_boundary for call, expanded from tls descriptor.
26369 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
26370 to depend on SP register.
26371 (*tls_local_dynamic_base_32_gnu): Ditto.
26372 (*tls_local_dynamic_32_once): Ditto.
26373 (tls_global_dynamic_64_<mode>): Set
26374 ix86_tls_descriptor_calls_expanded_in_cfun.
26375 (tls_local_dynamic_base_64_<mode>): Ditto.
26376 (tls_global_dynamic_32): Set
26377 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
26378 to depend on SP register.
26379 (tls_local_dynamic_base_32): Ditto.
26380
26381 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26382
26383 * config/arm/arm_neon.h: Update comment.
26384 * config/arm/neon-docgen.ml: Delete.
26385 * config/arm/neon-gen.ml: Delete.
26386 * doc/arm-neon-intrinsics.texi: Update comment.
26387
26388 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26389
26390 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
26391 and v4sf versions.
26392 (vand, vorr, veor, vorn, vbic): Remove.
26393 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
26394 iterator.
26395 (neon_vsub_unspec): Likewise.
26396 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
26397
26398 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26399
26400 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
26401 (vadd_s16): Likewise.
26402 (vadd_s32): Likewise.
26403 (vadd_f32): Likewise.
26404 (vadd_u8): Likewise.
26405 (vadd_u16): Likewise.
26406 (vadd_u32): Likewise.
26407 (vadd_s64): Likewise.
26408 (vadd_u64): Likewise.
26409 (vaddq_s8): Likewise.
26410 (vaddq_s16): Likewise.
26411 (vaddq_s32): Likewise.
26412 (vaddq_s64): Likewise.
26413 (vaddq_f32): Likewise.
26414 (vaddq_u8): Likewise.
26415 (vaddq_u16): Likewise.
26416 (vaddq_u32): Likewise.
26417 (vaddq_u64): Likewise.
26418 (vmul_s8): Likewise.
26419 (vmul_s16): Likewise.
26420 (vmul_s32): Likewise.
26421 (vmul_f32): Likewise.
26422 (vmul_u8): Likewise.
26423 (vmul_u16): Likewise.
26424 (vmul_u32): Likewise.
26425 (vmul_p8): Likewise.
26426 (vmulq_s8): Likewise.
26427 (vmulq_s16): Likewise.
26428 (vmulq_s32): Likewise.
26429 (vmulq_f32): Likewise.
26430 (vmulq_u8): Likewise.
26431 (vmulq_u16): Likewise.
26432 (vmulq_u32): Likewise.
26433 (vsub_s8): Likewise.
26434 (vsub_s16): Likewise.
26435 (vsub_s32): Likewise.
26436 (vsub_f32): Likewise.
26437 (vsub_u8): Likewise.
26438 (vsub_u16): Likewise.
26439 (vsub_u32): Likewise.
26440 (vsub_s64): Likewise.
26441 (vsub_u64): Likewise.
26442 (vsubq_s8): Likewise.
26443 (vsubq_s16): Likewise.
26444 (vsubq_s32): Likewise.
26445 (vsubq_s64): Likewise.
26446 (vsubq_f32): Likewise.
26447 (vsubq_u8): Likewise.
26448 (vsubq_u16): Likewise.
26449 (vsubq_u32): Likewise.
26450 (vsubq_u64): Likewise.
26451 (vand_s8): Likewise.
26452 (vand_s16): Likewise.
26453 (vand_s32): Likewise.
26454 (vand_u8): Likewise.
26455 (vand_u16): Likewise.
26456 (vand_u32): Likewise.
26457 (vand_s64): Likewise.
26458 (vand_u64): Likewise.
26459 (vandq_s8): Likewise.
26460 (vandq_s16): Likewise.
26461 (vandq_s32): Likewise.
26462 (vandq_s64): Likewise.
26463 (vandq_u8): Likewise.
26464 (vandq_u16): Likewise.
26465 (vandq_u32): Likewise.
26466 (vandq_u64): Likewise.
26467 (vorr_s8): Likewise.
26468 (vorr_s16): Likewise.
26469 (vorr_s32): Likewise.
26470 (vorr_u8): Likewise.
26471 (vorr_u16): Likewise.
26472 (vorr_u32): Likewise.
26473 (vorr_s64): Likewise.
26474 (vorr_u64): Likewise.
26475 (vorrq_s8): Likewise.
26476 (vorrq_s16): Likewise.
26477 (vorrq_s32): Likewise.
26478 (vorrq_s64): Likewise.
26479 (vorrq_u8): Likewise.
26480 (vorrq_u16): Likewise.
26481 (vorrq_u32): Likewise.
26482 (vorrq_u64): Likewise.
26483 (veor_s8): Likewise.
26484 (veor_s16): Likewise.
26485 (veor_s32): Likewise.
26486 (veor_u8): Likewise.
26487 (veor_u16): Likewise.
26488 (veor_u32): Likewise.
26489 (veor_s64): Likewise.
26490 (veor_u64): Likewise.
26491 (veorq_s8): Likewise.
26492 (veorq_s16): Likewise.
26493 (veorq_s32): Likewise.
26494 (veorq_s64): Likewise.
26495 (veorq_u8): Likewise.
26496 (veorq_u16): Likewise.
26497 (veorq_u32): Likewise.
26498 (veorq_u64): Likewise.
26499 (vbic_s8): Likewise.
26500 (vbic_s16): Likewise.
26501 (vbic_s32): Likewise.
26502 (vbic_u8): Likewise.
26503 (vbic_u16): Likewise.
26504 (vbic_u32): Likewise.
26505 (vbic_s64): Likewise.
26506 (vbic_u64): Likewise.
26507 (vbicq_s8): Likewise.
26508 (vbicq_s16): Likewise.
26509 (vbicq_s32): Likewise.
26510 (vbicq_s64): Likewise.
26511 (vbicq_u8): Likewise.
26512 (vbicq_u16): Likewise.
26513 (vbicq_u32): Likewise.
26514 (vbicq_u64): Likewise.
26515 (vorn_s8): Likewise.
26516 (vorn_s16): Likewise.
26517 (vorn_s32): Likewise.
26518 (vorn_u8): Likewise.
26519 (vorn_u16): Likewise.
26520 (vorn_u32): Likewise.
26521 (vorn_s64): Likewise.
26522 (vorn_u64): Likewise.
26523 (vornq_s8): Likewise.
26524 (vornq_s16): Likewise.
26525 (vornq_s32): Likewise.
26526 (vornq_s64): Likewise.
26527 (vornq_u8): Likewise.
26528 (vornq_u16): Likewise.
26529 (vornq_u32): Likewise.
26530 (vornq_u64): Likewise.
26531
26532 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26533
26534 * wide-int.cc (UTItype): Define.
26535 (UDWtype): Define for appropriate W_TYPE_SIZE.
26536
26537 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
26538
26539 PR tree-optimization/59100
26540 * tree-ssa-phiopt.c: Include tree-inline.h.
26541 (neutral_element_p, absorbing_element_p): New functions.
26542 (value_replacement): Handle conditional binary operations with a
26543 neutral or absorbing element.
26544
26545 2014-05-08 Richard Biener <rguenther@suse.de>
26546
26547 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
26548 folding the expression.
26549 (valueize_expr): Remove.
26550 (visit_reference_op_load): Do not valueize the result of
26551 vn_get_expr_for.
26552 (simplify_binary_expression): Likewise.
26553 (simplify_unary_expression): Likewise.
26554
26555 2014-05-08 Richard Biener <rguenther@suse.de>
26556
26557 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
26558 looking at TYPE_ARG_TYPES.
26559
26560 2014-05-08 Richard Biener <rguenther@suse.de>
26561
26562 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26563 pointer propagation special-case.
26564
26565 2014-05-08 Bin Cheng <bin.cheng@arm.com>
26566
26567 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26568 core part of address expressions.
26569
26570 2014-05-08 Alan Modra <amodra@gmail.com>
26571
26572 PR target/60737
26573 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26574 loads and stores when -mno-strict-align at any alignment.
26575 (expand_block_clear): Similarly. Also correct calculation of
26576 instruction count.
26577
26578 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
26579
26580 PR middle-end/39246
26581 * tree-complex.c (expand_complex_move): Keep line info when expanding
26582 complex move.
26583 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26584 of complex expression. Use new argument to display correct location
26585 for values coming from phi statement.
26586 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26587 (warn_uninitialized_phi): Pass location of phi argument to
26588 warn_uninit.
26589 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26590 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26591
26592 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26593
26594 * config/rs6000/predicates.md (indexed_address_mem): New.
26595 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26596 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26597 fpstore_ux, fpstore_u.
26598 (sign_extend, indexed, update): New.
26599 (cell_micro): Adjust.
26600 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26601 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26602 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26603 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26604 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26605 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26606 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26607 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26608 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26609 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26610 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26611 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26612 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26613 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26614 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26615
26616 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26617 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26618 *vsx_extract_<mode>_store): Adjust.
26619 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26620 is_cracked_insn, insn_must_be_first_in_group,
26621 insn_must_be_last_in_group): Adjust.
26622
26623 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26624 Adjust.
26625 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26626 ppc440-fpstore): Adjust.
26627 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26628 ppc476-fpstore): Adjust.
26629 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26630 ppc601-fpstore): Adjust.
26631 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26632 Adjust.
26633 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26634 Adjust.
26635 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26636 ppc7450-fpstore): Adjust.
26637 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26638 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26639 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26640 Adjust.
26641 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26642 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26643 cell-fpstore, cell-fpstore-update): Adjust.
26644 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26645 ppce300c3_store, ppce300c3_fpstore): Adjust.
26646 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26647 e500mc_fpstore): Adjust.
26648 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26649 e500mc64_store, e500mc64_fpstore): Adjust.
26650 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26651 e5500_fpstore): Adjust.
26652 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26653 e6500_fpstore): Adjust.
26654 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26655 Adjust.
26656 * config/rs6000/power4.md (power4-load, power4-load-ext,
26657 power4-load-ext-update, power4-load-ext-update-indexed,
26658 power4-load-update-indexed, power4-load-update, power4-fpload,
26659 power4-fpload-update, power4-store, power4-store-update,
26660 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26661 Adjust.
26662 * config/rs6000/power5.md (power5-load, power5-load-ext,
26663 power5-load-ext-update, power5-load-ext-update-indexed,
26664 power5-load-update-indexed, power5-load-update, power5-fpload,
26665 power5-fpload-update, power5-store, power5-store-update,
26666 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26667 Adjust.
26668 * config/rs6000/power6.md (power6-load, power6-load-ext,
26669 power6-load-update, power6-load-update-indexed,
26670 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26671 power6-fpload-update, power6-store, power6-store-update,
26672 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26673 Adjust.
26674 * config/rs6000/power7.md (power7-load, power7-load-ext,
26675 power7-load-update, power7-load-update-indexed,
26676 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26677 power7-fpload-update, power7-store, power7-store-update,
26678 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26679 Adjust.
26680 * config/rs6000/power8.md (power8-load, power8-load-update,
26681 power8-load-ext, power8-load-ext-update, power8-fpload,
26682 power8-fpload-update, power8-store, power8-store-update-indexed,
26683 power8-fpstore, power8-fpstore-update): Adjust.
26684 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26685 Adjust.
26686 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26687 titan_lsu_store, titan_lsu_fpstore): Adjust.
26688 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26689
26690 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
26691
26692 PR target/60884
26693 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26694 unrolled byte insns. Emit address increments after move insns.
26695
26696 2014-05-07 David Malcolm <dmalcolm@redhat.com>
26697
26698 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26699 const_gimple, rather than a gimple.
26700 (gimple_call_builtin_p): Likewise, for the three variants.
26701
26702 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26703 (gimple_call_builtin_p): Likewise, for the three variants.
26704
26705 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26706
26707 PR tree-optimization/61095
26708 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26709
26710 2014-05-07 Richard Biener <rguenther@suse.de>
26711
26712 PR tree-optimization/61034
26713 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26714 (maybe_skip_until): Use translate to take into account
26715 lattices when trying to do disambiguations.
26716 (get_continuation_for_phi_1): Likewise.
26717 (get_continuation_for_phi): Adjust for added translate arguments.
26718 (walk_non_aliased_vuses): Likewise.
26719 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26720 (walk_non_aliased_vuses): Likewise.
26721 (call_may_clobber_ref_p_1): Declare.
26722 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26723 calls. Stop early if we are only supposed to disambiguate.
26724 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26725
26726 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
26727
26728 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26729 Emit an error when the function has arguments.
26730
26731 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26732
26733 * cfgloop.h (unswitch_loops): Remove.
26734 * doc/passes.texi: Remove references to loop-unswitch.c
26735 * timevar.def (TV_LOOP_UNSWITCH): Remove.
26736
26737 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
26738
26739 * tree-vect-data-refs.c (vect_grouped_load_supported): New
26740 check for loads group of length 3.
26741 (vect_permute_load_chain): New permutations for loads group of
26742 length 3.
26743 * tree-vect-stmts.c (vect_model_load_cost): Change cost
26744 of vec_perm_shuffle for the new permutations.
26745
26746 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
26747
26748 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26749 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26750 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26751 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26752 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26753 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26754 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26755 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26756
26757 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26758
26759 * loop-unswitch.c: Delete.
26760
26761 2014-05-07 Richard Biener <rguenther@suse.de>
26762
26763 * config.gcc: Always set need_64bit_hwint to yes.
26764
26765 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
26766
26767 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26768 of using optimize_size.
26769
26770 2014-05-06 Mike Stump <mikestump@comcast.net>
26771
26772 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26773
26774 2014-05-06 Joseph Myers <joseph@codesourcery.com>
26775
26776 * config/i386/sse.md (*mov<mode>_internal)
26777 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26778 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26779 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26780 (*<code><mode>3, *andnot<mode>3<mask_name>)
26781 (<mask_codefor><code><mode>3<mask_name>): Only consider
26782 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26783
26784 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26785
26786 Revert:
26787 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26788
26789 * lra-constraints.c (valid_address_p): Move earlier in file.
26790 Add a constraint argument to the address_info version.
26791 (satisfies_memory_constraint_p): New function.
26792 (satisfies_address_constraint_p): Likewise.
26793 (process_alt_operands, curr_insn_transform): Use them.
26794 (process_address): Pass the constraint to valid_address_p when
26795 checking address operands.
26796
26797 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
26798
26799 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26800 to their respective blocks. Fix inadvertent use of "node".
26801
26802 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26803
26804 * emit-rtl.c (init_derived_machine_modes): New functionm, split
26805 out from...
26806 (init_emit_once): ...here.
26807 * rtl.h (init_derived_machine_modes): Declare.
26808 * toplev.c (do_compile): Call it even if no_backend.
26809
26810 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
26811 Mike Stump <mikestump@comcast.net>
26812 Richard Sandiford <rdsandiford@googlemail.com>
26813 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26814
26815 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26816 (rtx_equal_for_memref_p): Update comment.
26817 (adjust_offset_for_component_ref): Use wide-int interfaces.
26818 * builtins.c (get_object_alignment_2): Likewise.
26819 (c_readstr): Likewise.
26820 (target_char_cast): Add comment.
26821 (determine_block_size): Use wide-int interfaces.
26822 (expand_builtin_signbit): Likewise.
26823 (fold_builtin_int_roundingfn): Likewise.
26824 (fold_builtin_bitop): Likewise.
26825 (fold_builtin_bswap): Likewise.
26826 (fold_builtin_logarithm): Use signop.
26827 (fold_builtin_pow): Likewise.
26828 (fold_builtin_memory_op): Use wide-int interfaces.
26829 (fold_builtin_object_size): Likewise.
26830 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26831 nb_iterations_estimate.
26832 (record_niter_bound): Use wide-int interfaces.
26833 (get_estimated_loop_iterations_int): Likewise.
26834 (get_estimated_loop_iterations): Likewise.
26835 (get_max_loop_iterations): Likewise.
26836 * cfgloop.h: Include wide-int.h.
26837 (struct nb_iter_bound): Change bound to widest_int.
26838 (struct loop): Change nb_iterations_upper_bound and
26839 nb_iterations_estimate to widest_int.
26840 (record_niter_bound): Switch to use widest_int.
26841 (get_estimated_loop_iterations): Likewise.
26842 (get_max_loop_iterations): Likewise.
26843 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26844 update for wide-int.
26845 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26846 * combine.c (try_combine): Likewise.
26847 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26848 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26849 interfaces.
26850 (aarch64_float_const_representable_p): Likewise.
26851 * config/arc/arc.c: Include wide-int.h.
26852 (arc_can_use_doloop_p): Use wide-int interfaces.
26853 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26854 (vfp3_const_double_index): Likewise.
26855 * config/avr/avr.c (avr_out_round): Likewise.
26856 (avr_fold_builtin): Likewise.
26857 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26858 (bfin_can_use_doloop_p): Likewise.
26859 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26860 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26861 * config/i386/i386.c: Include wide-int.h.
26862 (ix86_data_alignment): Use wide-int interfaces.
26863 (ix86_local_alignment): Likewise.
26864 (ix86_emit_swsqrtsf): Update real_from_integer.
26865 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26866 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26867 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26868 (zero_constant): Likewise.
26869 (input_operand): Likewise.
26870 (splat_input_operand): Likewise.
26871 (non_logical_cint_operand): Change const_double to const_wide_int.
26872 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26873 (easy_altivec_constant): Remove comment.
26874 (paired_expand_vector_init): Use CONSTANT_P.
26875 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26876 (rs6000_emit_move): Update checks.
26877 (rs6000_aggregate_candidate): Use wide-int interfaces.
26878 (rs6000_expand_ternop_builtin): Likewise.
26879 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26880 (rs6000_assemble_integer): Likewise.
26881 (rs6000_hash_constant): Likewise.
26882 (output_toc): Likewise.
26883 (rs6000_rtx_costs): Likewise.
26884 (rs6000_emit_swrsqrt); Update call to real_from_integer.
26885 * config/rs6000/rs6000-c.c: Include wide-int.h.
26886 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26887 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26888 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26889 Handle CONST_WIDE_INT.
26890 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26891 Use tree_fits_uhwi_p.
26892 * config/sparc/sparc.c: Include wide-int.h.
26893 (sparc_fold_builtin): Use wide-int interfaces.
26894 * config/vax/vax.c: Include wide-int.h.
26895 (vax_float_literal): Use real_from_integer.
26896 * coretypes.h (struct hwivec_def): New.
26897 (hwivec): New.
26898 (const_hwivec): New.
26899 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26900 (equiv_constant): Handle CONST_WIDE_INT.
26901 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26902 (cselib_hash_rtx): Handle CONST_WIDE_INT.
26903 * dbxout.c (stabstr_U): Use wide-int interfaces.
26904 (dbxout_type): Update to use cst_fits_shwi_p.
26905 * defaults.h (LOG2_BITS_PER_UNIT): Define.
26906 (TARGET_SUPPORTS_WIDE_INT): Add default.
26907 * dfp.c: Include wide-int.h.
26908 (decimal_real_to_integer2): Use wide-int interfaces and rename to
26909 decimal_real_to_integer.
26910 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26911 decimal_real_to_integer.
26912 * doc/generic.texi (Constant expressions): Update for wide_int.
26913 * doc/rtl.texi (const_double): Likewise.
26914 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26915 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26916 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26917 (REAL_VALUE_FROM_INT): Remove.
26918 (TARGET_SUPPORTS_WIDE_INT): New.
26919 * doc/tm.texi: Regenerate.
26920 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26921 * double-int.h: Include wide-int.h.
26922 (struct wi::int_traits): New.
26923 * dwarf2out.c (get_full_len): New.
26924 (dw_val_equal_p): Add case dw_val_class_wide_int.
26925 (size_of_loc_descr): Likewise.
26926 (output_loc_operands): Likewise.
26927 (insert_double): Remove.
26928 (insert_wide_int): New.
26929 (add_AT_wide): New.
26930 (print_die): Add case dw_val_class_wide_int.
26931 (attr_checksum): Likewise.
26932 (attr_checksum_ordered): Likewise.
26933 (same_dw_val_p): Likewise.
26934 (size_of_die): Likewise.
26935 (value_format): Likewise.
26936 (output_die): Likewise.
26937 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26938 Use wide-int.
26939 (clz_loc_descriptor): Use wide-int interfaces.
26940 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26941 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26942 (round_up_to_align): Use wide-int interfaces.
26943 (field_byte_offset): Likewise.
26944 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26945 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26946 CONST_DOUBLE handling. Use wide-int interfaces.
26947 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26948 (gen_enumeration_type_die): Use add_AT_wide.
26949 (hash_loc_operands): Add case dw_val_class_wide_int.
26950 (compare_loc_operands): Likewise.
26951 * dwarf2out.h: Include wide-int.h.
26952 (wide_int_ptr): New.
26953 (enum dw_val_class): Add dw_val_class_wide_int.
26954 (struct dw_val_struct): Add val_wide.
26955 * emit-rtl.c (const_wide_int_htab): New.
26956 (const_wide_int_htab_hash): New.
26957 (const_wide_int_htab_eq): New.
26958 (lookup_const_wide_int): New.
26959 (const_double_htab_hash): Use wide-int interfaces.
26960 (const_double_htab_eq): Likewise.
26961 (rtx_to_double_int): Conditionally compile for wide-int.
26962 (immed_double_int_const): Rename to immed_wide_int_const and
26963 update for wide-int.
26964 (immed_double_const): Conditionally compile for wide-int.
26965 (init_emit_once): Use wide-int interfaces.
26966 * explow.c (plus_constant): Likewise.
26967 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26968 (lshift_value): Use wide-int interfaces.
26969 (expand_mult): Likewise.
26970 (choose_multiplier): Likewise.
26971 (expand_smod_pow2): Likewise.
26972 (make_tree): Likewise.
26973 * expr.c (convert_modes): Consolidate handling of constants.
26974 Use wide-int interfaces.
26975 (emit_group_load_1): Add note.
26976 (store_expr): Update comment.
26977 (get_inner_reference): Use wide-int interfaces.
26978 (expand_constructor): Update comment.
26979 (expand_expr_real_2): Use wide-int interfaces.
26980 (expand_expr_real_1): Likewise.
26981 (reduce_to_bit_field_precision): Likewise.
26982 (const_vector_from_tree): Likewise.
26983 * final.c: Include wide-int-print.h.
26984 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26985 * fixed-value.c: Include wide-int.h.
26986 (fixed_from_string): Use wide-int interfaces.
26987 (fixed_to_decimal): Likewise.
26988 (fixed_convert_from_real): Likewise.
26989 (real_convert_from_fixed): Likewise.
26990 * fold-const.h (mem_ref_offset): Return an offset_int.
26991 (div_if_zero_remainder): Remove code parameter.
26992 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26993 Use wide-int interfaces.
26994 (may_negate_without_overflow_p): Use wide-int interfaces.
26995 (negate_expr_p): Likewise.
26996 (fold_negate_expr): Likewise.
26997 (int_const_binop_1): Likewise.
26998 (const_binop): Likewise.
26999 (fold_convert_const_int_from_int): Likewise.
27000 (fold_convert_const_int_from_real): Likewise.
27001 (fold_convert_const_int_from_fixed): Likewise.
27002 (fold_convert_const_fixed_from_int): Likewise.
27003 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
27004 (sign_bit_p): Use wide-int interfaces.
27005 (make_range_step): Likewise.
27006 (build_range_check): Likewise. Pass an integer of the correct type
27007 instead of using integer_one_node.
27008 (range_predecessor): Pass an integer of the correct type instead
27009 of using integer_one_node.
27010 (range_successor): Likewise.
27011 (merge_ranges): Likewise.
27012 (unextend): Use wide-int interfaces.
27013 (extract_muldiv_1): Likewise.
27014 (fold_div_compare): Likewise.
27015 (fold_single_bit_test): Likewise.
27016 (fold_sign_changed_comparison): Likewise.
27017 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
27018 (fold_plusminus_mult_expr): Use wide-int interfaces.
27019 (native_encode_int): Likewise.
27020 (native_interpret_int): Likewise.
27021 (fold_unary_loc): Likewise.
27022 (pointer_may_wrap_p): Likewise.
27023 (size_low_cst): Likewise.
27024 (mask_with_tz): Likewise.
27025 (fold_binary_loc): Likewise.
27026 (fold_ternary_loc): Likewise.
27027 (multiple_of_p): Likewise.
27028 (tree_call_nonnegative_warnv_p): Update calls to
27029 tree_int_cst_min_precision and real_from_integer.
27030 (fold_negate_const): Use wide-int interfaces.
27031 (fold_abs_const): Likewise.
27032 (fold_relational_const): Use tree_int_cst_lt.
27033 (round_up_loc): Use wide-int interfaces.
27034 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
27035 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
27036 * gengtype.c: Remove include of double-int.h.
27037 (do_typedef): Use wide-int interfaces.
27038 (open_base_files): Add wide-int.h.
27039 (main): Add offset_int and widest_int typedefs.
27040 * gengtype-lex.l: Handle "^".
27041 (CXX_KEYWORD): Add "static".
27042 * gengtype-parse.c (require3): New.
27043 (require_template_declaration): Handle constant template arguments
27044 and nested templates.
27045 * gengtype-state.c: Don't include "double-int.h".
27046 * genpreds.c (write_one_predicate_function): Update comment.
27047 (write_tm_constrs_h): Add check for hval and lval use in
27048 CONST_WIDE_INT.
27049 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
27050 (add_to_sequence): Likewise.
27051 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
27052 and const_double_operand.
27053 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
27054 interfaces.
27055 * gimple-fold.c (get_base_constructor): Likewise.
27056 (fold_array_ctor_reference): Likewise.
27057 (fold_nonarray_ctor_reference): Likewise.
27058 (fold_const_aggregate_ref_1): Likewise.
27059 (gimple_val_nonnegative_real_p): Likewise.
27060 (gimple_fold_indirect_ref): Likewise.
27061 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
27062 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
27063 (struct slsr_cand_d): Change index to be widest_int.
27064 (struct incr_info_d): Change incr to be widest_int.
27065 (alloc_cand_and_find_basis): Use wide-int interfaces.
27066 (slsr_process_phi): Likewise.
27067 (backtrace_base_for_ref): Likewise. Return a widest_int.
27068 (restructure_reference): Take a widest_int instead of a double_int.
27069 (slsr_process_ref): Use wide-int interfaces.
27070 (create_mul_ssa_cand): Likewise.
27071 (create_mul_imm_cand): Likewise.
27072 (create_add_ssa_cand): Likewise.
27073 (create_add_imm_cand): Take a widest_int instead of a double_int.
27074 (slsr_process_add): Use wide-int interfaces.
27075 (slsr_process_cast): Likewise.
27076 (slsr_process_copy): Likewise.
27077 (dump_candidate): Likewise.
27078 (dump_incr_vec): Likewise.
27079 (replace_ref): Likewise.
27080 (cand_increment): Likewise. Return a widest_int.
27081 (cand_abs_increment): Likewise.
27082 (replace_mult_candidate): Take a widest_int instead of a double_int.
27083 (replace_unconditional_candidate): Use wide-int interfaces.
27084 (incr_vec_index): Take a widest_int instead of a double_int.
27085 (create_add_on_incoming_edge): Likewise.
27086 (create_phi_basis): Use wide-int interfaces.
27087 (replace_conditional_candidate): Likewise.
27088 (record_increment): Take a widest_int instead of a double_int.
27089 (record_phi_increments): Use wide-int interfaces.
27090 (phi_incr_cost): Take a widest_int instead of a double_int.
27091 (lowest_cost_path): Likewise.
27092 (total_savings): Likewise.
27093 (analyze_increments): Use wide-int interfaces.
27094 (ncd_with_phi): Take a widest_int instead of a double_int.
27095 (ncd_of_cand_and_phis): Likewise.
27096 (nearest_common_dominator_for_cands): Likewise.
27097 (insert_initializers): Use wide-int interfaces.
27098 (all_phi_incrs_profitable): Likewise.
27099 (replace_one_candidate): Likewise.
27100 (replace_profitable_candidates): Likewise.
27101 * godump.c: Include wide-int-print.h.
27102 (go_output_typedef): Use wide-int interfaces.
27103 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
27104 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
27105 (build_loop_iteration_domains): Likewise.
27106 * hooks.h: Include wide-int.h rather than double-int.h.
27107 (hook_bool_dint_dint_uint_bool_true): Delete.
27108 (hook_bool_wint_wint_uint_bool_true): Declare.
27109 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
27110 (hook_bool_wint_wint_uint_bool_true): New.
27111 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
27112 interfaces.
27113 (ubsan_expand_si_overflow_mul_check): Likewise.
27114 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
27115 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
27116 (get_ancestor_addr_info): Likewise.
27117 (ipa_modify_call_arguments): Likewise.
27118 * loop-doloop.c (doloop_modify): Likewise.
27119 (doloop_optimize): Likewise.
27120 * loop-iv.c (iv_number_of_iterations): Likewise.
27121 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
27122 (unroll_loop_constant_iterations): Likewise.
27123 (decide_unroll_runtime_iterations): Likewise.
27124 (unroll_loop_runtime_iterations): Likewise.
27125 (decide_peel_simple): Likewise.
27126 (decide_unroll_stupid): Likewise.
27127 * lto-streamer-in.c (streamer_read_wi): Add.
27128 (input_cfg): Use wide-int interfaces.
27129 (lto_input_tree_1): Likewise.
27130 * lto-streamer-out.c (streamer_write_wi): Add.
27131 (hash_tree): Use wide-int interfaces.
27132 (output_cfg): Likewise.
27133 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
27134 (GTFILES): Add wide-int.h and signop.h.
27135 (TAGS): Look for .cc files too.
27136 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
27137 * optabs.c (expand_subword_shift): Likewise.
27138 (expand_doubleword_shift): Likewise.
27139 (expand_absneg_bit): Likewise.
27140 (expand_copysign_absneg): Likewise.
27141 (expand_copysign_bit): Likewise.
27142 * postreload.c (reload_cse_simplify_set): Likewise.
27143 * predict.c (predict_iv_comparison): Likewise.
27144 * pretty-print.h: Include wide-int-print.h.
27145 (pp_wide_int) New.
27146 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
27147 * print-tree.c: Include wide-int-print.h.
27148 (print_node_brief): Use wide-int interfaces.
27149 (print_node): Likewise.
27150 * read-rtl.c (validate_const_wide_int): New.
27151 (read_rtx_code): Add CONST_WIDE_INT case.
27152 * real.c: Include wide-int.h.
27153 (real_to_integer2): Delete.
27154 (real_to_integer): New function, returning a wide_int.
27155 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27156 (ten_to_ptwo): Update call to real_from_integer.
27157 (real_digit): Likewise.
27158 * real.h: Include signop.h, wide-int.h and insn-modes.h.
27159 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
27160 (REAL_VALUE_TO_INT): Delete.
27161 (real_to_integer): Declare a wide-int form.
27162 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27163 * recog.c (const_int_operand): Improve comment.
27164 (const_scalar_int_operand): New.
27165 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
27166 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
27167 (split_double): Likewise.
27168 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
27169 (rtx_size): Likewise.
27170 (rtx_alloc_stat_v): New.
27171 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
27172 (cwi_output_hex): New.
27173 (iterative_hash_rtx): Handle CONST_WIDE_INT.
27174 (cwi_check_failed_bounds): New.
27175 * rtl.def (CONST_WIDE_INT): New.
27176 * rtl.h: Include <utility> and wide-int.h.
27177 (struct hwivec_def): New.
27178 (CWI_GET_NUM_ELEM): New.
27179 (CWI_PUT_NUM_ELEM): New.
27180 (struct rtx_def): Add num_elem and hwiv.
27181 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
27182 (CASE_CONST_UNIQUE): Likewise.
27183 (CASE_CONST_ANY): Likewise.
27184 (CONST_SCALAR_INT_P): Likewise.
27185 (CONST_WIDE_INT_P): New.
27186 (CWI_ELT): New.
27187 (HWIVEC_CHECK): New.
27188 (cwi_check_failed_bounds): New.
27189 (CWI_ELT): New.
27190 (HWIVEC_CHECK): New.
27191 (CONST_WIDE_INT_VEC) New.
27192 (CONST_WIDE_INT_NUNITS) New.
27193 (CONST_WIDE_INT_ELT) New.
27194 (rtx_mode_t): New type.
27195 (wi::int_traits <rtx_mode_t>): New.
27196 (wi::shwi): New.
27197 (wi::min_value): New.
27198 (wi::max_value): New.
27199 (rtx_alloc_v) New.
27200 (const_wide_int_alloc): New.
27201 (immed_wide_int_const): New.
27202 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
27203 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
27204 * signop.h: New file.
27205 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
27206 (simplify_const_unary_operation): Use wide-int interfaces.
27207 (simplify_binary_operation_1): Likewise.
27208 (simplify_const_binary_operation): Likewise.
27209 (simplify_const_relational_operation): Likewise.
27210 (simplify_immed_subreg): Likewise.
27211 * stmt.c (expand_case): Likewise.
27212 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
27213 signop rather than a bool.
27214 * stor-layout.c (layout_type): Use wide-int interfaces.
27215 (initialize_sizetypes): Update calls to
27216 set_min_and_max_values_for_integral_type.
27217 (set_min_and_max_values_for_integral_type): Take a signop rather
27218 than a bool. Use wide-int interfaces.
27219 (fixup_signed_type): Update accordingly. Remove
27220 HOST_BITS_PER_DOUBLE_INT limit.
27221 (fixup_unsigned_type): Likewise.
27222 * system.h (STATIC_CONSTANT_P): New.
27223 (STATIC_ASSERT): New.
27224 * target.def (can_use_doloop_p): Take widest_ints rather than
27225 double_ints.
27226 * target.h: Include wide-int.h rather than double-int.h.
27227 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
27228 than double_ints.
27229 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
27230 rather than INT_CST_LT_UNSIGNED.
27231 (can_use_doloop_if_innermost): Take widest_ints rather than
27232 double_ints.
27233 * tree-affine.c: Include wide-int-print.h.
27234 (double_int_ext_for_comb): Delete.
27235 (wide_int_ext_for_comb): New.
27236 (aff_combination_zero): Use wide-int interfaces.
27237 (aff_combination_const): Take a widest_int instead of a double_int.
27238 (aff_combination_elt): Use wide-int interfaces.
27239 (aff_combination_scale): Take a widest_int instead of a double_int.
27240 (aff_combination_add_elt): Likewise.
27241 (aff_combination_add_cst): Likewise.
27242 (aff_combination_add): Use wide-int interfaces.
27243 (aff_combination_convert): Likewise.
27244 (tree_to_aff_combination): Likewise.
27245 (add_elt_to_tree): Take a widest_int instead of a double_int.
27246 (aff_combination_to_tree): Use wide-int interfaces.
27247 (aff_combination_remove_elt): Likewise.
27248 (aff_combination_add_product): Take a widest_int instead of
27249 a double_int.
27250 (aff_combination_mult): Use wide-int interfaces.
27251 (aff_combination_expand): Likewise.
27252 (double_int_constant_multiple_p): Delete.
27253 (wide_int_constant_multiple_p): New.
27254 (aff_combination_constant_multiple_p): Take a widest_int pointer
27255 instead of a double_int pointer.
27256 (print_aff): Use wide-int interfaces.
27257 (get_inner_reference_aff): Take a widest_int pointer
27258 instead of a double_int pointer.
27259 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
27260 * tree-affine.h: Include wide-int.h.
27261 (struct aff_comb_elt): Change type of coef to widest_int.
27262 (struct affine_tree_combination): Change type of offset to widest_int.
27263 (double_int_ext_for_comb): Delete.
27264 (wide_int_ext_for_comb): New.
27265 (aff_combination_const): Use widest_int instead of double_int.
27266 (aff_combination_scale): Likewise.
27267 (aff_combination_add_elt): Likewise.
27268 (aff_combination_constant_multiple_p): Likewise.
27269 (get_inner_reference_aff): Likewise.
27270 (aff_comb_cannot_overlap_p): Likewise.
27271 (aff_combination_zero_p): Use wide-int interfaces.
27272 * tree.c: Include tree.h.
27273 (init_ttree): Use make_int_cst.
27274 (tree_code_size): Removed code for INTEGER_CST case.
27275 (tree_size): Add INTEGER_CST case.
27276 (make_node_stat): Update comment.
27277 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
27278 (build_int_cst_type): Use wide-int interfaces.
27279 (double_int_to_tree): Likewise.
27280 (double_int_fits_to_tree_p): Delete.
27281 (force_fit_type_double): Delete.
27282 (force_fit_type): New.
27283 (int_cst_hash_hash): Use wide-int interfaces.
27284 (int_cst_hash_eq): Likewise.
27285 (build_int_cst_wide): Delete.
27286 (wide_int_to_tree): New.
27287 (cache_integer_cst): Use wide-int interfaces.
27288 (build_low_bits_mask): Likewise.
27289 (cst_and_fits_in_hwi): Likewise.
27290 (real_value_from_int_cst): Likewise.
27291 (make_int_cst_stat): New.
27292 (integer_zerop): Use wide_int interfaces.
27293 (integer_onep): Likewise.
27294 (integer_all_onesp): Likewise.
27295 (integer_pow2p): Likewise.
27296 (integer_nonzerop): Likewise.
27297 (tree_log2): Likewise.
27298 (tree_floor_log2): Likewise.
27299 (tree_ctz): Likewise.
27300 (int_size_in_bytes): Likewise.
27301 (mem_ref_offset): Return an offset_int rather than a double_int.
27302 (build_type_attribute_qual_variant): Use wide_int interfaces.
27303 (type_hash_eq): Likewise
27304 (tree_int_cst_equal): Likewise.
27305 (tree_int_cst_lt): Delete.
27306 (tree_int_cst_compare): Likewise.
27307 (tree_fits_shwi_p): Use wide_int interfaces.
27308 (tree_fits_uhwi_p): Likewise.
27309 (tree_int_cst_sign_bit): Likewise.
27310 (tree_int_cst_sgn): Likewise.
27311 (tree_int_cst_min_precision): Take a signop rather than a bool.
27312 (simple_cst_equal): Use wide_int interfaces.
27313 (compare_tree_int): Likewise.
27314 (iterative_hash_expr): Likewise.
27315 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
27316 INT_CST_LT.
27317 (get_type_static_bounds): Use wide_int interfaces.
27318 (tree_int_cst_elt_check_failed): New.
27319 (build_common_tree_nodes): Reordered to set prec before filling in
27320 value.
27321 (int_cst_value): Check cst_and_fits_in_hwi.
27322 (widest_int_cst_value): Use wide_int interfaces.
27323 (upper_bound_in_type): Likewise.
27324 (lower_bound_in_type): Likewise.
27325 (num_ending_zeros): Likewise.
27326 (drop_tree_overflow): Likewise.
27327 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
27328 (gen_conditions_for_pow_cst_base): Likewise.
27329 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
27330 (group_case_labels_stmt): Use wide-int interfaces.
27331 (verify_gimple_assign_binary): Likewise.
27332 (print_loop): Likewise.
27333 * tree-chrec.c (tree_fold_binomial): Likewise.
27334 * tree-core.h (struct tree_base): Add int_length.
27335 (struct tree_int_cst): Change rep of value.
27336 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
27337 (dr_may_alias_p): Likewise.
27338 (max_stmt_executions_tree): Likewise.
27339 * tree.def (INTEGER_CST): Update comment.
27340 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
27341 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
27342 * tree-dump.c: Include wide-int.h and wide-int-print.h.
27343 (dequeue_and_dump): Use wide-int interfaces.
27344 * tree.h: Include wide-int.h.
27345 (NULL_TREE): Moved to earlier loc in file.
27346 (TREE_INT_CST_ELT_CHECK): New.
27347 (tree_int_cst_elt_check_failed): New.
27348 (TYPE_SIGN): New.
27349 (TREE_INT_CST): Delete.
27350 (TREE_INT_CST_LOW): Use wide-int interfaces.
27351 (TREE_INT_CST_HIGH): Delete.
27352 (TREE_INT_CST_NUNITS): New.
27353 (TREE_INT_CST_EXT_NUNITS): Likewise.
27354 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
27355 (TREE_INT_CST_ELT): Likewise.
27356 (INT_CST_LT): Delete.
27357 (tree_int_cst_elt_check): New (two forms).
27358 (type_code_size): Update comment.
27359 (make_int_cst_stat, make_int_cst): New.
27360 (tree_to_double_int): Delete.
27361 (double_int_fits_to_tree_p): Delete.
27362 (force_fit_type_double): Delete.
27363 (build_int_cstu): Replace with out-of-line function.
27364 (build_int_cst_wide): Delete.
27365 (tree_int_cst_lt): Define inline.
27366 (tree_int_cst_le): New.
27367 (tree_int_cst_compare): Define inline.
27368 (tree_int_cst_min_precision): Take a signop rather than a bool.
27369 (wi::int_traits <const_tree>): New.
27370 (wi::int_traits <tree>): New.
27371 (wi::extended_tree): New.
27372 (wi::int_traits <wi::extended_tree>): New.
27373 (wi::to_widest): New.
27374 (wi::to_offset): New.
27375 (wi::fits_to_tree_p): New.
27376 (wi::min_value): New.
27377 (wi::max_value): New.
27378 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
27379 (copy_tree_body_r): Likewise.
27380 * tree-object-size.c (compute_object_offset): Likewise.
27381 (addr_object_size): Likewise.
27382 * tree-predcom.c: Include wide-int-print.h.
27383 (struct dref_d): Change type of offset to widest_int.
27384 (dump_dref): Call wide-int printer.
27385 (aff_combination_dr_offset): Use wide-int interfaces.
27386 (determine_offset): Take a widest_int pointer rather than a
27387 double_int pointer.
27388 (split_data_refs_to_components): Use wide-int interfaces.
27389 (suitable_component_p): Likewise.
27390 (order_drefs): Likewise.
27391 (add_ref_to_chain): Likewise.
27392 (valid_initializer_p): Likewise.
27393 (determine_roots_comp): Likewise.
27394 * tree-pretty-print.c: Include wide-int-print.h.
27395 (dump_generic_node): Use wide-int interfaces.
27396 * tree-sra.c (sra_ipa_modify_expr): Likewise.
27397 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
27398 (move_fixed_address_to_symbol): Likewise.
27399 (move_hint_to_base): Likewise.
27400 (move_pointer_to_base): Likewise.
27401 (move_variant_to_index): Likewise.
27402 (most_expensive_mult_to_index): Likewise.
27403 (addr_to_parts): Likewise.
27404 (copy_ref_info): Likewise.
27405 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27406 (indirect_refs_may_alias_p): Likewise.
27407 (stmt_kills_ref_p_1): Likewise.
27408 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
27409 * tree-ssa-ccp.c: Update comment at top of file. Include
27410 wide-int-print.h.
27411 (struct prop_value_d): Change type of mask to widest_int.
27412 (extend_mask): New function.
27413 (dump_lattice_value): Use wide-int interfaces.
27414 (get_default_value): Likewise.
27415 (set_constant_value): Likewise.
27416 (set_value_varying): Likewise.
27417 (valid_lattice_transition): Likewise.
27418 (set_lattice_value): Likewise.
27419 (value_to_double_int): Delete.
27420 (value_to_wide_int): New.
27421 (get_value_from_alignment): Use wide-int interfaces.
27422 (get_value_for_expr): Likewise.
27423 (do_dbg_cnt): Likewise.
27424 (ccp_finalize): Likewise.
27425 (ccp_lattice_meet): Likewise.
27426 (bit_value_unop_1): Use widest_ints rather than double_ints.
27427 (bit_value_binop_1): Likewise.
27428 (bit_value_unop): Use wide-int interfaces.
27429 (bit_value_binop): Likewise.
27430 (bit_value_assume_aligned): Likewise.
27431 (evaluate_stmt): Likewise.
27432 (ccp_fold_stmt): Likewise.
27433 (visit_cond_stmt): Likewise.
27434 (ccp_visit_stmt): Likewise.
27435 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27436 (constant_pointer_difference): Likewise.
27437 (associate_pointerplus): Likewise.
27438 (combine_conversions): Likewise.
27439 * tree-ssa-loop.h: Include wide-int.h.
27440 (struct tree_niter_desc): Change type of max to widest_int.
27441 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
27442 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
27443 (remove_redundant_iv_tests): Likewise.
27444 (canonicalize_loop_induction_variables): Likewise.
27445 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
27446 (constant_multiple_of): Take a widest_int pointer instead of
27447 a double_int pointer.
27448 (get_computation_aff): Use wide-int interfaces.
27449 (ptr_difference_cost): Likewise.
27450 (difference_cost): Likewise.
27451 (get_loop_invariant_expr_id): Likewise.
27452 (get_computation_cost_at): Likewise.
27453 (iv_elimination_compare_lt): Likewise.
27454 (may_eliminate_iv): Likewise.
27455 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
27456 instead of double_int.
27457 (max_loop_iterations): Likewise.
27458 (max_stmt_executions): Likewise.
27459 (estimated_stmt_executions): Likewise.
27460 * tree-ssa-loop-niter.c: Include wide-int-print.h.
27461 (split_to_var_and_offset): Use wide-int interfaces.
27462 (determine_value_range): Likewise.
27463 (bound_difference_of_offsetted_base): Likewise.
27464 (bounds_add): Take a widest_int instead of a double_int.
27465 (number_of_iterations_ne_max): Use wide-int interfaces.
27466 (number_of_iterations_ne): Likewise.
27467 (number_of_iterations_lt_to_ne): Likewise.
27468 (assert_loop_rolls_lt): Likewise.
27469 (number_of_iterations_lt): Likewise.
27470 (number_of_iterations_le): Likewise.
27471 (number_of_iterations_cond): Likewise.
27472 (number_of_iterations_exit): Likewise.
27473 (finite_loop_p): Likewise.
27474 (derive_constant_upper_bound_assign): Likewise.
27475 (derive_constant_upper_bound): Return a widest_int.
27476 (derive_constant_upper_bound_ops): Likewise.
27477 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
27478 (record_estimate): Take a widest_int rather than a double_int.
27479 (record_nonwrapping_iv): Use wide-int interfaces.
27480 (double_int_cmp): Delete.
27481 (wide_int_cmp): New.
27482 (bound_index): Take a widest_int rather than a double_int.
27483 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
27484 (maybe_lower_iteration_bound): Likewise.
27485 (estimate_numbers_of_iterations_loop): Likewise.
27486 (estimated_loop_iterations): Take a widest_int pointer than than
27487 a double_int pointer.
27488 (estimated_loop_iterations_int): Use wide-int interfaces.
27489 (max_loop_iterations): Take a widest_int pointer than than
27490 a double_int pointer.
27491 (max_loop_iterations_int): Use wide-int interfaces.
27492 (max_stmt_executions): Take a widest_int pointer than than
27493 a double_int pointer.
27494 (estimated_stmt_executions): Likewise.
27495 (n_of_executions_at_most): Use wide-int interfaces.
27496 (scev_probably_wraps_p): Likewise.
27497 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
27498 to real_to_integer.
27499 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
27500 interfaces.
27501 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
27502 double_ints. Adjust for trailing_wide_ints <3> representation.
27503 (set_nonzero_bits): Likewise.
27504 (get_range_info): Return wide_ints rather than double_ints.
27505 Adjust for trailing_wide_ints <3> representation.
27506 (get_nonzero_bits): Likewise.
27507 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
27508 representation.
27509 * tree-ssanames.h (struct range_info_def): Replace min, max and
27510 nonzero_bits with a trailing_wide_ints <3>.
27511 (set_range_info): Use wide_int_refs rather than double_ints.
27512 (set_nonzero_bits): Likewise.
27513 (get_range_info): Return wide_ints rather than double_ints.
27514 (get_nonzero_bits): Likewise.
27515 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
27516 * tree-ssa-pre.c (phi_translate_1): Likewise.
27517 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
27518 (acceptable_pow_call): Likewise.
27519 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
27520 interfaces.
27521 (vn_reference_fold_indirect): Likewise.
27522 (vn_reference_maybe_forwprop_address): Likewise.
27523 (valueize_refs_1): Likewise.
27524 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
27525 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
27526 tree_int_cst_lt and tree_int_cst_le.
27527 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
27528 interfaces.
27529 (streamer_alloc_tree): Likewise.
27530 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
27531 (streamer_write_tree_header): Likewise.
27532 (streamer_write_integer_cst): Likewise.
27533 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
27534 (build_constructors): Likewise.
27535 (array_value_type): Likewise.
27536 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
27537 (vect_check_gather): Likewise.
27538 * tree-vect-generic.c (build_replicated_const): Likewise.
27539 (expand_vector_divmod): Likewise.
27540 * tree-vect-loop.c (vect_transform_loop): Likewise.
27541 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27542 (vect_do_peeling_for_alignment): Likewise.
27543 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
27544 * tree-vrp.c: Include wide-int.h.
27545 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
27546 (extract_range_from_assert): Use wide-int interfaces.
27547 (vrp_int_const_binop): Likewise.
27548 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
27549 double_int pointers.
27550 (ranges_from_anti_range): Use wide-int interfaces.
27551 (quad_int_cmp): Delete.
27552 (quad_int_pair_sort): Likewise.
27553 (extract_range_from_binary_expr_1): Use wide-int interfaces.
27554 (extract_range_from_unary_expr_1): Likewise.
27555 (adjust_range_with_scev): Likewise.
27556 (masked_increment): Take and return wide_ints rather than double_ints.
27557 (register_edge_assert_for_2): Use wide-int interfaces.
27558 (check_array_ref): Likewise.
27559 (search_for_addr_array): Likewise.
27560 (maybe_set_nonzero_bits): Likewise.
27561 (union_ranges): Pass an integer of the correct type instead of
27562 using integer_one_node.
27563 (intersect_ranges): Likewise.
27564 (simplify_truth_ops_using_ranges): Likewise.
27565 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27566 (range_fits_type_p): Likewise.
27567 (simplify_cond_using_ranges): Likewise. Take a signop rather than
27568 a bool.
27569 (simplify_conversion_using_ranges): Use wide-int interfaces.
27570 (simplify_float_conversion_using_ranges): Likewise.
27571 (vrp_finalize): Likewise.
27572 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27573 (gimple_stringops_transform): Likewise.
27574 * varasm.c (decode_addr_const): Likewise.
27575 (const_hash_1): Likewise.
27576 (const_rtx_hash_1): Likewise
27577 (output_constant): Likewise.
27578 (array_size_for_constructor): Likewise.
27579 (output_constructor_regular_field): Likewise.
27580 (output_constructor_bitfield): Likewise.
27581 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27582 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27583 GENERATOR_FILEs.
27584 * gencheck.c: Define BITS_PER_UNIT.
27585 * wide-int.cc: New.
27586 * wide-int.h: New.
27587 * wide-int-print.cc: New.
27588 * wide-int-print.h: New.
27589
27590 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27591
27592 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27593
27594 2014-05-06 Richard Biener <rguenther@suse.de>
27595
27596 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27597 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27598 (TODO_verify_all): Adjust.
27599 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27600 TODO_verify_stmts and TODO_verify_rtl_sharing.
27601 * bb-reorder.c: Likewise.
27602 * cfgexpand.c: Likewise.
27603 * cprop.c: Likewise.
27604 * cse.c: Likewise.
27605 * function.c: Likewise.
27606 * fwprop.c: Likewise.
27607 * gcse.c: Likewise.
27608 * gimple-ssa-isolate-paths.c: Likewise.
27609 * gimple-ssa-strength-reduction.c: Likewise.
27610 * ipa-split.c: Likewise.
27611 * loop-init.c: Likewise.
27612 * loop-unroll.c: Likewise.
27613 * lower-subreg.c: Likewise.
27614 * modulo-sched.c: Likewise.
27615 * postreload-gcse.c: Likewise.
27616 * predict.c: Likewise.
27617 * recog.c: Likewise.
27618 * sched-rgn.c: Likewise.
27619 * store-motion.c: Likewise.
27620 * tracer.c: Likewise.
27621 * trans-mem.c: Likewise.
27622 * tree-call-cdce.c: Likewise.
27623 * tree-cfg.c: Likewise.
27624 * tree-cfgcleanup.c: Likewise.
27625 * tree-complex.c: Likewise.
27626 * tree-eh.c: Likewise.
27627 * tree-emutls.c: Likewise.
27628 * tree-if-conv.c: Likewise.
27629 * tree-into-ssa.c: Likewise.
27630 * tree-loop-distribution.c: Likewise.
27631 * tree-object-size.c: Likewise.
27632 * tree-parloops.c: Likewise.
27633 * tree-pass.h: Likewise.
27634 * tree-sra.c: Likewise.
27635 * tree-ssa-ccp.c: Likewise.
27636 * tree-ssa-copy.c: Likewise.
27637 * tree-ssa-copyrename.c: Likewise.
27638 * tree-ssa-dce.c: Likewise.
27639 * tree-ssa-dom.c: Likewise.
27640 * tree-ssa-dse.c: Likewise.
27641 * tree-ssa-forwprop.c: Likewise.
27642 * tree-ssa-ifcombine.c: Likewise.
27643 * tree-ssa-loop-ch.c: Likewise.
27644 * tree-ssa-loop-ivcanon.c: Likewise.
27645 * tree-ssa-loop.c: Likewise.
27646 * tree-ssa-math-opts.c: Likewise.
27647 * tree-ssa-phiopt.c: Likewise.
27648 * tree-ssa-phiprop.c: Likewise.
27649 * tree-ssa-pre.c: Likewise.
27650 * tree-ssa-reassoc.c: Likewise.
27651 * tree-ssa-sink.c: Likewise.
27652 * tree-ssa-strlen.c: Likewise.
27653 * tree-ssa-tail-merge.c: Likewise.
27654 * tree-ssa-uncprop.c: Likewise.
27655 * tree-switch-conversion.c: Likewise.
27656 * tree-tailcall.c: Likewise.
27657 * tree-vect-generic.c: Likewise.
27658 * tree-vectorizer.c: Likewise.
27659 * tree-vrp.c: Likewise.
27660 * tsan.c: Likewise.
27661 * var-tracking.c: Likewise.
27662 * bt-load.c: Likewise.
27663 * cfgcleanup.c: Likewise.
27664 * combine-stack-adj.c: Likewise.
27665 * combine.c: Likewise.
27666 * compare-elim.c: Likewise.
27667 * config/epiphany/resolve-sw-modes.c: Likewise.
27668 * config/i386/i386.c: Likewise.
27669 * config/mips/mips.c: Likewise.
27670 * config/s390/s390.c: Likewise.
27671 * config/sh/sh_treg_combine.cc: Likewise.
27672 * config/sparc/sparc.c: Likewise.
27673 * dce.c: Likewise.
27674 * dse.c: Likewise.
27675 * final.c: Likewise.
27676 * ifcvt.c: Likewise.
27677 * mode-switching.c: Likewise.
27678 * passes.c: Likewise.
27679 * postreload.c: Likewise.
27680 * ree.c: Likewise.
27681 * reg-stack.c: Likewise.
27682 * regcprop.c: Likewise.
27683 * regrename.c: Likewise.
27684 * web.c: Likewise.
27685
27686 2014-05-06 Richard Biener <rguenther@suse.de>
27687
27688 PR middle-end/61070
27689 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27690 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27691
27692 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
27693
27694 PR ipa/60965
27695 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27696
27697 2014-05-05 Radovan Obradovic <robradovic@mips.com>
27698 Tom de Vries <tom@codesourcery.com>
27699
27700 * target.def (call_fusage_contains_non_callee_clobbers): New
27701 DEFHOOKPOD.
27702 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27703 Hooks to @menu.
27704 (@node Miscellaneous Register Hooks): New node.
27705 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27706 * doc/tm.texi: Regenerate.
27707
27708 2014-05-05 Marek Polacek <polacek@redhat.com>
27709
27710 PR driver/61065
27711 * opts.c (common_handle_option): Call error_at instead of warning_at.
27712
27713 2014-05-05 Richard Biener <rguenther@suse.de>
27714
27715 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27716 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
27717 under the TODO_verify_il umbrella.
27718
27719 2014-05-05 Richard Biener <rguenther@suse.de>
27720
27721 * passes.c (execute_function_todo): Move TODO_verify_flow under
27722 the TODO_verify_ul umbrella.
27723
27724 2014-05-05 Richard Biener <rguenther@suse.de>
27725
27726 PR middle-end/61010
27727 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27728 X & CST away from a CST that is the mask of a mode.
27729
27730 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27731
27732 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27733 int argument to enum machine_mode.
27734 (picochip_class_max_nregs): Ditto.
27735 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27736 (picochip_class_max_nregs): Ditto.
27737
27738 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27739
27740 * target.def: Add new target hook.
27741 * doc/tm.texi: Regenerate.
27742 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27743 * targhooks.c (default_keep_leaf_when_profiled): New function.
27744
27745 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27746 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27747
27748 2014-05-05 Bin Cheng <bin.cheng@arm.com>
27749
27750 PR tree-optimization/60363
27751 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27752 (copy_phi_args): New parameters. Call get_value_locus_in_path.
27753 (update_destination_phis): New parameter.
27754 (create_edge_and_update_destination_phis): Ditto.
27755 (ssa_fix_duplicate_block_edges): Pass new arguments.
27756 (thread_single_edge): Ditto.
27757
27758 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
27759
27760 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27761 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27762 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27763 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27764 Use RS6000_BTM_HARD_FLOAT.
27765 (BU_MISC_2): Likewise.
27766 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27767 RS6000_BTM_HARD_FLOAT.
27768 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27769 is explicitly used.
27770 (rs6000_invalid_builtin): Add hard floating builtin support.
27771 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27772 hard float builtins.
27773 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27774
27775 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27776
27777 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27778 Add missing function* argument.
27779
27780 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27781
27782 * lra-constraints.c (valid_address_p): Move earlier in file.
27783 Add a constraint argument to the address_info version.
27784 (satisfies_memory_constraint_p): New function.
27785 (satisfies_address_constraint_p): Likewise.
27786 (process_alt_operands, curr_insn_transform): Use them.
27787 (process_address): Pass the constraint to valid_address_p when
27788 checking address operands.
27789
27790 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27791
27792 * config/mips/mips.c (mips_isa_rev): New variable.
27793 (mips_set_architecture): Set it.
27794 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27795 from mips_isa_rev.
27796 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27797 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27798 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27799 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27800 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27801 conditions in terms of mips_isa_rev.
27802 (mips_isa_rev): Declare.
27803
27804 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27805
27806 * config/sh/sh-mem.cc: Use tabs instead of spaces.
27807 (prob_unlikely, prob_likely): Make variables const.
27808
27809 2014-05-03 Denis Chertykov <chertykov@gmail.com>
27810
27811 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27812
27813 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27814
27815 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27816
27817 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27818
27819 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27820 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27821 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27822 functions.
27823 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27824 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27825 sh_pass_in_reg_p.
27826 Replace usage of ROUND_REG with sh_round_reg.
27827 Use CEIL instead of ROUND_ADVANCE.
27828
27829 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27830
27831 PR target/61026
27832 * config/sh/sh.c: Include stdlib headers before everything else.
27833
27834 2014-05-02 Jakub Jelinek <jakub@redhat.com>
27835
27836 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27837 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27838 (gimplify_adjust_omp_clauses): Simd region is never
27839 directly nested in combined parallel. Instead, for linear
27840 with copyin/copyout, if in combined for simd loop, make decl
27841 firstprivate/lastprivate on OMP_FOR.
27842 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27843 expand_omp_for_static_chunk): When setting endvar, also set
27844 fd->loop.v to the same value.
27845
27846 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27847
27848 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27849
27850 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
27851
27852 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27853 expression.
27854
27855 2014-05-02 Marek Polacek <polacek@redhat.com>
27856
27857 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27858
27859 2014-05-02 Kito Cheng <kito@0xlab.org>
27860
27861 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27862 to a C expression marco.
27863 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27864 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27865 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27866 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27867 HONOR_REG_ALLOC_ORDER.
27868 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27869
27870 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27871
27872 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27873
27874 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27875
27876 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27877
27878 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27879
27880 * tree-if-conv.c (is_cond_scalar_reduction): New function.
27881 (convert_scalar_cond_reduction): Likewise.
27882 (predicate_scalar_phi): Add recognition and transformation
27883 of simple conditioanl reduction to be vectorizable.
27884
27885 2014-05-01 Marek Polacek <polacek@redhat.com>
27886
27887 PR c/43245
27888 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27889
27890 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
27891
27892 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27893 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27894 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27895 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27896 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27897 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27898 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27899 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27900
27901 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
27902
27903 * config/arc/arc.opt (mlra): Move comment above option name
27904 to avoid mis-parsing as language options.
27905
27906 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27907
27908 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27909 * config/sol2.h: ... here.
27910 * config/sol2-10.h: Remove.
27911
27912 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27913 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27914 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27915 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27916 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27917 * config/sol2.h: ... here.
27918 (SECTION_NAME_FORMAT): Don't redefine.
27919 (STARTFILE_ARCH32_SPEC): Rename to ...
27920 (STARTFILE_ARCH_SPEC): ... this.
27921 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27922 * config/sparc/sol2.h: ... here.
27923 (SECTION_NAME_FORMAT): Don't undef.
27924 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27925 (SUBTARGET_EXTRA_SPECS): Remove.
27926 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27927
27928 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27929 (MD_STARTFILE_PREFIX): Remove.
27930 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27931 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27932 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27933 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27934 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27935 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27936 * config/i386/sol2.h: ... here.
27937 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27938 * config/i386/sol2-bi.h: Remove.
27939 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27940 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27941
27942 * config/i386/t-sol2-64: Rename to ...
27943 * config/i386/t-sol2: ... this.
27944 * config/sparc/t-sol2-64: Rename to ...
27945 * config/sparc/t-sol2: ... this.
27946
27947 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27948 sol2_tm_file_head, sol2_tm_file_tail.
27949 Include ${cpu_type}/sol2.h before sol2.h.
27950 Remove sol2-10.h.
27951 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27952 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27953 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27954 Reflect i386/t-sol2-64 renaming.
27955 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27956 Reflect sparc/t-sol2-64 renaming.
27957
27958 2014-04-30 Richard Biener <rguenther@suse.de>
27959
27960 * passes.c (execute_function_todo): Move TODO_verify_stmts
27961 and TODO_verify_ssa under the TODO_verify_il umbrella.
27962 * tree-ssa.h (verify_ssa): Adjust prototype.
27963 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27964 we should verify SSA operands.
27965 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27966 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27967 whether we should verify whether not throwing stmts have EH info.
27968 * graphite-scop-detection.c (create_sese_edges): Adjust.
27969 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27970 * tree-eh.c (lower_try_finally_switch): Do not add the
27971 default case label twice.
27972
27973 2014-04-30 Marek Polacek <polacek@redhat.com>
27974
27975 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27976 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27977 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27978 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27979
27980 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27981
27982 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27983 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27984 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27985 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27986 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27987 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27988 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27989 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27990
27991 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27992
27993 * tree-cfg.c (dump_function_to_file): Dump the return type of
27994 functions, in a line to itself before the function body, mimicking
27995 the layout of a C function.
27996
27997 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27998
27999 PR tree-optimization/60971
28000 * tree-tailcall.c (process_assignment): Reject conversions which
28001 reduce precision.
28002
28003 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28004
28005 * calls.c (initialize_argument_information): Always treat
28006 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
28007 (expand_call): Likewise.
28008 (emit_library_call_calue_1): Likewise.
28009 * expr.c (PUSH_ARGS_REVERSED): Do not define.
28010 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
28011 code accordingly.
28012
28013 2014-04-29 Nick Clifton <nickc@redhat.com>
28014
28015 * config/msp430/msp430.md (umulsidi): Fix typo.
28016 (mulhisi3): Enable even inside interrupt handlers.
28017 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
28018 bigger return address pushed in large mode.
28019
28020 2014-04-29 Nick Clifton <nickc@redhat.com>
28021
28022 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
28023 (arc_init_reg_tables): Use a machine_mode enum to iterate over
28024 available modes.
28025 * config/m32r/m32r.c (init_reg_tables): Likewise.
28026 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
28027 enum to hold the modes.
28028
28029 2014-04-29 Richard Biener <rguenther@suse.de>
28030
28031 * dominance.c (free_dominance_info): Add overload with
28032 function parameter.
28033 (dom_info_state): Likewise.
28034 (dom_info_available_p): Likewise.
28035 * basic-block.h (free_dominance_info, dom_info_state,
28036 dom_info_available_p): Declare overloads.
28037 * passes.c (execute_function_todo): Verify that verifiers
28038 don't change dominator info state. Drop dominator info
28039 for IPA pass invocations.
28040 * cgraph.c (release_function_body): Restore asserts that
28041 dominator information is released.
28042
28043 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
28044
28045 * doc/invoke.texi: Fix typo.
28046 * tree-vrp.c: Fix typos.
28047 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
28048
28049 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28050
28051 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
28052
28053 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
28054
28055 * config/aarch64/aarch64-builtins.c
28056 (aarch64_types_storestruct_lane_qualifiers): New.
28057 (TYPES_STORESTRUCT_LANE): Likewise.
28058 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
28059 (st3_lane): Likewise.
28060 (st4_lane): Likewise.
28061 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
28062 (vec_store_lanesci_lane<mode>): Likewise.
28063 (vec_store_lanesxi_lane<mode>): Likewise.
28064 (aarch64_st2_lane<VQ:mode>): Likewise.
28065 (aarch64_st3_lane<VQ:mode>): Likewise.
28066 (aarch64_st4_lane<VQ:mode>): Likewise.
28067 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
28068 * config/aarch64/arm_neon.h
28069 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
28070 use new macro arguments.
28071 (__ST3_LANE_FUNC): Likewise.
28072 (__ST4_LANE_FUNC): Likewise.
28073 * config/aarch64/iterators.md (V_TWO_ELEM): New.
28074 (V_THREE_ELEM): Likewise.
28075 (V_FOUR_ELEM): Likewise.
28076
28077 2014-04-28 David Malcolm <dmalcolm@redhat.com>
28078
28079 * doc/gimple.texi: Replace the description of the now-defunct
28080 union gimple_statement_d with a diagram showing the
28081 gimple_statement_base class hierarchy and its relationships to
28082 the GSS_ and GIMPLE_ enums.
28083
28084 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
28085
28086 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
28087 * config/aarch64/aarch64.c
28088 (aarch64_cannot_change_mode_class): Weaken conditions.
28089 (aarch64_modes_tieable_p): New.
28090 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
28091
28092 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
28093
28094 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28095 (loadsync_<mode>): Change mode.
28096 (load_quadpti, store_quadpti): New.
28097 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28098 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28099
28100 2014-04-28 Martin Jambor <mjambor@suse.cz>
28101
28102 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
28103 same alias type as the original statement.
28104 (subreplacement_assignment_data): New type.
28105 (handle_unscalarized_data_in_subtree): New type of parameter,
28106 generate new memory accesses with same alias type as the original
28107 statement.
28108 (load_assign_lhs_subreplacements): Likewise.
28109 (sra_modify_constructor_assign): Generate new memory accesses with
28110 same alias type as the original statement.
28111
28112 2014-04-28 Richard Biener <rguenther@suse.de>
28113
28114 * tree-pass.h (TODO_verify_il): Define.
28115 (TODO_verify_all): Complete properly.
28116 * passes.c (execute_function_todo): Move existing loop-closed
28117 SSA verification under TODO_verify_il.
28118 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
28119 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
28120 Fix tree sharing issue.
28121
28122 2014-04-28 Richard Biener <rguenther@suse.de>
28123
28124 PR middle-end/60092
28125 * builtins.def (DEF_C11_BUILTIN): Add.
28126 (BUILT_IN_ALIGNED_ALLOC): Likewise.
28127 * coretypes.h (enum function_class): Add function_c11_misc.
28128 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
28129 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
28130 (call_may_clobber_ref_p_1): Likewise.
28131 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
28132 (mark_all_reaching_defs_necessary_1): Likewise.
28133 (propagate_necessity): Likewise.
28134 (eliminate_unnecessary_stmts): Likewise.
28135 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
28136
28137 2014-04-28 Richard Biener <rguenther@suse.de>
28138
28139 * tree-vrp.c (vrp_var_may_overflow): Remove.
28140 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
28141 with overflow immediately bump to one before that value and
28142 let iteration figure out overflow status.
28143
28144 2014-04-28 Richard Biener <rguenther@suse.de>
28145
28146 * configure.ac: Do valgrind header checks unconditionally.
28147 Add --enable-valgrind-annotations.
28148 * system.h: Guard valgrind header inclusion with
28149 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
28150 * alloc-pool.c (pool_alloc, pool_free): Use
28151 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
28152 to guard possibly dead code.
28153 * config.in: Regenerated.
28154 * configure: Likewise.
28155
28156 2014-04-28 Jeff Law <law@redhat.com>
28157
28158 PR tree-optimization/60902
28159 * tree-ssa-threadedge.c
28160 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
28161 over real defs when invalidating outputs from statements that do not
28162 produce useful outputs for threading.
28163
28164 2014-04-28 Richard Biener <rguenther@suse.de>
28165
28166 PR tree-optimization/60979
28167 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
28168 SCOPs that end in a block with a successor with abnormal
28169 predecessors.
28170
28171 2014-04-28 Richard Biener <rguenther@suse.de>
28172
28173 * tree-pass.h (execute_pass_list): Adjust prototype.
28174 * passes.c (pass_manager::execute_early_local_passes): Adjust.
28175 (do_per_function): Change callback signature, push all actual
28176 work to the callbals.
28177 (do_per_function_toporder): Likewise.
28178 (execute_function_dump): Adjust.
28179 (execute_function_todo): Likewise.
28180 (clear_last_verified): Likewise.
28181 (verify_curr_properties): Likewise.
28182 (update_properties_after_pass): Likewise.
28183 (execute_pass_list_1): Split out from ...
28184 (execute_pass_list): ... here. Adjust.
28185 (execute_ipa_pass_list): Likewise.
28186 * cgraphunit.c (cgraph_add_new_function): Adjust.
28187 (analyze_function): Likewise.
28188 (expand_function): Likewise.
28189 * cgraph.c (release_function_body): Free dominance info
28190 here instead of asserting it was magically freed elsewhere.
28191
28192 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
28193
28194 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
28195 * configure: Regenerate.
28196 * config/sparc/sparc.opt (muser-mode): New option.
28197 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
28198 for LEON3.
28199 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
28200 * doc/invoke.texi (SPARC options): Document -muser-mode.
28201
28202 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
28203
28204 * cselib.c (find_slot_memmode): Delete.
28205 (cselib_hasher): Change compare_type to a struct.
28206 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
28207 constants.
28208 (preserve_constants_and_equivs): Adjust for new compare_type.
28209 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
28210 (wrap_constant): Delete.
28211 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
28212
28213 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
28214
28215 * doc/install.texi (Building with profile feedback): Remove
28216 outdated sentence.
28217
28218 2014-04-26 Tom de Vries <tom@codesourcery.com>
28219
28220 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
28221 array accesses.
28222
28223 2014-04-25 Cary Coutant <ccoutant@google.com>
28224
28225 PR debug/60929
28226 * dwarf2out.c (should_move_die_to_comdat): A type definition
28227 can contain a subprogram definition, but don't move it to a
28228 comdat unit.
28229 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
28230 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
28231 from original DIE.
28232 (clone_tree_hash): Rename to...
28233 (clone_tree_partial): ...this; change callers. Copy
28234 DW_TAG_subprogram DIEs as declarations.
28235 (copy_decls_walk): Don't copy children of a declaration into a
28236 type unit.
28237
28238 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
28239
28240 PR target/60969
28241 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
28242 alternative 12.
28243
28244 2014-04-25 Jiong Wang <jiong.wang@arm.com>
28245
28246 * config/arm/predicates.md (call_insn_operand): Add long_call check.
28247 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
28248 reg for long_call.
28249 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
28250 restriction.
28251
28252 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28253
28254 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
28255
28256 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28257
28258 PR tree-optimization/60930
28259 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
28260 creating a multiply candidate by folding two constant
28261 multiplicands when the result overflows.
28262
28263 2014-04-25 Jakub Jelinek <jakub@redhat.com>
28264
28265 PR tree-optimization/60960
28266 * tree-vect-generic.c (expand_vector_operation): Only call
28267 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
28268
28269 2014-04-25 Tom de Vries <tom@codesourcery.com>
28270
28271 * expr.c (clobber_reg_mode): New function.
28272 * expr.h (clobber_reg): New function.
28273
28274 2014-04-25 Tom de Vries <tom@codesourcery.com>
28275
28276 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
28277 clobbers.
28278
28279 2014-04-25 Radovan Obradovic <robradovic@mips.com>
28280 Tom de Vries <tom@codesourcery.com>
28281
28282 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
28283 handle.
28284 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
28285 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
28286 new argument to find_all_hard_reg_sets call.
28287
28288 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28289
28290 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
28291 Use HOST_WIDE_INT_C for mask literal.
28292 (aarch_rev16_shleft_mask_imm_p): Likewise.
28293
28294 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
28295
28296 PR target/60941
28297 * config/sparc/sparc.md (ashlsi3_extend): Delete.
28298
28299 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
28300
28301 PR preprocessor/56540
28302 * config/i386/i386-c.c (ix86_target_macros): Define
28303 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
28304
28305 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28306
28307 * configure.ac (tga_func): Remove.
28308 (LIB_TLS_SPEC): Remove.
28309 * configure: Regenerate.
28310 * config.in: Regenerate.
28311 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
28312
28313 2014-04-25 Richard Biener <rguenther@suse.de>
28314
28315 PR ipa/60912
28316 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
28317 call stmt use/clobber sets during stmt walk instead of
28318 walking the possibly incomplete set of caller edges.
28319
28320 2014-04-25 Richard Biener <rguenther@suse.de>
28321
28322 PR ipa/60911
28323 * passes.c (apply_ipa_transforms): Inline into only caller ...
28324 (execute_one_pass): ... here. Properly bring in function
28325 bodies for nodes we want to apply IPA transforms to.
28326
28327 2014-04-24 Cong Hou <congh@google.com>
28328
28329 PR tree-optimization/60896
28330 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
28331 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
28332 (vect_mark_pattern_stmts): Set the def type of all statements in
28333 PATTERN_DEF_SEQ as vect_internal_def.
28334
28335 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28336
28337 * doc/extend.texi (PowerPC Built-in Functions): Document new
28338 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
28339 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
28340
28341 * config/rs6000/predicates.md (const_0_to_3_operand): New
28342 predicate to match 0..3 integer constants.
28343
28344 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
28345 to support adding miscellaneous builtin functions.
28346 (BU_DFP_MISC_2): Likewise.
28347 (BU_P7_MISC_1): Likewise.
28348 (BU_P7_MISC_2): Likewise.
28349 (BU_P8V_MISC_3): Likewise.
28350 (BU_MISC_1): Likewise.
28351 (BU_MISC_2): Likewise.
28352 (DIVWE): Add extended divide builtin functions.
28353 (DIVWEO): Likewise.
28354 (DIVWEU): Likewise.
28355 (DIVWEUO): Likewise.
28356 (DIVDE): Likewise.
28357 (DIVDEO): Likewise.
28358 (DIVDEU): Likewise.
28359 (DIVDEUO): Likewise.
28360 (DXEX): Add decimal floating-point builtin functions.
28361 (DXEXQ): Likewise.
28362 (DDEDPD): Likewise.
28363 (DDEDPDQ): Likewise.
28364 (DENBCD): Likewise.
28365 (DENBCDQ): Likewise.
28366 (DIEX): Likewise.
28367 (DIEXQ): Likewise.
28368 (DSCLI): Likewise.
28369 (DSCLIQ): Likewise.
28370 (DSCRI): Likewise.
28371 (DSCRIQ): Likewise.
28372 (CDTBCD): Add new BCD builtin functions.
28373 (CBCDTD): Likewise.
28374 (ADDG6S): Likewise.
28375 (BCDADD): Likewise.
28376 (BCDADD_LT): Likewise.
28377 (BCDADD_EQ): Likewise.
28378 (BCDADD_GT): Likewise.
28379 (BCDADD_OV): Likewise.
28380 (BCDSUB): Likewise.
28381 (BCDSUB_LT): Likewise.
28382 (BCDSUB_EQ): Likewise.
28383 (BCDSUB_GT): Likewise.
28384 (BCDSUB_OV): Likewise.
28385 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
28386 (UNPACK_TD): Likewise.
28387 (PACK_TF): Likewise.
28388 (UNPACK_TF): Likewise.
28389 (UNPACK_TF_0): Likewise.
28390 (UNPACK_TF_1): Likewise.
28391 (PACK_V1TI): Likewise.
28392 (UNPACK_V1TI): Likewise.
28393
28394 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28395 support for decimal floating point builtin functions.
28396 (rs6000_expand_ternop_builtin): Add checks for the new builtin
28397 functions that take constant arguments.
28398 (rs6000_invalid_builtin): Add decimal floating point builtin support.
28399 (rs6000_init_builtins): Setup long double, _Decimal64, and
28400 _Decimal128 types for new builtin functions.
28401 (builtin_function_type): Set the unsigned flags appropriately for
28402 the new builtin functions.
28403 (rs6000_opt_masks): Add support for decimal floating point builtin
28404 functions.
28405
28406 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
28407 floating point builtin functions.
28408 (RS6000_BTM_COMMON): Likewise.
28409 (RS6000_BTI_long_double): Likewise.
28410 (RS6000_BTI_dfloat64): Likewise.
28411 (RS6000_BTI_dfloat128): Likewise.
28412 (long_double_type_internal_node): Likewise.
28413 (dfloat64_type_internal_node): Likewise.
28414 (dfloat128_type_internal_node): Likewise.
28415
28416 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
28417 2.07 bcd arithmetic instructions.
28418 (UNSPEC_BCDSUB): Likewise.
28419 (UNSPEC_BCD_OVERFLOW): Likewise.
28420 (UNSPEC_BCD_ADD_SUB): Likewise.
28421 (bcd_add_sub): Likewise.
28422 (BCD_TEST): Likewise.
28423 (bcd<bcd_add_sub>): Likewise.
28424 (bcd<bcd_add_sub>_test): Likewise.
28425 (bcd<bcd_add_sub>_test2): Likewise.
28426 (bcd<bcd_add_sub>_<code>): Likewise.
28427 (peephole2 for combined bcd ops): Likewise.
28428
28429 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
28430 decimal floating point builtin functions.
28431 (UNSPEC_DENBCD): Likewise.
28432 (UNSPEC_DXEX): Likewise.
28433 (UNSPEC_DIEX): Likewise.
28434 (UNSPEC_DSCLI): Likewise.
28435 (UNSPEC_DSCRI): Likewise.
28436 (D64_D128): Likewise.
28437 (dfp_suffix): Likewise.
28438 (dfp_ddedpd_<mode>): Likewise.
28439 (dfp_denbcd_<mode>): Likewise.
28440 (dfp_dxex_<mode>): Likewise.
28441 (dfp_diex_<mode>): Likewise.
28442 (dfp_dscli_<mode>): Likewise.
28443 (dfp_dscri_<mode>): Likewise.
28444
28445 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
28446 builtin functions.
28447 (UNSPEC_CDTBCD): Likewise.
28448 (UNSPEC_CBCDTD): Likewise.
28449 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
28450 (UNSPEC_DIVEO): Likewise.
28451 (UNSPEC_DIVEU): Likewise.
28452 (UNSPEC_DIVEUO): Likewise.
28453 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
28454 pack/unpack 128-bit types.
28455 (UNSPEC_PACK_128BIT): Likewise.
28456 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
28457 (udiv<mode>3): Use idiv_ldiv mode attribute.
28458 (div<mode>3): Likewise.
28459 (addg6s): Add new BCD builtin functions.
28460 (cdtbcd): Likewise.
28461 (cbcdtd): Likewise.
28462 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
28463 (div_extend): Likewise.
28464 (div<div_extend>_<mode>"): Likewise.
28465 (FP128_64): Add support for new builtin functions to pack/unpack
28466 128-bit types.
28467 (unpack<mode>): Likewise.
28468 (unpacktf_0): Likewise.
28469 (unpacktf_1): Likewise.
28470 (unpack<mode>_dm): Likewise.
28471 (unpack<mode>_nodm): Likewise.
28472 (pack<mode>): Likewise.
28473 (unpackv1ti): Likewise.
28474 (packv1ti): Likewise.
28475
28476 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
28477
28478 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
28479 is disabled.
28480
28481 2014-04-24 Jakub Jelinek <jakub@redhat.com>
28482
28483 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
28484 * gimplify.c (omp_is_private): Change last argument's type to int.
28485 Only diagnose lastprivate if the simd argument is 1, only diagnose
28486 linear if the simd argument is 2.
28487 (gimplify_omp_for): Adjust omp_is_private callers. When adding
28488 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
28489 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
28490 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
28491 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
28492 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28493 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
28494 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28495 * tree-nested.c (convert_nonlocal_omp_clauses,
28496 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
28497
28498 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
28499
28500 PR target/60822
28501 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
28502 operand 1.
28503
28504 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
28505
28506 * flag-types.h (enum ivar_visibility): Add.
28507
28508 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
28509
28510 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
28511 function * argument.
28512
28513 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
28514
28515 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
28516
28517 2014-04-24 Radovan Obradovic <robradovic@mips.com>
28518 Tom de Vries <tom@codesourcery.com>
28519
28520 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
28521 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
28522 reg-note.
28523 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
28524 * emit-rtl.c (try_split): Same.
28525
28526 2014-04-24 Radovan Obradovic <robradovic@mips.com>
28527 Tom de Vries <tom@codesourcery.com>
28528
28529 * common.opt (fuse-caller-save): New option.
28530
28531 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
28532
28533 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
28534 elements for big-endian.
28535
28536 2014-04-24 Richard Biener <rguenther@suse.de>
28537
28538 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
28539 during TER and instead use the sepops interface for expanding
28540 non-GIMPLE_SINGLE_RHS.
28541
28542 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28543
28544 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
28545 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
28546
28547 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28548
28549 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
28550 assembler 64-bit option.
28551 * configure: Regenerate.
28552
28553 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28554
28555 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
28556 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
28557 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
28558 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
28559 (TARGET_CRYPTO): Take TARGET_SIMD into account.
28560
28561 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28562
28563 * config/aarch64/aarch64-builtins.c
28564 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28565 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28566 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28567 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28568 builtins.
28569 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28570 (Vrevsuff): New mode attribute.
28571
28572 2014-04-24 Terry Guo <terry.guo@arm.com>
28573
28574 * config/arm/arm.h (machine_function): Define variable
28575 after_arm_reorg here.
28576 * config/arm/arm.c (after_arm_reorg): Remove the definition.
28577 (arm_split_constant): Update the way to access variable
28578 after_arm_reorg.
28579 (arm_reorg): Ditto.
28580 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28581
28582 2014-04-23 Tom de Vries <tom@codesourcery.com>
28583
28584 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28585
28586 2014-04-23 David Malcolm <dmalcolm@redhat.com>
28587
28588 * is-a.h: Update comments to reflect the following changes to the
28589 "pointerness" of the API, making the template parameter match the
28590 return type, allowing use of is-a.h with typedefs of pointers.
28591 (is_a_helper::cast): Return a T rather then a pointer to a T, so
28592 that the return type matches the parameter to the is_a_helper.
28593 (as_a): Likewise.
28594 (dyn_cast): Likewise.
28595
28596 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28597 pointer from the is-a.h API.
28598
28599 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28600 (is_a_helper <cgraph_node *>::test): ...this, matching change to
28601 is-a.h API.
28602 (is_a_helper <varpool_node>::test): Likewise, convert to...
28603 (is_a_helper <varpool_node *>::test): ...this.
28604
28605 (varpool_first_variable): Update for removal of implicit pointer
28606 from the is-a.h API.
28607 (varpool_next_variable): Likewise.
28608 (varpool_first_static_initializer): Likewise.
28609 (varpool_next_static_initializer): Likewise.
28610 (varpool_first_defined_variable): Likewise.
28611 (varpool_next_defined_variable): Likewise.
28612 (cgraph_first_defined_function): Likewise.
28613 (cgraph_next_defined_function): Likewise.
28614 (cgraph_first_function): Likewise.
28615 (cgraph_next_function): Likewise.
28616 (cgraph_first_function_with_gimple_body): Likewise.
28617 (cgraph_next_function_with_gimple_body): Likewise.
28618 (cgraph_alias_target): Likewise.
28619 (varpool_alias_target): Likewise.
28620 (cgraph_function_or_thunk_node): Likewise.
28621 (varpool_variable_node): Likewise.
28622 (symtab_real_symbol_p): Likewise.
28623 * cgraphunit.c (referred_to_p): Likewise.
28624 (analyze_functions): Likewise.
28625 (handle_alias_pairs): Likewise.
28626 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28627 * gimple-ssa.h (gimple_vuse_op): Likewise.
28628 (gimple_vdef_op): Likewise.
28629 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28630 * gimple.c (gimple_build_asm_1): Likewise.
28631 (gimple_build_try): Likewise.
28632 (gimple_build_resx): Likewise.
28633 (gimple_build_eh_dispatch): Likewise.
28634 (gimple_build_omp_for): Likewise.
28635 (gimple_omp_for_set_clauses): Likewise.
28636
28637 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28638 (is_a_helper <gimple_statement_asm *>::test): ...this.
28639 (is_a_helper <gimple_statement_bind>::test): Convert to...
28640 (is_a_helper <gimple_statement_bind *>::test): ...this.
28641 (is_a_helper <gimple_statement_call>::test): Convert to...
28642 (is_a_helper <gimple_statement_call *>::test): ...this.
28643 (is_a_helper <gimple_statement_catch>::test): Convert to...
28644 (is_a_helper <gimple_statement_catch *>::test): ...this.
28645 (is_a_helper <gimple_statement_resx>::test): Convert to...
28646 (is_a_helper <gimple_statement_resx *>::test): ...this.
28647 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28648 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28649 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28650 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28651 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28652 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28653 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28654 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28655 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28656 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28657 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28658 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28659 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28660 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28661 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28662 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28663 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28664 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28665 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28666 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28667 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28668 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28669 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28670 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28671 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28672 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28673 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28674 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28675 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28676 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28677 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28678 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28679 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28680 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28681 (is_a_helper <gimple_statement_phi>::test): Convert to...
28682 (is_a_helper <gimple_statement_phi *>::test): ...this.
28683 (is_a_helper <gimple_statement_transaction>::test): Convert to...
28684 (is_a_helper <gimple_statement_transaction *>::test): ...this.
28685 (is_a_helper <gimple_statement_try>::test): Convert to...
28686 (is_a_helper <gimple_statement_try *>::test): ...this.
28687 (is_a_helper <gimple_statement_wce>::test): Convert to...
28688 (is_a_helper <gimple_statement_wce *>::test): ...this.
28689 (is_a_helper <const gimple_statement_asm>::test): Convert to...
28690 (is_a_helper <const gimple_statement_asm *>::test): ...this.
28691 (is_a_helper <const gimple_statement_bind>::test): Convert to...
28692 (is_a_helper <const gimple_statement_bind *>::test): ...this.
28693 (is_a_helper <const gimple_statement_call>::test): Convert to...
28694 (is_a_helper <const gimple_statement_call *>::test): ...this.
28695 (is_a_helper <const gimple_statement_catch>::test): Convert to...
28696 (is_a_helper <const gimple_statement_catch *>::test): ...this.
28697 (is_a_helper <const gimple_statement_resx>::test): Convert to...
28698 (is_a_helper <const gimple_statement_resx *>::test): ...this.
28699 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28700 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28701 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28702 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28703 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28704 Convert to...
28705 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28706 ...this.
28707 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28708 Convert to...
28709 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28710 ...this.
28711 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28712 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28713 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28714 to...
28715 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28716 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28717 to...
28718 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28719 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28720 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28721 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28722 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28723 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28724 to...
28725 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28726 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28727 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28728 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28729 to...
28730 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28731 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28732 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28733 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28734 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28735 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28736 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28737 (is_a_helper <const gimple_statement_phi>::test): Convert to...
28738 (is_a_helper <const gimple_statement_phi *>::test): ...this.
28739 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28740 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28741 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28742 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28743 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28744 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28745 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28746 to...
28747 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28748 ...this.
28749 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28750 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28751
28752 (gimple_use_ops): Update for removal of implicit pointer from the
28753 is-a.h API.
28754 (gimple_set_use_ops): Likewise.
28755 (gimple_vuse): Likewise.
28756 (gimple_vdef): Likewise.
28757 (gimple_vuse_ptr): Likewise.
28758 (gimple_vdef_ptr): Likewise.
28759 (gimple_set_vuse): Likewise.
28760 (gimple_set_vdef): Likewise.
28761 (gimple_omp_return_set_lhs): Likewise.
28762 (gimple_omp_return_lhs): Likewise.
28763 (gimple_omp_return_lhs_ptr): Likewise.
28764 (gimple_call_fntype): Likewise.
28765 (gimple_call_set_fntype): Likewise.
28766 (gimple_call_set_internal_fn): Likewise.
28767 (gimple_call_use_set): Likewise.
28768 (gimple_call_clobber_set): Likewise.
28769 (gimple_bind_vars): Likewise.
28770 (gimple_bind_set_vars): Likewise.
28771 (gimple_bind_body_ptr): Likewise.
28772 (gimple_bind_set_body): Likewise.
28773 (gimple_bind_add_stmt): Likewise.
28774 (gimple_bind_block): Likewise.
28775 (gimple_bind_set_block): Likewise.
28776 (gimple_asm_ninputs): Likewise.
28777 (gimple_asm_noutputs): Likewise.
28778 (gimple_asm_nclobbers): Likewise.
28779 (gimple_asm_nlabels): Likewise.
28780 (gimple_asm_input_op): Likewise.
28781 (gimple_asm_input_op_ptr): Likewise.
28782 (gimple_asm_output_op): Likewise.
28783 (gimple_asm_output_op_ptr): Likewise.
28784 (gimple_asm_set_output_op): Likewise.
28785 (gimple_asm_clobber_op): Likewise.
28786 (gimple_asm_set_clobber_op): Likewise.
28787 (gimple_asm_label_op): Likewise.
28788 (gimple_asm_set_label_op): Likewise.
28789 (gimple_asm_string): Likewise.
28790 (gimple_catch_types): Likewise.
28791 (gimple_catch_types_ptr): Likewise.
28792 (gimple_catch_handler_ptr): Likewise.
28793 (gimple_catch_set_types): Likewise.
28794 (gimple_catch_set_handler): Likewise.
28795 (gimple_eh_filter_types): Likewise.
28796 (gimple_eh_filter_types_ptr): Likewise.
28797 (gimple_eh_filter_failure_ptr): Likewise.
28798 (gimple_eh_filter_set_types): Likewise.
28799 (gimple_eh_filter_set_failure): Likewise.
28800 (gimple_eh_must_not_throw_fndecl): Likewise.
28801 (gimple_eh_must_not_throw_set_fndecl): Likewise.
28802 (gimple_eh_else_n_body_ptr): Likewise.
28803 (gimple_eh_else_e_body_ptr): Likewise.
28804 (gimple_eh_else_set_n_body): Likewise.
28805 (gimple_eh_else_set_e_body): Likewise.
28806 (gimple_try_eval_ptr): Likewise.
28807 (gimple_try_cleanup_ptr): Likewise.
28808 (gimple_try_set_eval): Likewise.
28809 (gimple_try_set_cleanup): Likewise.
28810 (gimple_wce_cleanup_ptr): Likewise.
28811 (gimple_wce_set_cleanup): Likewise.
28812 (gimple_phi_capacity): Likewise.
28813 (gimple_phi_num_args): Likewise.
28814 (gimple_phi_result): Likewise.
28815 (gimple_phi_result_ptr): Likewise.
28816 (gimple_phi_set_result): Likewise.
28817 (gimple_phi_arg): Likewise.
28818 (gimple_phi_set_arg): Likewise.
28819 (gimple_resx_region): Likewise.
28820 (gimple_resx_set_region): Likewise.
28821 (gimple_eh_dispatch_region): Likewise.
28822 (gimple_eh_dispatch_set_region): Likewise.
28823 (gimple_omp_critical_name): Likewise.
28824 (gimple_omp_critical_name_ptr): Likewise.
28825 (gimple_omp_critical_set_name): Likewise.
28826 (gimple_omp_for_clauses): Likewise.
28827 (gimple_omp_for_clauses_ptr): Likewise.
28828 (gimple_omp_for_set_clauses): Likewise.
28829 (gimple_omp_for_collapse): Likewise.
28830 (gimple_omp_for_index): Likewise.
28831 (gimple_omp_for_index_ptr): Likewise.
28832 (gimple_omp_for_set_index): Likewise.
28833 (gimple_omp_for_initial): Likewise.
28834 (gimple_omp_for_initial_ptr): Likewise.
28835 (gimple_omp_for_set_initial): Likewise.
28836 (gimple_omp_for_final): Likewise.
28837 (gimple_omp_for_final_ptr): Likewise.
28838 (gimple_omp_for_set_final): Likewise.
28839 (gimple_omp_for_incr): Likewise.
28840 (gimple_omp_for_incr_ptr): Likewise.
28841 (gimple_omp_for_set_incr): Likewise.
28842 (gimple_omp_for_pre_body_ptr): Likewise.
28843 (gimple_omp_for_set_pre_body): Likewise.
28844 (gimple_omp_parallel_clauses): Likewise.
28845 (gimple_omp_parallel_clauses_ptr): Likewise.
28846 (gimple_omp_parallel_set_clauses): Likewise.
28847 (gimple_omp_parallel_child_fn): Likewise.
28848 (gimple_omp_parallel_child_fn_ptr): Likewise.
28849 (gimple_omp_parallel_set_child_fn): Likewise.
28850 (gimple_omp_parallel_data_arg): Likewise.
28851 (gimple_omp_parallel_data_arg_ptr): Likewise.
28852 (gimple_omp_parallel_set_data_arg): Likewise.
28853 (gimple_omp_task_clauses): Likewise.
28854 (gimple_omp_task_clauses_ptr): Likewise.
28855 (gimple_omp_task_set_clauses): Likewise.
28856 (gimple_omp_task_child_fn): Likewise.
28857 (gimple_omp_task_child_fn_ptr): Likewise.
28858 (gimple_omp_task_set_child_fn): Likewise.
28859 (gimple_omp_task_data_arg): Likewise.
28860 (gimple_omp_task_data_arg_ptr): Likewise.
28861 (gimple_omp_task_set_data_arg): Likewise.
28862 (gimple_omp_taskreg_clauses): Likewise.
28863 (gimple_omp_taskreg_clauses_ptr): Likewise.
28864 (gimple_omp_taskreg_set_clauses): Likewise.
28865 (gimple_omp_taskreg_child_fn): Likewise.
28866 (gimple_omp_taskreg_child_fn_ptr): Likewise.
28867 (gimple_omp_taskreg_set_child_fn): Likewise.
28868 (gimple_omp_taskreg_data_arg): Likewise.
28869 (gimple_omp_taskreg_data_arg_ptr): Likewise.
28870 (gimple_omp_taskreg_set_data_arg): Likewise.
28871 (gimple_omp_task_copy_fn): Likewise.
28872 (gimple_omp_task_copy_fn_ptr): Likewise.
28873 (gimple_omp_task_set_copy_fn): Likewise.
28874 (gimple_omp_task_arg_size): Likewise.
28875 (gimple_omp_task_arg_size_ptr): Likewise.
28876 (gimple_omp_task_set_arg_size): Likewise.
28877 (gimple_omp_task_arg_align): Likewise.
28878 (gimple_omp_task_arg_align_ptr): Likewise.
28879 (gimple_omp_task_set_arg_align): Likewise.
28880 (gimple_omp_single_clauses): Likewise.
28881 (gimple_omp_single_clauses_ptr): Likewise.
28882 (gimple_omp_single_set_clauses): Likewise.
28883 (gimple_omp_target_clauses): Likewise.
28884 (gimple_omp_target_clauses_ptr): Likewise.
28885 (gimple_omp_target_set_clauses): Likewise.
28886 (gimple_omp_target_child_fn): Likewise.
28887 (gimple_omp_target_child_fn_ptr): Likewise.
28888 (gimple_omp_target_set_child_fn): Likewise.
28889 (gimple_omp_target_data_arg): Likewise.
28890 (gimple_omp_target_data_arg_ptr): Likewise.
28891 (gimple_omp_target_set_data_arg): Likewise.
28892 (gimple_omp_teams_clauses): Likewise.
28893 (gimple_omp_teams_clauses_ptr): Likewise.
28894 (gimple_omp_teams_set_clauses): Likewise.
28895 (gimple_omp_sections_clauses): Likewise.
28896 (gimple_omp_sections_clauses_ptr): Likewise.
28897 (gimple_omp_sections_set_clauses): Likewise.
28898 (gimple_omp_sections_control): Likewise.
28899 (gimple_omp_sections_control_ptr): Likewise.
28900 (gimple_omp_sections_set_control): Likewise.
28901 (gimple_omp_for_set_cond): Likewise.
28902 (gimple_omp_for_cond): Likewise.
28903 (gimple_omp_atomic_store_set_val): Likewise.
28904 (gimple_omp_atomic_store_val): Likewise.
28905 (gimple_omp_atomic_store_val_ptr): Likewise.
28906 (gimple_omp_atomic_load_set_lhs): Likewise.
28907 (gimple_omp_atomic_load_lhs): Likewise.
28908 (gimple_omp_atomic_load_lhs_ptr): Likewise.
28909 (gimple_omp_atomic_load_set_rhs): Likewise.
28910 (gimple_omp_atomic_load_rhs): Likewise.
28911 (gimple_omp_atomic_load_rhs_ptr): Likewise.
28912 (gimple_omp_continue_control_def): Likewise.
28913 (gimple_omp_continue_control_def_ptr): Likewise.
28914 (gimple_omp_continue_set_control_def): Likewise.
28915 (gimple_omp_continue_control_use): Likewise.
28916 (gimple_omp_continue_control_use_ptr): Likewise.
28917 (gimple_omp_continue_set_control_use): Likewise.
28918 (gimple_transaction_body_ptr): Likewise.
28919 (gimple_transaction_label): Likewise.
28920 (gimple_transaction_label_ptr): Likewise.
28921 (gimple_transaction_set_body): Likewise.
28922 (gimple_transaction_set_label): Likewise.
28923
28924 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28925 * ipa-inline-analysis.c (inline_write_summary): Likewise.
28926 * ipa-ref.c (ipa_record_reference): Likewise.
28927 * ipa-reference.c (analyze_function): Likewise.
28928 (ipa_reference_write_optimization_summary): Likewise.
28929 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28930 (address_taken_from_non_vtable_p): Likewise.
28931 (comdat_can_be_unshared_p_1): Likewise.
28932 * lto-cgraph.c (lto_output_ref): Likewise.
28933 (add_references): Likewise.
28934 (compute_ltrans_boundary): Likewise.
28935 (output_symtab): Likewise.
28936 (input_ref): Likewise.
28937 (input_cgraph_1): Likewise.
28938 (output_cgraph_opt_summary): Likewise.
28939 * lto-streamer-out.c (lto_output): Likewise.
28940 (output_symbol_p): Likewise.
28941 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28942 (lsei_start_function_in_partition): Likewise.
28943 (lsei_next_variable_in_partition): Likewise.
28944 (lsei_start_variable_in_partition): Likewise.
28945 * symtab.c (insert_to_assembler_name_hash): Likewise.
28946 (unlink_from_assembler_name_hash): Likewise.
28947 (symtab_unregister_node): Likewise.
28948 (symtab_remove_node): Likewise.
28949 (dump_symtab_node): Likewise.
28950 (verify_symtab_base): Likewise.
28951 (verify_symtab_node): Likewise.
28952 (symtab_make_decl_local): Likewise.
28953 (symtab_alias_ultimate_target): Likewise.
28954 (symtab_resolve_alias): Likewise.
28955 (symtab_get_symbol_partitioning_class): Likewise.
28956 * tree-phinodes.c (allocate_phi_node): Likewise.
28957 (reserve_phi_args_for_new_edge): Likewise.
28958 (remove_phi_args): Likewise.
28959 * varpool.c (varpool_node_for_asm): Likewise.
28960 (varpool_remove_unreferenced_decls): Likewise.
28961
28962 2014-04-23 Jeff Law <law@redhat.com>
28963
28964 PR tree-optimization/60902
28965 * tree-ssa-threadedge.c
28966 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28967 invalidate outputs from statements that do not produce useful
28968 outputs for threading.
28969
28970 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28971
28972 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28973 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28974 machine descriptions for Stack Smashing Protector.
28975
28976 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28977
28978 * aarch64.md (<optab>_rol<mode>3): New pattern.
28979 (<optab>_rolsi3_uxtw): Likewise.
28980 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28981
28982 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28983
28984 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28985 (arm_cortex_a12_tune): Likewise.
28986
28987 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28988
28989 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28990
28991 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28992
28993 * config/arm/arm.md (arm_rev16si2): New pattern.
28994 (arm_rev16si2_alt): Likewise.
28995 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28996
28997 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28998
28999 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
29000 (rev16<mode>2_alt): Likewise.
29001 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
29002 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
29003 (aarch_rev16_shleft_mask_imm_p): Likewise.
29004 (aarch_rev16_p_1): Likewise.
29005 (aarch_rev16_p): Likewise.
29006 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
29007 (aarch_rev16_shright_mask_imm_p): Likewise.
29008 (aarch_rev16_shleft_mask_imm_p): Likewise.
29009
29010 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29011
29012 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
29013 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
29014 rev cost.
29015 (cortex_a53_extra_costs): Likewise.
29016 (cortex_a57_extra_costs): Likewise.
29017 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
29018 (cortexa7_extra_costs): Likewise.
29019 (cortexa8_extra_costs): Likewise.
29020 (cortexa12_extra_costs): Likewise.
29021 (cortexa15_extra_costs): Likewise.
29022 (v7m_extra_costs): Likewise.
29023 (arm_new_rtx_costs): Handle BSWAP.
29024
29025 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29026
29027 * config/arm/arm.c (cortexa8_extra_costs): New table.
29028 (arm_cortex_a8_tune): New tuning struct.
29029 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
29030
29031 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29032
29033 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
29034
29035 2014-04-23 Richard Biener <rguenther@suse.de>
29036
29037 * Makefile.in (OBJS): Remove loop-unswitch.o.
29038 * tree-pass.h (make_pass_rtl_unswitch): Remove.
29039 * passes.def (pass_rtl_unswitch): Likewise.
29040 * loop-init.c (gate_rtl_unswitch): Likewise.
29041 (rtl_unswitch): Likewise.
29042 (pass_data_rtl_unswitch): Likewise.
29043 (pass_rtl_unswitch): Likewise.
29044 (make_pass_rtl_unswitch): Likewise.
29045 * rtl.h (reversed_condition): Likewise.
29046 (compare_and_jump_seq): Likewise.
29047 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
29048 and make static.
29049 * loop-unroll.c (compare_and_jump_seq): Likewise.
29050
29051 2014-04-23 Richard Biener <rguenther@suse.de>
29052
29053 PR tree-optimization/60903
29054 * tree-ssa-loop-im.c (analyze_memory_references): Remove
29055 commented code block.
29056 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
29057 loop flags to newly created BBs and edges.
29058
29059 2014-04-23 Nick Clifton <nickc@redhat.com>
29060
29061 * config/msp430/msp430.c (msp430_handle_option): Move function
29062 to msp430-common.c
29063 (msp430_option_override): Simplify mcu and mcpu option handling.
29064 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
29065 support for -mhwmult command line option.
29066 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
29067 -mhwmult command line option.
29068 (msp430_hwmult_enabled): Delete.
29069 (msp43o_output_labelref): Add support for -mhwmult command line option.
29070 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
29071 (umulsidi3): Likewise.
29072 * config/msp430/msp430.opt (mmcu): Add Report attribute.
29073 (mcpu, mlarge, msmall): Likewise.
29074 (mhwmult): New option.
29075 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
29076 prototype.
29077 (msp430_is_f5_mcu): Remove prototype.
29078 (msp430_use_f5_series_hwmult): Add prototype.
29079 * config/msp430/msp430-opts.h: New file.
29080 * common/config/msp430: New directory.
29081 * common/config/msp430/msp430-common.c: New file.
29082 * config.gcc (msp430): Remove target_has_targetm_common.
29083 * doc/invoke.texi: Document -mhwmult command line option.
29084
29085 2014-04-23 Nick Clifton <nickc@redhat.com>
29086
29087 * config/i386/cygwin.h (ENDFILE_SPEC): Include
29088 default-manifest.o if it can be found in the search path.
29089 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
29090
29091 2014-04-23 Terry Guo <terry.guo@arm.com>
29092
29093 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
29094
29095 2014-04-23 Richard Biener <rguenther@suse.de>
29096
29097 PR middle-end/60895
29098 * tree-inline.c (declare_return_variable): Use mark_addressable.
29099
29100 2014-04-23 Richard Biener <rguenther@suse.de>
29101
29102 PR middle-end/60891
29103 * loop-init.c (loop_optimizer_init): Make sure to apply
29104 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
29105
29106 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29107
29108 PR sanitizer/60275
29109 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
29110 New options.
29111 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
29112 if flag_sanitize_undefined_trap_on_error.
29113 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
29114 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
29115 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
29116 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
29117 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
29118 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
29119 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
29120 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
29121 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
29122 * ubsan.c (ubsan_instrument_unreachable): Return
29123 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
29124 (ubsan_expand_null_ifn): Emit __builtin_trap ()
29125 if flag_sanitize_undefined_trap_on_error and
29126 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
29127 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
29128 instrument_bool_enum_load): Emit __builtin_trap () if
29129 flag_sanitize_undefined_trap_on_error and
29130 __builtin_handle_*_abort () if !flag_sanitize_recover.
29131 * doc/invoke.texi (-fsanitize-recover,
29132 -fsanitize-undefined-trap-on-error): Document.
29133
29134 2014-04-22 Christian Bruel <christian.bruel@st.com>
29135
29136 * config/sh/sh.md (mov<mode>): Replace movQIHI.
29137 Force immediates to SImode.
29138
29139 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
29140
29141 * config/nios2/nios2.md (UNSPEC_ROUND): New.
29142 (lroundsfsi2): New.
29143 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
29144 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
29145 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
29146 (nios2_fpu_insn): Add entry for round.
29147 (N2FPU_NO_ERRNO_P): Define.
29148 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
29149 flag_errno_math.
29150 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
29151
29152 2014-04-22 Richard Henderson <rth@redhat.com>
29153
29154 * config/aarch64/aarch64 (addti3, subti3): New expanders.
29155 (add<GPI>3_compare0): Remove leading * from name.
29156 (add<GPI>3_carryin): Likewise.
29157 (sub<GPI>3_compare0): Likewise.
29158 (sub<GPI>3_carryin): Likewise.
29159 (<su_optab>mulditi3): New expander.
29160 (multi3): New expander.
29161 (madd<GPI>): Remove leading * from name.
29162
29163 2014-04-22 Martin Jambor <mjambor@suse.cz>
29164
29165 * cgraphclones.c (cgraph_function_versioning): Copy
29166 ipa_transforms_to_apply instead of asserting it is empty.
29167
29168 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
29169
29170 PR target/60868
29171 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
29172 on count_exp to get mode.
29173
29174 2014-04-22 Andrew Pinski <apinski@cavium.com>
29175
29176 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
29177 Handle TLS for ILP32.
29178 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
29179 (tlsie_small_<mode>): this and handle PTR.
29180 (tlsie_small_sidi): New pattern.
29181 (tlsle_small): Change to an expand to handle ILP32.
29182 (tlsle_small_<mode>): New pattern.
29183 (tlsdesc_small): Rename to ...
29184 (tlsdesc_small_<mode>): this and handle PTR.
29185
29186 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29187
29188 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
29189
29190 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29191
29192 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29193 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
29194 (aarch64_types_signed_poly_qualifiers): Likewise.
29195 (aarch64_types_unsigned_signed_qualifiers): Likewise.
29196 (aarch64_types_poly_signed_qualifiers): Likewise.
29197 (TYPES_REINTERP_SS): Type macro added.
29198 (TYPES_REINTERP_SU): Likewise.
29199 (TYPES_REINTERP_SP): Likewise.
29200 (TYPES_REINTERP_US): Likewise.
29201 (TYPES_REINTERP_PS): Likewise.
29202 (aarch64_fold_builtin): New expression folding added.
29203 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
29204 Declarations removed.
29205 (REINTERP_SS): Declarations added.
29206 (REINTERP_US): Likewise.
29207 (REINTERP_PS): Likewise.
29208 (REINTERP_SU): Likewise.
29209 (REINTERP_SP): Likewise.
29210 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
29211 (vreinterpretq_p8_f64): Likewise.
29212 (vreinterpret_p16_f64): Likewise.
29213 (vreinterpretq_p16_f64): Likewise.
29214 (vreinterpret_f32_f64): Likewise.
29215 (vreinterpretq_f32_f64): Likewise.
29216 (vreinterpret_f64_f32): Likewise.
29217 (vreinterpret_f64_p8): Likewise.
29218 (vreinterpret_f64_p16): Likewise.
29219 (vreinterpret_f64_s8): Likewise.
29220 (vreinterpret_f64_s16): Likewise.
29221 (vreinterpret_f64_s32): Likewise.
29222 (vreinterpret_f64_s64): Likewise.
29223 (vreinterpret_f64_u8): Likewise.
29224 (vreinterpret_f64_u16): Likewise.
29225 (vreinterpret_f64_u32): Likewise.
29226 (vreinterpret_f64_u64): Likewise.
29227 (vreinterpretq_f64_f32): Likewise.
29228 (vreinterpretq_f64_p8): Likewise.
29229 (vreinterpretq_f64_p16): Likewise.
29230 (vreinterpretq_f64_s8): Likewise.
29231 (vreinterpretq_f64_s16): Likewise.
29232 (vreinterpretq_f64_s32): Likewise.
29233 (vreinterpretq_f64_s64): Likewise.
29234 (vreinterpretq_f64_u8): Likewise.
29235 (vreinterpretq_f64_u16): Likewise.
29236 (vreinterpretq_f64_u32): Likewise.
29237 (vreinterpretq_f64_u64): Likewise.
29238 (vreinterpret_s64_f64): Likewise.
29239 (vreinterpretq_s64_f64): Likewise.
29240 (vreinterpret_u64_f64): Likewise.
29241 (vreinterpretq_u64_f64): Likewise.
29242 (vreinterpret_s8_f64): Likewise.
29243 (vreinterpretq_s8_f64): Likewise.
29244 (vreinterpret_s16_f64): Likewise.
29245 (vreinterpretq_s16_f64): Likewise.
29246 (vreinterpret_s32_f64): Likewise.
29247 (vreinterpretq_s32_f64): Likewise.
29248 (vreinterpret_u8_f64): Likewise.
29249 (vreinterpretq_u8_f64): Likewise.
29250 (vreinterpret_u16_f64): Likewise.
29251 (vreinterpretq_u16_f64): Likewise.
29252 (vreinterpret_u32_f64): Likewise.
29253 (vreinterpretq_u32_f64): Likewise.
29254
29255 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29256
29257 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29258 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
29259 (vreinterpret_p8_s8): Likewise.
29260 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
29261 (vreinterpret_p8_s16): Likewise.
29262 (vreinterpret_p8_s32): Likewise.
29263 (vreinterpret_p8_s64): Likewise.
29264 (vreinterpret_p8_f32): Likewise.
29265 (vreinterpret_p8_u8): Likewise.
29266 (vreinterpret_p8_u16): Likewise.
29267 (vreinterpret_p8_u32): Likewise.
29268 (vreinterpret_p8_u64): Likewise.
29269 (vreinterpret_p8_p16): Likewise.
29270 (vreinterpretq_p8_s8): Likewise.
29271 (vreinterpretq_p8_s16): Likewise.
29272 (vreinterpretq_p8_s32): Likewise.
29273 (vreinterpretq_p8_s64): Likewise.
29274 (vreinterpretq_p8_f32): Likewise.
29275 (vreinterpretq_p8_u8): Likewise.
29276 (vreinterpretq_p8_u16): Likewise.
29277 (vreinterpretq_p8_u32): Likewise.
29278 (vreinterpretq_p8_u64): Likewise.
29279 (vreinterpretq_p8_p16): Likewise.
29280 (vreinterpret_p16_s8): Likewise.
29281 (vreinterpret_p16_s16): Likewise.
29282 (vreinterpret_p16_s32): Likewise.
29283 (vreinterpret_p16_s64): Likewise.
29284 (vreinterpret_p16_f32): Likewise.
29285 (vreinterpret_p16_u8): Likewise.
29286 (vreinterpret_p16_u16): Likewise.
29287 (vreinterpret_p16_u32): Likewise.
29288 (vreinterpret_p16_u64): Likewise.
29289 (vreinterpret_p16_p8): Likewise.
29290 (vreinterpretq_p16_s8): Likewise.
29291 (vreinterpretq_p16_s16): Likewise.
29292 (vreinterpretq_p16_s32): Likewise.
29293 (vreinterpretq_p16_s64): Likewise.
29294 (vreinterpretq_p16_f32): Likewise.
29295 (vreinterpretq_p16_u8): Likewise.
29296 (vreinterpretq_p16_u16): Likewise.
29297 (vreinterpretq_p16_u32): Likewise.
29298 (vreinterpretq_p16_u64): Likewise.
29299 (vreinterpretq_p16_p8): Likewise.
29300 (vreinterpret_f32_s8): Likewise.
29301 (vreinterpret_f32_s16): Likewise.
29302 (vreinterpret_f32_s32): Likewise.
29303 (vreinterpret_f32_s64): Likewise.
29304 (vreinterpret_f32_u8): Likewise.
29305 (vreinterpret_f32_u16): Likewise.
29306 (vreinterpret_f32_u32): Likewise.
29307 (vreinterpret_f32_u64): Likewise.
29308 (vreinterpret_f32_p8): Likewise.
29309 (vreinterpret_f32_p16): Likewise.
29310 (vreinterpretq_f32_s8): Likewise.
29311 (vreinterpretq_f32_s16): Likewise.
29312 (vreinterpretq_f32_s32): Likewise.
29313 (vreinterpretq_f32_s64): Likewise.
29314 (vreinterpretq_f32_u8): Likewise.
29315 (vreinterpretq_f32_u16): Likewise.
29316 (vreinterpretq_f32_u32): Likewise.
29317 (vreinterpretq_f32_u64): Likewise.
29318 (vreinterpretq_f32_p8): Likewise.
29319 (vreinterpretq_f32_p16): Likewise.
29320 (vreinterpret_s64_s8): Likewise.
29321 (vreinterpret_s64_s16): Likewise.
29322 (vreinterpret_s64_s32): Likewise.
29323 (vreinterpret_s64_f32): Likewise.
29324 (vreinterpret_s64_u8): Likewise.
29325 (vreinterpret_s64_u16): Likewise.
29326 (vreinterpret_s64_u32): Likewise.
29327 (vreinterpret_s64_u64): Likewise.
29328 (vreinterpret_s64_p8): Likewise.
29329 (vreinterpret_s64_p16): Likewise.
29330 (vreinterpretq_s64_s8): Likewise.
29331 (vreinterpretq_s64_s16): Likewise.
29332 (vreinterpretq_s64_s32): Likewise.
29333 (vreinterpretq_s64_f32): Likewise.
29334 (vreinterpretq_s64_u8): Likewise.
29335 (vreinterpretq_s64_u16): Likewise.
29336 (vreinterpretq_s64_u32): Likewise.
29337 (vreinterpretq_s64_u64): Likewise.
29338 (vreinterpretq_s64_p8): Likewise.
29339 (vreinterpretq_s64_p16): Likewise.
29340 (vreinterpret_u64_s8): Likewise.
29341 (vreinterpret_u64_s16): Likewise.
29342 (vreinterpret_u64_s32): Likewise.
29343 (vreinterpret_u64_s64): Likewise.
29344 (vreinterpret_u64_f32): Likewise.
29345 (vreinterpret_u64_u8): Likewise.
29346 (vreinterpret_u64_u16): Likewise.
29347 (vreinterpret_u64_u32): Likewise.
29348 (vreinterpret_u64_p8): Likewise.
29349 (vreinterpret_u64_p16): Likewise.
29350 (vreinterpretq_u64_s8): Likewise.
29351 (vreinterpretq_u64_s16): Likewise.
29352 (vreinterpretq_u64_s32): Likewise.
29353 (vreinterpretq_u64_s64): Likewise.
29354 (vreinterpretq_u64_f32): Likewise.
29355 (vreinterpretq_u64_u8): Likewise.
29356 (vreinterpretq_u64_u16): Likewise.
29357 (vreinterpretq_u64_u32): Likewise.
29358 (vreinterpretq_u64_p8): Likewise.
29359 (vreinterpretq_u64_p16): Likewise.
29360 (vreinterpret_s8_s16): Likewise.
29361 (vreinterpret_s8_s32): Likewise.
29362 (vreinterpret_s8_s64): Likewise.
29363 (vreinterpret_s8_f32): Likewise.
29364 (vreinterpret_s8_u8): Likewise.
29365 (vreinterpret_s8_u16): Likewise.
29366 (vreinterpret_s8_u32): Likewise.
29367 (vreinterpret_s8_u64): Likewise.
29368 (vreinterpret_s8_p8): Likewise.
29369 (vreinterpret_s8_p16): Likewise.
29370 (vreinterpretq_s8_s16): Likewise.
29371 (vreinterpretq_s8_s32): Likewise.
29372 (vreinterpretq_s8_s64): Likewise.
29373 (vreinterpretq_s8_f32): Likewise.
29374 (vreinterpretq_s8_u8): Likewise.
29375 (vreinterpretq_s8_u16): Likewise.
29376 (vreinterpretq_s8_u32): Likewise.
29377 (vreinterpretq_s8_u64): Likewise.
29378 (vreinterpretq_s8_p8): Likewise.
29379 (vreinterpretq_s8_p16): Likewise.
29380 (vreinterpret_s16_s8): Likewise.
29381 (vreinterpret_s16_s32): Likewise.
29382 (vreinterpret_s16_s64): Likewise.
29383 (vreinterpret_s16_f32): Likewise.
29384 (vreinterpret_s16_u8): Likewise.
29385 (vreinterpret_s16_u16): Likewise.
29386 (vreinterpret_s16_u32): Likewise.
29387 (vreinterpret_s16_u64): Likewise.
29388 (vreinterpret_s16_p8): Likewise.
29389 (vreinterpret_s16_p16): Likewise.
29390 (vreinterpretq_s16_s8): Likewise.
29391 (vreinterpretq_s16_s32): Likewise.
29392 (vreinterpretq_s16_s64): Likewise.
29393 (vreinterpretq_s16_f32): Likewise.
29394 (vreinterpretq_s16_u8): Likewise.
29395 (vreinterpretq_s16_u16): Likewise.
29396 (vreinterpretq_s16_u32): Likewise.
29397 (vreinterpretq_s16_u64): Likewise.
29398 (vreinterpretq_s16_p8): Likewise.
29399 (vreinterpretq_s16_p16): Likewise.
29400 (vreinterpret_s32_s8): Likewise.
29401 (vreinterpret_s32_s16): Likewise.
29402 (vreinterpret_s32_s64): Likewise.
29403 (vreinterpret_s32_f32): Likewise.
29404 (vreinterpret_s32_u8): Likewise.
29405 (vreinterpret_s32_u16): Likewise.
29406 (vreinterpret_s32_u32): Likewise.
29407 (vreinterpret_s32_u64): Likewise.
29408 (vreinterpret_s32_p8): Likewise.
29409 (vreinterpret_s32_p16): Likewise.
29410 (vreinterpretq_s32_s8): Likewise.
29411 (vreinterpretq_s32_s16): Likewise.
29412 (vreinterpretq_s32_s64): Likewise.
29413 (vreinterpretq_s32_f32): Likewise.
29414 (vreinterpretq_s32_u8): Likewise.
29415 (vreinterpretq_s32_u16): Likewise.
29416 (vreinterpretq_s32_u32): Likewise.
29417 (vreinterpretq_s32_u64): Likewise.
29418 (vreinterpretq_s32_p8): Likewise.
29419 (vreinterpretq_s32_p16): Likewise.
29420 (vreinterpret_u8_s8): Likewise.
29421 (vreinterpret_u8_s16): Likewise.
29422 (vreinterpret_u8_s32): Likewise.
29423 (vreinterpret_u8_s64): Likewise.
29424 (vreinterpret_u8_f32): Likewise.
29425 (vreinterpret_u8_u16): Likewise.
29426 (vreinterpret_u8_u32): Likewise.
29427 (vreinterpret_u8_u64): Likewise.
29428 (vreinterpret_u8_p8): Likewise.
29429 (vreinterpret_u8_p16): Likewise.
29430 (vreinterpretq_u8_s8): Likewise.
29431 (vreinterpretq_u8_s16): Likewise.
29432 (vreinterpretq_u8_s32): Likewise.
29433 (vreinterpretq_u8_s64): Likewise.
29434 (vreinterpretq_u8_f32): Likewise.
29435 (vreinterpretq_u8_u16): Likewise.
29436 (vreinterpretq_u8_u32): Likewise.
29437 (vreinterpretq_u8_u64): Likewise.
29438 (vreinterpretq_u8_p8): Likewise.
29439 (vreinterpretq_u8_p16): Likewise.
29440 (vreinterpret_u16_s8): Likewise.
29441 (vreinterpret_u16_s16): Likewise.
29442 (vreinterpret_u16_s32): Likewise.
29443 (vreinterpret_u16_s64): Likewise.
29444 (vreinterpret_u16_f32): Likewise.
29445 (vreinterpret_u16_u8): Likewise.
29446 (vreinterpret_u16_u32): Likewise.
29447 (vreinterpret_u16_u64): Likewise.
29448 (vreinterpret_u16_p8): Likewise.
29449 (vreinterpret_u16_p16): Likewise.
29450 (vreinterpretq_u16_s8): Likewise.
29451 (vreinterpretq_u16_s16): Likewise.
29452 (vreinterpretq_u16_s32): Likewise.
29453 (vreinterpretq_u16_s64): Likewise.
29454 (vreinterpretq_u16_f32): Likewise.
29455 (vreinterpretq_u16_u8): Likewise.
29456 (vreinterpretq_u16_u32): Likewise.
29457 (vreinterpretq_u16_u64): Likewise.
29458 (vreinterpretq_u16_p8): Likewise.
29459 (vreinterpretq_u16_p16): Likewise.
29460 (vreinterpret_u32_s8): Likewise.
29461 (vreinterpret_u32_s16): Likewise.
29462 (vreinterpret_u32_s32): Likewise.
29463 (vreinterpret_u32_s64): Likewise.
29464 (vreinterpret_u32_f32): Likewise.
29465 (vreinterpret_u32_u8): Likewise.
29466 (vreinterpret_u32_u16): Likewise.
29467 (vreinterpret_u32_u64): Likewise.
29468 (vreinterpret_u32_p8): Likewise.
29469 (vreinterpret_u32_p16): Likewise.
29470 (vreinterpretq_u32_s8): Likewise.
29471 (vreinterpretq_u32_s16): Likewise.
29472 (vreinterpretq_u32_s32): Likewise.
29473 (vreinterpretq_u32_s64): Likewise.
29474 (vreinterpretq_u32_f32): Likewise.
29475 (vreinterpretq_u32_u8): Likewise.
29476 (vreinterpretq_u32_u16): Likewise.
29477 (vreinterpretq_u32_u64): Likewise.
29478 (vreinterpretq_u32_p8): Likewise.
29479 (vreinterpretq_u32_p16): Likewise.
29480
29481 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29482
29483 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
29484 Pattern extended.
29485 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
29486 (sqabs): Likewise.
29487 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
29488 (vqnegd_s64): Likewise.
29489 (vqabs_s64): Likewise.
29490 (vqabsd_s64): Likewise.
29491
29492 2014-04-22 Richard Henderson <rth@redhat.com>
29493
29494 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
29495 computation to the top of the loop.
29496
29497 2014-04-22 Renlin <renlin.li@arm.com>
29498 Jiong Wang <jiong.wang@arm.com>
29499
29500 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
29501 * config/aarch64/aarch64.c (aarch64_layout_frame)
29502 (aarch64_initial_elimination_offset): Likewise.
29503
29504 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
29505
29506 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
29507 Fix indentation.
29508
29509 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
29510
29511 * machmode.h (bitwise_mode_for_mode): Declare.
29512 * stor-layout.h (bitwise_type_for_mode): Likewise.
29513 * stor-layout.c (bitwise_mode_for_mode): New function.
29514 (bitwise_type_for_mode): Likewise.
29515 * builtins.c (fold_builtin_memory_op): Use it instead of
29516 int_mode_for_mode and build_nonstandard_integer_type.
29517
29518 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29519
29520 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
29521 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
29522 (*-*-solaris2*): Simplify.
29523 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
29524 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
29525 *-*-solaris2.9* handling.
29526
29527 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
29528 as bug.
29529 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
29530 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
29531 handling, simplify.
29532 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
29533 * configure: Regenerate.
29534
29535 * config/i386/sol2-9.h: Remove.
29536
29537 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
29538 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
29539 Remove Solaris 9 references.
29540
29541 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
29542
29543 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
29544 (floatuns<GPI:mode><GPF:mode>2): Remove.
29545 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
29546 and floatuns conversions.
29547 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
29548 and floatuns conversions.
29549 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
29550 (w1,w2): New mode attributes for inequal width conversions.
29551
29552 2014-04-22 Renlin Li <Renlin.Li@arm.com>
29553
29554 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
29555 the output asm format.
29556
29557 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29558
29559 * config/aarch64/aarch64-simd.md
29560 (aarch64_cm<optab>di): Always split.
29561 (*aarch64_cm<optab>di): New.
29562 (aarch64_cmtstdi): Always split.
29563 (*aarch64_cmtstdi): New.
29564
29565 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29566
29567 PR tree-optimization/60823
29568 * omp-low.c (ipa_simd_modify_function_body): Go through
29569 all SSA_NAMEs and for those refering to vector arguments
29570 which are going to be replaced adjust SSA_NAME_VAR and,
29571 if it is a default definition, change it into a non-default
29572 definition assigned at the beginning of function from new_decl.
29573 (ipa_simd_modify_stmt_ops): Rewritten.
29574 * tree-dfa.c (set_ssa_default_def): When removing default def,
29575 check for NULL loc instead of NULL *loc.
29576
29577 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29578
29579 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29580 restrictions on core registers for DImode values in Thumb2.
29581
29582 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29583
29584 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29585 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29586
29587 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29588
29589 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29590 (*iordi_notzesidi_di): Likewise.
29591 (*iordi_notsesidi_di): Likewise.
29592
29593 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29594
29595 * config/arm/arm-protos.h (tune_params): New struct members.
29596 * config/arm/arm.c: Initialise tune_params per processor.
29597 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29598 for speed, based on new tune_params.
29599
29600 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29601
29602 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29603 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29604 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29605 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29606 * config/aarch64/arm_neon.h (vrnd_f64): Added.
29607 (vrnda_f64): Likewise.
29608 (vrndi_f64): Likewise.
29609 (vrndm_f64): Likewise.
29610 (vrndn_f64): Likewise.
29611 (vrndp_f64): Likewise.
29612 (vrndx_f64): Likewise.
29613
29614 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29615
29616 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29617 GET_MODE_SIZE argument is enum machine_mode.
29618
29619 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29620
29621 PR target/60910
29622 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29623 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29624
29625 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
29626
29627 PR middle-end/60281
29628 * asan.c (asan_emit_stack_protection): Force the base to align to
29629 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
29630 appropriate bits if STRICT_ALIGNMENT.
29631 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29632 when asan is on.
29633 (expand_used_vars): Leave a space in the stack frame for alignment
29634 if STRICT_ALIGNMENT.
29635
29636 2014-04-21 David Malcolm <dmalcolm@redhat.com>
29637
29638 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29639 than a gimple.
29640 (gimple_store_p): Likewise.
29641 (gimple_assign_load_p): Likewise.
29642 (gimple_assign_cast_p): Likewise.
29643 (gimple_clobber_p): Likewise.
29644
29645 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29646 rather than a gimple.
29647 (gimple_assign_cast_p): Likewise.
29648
29649 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
29650
29651 PR target/60735
29652 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29653 If mode is DDmode and TARGET_E500_DOUBLE allow move.
29654
29655 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29656 more debug information for E500 if -mdebug=reg.
29657
29658 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
29659
29660 PR target/60909
29661 * config/i386/i386.c (ix86_expand_builtin)
29662 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29663 register for target RTX.
29664 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29665
29666 2014-04-18 Cong Hou <congh@google.com>
29667
29668 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29669 the widen-mult pattern by handling two operands with different sizes,
29670 and operands whose size is smaller than half of the result type.
29671
29672 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29673
29674 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29675 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29676 (do_estimate_edge_time): Compute it.
29677 * ipa-inline.c (want_inline_small_function_p): Bypass
29678 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29679
29680 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29681
29682 * ipa-inline.c (spec_rem): New static variable.
29683 (dump_overall_stats): New function.
29684 (dump_inline_stats): New function.
29685
29686 2014-04-18 Richard Henderson <rth@redhat.com>
29687
29688 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29689 to GET_MODE_SIZE, not a reg_class_t.
29690
29691 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29692
29693 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29694 (vsx_xxmrglw_<mode>): Likewise.
29695
29696 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
29697
29698 PR target/60876
29699 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29700 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29701 (rs6000_init_hard_regno_mode_ok): Likewise.
29702
29703 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
29704
29705 * ipa-inline.c (inline_small_functions): Account only non-cold
29706 functions.
29707 * doc/invoke.texi (inline-unit-growth): Update documentation.
29708
29709 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
29710
29711 * config/rs6000/rs6000.md (addti3, subti3): New.
29712
29713 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
29714
29715 PR target/60863
29716 * config/i386/i386.c (ix86_expand_clear): Remove outdated
29717 comment. Check optimize_insn_for_size_p instead of
29718 optimize_insn_for_speed_p.
29719
29720 2014-04-17 Martin Jambor <mjambor@suse.cz>
29721
29722 * gimple-iterator.c (gsi_start_edge): New function.
29723 * gimple-iterator.h (gsi_start_edge): Declare.
29724 * tree-sra.c (single_non_eh_succ): New function.
29725 (disqualify_ops_if_throwing_stmt): Renamed to
29726 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
29727 having one non-EH successor BB.
29728 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29729 generate loads into replacements.
29730 (sra_modify_assign): Likewise and and also use the simple path for
29731 such statements.
29732 (sra_modify_function_body): Commit statements on edges.
29733
29734 2014-04-17 Richard Biener <rguenther@suse.de>
29735
29736 PR middle-end/60849
29737 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29738 comparison results and add clarifying comment.
29739
29740 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29741
29742 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29743 (blank_mode): Initialize it.
29744 (emit_mode_size_inline, emit_mode_nunits_inline,
29745 emit_mode_inner_inline): New functions.
29746 (emit_insn_modes_h): Call them and surround their output with
29747 #if GCC_VERSION >= 4001 ... #endif.
29748 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29749 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29750 mode_* arrays if the argument is __builtin_constant_p.
29751 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29752 is enum machine_mode.
29753
29754 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29755
29756 * passes.c (opt_pass::execute): Adjust.
29757 (pass_manager::execute_pass_mode_switching): Likewise.
29758 (early_local_passes::execute): Likewise.
29759 (execute_one_pass): Pass cfun to the pass's execute method.
29760 * tree-pass.h (opt_pass::execute): Add function * argument.
29761 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29762 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29763 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29764 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29765 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29766 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29767 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29768 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29769 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29770 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29771 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29772 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29773 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29774 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29775 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29776 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29777 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29778 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29779 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29780 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29781 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29782 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29783 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29784 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29785 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29786 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29787 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29788 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29789 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29790 Adjust.
29791
29792 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29793
29794 * passes.c (opt_pass::gate): Take function * argument.
29795 (gate_all_early_local_passes): Merge into
29796 (early_local_passes::gate): this.
29797 (gate_all_early_optimizations): Merge into
29798 (all_early_optimizations::gate): this.
29799 (gate_all_optimizations): Mege into
29800 (all_optimizations::gate): this.
29801 (gate_all_optimizations_g): Merge into
29802 (all_optimizations_g::gate): this.
29803 (gate_rest_of_compilation): Mege into
29804 (rest_of_compilation::gate): this.
29805 (gate_postreload): Merge into
29806 (postreload::gate): this.
29807 (dump_one_pass): Pass cfun to the pass's gate method.
29808 (execute_ipa_summary_passes): Likewise.
29809 (execute_one_pass): Likewise.
29810 (ipa_write_summaries_2): Likewise.
29811 (ipa_write_optimization_summaries_1): Likewise.
29812 (ipa_read_summaries_1): Likewise.
29813 (ipa_read_optimization_summaries_1): Likewise.
29814 (execute_ipa_stmt_fixups): Likewise.
29815 * tree-pass.h (opt_pass::gate): Add function * argument.
29816 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29817 combine-stack-adj.c, combine.c, compare-elim.c,
29818 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29819 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29820 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29821 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
29822 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29823 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29824 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29825 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29826 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29827 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29828 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29829 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29830 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29831 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29832 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29833 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29834 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29835 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29836 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29837 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29838 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29839 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29840 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29841 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29842 var-tracking.c, vtable-verify.c, web.c: Adjust.
29843
29844 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29845
29846 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29847 * configure: Regenerate.
29848
29849 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29850
29851 * passes.c (dump_one_pass): don't check pass->has_gate.
29852 (execute_ipa_summary_passes): Likewise.
29853 (execute_one_pass): Likewise.
29854 (ipa_write_summaries_2): Likewise.
29855 (ipa_write_optimization_summaries_1): Likewise.
29856 (ipa_read_optimization_summaries_1): Likewise.
29857 (execute_ipa_stmt_fixups): Likewise.
29858 * tree-pass.h (pass_data::has_gate): Remove.
29859 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29860 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29861 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29862 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29863 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29864 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29865 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29866 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29867 gimple-low.c, gimple-ssa-isolate-paths.c,
29868 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29869 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29870 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29871 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29872 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29873 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29874 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29875 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29876 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29877 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29878 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29879 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29880 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29881 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29882 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29883 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29884 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29885 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29886 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29887 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29888 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29889 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29890 Adjust.
29891
29892 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29893
29894 * pass_manager.h (pass_manager::register_dump_files_1): Remove
29895 declaration.
29896 * passes.c (pass_manager::register_dump_files_1): Merge into
29897 (pass_manager::register_dump_files): this, and remove its handling of
29898 properties since the pass always has the properties anyway.
29899 (pass_manager::pass_manager): Adjust.
29900
29901 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29902
29903 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29904 * passes.c (pass_manager::register_dump_files_1): Remove dead code
29905 dealing with properties.
29906 (pass_manager::register_dump_files): Adjust.
29907
29908 2014-03-20 Mark Wielaard <mjw@redhat.com>
29909
29910 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29911 then represent the bound as normal constant value.
29912
29913 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29914
29915 PR target/60847
29916 Forward port from 4.8 branch
29917 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
29918
29919 * config/i386/bmiintrin.h (_blsi_u32): New.
29920 (_blsi_u64): Ditto.
29921 (_blsr_u32): Ditto.
29922 (_blsr_u64): Ditto.
29923 (_blsmsk_u32): Ditto.
29924 (_blsmsk_u64): Ditto.
29925 (_tzcnt_u32): Ditto.
29926 (_tzcnt_u64): Ditto.
29927
29928 2014-04-17 Kito Cheng <kito@0xlab.org>
29929
29930 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29931
29932 2014-04-17 Richard Biener <rguenther@suse.de>
29933
29934 PR middle-end/60849
29935 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29936 boolean results for comparisons.
29937
29938 2014-04-17 Richard Biener <rguenther@suse.de>
29939
29940 PR tree-optimization/60836
29941 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29942 initial PHI args to be gimple values.
29943
29944 2014-04-17 Richard Biener <rguenther@suse.de>
29945
29946 PR tree-optimization/60841
29947 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29948 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29949 of stmts to SLP build.
29950 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29951 (vect_analyze_slp): Likewise.
29952 (vect_analyze_slp_instance): Likewise.
29953 (vect_build_slp_tree): Limit overall SLP tree growth.
29954 * tree-vectorizer.h (vect_analyze_data_refs,
29955 vect_analyze_slp): Adjust prototypes.
29956
29957 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29958
29959 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29960 Silvermont.
29961
29962 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29963
29964 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29965 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29966 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29967 for TARGET_SLOW_PSHUFB
29968
29969 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29970
29971 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29972 * config/i386/i386.c (intel_cost): Ditto.
29973
29974 2014-04-17 Joey Ye <joey.ye@arm.com>
29975
29976 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29977
29978 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29979
29980 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29981 with -fuse-profile.
29982
29983 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29984
29985 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29986 (type_all_derivations_known_p): New predicate.
29987 (type_all_ctors_visible_p): New predicate.
29988 (type_possibly_instantiated_p): New predicate.
29989 (get_odr_type): Compute all_derivations_known.
29990 (dump_odr_type): Dump the flag.
29991 (maybe_record_type): Cleanup.
29992 (record_target_from_binfo): Add bases_to_consider array;
29993 record bases for types w/o instances and skip CXX destructor.
29994 (possible_polymorphic_call_targets_1): Add bases_to_consider
29995 and consider_construction parameters; check if type may have instance.
29996 (get_polymorphic_call_info): Set maybe_in_construction to true
29997 when we know nothing.
29998 (record_targets_from_bases): Skip CXX destructors; they are
29999 never called for types in construction.
30000 (possible_polymorphic_call_targets): Do not record target when
30001 type may not have instance.
30002
30003 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
30004
30005 PR ipa/60854
30006 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
30007 external aliases alive, too.
30008
30009 2014-04-16 Andrew Pinski <apinski@cavium.com>
30010
30011 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
30012 definition.
30013
30014 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
30015
30016 * final.c (compute_alignments): Do not apply loop alignment to a block
30017 falling through to the exit.
30018
30019 2014-04-16 Catherine Moore <clm@codesourcery.com>
30020
30021 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
30022 Adjust constraints for microMIPS store patterns.
30023
30024 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
30025
30026 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
30027
30028 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
30029
30030 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
30031 (append_use): Run at -O0.
30032 (append_vdef): Likewise.
30033 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
30034 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
30035
30036 2014-04-16 Jakub Jelinek <jakub@redhat.com>
30037
30038 PR tree-optimization/60844
30039 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
30040 (propagate_op_to_single_use, remove_visited_stmt_chain,
30041 linearize_expr, repropagate_negates, reassociate_bb): Use it
30042 instead of gsi_remove.
30043
30044 2014-04-16 Martin Jambor <mjambor@suse.cz>
30045
30046 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
30047 ipa_transforms_to_apply.
30048 (cgraph_function_versioning): Assert that old_node has empty
30049 ipa_transforms_to_apply.
30050 * trans-mem.c (ipa_tm_create_version): Likewise.
30051 * tree-inline.c (tree_function_versioning): Do not duplicate
30052 ipa_transforms_to_apply.
30053
30054 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30055
30056 PR target/60817
30057 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
30058 x86_64-*-* cases.
30059 Pass necessary as flags on 64-bit Solaris/x86.
30060 Use lowercase relocs for x86_64-*-*.
30061 * configure: Regenerate.
30062
30063 2014-04-15 Jan Hubicka <jh@suse.cz>
30064
30065 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
30066 (maybe_record_node, likely_target_p): Use it.
30067
30068 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30069
30070 PR target/60839
30071 Revert following patch
30072
30073 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30074
30075 PR target/60735
30076 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30077 software floating point or no floating point registers, do not
30078 allow any type in the FPRs. Eliminate a test for SPE SIMD types
30079 in GPRs that occurs after we tested for GPRs that would never be
30080 true.
30081
30082 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30083 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30084 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
30085 specifically allow DDmode, since that does not use the SPE SIMD
30086 instructions.
30087
30088 2014-03-21 Mark Wielaard <mjw@redhat.com>
30089
30090 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
30091 as unsigned or int depending on type and value used.
30092
30093 2014-04-15 Richard Biener <rguenther@suse.de>
30094
30095 PR rtl-optimization/56965
30096 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
30097 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
30098 ... here.
30099 * alias.c (true_dependence_1): Do not call
30100 nonoverlapping_component_refs_p.
30101 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
30102 nonoverlapping_component_refs_p.
30103 (indirect_refs_may_alias_p): Likewise.
30104
30105 2014-04-15 Teresa Johnson <tejohnson@google.com>
30106
30107 * cfg.c (dump_bb_info): Fix flags check.
30108 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
30109
30110 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30111
30112 PR rtl-optimization/60663
30113 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
30114 avoid 0 cost.
30115
30116 2014-04-15 Richard Biener <rguenther@suse.de>
30117
30118 * lto-streamer.h (LTO_major_version): Bump to 4.
30119
30120 2014-04-15 Richard Biener <rguenther@suse.de>
30121
30122 * common.opt (lto_partition_model): New enum.
30123 (flto-partition=): Merge separate options with a single with argument,
30124 add -flto-partition=one support.
30125 * flag-types.h (enum lto_partition_model): Declare.
30126 * opts.c (finish_options): Remove duplicate -flto-partition=
30127 option check.
30128 * lto-wrapper.c (run_gcc): Adjust.
30129
30130 2014-04-15 Richard Biener <rguenther@suse.de>
30131
30132 * alias.c (ncr_compar): New function.
30133 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
30134
30135 2014-04-15 Richard Biener <rguenther@suse.de>
30136
30137 * alias.c (record_component_aliases): Do not walk BINFOs.
30138
30139 2014-04-15 Richard Biener <rguenther@suse.de>
30140
30141 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30142 Add struct function argument and adjust.
30143 (find_func_aliases_for_call): Likewise.
30144 (find_func_aliases): Likewise.
30145 (find_func_clobbers): Likewise.
30146 (intra_create_variable_infos): Likewise.
30147 (compute_points_to_sets): Likewise.
30148 (ipa_pta_execute): Adjust. Do not push/pop cfun.
30149
30150 2014-04-15 Richard Biener <rguenther@suse.de>
30151
30152 * tree.c (iterative_hash_expr): Use enum tree_code_class
30153 to store TREE_CODE_CLASS.
30154 (tree_block): Likewise.
30155 (tree_set_block): Likewise.
30156 * tree.h (fold_build_pointer_plus_loc): Use
30157 convert_to_ptrofftype_loc.
30158
30159 2014-04-15 Jakub Jelinek <jakub@redhat.com>
30160
30161 PR plugins/59335
30162 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
30163 added in 4.9.
30164
30165 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
30166
30167 * cfgloop.h (struct loop): Move force_vectorize down.
30168 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
30169 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
30170 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
30171 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
30172 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
30173 * tree-core.h (enum annot_expr_kind): Add new kind values.
30174 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
30175 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
30176 kinds.
30177 * tree.def (ANNOTATE_EXPR): Tweak comment.
30178
30179 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
30180
30181 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
30182 cxa_pure_virtual).
30183
30184 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
30185
30186 * tree.h (TYPE_IDENTIFIER): Declare.
30187 * tree.c (subrange_type_for_debug_p): Use it.
30188 * godump.c (go_format_type): Likewise.
30189 * dwarf2out.c (is_cxx_auto, modified_type_die,
30190 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
30191 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
30192
30193 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
30194
30195 PR lto/60820
30196 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
30197
30198 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
30199
30200 * config/i386/i386.c (examine_argument): Return bool. Return true if
30201 parameter should be passed in memory.
30202 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
30203 (construct_container): Update calls to examine_argument.
30204 (function_arg_advance_64): Ditto.
30205 (return_in_memory_32): Merge with ix86_return_in_memory.
30206 (return_in_memory_64): Ditto.
30207 (return_in_memory_ms_64): Ditto.
30208
30209 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
30210
30211 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
30212 * coverage.c (coverage_compute_profile_id): Handle externally visible
30213 symbols.
30214
30215 2014-04-14 Martin Jambor <mjambor@suse.cz>
30216
30217 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
30218 DECL_DISREGARD_INLINE_LIMITS functions.
30219
30220 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
30221
30222 PR target/60827
30223 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
30224
30225 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
30226
30227 PR target/60827
30228 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
30229 optimize_insn_for_speed_p instead of
30230 optimize_function_for_speed_p.
30231
30232 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
30233
30234 * doc/invoke.texi (free): Document AArch64.
30235
30236 2014-04-14 Richard Biener <rguenther@suse.de>
30237
30238 PR tree-optimization/60042
30239 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
30240 (insert_into_preds_of_block): Do not prevent PHI insertion
30241 for REFERENCE exprs here ...
30242 (eliminate_dom_walker::before_dom_children): ... but prevent
30243 their use here under similar conditions when applied to the
30244 IL after PRE optimizations.
30245
30246 2014-04-14 Richard Biener <rguenther@suse.de>
30247
30248 * passes.def: Move early points-to after early SRA.
30249
30250 2014-04-14 Richard Biener <rguenther@suse.de>
30251
30252 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
30253 check for which sign-changes we allow when forwarding
30254 a converted value into a switch.
30255
30256 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
30257
30258 * stor-layout.c (place_field): Finalize non-constant offset for the
30259 field, if any.
30260
30261 2014-04-14 Richard Biener <rguenther@suse.de>
30262
30263 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
30264 as argument.
30265 (expand_switch_using_bit_tests_p): Likewise.
30266 (process_switch): Compute and pass on speed_p based on the
30267 switch stmt.
30268 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
30269 optimize_bb_for_speed_p.
30270
30271 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
30272
30273 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
30274 * function.h (struct function): Rename has_force_vect_loops into
30275 has_force_vectorize_loops.
30276 * lto-streamer-in.c (input_cfg): Adjust for renaming.
30277 (input_struct_function_base): Likewise.
30278 * lto-streamer-out.c (output_cfg): Likewise.
30279 (output_struct_function_base): Likewise.
30280 * omp-low.c (expand_omp_simd): Likewise.
30281 * tree-cfg.c (move_sese_region_to_fn): Likewise.
30282 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
30283 (version_loop_for_if_conversion): Likewise.
30284 (tree_if_conversion): Likewise.
30285 (main_tree_if_conversion): Likewise.
30286 (gate_tree_if_conversion): Likewise.
30287 * tree-inline.c (copy_loops): Likewise.
30288 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
30289 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
30290 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
30291 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
30292 * tree-vectorizer.c (vectorize_loops): Likewise.
30293 * tree-vectorizer.h (unlimited_cost_model): Likewise.
30294
30295 2014-04-14 Richard Biener <rguenther@suse.de>
30296
30297 PR lto/60720
30298 * lto-streamer-out.c (wrap_refs): New function.
30299 (lto_output): Wrap symbol references in global initializes in
30300 type-preserving MEM_REFs.
30301
30302 2014-04-14 Christian Bruel <christian.bruel@st.com>
30303
30304 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
30305
30306 2014-04-14 Christian Bruel <christian.bruel@st.com>
30307
30308 * config/sh/sh.md (setmemqi): New expand pattern.
30309 * config/sh/sh.h (CLEAR_RATIO): Define.
30310 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
30311 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
30312
30313 2014-04-14 Richard Biener <rguenther@suse.de>
30314
30315 PR middle-end/55022
30316 * fold-const.c (negate_expr_p): Don't negate directional rounding
30317 division.
30318 (fold_negate_expr): Likewise.
30319
30320 2014-04-14 Richard Biener <rguenther@suse.de>
30321
30322 PR tree-optimization/59817
30323 PR tree-optimization/60453
30324 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
30325 recursion to catch all CHRECs in the scalar evolution and restrict
30326 the predicate for the remains appropriately.
30327
30328 2014-04-12 Catherine Moore <clm@codesourcery.com>
30329
30330 * config/mips/constraints.md: Add new register constraint "kb".
30331 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
30332 (*movhi_internal): Likewise.
30333 (*movqi_internal): Likewise.
30334 * config/mips/mips.h (M16_STORE_REGS): New register class.
30335 (REG_CLASS_NAMES): Add M16_STORE_REGS.
30336 (REG_CLASS_CONTENTS): Likewise.
30337 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
30338
30339 2014-04-11 Tobias Burnus <burnus@net-b.de>
30340
30341 PR c/60194
30342 * doc/invoke.texi (-Wformat-signedness): Document it.
30343 (Wformat=2): Mention that this enables -Wformat-signedness.
30344
30345 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
30346
30347 * common/config/epiphany/epiphany-common.c
30348 (epiphany_option_optimization_table): Enable section anchors by
30349 default at -O1 or higher.
30350 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
30351 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
30352 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
30353 carries no extra cost.
30354 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
30355 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
30356 * config/epiphany/predicates.md (memclob_operand): New predicate.
30357 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
30358 Use memclob_operand predicate and X constraint for operand 3.
30359
30360 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
30361
30362 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
30363 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
30364 its operands.
30365
30366 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
30367
30368 PR rtl-optimization/60651
30369 * mode-switching.c (optimize_mode_switching): Make sure to emit
30370 sets of a lower numbered entity before sets of a higher numbered
30371 entity to a mode of the same or lower priority.
30372 When creating a seginfo for a basic block that starts with a code
30373 label, move the insertion point past the code label.
30374 (new_seginfo): Document and enforce requirement that
30375 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
30376 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
30377 * doc/tm.texi: Regenerate.
30378
30379 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
30380
30381 PR target/60811
30382 * config/arc/arc.c (arc_save_restore): Fix assert typo.
30383
30384 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30385
30386 * BASE-VER: Set to 4.10.0.
30387
30388 2014-04-11 Tobias Burnus <burnus@net-b.de>
30389
30390 PR other/59055
30391 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
30392 * doc/gcc.texi (Service): Update description in the @menu
30393 * doc/invoke.texi (Option Summary): Remove misplaced and
30394 duplicated @menu.
30395
30396 2014-04-11 Steve Ellcey <sellcey@mips.com>
30397 Jakub Jelinek <jakub@redhat.com>
30398
30399 PR middle-end/60556
30400 * expr.c (convert_move): Use emit_store_flag_force instead of
30401 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
30402 argument to it.
30403
30404 2014-04-11 Richard Biener <rguenther@suse.de>
30405
30406 PR middle-end/60797
30407 * varasm.c (assemble_alias): Avoid endless error reporting
30408 recursion by setting TREE_ASM_WRITTEN.
30409
30410 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30411
30412 * config/s390/s390.md: Add a splitter for NOT rtx.
30413
30414 2014-04-11 Jakub Jelinek <jakub@redhat.com>
30415
30416 PR rtl-optimization/60663
30417 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
30418
30419 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
30420 Jakub Jelinek <jakub@redhat.com>
30421
30422 PR lto/60567
30423 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
30424 flag from decl_node to node.
30425
30426 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30427
30428 PR debug/60655
30429 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
30430 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
30431 ameliorating the cases where it can be.
30432
30433 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
30434
30435 Revert
30436 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
30437
30438 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30439 (loadsync_<mode>): Change mode.
30440 (load_quadpti, store_quadpti): New.
30441 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30442 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30443 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
30444
30445 2014-04-09 Cong Hou <congh@google.com>
30446
30447 PR testsuite/60773
30448 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
30449 documentation.
30450
30451 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30452
30453 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
30454 instead of vnor to exploit possible fusion opportunity in the
30455 future.
30456 (altivec_expand_vec_perm_const_le): Likewise.
30457
30458 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
30459
30460 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30461 (loadsync_<mode>): Change mode.
30462 (load_quadpti, store_quadpti): New.
30463 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30464 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30465
30466 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
30467
30468 PR target/60763
30469 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
30470 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
30471 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
30472
30473 2014-04-08 Richard Biener <rguenther@suse.de>
30474
30475 PR middle-end/60706
30476 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
30477 a 64bit widest int print double-int similar to on HWI64 hosts.
30478
30479 2014-04-08 Richard Biener <rguenther@suse.de>
30480
30481 PR tree-optimization/60785
30482 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
30483 default defs properly.
30484
30485 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
30486
30487 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
30488 (Weffc++): Likewise.
30489
30490 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
30491
30492 * ipa-devirt.c (maybe_record_node): When node is not recorded,
30493 set completep to false rather than true.
30494
30495 2014-04-07 Douglas B Rupp <rupp@adacore.com>
30496
30497 PR target/60504
30498 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
30499 ARM_TARGET2_DWARF_FORMAT.
30500
30501 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
30502
30503 PR target/60609
30504 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
30505 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
30506 ADDR_DIFF_VEC.
30507
30508 2014-04-07 Richard Biener <rguenther@suse.de>
30509
30510 PR tree-optimization/60766
30511 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
30512 (may_eliminate_iv): Convert cand_value_at result to desired type.
30513
30514 2014-04-07 Jason Merrill <jason@redhat.com>
30515
30516 PR c++/60731
30517 * common.opt (-fno-gnu-unique): Add.
30518 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
30519
30520 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30521
30522 * haifa-sched.c: Fix outdated function reference and minor
30523 grammar errors in introductory comment.
30524
30525 2014-04-07 Richard Biener <rguenther@suse.de>
30526
30527 PR middle-end/60750
30528 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
30529 for noreturn calls.
30530 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
30531
30532 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
30533
30534 PR debug/55794
30535 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
30536 size accounting for thunks.
30537 (pa_asm_output_mi_thunk): Use final_start_function() and
30538 final_end_function() to output function start and end directives.
30539
30540 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
30541
30542 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
30543 device specific ISA/ feature information. Remove short_sp and
30544 errata_skip ds. Add avr_device_specific_features enum to have device
30545 specific info.
30546 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
30547 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
30548 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
30549 updated device specific info.
30550 * config/avr/avr-mcus.def: Merge device specific details to
30551 dev_attribute field.
30552 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
30553 errata_skip.
30554 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
30555 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
30556 assembler if RMW isa supported by current device.
30557 * config/avr/genmultilib.awk: Update as device info structure changed.
30558 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
30559
30560 2014-04-04 Cong Hou <congh@google.com>
30561
30562 PR tree-optimization/60656
30563 * tree-vect-stmts.c (supportable_widening_operation):
30564 Fix a bug that elements in a vector with vect_used_by_reduction
30565 property are incorrectly reordered when the operation on it is not
30566 consistant with the one in reduction operation.
30567
30568 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
30569
30570 PR rtl-optimization/60155
30571 * gcse.c (record_set_data): New function.
30572 (single_set_gcse): New function.
30573 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30574 (hoist_code): Likewise.
30575 (get_pressure_class_and_nregs): Likewise.
30576
30577 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
30578
30579 * explow.c (probe_stack_range): Emit a final optimization blockage.
30580
30581 2014-04-04 Anthony Green <green@moxielogic.com>
30582
30583 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30584 typos.
30585
30586 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
30587
30588 PR ipa/59626
30589 * lto-cgraph.c (input_overwrite_node): Check that partitioning
30590 flags are set only during streaming.
30591 * ipa.c (process_references, walk_polymorphic_call_targets,
30592 symtab_remove_unreachable_nodes): Drop bodies of always inline
30593 after early inlining.
30594 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30595
30596 2014-04-04 Jakub Jelinek <jakub@redhat.com>
30597 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30598
30599 PR debug/60655
30600 * dwarf2out.c (const_ok_for_output_1): Reject expressions
30601 containing a NOT.
30602
30603 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30604
30605 PR bootstrap/60743
30606 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30607 duration.
30608 (cortex_a53_fdivd): Likewise.
30609
30610 2014-04-04 Martin Jambor <mjambor@suse.cz>
30611
30612 PR ipa/60640
30613 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30614 Adjust all callers.
30615 * cgraph.c (clone_of_p): Also return true if thunks match.
30616 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30617 cgraph_function_or_thunk_node and an obsolete comment.
30618 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30619 file.
30620 (build_function_decl_skip_args): Likewise.
30621 (set_new_clone_decl_and_node_flags): New function.
30622 (duplicate_thunk_for_node): Likewise.
30623 (redirect_edge_duplicating_thunks): Likewise.
30624 (cgraph_clone_node): New parameter args_to_skip, pass it to
30625 redirect_edge_duplicating_thunks which is called instead of
30626 cgraph_redirect_edge_callee.
30627 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30628 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30629
30630 2014-04-04 Jeff Law <law@redhat.com>
30631
30632 PR target/60657
30633 * config/arm/predicates.md (const_int_I_operand): New predicate.
30634 (const_int_M_operand): Similarly.
30635 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30636 const_int_operand.
30637 (insv_t2, extv_reg, extzv_t2): Likewise.
30638 (load_multiple_with_writeback): Similarly for const_int_I_operand.
30639 (pop_multiple_with_writeback_and_return): Likewise.
30640 (vfp_pop_multiple_with_writeback): Likewise
30641
30642 2014-04-04 Richard Biener <rguenther@suse.de>
30643
30644 PR ipa/60746
30645 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30646 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30647 non-GIMPLE_LABELs.
30648 * gimplify.h (gimple_add_tmp_var_fn): Declare.
30649 * gimplify.c (gimple_add_tmp_var_fn): New function.
30650 * gimple-expr.h (create_tmp_reg_fn): Declare.
30651 * gimple-expr.c (create_tmp_reg_fn): New function.
30652 * gimple-low.c (record_vars_into): Don't change cfun.
30653 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30654 code generation without cfun.
30655
30656 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
30657
30658 PR bootstrap/60719
30659 * Makefile.in (install-driver): Fix shell scripting.
30660
30661 2014-04-03 Cong Hou <congh@google.com>
30662
30663 PR tree-optimization/60505
30664 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30665 threshold of number of iterations below which no vectorization
30666 will be done.
30667 * tree-vect-loop.c (new_loop_vec_info):
30668 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30669 * tree-vect-loop.c (vect_analyze_loop_operations):
30670 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30671 * tree-vect-loop.c (vect_transform_loop):
30672 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30673 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30674 of iterations of the loop and see if we should build the epilogue.
30675
30676 2014-04-03 Richard Biener <rguenther@suse.de>
30677
30678 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30679 (streamer_tree_cache_create): Adjust.
30680 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30681 to allow optional nodes array.
30682 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30683 (streamer_tree_cache_append): Likewise.
30684 (streamer_tree_cache_create): Create nodes array optionally
30685 as specified by parameter.
30686 * lto-streamer-out.c (create_output_block): Avoid maintaining
30687 the node array in the writer cache.
30688 (DFS_write_tree): Remove assertion.
30689 (produce_asm_for_decls): Free the out decl state hash table early.
30690 * lto-streamer-in.c (lto_data_in_create): Adjust for
30691 streamer_tree_cache_create prototype change.
30692
30693 2014-04-03 Richard Biener <rguenther@suse.de>
30694
30695 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30696 set TREE_CHAIN to NULL_TREE.
30697
30698 2014-04-03 Richard Biener <rguenther@suse.de>
30699
30700 PR tree-optimization/60740
30701 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30702 over all GIMPLE_COND operands.
30703
30704 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
30705
30706 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30707 (Weffc++): Remove Scott's numbering, merge lists and reference
30708 Wnon-virtual-dtor.
30709
30710 2014-04-03 Nick Clifton <nickc@redhat.com>
30711
30712 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30713 properly.
30714
30715 2014-04-03 Martin Jambor <mjambor@suse.cz>
30716
30717 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30718 mention gcc_unreachable before failing.
30719 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30720 removed symbols.
30721
30722 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
30723
30724 PR ipa/60659
30725 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30726 inconsistent code and instead mark the context inconsistent.
30727 (possible_polymorphic_call_targets): For inconsistent contexts
30728 return empty complete list.
30729
30730 2014-04-02 Anthony Green <green@moxielogic.com>
30731
30732 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30733 (extendqisi2, extendhisi2): Define.
30734 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30735 (WCHAR_TYPE): Change to unsigned int.
30736
30737 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30738
30739 PR tree-optimization/60733
30740 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30741 insertion point for PHI candidates to be the end of the feeding
30742 block for the PHI argument.
30743
30744 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
30745
30746 PR rtl-optimization/60650
30747 * lra-constraints.c (process_alt_operands): Decrease reject for
30748 earlyclobber matching.
30749
30750 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30751
30752 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30753
30754 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30755
30756 * config/spu/spu.c (pad_bb): Do not crash when the last
30757 insn is CODE_FOR_blockage.
30758
30759 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30760
30761 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30762 lies outside the target mode.
30763
30764 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30765
30766 PR target/60735
30767 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30768 software floating point or no floating point registers, do not
30769 allow any type in the FPRs. Eliminate a test for SPE SIMD types
30770 in GPRs that occurs after we tested for GPRs that would never be
30771 true.
30772
30773 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30774 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30775 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
30776 specifically allow DDmode, since that does not use the SPE SIMD
30777 instructions.
30778
30779 2014-04-02 Richard Biener <rguenther@suse.de>
30780
30781 PR middle-end/60729
30782 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30783 MODE_INTs. Properly use negv_optab.
30784 (expand_abs): Likewise.
30785
30786 2014-04-02 Richard Biener <rguenther@suse.de>
30787
30788 PR bootstrap/60719
30789 * Makefile.in (install-driver): Guard extra installs with special
30790 names properly.
30791
30792 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
30793
30794 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30795 Document vec_vgbbd.
30796
30797 2014-04-01 Richard Henderson <rth@redhat.com>
30798
30799 PR target/60704
30800 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30801 alternative enabled before register allocation.
30802
30803 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
30804
30805 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30806 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30807 typo.
30808 (nios2_large_got_address): Remove unneeded 'sym' parameter.
30809 (nios2_got_address): Update nios2_large_got_address call site.
30810 (nios2_delegitimize_address): New function.
30811 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30812 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30813 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30814
30815 2014-04-01 Martin Husemann <martin@duskware.de>
30816
30817 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30818 for -mabi=32.
30819
30820 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
30821
30822 PR rtl-optimization/60604
30823 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30824 check from register_operand.
30825 (register_operand): Redefine in terms of general_operand.
30826 (nonmemory_operand): Use register_operand for the non-constant cases.
30827
30828 2014-04-01 Richard Biener <rguenther@suse.de>
30829
30830 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30831
30832 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
30833
30834 * doc/invoke.texi (mapp-regs): Clarify.
30835
30836 2014-03-31 Ulrich Drepper <drepper@gmail.com>
30837
30838 * config/i386/avx512fintrin.h (__v32hi): Define type.
30839 (__v64qi): Likewise.
30840 (_mm512_set1_epi8): Define.
30841 (_mm512_set1_epi16): Define.
30842 (_mm512_set4_epi32): Define.
30843 (_mm512_set4_epi64): Define.
30844 (_mm512_set4_pd): Define.
30845 (_mm512_set4_ps): Define.
30846 (_mm512_setr4_epi64): Define.
30847 (_mm512_setr4_epi32): Define.
30848 (_mm512_setr4_pd): Define.
30849 (_mm512_setr4_ps): Define.
30850 (_mm512_setzero_epi32): Define.
30851
30852 2014-03-31 Martin Jambor <mjambor@suse.cz>
30853
30854 PR middle-end/60647
30855 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30856 callsite_arguments_match_p. Updated all callers. Also check types of
30857 corresponding formal parameters and actual arguments.
30858 (not_all_callers_have_enough_arguments_p) Renamed to
30859 some_callers_have_mismatched_arguments_p.
30860
30861 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
30862
30863 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30864
30865 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30866
30867 PR target/60034
30868 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30869 section anchor.
30870
30871 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
30872
30873 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30874 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30875 Split out
30876 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30877 Use FMAMODE_NOVF512 mode iterator.
30878 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30879 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30880 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30881 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30882 Split out
30883 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30884 Use VF_128_256 mode iterator.
30885 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30886 Ditto.
30887
30888 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30889
30890 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30891 static chain if needed.
30892
30893 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30894
30895 PR target/60697
30896 * lra-constraints.c (index_part_to_reg): New.
30897 (process_address): Use it.
30898
30899 2014-03-27 Jeff Law <law@redhat.com>
30900 Jakub Jelinek <jakub@redhat.com>
30901
30902 PR target/60648
30903 * expr.c (do_tablejump): Use simplify_gen_binary rather than
30904 gen_rtx_{PLUS,MULT} to build up the address expression.
30905
30906 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30907 creating non-canonical RTL.
30908
30909 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30910
30911 PR ipa/60243
30912 * ipa-inline.c (want_inline_small_function_p): Short circuit large
30913 functions; reorganize to make cheap checks first.
30914 (inline_small_functions): Do not estimate growth when dumping;
30915 it is expensive.
30916 * ipa-inline.h (inline_summary): Add min_size.
30917 (growth_likely_positive): New function.
30918 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30919 (set_cond_stmt_execution_predicate): Cleanup.
30920 (estimate_edge_size_and_time): Compute min_size.
30921 (estimate_calls_size_and_time): Likewise.
30922 (estimate_node_size_and_time): Likewise.
30923 (inline_update_overall_summary): Update min_size.
30924 (do_estimate_edge_time): Likewise.
30925 (do_estimate_edge_size): Update.
30926 (do_estimate_edge_hints): Update.
30927 (growth_likely_positive): New function.
30928
30929 2014-03-28 Jakub Jelinek <jakub@redhat.com>
30930
30931 PR target/60693
30932 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30933 also if addr has VOIDmode.
30934
30935 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30936
30937 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30938 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30939 Declare extern.
30940 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30941 instructions as well as AdvancedSIMD loads.
30942
30943 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30944
30945 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30946 Use crypto_aese type.
30947 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30948 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30949 crypto_aese, crypto_aesmc. Move to types.md.
30950 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30951 crypto_aesmc.
30952 * config/arm/iterators.md (crypto_type): Likewise.
30953
30954 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30955
30956 * cgraph.c: Include expr.h and tree-dfa.h.
30957 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30958 remove LHS.
30959
30960 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30961
30962 PR target/60675
30963 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30964 regs from checking multi-reg pseudos.
30965
30966 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30967
30968 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30969
30970 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30971
30972 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30973 if it would clobber the stack pointer, even temporarily.
30974
30975 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30976
30977 * mode-switching.c: Make small adjustments to the top comment.
30978
30979 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30980
30981 * config/rs6000/constraints.md (wD constraint): New constraint to
30982 match the constant integer to get the top DImode/DFmode out of a
30983 vector in a VSX register.
30984
30985 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30986 match the constant integer to get the top DImode/DFmode out of a
30987 vector in a VSX register.
30988
30989 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30990 for ISA 2.07.
30991
30992 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30993 vbpermq builtins.
30994
30995 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30996 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30997
30998 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30999 Optimize vec_extract of 64-bit values, where the value being
31000 extracted is in the top word, where we can use scalar
31001 instructions. Add direct move and store support. Combine the big
31002 endian/little endian vector select load support into a single insn.
31003 (vsx_extract_<mode>_internal1): Likewise.
31004 (vsx_extract_<mode>_internal2): Likewise.
31005 (vsx_extract_<mode>_load): Likewise.
31006 (vsx_extract_<mode>_store): Likewise.
31007 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
31008 combined into vsx_extract_<mode>_load.
31009 (vsx_extract_<mode>_one_le): Likewise.
31010
31011 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
31012 define the top 64-bit vector element.
31013
31014 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
31015 constraint.
31016
31017 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31018 Document vec_vbpermq builtin.
31019
31020 PR target/60672
31021 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
31022 enable use of xxsldwi and xxpermdi builtin functions.
31023 (vec_xxpermdi): Likewise.
31024
31025 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31026 Document use of vec_xxsldwi and vec_xxpermdi builtins.
31027
31028 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
31029
31030 PR rtl-optimization/60650
31031 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
31032 first_p. Use it.
31033 (find_spills_for): New.
31034 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
31035 Spill all pseudos on the second iteration.
31036
31037 2014-03-27 Marek Polacek <polacek@redhat.com>
31038
31039 PR c/50347
31040 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
31041 types.
31042
31043 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31044
31045 * config/s390/s390.c (s390_can_use_return_insn): Check for
31046 call-saved FPRs on 31 bit.
31047
31048 2014-03-27 Jakub Jelinek <jakub@redhat.com>
31049
31050 PR middle-end/60682
31051 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
31052 if they need regimplification, just drop them instead of
31053 calling gimple_regimplify_operands on them.
31054
31055 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
31056
31057 PR target/60580
31058 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
31059 (aarch64_frame_pointer_required): Adjust logic.
31060 (aarch64_can_eliminate): Adjust logic.
31061 (aarch64_override_options_after_change): Adjust logic.
31062
31063 2014-03-27 Dehao Chen <dehao@google.com>
31064
31065 * ipa-inline.c (early_inliner): Update node's inline info.
31066
31067 2014-03-26 Dehao Chen <dehao@google.com>
31068
31069 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
31070 compiler inserted conditional jumps for NAN float check.
31071
31072 2014-03-26 Jakub Jelinek <jakub@redhat.com>
31073
31074 * ubsan.h (ubsan_create_data): Change second argument's type
31075 to const location_t *.
31076 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
31077 _("<unknown>").
31078 (ubsan_create_data): Change second argument to const location_t *PLOC.
31079 Create Loc field whenever PLOC is non-NULL.
31080 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
31081 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
31082 callers.
31083
31084 PR other/59545
31085 * real.c (real_to_integer2): Change type of low to UHWI.
31086
31087 2014-03-26 Tobias Burnus <burnus@net-b.de>
31088
31089 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
31090 (CILK_SELF_SPECS): New define.
31091 (driver_self_specs): Use it.
31092
31093 2014-03-26 Richard Biener <rguenther@suse.de>
31094
31095 * tree-pretty-print.c (percent_K_format): Implement special
31096 case for LTO and its stripped down BLOCK tree.
31097
31098 2014-03-26 Jakub Jelinek <jakub@redhat.com>
31099
31100 PR sanitizer/60636
31101 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
31102
31103 * tree-vrp.c (simplify_internal_call_using_ranges): If only
31104 one range is range_int_cst_p, but not both, at least optimize
31105 addition/subtraction of 0 and multiplication by 0 or 1.
31106 * gimple-fold.c (gimple_fold_call): Fold
31107 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
31108 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
31109 INTEGER_CSTs, try to fold at least x * 0 and y - y.
31110
31111 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
31112
31113 PR rtl-optimization/60452
31114 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
31115 <case REG>: Return 1 for invalid offsets from the frame pointer.
31116
31117 2014-03-26 Marek Polacek <polacek@redhat.com>
31118
31119 PR c/37428
31120 * doc/extend.texi (C Extensions): Mention variable-length arrays in
31121 a structure/union.
31122
31123 2014-03-26 Marek Polacek <polacek@redhat.com>
31124
31125 PR c/39525
31126 * doc/extend.texi (Designated Inits): Describe what happens to omitted
31127 field members.
31128
31129 2014-03-26 Marek Polacek <polacek@redhat.com>
31130
31131 PR other/59545
31132 * ira-color.c (update_conflict_hard_regno_costs): Perform the
31133 multiplication in unsigned type.
31134
31135 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
31136
31137 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
31138
31139 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
31140
31141 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
31142
31143 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
31144
31145 PR ipa/60315
31146 * cif-code.def (UNREACHABLE) New code.
31147 * ipa-inline.c (inline_small_functions): Skip edges to
31148 __builtlin_unreachable.
31149 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
31150 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
31151 predicate to __bulitin_unreachable.
31152 (set_cond_stmt_execution_predicate): Fix issue when
31153 invert_tree_comparison returns ERROR_MARK.
31154 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
31155 propagate to inline clones.
31156 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
31157 to unreachable.
31158 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
31159 * cgraphclones.c (cgraph_clone_node): If call destination is already
31160 ureachable, do not redirect it back.
31161 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
31162 unreachable.
31163
31164 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
31165
31166 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
31167 Do not modify inline clones.
31168
31169 2014-03-25 Jakub Jelinek <jakub@redhat.com>
31170
31171 * config/i386/i386.md (general_sext_operand): New mode attr.
31172 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
31173 don't generate (sign_extend (const_int)).
31174 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
31175 operands[2]. Use We constraint instead of <i> and
31176 <general_sext_operand> predicate instead of <general_operand>.
31177 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
31178 * config/i386/constraints.md (We): New constraint.
31179 * config/i386/predicates.md (x86_64_sext_operand,
31180 sext_operand): New predicates.
31181
31182 2014-03-25 Martin Jambor <mjambor@suse.cz>
31183
31184 PR ipa/60600
31185 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
31186 inconsistent devirtualizations to __builtin_unreachable.
31187
31188 2014-03-25 Marek Polacek <polacek@redhat.com>
31189
31190 PR c/35449
31191 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
31192
31193 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
31194
31195 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
31196 order of elements for big-endian.
31197
31198 2014-03-25 Richard Biener <rguenther@suse.de>
31199
31200 PR middle-end/60635
31201 * gimplify-me.c (gimple_regimplify_operands): Update the
31202 re-gimplifed stmt.
31203
31204 2014-03-25 Martin Jambor <mjambor@suse.cz>
31205
31206 PR ipa/59176
31207 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
31208 (lto_output_varpool_node): Likewise.
31209 (input_overwrite_node): Likewise.
31210 (input_varpool_node): Likewise.
31211
31212 2014-03-25 Richard Biener <rguenther@suse.de>
31213
31214 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
31215 (run_gcc): Likewise.
31216
31217 2014-03-25 Jakub Jelinek <jakub@redhat.com>
31218
31219 * combine.c (simplify_compare_const): Add MODE argument.
31220 Handle mode_width 0 as very large mode_width.
31221 (try_combine, simplify_comparison): Adjust callers.
31222
31223 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
31224 type to avoid signed integer overflow.
31225 * explow.c (plus_constant): Likewise.
31226
31227 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
31228
31229 * doc/generic.texi: Correct typos.
31230
31231 2014-03-24 Tobias Burnus <burnus@net-b.de>
31232
31233 * doc/invoke.texi (-flto): Expand section about
31234 using static libraries with LTO.
31235
31236 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31237
31238 PR rtl-optimization/60501
31239 * optabs.def (addptr3_optab): New optab.
31240 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
31241 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
31242 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
31243
31244 * lra.c (emit_add3_insn): Use the addptr pattern if available.
31245
31246 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
31247
31248 2014-03-24 Ulrich Drepper <drepper@gmail.com>
31249
31250 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
31251 _mm512_set1_pd.
31252
31253 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
31254 (_mm256_undefined_ps): Define.
31255 (_mm256_undefined_pd): Define.
31256 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
31257 (_mm_undefined_pd): Define.
31258 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
31259 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
31260 (_mm512_undefined_ps): Define.
31261 (_mm512_undefined_pd): Define.
31262 Use _mm*_undefined_*.
31263 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
31264
31265 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
31266
31267 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
31268 (lshr_simd): DI mode added.
31269 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
31270 (aarch64_ushr_simddi): Likewise.
31271 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
31272 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
31273 (vshrd_n_u64): Likewise.
31274
31275 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31276
31277 * Makefile.in (s-macro_list): Depend on cc1.
31278
31279 2014-03-23 Teresa Johnson <tejohnson@google.com>
31280
31281 * ipa-utils.c (ipa_print_order): Use specified dump file.
31282
31283 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
31284
31285 PR rtl-optimization/60601
31286 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
31287
31288 * gcc.c (eval_spec_function): Initialize save_growing_value.
31289
31290 2014-03-22 Jakub Jelinek <jakub@redhat.com>
31291
31292 PR sanitizer/60613
31293 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
31294 code == MINUS_EXPR, never swap op0 with op1.
31295
31296 * toplev.c (init_local_tick): Avoid signed integer multiplication
31297 overflow.
31298 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
31299 shift by first operand's bitsize.
31300
31301 2014-03-21 Jakub Jelinek <jakub@redhat.com>
31302
31303 PR target/60610
31304 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
31305 redefine to 1 or 0.
31306 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
31307 TARGET_ISA_64BIT_P(x).
31308
31309 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31310
31311 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
31312 pattern for vector nor instead of subtract from splat(-1).
31313 (altivec_expand_vec_perm_const_le): Likewise.
31314
31315 2014-03-21 Richard Henderson <rth@twiddle.net>
31316
31317 PR target/60598
31318 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
31319 related insns after epilogue_completed.
31320
31321 2014-03-21 Martin Jambor <mjambor@suse.cz>
31322
31323 PR ipa/59176
31324 * cgraph.h (symtab_node): New flag body_removed.
31325 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
31326 when removing bodies.
31327 * symtab.c (dump_symtab_base): Dump body_removed flag.
31328 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
31329 had their bodies removed.
31330
31331 2014-03-21 Martin Jambor <mjambor@suse.cz>
31332
31333 PR ipa/60419
31334 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
31335 in the border.
31336
31337 2014-03-21 Richard Biener <rguenther@suse.de>
31338
31339 PR tree-optimization/60577
31340 * tree-core.h (struct tree_base): Document nothrow_flag use
31341 in DECL_NONALIASED.
31342 * tree.h (DECL_NONALIASED): New.
31343 (may_be_aliased): Adjust.
31344 * coverage.c (build_var): Set DECL_NONALIASED.
31345
31346 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
31347
31348 * expr.c (expand_expr_real_1): Remove outdated comment.
31349
31350 2014-03-20 Jakub Jelinek <jakub@redhat.com>
31351
31352 PR middle-end/60597
31353 * ira.c (adjust_cleared_regs): Call copy_rtx on
31354 *reg_equiv[REGNO (loc)].src_p before passing it to
31355 simplify_replace_fn_rtx.
31356
31357 PR target/60568
31358 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
31359 into CONST, put pic register as first operand of PLUS. Use
31360 gen_const_mem for both 32-bit and 64-bit PIC got loads.
31361
31362 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31363
31364 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
31365
31366 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
31367
31368 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
31369 around for store forwarding issue in the FPU on the UT699.
31370 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
31371 loads and operations if -mfix-ut699 is specified.
31372 (divtf3_hq): Tweak attribute.
31373 (sqrttf2_hq): Likewise.
31374
31375 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
31376
31377 * calls.c (store_one_arg): Remove incorrect const qualification on the
31378 type of the temporary.
31379 * cfgexpand.c (expand_return): Likewise.
31380 * expr.c (expand_constructor): Likewise.
31381 (expand_expr_real_1): Likewise.
31382
31383 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31384
31385 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
31386 of parts.
31387
31388 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
31389
31390 PR target/60039
31391 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
31392
31393 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
31394
31395 * config/arm/aarch-common-protos.h
31396 (alu_cost_table): Fix spelling of "extend".
31397 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
31398
31399 2014-03-19 Richard Biener <rguenther@suse.de>
31400
31401 PR middle-end/60553
31402 * tree-core.h (tree_type_common): Re-order pointer members
31403 to reduce recursion depth during GC walks.
31404
31405 2014-03-19 Marek Polacek <polacek@redhat.com>
31406
31407 PR sanitizer/60569
31408 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
31409 before accessing it.
31410
31411 2014-03-19 Richard Biener <rguenther@suse.de>
31412
31413 PR lto/59543
31414 * lto-streamer-in.c (input_function): In WPA stage do not drop
31415 debug stmts.
31416
31417 2014-03-19 Jakub Jelinek <jakub@redhat.com>
31418
31419 PR tree-optimization/60559
31420 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
31421 with build_zero_cst assignment.
31422
31423 2014-03-18 Kai Tietz <ktietz@redhat.com>
31424
31425 PR rtl-optimization/56356
31426 * sdbout.c (sdbout_parms): Verify that parms'
31427 incoming argument is valid.
31428 (sdbout_reg_parms): Likewise.
31429
31430 2014-03-18 Richard Henderson <rth@redhat.com>
31431
31432 PR target/60562
31433 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
31434 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
31435 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
31436
31437 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
31438
31439 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
31440 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
31441 Italicize plugin event names in description. Explain that
31442 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
31443 Remind that no GCC functions should be called after PLUGIN_FINISH.
31444 Explain what pragmas with expansion are.
31445
31446 2014-03-18 Martin Liska <mliska@suse.cz>
31447
31448 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
31449 gimple call statement is update.
31450 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
31451 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
31452
31453 2014-03-18 Jakub Jelinek <jakub@redhat.com>
31454
31455 PR sanitizer/60557
31456 * ubsan.c (ubsan_instrument_unreachable): Call
31457 initialize_sanitizer_builtins.
31458 (ubsan_pass): Likewise.
31459
31460 PR sanitizer/60535
31461 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
31462 varpool_finalize_decl instead of rest_of_decl_compilation.
31463
31464 2014-03-18 Richard Biener <rguenther@suse.de>
31465
31466 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
31467 by using bitmap_and_compl instead of bitmap_and_compl_into.
31468 (df_rd_transfer_function): Likewise.
31469
31470 2014-03-18 Richard Biener <rguenther@suse.de>
31471
31472 * doc/lto.texi (fresolution): Fix typo.
31473
31474 2014-03-18 Richard Biener <rguenther@suse.de>
31475
31476 * doc/invoke.texi (flto): Update for changes in 4.9.
31477
31478 2014-03-18 Richard Biener <rguenther@suse.de>
31479
31480 * doc/loop.texi: Remove section on the removed lambda framework.
31481 Update loop docs with recent changes in preserving loop structure.
31482
31483 2014-03-18 Richard Biener <rguenther@suse.de>
31484
31485 * doc/lto.texi (-fresolution): Document.
31486
31487 2014-03-18 Richard Biener <rguenther@suse.de>
31488
31489 * doc/contrib.texi: Adjust my name.
31490
31491 2014-03-18 Jakub Jelinek <jakub@redhat.com>
31492
31493 PR ipa/58721
31494 * internal-fn.c: Include diagnostic-core.h.
31495 (expand_BUILTIN_EXPECT): New function.
31496 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
31497 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
31498 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
31499 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
31500 IFN_BUILTIN_EXPECT.
31501 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
31502 Revert 3 argument __builtin_expect code.
31503 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
31504 * gimple-fold.c (gimple_fold_call): Likewise.
31505 * tree.h (fold_builtin_expect): New prototype.
31506 * builtins.c (build_builtin_expect_predicate): Add predictor
31507 argument, if non-NULL, create 3 argument __builtin_expect.
31508 (fold_builtin_expect): No longer static. Add ARG2 argument,
31509 pass it through to build_builtin_expect_predicate.
31510 (fold_builtin_2): Adjust caller.
31511 (fold_builtin_3): Handle BUILT_IN_EXPECT.
31512 * internal-fn.def (BUILTIN_EXPECT): New.
31513
31514 2014-03-18 Tobias Burnus <burnus@net-b.de>
31515
31516 PR ipa/58721
31517 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
31518 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
31519 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
31520
31521 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
31522
31523 PR ipa/58721
31524 * predict.c (combine_predictions_for_bb): Fix up formatting.
31525 (expr_expected_value_1, expr_expected_value): Add predictor argument,
31526 fill what it points to if non-NULL.
31527 (tree_predict_by_opcode): Adjust caller, use the predictor.
31528 * predict.def (PRED_COMPARE_AND_SWAP): Add.
31529
31530 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
31531
31532 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
31533 proper constant for the store mode.
31534
31535 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
31536
31537 * symtab.c (change_decl_assembler_name): Fix transparent alias
31538 chain construction.
31539
31540 2014-03-16 Renlin Li <Renlin.Li@arm.com>
31541
31542 * config/aarch64/aarch64.c: Correct the comments about the
31543 aarch64 stack layout.
31544
31545 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
31546
31547 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
31548 check for GF_OMP_FOR_KIND_FOR.
31549
31550 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
31551
31552 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
31553 ymm and zmm register names.
31554
31555 2014-03-17 Jakub Jelinek <jakub@redhat.com>
31556
31557 PR target/60516
31558 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
31559 note creation for the 2010-08-31 changes.
31560
31561 2014-03-17 Marek Polacek <polacek@redhat.com>
31562
31563 PR middle-end/60534
31564 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31565 as -fno-tree-loop-vectorize.
31566 (expand_omp_simd): Likewise.
31567
31568 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
31569
31570 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31571 (eligible_for_call_delay): New prototype.
31572 * config/sparc/sparc.c (tls_call_delay): Rename into...
31573 (eligible_for_call_delay): ...this. Return false if the instruction
31574 cannot be put in the delay slot of a branch.
31575 (eligible_for_restore_insn): Simplify.
31576 (eligible_for_return_delay): Return false if the instruction cannot be
31577 put in the delay slot of a branch and simplify.
31578 (eligible_for_sibcall_delay): Return false if the instruction cannot be
31579 put in the delay slot of a branch.
31580 * config/sparc/sparc.md (fix_ut699): New attribute.
31581 (tls_call_delay): Delete.
31582 (in_call_delay): Reimplement.
31583 (eligible_for_sibcall_delay): Rename into...
31584 (in_sibcall_delay): ...this.
31585 (eligible_for_return_delay): Rename into...
31586 (in_return_delay): ...this.
31587 (in_branch_delay): Reimplement.
31588 (in_uncond_branch_delay): Delete.
31589 (in_annul_branch_delay): Delete.
31590
31591 2014-03-14 Richard Henderson <rth@redhat.com>
31592
31593 PR target/60525
31594 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31595 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31596 (*floathi<X87MODEF>2_i387_with_temp): Remove.
31597 (floathi splitters): Remove.
31598 (float<SWI48x>xf2): New pattern.
31599 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
31600 code that tried to handle DImode for 32-bit, but which was excluded
31601 by the pattern's condition. Drop allocation of stack temporary.
31602 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31603 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31604 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31605 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31606 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31607 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31608 (*float<SWI48><MODEF>2_sse_interunit): Remove.
31609 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31610 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31611 (*float<SWI48x><X87MODEF>2_i387): Remove.
31612 (all float _with_temp splitters): Remove.
31613 (*float<SWI48x><MODEF>2_i387): New pattern.
31614 (*float<SWI48><MODEF>2_sse): New pattern.
31615 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31616 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31617
31618 2014-03-14 Jakub Jelinek <jakub@redhat.com>
31619 Marek Polacek <polacek@redhat.com>
31620
31621 PR middle-end/60484
31622 * common.opt (dump_base_name_prefixed): New Variable.
31623 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31624 if x_dump_base_name_prefixed is already set, set it at the end.
31625
31626 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
31627
31628 PR rtl-optimization/60508
31629 * lra-constraints.c (get_reload_reg): Add new parameter
31630 in_subreg_p.
31631 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31632 Pass the new parameter values.
31633
31634 2014-03-14 Richard Biener <rguenther@suse.de>
31635
31636 * common.opt: Revert unintented changes from r205065.
31637 * opts.c: Likewise.
31638
31639 2014-03-14 Richard Biener <rguenther@suse.de>
31640
31641 PR middle-end/60518
31642 * cfghooks.c (split_block): Properly adjust all loops the
31643 block was a latch of.
31644
31645 2014-03-14 Martin Jambor <mjambor@suse.cz>
31646
31647 PR lto/60461
31648 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31649 and simplify it.
31650
31651 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
31652
31653 PR target/59396
31654 * config/avr/avr.c (avr_set_current_function): Pass function name
31655 through default_strip_name_encoding before sanity checking instead
31656 of skipping the first char of the assembler name.
31657
31658 2014-03-13 Richard Henderson <rth@redhat.com>
31659
31660 PR debug/60438
31661 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31662 (ix86_force_to_memory, ix86_free_from_memory): Remove.
31663 * config/i386/i386-protos.h: Likewise.
31664 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31665 in the expander instead of a splitter.
31666 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31667 any possibility of requiring a memory.
31668 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31669 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31670 (fp branch splitters): Update for ix86_split_fp_branch.
31671 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31672 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31673 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31674 (*fop_<MODEF>_2_i387): Remove f/r alternative.
31675 (*fop_<MODEF>_3_i387): Likewise.
31676 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31677 (splitters for the fop_* register patterns): Remove.
31678 (fscalexf4_i387): Rename from *fscalexf4_i387.
31679 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31680
31681 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31682
31683 PR tree-optimization/59779
31684 * tree-dfa.c (get_ref_base_and_extent): Use double_int
31685 type for bitsize and maxsize instead of HOST_WIDE_INT.
31686
31687 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
31688
31689 PR rtl-optimization/57320
31690 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31691 the CFG after thread_prologue_and_epilogue_insns.
31692
31693 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
31694
31695 PR rtl-optimization/57189
31696 * lra-constraints.c (process_alt_operands): Disfavor spilling
31697 vector pseudos.
31698
31699 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
31700
31701 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31702
31703 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31704
31705 PR tree-optimization/59025
31706 PR middle-end/60418
31707 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31708 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31709
31710 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
31711
31712 PR target/60486
31713 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31714 calls of avr_out_plus_1.
31715
31716 2014-03-13 Bin Cheng <bin.cheng@arm.com>
31717
31718 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31719 BB's single pred and update the father loop's latch info later.
31720
31721 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
31722
31723 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31724 (VEC_M): Likewise.
31725 (VEC_N): Likewise.
31726 (VEC_R): Likewise.
31727 (VEC_base): Likewise.
31728 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31729 registers, we need to swap double words in little endian mode.
31730
31731 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31732 to be a container mode for 128-bit integer operations added in ISA
31733 2.07. Unlike TImode and PTImode, the preferred register set is
31734 the Altivec/VMX registers for the 128-bit operations.
31735
31736 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31737 declarations.
31738 (rs6000_split_128bit_ok_p): Likewise.
31739
31740 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31741 macros for creating ISA 2.07 normal and overloaded builtin
31742 functions with 3 arguments.
31743 (BU_P8V_OVERLOAD_3): Likewise.
31744 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31745 for use as overloaded functions.
31746 (VPERM_1TI_UNS): Likewise.
31747 (VSEL_1TI): Likewise.
31748 (VSEL_1TI_UNS): Likewise.
31749 (ST_INTERNAL_1ti): Likewise.
31750 (LD_INTERNAL_1ti): Likewise.
31751 (XXSEL_1TI): Likewise.
31752 (XXSEL_1TI_UNS): Likewise.
31753 (VPERM_1TI): Likewise.
31754 (VPERM_1TI_UNS): Likewise.
31755 (XXPERMDI_1TI): Likewise.
31756 (SET_1TI): Likewise.
31757 (LXVD2X_V1TI): Likewise.
31758 (STXVD2X_V1TI): Likewise.
31759 (VEC_INIT_V1TI): Likewise.
31760 (VEC_SET_V1TI): Likewise.
31761 (VEC_EXT_V1TI): Likewise.
31762 (EQV_V1TI): Likewise.
31763 (NAND_V1TI): Likewise.
31764 (ORC_V1TI): Likewise.
31765 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31766 added in ISA 2.07. Add both normal 'altivec' builtins, and the
31767 overloaded builtin.
31768 (VADDUQM): Likewise.
31769 (VSUBCUQ): Likewise.
31770 (VADDEUQM): Likewise.
31771 (VADDECUQ): Likewise.
31772 (VSUBEUQM): Likewise.
31773 (VSUBECUQ): Likewise.
31774
31775 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31776 __int128_t and __uint128_t types.
31777 (__uint128_type): Likewise.
31778 (altivec_categorize_keyword): Add support for vector __int128_t,
31779 vector __uint128_t, vector __int128, and vector unsigned __int128
31780 as a container type for TImode operations that need to be done in
31781 VSX/Altivec registers.
31782 (rs6000_macro_to_expand): Likewise.
31783 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31784 to support 128-bit integer instructions vaddcuq, vadduqm,
31785 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31786 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31787
31788 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31789 for V1TImode, and set up preferences to use VSX/Altivec registers.
31790 Setup VSX reload handlers.
31791 (rs6000_debug_reg_global): Likewise.
31792 (rs6000_init_hard_regno_mode_ok): Likewise.
31793 (rs6000_preferred_simd_mode): Likewise.
31794 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31795 (easy_altivec_constant): Likewise.
31796 (output_vec_const_move): Likewise.
31797 (rs6000_expand_vector_set): Convert V1TImode set and extract to
31798 simple move.
31799 (rs6000_expand_vector_extract): Likewise.
31800 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31801 addressing.
31802 (rs6000_const_vec): Add support for V1TImode.
31803 (rs6000_emit_le_vsx_load): Swap double words when loading or
31804 storing TImode/V1TImode.
31805 (rs6000_emit_le_vsx_store): Likewise.
31806 (rs6000_emit_le_vsx_move): Likewise.
31807 (rs6000_emit_move): Add support for V1TImode.
31808 (altivec_expand_ld_builtin): Likewise.
31809 (altivec_expand_st_builtin): Likewise.
31810 (altivec_expand_vec_init_builtin): Likewise.
31811 (altivec_expand_builtin): Likewise.
31812 (rs6000_init_builtins): Add support for V1TImode type. Add
31813 support for ISA 2.07 128-bit integer builtins. Define type names
31814 for the VSX/Altivec vector types.
31815 (altivec_init_builtins): Add support for overloaded vector
31816 functions with V1TImode type.
31817 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31818 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31819 external function.
31820 (rs6000_split_128bit_ok_p): Likewise.
31821 (rs6000_handle_altivec_attribute): Create V1TImode from vector
31822 __int128_t and vector __uint128_t.
31823
31824 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31825 and mode attributes.
31826 (VSX_M): Likewise.
31827 (VSX_M2): Likewise.
31828 (VSm): Likewise.
31829 (VSs): Likewise.
31830 (VSr): Likewise.
31831 (VSv): Likewise.
31832 (VS_scalar): Likewise.
31833 (VS_double): Likewise.
31834 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31835
31836 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31837 we support the ISA 2.07 128-bit integer arithmetic instructions.
31838 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31839 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31840 and TImode types for use with the builtin functions.
31841 (V1TI_type_node): Likewise.
31842 (unsigned_V1TI_type_node): Likewise.
31843 (intTI_type_internal_node): Likewise.
31844 (uintTI_type_internal_node): Likewise.
31845
31846 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31847 128-bit builtin functions.
31848 (UNSPEC_VADDEUQM): Likewise.
31849 (UNSPEC_VADDECUQ): Likewise.
31850 (UNSPEC_VSUBCUQ): Likewise.
31851 (UNSPEC_VSUBEUQM): Likewise.
31852 (UNSPEC_VSUBECUQ): Likewise.
31853 (VM): Add V1TImode to vector mode iterators.
31854 (VM2): Likewise.
31855 (VI_unit): Likewise.
31856 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31857 (altivec_vaddcuq): Likewise.
31858 (altivec_vsubuqm): Likewise.
31859 (altivec_vsubcuq): Likewise.
31860 (altivec_vaddeuqm): Likewise.
31861 (altivec_vaddecuq): Likewise.
31862 (altivec_vsubeuqm): Likewise.
31863 (altivec_vsubecuq): Likewise.
31864
31865 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31866 mode iterators.
31867 (BOOL_128): Likewise.
31868 (BOOL_REGS_OUTPUT): Likewise.
31869 (BOOL_REGS_OP1): Likewise.
31870 (BOOL_REGS_OP2): Likewise.
31871 (BOOL_REGS_UNARY): Likewise.
31872 (BOOL_REGS_AND_CR0): Likewise.
31873
31874 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31875 128-bit integer builtin support.
31876 (vec_vadduqm): Likewise.
31877 (vec_vaddecuq): Likewise.
31878 (vec_vaddeuqm): Likewise.
31879 (vec_vsubecuq): Likewise.
31880 (vec_vsubeuqm): Likewise.
31881 (vec_vsubcuq): Likewise.
31882 (vec_vsubuqm): Likewise.
31883
31884 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31885 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31886 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31887 128-bit integer add/subtract to ISA 2.07.
31888
31889 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
31890
31891 * config/arc/arc.c (arc_predicate_delay_insns):
31892 Fix third argument passed to conditionalize_nonjump.
31893
31894 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
31895
31896 * config/aarch64/aarch64-builtins.c
31897 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31898 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31899 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31900 instead of __builtin_lfloor.
31901 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31902
31903 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31904
31905 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31906 (tree_ssa_ifcombine_bb_1): New function.
31907 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
31908 is an empty forwarder block to then_bb or vice versa and then_bb
31909 and else_bb are effectively swapped.
31910
31911 2014-03-12 Christian Bruel <christian.bruel@st.com>
31912
31913 PR target/60264
31914 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31915 REG_CFA_DEF_CFA note.
31916 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31917 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31918
31919 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31920
31921 PR tree-optimization/60454
31922 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31923
31924 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31925
31926 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31927 Do not define target_cpu_default2 to generic.
31928 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31929 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31930 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31931
31932 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31933 Marc Glisse <marc.glisse@inria.fr>
31934
31935 PR tree-optimization/60502
31936 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31937 instead of build_low_bits_mask.
31938
31939 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31940
31941 PR middle-end/60482
31942 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31943 if there are multiple uses, but op doesn't live on E edge.
31944 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31945 clobber stmts before __builtin_unreachable.
31946
31947 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31948
31949 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31950 hard_frame_pointer_rtx.
31951 * cse.c (cse_insn): Remove volatile check.
31952 * cselib.c (cselib_process_insn): Likewise.
31953 * dse.c (scan_insn): Likewise.
31954
31955 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31956
31957 * config/arc/arc.c (conditionalize_nonjump): New function,
31958 broken out of ...
31959 (arc_ifcvt): ... this.
31960 (arc_predicate_delay_insns): Use it.
31961
31962 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31963
31964 * config/arc/predicates.md (extend_operand): During/after reload,
31965 allow const_int_operand.
31966 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31967 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31968 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31969 to "i".
31970 (umulsi3_highpart_i): Likewise.
31971
31972 2014-03-11 Richard Biener <rguenther@suse.de>
31973
31974 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31975 Add asserts to guard possible wrong-code bugs.
31976
31977 2014-03-11 Richard Biener <rguenther@suse.de>
31978
31979 PR tree-optimization/60429
31980 PR tree-optimization/60485
31981 * tree-ssa-structalias.c (set_union_with_increment): Properly
31982 take into account all fields that overlap the shifted vars.
31983 (do_sd_constraint): Likewise.
31984 (do_ds_constraint): Likewise.
31985 (get_constraint_for_ptr_offset): Likewise.
31986
31987 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31988
31989 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31990 (nios2_compute_frame_layout):
31991 Add calculation of cfun->machine->fp_save_offset.
31992 (nios2_expand_prologue): Correct setting of frame pointer register
31993 in prologue.
31994 (nios2_expand_epilogue): Update recovery of stack pointer from
31995 frame pointer accordingly.
31996 (nios2_initial_elimination_offset): Update calculation of offset
31997 for eliminating to HARD_FRAME_POINTER_REGNUM.
31998
31999 2014-03-10 Jakub Jelinek <jakub@redhat.com>
32000
32001 PR ipa/60457
32002 * ipa.c (symtab_remove_unreachable_nodes): Don't call
32003 cgraph_get_create_node on VAR_DECLs.
32004
32005 2014-03-10 Richard Biener <rguenther@suse.de>
32006
32007 PR middle-end/60474
32008 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
32009
32010 2014-03-08 Douglas B Rupp <rupp@gnat.com>
32011
32012 * config/vms/vms.opt (vms_float_format): New variable.
32013
32014 2014-03-08 Tobias Burnus <burnus@net-b.de>
32015
32016 * doc/invoke.texi (-fcilkplus): Update implementation status.
32017
32018 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
32019 Richard Biener <rguenther@suse.de>
32020
32021 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
32022 consistently accross all TUs.
32023 (run_gcc): Enable -fshort-double automatically at link at link-time
32024 and disallow override.
32025
32026 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
32027
32028 PR target/58271
32029 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
32030 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
32031 if they can't be used.
32032
32033 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32034
32035 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
32036 for Solaris 11/x86 ld.
32037 * configure: Regenerate.
32038
32039 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32040
32041 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
32042 (LIB_TLS_SPEC): Save as ld_tls_libs.
32043 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
32044 (HAVE_AS_IX86_TLSLDM): New test.
32045 * configure, config.in: Regenerate.
32046 * config/i386/i386.c (legitimize_tls_address): Fall back to
32047 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
32048 cannot support TLS_MODEL_LOCAL_DYNAMIC.
32049 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
32050 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
32051
32052 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
32053
32054 * common.opt (fira-loop-pressure): Mark as optimization.
32055
32056 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
32057
32058 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
32059 an OpenMP mappable type.
32060
32061 2014-03-06 Matthias Klose <doko@ubuntu.com>
32062
32063 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
32064 MULTILIB_OSDIRNAMES is not defined.
32065
32066 2014-03-06 Jakub Jelinek <jakub@redhat.com>
32067 Meador Inge <meadori@codesourcery.com>
32068
32069 PR target/58595
32070 * config/arm/arm.c (arm_tls_symbol_p): Remove.
32071 (arm_legitimize_address): Call legitimize_tls_address for any
32072 arm_tls_referenced_p expression, handle constant addend. Call it
32073 before testing for !TARGET_ARM.
32074 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
32075
32076 2014-03-06 Richard Biener <rguenther@suse.de>
32077
32078 PR middle-end/60445
32079 PR lto/60424
32080 PR lto/60427
32081 Revert
32082 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
32083
32084 * tree-streamer.c (record_common_node): Assert we don't record
32085 nodes with type double.
32086 (preload_common_node): Skip type double, complex double and double
32087 pointer since it is now frontend dependent due to fshort-double option.
32088
32089 2014-03-06 Richard Biener <rguenther@suse.de>
32090
32091 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
32092 or -fno-lto is specified and the linker has full plugin support.
32093 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
32094 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
32095 * lto-wrapper.c (merge_and_complain): Merge compile-time
32096 optimization levels.
32097 (run_gcc): And pass it through to the link options.
32098
32099 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
32100
32101 PR debug/60381
32102 Revert:
32103 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
32104 PR debug/59992
32105 * cselib.c (remove_useless_values): Skip to avoid quadratic
32106 behavior if the condition moved from...
32107 (cselib_process_insn): ... here holds.
32108
32109 2014-03-05 Jakub Jelinek <jakub@redhat.com>
32110
32111 PR plugins/59335
32112 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
32113 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
32114
32115 PR plugins/59335
32116 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
32117 (TM_H): Add x86-tune.def.
32118
32119 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32120
32121 * config/aarch64/aarch64.c (generic_tunings):
32122 Use cortexa57_extra_costs.
32123
32124 2014-03-05 Jakub Jelinek <jakub@redhat.com>
32125
32126 PR lto/60404
32127 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
32128 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
32129 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
32130 cost for in_lto_p.
32131
32132 2014-03-04 Heiher <r@hev.cc>
32133
32134 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
32135 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
32136
32137 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
32138
32139 * config/i386/predicates.md (const2356_operand): Change to ...
32140 (const2367_operand): ... this.
32141 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
32142 const2367_operand.
32143 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32144 (*avx512pf_scatterpf<mode>sf): Ditto.
32145 (avx512pf_scatterpf<mode>df): Ditto.
32146 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32147 (*avx512pf_scatterpf<mode>df): Ditto.
32148 * config/i386/i386.c (ix86_expand_builtin): Update
32149 incorrect hint operand error message.
32150
32151 2014-03-04 Richard Biener <rguenther@suse.de>
32152
32153 * lto-section-in.c (lto_get_section_data): Fix const cast.
32154
32155 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
32156
32157 * tree-streamer.c (record_common_node): Assert we don't record
32158 nodes with type double.
32159 (preload_common_node): Skip type double, complex double and double
32160 pointer since it is now frontend dependent due to fshort-double option.
32161
32162 2014-03-04 Richard Biener <rguenther@suse.de>
32163
32164 PR lto/60405
32165 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
32166 (lto_input_toplevel_asms): Likewise.
32167 * lto-section-in.c (lto_get_section_data): Instead do it here
32168 for every section.
32169
32170 2014-03-04 Richard Biener <rguenther@suse.de>
32171
32172 PR tree-optimization/60382
32173 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
32174 dead PHIs a reduction.
32175
32176 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
32177
32178 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
32179 hint value.
32180 (_mm_prefetch): Move out of GCC target("sse") pragma.
32181 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
32182 GCC target("prfchw") pragma.
32183 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
32184 for locality <= 2.
32185 * config/i386/i386.c (ix86_option_override_internal): Enable
32186 -mprfchw with -mprefetchwt1.
32187
32188 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
32189
32190 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
32191 Mark as varying.
32192
32193 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
32194
32195 * opts.h (CL_PCH_IGNORE): Define.
32196 * targhooks.c (option_affects_pch_p):
32197 Return false for options that have CL_PCH_IGNORE set.
32198 * opt-functions.awk: Process PchIgnore.
32199 * doc/options.texi: Document PchIgnore.
32200
32201 * config/arc/arc.opt (misize): Add PchIgnore property.
32202
32203 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32204
32205 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
32206 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
32207 constraint on constants to permit them being loaded into
32208 GENERAL_REGS or BASE_REGS.
32209
32210 2014-03-03 Nick Clifton <nickc@redhat.com>
32211
32212 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
32213 anti-cacnonical alternatives.
32214 (negandhi3_real): New pattern.
32215 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
32216
32217 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32218
32219 * config/avr/avr-mcus.def: Remove atxmega16x1.
32220 * config/avr/avr-tables.opt: Regenerate.
32221 * config/avr/t-multilib: Regenerate.
32222 * doc/avr-mmcu.texi: Regenerate.
32223
32224 2014-03-03 Tobias Grosser <tobias@grosser.es>
32225 Mircea Namolaru <mircea.namolaru@inria.fr>
32226
32227 PR tree-optimization/58028
32228 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
32229 scalar dimensions.
32230
32231 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32232
32233 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
32234 not handled by recognizers.
32235
32236 2014-03-03 Jakub Jelinek <jakub@redhat.com>
32237
32238 PR middle-end/60175
32239 * function.c (expand_function_end): Don't emit
32240 clobber_return_register sequence if clobber_after is a BARRIER.
32241 * cfgexpand.c (construct_exit_block): Append instructions before
32242 return_label to prev_bb.
32243
32244 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32245
32246 * config/rs6000/constraints.md: Document reserved use of "wc".
32247
32248 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
32249
32250 PR ipa/60150
32251 * ipa.c (function_and_variable_visibility): When dissolving comdat
32252 group, also set all symbols to local.
32253
32254 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
32255
32256 PR ipa/60306
32257
32258 Revert:
32259 2013-12-14 Jan Hubicka <jh@suse.cz>
32260 PR middle-end/58477
32261 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
32262
32263 2014-03-02 Jon Beniston <jon@beniston.com>
32264
32265 PR bootstrap/48230
32266 PR bootstrap/50927
32267 PR bootstrap/52466
32268 PR target/46898
32269 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
32270 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
32271 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
32272 (simple_return, *simple_return): New patterns
32273 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
32274 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
32275
32276 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
32277
32278 * dwarf2out.c (gen_subprogram_die): Tidy.
32279
32280 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
32281
32282 PR target/60071
32283 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
32284 (*mov_t_msb_neg_negc): ... this new insn.
32285
32286 2014-02-28 Jason Merrill <jason@redhat.com>
32287
32288 PR c++/58678
32289 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
32290 function.
32291
32292 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
32293
32294 PR c++/60314
32295 * dwarf2out.c (decltype_auto_die): New static.
32296 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
32297 (gen_type_die_with_usage): Handle 'decltype(auto)'.
32298 (is_cxx_auto): Likewise.
32299
32300 2014-02-28 Ian Bolton <ian.bolton@arm.com>
32301
32302 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
32303 we are not using general regs only.
32304
32305 2014-02-28 Richard Biener <rguenther@suse.de>
32306
32307 PR target/60280
32308 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
32309 previous fix and only allow to remove trivial pre-headers
32310 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
32311 (remove_forwarder_block): Properly update the latch of a loop.
32312
32313 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
32314
32315 PR debug/59992
32316 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
32317 (cselib_preserved_hash_table): New.
32318 (preserve_constants_and_equivs): Move preserved vals to it.
32319 (cselib_find_slot): Look it up first.
32320 (cselib_init): Initialize it.
32321 (cselib_finish): Release it.
32322 (dump_cselib_table): Dump it.
32323
32324 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
32325
32326 PR debug/59992
32327 * cselib.c (remove_useless_values): Skip to avoid quadratic
32328 behavior if the condition moved from...
32329 (cselib_process_insn): ... here holds.
32330
32331 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
32332
32333 PR debug/57232
32334 * var-tracking.c (vt_initialize): Apply the same condition to
32335 preserve the CFA base value.
32336
32337 2014-02-28 Joey Ye <joey.ye@arm.com>
32338
32339 PR target/PR60169
32340 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
32341 if reload in progress or completed.
32342
32343 2014-02-28 Tobias Burnus <burnus@net-b.de>
32344
32345 PR middle-end/60147
32346 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
32347 NAMELIST_DECL.
32348
32349 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
32350
32351 * doc/tm.texi.in (Condition Code Status): Update documention for
32352 relative locations of cc0-setter and cc0-user.
32353
32354 2014-02-27 Jeff Law <law@redhat.com>
32355
32356 PR rtl-optimization/52714
32357 * combine.c (try_combine): When splitting an unrecognized PARALLEL
32358 into two independent simple sets, if I3 is a jump, ensure the
32359 pattern we place into I3 is a (set (pc) ...).
32360
32361 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
32362 Jeff Law <law@redhat.com>
32363
32364 PR rtl-optimization/49847
32365 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
32366 are in different blocks.
32367 * doc/tm.texi (Condition Code Status): Update documention for
32368 relative locations of cc0-setter and cc0-user.
32369
32370 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
32371
32372 PR target/59222
32373 * lra.c (lra_emit_add): Check SUBREG too.
32374
32375 2014-02-27 Andreas Schwab <schwab@suse.de>
32376
32377 * config/m68k/m68k.c (m68k_option_override): Disable
32378 -flive-range-shrinkage for classic m68k.
32379 (m68k_override_options_after_change): Likewise.
32380
32381 2014-02-27 Marek Polacek <polacek@redhat.com>
32382
32383 PR middle-end/59223
32384 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
32385 -Wmaybe-uninitialized.
32386
32387 2014-02-27 Alan Modra <amodra@gmail.com>
32388
32389 PR target/57936
32390 * reload1.c (emit_input_reload_insns): When reload_override_in,
32391 set old to rl->in_reg when rl->in_reg is a subreg.
32392
32393 2014-02-26 Richard Biener <rguenther@suse.de>
32394
32395 PR bootstrap/60343
32396 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
32397
32398 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
32399
32400 * common/config/i386/predicates.md (const1256_operand): Remove.
32401 (const2356_operand): New.
32402 (const_1_to_2_operand): Remove.
32403 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32404 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32405 (*avx512pf_gatherpf<mode>sf): Ditto.
32406 (avx512pf_gatherpf<mode>df): Ditto.
32407 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32408 (*avx512pf_gatherpf<mode>df): Ditto.
32409 (avx512pf_scatterpf<mode>sf): Ditto.
32410 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32411 (*avx512pf_scatterpf<mode>sf): Ditto.
32412 (avx512pf_scatterpf<mode>df): Ditto.
32413 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32414 (*avx512pf_scatterpf<mode>df): Ditto.
32415 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
32416
32417 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
32418
32419 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
32420 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
32421 (_mm512_mask_testn_epi64_mask): Move to ...
32422 * config/i386/avx512cdintrin.h: Here.
32423 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
32424 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
32425 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
32426 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
32427 TARGET_AVX512F from TARGET_AVX512CD.
32428
32429 2014-02-26 Richard Biener <rguenther@suse.de>
32430
32431 PR ipa/60327
32432 * ipa.c (walk_polymorphic_call_targets): Properly guard
32433 call to inline_update_overall_summary.
32434
32435 2014-02-26 Bin Cheng <bin.cheng@arm.com>
32436
32437 PR target/60280
32438 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
32439 and latches only if requested. Fix latch if it is removed.
32440 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
32441 LOOPS_HAVE_PREHEADERS.
32442
32443 2014-02-25 Andrew Pinski <apinski@cavium.com>
32444
32445 * builtins.c (expand_builtin_thread_pointer): Create a new target
32446 when the target is NULL.
32447
32448 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
32449
32450 PR rtl-optimization/60317
32451 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32452 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32453 * lra-assigns.c: Include params.h.
32454 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
32455 other reload pseudos considerations.
32456
32457 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32458
32459 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
32460 to use canonical form for nor<mode>3.
32461
32462 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32463
32464 PR target/55426
32465 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
32466 conversions.
32467
32468 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
32469
32470 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
32471 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
32472 (ix86_handle_option): Handle OPT_mprefetchwt1.
32473 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
32474 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
32475 PREFETCHWT1 CPUID.
32476 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32477 OPTION_MASK_ISA_PREFETCHWT1.
32478 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
32479 (PTA_PREFETCHWT1): New.
32480 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
32481 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
32482 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
32483 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
32484 (*prefetch_avx512pf_<mode>_: Change into ...
32485 (*prefetch_prefetchwt1_<mode>: This.
32486 * config/i386/i386.opt (mprefetchwt1): New.
32487 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
32488 (_mm_prefetch): Handle intent to write.
32489 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
32490
32491 2014-02-25 Richard Biener <rguenther@suse.de>
32492
32493 PR middle-end/60291
32494 * emit-rtl.c (mem_attrs_htab): Remove.
32495 (mem_attrs_htab_hash): Likewise.
32496 (mem_attrs_htab_eq): Likewise.
32497 (set_mem_attrs): Always allocate new mem-attrs when something changed.
32498 (init_emit_once): Do not allocate mem_attrs_htab.
32499
32500 2014-02-25 Richard Biener <rguenther@suse.de>
32501
32502 PR lto/60319
32503 * lto-opts.c (lto_write_options): Output non-explicit conservative
32504 -fwrapv, -fno-trapv and -fno-strict-overflow.
32505 * lto-wrapper.c (merge_and_complain): Handle merging those options.
32506 (run_gcc): And pass them through.
32507
32508 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
32509
32510 * sel-sched.c (calculate_new_fences): New parameter ptime.
32511 Calculate it as a maximum over all fence cycles.
32512 (sel_sched_region_2): Adjust the call to calculate_new_fences.
32513 Print the final schedule timing when sched_verbose.
32514
32515 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
32516
32517 PR rtl-optimization/60292
32518 * sel-sched.c (fill_vec_av_set): Do not reset target availability
32519 bit fot the fence instruction.
32520
32521 2014-02-24 Alangi Derick <alangiderick@gmail.com>
32522
32523 * calls.h: Fix typo in comment.
32524
32525 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
32526
32527 * config/pa/pa.c (pa_output_move_double): Don't valididate when
32528 adjusting offsetable addresses.
32529
32530 2014-02-24 Guozhi Wei <carrot@google.com>
32531
32532 * sparseset.h (sparseset_pop): Fix the wrong index.
32533
32534 2014-02-24 Walter Lee <walt@tilera.com>
32535
32536 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
32537 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
32538 triplet.
32539 * common/config/tilegx/tilegx-common.c
32540 (TARGET_DEFAULT_TARGET_FLAGS): Define.
32541 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
32542 (LINK_SPEC): Ditto.
32543 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
32544 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
32545 (tilegx_gimplify_va_arg_expr): Handle big endian.
32546 (tilegx_expand_unaligned_load): Ditto.
32547 (tilegx_expand_unaligned_store): Ditto.
32548 (TARGET_RETURN_IN_MSB): New.
32549 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
32550 (TARGET_ENDIAN_DEFAULT): New.
32551 (TARGET_BIG_ENDIAN): Handle big endian.
32552 (BYTES_BIG_ENDIAN): Ditto.
32553 (WORDS_BIG_ENDIAN): Ditto.
32554 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
32555 (ENDIAN_SPEC): New.
32556 (EXTRA_SPECS): New.
32557 * config/tilegx/tilegx.md (extv): Handle big endian.
32558 (extzv): Ditto.
32559 (insn_st<n>): Ditto.
32560 (insn_st<n>_add<bitsuffix>): Ditto.
32561 (insn_stnt<n>): Ditto.
32562 (insn_stnt<n>_add<bitsuffix>):Ditto.
32563 (vec_interleave_highv8qi): Handle big endian.
32564 (vec_interleave_highv8qi_be): New.
32565 (vec_interleave_highv8qi_le): New.
32566 (insn_v1int_h): Handle big endian.
32567 (vec_interleave_lowv8qi): Handle big endian.
32568 (vec_interleave_lowv8qi_be): New.
32569 (vec_interleave_lowv8qi_le): New.
32570 (insn_v1int_l): Handle big endian.
32571 (vec_interleave_highv4hi): Handle big endian.
32572 (vec_interleave_highv4hi_be): New.
32573 (vec_interleave_highv4hi_le): New.
32574 (insn_v2int_h): Handle big endian.
32575 (vec_interleave_lowv4hi): Handle big endian.
32576 (vec_interleave_lowv4hi_be): New.
32577 (vec_interleave_lowv4hi_le): New.
32578 (insn_v2int_l): Handle big endian.
32579 (vec_interleave_highv2si): Handle big endian.
32580 (vec_interleave_highv2si_be): New.
32581 (vec_interleave_highv2si_le): New.
32582 (insn_v4int_h): Handle big endian.
32583 (vec_interleave_lowv2si): Handle big endian.
32584 (vec_interleave_lowv2si_be): New.
32585 (vec_interleave_lowv2si_le): New.
32586 (insn_v4int_l): Handle big endian.
32587 * config/tilegx/tilegx.opt (mbig-endian): New option.
32588 (mlittle-endian): New option.
32589 * doc/install.texi: Document tilegxbe-linux.
32590 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32591
32592 2014-02-24 Martin Jambor <mjambor@suse.cz>
32593
32594 PR ipa/60266
32595 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32596 there are no parameter descriptors.
32597
32598 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
32599
32600 PR rtl-optimization/60268
32601 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32602 initialization to ...
32603 (sched_rgn_init): ... here.
32604 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32605
32606 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32607
32608 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32609 names.
32610
32611 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32612
32613 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32614 definition.
32615
32616 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32617
32618 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32619 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32620
32621 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32622
32623 * config/microblaze/predicates.md: Add cmp_op predicate.
32624 * config/microblaze/microblaze.md: Add branch_compare instruction
32625 which uses cmp_op predicate and emits cmp insn before branch.
32626 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32627 to microblaze_expand_conditional_branch and consolidate logic.
32628 (microblaze_expand_conditional_branch): emit branch_compare
32629 insn instead of handling cmp op separate from branch insn.
32630
32631 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32632
32633 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32634 to permit subregs.
32635
32636 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32637
32638 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32639 define_insn with define_expand and new define_insn
32640 *altivec_lve<VI_char>x_internal.
32641 (altivec_stve<VI_char>x): Replace define_insn with define_expand
32642 and new define_insn *altivec_stve<VI_char>x_internal.
32643 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32644 prototype.
32645 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32646 lve*x built-ins.
32647 (altivec_expand_stvex_be): New function.
32648
32649 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
32650
32651 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32652 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32653 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32654 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32655
32656 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
32657
32658 PR target/60298
32659 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32660 instead of emit_move_insn.
32661
32662 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32663
32664 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32665 vspltw with vsldoi.
32666 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32667 gen_altivec_vsumsws.
32668
32669 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32670
32671 * config/rs6000/altivec.md (altivec_lvxl): Rename as
32672 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32673 (altivec_lvxl_<mode>): New define_expand incorporating
32674 -maltivec=be semantics where needed.
32675 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32676 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32677 semantics where needed.
32678 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32679 (altivec_stvx_<mode>): New define_expand incorporating
32680 -maltivec=be semantics where needed.
32681 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32682 VM2 iterator instead of V4SI.
32683 (altivec_stvxl_<mode>): New define_expand incorporating
32684 -maltivec=be semantics where needed.
32685 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32686 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32687 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32688 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32689 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32690 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32691 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32692 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32693 ALTIVEC_BUILTIN_STVXL.
32694 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32695 (altivec_expand_stvx_be): Likewise.
32696 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32697 (altivec_expand_lvx_be): Likewise.
32698 (altivec_expand_stvx_be): Likewise.
32699 (altivec_expand_builtin): Add cases for
32700 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32701 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32702 (altivec_init_builtins): Add definitions for
32703 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32704 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32705
32706 2014-02-21 Catherine Moore <clm@codesourcery.com>
32707
32708 * doc/invoke.texi (mvirt, mno-virt): Document.
32709 * config/mips/mips.opt (mvirt): New option.
32710 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32711
32712 2014-02-21 Richard Biener <rguenther@suse.de>
32713
32714 PR tree-optimization/60276
32715 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32716 (STMT_VINFO_MIN_NEG_DIST): New macro.
32717 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32718 STMT_VINFO_MIN_NEG_DIST.
32719 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32720 made for negative dependence distances still hold.
32721
32722 2014-02-21 Richard Biener <rguenther@suse.de>
32723
32724 PR middle-end/60291
32725 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32726 DECL_INITIAL for globals not in the current function context.
32727
32728 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32729
32730 PR tree-optimization/56490
32731 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32732 * tree-ssa-uninit.c: Include params.h.
32733 (compute_control_dep_chain): Add num_calls argument, return false
32734 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32735 num_calls to recursive call.
32736 (find_predicates): Change dep_chain into normal array,
32737 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32738 variable and adjust compute_control_dep_chain caller.
32739 (find_def_preds): Likewise.
32740
32741 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
32742
32743 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32744 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32745
32746 2014-02-21 Nick Clifton <nickc@redhat.com>
32747
32748 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32749 (pushhi1): Likewise.
32750 (popqi1): Add mode to pre_dec.
32751 (pophi1): Likewise.
32752
32753 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32754
32755 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32756 mode for mask of V8SFmode permutation.
32757
32758 2014-02-20 Richard Henderson <rth@redhat.com>
32759
32760 PR c++/60272
32761 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32762 a new pseudo for OLDVAL.
32763
32764 2014-02-20 Jakub Jelinek <jakub@redhat.com>
32765
32766 PR target/57896
32767 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32768 gen_reg_rtx if d->testing_p.
32769 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32770 if d->testing_p and we will certainly return true.
32771 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
32772 if d->testing_p.
32773
32774 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
32775
32776 * emit-rtl.c (gen_reg_rtx): Assert that
32777 crtl->emit.regno_pointer_align_length is non-zero.
32778
32779 2014-02-20 Richard Henderson <rth@redhat.com>
32780
32781 PR c++/60272
32782 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32783 on failure the store back into EXPECT.
32784
32785 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
32786 Sandra Loosemore <sandra@codesourcery.com>
32787
32788 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32789 * config/nios2/nios2.c (nios2_function_profiler): Add
32790 -fPIC (flag_pic == 2) support.
32791 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32792 (nios2_large_offset_p): New function.
32793 (nios2_unspec_reloc_p): Move up position, update to use
32794 nios2_large_offset_p.
32795 (nios2_unspec_address): Remove function.
32796 (nios2_unspec_offset): New function.
32797 (nios2_large_got_address): New function.
32798 (nios2_got_address): Add large offset support.
32799 (nios2_legitimize_tls_address): Update usage of removed and new
32800 functions.
32801 (nios2_symbol_binds_local_p): New function.
32802 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32803 (nios2_legitimize_address): Update to use nios2_large_offset_p.
32804 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32805 (nios2_print_operand): Merge H/L processing, add hiadj/lo
32806 processing for (const (unspec ...)).
32807 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32808
32809 2014-02-20 Richard Biener <rguenther@suse.de>
32810
32811 * tree-cfg.c (replace_uses_by): Mark altered BBs before
32812 doing the substitution.
32813 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32814
32815 2014-02-20 Martin Jambor <mjambor@suse.cz>
32816
32817 PR ipa/55260
32818 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32819 info when checking whether lattices are bottom.
32820
32821 2014-02-20 Richard Biener <rguenther@suse.de>
32822
32823 PR middle-end/60221
32824 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32825 regions at -O0.
32826
32827 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
32828
32829 PR ipa/58555
32830 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32831 parameter specifying the scaling.
32832 (inline_call): Update.
32833 (want_inline_recursively): Guard division by zero.
32834 (recursive_inlining): Update.
32835 * ipa-inline.h (clone_inlined_nodes): Update.
32836
32837 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32838
32839 PR target/60204
32840 * config/i386/i386.c (classify_argument): Pass structures of size
32841 64 bytes or less in register.
32842
32843 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32844 Kirill Yukhin <kirill.yukhin@intel.com>
32845
32846 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32847 (_mm_rcp28_round_ss): Ditto.
32848 (_mm_rsqrt28_round_sd): Ditto.
32849 (_mm_rsqrt28_round_ss): Ditto.
32850 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32851 (_mm_rcp14_round_ss): Ditto.
32852 (_mm_rsqrt14_round_sd): Ditto.
32853 (_mm_rsqrt14_round_ss): Ditto.
32854 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32855 the first input operand, get rid of match_dup.
32856 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32857 attribute to sse.
32858 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32859 Ditto.
32860 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32861 operand as the first input operand, set type attribute.
32862 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32863 Set type attribute.
32864 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32865 operand as the first input operand, set type attribute.
32866
32867 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32868
32869 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32870 bit of zero.
32871
32872 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
32873
32874 PR target/60207
32875 * config/i386/i386.c (construct_container): Remove TFmode check
32876 for X86_64_INTEGER_CLASS.
32877
32878 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
32879
32880 PR target/59794
32881 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32882 only when -Wpsabi is enabled.
32883
32884 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
32885
32886 PR target/59799
32887 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32888 passing arrays in registers are the same as for structs, so remove the
32889 special case for them.
32890
32891 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
32892
32893 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32894 destination type, extract only the valid bits if the source type is not
32895 integral and has a different mode.
32896
32897 2014-02-19 Richard Biener <rguenther@suse.de>
32898
32899 PR ipa/60243
32900 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32901 for all calls.
32902
32903 2014-02-19 Richard Biener <rguenther@suse.de>
32904
32905 PR ipa/60243
32906 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32907 (ipa_modify_call_arguments): Emit an argument load explicitely and
32908 preserve virtual SSA form there and for the replacement call.
32909 Do not update SSA form nor free dominance info.
32910
32911 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32912
32913 * ipa.c (function_and_variable_visibility): Also clear WEAK
32914 flag when disolving COMDAT_GROUP.
32915
32916 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32917
32918 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32919 * ipa-prop.c (ipa_set_jf_known_type): Return early when
32920 not devirtualizing.
32921 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32922 do more sanity checks.
32923 (detect_type_change): Return true when giving up early.
32924 (compute_complex_assign_jump_func): Fix type parameter of
32925 ipa_set_ancestor_jf.
32926 (compute_complex_ancestor_jump_func): Likewise.
32927 (update_jump_functions_after_inlining): Fix updating of
32928 ancestor function.
32929 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32930
32931 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32932
32933 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32934 inline clones when edge disappears.
32935
32936 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32937
32938 PR target/60203
32939 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32940 Split 64-bit moves into 2 patterns. Do not allow the use of
32941 direct move for TDmode in little endian, since the decimal value
32942 has little endian bytes within a word, but the 64-bit pieces are
32943 ordered in a big endian fashion, and normal subreg's of TDmode are
32944 not allowed.
32945 (mov<mode>_64bit_dm): Likewise.
32946 (movtd_64bit_nodm): Likewise.
32947
32948 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32949
32950 PR tree-optimization/60174
32951 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32952 statement of an SSA_NAME that occurs in an abnormal PHI node.
32953
32954 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32955
32956 PR sanitizer/60142
32957 * final.c (SEEN_BB): Remove.
32958 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32959 (final_scan_insn): Don't force_source_line on second
32960 NOTE_INSN_BASIC_BLOCK.
32961
32962 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32963
32964 PR target/60205
32965 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32966 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32967 (type_natural_mode): Warn ABI change when %zmm register is not
32968 available for AVX512F vector value passing.
32969
32970 2014-02-18 Kai Tietz <ktietz@redhat.com>
32971
32972 PR target/60193
32973 * config/i386/i386.c (ix86_expand_prologue): Use value in
32974 rax register as displacement when restoring %r10 or %rax.
32975 Fix wrong offset when restoring both registers.
32976
32977 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32978
32979 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32980 assertion with conditional return.
32981
32982 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32983 Uros Bizjak <ubizjak@gmail.com>
32984
32985 PR driver/60233
32986 * config/i386/driver-i386.c (host_detect_local_cpu): If
32987 YMM state is not saved by the OS, also clear has_f16c. Move
32988 CPUID 0x80000001 handling before YMM state saving checking.
32989
32990 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32991
32992 PR rtl-optimization/58960
32993 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32994 factored out from ...
32995 (sched_init): ... here.
32996 (free_global_sched_pressure_data): New, factored out from ...
32997 (sched_finish): ... here.
32998 * sched-int.h (free_global_sched_pressure_data): Declare.
32999 * sched-rgn.c (nr_regions_initial): New static global.
33000 (haifa_find_rgns): Initialize it.
33001 (schedule_region): Disable sched-pressure for the newly
33002 generated regions.
33003
33004 2014-02-17 Richard Biener <rguenther@suse.de>
33005
33006 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
33007 release SSA defs of pattern stmts.
33008
33009 2014-02-17 Richard Biener <rguenther@suse.de>
33010
33011 * tree-inline.c (expand_call_inline): Release the virtual
33012 operand defined by the call we are about to inline.
33013
33014 2014-02-17 Richard Biener <rguenther@suse.de>
33015
33016 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
33017
33018 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
33019 Ilya Tocar <ilya.tocar@intel.com>
33020
33021 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
33022 arguments order in builtin.
33023 (_mm512_permutexvar_epi64): Ditto.
33024 (_mm512_mask_permutexvar_epi64): Ditto
33025 (_mm512_maskz_permutexvar_epi32): Ditto
33026 (_mm512_permutexvar_epi32): Ditto
33027 (_mm512_mask_permutexvar_epi32): Ditto
33028
33029 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33030
33031 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
33032 (p8_vmrgow): Likewise.
33033
33034 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33035
33036 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
33037 endian targets.
33038
33039 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
33040
33041 PR target/60203
33042 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
33043 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
33044 into 64-bit and 32-bit moves. On 64-bit moves, add support for
33045 using direct move instructions on ISA 2.07. Also adjust
33046 instruction length for 64-bit.
33047 (mov<mode>_64bit, TFmode/TDmode): Likewise.
33048 (mov<mode>_32bit, TFmode/TDmode): Likewise.
33049
33050 2014-02-15 Alan Modra <amodra@gmail.com>
33051
33052 PR target/58675
33053 PR target/57935
33054 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
33055 find_replacement on parts of insn rtl that might be reloaded.
33056
33057 2014-02-15 Richard Biener <rguenther@suse.de>
33058
33059 PR tree-optimization/60183
33060 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
33061 (tree_ssa_phiprop): Calculate and free post-dominators.
33062
33063 2014-02-14 Jeff Law <law@redhat.com>
33064
33065 PR rtl-optimization/60131
33066 * ree.c (get_extended_src_reg): New function.
33067 (combine_reaching_defs): Use it rather than assuming location of REG.
33068 (find_and_remove_re): Verify first operand of extension is
33069 a REG before adding the insns to the copy list.
33070
33071 2014-02-14 Roland McGrath <mcgrathr@google.com>
33072
33073 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
33074 * configure: Regenerated.
33075 * config.in: Regenerated.
33076 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
33077 instead of ASM_SHORT.
33078
33079 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
33080 Richard Earnshaw <rearnsha@arm.com>
33081
33082 PR rtl-optimization/59535
33083 * lra-constraints.c (process_alt_operands): Encourage alternative
33084 when unassigned pseudo class is superset of the alternative class.
33085 (inherit_reload_reg): Don't inherit when optimizing for code size.
33086 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
33087 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
33088 modes not less than 4 for Thumb1.
33089
33090 2014-02-14 Kyle McMartin <kyle@redhat.com>
33091
33092 PR pch/60010
33093 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
33094
33095 2014-02-14 Richard Biener <rguenther@suse.de>
33096
33097 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
33098 (get_frame_arg): Drop the assert with langhook types_compatible_p.
33099 Do not strip INDIRECT_REFs.
33100
33101 2014-02-14 Richard Biener <rguenther@suse.de>
33102
33103 PR lto/60179
33104 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
33105 DECL_FUNCTION_SPECIFIC_TARGET.
33106 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
33107 * tree-streamer-out.c (pack_ts_target_option): Remove.
33108 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
33109 (write_ts_function_decl_tree_pointers): Do not stream
33110 DECL_FUNCTION_SPECIFIC_TARGET.
33111 * tree-streamer-in.c (unpack_ts_target_option): Remove.
33112 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
33113 (lto_input_ts_function_decl_tree_pointers): Do not stream
33114 DECL_FUNCTION_SPECIFIC_TARGET.
33115
33116 2014-02-14 Jakub Jelinek <jakub@redhat.com>
33117
33118 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
33119 (get_initial_def_for_induction, vectorizable_induction): Ignore
33120 debug stmts when looking for exit_phi.
33121 (vectorizable_live_operation): Fix up condition.
33122
33123 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
33124
33125 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
33126 nreverse() because it changes the content of original tree list.
33127
33128 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
33129
33130 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
33131 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
33132
33133 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
33134
33135 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
33136 GNU coding standards.
33137
33138 2014-02-13 Jakub Jelinek <jakub@redhat.com>
33139
33140 PR debug/60152
33141 * dwarf2out.c (gen_subprogram_die): Don't call
33142 add_calling_convention_attribute if subr_die is old_die.
33143
33144 2014-02-13 Sharad Singhai <singhai@google.com>
33145
33146 * doc/optinfo.texi: Fix order of nodes.
33147
33148 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
33149
33150 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
33151 operands[2], not operands[3].
33152
33153 2014-02-13 Richard Biener <rguenther@suse.de>
33154
33155 PR bootstrap/59878
33156 * doc/install.texi (ISL): Update recommended version to 0.12.2,
33157 mention the possibility of an in-tree build.
33158 (CLooG): Update recommended version to 0.18.1, mention the
33159 possibility of an in-tree build and clarify that the ISL
33160 bundled with CLooG does not work.
33161
33162 2014-02-13 Jakub Jelinek <jakub@redhat.com>
33163
33164 PR target/43546
33165 * expr.c (compress_float_constant): If x is a hard register,
33166 extend into a pseudo and then move to x.
33167
33168 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
33169
33170 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
33171 caused by bad second argument to warning_at() with -mhotpatch and
33172 nested functions (e.g. with gfortran).
33173
33174 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
33175
33176 * opts.c (option_name): Remove "enabled by default" rider.
33177
33178 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
33179
33180 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
33181
33182 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
33183 Uros Bizjak <ubizjak@gmail.com>
33184
33185 PR target/60151
33186 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
33187 * configure: Regenerated.
33188
33189 2014-02-12 Richard Biener <rguenther@suse.de>
33190
33191 * vec.c (vec_prefix::calculate_allocation): Move as
33192 inline variant to vec.h.
33193 (vec_prefix::calculate_allocation_1): New out-of-line version.
33194 * vec.h (vec_prefix::calculate_allocation_1): Declare.
33195 (vec_prefix::m_has_auto_buf): Rename to ...
33196 (vec_prefix::m_using_auto_storage): ... this.
33197 (vec_prefix::calculate_allocation): Inline the easy cases
33198 and dispatch to calculate_allocation_1 which doesn't need the
33199 prefix address.
33200 (va_heap::reserve): Use gcc_checking_assert.
33201 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
33202 m_using_auto_storage.
33203 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
33204 member and adjust.
33205 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
33206 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
33207 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
33208
33209 2014-02-12 Richard Biener <rguenther@suse.de>
33210
33211 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
33212 when we found a dependence.
33213
33214 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
33215
33216 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
33217 common code...
33218 (maybe_fold_stmt): ... into this new function.
33219 * omp-low.c (lower_omp): Update comment.
33220
33221 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
33222 last use.
33223
33224 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
33225 dereference.
33226
33227 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
33228
33229 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
33230 identifiers in comments.
33231 (cortexa53_extra_costs): Likewise.
33232 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
33233 (cortexa7_extra_costs): Likewise.
33234 (cortexa12_extra_costs): Likewise.
33235 (cortexa15_extra_costs): Likewise.
33236 (v7m_extra_costs): Likewise.
33237
33238 2014-02-12 Richard Biener <rguenther@suse.de>
33239
33240 PR middle-end/60092
33241 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
33242 of posix_memalign being successful.
33243 (lower_stmt): Restrict lowering of posix_memalign to when
33244 -ftree-bit-ccp is enabled.
33245
33246 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33247
33248 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
33249 arg_loc.
33250 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
33251
33252 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
33253
33254 PR rtl-optimization/60116
33255 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
33256 other_insn once the combination has been validated.
33257
33258 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
33259
33260 PR lto/59468
33261 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
33262 and wrapper.
33263 * ipa-devirt.c: Include demangle.h
33264 (odr_violation_reported): New static variable.
33265 (add_type_duplicate): Update odr_violations.
33266 (maybe_record_node): Add completep parameter; update it.
33267 (record_target_from_binfo): Add COMPLETEP parameter;
33268 update it as needed.
33269 (possible_polymorphic_call_targets_1): Likewise.
33270 (struct polymorphic_call_target_d): Add nonconstruction_targets;
33271 rename FINAL to COMPLETE.
33272 (record_targets_from_bases): Sanity check we found the binfo;
33273 fix COMPLETEP updating.
33274 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
33275 parameter, fix computing of COMPLETEP.
33276 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
33277 at LTO time do demangling.
33278 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
33279 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
33280 parameter.
33281 (gimple_get_virt_method_for_binfo): Likewise.
33282 * gimple-fold.h (gimple_get_virt_method_for_binfo,
33283 gimple_get_virt_method_for_vtable): Update prototypes.
33284
33285 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
33286
33287 PR target/49008
33288 * genautomata.c (add_presence_absence): Fix typo with
33289 {final_}presence_list.
33290
33291 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33292
33293 PR target/60137
33294 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
33295 for VSX/Altivec vectors that land in GPR registers.
33296
33297 2014-02-11 Richard Henderson <rth@redhat.com>
33298 Jakub Jelinek <jakub@redhat.com>
33299
33300 PR debug/59776
33301 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
33302 around drhs if type conversion to lacc->type is not useless.
33303
33304 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33305
33306 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
33307 tuning struct.
33308 (cortex-a57.cortex-a53): Likewise.
33309 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
33310
33311 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33312
33313 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
33314 arm_restrict_it.
33315
33316 2014-02-11 Renlin Li <Renlin.Li@arm.com>
33317
33318 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
33319 add_options_for_arm_vfp3.
33320
33321 2014-02-11 Jeff Law <law@redhat.com>
33322
33323 PR middle-end/54041
33324 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
33325 object with an undesirable mode.
33326
33327 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33328
33329 PR libgomp/60107
33330 * config/i386/sol2-9.h: New file.
33331 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
33332 *-*-solaris2.9*): Use it.
33333
33334 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
33335
33336 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
33337 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
33338
33339 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
33340
33341 * config/microblaze/microblaze.c: Extend mcpu version format
33342
33343 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
33344
33345 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
33346
33347 2014-02-10 Richard Henderson <rth@redhat.com>
33348
33349 PR target/59927
33350 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
33351 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
33352 ms-abi vs -mno-accumulate-outgoing-args.
33353 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
33354 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
33355 respect to ms-abi.
33356
33357 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
33358
33359 PR middle-end/60080
33360 * cfgexpand.c (expand_asm_operands): Attach source location to
33361 ASM_INPUT rtx objects.
33362 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
33363
33364 2014-02-10 Nick Clifton <nickc@redhat.com>
33365
33366 * config/mn10300/mn10300.c (popcount): New function.
33367 (mn10300_expand_prologue): Include saved registers in stack usage
33368 count.
33369
33370 2014-02-10 Jeff Law <law@redhat.com>
33371
33372 PR middle-end/52306
33373 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
33374 when changing the SET_DEST of a prior insn to avoid an input reload.
33375
33376 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33377
33378 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
33379 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
33380 -mcall-openbsd, or -mcall-linux.
33381 (CC1_ENDIAN_BIG_SPEC): Remove.
33382 (CC1_ENDIAN_LITTLE_SPEC): Remove.
33383 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33384 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
33385 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
33386 and %cc1_endian_default.
33387 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33388
33389 2014-02-10 Richard Biener <rguenther@suse.de>
33390
33391 PR tree-optimization/60115
33392 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
33393 MEM_REF handling. Properly verify that the accesses are not
33394 out of the objects bound.
33395
33396 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33397
33398 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
33399 coretex to cortex.
33400
33401 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
33402
33403 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
33404 proper constants and fix formatting.
33405 (possible_polymorphic_call_targets): Fix formatting.
33406
33407 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
33408 Ilya Tocar <ilya.tocar@intel.com>
33409
33410 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
33411 (_mm512_loadu_epi32): Renamed into...
33412 (_mm512_loadu_si512): This.
33413 (_mm512_storeu_epi32): Renamed into...
33414 (_mm512_storeu_si512): This.
33415 (_mm512_maskz_ceil_ps): Removed.
33416 (_mm512_maskz_ceil_pd): Ditto.
33417 (_mm512_maskz_floor_ps): Ditto.
33418 (_mm512_maskz_floor_pd): Ditto.
33419 (_mm512_floor_round_ps): Ditto.
33420 (_mm512_floor_round_pd): Ditto.
33421 (_mm512_ceil_round_ps): Ditto.
33422 (_mm512_ceil_round_pd): Ditto.
33423 (_mm512_mask_floor_round_ps): Ditto.
33424 (_mm512_mask_floor_round_pd): Ditto.
33425 (_mm512_mask_ceil_round_ps): Ditto.
33426 (_mm512_mask_ceil_round_pd): Ditto.
33427 (_mm512_maskz_floor_round_ps): Ditto.
33428 (_mm512_maskz_floor_round_pd): Ditto.
33429 (_mm512_maskz_ceil_round_ps): Ditto.
33430 (_mm512_maskz_ceil_round_pd): Ditto.
33431 (_mm512_expand_pd): Ditto.
33432 (_mm512_expand_ps): Ditto.
33433 * config/i386/i386.c (ix86_builtins): Remove
33434 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
33435 (bdesc_args): Ditto.
33436 * config/i386/predicates.md (const1256_operand): New.
33437 (const_1_to_2_operand): Ditto.
33438 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
33439 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33440 (*avx512pf_gatherpf<mode>sf): Ditto.
33441 (avx512pf_gatherpf<mode>df): Ditto.
33442 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33443 (*avx512pf_gatherpf<mode>df): Ditto.
33444 (avx512pf_scatterpf<mode>sf): Ditto.
33445 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33446 (*avx512pf_scatterpf<mode>sf): Ditto.
33447 (avx512pf_scatterpf<mode>df): Ditto.
33448 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33449 (*avx512pf_scatterpf<mode>df): Ditto.
33450 (avx512f_expand<mode>): Removed.
33451 (<shift_insn><mode>3<mask_name>): Change predicate type.
33452
33453 2014-02-08 Jakub Jelinek <jakub@redhat.com>
33454
33455 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
33456 not at the end of datarefs vector use ordered_remove to avoid
33457 reordering datarefs vector.
33458
33459 PR c/59984
33460 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
33461 mark local addressable non-static vars as GOVD_PRIVATE
33462 instead of GOVD_LOCAL.
33463 * omp-low.c (lower_omp_for): Move gimple_bind_vars
33464 and BLOCK_VARS of gimple_bind_block to new_stmt rather
33465 than copying them.
33466
33467 PR middle-end/60092
33468 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
33469 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
33470 assume_aligned or alloc_align attributes.
33471 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
33472 arguments. Handle also assume_aligned and alloc_align attributes.
33473 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
33474 calls to functions with assume_aligned or alloc_align attributes.
33475 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
33476
33477 2014-02-08 Terry Guo <terry.guo@arm.com>
33478
33479 * doc/invoke.texi: Document ARM -march=armv7e-m.
33480
33481 2014-02-08 Jakub Jelinek <jakub@redhat.com>
33482
33483 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
33484 flag on __cilkrts_rethrow builtin.
33485
33486 PR ipa/60026
33487 * ipa-cp.c (determine_versionability): Fail at -O0
33488 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
33489 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
33490
33491 Revert:
33492 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33493
33494 PR ipa/60026
33495 * tree-inline.c (copy_forbidden): Fail for
33496 __attribute__((optimize (0))) functions.
33497
33498 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
33499
33500 * varpool.c: Include pointer-set.h.
33501 (varpool_remove_unreferenced_decls): Variables in other partitions
33502 will not be output; be however careful to not lose information
33503 about partitioning.
33504
33505 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
33506
33507 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
33508 lookup in the vtable constructor.
33509
33510 2014-02-07 Jeff Law <law@redhat.com>
33511
33512 PR target/40977
33513 * config/m68k/m68k.md (ashldi_extsi): Turn into a
33514 define_insn_and_split.
33515
33516 * ipa-inline.c (inline_small_functions): Fix typos.
33517
33518 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33519
33520 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
33521 (s390_can_use_return_insn): Declare.
33522 * config/s390/s390.h (EPILOGUE_USES): Define.
33523 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
33524 instructions.
33525 (s390_chunkify_start): Handle return JUMP_LABELs.
33526 (s390_early_mach): Emit a main_pool instruction on the entry edge.
33527 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
33528 (s390_can_use_return_insn): New functions.
33529 (s390_fix_long_loop_prediction): Handle conditional returns.
33530 (TARGET_SET_UP_BY_PROLOGUE): Define.
33531 * config/s390/s390.md (ANY_RETURN): New code iterator.
33532 (*creturn, *csimple_return, return, simple_return): New patterns.
33533
33534 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33535
33536 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
33537 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
33538 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
33539 REG_CFA_RESTORE list when deciding not to restore a register.
33540
33541 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33542
33543 * config/s390/s390.c: Include tree-pass.h and context.h.
33544 (s390_early_mach): New function, split out from...
33545 (s390_emit_prologue): ...here.
33546 (pass_data_s390_early_mach): New pass structure.
33547 (pass_s390_early_mach): New class.
33548 (s390_option_override): Create and register early_mach pass.
33549 Move to end of file.
33550
33551 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33552
33553 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
33554 to match for the exit block.
33555
33556 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33557
33558 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
33559 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
33560 Reject misaligned operands.
33561
33562 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33563
33564 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33565
33566 2014-02-07 Richard Biener <rguenther@suse.de>
33567
33568 PR middle-end/60092
33569 * gimple-low.c (lower_builtin_posix_memalign): New function.
33570 (lower_stmt): Call it to lower posix_memalign in a way
33571 to make alignment info accessible.
33572
33573 2014-02-07 Jakub Jelinek <jakub@redhat.com>
33574
33575 PR c++/60082
33576 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33577 __builtin_setjmp_receiver.
33578
33579 2014-02-07 Richard Biener <rguenther@suse.de>
33580
33581 PR middle-end/60092
33582 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33583 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33584 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33585 Handle BUILT_IN_POSIX_MEMALIGN.
33586 (find_func_clobbers): Likewise.
33587 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33588 (call_may_clobber_ref_p_1): Likewise.
33589
33590 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33591
33592 PR ipa/59918
33593 * ipa-devirt.c (record_target_from_binfo): Remove overactive
33594 sanity check.
33595
33596 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33597
33598 PR ipa/59469
33599 * lto-cgraph.c (lto_output_node): Use
33600 symtab_get_symbol_partitioning_class.
33601 (lto_output_varpool_node): likewise.
33602 (symtab_get_symbol_partitioning_class): Move here from
33603 lto/lto-partition.c
33604 * cgraph.h (symbol_partitioning_class): Likewise.
33605 (symtab_get_symbol_partitioning_class): Declare.
33606
33607 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33608
33609 * ggc.h (ggc_internal_cleared_alloc): New macro.
33610 * vec.h (vec_safe_copy): Handle memory stats.
33611 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33612 * target-globals.c (save_target_globals): Likewise.
33613
33614 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33615
33616 PR target/60077
33617 * expr.c (emit_move_resolve_push): Export; be bit more selective
33618 on when to clear alias set.
33619 * expr.h (emit_move_resolve_push): Declare.
33620 * function.h (struct function): Add tail_call_marked.
33621 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33622 * config/i386/i386-protos.h (ix86_expand_push): Remove.
33623 * config/i386/i386.md (TImode move expander): De not call
33624 ix86_expand_push.
33625 (FP push expanders): Preserve memory attributes.
33626 * config/i386/sse.md (push<mode>1): Remove.
33627 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33628 (ix86_expand_push): Remove.
33629 * config/i386/mmx.md (push<mode>1): Remove.
33630
33631 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33632
33633 PR rtl-optimization/60030
33634 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33635 lopart with paradoxical subreg before shifting it up by hprec.
33636
33637 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33638
33639 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33640 Remove extra newline at end of file.
33641 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33642 (arm_issue_rate): Handle cortexa57.
33643 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33644 (cortex-a57.cortex-a53): Likewise.
33645
33646 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33647
33648 PR target/59575
33649 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33650 don't record in REG_FRAME_RELATED_EXPR registers not set in that
33651 bitmask.
33652 (arm_expand_prologue): Adjust all callers.
33653 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33654 info, registers also at the lowest numbered registers side. Use
33655 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33656 XEXP.
33657
33658 PR debug/59992
33659 * var-tracking.c (adjust_mems): Before adding a SET to
33660 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33661
33662 2014-02-06 Alan Modra <amodra@gmail.com>
33663
33664 PR target/60032
33665 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33666 change SDmode to DDmode when lra_in_progress.
33667
33668 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33669
33670 PR middle-end/59150
33671 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33672 free_data_ref on the dr first, and before goto again also set dr
33673 to the next dr. For simd_lane_access, free old datarefs[i] before
33674 overwriting it. For get_vectype_for_scalar_type failure, don't
33675 free_data_ref if simd_lane_access.
33676
33677 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33678
33679 PR target/60062
33680 * tree.h (opts_for_fn): New inline function.
33681 (opt_for_fn): Define.
33682 * config/i386/i386.c (ix86_function_regparm): Use
33683 opt_for_fn (decl, optimize) instead of optimize.
33684
33685 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
33686
33687 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33688 for SYMBOL_REF in large memory model.
33689
33690 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33691
33692 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33693 and crypto support.
33694 (cortex-a57): Likewise.
33695 (cortex-a57.cortex-a53): Likewise.
33696
33697 2014-02-06 Yury Gribov <y.gribov@samsung.com>
33698 Kugan Vivekanandarajah <kuganv@linaro.org>
33699
33700 * config/arm/arm.c (arm_vector_alignment_reachable): Check
33701 unaligned_access.
33702 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33703
33704 2014-02-06 Richard Biener <rguenther@suse.de>
33705
33706 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33707 set_loop_copy and initialize_original_copy_tables.
33708
33709 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
33710
33711 * config/aarch64/aarch64-simd.md
33712 (aarch64_ashr_simddi): Change QI to SI.
33713
33714 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33715 Jakub Jelinek <jakub@redhat.com>
33716
33717 PR middle-end/60013
33718 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33719 of the dataflow.
33720
33721 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33722
33723 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33724 CODE_FOR_altivec_vpku[hw]um to
33725 CODE_FOR_altivec_vpku[hw]um_direct.
33726 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33727 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33728 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33729 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33730
33731 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33732
33733 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33734 generation for -maltivec=be.
33735 (altivec_vsumsws): Simplify redundant test.
33736
33737 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33738
33739 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33740 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33741 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33742 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33743 gen_altivec_vpkuwum.
33744 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33745 BYTES_BIG_ENDIAN.
33746 (altivec_vpks<VI_char>ss): Likewise.
33747 (altivec_vpks<VI_char>us): Likewise.
33748 (altivec_vpku<VI_char>us): Likewise.
33749 (altivec_vpku<VI_char>um): Likewise.
33750 (altivec_vpku<VI_char>um_direct): New (copy of
33751 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33752 internal use).
33753 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33754 target is little endian and -maltivec=be is not specified.
33755 (*altivec_vupkhs<VU_char>_direct): New (copy of
33756 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33757 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33758 target is little endian and -maltivec=be is not specified.
33759 (*altivec_vupkls<VU_char>_direct): New (copy of
33760 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33761 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33762 little endian and -maltivec=be is not specified.
33763 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33764 little endian and -maltivec=be is not specified.
33765
33766 2014-02-05 Richard Henderson <rth@redhat.com>
33767
33768 PR debug/52727
33769 * combine-stack-adj.c: Revert r206943.
33770 * sched-int.h (struct deps_desc): Add last_args_size.
33771 * sched-deps.c (init_deps): Initialize it.
33772 (sched_analyze_insn): Add OUTPUT dependencies between insns that
33773 contain REG_ARGS_SIZE notes.
33774
33775 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33776
33777 * lto-cgraph.c (asm_nodes_output): Make global.
33778 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33779 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33780 (driver_handle_option): Handle OPT_fwpa.
33781
33782 2014-02-05 Jakub Jelinek <jakub@redhat.com>
33783
33784 PR ipa/59947
33785 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33786 a comment typo and formatting issue. If odr_hash hasn't been
33787 created, return vNULL and set *completep to false.
33788
33789 PR middle-end/57499
33790 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33791 bb with no successors.
33792
33793 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
33794
33795 PR target/59718
33796 * doc/invoke.texi (-march): Clarify documentation for ARM.
33797 (-mtune): Likewise.
33798 (-mcpu): Likewise.
33799
33800 2014-02-05 Richard Biener <rguenther@suse.de>
33801
33802 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33803 when not vectorizing because of too many alias checks.
33804 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33805 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33806
33807 2014-02-05 Nick Clifton <nickc@redhat.com>
33808
33809 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33810 accept extended registers in any mode when compiling for the MN10300.
33811
33812 2014-02-05 Yury Gribov <y.gribov@samsung.com>
33813
33814 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33815 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33816 sanitization attributes.
33817 (can_inline_edge_p): Likewise.
33818 (sanitize_attrs_match_for_inline_p): New function.
33819
33820 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33821
33822 * ipa-prop.c (detect_type_change): Shor circuit testing of
33823 type changes on THIS pointer.
33824
33825 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
33826
33827 PR target/59777
33828 * config/pa/pa.c (legitimize_tls_address): Return original address
33829 if not passed a SYMBOL_REF rtx.
33830 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33831 addresses.
33832 (pa_emit_move_sequence): Simplify TLS source operands.
33833 (pa_legitimate_constant_p): Reject all TLS constants.
33834 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33835 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33836
33837 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33838
33839 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33840 groups when we know they are controlled by LTO.
33841 * varasm.c (default_binds_local_p_1): If object is in other partition,
33842 it will be resolved locally.
33843
33844 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33845
33846 * config/host-linux.c (linux_gt_pch_use_address): Don't
33847 use SSIZE_MAX because it is not always defined.
33848
33849 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
33850
33851 PR bootstrap/59913
33852 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33853 threshold for pseudo splitting.
33854 (update_ebb_live_info): Process call argument hard registers and
33855 hard registers from insn definition too.
33856 (max_small_class_regs_num): New constant.
33857 (inherit_in_ebb): Update live hard regs through EBBs. Update
33858 reloads_num only for small register classes. Don't split for
33859 outputs of jumps.
33860
33861 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
33862
33863 PR ipa/60058
33864 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33865 is non-null.
33866
33867 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33868
33869 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33870 visibility is safe.
33871
33872 2014-02-04 Marek Polacek <polacek@redhat.com>
33873
33874 * gdbinit.in (pel): Define.
33875
33876 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33877
33878 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33879 behavior.
33880
33881 2014-02-04 Richard Biener <rguenther@suse.de>
33882
33883 PR lto/59723
33884 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33885 in function context local.
33886 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33887 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33888 similar to LTO_imported_decl_ref.
33889
33890 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33891
33892 PR tree-optimization/60002
33893 * cgraphclones.c (build_function_decl_skip_args): Clear
33894 DECL_LANG_SPECIFIC.
33895
33896 PR tree-optimization/60023
33897 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33898 false to gsi_replace.
33899 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33900 has been in some EH region and vec_stmt could throw, add
33901 vec_stmt into the same EH region.
33902 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33903 has no lhs, ignore it.
33904 * internal-fn.c (expand_MASK_LOAD): Likewise.
33905
33906 PR ipa/60026
33907 * tree-inline.c (copy_forbidden): Fail for
33908 __attribute__((optimize (0))) functions.
33909
33910 PR other/58712
33911 * omp-low.c (simd_clone_struct_copy): If from->inbranch
33912 is set, copy one less argument.
33913 (expand_simd_clones): Don't subtract clone_info->inbranch
33914 from simd_clone_struct_alloc argument.
33915
33916 PR rtl-optimization/57915
33917 * recog.c (simplify_while_replacing): If all unary/binary/relational
33918 operation arguments are constant, attempt to simplify those.
33919
33920 PR middle-end/59261
33921 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33922 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33923
33924 2014-02-04 Richard Biener <rguenther@suse.de>
33925
33926 PR tree-optimization/60012
33927 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33928 TBAA disambiguation to all DDRs.
33929
33930 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33931
33932 PR target/59788
33933 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33934 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33935
33936 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33937
33938 PR ipa/59882
33939 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33940
33941 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33942
33943 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33944 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33945
33946 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33947
33948 PR ipa/59831
33949 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33950 to figure out targets of polymorphic calls with known decl.
33951 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33952 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33953 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33954 (get_polymorphic_call_info): ... here.
33955 (get_polymorphic_call_info_from_invariant): New function.
33956
33957 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33958
33959 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33960 lookup via vtable pointer; check for type consistency
33961 and turn inconsitent facts into UNREACHABLE.
33962 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33963 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33964 type inconsistent querries; return UNREACHABLE instead.
33965
33966 2014-02-03 Richard Henderson <rth@twiddle.net>
33967
33968 PR tree-opt/59924
33969 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33970 already processed this node.
33971 (normalize_one_pred_1): Pass along mark_set.
33972 (normalize_one_pred): Create and destroy a pointer_set_t.
33973 (normalize_one_pred_chain): Likewise.
33974
33975 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33976
33977 PR gcov-profile/58602
33978 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33979
33980 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33981
33982 PR ipa/59831
33983 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33984 -fno-devirtualize; try to devirtualize by the knowledge of
33985 virtual table pointer given by aggregate propagation.
33986 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33987 (ipa_print_node_jump_functions): Dump also offset that
33988 is relevant for polymorphic calls.
33989 (determine_known_aggregate_parts): Add arg_type parameter; use it
33990 instead of determining the type from pointer type.
33991 (ipa_compute_jump_functions_for_edge): Update call of
33992 determine_known_aggregate_parts.
33993 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33994 (gimple_get_virt_method_for_binfo): ... here; simplify using
33995 vtable_pointer_value_to_vtable.
33996 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33997 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33998 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33999 (vtable_pointer_value_to_vtable): Break out from ...; handle also
34000 POINTER_PLUS_EXPR.
34001 (vtable_pointer_value_to_binfo): ... here.
34002 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
34003
34004 2014-02-03 Teresa Johnson <tejohnson@google.com>
34005
34006 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
34007 redef of outer loop index variable.
34008
34009 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
34010
34011 PR c++/53017
34012 PR c++/59211
34013 * doc/extend.texi (Function Attributes): Typo.
34014
34015 2014-02-03 Cong Hou <congh@google.com>
34016
34017 PR tree-optimization/60000
34018 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
34019 if the vectorized statement is a store. A store statement can only
34020 appear at the end of pattern statements.
34021
34022 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
34023
34024 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
34025 (ix86_option_override_internal): Default long double to 64-bit for
34026 32-bit Bionic and to 128-bit for 64-bit Bionic.
34027
34028 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
34029 TARGET_LONG_DOUBLE_128 is true.
34030 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
34031
34032 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
34033 (mlong-double-64): Negate -mlong-double-128.
34034 (mlong-double-128): New option.
34035
34036 * config/i386/i386-c.c (ix86_target_macros): Define
34037 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
34038
34039 * doc/invoke.texi: Document -mlong-double-128.
34040
34041 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
34042
34043 PR rtl-optimization/60024
34044 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
34045
34046 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
34047
34048 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
34049
34050 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
34051
34052 PR rtl-optimization/57662
34053 * sel-sched.c (code_motion_path_driver): Do not mark already not
34054 existing blocks in the visiting bitmap.
34055
34056 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
34057
34058 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
34059 on the insn being emitted.
34060
34061 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
34062 Will Deacon <will.deacon@arm.com>
34063
34064 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
34065
34066 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34067
34068 * config/arm/arm-tables.opt: Regenerate.
34069
34070 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34071
34072 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
34073 for vector types other than V16QImode.
34074 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
34075 define_expand, and call altivec_expand_vec_perm_le when producing
34076 code with little endian element order.
34077 (*altivec_vperm_<mode>_internal): New insn having previous
34078 behavior of altivec_vperm_<mode>.
34079 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
34080 altivec_expand_vec_perm_le when producing code with little endian
34081 element order.
34082 (*altivec_vperm_<mode>_uns_internal): New insn having previous
34083 behavior of altivec_vperm_<mode>_uns.
34084
34085 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34086
34087 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
34088 (altivec_vsumsws): Add handling for -maltivec=be with a little
34089 endian target.
34090 (altivec_vsumsws_direct): New.
34091 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
34092 gen_altivec_vsumsws.
34093
34094 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
34095
34096 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
34097 vtable_pointer_value_to_binfo): New functions.
34098 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
34099 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
34100
34101 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
34102
34103 * config/nios2/nios2.md (load_got_register): Initialize GOT
34104 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
34105 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
34106
34107 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
34108
34109 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
34110 preserverd by passthrough, do not propagate the type.
34111
34112 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
34113
34114 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
34115 (mips_atomic_assign_expand_fenv): New function.
34116 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
34117
34118 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
34119
34120 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
34121 (__builtin_mips_set_fcsr): Likewise.
34122 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
34123 MIPS_USI_FTYPE_VOID.
34124 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
34125 (mips16_expand_set_fcsr): Likewise.
34126 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
34127 (mips16_set_fcsr_stub): Likewise.
34128 (mips16_get_fcsr_one_only_stub): New class.
34129 (mips16_set_fcsr_one_only_stub): Likewise.
34130 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
34131 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
34132 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
34133 (hard_float): New availability predicate.
34134 (mips_builtins): Add get_fcsr and set_fcsr.
34135 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
34136 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
34137 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
34138 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
34139 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
34140 patterns.
34141
34142 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
34143
34144 * config/mips/mips.c (mips_one_only_stub): New class.
34145 (mips_need_mips16_rdhwr_p): Replace with...
34146 (mips16_rdhwr_stub): ...this new variable.
34147 (mips16_stub_call_address): New function.
34148 (mips16_rdhwr_one_only_stub): New class.
34149 (mips_expand_thread_pointer): Use mips16_stub_call_address.
34150 (mips_output_mips16_rdhwr): Delete.
34151 (mips_finish_stub): New function.
34152 (mips_code_end): Use it to handle rdhwr stubs.
34153
34154 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
34155
34156 PR target/60017
34157 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
34158 when calculating size of integer atomic types.
34159
34160 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
34161
34162 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
34163
34164 2014-02-01 Jakub Jelinek <jakub@redhat.com>
34165
34166 PR tree-optimization/60003
34167 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
34168 * profile.c (branch_prob): Use gimple_call_builtin_p
34169 to check for BUILT_IN_SETJMP_RECEIVER.
34170 * tree-inline.c (copy_bb): Call notice_special_calls.
34171
34172 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
34173
34174 PR bootstrap/59985
34175 * lra-constraints.c (process_alt_operands): Update reload_sum only
34176 on the first pass.
34177
34178 2014-01-31 Richard Henderson <rth@redhat.com>
34179
34180 PR middle-end/60004
34181 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
34182 until after else_eh is processed.
34183
34184 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
34185
34186 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
34187 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
34188 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
34189 in smmintrin.h, remove them.
34190 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
34191 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
34192 * config/i386/i386.md (ROUND_SAE): Fix value.
34193 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
34194 (const48_operand): New.
34195 * config/i386/subst.md (round), (round_expand): Use
34196 const_4_or_8_to_11_operand.
34197 (round_saeonly), (round_saeonly_expand): Use const48_operand.
34198
34199 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
34200
34201 * config/i386/constraints.md (Yk): Swap meaning with k.
34202 * config/i386/i386.md (movhi_internal): Change Yk to k.
34203 (movqi_internal): Ditto.
34204 (*k<logic><mode>): Ditto.
34205 (*andhi_1): Ditto.
34206 (*andqi_1): Ditto.
34207 (kandn<mode>): Ditto.
34208 (*<code>hi_1): Ditto.
34209 (*<code>qi_1): Ditto.
34210 (kxnor<mode>): Ditto.
34211 (kortestzhi): Ditto.
34212 (kortestchi): Ditto.
34213 (kunpckhi): Ditto.
34214 (*one_cmplhi2_1): Ditto.
34215 (*one_cmplqi2_1): Ditto.
34216 * config/i386/sse.md (): Change k to Yk.
34217 (avx512f_load<mode>_mask): Ditto.
34218 (avx512f_blendm<mode>): Ditto.
34219 (avx512f_store<mode>_mask): Ditto.
34220 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
34221 (avx512f_storedqu<mode>_mask): Ditto.
34222 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
34223 Ditto.
34224 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
34225 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
34226 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
34227 (avx512f_maskcmp<mode>3): Ditto.
34228 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
34229 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
34230 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
34231 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
34232 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
34233 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
34234 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
34235 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
34236 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
34237 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
34238 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
34239 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
34240 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
34241 (vec_extract_lo_<mode>_maskm): Ditto.
34242 (vec_extract_hi_<mode>_maskm): Ditto.
34243 (avx512f_vternlog<mode>_mask): Ditto.
34244 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
34245 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
34246 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
34247 (avx512f_<code>v8div16qi2_mask): Ditto.
34248 (avx512f_<code>v8div16qi2_mask_store): Ditto.
34249 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
34250 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
34251 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
34252 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
34253 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
34254 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34255 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34256 (*avx512pf_scatterpf<mode>df_mask): Ditto.
34257 (avx512cd_maskb_vec_dupv8di): Ditto.
34258 (avx512cd_maskw_vec_dupv16si): Ditto.
34259 (avx512f_vpermi2var<mode>3_maskz): Ditto.
34260 (avx512f_vpermi2var<mode>3_mask): Ditto.
34261 (avx512f_vpermi2var<mode>3_mask): Ditto.
34262 (avx512f_vpermt2var<mode>3_maskz): Ditto.
34263 (*avx512f_gathersi<mode>): Ditto.
34264 (*avx512f_gathersi<mode>_2): Ditto.
34265 (*avx512f_gatherdi<mode>): Ditto.
34266 (*avx512f_gatherdi<mode>_2): Ditto.
34267 (*avx512f_scattersi<mode>): Ditto.
34268 (*avx512f_scatterdi<mode>): Ditto.
34269 (avx512f_compress<mode>_mask): Ditto.
34270 (avx512f_compressstore<mode>_mask): Ditto.
34271 (avx512f_expand<mode>_mask): Ditto.
34272 * config/i386/subst.md (mask): Change k to Yk.
34273 (mask_scalar_merge): Ditto.
34274 (sd): Ditto.
34275
34276 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
34277
34278 * doc/extend.texi (Vector Extensions): Document ?: in C++.
34279
34280 2014-01-31 Richard Biener <rguenther@suse.de>
34281
34282 PR middle-end/59990
34283 * builtins.c (fold_builtin_memory_op): Make sure to not
34284 use a floating-point mode or a boolean or enumeral type for
34285 the copy operation.
34286
34287 2014-01-30 DJ Delorie <dj@redhat.com>
34288
34289 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
34290 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
34291 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
34292 whenever main() has an epilogue.
34293
34294 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34295
34296 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
34297 unused variable "field".
34298 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
34299 (vsx_mergeh_<mode>): Likewise.
34300 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
34301 (altivec_vmrghh): Likewise.
34302 (altivec_vmrghw): Likewise.
34303 (altivec_vmrglb): Likewise.
34304 (altivec_vmrglh): Likewise.
34305 (altivec_vmrglw): Likewise.
34306 (altivec_vspltb): Add missing uses.
34307 (altivec_vsplth): Likewise.
34308 (altivec_vspltw): Likewise.
34309 (altivec_vspltsf): Likewise.
34310
34311 2014-01-30 Jakub Jelinek <jakub@redhat.com>
34312
34313 PR target/59923
34314 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
34315 frame related instructions.
34316
34317 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
34318
34319 PR rtl-optimization/59959
34320 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
34321 any reload of register whose subreg is invalid.
34322
34323 2014-01-30 Jakub Jelinek <jakub@redhat.com>
34324
34325 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
34326 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
34327 Add missing return type - void.
34328
34329 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34330
34331 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
34332 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
34333 remove element index adjustment for endian (now handled in vsx.md
34334 and altivec.md).
34335 (altivec_expand_vec_perm_const): Use
34336 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
34337 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
34338 (vsx_xxspltw_<mode>): Adjust element index for little endian.
34339 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
34340 define_expand and a new define_insn *altivec_vspltb_internal;
34341 adjust for -maltivec=be on a little endian target.
34342 (altivec_vspltb_direct): New.
34343 (altivec_vsplth): Divide into a define_expand and a new
34344 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
34345 little endian target.
34346 (altivec_vsplth_direct): New.
34347 (altivec_vspltw): Divide into a define_expand and a new
34348 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
34349 little endian target.
34350 (altivec_vspltw_direct): New.
34351 (altivec_vspltsf): Divide into a define_expand and a new
34352 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
34353 a little endian target.
34354
34355 2014-01-30 Richard Biener <rguenther@suse.de>
34356
34357 PR tree-optimization/59993
34358 * tree-ssa-forwprop.c (associate_pointerplus): Check we
34359 can propagate form the earlier stmt and avoid the transform
34360 when the intermediate result is needed.
34361
34362 2014-01-30 Alangi Derick <alangiderick@gmail.com>
34363
34364 * README.Portability: Fix typo.
34365
34366 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
34367
34368 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
34369 comparison_operator with ordered_comparison_operator.
34370
34371 2014-01-30 Nick Clifton <nickc@redhat.com>
34372
34373 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
34374 Rename to mn10300_store_multiple_regs.
34375 * config/mn10300/mn10300.c: Likewise.
34376 * config/mn10300/mn10300.md (store_movm): Fix typo: call
34377 store_multiple_regs.
34378 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
34379 Call mn10300_store_multiple_regs.
34380
34381 2014-01-30 Nick Clifton <nickc@redhat.com>
34382 DJ Delorie <dj@redhat.com>
34383
34384 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
34385 %fp 2 to keep registers after it properly word-aligned.
34386 (rl78_alloc_physical_registers_umul): Handle the case where both
34387 input operands are the same.
34388
34389 2014-01-30 Richard Biener <rguenther@suse.de>
34390
34391 PR tree-optimization/59903
34392 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
34393 check properly.
34394
34395 2014-01-30 Jason Merrill <jason@redhat.com>
34396
34397 PR c++/59633
34398 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
34399
34400 PR c++/59645
34401 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
34402
34403 2014-01-30 Richard Biener <rguenther@suse.de>
34404
34405 PR tree-optimization/59951
34406 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
34407
34408 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
34409
34410 PR target/59784
34411 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
34412 SFmode to DFmode case.
34413
34414 2014-01-29 DJ Delorie <dj@redhat.com>
34415
34416 * config/msp430/msp430.opt (-minrt): New.
34417 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
34418 if -minrt given.
34419 (ENDFILE_SPEC): Likewise.
34420
34421 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
34422
34423 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
34424 (estimate_function_body_sizes): Use it.
34425
34426 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
34427
34428 PR c++/58561
34429 * dwarf2out.c (is_cxx_auto): New.
34430 (is_base_type): Use it.
34431 (gen_type_die_with_usage): Likewise.
34432
34433 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34434
34435 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
34436 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
34437 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
34438 -maltivec=be with LE targets.
34439 (vsx_mergeh_<mode>): Likewise.
34440 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
34441 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
34442 (altivec_vmrghb): Replace with define_expand and new
34443 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
34444 (altivec_vmrghb_direct): New define_insn.
34445 (altivec_vmrghh): Replace with define_expand and new
34446 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
34447 (altivec_vmrghh_direct): New define_insn.
34448 (altivec_vmrghw): Replace with define_expand and new
34449 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
34450 (altivec_vmrghw_direct): New define_insn.
34451 (*altivec_vmrghsf): Adjust for endianness.
34452 (altivec_vmrglb): Replace with define_expand and new
34453 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
34454 (altivec_vmrglb_direct): New define_insn.
34455 (altivec_vmrglh): Replace with define_expand and new
34456 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
34457 (altivec_vmrglh_direct): New define_insn.
34458 (altivec_vmrglw): Replace with define_expand and new
34459 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
34460 (altivec_vmrglw_direct): New define_insn.
34461 (*altivec_vmrglsf): Adjust for endianness.
34462 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34463 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34464 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34465 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34466 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34467 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34468 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34469 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34470
34471 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
34472
34473 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
34474 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
34475 whitespace.
34476
34477 2014-01-29 Richard Biener <rguenther@suse.de>
34478
34479 PR tree-optimization/58742
34480 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
34481 associate_pointerplus_align.
34482 (associate_pointerplus_diff): New function.
34483 (associate_pointerplus): Likewise. Call associate_pointerplus_align
34484 and associate_pointerplus_diff.
34485
34486 2014-01-29 Richard Biener <rguenther@suse.de>
34487
34488 * lto-streamer.h (LTO_major_version): Bump to 3.
34489 (LTO_minor_version): Reset to 0.
34490
34491 2014-01-29 Renlin Li <Renlin.Li@arm.com>
34492
34493 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
34494 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
34495 (arm_file_start): Generate correct asm header for armv7ve.
34496 * config/arm/bpabi.h: Add multilib support for armv7ve.
34497 * config/arm/driver-arm.c: Change the architectures of cortex-a7
34498 and cortex-a15 to armv7ve.
34499 * config/arm/t-aprofile: Add multilib support for armv7ve.
34500 * doc/invoke.texi: Document -march=armv7ve.
34501
34502 2014-01-29 Richard Biener <rguenther@suse.de>
34503
34504 PR tree-optimization/58742
34505 * tree-ssa-forwprop.c (associate_plusminus): Return true
34506 if we changed sth, defer EH cleanup to ...
34507 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
34508 (simplify_mult): New function.
34509
34510 2014-01-29 Jakub Jelinek <jakub@redhat.com>
34511
34512 PR middle-end/59917
34513 PR tree-optimization/59920
34514 * tree.c (build_common_builtin_nodes): Remove
34515 __builtin_setjmp_dispatcher initialization.
34516 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
34517 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
34518 instead of gsi_after_labels + manually skipping debug stmts.
34519 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
34520 ignore bbs with IFN_ABNORMAL_DISPATCHER.
34521 * tree-inline.c (copy_edges_for_bb): Remove
34522 can_make_abnormal_goto argument, instead add abnormal_goto_dest
34523 argument. Ignore computed_goto_p stmts. Don't call
34524 make_abnormal_goto_edges. If a call might need abnormal edges
34525 for non-local gotos, see if it already has an edge to
34526 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
34527 with true argument, don't do anything then, otherwise add
34528 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
34529 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
34530 caller.
34531 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
34532 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
34533 (lower_stmt): Don't set data->calls_builtin_setjmp.
34534 (lower_builtin_setjmp): Adjust comment.
34535 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
34536 * tree-cfg.c (found_computed_goto): Remove.
34537 (factor_computed_gotos): Remove.
34538 (make_goto_expr_edges): Return bool, true for computed gotos.
34539 Don't call make_abnormal_goto_edges.
34540 (build_gimple_cfg): Don't set found_computed_goto, don't call
34541 factor_computed_gotos.
34542 (computed_goto_p): No longer static.
34543 (make_blocks): Don't set found_computed_goto.
34544 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
34545 (make_edges): If make_goto_expr_edges returns true, push bb
34546 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
34547 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
34548 vector. Record mapping between bbs and OpenMP regions if there
34549 are any, adjust make_gimple_omp_edges caller. Call
34550 handle_abnormal_edges.
34551 (make_abnormal_goto_edges): Remove.
34552 * tree-cfg.h (make_abnormal_goto_edges): Remove.
34553 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
34554 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
34555 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
34556 * internal-fn.def (ABNORMAL_DISPATCHER): New.
34557 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
34558 filling *region also set *region_idx to (*region)->entry->index.
34559
34560 PR other/58712
34561 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34562 For REGs set ORIGINAL_REGNO.
34563
34564 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
34565
34566 * doc/md.texi: Mention that a target shouldn't implement
34567 vec_widen_(s|u)mul_even/odd pair if it is less efficient
34568 than hi/lo pair.
34569
34570 2014-01-29 Jakub Jelinek <jakub@redhat.com>
34571
34572 PR tree-optimization/59594
34573 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34574 a copy of the datarefs vector rather than the vector itself.
34575
34576 2014-01-28 Jason Merrill <jason@redhat.com>
34577
34578 PR c++/53756
34579 * dwarf2out.c (auto_die): New static.
34580 (gen_type_die_with_usage): Handle C++1y 'auto'.
34581 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34582 on definition.
34583
34584 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
34585
34586 PR target/59672
34587 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34588 (SPEC_X32): Likewise.
34589 (SPEC_64): Likewise.
34590 * config/i386/i386.c (ix86_option_override_internal): Turn off
34591 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34592 for TARGET_16BIT.
34593 (x86_file_start): Output .code16gcc for TARGET_16BIT.
34594 * config/i386/i386.h (TARGET_16BIT): New macro.
34595 (TARGET_16BIT_P): Likewise.
34596 * config/i386/i386.opt: Add m16.
34597 * doc/invoke.texi: Document -m16.
34598
34599 2014-01-28 Jakub Jelinek <jakub@redhat.com>
34600
34601 PR preprocessor/59935
34602 * input.c (location_get_source_line): Bail out on when line number
34603 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34604
34605 2014-01-28 Richard Biener <rguenther@suse.de>
34606
34607 PR tree-optimization/58742
34608 * tree-ssa-forwprop.c (associate_plusminus): Handle
34609 pointer subtraction of the form (T)(P + A) - (T)P.
34610
34611 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34612
34613 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34614 at const_int_cost.
34615
34616 2014-01-28 Richard Biener <rguenther@suse.de>
34617
34618 Revert
34619 2014-01-28 Richard Biener <rguenther@suse.de>
34620
34621 PR rtl-optimization/45364
34622 PR rtl-optimization/59890
34623 * var-tracking.c (local_get_addr_clear_given_value): Handle
34624 already cleared slot.
34625 (val_reset): Handle not allocated local_get_addr_cache.
34626 (vt_find_locations): Use post-order on the inverted CFG.
34627
34628 2014-01-28 Richard Biener <rguenther@suse.de>
34629
34630 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34631
34632 2014-01-28 Richard Biener <rguenther@suse.de>
34633
34634 PR rtl-optimization/45364
34635 PR rtl-optimization/59890
34636 * var-tracking.c (local_get_addr_clear_given_value): Handle
34637 already cleared slot.
34638 (val_reset): Handle not allocated local_get_addr_cache.
34639 (vt_find_locations): Use post-order on the inverted CFG.
34640
34641 2014-01-28 Alan Modra <amodra@gmail.com>
34642
34643 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34644 * configure.ac <recursive call for build != host>: Define
34645 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34646 and LD_FOR_BUILD too.
34647 * configure: Regenerate.
34648
34649 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
34650
34651 * config/i386/i386.c (get_builtin_code_for_version): Separate
34652 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34653 Broadwell from Haswell.
34654
34655 2014-01-27 Steve Ellcey <sellcey@mips.com>
34656
34657 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34658 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34659 * config/mips/mips.c (mips_option_override): Change setting
34660 of TARGET_DSP.
34661 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34662 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34663 Change from Mask to Var.
34664
34665 2014-01-27 Jeff Law <law@redhat.com>
34666
34667 * ipa-inline.c (inline_small_functions): Fix typo.
34668
34669 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
34670
34671 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34672 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34673 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34674 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34675 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34676 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34677 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34678 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34679 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34680 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34681 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34682 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34683 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34684 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34685 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34686 (_mm512_storeu_epi64): Ditto.
34687 (_mm512_cmpge_epi32_mask): Ditto.
34688 (_mm512_cmpge_epu32_mask): Ditto.
34689 (_mm512_cmpge_epi64_mask): Ditto.
34690 (_mm512_cmpge_epu64_mask): Ditto.
34691 (_mm512_cmple_epi32_mask): Ditto.
34692 (_mm512_cmple_epu32_mask): Ditto.
34693 (_mm512_cmple_epi64_mask): Ditto.
34694 (_mm512_cmple_epu64_mask): Ditto.
34695 (_mm512_cmplt_epi32_mask): Ditto.
34696 (_mm512_cmplt_epu32_mask): Ditto.
34697 (_mm512_cmplt_epi64_mask): Ditto.
34698 (_mm512_cmplt_epu64_mask): Ditto.
34699 (_mm512_cmpneq_epi32_mask): Ditto.
34700 (_mm512_cmpneq_epu32_mask): Ditto.
34701 (_mm512_cmpneq_epi64_mask): Ditto.
34702 (_mm512_cmpneq_epu64_mask): Ditto.
34703 (_mm512_expand_pd): Ditto.
34704 (_mm512_expand_ps): Ditto.
34705 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34706 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34707 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34708 * config/i386/i386.c (ix86_builtins): Add
34709 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34710 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34711 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34712 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34713 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34714 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34715 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34716 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34717 IX86_BUILTIN_PMOVUSQW512_MEM.
34718 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34719 __builtin_ia32_pmovsqd512mem_mask,
34720 __builtin_ia32_pmovqd512mem_mask,
34721 __builtin_ia32_pmovusqw512mem_mask,
34722 __builtin_ia32_pmovsqw512mem_mask,
34723 __builtin_ia32_pmovqw512mem_mask,
34724 __builtin_ia32_pmovusdw512mem_mask,
34725 __builtin_ia32_pmovsdw512mem_mask,
34726 __builtin_ia32_pmovdw512mem_mask,
34727 __builtin_ia32_pmovqb512mem_mask,
34728 __builtin_ia32_pmovusqb512mem_mask,
34729 __builtin_ia32_pmovsqb512mem_mask,
34730 __builtin_ia32_pmovusdb512mem_mask,
34731 __builtin_ia32_pmovsdb512mem_mask,
34732 __builtin_ia32_pmovdb512mem_mask.
34733 (bdesc_args): Add __builtin_ia32_expanddf512,
34734 __builtin_ia32_expandsf512.
34735 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34736 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34737 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34738 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34739 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34740 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34741 (avx512f_<code>v8div16qi2_mask_store): This.
34742 (avx512f_expand<mode>): New.
34743
34744 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
34745
34746 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34747 New.
34748 (_mm512_mask_prefetch_i64gather_pd): Ditto.
34749 (_mm512_prefetch_i32scatter_pd): Ditto.
34750 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34751 (_mm512_prefetch_i64scatter_pd): Ditto.
34752 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34753 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34754 (_mm512_mask_prefetch_i64gather_ps): Ditto.
34755 (_mm512_prefetch_i32scatter_ps): Ditto.
34756 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34757 (_mm512_prefetch_i64scatter_ps): Ditto.
34758 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34759 * config/i386/i386-builtin-types.def: Define
34760 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34761 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34762 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34763 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34764 IX86_BUILTIN_SCATTERPFQPD.
34765 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34766 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34767 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34768 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34769 __builtin_ia32_scatterpfqps.
34770 (ix86_expand_builtin): Expand new built-ins.
34771 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34772 fix memory access data type.
34773 (*avx512pf_gatherpf<mode>_mask): Ditto.
34774 (*avx512pf_gatherpf<mode>): Ditto.
34775 (avx512pf_scatterpf<mode>): Ditto.
34776 (*avx512pf_scatterpf<mode>_mask): Ditto.
34777 (*avx512pf_scatterpf<mode>): Ditto.
34778 (GATHER_SCATTER_SF_MEM_MODE): New.
34779 (avx512pf_gatherpf<mode>df): Ditto.
34780 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34781 (*avx512pf_scatterpf<mode>df): Ditto.
34782
34783 2014-01-27 Jakub Jelinek <jakub@redhat.com>
34784
34785 PR bootstrap/59934
34786 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34787 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34788 reached.
34789
34790 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34791
34792 * common/config/arm/arm-common.c
34793 (arm_rewrite_mcpu): Handle multiple names.
34794 * config/arm/arm.h
34795 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34796
34797 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34798
34799 * gimple-builder.h (create_gimple_tmp): Delete.
34800
34801 2014-01-27 Christian Bruel <christian.bruel@st.com>
34802
34803 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34804 words comparisons.
34805
34806 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
34807
34808 * config/pa/pa.md (call): Generate indirect long calls to non-local
34809 functions when outputing 32-bit code.
34810 (call_value): Likewise except for special call to buggy powf function.
34811
34812 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34813 portable runtime and PIC indirect calls.
34814 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34815 and PIC call sequences. Use ldo instead of blr to set return register
34816 in PIC call sequence.
34817
34818 2014-01-25 Walter Lee <walt@tilera.com>
34819
34820 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34821 avoid clobbering a live register.
34822
34823 2014-01-25 Walter Lee <walt@tilera.com>
34824
34825 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34826 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34827 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34828 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34829
34830 2014-01-25 Walter Lee <walt@tilera.com>
34831
34832 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34833 arguments on even registers.
34834 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34835 STACK_BOUNDARY.
34836 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34837 (BIGGEST_ALIGNMENT): Ditto.
34838 (BIGGEST_FIELD_ALIGNMENT): Ditto.
34839
34840 2014-01-25 Walter Lee <walt@tilera.com>
34841
34842 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34843 insns before bundling.
34844 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34845
34846 2014-01-25 Walter Lee <walt@tilera.com>
34847
34848 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34849 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34850 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34851
34852 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34853
34854 * config/mips/constraints.md (kl): Delete.
34855 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34856 define expands, using...
34857 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34858 instructions for MIPS16.
34859 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34860 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34861
34862 2014-01-25 Walter Lee <walt@tilera.com>
34863
34864 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34865 (clzdi2): Ditto.
34866 (ffsdi2): Ditto.
34867
34868 2014-01-25 Walter Lee <walt@tilera.com>
34869
34870 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34871 (TARGET_EXPAND_TO_RTL_HOOK): Define.
34872
34873 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34874
34875 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34876 Handle XOR.
34877
34878 2014-01-25 Jakub Jelinek <jakub@redhat.com>
34879
34880 * print-rtl.c (in_call_function_usage): New var.
34881 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34882 EXPR_LIST mode as mode and not as reg note name.
34883
34884 PR middle-end/59561
34885 * cfgloopmanip.c (copy_loop_info): If
34886 loop->warned_aggressive_loop_optimizations, make sure
34887 the flag is set in target loop too.
34888
34889 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
34890
34891 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34892 flag_cilkplus.
34893 * builtins.def: Likewise.
34894 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34895 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34896 * ira.c (ira_setup_eliminable_regset): Likewise.
34897 * omp-low.c (gate_expand_omp): Likewise.
34898 (execute_lower_omp): Likewise.
34899 (diagnose_sb_0): Likewise.
34900 (gate_diagnose_omp_blocks): Likewise.
34901 (simd_clone_clauses_extract): Likewise.
34902 (gate): Likewise.
34903
34904 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34905
34906 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34907 correction for little endian...
34908 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34909 here.
34910
34911 2014-01-24 Jeff Law <law@redhat.com>
34912
34913 PR tree-optimization/59919
34914 * tree-vrp.c (find_assert_locations_1): Do not register asserts
34915 for non-returning calls.
34916
34917 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
34918
34919 * common/config/aarch64/aarch64-common.c
34920 (aarch64_rewrite_mcpu): Handle multiple names.
34921 * config/aarch64/aarch64.h
34922 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34923
34924 2014-01-24 Dodji Seketeli <dodji@redhat.com>
34925
34926 * input.c (add_file_to_cache_tab): Handle the case where fopen
34927 returns NULL.
34928
34929 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
34930
34931 PR target/59929
34932 * config/i386/i386.md (pushsf splitter): Get stack adjustment
34933 from push operand if code of push isn't PRE_DEC.
34934
34935 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34936
34937 PR target/59909
34938 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34939 -mquad-memory-atomic. Update -mquad-memory documentation to say
34940 it is only used for non-atomic loads/stores.
34941
34942 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34943 -mquad-memory or -mquad-memory-atomic switches.
34944
34945 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34946 -mquad-memory-atomic to ISA 2.07 support.
34947
34948 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34949 to separate support of normal quad word memory operations (ldq, stq)
34950 from the atomic quad word memory operations.
34951
34952 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34953 support to separate non-atomic quad word operations from atomic
34954 quad word operations. Disable non-atomic quad word operations in
34955 little endian mode so that we don't have to swap words after the
34956 load and before the store.
34957 (quad_load_store_p): Add comment about atomic quad word support.
34958 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34959 options printed with -mdebug=reg.
34960
34961 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34962 -mquad-memory-atomic as the test for whether we have quad word
34963 atomic instructions.
34964 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34965 or -mp8-vector are used, allow byte/half-word atomic operations.
34966
34967 * config/rs6000/sync.md (load_lockedti): Insure that the address
34968 is a proper indexed or indirect address for the lqarx instruction.
34969 On little endian systems, swap the hi/lo registers after the lqarx
34970 instruction.
34971 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34972 insure the address is valid for the lqarx instruction.
34973 (store_conditionalti): Insure that the address is a proper indexed
34974 or indirect address for the stqcrx. instruction. On little endian
34975 systems, swap the hi/lo registers before doing the stqcrx.
34976 instruction.
34977 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34978 insure the address is valid for the stqcrx. instruction.
34979
34980 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34981 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34982 type of quad memory support is available.
34983
34984 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34985
34986 PR regression/59915
34987 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34988 there is a danger of looping.
34989
34990 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34991
34992 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34993 force flag_ira_loop_pressure if set via command line.
34994
34995 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34996
34997 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34998 (ashr_simd): New builtin handling DI mode.
34999 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
35000 (aarch64_sshr_simddi): New match pattern.
35001 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
35002 (vshrd_n_s64): Likewise.
35003 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
35004
35005 2014-01-23 Nick Clifton <nickc@redhat.com>
35006
35007 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
35008 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
35009 favour of mcu specific scripts.
35010 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
35011 430x multilibs.
35012
35013 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
35014 Alex Velenko <Alex.Velenko@arm.com>
35015
35016 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
35017 (vaddv_s16): Likewise.
35018 (vaddv_s32): Likewise.
35019 (vaddv_u8): Likewise.
35020 (vaddv_u16): Likewise.
35021 (vaddv_u32): Likewise.
35022 (vaddvq_s8): Likewise.
35023 (vaddvq_s16): Likewise.
35024 (vaddvq_s32): Likewise.
35025 (vaddvq_s64): Likewise.
35026 (vaddvq_u8): Likewise.
35027 (vaddvq_u16): Likewise.
35028 (vaddvq_u32): Likewise.
35029 (vaddvq_u64): Likewise.
35030 (vaddv_f32): Likewise.
35031 (vaddvq_f32): Likewise.
35032 (vaddvq_f64): Likewise.
35033 (vmaxv_f32): Likewise.
35034 (vmaxv_s8): Likewise.
35035 (vmaxv_s16): Likewise.
35036 (vmaxv_s32): Likewise.
35037 (vmaxv_u8): Likewise.
35038 (vmaxv_u16): Likewise.
35039 (vmaxv_u32): Likewise.
35040 (vmaxvq_f32): Likewise.
35041 (vmaxvq_f64): Likewise.
35042 (vmaxvq_s8): Likewise.
35043 (vmaxvq_s16): Likewise.
35044 (vmaxvq_s32): Likewise.
35045 (vmaxvq_u8): Likewise.
35046 (vmaxvq_u16): Likewise.
35047 (vmaxvq_u32): Likewise.
35048 (vmaxnmv_f32): Likewise.
35049 (vmaxnmvq_f32): Likewise.
35050 (vmaxnmvq_f64): Likewise.
35051 (vminv_f32): Likewise.
35052 (vminv_s8): Likewise.
35053 (vminv_s16): Likewise.
35054 (vminv_s32): Likewise.
35055 (vminv_u8): Likewise.
35056 (vminv_u16): Likewise.
35057 (vminv_u32): Likewise.
35058 (vminvq_f32): Likewise.
35059 (vminvq_f64): Likewise.
35060 (vminvq_s8): Likewise.
35061 (vminvq_s16): Likewise.
35062 (vminvq_s32): Likewise.
35063 (vminvq_u8): Likewise.
35064 (vminvq_u16): Likewise.
35065 (vminvq_u32): Likewise.
35066 (vminnmv_f32): Likewise.
35067 (vminnmvq_f32): Likewise.
35068 (vminnmvq_f64): Likewise.
35069
35070 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
35071
35072 * config/aarch64/aarch64-simd.md
35073 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
35074 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
35075 (*aarch64_mul3_elt<mode>): Likewise.
35076 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
35077 (*aarch64_mul3_elt_to_64v2df): Likewise.
35078 (*aarch64_mla_elt<mode>): Likewise.
35079 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
35080 (*aarch64_mls_elt<mode>): Likewise.
35081 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
35082 (*aarch64_fma4_elt<mode>): Likewise.
35083 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
35084 (*aarch64_fma4_elt_to_64v2df): Likewise.
35085 (*aarch64_fnma4_elt<mode>): Likewise.
35086 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
35087 (*aarch64_fnma4_elt_to_64v2df): Likewise.
35088 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
35089 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
35090 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35091 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
35092 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
35093 (aarch64_sqdmull_lane<mode>_internal): Likewise.
35094 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
35095
35096 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
35097
35098 * config/aarch64/aarch64-simd.md
35099 (aarch64_be_checked_get_lane<mode>): New define_expand.
35100 * config/aarch64/aarch64-simd-builtins.def
35101 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
35102 New builtin definition.
35103 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
35104 Use new safe be builtin.
35105
35106 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
35107
35108 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
35109 New define_insn.
35110 (aarch64_be_st1<mode>): Likewise.
35111 (aarch_ld1<VALL:mode>): Define_expand modified.
35112 (aarch_st1<VALL:mode>): Likewise.
35113 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
35114 (UNSPEC_ST1): Likewise.
35115
35116 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
35117
35118 * config/microblaze/microblaze.md: Add trap insn and attribute
35119
35120 2014-01-23 Dodji Seketeli <dodji@redhat.com>
35121
35122 PR preprocessor/58580
35123 * input.h (location_get_source_line): Take an additional line_size
35124 parameter.
35125 (void diagnostics_file_cache_fini): Declare new function.
35126 * input.c (struct fcache): New type.
35127 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
35128 New static constants.
35129 (diagnostic_file_cache_init, total_lines_num)
35130 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
35131 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
35132 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
35133 (get_next_line, read_next_line, goto_next_line, read_line_num):
35134 New static function definitions.
35135 (diagnostic_file_cache_fini): New function.
35136 (location_get_source_line): Take an additional output line_len
35137 parameter. Re-write using lookup_or_add_file_to_cache_tab and
35138 read_line_num.
35139 * diagnostic.c (diagnostic_finish): Call
35140 diagnostic_file_cache_fini.
35141 (adjust_line): Take an additional input parameter for the length
35142 of the line, rather than calculating it with strlen.
35143 (diagnostic_show_locus): Adjust the use of
35144 location_get_source_line and adjust_line with respect to their new
35145 signature. While displaying a line now, do not stop at the first
35146 null byte. Rather, display the zero byte as a space and keep
35147 going until we reach the size of the line.
35148 * Makefile.in: Add vec.o to OBJS-libcommon
35149
35150 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
35151 Ilya Tocar <ilya.tocar@intel.com>
35152
35153 * config/i386/avx512fintrin.h (_mm512_kmov): New.
35154 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
35155 (__builtin_ia32_kmov16): Ditto.
35156 * config/i386/i386.md (UNSPEC_KMOV): New.
35157 (kmovw): Ditto.
35158
35159 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
35160
35161 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
35162 (_mm512_storeu_si512): Ditto.
35163
35164 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
35165
35166 PR target/52125
35167 * rtl.h (get_referenced_operands): Declare.
35168 * recog.c (get_referenced_operands): New function.
35169 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
35170 operands have been referenced when recording LO_SUM references.
35171
35172 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
35173
35174 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
35175
35176 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
35177
35178 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
35179 Enable for generic and recent AMD targets.
35180
35181 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
35182
35183 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
35184 ARG_SIZE note when adjustment was eliminated.
35185
35186 2014-01-22 Jeff Law <law@redhat.com>
35187
35188 PR tree-optimization/59597
35189 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
35190 in file. Accept new argument REGISTERING and use it to modify
35191 dump output appropriately.
35192 (register_jump_thread): Corresponding changes.
35193 (mark_threaded_blocks): Reinstate code to cancel unprofitable
35194 thread paths involving joiner blocks. Add code to dump cancelled
35195 jump threading paths.
35196
35197 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
35198
35199 PR rtl-optimization/59477
35200 * lra-constraints.c (inherit_in_ebb): Process call for living hard
35201 regs. Update reloads_num and potential_reload_hard_regs for all insns.
35202
35203 2014-01-22 Tom Tromey <tromey@redhat.com>
35204
35205 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
35206 PARAMS.
35207 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
35208
35209 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
35210
35211 PR rtl-optimization/59896
35212 * lra-constraints.c (process_alt_operands): Check unused note for
35213 matched operands of insn with no output reloads.
35214
35215 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
35216
35217 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
35218 (mips_move_from_gpr_cost): Likewise.
35219
35220 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
35221
35222 PR rtl-optimization/59858
35223 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
35224 ira_class_hard_regs_num.
35225 (process_alt_operands): Increase reject for dying matched operand.
35226
35227 2014-01-21 Jakub Jelinek <jakub@redhat.com>
35228
35229 PR target/59003
35230 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
35231 smaller than size, perform several stores or loads and stores
35232 at dst + count - size to store or copy all of size bytes, rather
35233 than just last modesize bytes.
35234
35235 2014-01-20 DJ Delorie <dj@redhat.com>
35236
35237 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
35238 that CLOBBERs are REGs before propogating their values.
35239
35240 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
35241
35242 PR middle-end/59789
35243 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
35244 (cgraph_inline_failed_type): New function.
35245 * cgraph.h (DEFCIFCODE): Add type.
35246 (cgraph_inline_failed_type_t): New enum.
35247 (cgraph_inline_failed_type): New prototype.
35248 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
35249 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35250 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
35251 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
35252 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
35253 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
35254 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
35255 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
35256 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
35257 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
35258 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
35259 OPTIMIZATION_MISMATCH.
35260 * tree-inline.c (expand_call_inline): Emit errors during
35261 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
35262
35263 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
35264
35265 PR target/59685
35266 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
35267 mode attribute in insn output.
35268
35269 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
35270
35271 * output.h (output_constant): Delete.
35272 * varasm.c (output_constant): Make private.
35273
35274 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
35275
35276 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
35277
35278 2014-01-20 Jakub Jelinek <jakub@redhat.com>
35279
35280 PR middle-end/59860
35281 * tree.h (fold_builtin_strcat): New prototype.
35282 * builtins.c (fold_builtin_strcat): No longer static. Add len
35283 argument, if non-NULL, don't call c_strlen. Optimize
35284 directly into __builtin_memcpy instead of __builtin_strcpy.
35285 (fold_builtin_2): Adjust fold_builtin_strcat caller.
35286 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
35287
35288 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
35289
35290 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35291 for SImode_address_operand operands, having only a REG argument.
35292
35293 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
35294
35295 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
35296 loader name using mbig-endian.
35297 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
35298
35299 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
35300
35301 * doc/invoke.texi (-march): Clarify documentation for AArch64.
35302 (-mtune): Likewise.
35303 (-mcpu): Likewise.
35304
35305 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
35306
35307 * config/aarch64/aarch64-protos.h
35308 (aarch64_cannot_change_mode_class_ptr): Declare.
35309 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
35310 aarch64_cannot_change_mode_class_ptr): New.
35311 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
35312 backend hook aarch64_cannot_change_mode_class.
35313
35314 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
35315
35316 * common/config/aarch64/aarch64-common.c
35317 (aarch64_handle_option): Don't handle any option order logic here.
35318 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
35319 selected_cpu, warn on architecture version mismatch.
35320 (aarch64_override_options): Fix parsing order for option strings.
35321
35322 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35323 Iain Sandoe <iain@codesourcery.com>
35324
35325 PR bootstrap/59496
35326 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
35327 warning. Amend comment to reflect current functionality.
35328
35329 2014-01-20 Richard Biener <rguenther@suse.de>
35330
35331 PR middle-end/59860
35332 * builtins.c (fold_builtin_strcat): Remove case better handled
35333 by tree-ssa-strlen.c.
35334
35335 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
35336
35337 * config/aarch64/aarch64.opt
35338 (mcpu, march, mtune): Make case-insensitive.
35339
35340 2014-01-20 Jakub Jelinek <jakub@redhat.com>
35341
35342 PR target/59880
35343 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35344 if operands[1] is a REG or ZERO_EXTEND of a REG.
35345
35346 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
35347
35348 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
35349
35350 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
35351
35352 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
35353 long non-pic millicode calls.
35354
35355 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35356
35357 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
35358
35359 2014-01-19 Kito Cheng <kito@0xlab.org>
35360
35361 * builtins.c (expand_movstr): Check movstr expand done or fail.
35362
35363 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
35364 H.J. Lu <hongjiu.lu@intel.com>
35365
35366 PR target/59379
35367 * config/i386/i386.md (*lea<mode>): Zero-extend return register
35368 to DImode for zero-extended addresses.
35369
35370 2014-01-19 Jakub Jelinek <jakub@redhat.com>
35371
35372 PR rtl-optimization/57763
35373 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
35374 on the new indirect jump_insn and increment LABEL_NUSES (label).
35375
35376 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
35377
35378 PR bootstrap/59580
35379 PR bootstrap/59583
35380 * config.gcc (x86_archs): New variable.
35381 (x86_64_archs): Likewise.
35382 (x86_cpus): Likewise.
35383 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
35384 --with-arch/--with-cpu= options.
35385 Support --with-arch=/--with-cpu={nehalem,westmere,
35386 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
35387
35388 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
35389
35390 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
35391 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
35392
35393 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
35394
35395 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
35396
35397 2014-01-18 Jakub Jelinek <jakub@redhat.com>
35398
35399 PR target/58944
35400 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
35401 clear cpp_get_options (parse_in)->warn_unused_macros for
35402 ix86_target_macros_internal with cpp_define.
35403
35404 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
35405
35406 * jump.c (delete_related_insns): Keep (use (insn))s.
35407 * reorg.c (redundant_insn): Check for barriers too.
35408
35409 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
35410
35411 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
35412
35413 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
35414
35415 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
35416 call to $$dyncall when TARGET_LONG_CALLS is true.
35417
35418 2014-01-17 Jeff Law <law@redhat.com>
35419
35420 * ree.c (combine_set_extension): Temporarily disable test for
35421 changing number of hard registers.
35422
35423 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
35424
35425 PR middle-end/58125
35426 * ipa-inline-analysis.c (inline_free_summary):
35427 Do not free summary of aliases.
35428
35429 2014-01-17 Jakub Jelinek <jakub@redhat.com>
35430
35431 PR middle-end/59706
35432 * gimplify.c (gimplify_expr): Use create_tmp_var
35433 instead of create_tmp_var_raw. If cond doesn't have
35434 integral type, don't add the IFN_ANNOTATE builtin at all.
35435
35436 2014-01-17 Martin Jambor <mjambor@suse.cz>
35437
35438 PR ipa/59736
35439 * ipa-cp.c (prev_edge_clone): New variable.
35440 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
35441 Also resize prev_edge_clone vector.
35442 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
35443 (ipcp_edge_removal_hook): New function.
35444 (ipcp_driver): Register ipcp_edge_removal_hook.
35445
35446 2014-01-17 Andrew Pinski <apinski@cavium.com>
35447 Steve Ellcey <sellcey@mips.com>
35448
35449 PR target/59462
35450 * config/mips/mips.c (mips_print_operand): Check operand mode instead
35451 of operator mode.
35452
35453 2014-01-17 Jeff Law <law@redhat.com>
35454
35455 PR middle-end/57904
35456 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
35457 so that pass_ccp runs first.
35458
35459 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
35460
35461 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
35462 (ix86_adjust_cost): Use !TARGET_XXX.
35463 (do_reorder_for_imul): Likewise.
35464 (swap_top_of_ready_list): Likewise.
35465 (ix86_sched_reorder): Likewise.
35466
35467 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
35468
35469 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35470 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
35471 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
35472 (intel_memset): New. Duplicate slm_memset.
35473 (intel_cost): New. Duplicate slm_cost.
35474 (m_INTEL): New macro.
35475 (processor_target_table): Add "intel".
35476 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
35477 with PROCESSOR_INTEL for "intel".
35478 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
35479 PROCESSOR_SILVERMONT.
35480 (ix86_issue_rate): Likewise.
35481 (ix86_adjust_cost): Likewise.
35482 (ia32_multipass_dfa_lookahead): Likewise.
35483 (swap_top_of_ready_list): Likewise.
35484 (ix86_sched_reorder): Likewise.
35485 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
35486 instead of TARGET_OPT_AGU.
35487 * config/i386/i386.h (TARGET_INTEL): New.
35488 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
35489 (processor_type): Add PROCESSOR_INTEL.
35490 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
35491 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
35492
35493 2014-01-17 Marek Polacek <polacek@redhat.com>
35494
35495 PR c/58346
35496 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
35497 size is zero.
35498
35499 2014-01-17 Richard Biener <rguenther@suse.de>
35500
35501 PR tree-optimization/46590
35502 * opts.c (default_options_table): Add entries for
35503 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
35504 all enabled at -O1 but not for -Og.
35505 * common.opt (fbranch-count-reg): Remove Init(1).
35506 (fmove-loop-invariants): Likewise.
35507 (ftree-pta): Likewise.
35508
35509 2014-01-17 Jakub Jelinek <jakub@redhat.com>
35510
35511 * config/i386/i386.c (ix86_data_alignment): For compatibility with
35512 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
35513 decls to at least the GCC 4.8 used alignments.
35514
35515 PR fortran/59440
35516 * tree-nested.c (convert_nonlocal_reference_stmt,
35517 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
35518 of GIMPLE_BIND stmts, adjust associated decls.
35519
35520 2014-01-17 Richard Biener <rguenther@suse.de>
35521
35522 PR tree-optimization/46590
35523 * vec.h (vec<>::bseach): New member function implementing
35524 binary search according to C89 bsearch.
35525 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
35526 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
35527 bitmap pointer again. Make accesses_in_loop a flat array.
35528 (mem_ref_obstack): New global.
35529 (outermost_indep_loop): Adjust for mem_ref->stored changes.
35530 (mark_ref_stored): Likewise.
35531 (ref_indep_loop_p_2): Likewise.
35532 (set_ref_stored_in_loop): New helper function.
35533 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
35534 (memref_free): Adjust.
35535 (record_mem_ref_loc): Simplify.
35536 (gather_mem_refs_stmt): Adjust.
35537 (sort_locs_in_loop_postorder_cmp): New function.
35538 (analyze_memory_references): Sort accesses_in_loop after
35539 loop postorder number.
35540 (find_ref_loc_in_loop_cmp): New function.
35541 (for_all_locs_in_loop): Find relevant cluster of locs in
35542 accesses_in_loop and iterate without recursion.
35543 (execute_sm): Avoid uninit warning.
35544 (struct ref_always_accessed): Simplify.
35545 (ref_always_accessed::operator ()): Likewise.
35546 (ref_always_accessed_p): Likewise.
35547 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
35548 loop postorder numbers here.
35549 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
35550 numbers.
35551
35552 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
35553
35554 PR c++/57945
35555 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
35556 on decls for which assemble_alias has been called.
35557
35558 2014-01-17 Nick Clifton <nickc@redhat.com>
35559
35560 * config/msp430/msp430.opt: (mcpu): New option.
35561 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35562 (msp430_option_override): Parse target_cpu. If the MCU name
35563 matches a generic string, clear target_mcu.
35564 (msp430_attr): Allow numeric interrupt values up to 63.
35565 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35566 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35567 option.
35568 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35569 Add mcpu matches.
35570 * config/msp430/msp430.md (popm): Use %J rather than %I.
35571 (addsi3): Use msp430_nonimmediate_operand for operand 2.
35572 (addhi_cy_i): Use immediate_operand for operand 2.
35573 * doc/invoke.texi: Document -mcpu option.
35574
35575 2014-01-17 Richard Biener <rguenther@suse.de>
35576
35577 PR rtl-optimization/38518
35578 * df.h (df_analyze_loop): Declare.
35579 * df-core.c: Include cfgloop.h.
35580 (df_analyze_1): Split out main part of df_analyze.
35581 (df_analyze): Adjust.
35582 (loop_inverted_post_order_compute): New function.
35583 (loop_post_order_compute): Likewise.
35584 (df_analyze_loop): New function avoiding whole-function
35585 postorder computes.
35586 * loop-invariant.c (find_defs): Use df_analyze_loop.
35587 (find_invariants): Adjust.
35588 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35589
35590 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
35591
35592 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35593 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35594
35595 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35596
35597 * ipa-ref.c (ipa_remove_stmt_references): Fix references
35598 traversal when removing references.
35599
35600 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
35601
35602 PR ipa/59775
35603 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35604
35605 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
35606
35607 PR middle-end/56791
35608 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35609 pushing a reload for an autoinc when we had previously reloaded an
35610 inner part of the address.
35611
35612 2014-01-16 Jakub Jelinek <jakub@redhat.com>
35613
35614 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35615 field.
35616 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35617 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35618 when not giving up or versioning for alias only because of
35619 loop->safelen.
35620 (vect_analyze_data_ref_dependences): Set to true.
35621 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35622 is a GIMPLE_PHI.
35623 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35624 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35625 to the condition.
35626
35627 PR middle-end/58344
35628 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35629
35630 PR target/59839
35631 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35632 operand 0 predicate for gathers, use a new pseudo as subtarget.
35633
35634 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
35635
35636 PR middle-end/59609
35637 * lra-constraints.c (process_alt_operands): Add printing debug info.
35638 Check absence of input/output reloads for matched operands too.
35639
35640 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
35641
35642 PR rtl-optimization/59835
35643 * ira.c (ira_init_register_move_cost): Increase cost for
35644 impossible modes.
35645
35646 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
35647
35648 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35649
35650 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
35651
35652 PR target/59780
35653 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35654 non-register objects. Use gen_(high/low)part more consistently.
35655 Fix assertions.
35656
35657 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
35658
35659 PR target/59844
35660 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35661 endian support, remove tests for WORDS_BIG_ENDIAN.
35662 (p8_mfvsrd_3_<mode>): Likewise.
35663 (reload_gpr_from_vsx<mode>): Likewise.
35664 (reload_gpr_from_vsxsf): Likewise.
35665 (p8_mfvsrd_4_disf): Likewise.
35666
35667 2014-01-16 Richard Biener <rguenther@suse.de>
35668
35669 PR rtl-optimization/46590
35670 * lcm.c (compute_antinout_edge): Use postorder iteration.
35671 (compute_laterin): Use inverted postorder iteration.
35672
35673 2014-01-16 Nick Clifton <nickc@redhat.com>
35674
35675 PR middle-end/28865
35676 * varasm.c (output_constant): Return the number of bytes actually
35677 emitted.
35678 (output_constructor_array_range): Update the field size with the
35679 number of bytes emitted by output_constant.
35680 (output_constructor_regular_field): Likewise. Also do not
35681 complain if the total number of bytes emitted is now greater
35682 than the expected fieldpos.
35683 * output.h (output_constant): Update prototype and descriptive comment.
35684
35685 2014-01-16 Marek Polacek <polacek@redhat.com>
35686
35687 PR middle-end/59827
35688 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35689 it is error_mark_node.
35690
35691 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
35692
35693 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35694 VALID_AVX256_REG_OR_OI_MODE.
35695
35696 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
35697
35698 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35699 current procedure should be profiled.
35700
35701 2014-01-15 Andrew Pinski <apinski@cavium.com>
35702
35703 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35704 of moving from/to the STACK_REG register class.
35705
35706 2014-01-15 Richard Henderson <rth@redhat.com>
35707
35708 PR debug/54694
35709 * reginfo.c (global_regs_decl): Globalize.
35710 * rtl.h (global_regs_decl): Declare.
35711 * ira.c (do_reload): Diagnose frame_pointer_needed and it
35712 reserved via global_regs.
35713
35714 2014-01-15 Teresa Johnson <tejohnson@google.com>
35715
35716 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35717
35718 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
35719
35720 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35721 and vmulosh rather than call gen_vec_widen_smult_*.
35722 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35723 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35724 (vec_widen_smult_even_v16qi): Likewise.
35725 (vec_widen_umult_even_v8hi): Likewise.
35726 (vec_widen_smult_even_v8hi): Likewise.
35727 (vec_widen_umult_odd_v16qi): Likewise.
35728 (vec_widen_smult_odd_v16qi): Likewise.
35729 (vec_widen_umult_odd_v8hi): Likewise.
35730 (vec_widen_smult_odd_v8hi): Likewise.
35731 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35732 vmuloub rather than call gen_vec_widen_umult_*.
35733 (vec_widen_umult_lo_v16qi): Likewise.
35734 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35735 vmulosb rather than call gen_vec_widen_smult_*.
35736 (vec_widen_smult_lo_v16qi): Likewise.
35737 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35738 rather than call gen_vec_widen_umult_*.
35739 (vec_widen_umult_lo_v8hi): Likewise.
35740 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35741 rather than call gen_vec_widen_smult_*.
35742 (vec_widen_smult_lo_v8hi): Likewise.
35743
35744 2014-01-15 Jeff Law <law@redhat.com>
35745
35746 PR tree-optimization/59747
35747 * ree.c (find_and_remove_re): Properly handle case where a second
35748 eliminated extension requires widening a copy created for elimination
35749 of a prior extension.
35750 (combine_set_extension): Ensure that the number of hard regs needed
35751 for a destination register does not change when we widen it.
35752
35753 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
35754
35755 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35756 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35757 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35758 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35759 (avr-*-rtems*): Likewise.
35760 (bfin*-rtems*): Likewise.
35761 (moxie-*-rtems*): Likewise.
35762 (h8300-*-rtems*): Likewise.
35763 (i[34567]86-*-rtems*): Likewise.
35764 (lm32-*-rtems*): Likewise.
35765 (m32r-*-rtems*): Likewise.
35766 (m68k-*-rtems*): Likewise.
35767 (microblaze*-*-rtems*): Likewise.
35768 (mips*-*-rtems*): Likewise.
35769 (powerpc-*-rtems*): Likewise.
35770 (sh-*-rtems*): Likewise.
35771 (sparc-*-rtems*): Likewise.
35772 (sparc64-*-rtems*): Likewise.
35773 (v850-*-rtems*): Likewise.
35774 (m32c-*-rtems*): Likewise.
35775
35776 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
35777
35778 PR rtl-optimization/59511
35779 * ira.c (ira_init_register_move_cost): Use memory costs for some
35780 cases of register move cost calculations.
35781 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35782 instead of BB frequency.
35783 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35784 * lra-assigns.c (find_hard_regno_for): Ditto.
35785
35786 2014-01-15 Richard Biener <rguenther@suse.de>
35787
35788 PR tree-optimization/59822
35789 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35790 (vectorizable_load): Use it to hoist defs of uses of invariant
35791 loads out of the loop.
35792
35793 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35794 Kugan Vivekanandarajah <kuganv@linaro.org>
35795
35796 PR target/59695
35797 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35798 truncation.
35799
35800 2014-01-15 Richard Biener <rguenther@suse.de>
35801
35802 PR rtl-optimization/59802
35803 * lcm.c (compute_available): Use inverted postorder to seed
35804 the initial worklist.
35805
35806 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35807
35808 PR target/59803
35809 * config/s390/s390.c (s390_preferred_reload_class): Don't return
35810 ADDR_REGS for invalid symrefs in non-PIC code.
35811
35812 2014-01-15 Jakub Jelinek <jakub@redhat.com>
35813
35814 PR other/58712
35815 * builtins.c (determine_block_size): Initialize *probable_max_size
35816 even if len_rtx is CONST_INT.
35817
35818 2014-01-14 Andrew Pinski <apinski@cavium.com>
35819
35820 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35821 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35822 (cortexa53_tunings): Likewise.
35823 (aarch64_sched_issue_rate): New function.
35824 (TARGET_SCHED_ISSUE_RATE): Define.
35825
35826 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35827
35828 * ira-costs.c (find_costs_and_classes): Add missed
35829 ira_init_register_move_cost_if_necessary.
35830
35831 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35832
35833 PR target/59787
35834 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35835
35836 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
35837
35838 PR target/59794
35839 * config/i386/i386.c (type_natural_mode): Add a bool parameter
35840 to indicate if type is used for function return value. Warn ABI
35841 change if the vector mode isn't available for function return value.
35842 (ix86_function_arg_advance): Pass false to type_natural_mode.
35843 (ix86_function_arg): Likewise.
35844 (ix86_gimplify_va_arg): Likewise.
35845 (function_arg_32): Don't warn ABI change.
35846 (ix86_function_value): Pass true to type_natural_mode.
35847 (ix86_return_in_memory): Likewise.
35848 (ix86_struct_value_rtx): Removed.
35849 (TARGET_STRUCT_VALUE_RTX): Likewise.
35850
35851 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
35852
35853 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35854 converting a conditional jump into a conditional return.
35855
35856 2014-01-14 Richard Biener <rguenther@suse.de>
35857
35858 PR tree-optimization/58921
35859 PR tree-optimization/59006
35860 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35861 hoisting invariant stmts.
35862 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35863 invariant loads on the preheader edge if possible.
35864
35865 2014-01-14 Joey Ye <joey.ye@arm.com>
35866
35867 * doc/plugin.texi (Building GCC plugins): Update to C++.
35868
35869 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
35870
35871 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35872 (_mm_rcp28_round_ss): Ditto.
35873 (_mm_rsqrt28_round_sd): Ditto.
35874 (_mm_rsqrt28_round_ss): Ditto.
35875 (_mm_rcp28_sd): Ditto.
35876 (_mm_rcp28_ss): Ditto.
35877 (_mm_rsqrt28_sd): Ditto.
35878 (_mm_rsqrt28_ss): Ditto.
35879 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35880 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35881 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35882 (IX86_BUILTIN_RCP28SD): Ditto.
35883 (IX86_BUILTIN_RCP28SS): Ditto.
35884 (IX86_BUILTIN_RSQRT28SD): Ditto.
35885 (IX86_BUILTIN_RSQRT28SS): Ditto.
35886 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35887 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35888 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35889 (ix86_expand_special_args_builtin): Expand new FTYPE.
35890 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35891 (srcp14<mode>): Make insn unary.
35892 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35893 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35894 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35895 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35896 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35897 Fix rounding: make it SAE only.
35898 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35899 Ditto.
35900 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35901 Ditto.
35902 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35903 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35904 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35905 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35906 (round_saeonly_mask_scalar_operand4): Ditto.
35907 (round_saeonly_mask_scalar_op3): Ditto.
35908 (round_saeonly_mask_scalar_op4): Ditto.
35909
35910 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35911
35912 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35913 Implement -maltivec=be for vec_insert and vec_extract.
35914
35915 2014-01-10 DJ Delorie <dj@redhat.com>
35916
35917 * config/msp430/msp430.md (call_internal): Don't allow memory
35918 references with SP as the base register.
35919 (call_value_internal): Likewise.
35920 * config/msp430/constraints.md (Yc): New. For memory references
35921 that don't use SP as a base register.
35922
35923 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35924 "an integer without a # prefix"
35925 * config/msp430/msp430.md (epilogue_helper): Use it.
35926
35927 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35928
35929 PR target/59617
35930 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35931 AVX512F gather builtins.
35932 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35933 on gather decls with INTEGER_TYPE masktype.
35934 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35935 directly into the builtin rather than hoisting it before loop.
35936
35937 PR tree-optimization/59387
35938 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35939 (scev_const_prop): If folded_casts and type has undefined overflow,
35940 use force_gimple_operand instead of force_gimple_operand_gsi and
35941 for each added stmt if it is assign with
35942 arith_code_with_undefined_signed_overflow, call
35943 rewrite_to_defined_overflow.
35944 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35945 gimple-fold.h instead.
35946 (arith_code_with_undefined_signed_overflow,
35947 rewrite_to_defined_overflow): Moved to ...
35948 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35949 rewrite_to_defined_overflow): ... here. No longer static.
35950 Include gimplify-me.h.
35951 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35952 rewrite_to_defined_overflow): New prototypes.
35953
35954 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35955
35956 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35957
35958 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35959
35960 * builtins.c (get_object_alignment_2): Minor tweak.
35961 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35962
35963 2014-01-13 Christian Bruel <christian.bruel@st.com>
35964
35965 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35966 optimized non constant lengths.
35967
35968 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35969
35970 PR libgomp/59194
35971 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35972 load as __atomic_load_N if possible.
35973
35974 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35975
35976 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35977 target parameter.
35978 (rs6000_expand_builtin): Adjust call.
35979
35980 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35981
35982 PR target/58115
35983 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35984 * config/rs6000/rs6000.c: Include target-globals.h.
35985 (rs6000_set_current_function): Instead of doing target_reinit
35986 unconditionally, use save_target_globals_default_opts and
35987 restore_target_globals.
35988
35989 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35990 FPSCR.
35991 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35992 (rs6000_expand_builtin): Handle mffs and mtfsf.
35993 (rs6000_init_builtins): Define mffs and mtfsf.
35994 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35995 (rs6000_mffs): New pattern.
35996 (rs6000_mtfsf): New pattern.
35997
35998 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35999
36000 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
36001 Start narrowing with START. Apply candidate-use pair
36002 and check overall cost in narrowing.
36003 (iv_ca_prune): Pass new argument.
36004
36005 2014-01-10 Jeff Law <law@redhat.com>
36006
36007 PR middle-end/59743
36008 * ree.c (combine_reaching_defs): Ensure the defining statement
36009 occurs before the extension when optimizing extensions with
36010 different source and destination hard registers.
36011
36012 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
36013
36014 PR ipa/58585
36015 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
36016 vtables into the type inheritance graph.
36017
36018 2014-01-10 Jakub Jelinek <jakub@redhat.com>
36019
36020 PR rtl-optimization/59754
36021 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
36022 modes in the REGNO != REGNO case.
36023
36024 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36025
36026 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
36027
36028 2014-01-10 Jakub Jelinek <jakub@redhat.com>
36029
36030 PR tree-optimization/59745
36031 * tree-predcom.c (tree_predictive_commoning_loop): Call
36032 free_affine_expand_cache if giving up because components is NULL.
36033
36034 * target-globals.c (save_target_globals): Allocate < 4KB structs using
36035 GC in payload of target_globals struct instead of allocating them on
36036 the heap and the larger structs separately using GC.
36037 * target-globals.h (struct target_globals): Make regs, hard_regs,
36038 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
36039 of GTY((skip)) and change type to void *.
36040 (reset_target_globals): Cast loads from those fields to corresponding
36041 types.
36042
36043 2014-01-10 Steve Ellcey <sellcey@mips.com>
36044
36045 PR plugins/59335
36046 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
36047 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
36048 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
36049
36050 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
36051
36052 PR target/59744
36053 * aarch64-modes.def (CC_Zmode): New flags mode.
36054 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
36055 represents an equality.
36056 (aarch64_get_condition_code): Handle CC_Zmode.
36057 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
36058
36059 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36060
36061 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
36062 extraction in good case.
36063
36064 2014-01-10 Richard Biener <rguenther@suse.de>
36065
36066 PR tree-optimization/59374
36067 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
36068 checking after SLP discovery. Mark stmts not participating
36069 in any SLP instance properly.
36070
36071 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36072
36073 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
36074 when handling a SET rtx.
36075
36076 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36077
36078 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
36079 (cortex-a57): Likewise.
36080 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
36081
36082 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36083
36084 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
36085 non-iwmmxt builtins.
36086
36087 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
36088
36089 PR ipa/58252
36090 PR ipa/59226
36091 * ipa-devirt.c record_target_from_binfo): Take as argument
36092 stack of binfos and lookup matching one for virtual inheritance.
36093 (possible_polymorphic_call_targets_1): Update.
36094
36095 2014-01-10 Huacai Chen <chenhc@lemote.com>
36096
36097 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
36098 kernel strings for Loongson-2E/2F/3A.
36099
36100 2014-01-10 Jakub Jelinek <jakub@redhat.com>
36101
36102 PR middle-end/59670
36103 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
36104 is_gimple_call before calling gimple_call_internal_p.
36105
36106 2014-01-09 Steve Ellcey <sellcey@mips.com>
36107
36108 * Makefile.in (TREE_FLOW_H): Remove.
36109 (TREE_SSA_H): Add file names from tree-flow.h.
36110 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
36111 * tree.h: Remove tree-flow.h reference.
36112 * hash-table.h: Remove tree-flow.h reference.
36113 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
36114 reference with tree-ssa-loop.h.
36115
36116 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36117
36118 * doc/invoke.texi: Add -maltivec={be,le} options, and document
36119 default element-order behavior for -maltivec.
36120 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
36121 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
36122 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
36123 when targeting big endian, at least for now.
36124 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
36125
36126 2014-01-09 Jakub Jelinek <jakub@redhat.com>
36127
36128 PR middle-end/47735
36129 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
36130 var satisfies use_register_for_decl, just take into account type
36131 alignment, rather than decl alignment.
36132
36133 PR tree-optimization/59622
36134 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
36135 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
36136 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
36137 Don't devirtualize for inplace at all. For targets.length () == 1,
36138 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
36139
36140 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
36141
36142 * config/i386/i386.md (cpu): Remove the unused btver1.
36143
36144 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
36145
36146 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
36147
36148 2014-01-09 Jakub Jelinek <jakub@redhat.com>
36149
36150 PR target/58115
36151 * tree-core.h (struct target_globals): New forward declaration.
36152 (struct tree_target_option): Add globals field.
36153 * tree.h (TREE_TARGET_GLOBALS): Define.
36154 (prepare_target_option_nodes_for_pch): New prototype.
36155 * target-globals.h (struct target_globals): Define even if
36156 !SWITCHABLE_TARGET.
36157 * tree.c (prepare_target_option_node_for_pch,
36158 prepare_target_option_nodes_for_pch): New functions.
36159 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
36160 * config/i386/i386.c: Include target-globals.h.
36161 (ix86_set_current_function): Instead of doing target_reinit
36162 unconditionally, use save_target_globals_default_opts and
36163 restore_target_globals.
36164
36165 2014-01-09 Richard Biener <rguenther@suse.de>
36166
36167 PR tree-optimization/59715
36168 * tree-cfg.h (split_critical_edges): Declare.
36169 * tree-cfg.c (split_critical_edges): Export.
36170 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
36171
36172 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
36173
36174 * cfgexpand.c (expand_stack_vars): Optionally disable
36175 asan stack protection.
36176 (expand_used_vars): Likewise.
36177 (partition_stack_vars): Likewise.
36178 * asan.c (asan_emit_stack_protection): Optionally disable
36179 after return stack usage.
36180 (instrument_derefs): Optionally disable memory access instrumentation.
36181 (instrument_builtin_call): Likewise.
36182 (instrument_strlen_call): Likewise.
36183 (asan_protect_global): Optionally disable global variables protection.
36184 * doc/invoke.texi: Added doc for new options.
36185 * params.def: Added new options.
36186 * params.h: Likewise.
36187
36188 2014-01-09 Jakub Jelinek <jakub@redhat.com>
36189
36190 PR rtl-optimization/59724
36191 * ifcvt.c (cond_exec_process_if_block): Don't call
36192 flow_find_head_matching_sequence with 0 longest_match.
36193 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
36194 non-active insns if !stop_after.
36195 (try_head_merge_bb): Revert 2014-01-07 changes.
36196
36197 2014-01-08 Jeff Law <law@redhat.com>
36198
36199 * ree.c (get_sub_rtx): New function, extracted from...
36200 (merge_def_and_ext): Here.
36201 (combine_reaching_defs): Use get_sub_rtx.
36202
36203 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
36204
36205 * cgraph.h (varpool_variable_node): Do not choke on null node.
36206
36207 2014-01-08 Catherine Moore <clm@codesourcery.com>
36208
36209 * config/mips/mips.md (simple_return): Attempt to use JRC
36210 for microMIPS.
36211 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
36212
36213 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
36214
36215 PR rtl-optimization/59137
36216 * reorg.c (steal_delay_list_from_target): Call update_block for
36217 elided insns.
36218 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
36219
36220 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36221
36222 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
36223 two duplicate entries.
36224
36225 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
36226
36227 Revert:
36228 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
36229
36230 * config/mips/mips.c (mips_truncated_op_cost): New function.
36231 (mips_rtx_costs): Adjust test for BADDU.
36232 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
36233
36234 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
36235
36236 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
36237 (*baddu_si): ...this new pattern.
36238
36239 2014-01-08 Jakub Jelinek <jakub@redhat.com>
36240
36241 PR ipa/59722
36242 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
36243
36244 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
36245
36246 PR middle-end/57748
36247 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
36248 inner_reference_p.
36249 (expand_expr, expand_normal): Adjust.
36250 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
36251 inner_reference_p. Use inner_reference_p to expand inner references.
36252 (store_expr): Adjust.
36253 * cfgexpand.c (expand_call_stmt): Adjust.
36254
36255 2014-01-08 Rong Xu <xur@google.com>
36256
36257 * gcov-io.c (gcov_var): Move from gcov-io.h.
36258 (gcov_position): Ditto.
36259 (gcov_is_error): Ditto.
36260 (gcov_rewrite): Ditto.
36261 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
36262 only part to libgcc/libgcov.h.
36263
36264 2014-01-08 Marek Polacek <polacek@redhat.com>
36265
36266 PR middle-end/59669
36267 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
36268
36269 2014-01-08 Marek Polacek <polacek@redhat.com>
36270
36271 PR sanitizer/59667
36272 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
36273
36274 2014-01-08 Jakub Jelinek <jakub@redhat.com>
36275
36276 PR rtl-optimization/59649
36277 * stor-layout.c (get_mode_bounds): For BImode return
36278 0 and STORE_FLAG_VALUE.
36279
36280 2014-01-08 Richard Biener <rguenther@suse.de>
36281
36282 PR middle-end/59630
36283 * gimple.h (is_gimple_builtin_call): Remove.
36284 (gimple_builtin_call_types_compatible_p): New.
36285 (gimple_call_builtin_p): New overload.
36286 * gimple.c (is_gimple_builtin_call): Remove.
36287 (validate_call): Rename to ...
36288 (gimple_builtin_call_types_compatible_p): ... this and export. Also
36289 check return types.
36290 (validate_type): New static function.
36291 (gimple_call_builtin_p): New overload and adjust.
36292 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
36293 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
36294 (gimple_fold_stmt_to_constant_1): Likewise.
36295 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
36296
36297 2014-01-08 Richard Biener <rguenther@suse.de>
36298
36299 PR middle-end/59471
36300 * gimplify.c (gimplify_expr): Gimplify register-register type
36301 VIEW_CONVERT_EXPRs to separate stmts.
36302
36303 2014-01-07 Jeff Law <law@redhat.com>
36304
36305 PR middle-end/53623
36306 * ree.c (combine_set_extension): Handle case where source
36307 and destination registers in an extension insn are different.
36308 (combine_reaching_defs): Allow source and destination registers
36309 in extension to be different under limited circumstances.
36310 (add_removable_extension): Remove restriction that the
36311 source and destination registers in the extension are the same.
36312 (find_and_remove_re): Emit a copy from the extension's
36313 destination to its source after the defining insn if
36314 the source and destination registers are different.
36315
36316 PR middle-end/59285
36317 * ifcvt.c (merge_if_block): If we are merging a block with more than
36318 one successor with a block with no successors, remove any BARRIER
36319 after the second block.
36320
36321 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
36322
36323 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
36324
36325 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
36326
36327 PR target/59652
36328 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
36329 for 14-bit register offsets when INT14_OK_STRICT is false.
36330
36331 2014-01-07 Roland Stigge <stigge@antcom.de>
36332 Michael Meissner <meissner@linux.vnet.ibm.com>
36333
36334 PR 57386/target
36335 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
36336 Only check TFmode for SPE constants. Don't check TImode or TDmode.
36337
36338 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36339
36340 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
36341 -mcpu.
36342
36343 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
36344
36345 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
36346 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
36347 rtx is const0_rtx or not.
36348
36349 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
36350
36351 PR target/58115
36352 * target-globals.c (save_target_globals): Remove this_fn_optab
36353 handling.
36354 * toplev.c: Include optabs.h.
36355 (target_reinit): Temporarily restore the global options if another
36356 set of options are in force.
36357
36358 2014-01-07 Jakub Jelinek <jakub@redhat.com>
36359
36360 PR rtl-optimization/58668
36361 * cfgcleanup.c (flow_find_cross_jump): Don't count
36362 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
36363 to determine what is counted.
36364 (flow_find_head_matching_sequence): Use active_insn_p to determine
36365 what is counted.
36366 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
36367 counting change.
36368 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
36369 determine what is counted.
36370
36371 PR tree-optimization/59643
36372 * tree-predcom.c (split_data_refs_to_components): If one dr is
36373 read and one write, determine_offset fails and the write isn't
36374 in the bad component, just put the read into the bad component.
36375
36376 2014-01-07 Mike Stump <mikestump@comcast.net>
36377 Jakub Jelinek <jakub@redhat.com>
36378
36379 PR pch/59436
36380 * tree-core.h (struct tree_optimization_option): Change optabs
36381 type from unsigned char * to void *.
36382 * optabs.c (init_tree_optimization_optabs): Adjust
36383 TREE_OPTIMIZATION_OPTABS initialization.
36384
36385 2014-01-06 Jakub Jelinek <jakub@redhat.com>
36386
36387 PR target/59644
36388 * config/i386/i386.h (struct machine_function): Add
36389 no_drap_save_restore field.
36390 * config/i386/i386.c (ix86_save_reg): Use
36391 !cfun->machine->no_drap_save_restore instead of
36392 crtl->stack_realign_needed.
36393 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
36394 this function clears frame_pointer_needed. Set
36395 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
36396 and DRAP reg is needed.
36397
36398 2014-01-06 Marek Polacek <polacek@redhat.com>
36399
36400 PR c/57773
36401 * doc/implement-c.texi: Mention that other integer types are
36402 permitted as bit-field types in strictly conforming mode.
36403
36404 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
36405
36406 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
36407 is newly allocated.
36408
36409 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
36410
36411 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
36412
36413 2014-01-06 Martin Jambor <mjambor@suse.cz>
36414
36415 PR ipa/59008
36416 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
36417 to int.
36418 * ipa-prop.c (ipa_print_node_params): Fix indentation.
36419
36420 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
36421
36422 PR debug/59350
36423 PR debug/59510
36424 * var-tracking.c (add_stores): Preserve the value of the source even if
36425 we don't record the store.
36426
36427 2014-01-06 Terry Guo <terry.guo@arm.com>
36428
36429 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
36430
36431 2014-01-05 Iain Sandoe <iain@codesourcery.com>
36432
36433 PR bootstrap/59541
36434 * config/darwin.c (darwin_function_section): Adjust return values to
36435 correspond to optimisation changes made in r206070.
36436
36437 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
36438
36439 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
36440 from prefetch_block tune setting.
36441 (nocona_cost): Correct size of prefetch block to 64.
36442
36443 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
36444
36445 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
36446 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
36447 used to save the static chain register in the computation of the offset
36448 from which the FP registers need to be restored.
36449
36450 2014-01-04 Jakub Jelinek <jakub@redhat.com>
36451
36452 PR tree-optimization/59519
36453 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
36454 ICE if get_current_def (current_new_name) is already non-NULL, as long
36455 as it is a phi result of some other phi in *new_exit_bb that has
36456 the same argument.
36457
36458 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
36459 or vmovdqu* for misaligned_operand.
36460 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
36461 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
36462 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
36463 aligned_mem for AVX512F masked aligned load and store builtins and for
36464 non-temporal moves.
36465
36466 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
36467
36468 PR tree-optimization/59651
36469 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36470 Address range for negative step should be added by TYPE_SIZE_UNIT.
36471
36472 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
36473
36474 * config/m68k/m68k.c (handle_move_double): Handle pushes with
36475 overlapping registers also for registers other than the stack pointer.
36476
36477 2014-01-03 Marek Polacek <polacek@redhat.com>
36478
36479 PR other/59661
36480 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
36481 __builtin_FILE.
36482
36483 2014-01-03 Jakub Jelinek <jakub@redhat.com>
36484
36485 PR target/59625
36486 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
36487 asm goto as jump.
36488
36489 * config/i386/i386.md (MODE_SIZE): New mode attribute.
36490 (push splitter): Use <P:MODE_SIZE> instead of
36491 GET_MODE_SIZE (<P:MODE>mode).
36492 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
36493 (mov -1, reg peephole2): Likewise.
36494 * config/i386/sse.md (*mov<mode>_internal,
36495 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
36496 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
36497 *<code><mode>3, *andnot<mode>3<mask_name>,
36498 <mask_codefor><code><mode>3<mask_name>): Likewise.
36499 * config/i386/subst.md (mask_mode512bit_condition,
36500 sd_mask_mode512bit_condition): Likewise.
36501
36502 2014-01-02 Xinliang David Li <davidxl@google.com>
36503
36504 PR tree-optimization/59303
36505 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
36506 (dump_predicates): Better output format.
36507 (pred_equal_p): New function.
36508 (is_neq_relop_p): Ditto.
36509 (is_neq_zero_form_p): Ditto.
36510 (pred_expr_equal_p): Ditto.
36511 (pred_neg_p): Ditto.
36512 (simplify_pred): Ditto.
36513 (simplify_preds_2): Ditto.
36514 (simplify_preds_3): Ditto.
36515 (simplify_preds_4): Ditto.
36516 (simplify_preds): Ditto.
36517 (push_pred): Ditto.
36518 (push_to_worklist): Ditto.
36519 (get_pred_info_from_cmp): Ditto.
36520 (is_degenerated_phi): Ditto.
36521 (normalize_one_pred_1): Ditto.
36522 (normalize_one_pred): Ditto.
36523 (normalize_one_pred_chain): Ditto.
36524 (normalize_preds): Ditto.
36525 (normalize_cond_1): Remove function.
36526 (normalize_cond): Ditto.
36527 (is_gcond_subset_of): Ditto.
36528 (is_subset_of_any): Ditto.
36529 (is_or_set_subset_of): Ditto.
36530 (is_and_set_subset_of): Ditto.
36531 (is_norm_cond_subset_of): Ditto.
36532 (pred_chain_length_cmp): Ditto.
36533 (convert_control_dep_chain_into_preds): Type change.
36534 (find_predicates): Ditto.
36535 (find_def_preds): Ditto.
36536 (destroy_predicates_vecs): Ditto.
36537 (find_matching_predicates_in_rest_chains): Ditto.
36538 (use_pred_not_overlap_with_undef_path_pred): Ditto.
36539 (is_pred_expr_subset): Ditto.
36540 (is_pred_chain_subset_of): Ditto.
36541 (is_included_in): Ditto.
36542 (is_superset_of): Ditto.
36543
36544 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36545
36546 Update copyright years.
36547
36548 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36549
36550 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
36551 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
36552 config/arc/arc.md, config/arc/arc.opt,
36553 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
36554 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
36555 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
36556 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
36557 config/linux-protos.h, config/linux.c, config/winnt-c.c,
36558 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
36559 vtable-verify.c, vtable-verify.h: Use the standard form for the
36560 copyright notice.
36561
36562 2014-01-02 Tobias Burnus <burnus@net-b.de>
36563
36564 * gcc.c (process_command): Update copyright notice dates.
36565 * gcov-dump.c: Ditto.
36566 * gcov.c: Ditto.
36567 * doc/cpp.texi: Bump @copying's copyright year.
36568 * doc/cppinternals.texi: Ditto.
36569 * doc/gcc.texi: Ditto.
36570 * doc/gccint.texi: Ditto.
36571 * doc/gcov.texi: Ditto.
36572 * doc/install.texi: Ditto.
36573 * doc/invoke.texi: Ditto.
36574
36575 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36576
36577 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36578
36579 2014-01-01 Jakub Jelinek <jakub@redhat.com>
36580
36581 * config/i386/sse.md (*mov<mode>_internal): Guard
36582 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36583
36584 PR rtl-optimization/59647
36585 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36586 new_rtx into UNSIGNED_FLOAT rtxes.
36587 \f
36588 Copyright (C) 2014 Free Software Foundation, Inc.
36589
36590 Copying and distribution of this file, with or without modification,
36591 are permitted in any medium without royalty provided the copyright
36592 notice and this notice are preserved.