1 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
3 * loop-doloop.c: Include loop-unroll.h.
5 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
7 * cfg.h: New. Header file for cfg.c.
8 * cfganal.h: New. Header file for cfganal.c.
9 * lcm.h: New. Header file for lcm.c.
10 * loop-unroll.h: New. Header file for loop-unroll.h.
11 * cfgloop.h: (unroll_loops): Remove prototype.
12 * basic-block.h: Move prototypes and structs to new header files.
13 Include cfg.h, cfganal.h, and lcm.h.
14 * loop-init.c: Include loop-unroll.h.
15 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
16 * modulo-sched.c: Include loop-unroll.h.
18 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
20 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
21 MARKER_BYTE_UNKNOWN markers when handling casts.
23 2014-10-21 Richard Biener <rguenther@suse.de>
25 * tree-ssa-phiopt.c (value_replacement): Properly verify we
26 are the non-singleton PHI.
28 2014-10-21 Jakub Jelinek <jakub@redhat.com>
30 PR tree-optimization/63563
31 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
32 if either dra or drb stmts are not normal loads/stores.
34 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
36 * config/i386/i386.c (expand_vec_perm_1): Fix
37 expand_vec_perm_palignr case.
38 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
41 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
43 * cfgloopanal.c (seq_cost): Delete.
44 * rtl.h (seq_cost): New prototype.
45 * rtlanal.c (seq_cost): New function.
46 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
48 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
50 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
51 * basic-block.h: Remove prototypes for cfgrtl.c.
52 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
53 prototypes to cfgrtl.h.
54 * profile.h (profile_info): Add extern export declaration.
55 * rtl.h: Remove prototypes for cfgrtl.h.
56 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
57 * ipa-inline.c: Include profile.h.
58 * loop-unroll.c: Ditto.
59 * modulo-sched.c: Ditto.
60 * postreload-gcse.c: Ditto.
65 * tree-ssa-loop-ivcanon.c: Ditto.
67 2014-10-20 Richard Biener <rguenther@suse.de>
69 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
70 operands to get a def operand kind match. Signal mismatches
71 to the parent so we can try swapping its operands.
72 (vect_build_slp_tree): Try swapping operands if they have
73 a mismatched operand kind.
75 2014-10-20 Alan Modra <amodra@gmail.com>
78 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
79 Increase "ops" array size. Correct array size tests. Init
80 n_constants in loop. Break out of innermost loop when finding
81 a trivial CONST expression.
83 2014-10-20 Martin Liska <mliska@suse.cz>
86 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
87 Gimple tempate string is compared.
89 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
91 * varasm.c (const_alias_set): Remove.
92 (init_varasm_once): Remove initialization of const_alias_set.
93 (build_constant_desc): Do not set alias set to const_alias_set.
95 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
97 * configure: Regenerate.
98 * configure.ac: Move the test for section attribute specifier "e" in GAS
99 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
100 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
101 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
102 ifdef HAVE_GAS_SECTION_EXCLUDE.
104 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
106 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
107 match_operand expression.
109 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
110 David Edelsohn <dje.gcc@gmail.com>
112 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
114 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
116 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
118 * doc/invoke.texi (Options to Request or Suppress Warnings):
119 Explain options precedence.
120 (Wtrampolines): Do not indent paragraph.
122 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
124 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
125 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
126 (pa_jump_in_call_delay): Likewise.
127 * config/pa/pa.c (pa_option_override): Remove jump in call delay
129 (pa_output_millicode_call): Remove support for jump in call delay.
130 (pa_output_call): Likewise.
131 (pa_jump_in_call_delay): Delete.
132 (pa_following_call): Likewise.
133 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
134 (uncond_branch): Remove following call check from attribute length.
136 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
139 * config/sh/sh-modes.def (PSI): Remove.
140 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
141 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
142 (sh_reorg): Remove commented out FPSCR code.
143 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
144 insn instead of move insn.
145 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
146 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
148 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
149 (sh1_builtin_p): Uncomment.
150 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
151 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
152 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
153 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
154 (general_movsrc_operand, general_movdst_operand): Disallow
156 * config/sh/sh.md (FPSCR_FR): New constant.
157 (push_fpscr): Emit sts_fpscr insn.
158 (pop_fpscr): Emit lds_fpscr_insn.
159 (movsi_ie): Disallow FPSCR operands.
160 (fpu_switch, unnamed related split, extend_psi_si,
161 truncate_si_psi): Remove insns.
162 (lds_fpscr, sts_fpscr): New insns.
163 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
165 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
167 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
168 (clone_inlined_nodes): Do not overwrite the clone if above predicate
171 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
173 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
174 (expand_vec_perm_d): Ditto.
175 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
176 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
178 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
179 (ix86_expand_sse_unpack): Handle V64QImode.
180 (expand_vec_perm_blend): Update conditions for TARGET, handle
181 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
182 (expand_vec_perm_pshufb): Handle V64QImode.
183 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
184 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
185 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
186 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
187 (ix86_expand_vecop_qihi): Handle V64QImode.
188 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
189 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
190 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
191 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
192 (mul<mode>3): Use VI1_AVX512.
193 (<sse2_avx2>_packsswb): Ditto.
194 (<sse2_avx2>_packuswb): Ditto.
195 (<ssse3_avx2>_pshufb<mode>3): Ditto.
196 (<shift_insn><mode>3): Ditto.
198 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
200 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
201 conditions to fix bootstrap.
203 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
205 gcc-plugin.h: Add tm.h and flattened includes from function.h.
207 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
208 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
209 Anna Tikhonova <anna.tikhonova@intel.com>
210 Ilya Tocar <ilya.tocar@intel.com>
211 Andrey Turetskiy <andrey.turetskiy@intel.com>
212 Ilya Verbin <ilya.verbin@intel.com>
213 Kirill Yukhin <kirill.yukhin@intel.com>
214 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
216 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
217 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
218 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
219 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
220 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
221 (define_expand "vec_init<mode>"): Use VF48_I1248.
223 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
225 Anna Tikhonova <anna.tikhonova@intel.com>
226 Ilya Tocar <ilya.tocar@intel.com>
227 Andrey Turetskiy <andrey.turetskiy@intel.com>
228 Ilya Verbin <ilya.verbin@intel.com>
229 Kirill Yukhin <kirill.yukhin@intel.com>
230 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
232 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
233 expand_sse2_mulvxdi3.
235 2014-10-17 Richard Biener <rguenther@suse.de>
237 * fold-const.c (fold_comparison): Remove redundant constant
238 folding and operand swapping.
239 (fold_binary_loc): Do comparison operand swapping here.
240 (fold_ternary_loc): Canonicalize operand order for
241 commutative ternary operations.
242 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
245 2014-10-17 Jakub Jelinek <jakub@redhat.com>
247 PR tree-optimization/63464
248 * gimple.h (gimple_seq_discard): New prototype.
249 * gimple.c: Include stringpool.h and tree-ssanames.h.
250 (gimple_seq_discard): New function.
251 * optabs.h (lshift_cheap_p): New prototype.
252 * optabs.c (lshift_cheap_p): New function, moved from...
253 * tree-switch-conversion.c (lshift_cheap_p): ... here.
254 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
255 (reassoc_branch_fixups): New variable.
256 (update_range_test): Add otherrangep and seq arguments.
257 Unshare exp. If otherrange is NULL, use for other ranges
258 array of pointers pointed by otherrangep instead.
259 Emit seq before gimplified statements for tem.
260 (optimize_range_tests_diff): Adjust update_range_test
262 (optimize_range_tests_xor): Likewise. Fix up comment.
263 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
265 (optimize_range_tests): Adjust update_range_test caller.
266 Call optimize_range_tests_to_bit_test.
267 (branch_fixup): New function.
268 (execute_reassoc): Call branch_fixup.
270 PR tree-optimization/63302
271 * tree-ssa-reassoc.c (optimize_range_tests_xor,
272 optimize_range_tests_diff): Use !integer_pow2p () instead of
275 2014-10-17 Martin Liska <mliska@suse.cz>
277 * ipa-icf.c (sem_function::merge): Local flags are set to false
278 to enforce equal calling convention to be used.
279 * opts.c (common_handle_option): Indentation fix.
281 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
283 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
285 2014-10-17 Tom de Vries <tom@codesourcery.com>
287 PR rtl-optimization/61605
288 * regcprop.c (copyprop_hardreg_forward_1): Use
289 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
291 2014-10-17 Tom de Vries <tom@codesourcery.com>
293 PR rtl-optimization/61605
294 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
295 notice stores for noops. Don't regard noops as copies.
297 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
299 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
300 register in a special way.
301 (__cpuid_count): Ditto.
302 * config/i386/driver-i386.h: Protect with
303 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
304 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
305 is required to compile the function.
307 2014-10-16 DJ Delorie <dj@redhat.com>
309 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
312 * config/rs6000/rs6000-c.c (rid_int128): New.
313 (rs6000_macro_to_expand): Use instead of RID_INT128.
315 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
317 * function.h: Flatten file. Remove includes, adjust prototypes to
318 reflect only what is in function.h.
319 (enum direction, struct args_size, struct locate_and_pad_arg_data,
320 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
322 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
323 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
324 prototypes to predict.h.
325 (init_varasm_status): Move prototype to varasm.h.
326 * expr.h: Adjust include files.
327 (enum direction, struct args_size, struct locate_and_pad_arg_data,
328 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
330 (locate_and_pad_parm): Move prototype to function.h.
331 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
332 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
333 assign_temp, reposition_prologue_and_epilogue_notes,
334 prologue_epilogue_contains, sibcall_epilogue_contains,
335 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
336 set_return_jump_label): Move prototypes to function.h.
337 * predict.h (optimize_function_for_size_p,
338 optimize_function_for_speed_p): Relocate prototypes from function.h.
339 * shrink-wrap.h (emit_return_into_block, active_insn_between,
340 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
342 * varasm.h (init_varasm_status): Relocate prototype from function.h.
343 * genattrtab.c (write_header): Add predict.h to include list.
344 * genconditions.c (write_header): Add predict.h to include list.
345 * genemit.c (main): Adjust header file includes.
346 * gengtype.c (ifiles): Add flattened function.h header files.
347 * genoutput.c (output_prologue): Add predict.h to include list.
348 * genpreds.c (write_insn_preds_c): Adjust header file includes.
349 * genrecog.c (write_header): Add flattened function.h header files.
350 * alias.c: Adjust include files.
351 * auto-inc-dec.c: Likewise.
352 * basic-block.h: Likewise.
353 * bb-reorder.c: Likewise.
354 * bt-load.c: Likewise.
355 * builtins.c: Likewise.
356 * caller-save.c: Likewise.
358 * cfgbuild.c: Likewise.
359 * cfgcleanup.c: Likewise.
360 * cfgexpand.c: Likewise.
361 * cfgloop.c: Likewise.
362 * cfgloop.h: Likewise.
363 * cfgrtl.c: Likewise.
364 * cgraph.h: Likewise.
365 * cgraphclones.c: Likewise.
366 * cgraphunit.c: Likewise.
367 * combine-stack-adj.c: Likewise.
368 * combine.c: Likewise.
369 * coverage.c: Likewise.
372 * cselib.c: Likewise.
373 * dbxout.c: Likewise.
375 * df-core.c: Likewise.
376 * df-problems.c: Likewise.
377 * df-scan.c: Likewise.
378 * dojump.c: Likewise.
379 * dwarf2cfi.c: Likewise.
380 * dwarf2out.c: Likewise.
381 * emit-rtl.c: Likewise.
382 * except.c: Likewise.
383 * explow.c: Likewise.
386 * function.c: Likewise.
388 * gimple-fold.c: Likewise.
389 * gimple-low.c: Likewise.
390 * gimple-streamer.h: Likewise.
391 * haifa-sched.c: Likewise.
396 * loop-invariant.c: Likewise.
397 * lra-assigns.c: Likewise.
398 * lra-coalesce.c: Likewise.
399 * lra-constraints.c: Likewise.
400 * lra-eliminations.c: Likewise.
401 * lra-lives.c: Likewise.
402 * lra-spills.c: Likewise.
404 * lto-cgraph.c: Likewise.
405 * lto-section-in.c: Likewise.
406 * lto-section-out.c: Likewise.
407 * lto-streamer-in.c: Likewise.
408 * lto-streamer-out.c: Likewise.
409 * mode-switching.c: Likewise.
410 * modulo-sched.c: Likewise.
411 * omp-low.c: Likewise.
412 * optabs.c: Likewise.
413 * passes.c: Likewise.
414 * postreload-gcse.c: Likewise.
415 * postreload.c: Likewise.
416 * predict.c: Likewise.
417 * profile.c: Likewise.
420 * reg-stack.c: Likewise.
421 * regcprop.c: Likewise.
422 * reginfo.c: Likewise.
423 * regrename.c: Likewise.
424 * reload.c: Likewise.
425 * reload1.c: Likewise.
427 * resource.c: Likewise.
428 * rtlanal.c: Likewise.
429 * sched-deps.c: Likewise.
430 * sched-ebb.c: Likewise.
431 * sched-rgn.c: Likewise.
432 * sel-sched-dump.c: Likewise.
433 * sel-sched-ir.c: Likewise.
434 * sel-sched.c: Likewise.
435 * shrink-wrap.c: Likewise.
436 * simplify-rtx.c: Likewise.
437 * statistics.c: Likewise.
439 * stor-layout.c: Likewise.
440 * store-motion.c: Likewise.
441 * symtab.c: Likewise.
442 * targhooks.c: Likewise.
443 * toplev.c: Likewise.
444 * trans-mem.c: Likewise.
445 * tree-cfg.c: Likewise.
446 * tree-cfgcleanup.c: Likewise.
447 * tree-dfa.c: Likewise.
448 * tree-eh.c: Likewise.
449 * tree-inline.c: Likewise.
450 * tree-into-ssa.c: Likewise.
451 * tree-nested.c: Likewise.
452 * tree-nrv.c: Likewise.
453 * tree-profile.c: Likewise.
454 * tree-ssa-alias.c: Likewise.
455 * tree-ssa-ccp.c: Likewise.
456 * tree-ssa-copy.c: Likewise.
457 * tree-ssa-copyrename.c: Likewise.
458 * tree-ssa-dom.c: Likewise.
459 * tree-ssa-operands.c: Likewise.
460 * tree-ssa-propagate.c: Likewise.
461 * tree-ssa-structalias.c: Likewise.
462 * tree-ssa-tail-merge.c: Likewise.
463 * tree-ssa-threadedge.c: Likewise.
464 * tree-ssa-threadupdate.c: Likewise.
465 * tree-ssa-uncprop.c: Likewise.
466 * tree-ssa-uninit.c: Likewise.
467 * tree-ssa.c: Likewise.
468 * tree-stdarg.c: Likewise.
469 * tree-tailcall.c: Likewise.
472 * valtrack.c: Likewise.
473 * varasm.c: Likewise.
474 * vmsdbgout.c: Likewise.
476 * config/aarch64/aarch64.c: Add flattened includes from function.h.
477 * config/alpha/alpha.c: Likewise.
478 * config/arc/arc.c: Likewise.
479 * config/arm/arm.c: Likewise.
480 * config/avr/avr-log.c: Likewise.
481 * config/avr/avr.c: Likewise.
482 * config/bfin/bfin.c: Likewise.
483 * config/c6x/c6x.c: Likewise.
484 * config/cr16/cr16.c: Likewise.
485 * config/cris/cris.c: Likewise.
486 * config/darwin.c: Likewise.
487 * config/epiphany/epiphany.c: Likewise.
488 * config/epiphany/mode-switch-use.c: Likewise.
489 * config/epiphany/resolve-sw-modes.c: Likewise.
490 * config/fr30/fr30.c: Likewise.
491 * config/frv/frv.c: Likewise.
492 * config/h8300/h8300.c: Likewise.
493 * config/i386/i386.c: Likewise.
494 * config/ia64/ia64.c: Likewise.
495 * config/iq2000/iq2000.c: Likewise.
496 * config/lm32/lm32.c: Likewise.
497 * config/m32c/m32c.c: Likewise.
498 * config/m32r/m32r.c: Likewise.
499 * config/m68k/m68k.c: Likewise.
500 * config/mcore/mcore.c: Likewise.
501 * config/mep/mep-pragma.c: Likewise.
502 * config/mep/mep.c: Likewise.
503 * config/microblaze/microblaze.c: Likewise.
504 * config/mips/mips.c: Likewise.
505 * config/mmix/mmix.c: Likewise.
506 * config/mn10300/mn10300.c: Likewise.
507 * config/moxie/moxie.c: Likewise.
508 * config/msp430/msp430.c: Likewise.
509 * config/nds32/nds32-cost.c: Likewise.
510 * config/nds32/nds32-fp-as-gp.c: Likewise.
511 * config/nds32/nds32-intrinsic.c: Likewise.
512 * config/nds32/nds32-isr.c: Likewise.
513 * config/nds32/nds32-md-auxiliary.c: Likewise.
514 * config/nds32/nds32-memory-manipulation.c: Likewise.
515 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
516 * config/nds32/nds32-predicates.c: Likewise.
517 * config/nds32/nds32.c: Likewise.
518 * config/nios2/nios2.c: Likewise.
519 * config/pa/pa.c: Likewise.
520 * config/pdp11/pdp11.c: Likewise.
521 * config/rl78/rl78.c: Likewise.
522 * config/rs6000/rs6000.c: Likewise.
523 * config/rx/rx.c: Likewise.
524 * config/s390/s390.c: Likewise.
525 * config/score/score.c: Likewise.
526 * config/sh/sh.c: Likewise.
527 * config/sparc/sparc.c: Likewise.
528 * config/spu/spu.c: Likewise.
529 * config/stormy16/stormy16.c: Likewise.
530 * config/tilegx/tilegx.c: Likewise.
531 * config/tilepro/tilepro.c: Likewise.
532 * config/v850/v850.c: Likewise.
533 * config/vax/vax.c: Likewise.
534 * config/xtensa/xtensa.c: Likewise.
536 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
538 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
539 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
541 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
543 * config/sh/sh-protos.h (fldi_ok): Remove.
544 * config/sh/sh.c (fldi_ok): Likewise.
545 (sh_secondary_reload): Don't use fldi_ok.
546 * config/sh/constraints.md (G constraint, H constraint): Don't use
549 2014-10-16 Martin Liska <mliska@suse.cz>
551 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
552 Cast to unsigned long.
553 (sem_item_optimizer::dump_cong_classes): Likewise.
555 2014-10-16 Tom de Vries <tom@codesourcery.com>
557 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
558 with SSA_NAME_IN_FREELIST.
560 2014-10-16 Richard Biener <rguenther@suse.de>
563 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
564 (fold_builtin_strncat_chk): Move ...
565 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
566 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
568 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
571 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
574 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
575 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
576 Anna Tikhonova <anna.tikhonova@intel.com>
577 Ilya Tocar <ilya.tocar@intel.com>
578 Andrey Turetskiy <andrey.turetskiy@intel.com>
579 Ilya Verbin <ilya.verbin@intel.com>
580 Kirill Yukhin <kirill.yukhin@intel.com>
581 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
583 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
586 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
587 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
588 Anna Tikhonova <anna.tikhonova@intel.com>
589 Ilya Tocar <ilya.tocar@intel.com>
590 Andrey Turetskiy <andrey.turetskiy@intel.com>
591 Ilya Verbin <ilya.verbin@intel.com>
592 Kirill Yukhin <kirill.yukhin@intel.com>
593 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
595 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
596 V16SI, V32HI, V64QI modes.
598 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
601 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
602 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
604 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
605 to match fp insn patterns.
606 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
608 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
609 expand_df_unop, expand_df_binop): Remove.
610 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
611 FPSCR_STAT_REG as not call clobbered.
612 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
613 invoking fpscr_set_from_mem.
615 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
616 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
618 (REGISTER_NAMES): Adjust.
619 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
620 (FIRST_PSEUDO_REGISTER): Increase to 156.
621 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
622 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
624 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
625 FPSCR_MODES_REG and FPSCR_STAT_REG.
626 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
628 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
629 FPSCR_SZ): Add new constants.
630 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
632 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
633 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
634 Use TARGET_FPU_ANY condition.
635 (fpu_switch peephole2): Remove.
636 (fpu_switch split): Use simple_mem_operand to capture the mem and
637 adjust split implementation.
638 (extend_psi_si, truncate_si_psi): New insns.
639 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
640 set of FPSCR_MODES_REG.
642 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
643 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
644 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
645 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
646 call_value_compact, call_value_compact_rettramp, call,
647 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
648 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
649 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
650 sibcall_value_compact, sibcall_value, call_value_pop_compact,
651 call_value_pop_compact_rettramp, various unnamed splits):
652 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
655 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
656 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
657 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
658 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
659 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
661 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
662 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
663 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
664 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
665 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
666 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
667 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
669 2014-10-16 Martin Liska <mliska@suse.cz>
670 Jan Hubicka <hubicka@ucw.cz>
672 * Makefile.in: New object files included.
673 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
675 (verify_edge_corresponds_to_fndecl): More sensitive verification
676 of nodes that are merged by IPA ICF.
677 * cgraph.h (cgraph_node::num_references): New function.
678 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
679 * common.opt: New options ipa-icf, ipa-icf-functions and
680 ipa-icf-variables introduced.
681 * doc/invoke.texi: Documentation of new options introduced.
682 * ipa-icf-gimple.c: New file.
683 * ipa-icf-gimple.h: New file.
684 * ipa-icf.c: New file.
685 * ipa-icf.h: New file.
686 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
687 (input_overwrite_node): Likewise.
688 * lto-section-in.c: New icf section added.
689 * lto-streamer.h (enum lto_section_type): Likewise.
690 * opts.c (common_handle_option): New option added.
691 * passes.def: New pass included.
692 * timevar.def: Time variable for IPA ICF added.
693 * tree-pass.h: New IPA ICF pass entry point added.
695 2014-10-16 Richard Biener <rguenther@suse.de>
697 PR tree-optimization/63168
698 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
699 latches if after merging they are no longer simple.
700 * cfghooks.c (merge_blocks): Handle merging a latch block
703 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
705 Anna Tikhonova <anna.tikhonova@intel.com>
706 Ilya Tocar <ilya.tocar@intel.com>
707 Andrey Turetskiy <andrey.turetskiy@intel.com>
708 Ilya Verbin <ilya.verbin@intel.com>
709 Kirill Yukhin <kirill.yukhin@intel.com>
710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
713 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
714 support AVX-512VL instructions.
716 2014-10-16 DJ Delorie <dj@redhat.com>
718 * tree-core.h: Fix comment to not assume pointers are multiples of
721 2014-10-15 Tom Tromey <tromey@redhat.com>
723 * timevar.h (class auto_timevar): New class.
725 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
728 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
729 Remove the second alternative.
730 (regprefix): Remove mode attribute.
731 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
732 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
735 2013-11-05 Ian Lance Taylor <iant@google.com>
737 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
738 If possible, add .cfi directives to record change to bx.
739 * config/i386/i386.c (ix86_emit_cfi): New function.
740 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
742 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
745 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
747 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
750 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
752 PR rtl-optimization/63448
753 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
754 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
755 (LRA_MAX_INHERITANCE_PASSES): Use it.
756 (lra_constraint_iter_after_spill): Remove.
757 (lra_assignment_iter): New.
758 (lra_assignment_iter_after_spill): New.
759 * lra-assigns.c (lra_assignment_iter): New.
760 (lra_assignment_iter_after_spill): New.
761 (former_reload_pseudo_spill_p): New.
762 (spill_for): Set up former_reload_pseudo_spill_p.
763 (setup_live_pseudos_and_spill_after_risky): Ditto.
764 (assign_by_spills): Ditto.
765 (lra_assign): Increment lra_assignment_iter. Print the iteration
766 number. Reset former_reload_pseudo_spill_p. Check
767 lra_assignment_iter_after_spill.
768 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
769 lra_assignment_iter and lra_assignment_iter_after_spill.
770 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
771 (lra_constraints): Remove code with
772 lra_assignment_iter_after_spill.
774 2014-10-15 Teresa Johnson <tejohnson@google.com>
777 * tree-ssa-threadupdate.c (recompute_probabilities): Better
780 2014-10-15 Renlin Li <renlin.li@arm.com>
782 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
783 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
784 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
785 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
787 2014-10-15 Richard Biener <rguenther@suse.de>
789 * gimple-fold.c (gimple_fold_call): Properly keep virtual
790 SSA form up-to-date when devirtualizing a call to
791 __builtin_unreachable and avoid fixing up EH info here.
793 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
794 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
795 Anna Tikhonova <anna.tikhonova@intel.com>
796 Ilya Tocar <ilya.tocar@intel.com>
797 Andrey Turetskiy <andrey.turetskiy@intel.com>
798 Ilya Verbin <ilya.verbin@intel.com>
799 Kirill Yukhin <kirill.yukhin@intel.com>
800 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
802 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
803 to support AVX-512BW.
804 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
805 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
806 (define_insn "*<plusminus_insn><mode>3"): Ditto.
807 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
808 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
809 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
810 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
811 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
812 (define_insn "*andnot<mode>3"): Ditto.
813 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
814 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
815 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
816 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
817 (define_insn "*abs<mode>2"): Remove masking support.
818 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
819 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
820 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
822 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
823 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
824 Anna Tikhonova <anna.tikhonova@intel.com>
825 Ilya Tocar <ilya.tocar@intel.com>
826 Andrey Turetskiy <andrey.turetskiy@intel.com>
827 Ilya Verbin <ilya.verbin@intel.com>
828 Kirill Yukhin <kirill.yukhin@intel.com>
829 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
831 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
833 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
834 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
835 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
836 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
837 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
838 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
839 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
841 2014-10-15 Renlin Li <renlin.li@arm.com>
843 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
845 2014-10-15 Jakub Jelinek <jakub@redhat.com>
847 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
848 MINUS_EXPR in unsigned type to avoid undefined behavior.
850 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
852 * stor-layout.c (self_referential_size): Do not promote arguments.
854 2014-10-15 Marek Polacek <polacek@redhat.com>
856 * doc/invoke.texi: Update to reflect that GNU11 is the default
858 * c-common.h (c_language_kind): Update comment.
860 2014-10-15 Richard Biener <rguenther@suse.de>
862 * hash-table.c: Include bconfig.h if building for the host.
863 * hash-table.h: Do not include ggc.h on the host but just declare
864 a few ggc allocation templates.
866 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
867 Jeff Law <law@redhat.com>
869 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
870 multiple hard registers, use smaller mode derived from MODE.
872 2014-10-15 Andreas Schwab <schwab@suse.de>
874 * explow.c (convert_memory_address_addr_space_1): Mark in_const
877 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
879 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
880 (decide_unrolling): ... this one.
881 (peel_loops_completely): Remove.
882 (decide_peel_simple): Remove.
883 (decide_peel_once_rolling): Remove.
884 (decide_peel_completely): Remove.
885 (peel_loop_simple): Remove.
886 (peel_loop_completely): Remove.
887 (unroll_and_peel_loops): Rename to ...
888 (unroll_loops): ... this one; handle only unrolling.
889 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
892 (unroll_and_peel_loops): Remove.
894 * passes.def: Replace
895 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
896 * loop-init.c (gate_rtl_unroll_and_peel_loops,
897 rtl_unroll_and_peel_loops): Rename to ...
898 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
899 (pass_rtl_unroll_and_peel_loops): Rename to ...
900 (pass_rtl_unroll_loops): ... this one.
901 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
902 (make_pass_rtl_unroll_loops): New.
903 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
904 (canonicalize_loop_induction_variables): Update.
906 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
908 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
909 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
910 !TARGET_HARD_FLOAT_POSTINC.
911 (*lsip, *ssip): new instructions.
913 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
915 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
918 2014-10-14 Andrew Pinski <apinski@cavium.com>
920 * explow.c (convert_memory_address_addr_space): Rename to ...
921 (convert_memory_address_addr_space_1): This. Add in_const argument.
922 Inside a CONST RTL, permute the conversion and addition of constant
923 for zero and sign extended pointers.
924 (convert_memory_address_addr_space): New function.
926 2014-10-14 Andrew Pinski <apinski@cavium.com>
929 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
932 * explow.c (convert_memory_address_addr_space): Also permute the
933 conversion and addition of constant for zero-extend.
935 2014-10-14 DJ Delorie <dj@redhat.com>
937 * config/msp430/msp430-modes.def (PSI): Add.
939 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
940 (msp430_hard_regno_nregs_with_padding): New.
941 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
942 (msp430_hard_regno_nregs_has_padding): New.
943 (msp430_hard_regno_nregs_with_padding): New.
944 (msp430_unwind_word_mode): Use PSImode instead of SImode.
945 (msp430_addr_space_legitimate_address_p): New.
946 (msp430_asm_integer): New.
947 (msp430_init_dwarf_reg_sizes_extra): New.
948 (msp430_print_operand): Use X suffix for PSImode even in small model.
949 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
950 (PTR_SIZE): ...but 4 bytes for EH.
951 (SIZE_TYPE): Use __int20.
952 (PTRDIFF_TYPE): Likewise.
953 (INCOMING_FRAME_SP_OFFSET): Adjust.
954 * config/msp430/msp430.md (movqi_topbyte): New.
955 (movpsi): Use fixed suffixes.
956 (movsipsi2): Enable for 430X, not large model.
957 (extendhipsi2): Likewise.
958 (zero_extendhisi2): Likewise.
959 (zero_extendhisipsi2): Likewise.
960 (extend_and_shift1_hipsi2): Likewise.
961 (extendpsisi2): Likewise.
962 (*bitbranch<mode>4_z): Fix suffix logic.
964 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
967 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
968 do not choke on null node.
969 <VAR_DECL>: Likewise.
971 2014-10-14 DJ Delorie <dj@redhat.com>
973 * machmode.h (int_n_data_t): New.
974 (int_n_enabled_p): New.
976 * tree.c (int_n_enabled_p): New.
978 (make_or_reuse_type): Check for all __intN types, not just
980 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
982 * tree.h (int128_integer_type_node): Remove.
983 (int128_unsigned_type_node): Remove.
984 (int_n_trees_t): New.
985 (int_n_enabled_p): New.
987 * toplev.c (standard_type_bitsize): New.
988 (do_compile): Check which __intN types are enabled for the current
990 * builtin-types.def (BT_INT128): Remove.
991 (BT_UINT128): Remove.
992 * machmode.def: Add macro to create __int128 for all targets.
993 * stor-layout.c (mode_for_size): Support __intN types.
994 (smallest_mode_for_size): Likewise.
995 (initialize_sizetypes): Support __intN types.
996 * genmodes.c (struct mode_data): Add int_n field.
997 (blank_mode): Likewise.
1000 (emit_insn_modes_h): Count __intN entries and define
1002 (emit_mode_int_n): New.
1003 (emit_insn_modes_c): Call it.
1004 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1005 types, not just __int128.
1006 * tree-core.h (integer_type_kind): Remove __int128-specific
1007 entries, reserve spots for __intN entries.
1009 * config/msp430/msp430-modes.def (PSI): Add.
1011 2014-10-14 Kito Cheng <kito@0xlab.org>
1013 * ira.c: Fix typo in comment.
1015 * ira-build.c: Ditto.
1016 * ira-color.c: Ditto.
1017 * ira-emit.c: Ditto.
1019 * ira-lives.c: Ditto.
1021 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1023 PR rtl-optimization/63475
1024 * alias.c (true_dependence_1): Always use get_addr to extract
1025 true address operands from x_addr and mem_addr. Use extracted
1026 address operands to check for references with alignment ANDs.
1027 Use extracted address operands with find_base_term and
1028 base_alias_check. For noncanonicalized operands call canon_rtx with
1029 extracted address operand.
1030 (write_dependence_1): Ditto.
1031 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1033 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1036 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1039 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1041 Anna Tikhonova <anna.tikhonova@intel.com>
1042 Ilya Tocar <ilya.tocar@intel.com>
1043 Andrey Turetskiy <andrey.turetskiy@intel.com>
1044 Ilya Verbin <ilya.verbin@intel.com>
1045 Kirill Yukhin <kirill.yukhin@intel.com>
1046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1048 * config/i386/i386.c
1049 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1050 (ix86_expand_int_vcond): Ditto.
1052 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1053 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1054 Anna Tikhonova <anna.tikhonova@intel.com>
1055 Ilya Tocar <ilya.tocar@intel.com>
1056 Andrey Turetskiy <andrey.turetskiy@intel.com>
1057 Ilya Verbin <ilya.verbin@intel.com>
1058 Kirill Yukhin <kirill.yukhin@intel.com>
1059 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1061 * config/i386/i386.c
1062 (emit_reduc_half): Handle V64QI and V32HI mode.
1063 * config/i386/sse.md
1064 (define_mode_iterator VI_AVX512BW): New.
1065 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1067 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1068 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1069 Anna Tikhonova <anna.tikhonova@intel.com>
1070 Ilya Tocar <ilya.tocar@intel.com>
1071 Andrey Turetskiy <andrey.turetskiy@intel.com>
1072 Ilya Verbin <ilya.verbin@intel.com>
1073 Kirill Yukhin <kirill.yukhin@intel.com>
1074 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1076 * config/i386/sse.md
1077 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1079 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1081 Anna Tikhonova <anna.tikhonova@intel.com>
1082 Ilya Tocar <ilya.tocar@intel.com>
1083 Andrey Turetskiy <andrey.turetskiy@intel.com>
1084 Ilya Verbin <ilya.verbin@intel.com>
1085 Kirill Yukhin <kirill.yukhin@intel.com>
1086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1088 * config/i386/i386.c
1089 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1090 * config/i386/sse.md
1091 (define_mode_iterator VI): Add V64QI and V32HI modes.
1093 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1094 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1095 Anna Tikhonova <anna.tikhonova@intel.com>
1096 Ilya Tocar <ilya.tocar@intel.com>
1097 Andrey Turetskiy <andrey.turetskiy@intel.com>
1098 Ilya Verbin <ilya.verbin@intel.com>
1099 Kirill Yukhin <kirill.yukhin@intel.com>
1100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1102 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1104 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1105 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1106 Anna Tikhonova <anna.tikhonova@intel.com>
1107 Ilya Tocar <ilya.tocar@intel.com>
1108 Andrey Turetskiy <andrey.turetskiy@intel.com>
1109 Ilya Verbin <ilya.verbin@intel.com>
1110 Kirill Yukhin <kirill.yukhin@intel.com>
1111 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1113 * config/i386/sse.md
1114 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1115 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1117 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1118 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1119 Anna Tikhonova <anna.tikhonova@intel.com>
1120 Ilya Tocar <ilya.tocar@intel.com>
1121 Andrey Turetskiy <andrey.turetskiy@intel.com>
1122 Ilya Verbin <ilya.verbin@intel.com>
1123 Kirill Yukhin <kirill.yukhin@intel.com>
1124 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1126 * config/i386/sse.md
1127 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1128 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1130 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1131 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1132 Anna Tikhonova <anna.tikhonova@intel.com>
1133 Ilya Tocar <ilya.tocar@intel.com>
1134 Andrey Turetskiy <andrey.turetskiy@intel.com>
1135 Ilya Verbin <ilya.verbin@intel.com>
1136 Kirill Yukhin <kirill.yukhin@intel.com>
1137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1139 * config/i386/sse.md
1140 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1141 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1142 (define_expand "mul<mode>3<mask_name>"): Add masking.
1143 (define_insn "*mul<mode>3<mask_name>"): Ditto.
1144 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1145 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1146 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1147 (define_mode_attr SDOT_PMADD_SUF): Ditto.
1148 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1149 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1150 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1151 (define_insn "avx2_packusdw"): Delete.
1152 (define_insn "sse4_1_packusdw"): Ditto.
1153 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1155 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1156 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1157 Anna Tikhonova <anna.tikhonova@intel.com>
1158 Ilya Tocar <ilya.tocar@intel.com>
1159 Andrey Turetskiy <andrey.turetskiy@intel.com>
1160 Ilya Verbin <ilya.verbin@intel.com>
1161 Kirill Yukhin <kirill.yukhin@intel.com>
1162 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1164 * config/i386/sse.md
1165 (define_insn "vec_dup<mode>"): Update constraints.
1167 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1168 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1169 Anna Tikhonova <anna.tikhonova@intel.com>
1170 Ilya Tocar <ilya.tocar@intel.com>
1171 Andrey Turetskiy <andrey.turetskiy@intel.com>
1172 Ilya Verbin <ilya.verbin@intel.com>
1173 Kirill Yukhin <kirill.yukhin@intel.com>
1174 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1176 * config/i386/sse.md
1177 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1178 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1179 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1181 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1182 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1183 Anna Tikhonova <anna.tikhonova@intel.com>
1184 Ilya Tocar <ilya.tocar@intel.com>
1185 Andrey Turetskiy <andrey.turetskiy@intel.com>
1186 Ilya Verbin <ilya.verbin@intel.com>
1187 Kirill Yukhin <kirill.yukhin@intel.com>
1188 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1190 * config/i386/sse.md
1191 (define_expand "mul<mode>3<mask_name>"): Add masking.
1193 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1194 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1195 Anna Tikhonova <anna.tikhonova@intel.com>
1196 Ilya Tocar <ilya.tocar@intel.com>
1197 Andrey Turetskiy <andrey.turetskiy@intel.com>
1198 Ilya Verbin <ilya.verbin@intel.com>
1199 Kirill Yukhin <kirill.yukhin@intel.com>
1200 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1202 * config/i386/sse.md
1203 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1204 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1206 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1207 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1208 Anna Tikhonova <anna.tikhonova@intel.com>
1209 Ilya Tocar <ilya.tocar@intel.com>
1210 Andrey Turetskiy <andrey.turetskiy@intel.com>
1211 Ilya Verbin <ilya.verbin@intel.com>
1212 Kirill Yukhin <kirill.yukhin@intel.com>
1213 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1215 * config/i386/sse.md
1216 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1217 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1218 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1221 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1222 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1223 Anna Tikhonova <anna.tikhonova@intel.com>
1224 Ilya Tocar <ilya.tocar@intel.com>
1225 Andrey Turetskiy <andrey.turetskiy@intel.com>
1226 Ilya Verbin <ilya.verbin@intel.com>
1227 Kirill Yukhin <kirill.yukhin@intel.com>
1228 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1230 * config/i386/sse.md
1231 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1232 use VF_128_256 mode iterator and update assembler emit code.
1233 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1234 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1235 Add masking, use VF_128_256 mode iterator.
1236 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1237 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1238 Add masking, use VF_128_256 mode iterator and update assembler emit
1240 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1241 (define_mode_attr avx512flogicsuff): Delete.
1242 (define_insn "avx512f_<logic><mode>"): Ditto.
1243 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1245 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1247 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1249 Anna Tikhonova <anna.tikhonova@intel.com>
1250 Ilya Tocar <ilya.tocar@intel.com>
1251 Andrey Turetskiy <andrey.turetskiy@intel.com>
1252 Ilya Verbin <ilya.verbin@intel.com>
1253 Kirill Yukhin <kirill.yukhin@intel.com>
1254 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1256 * config/i386/sse.md
1257 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1258 (define_expand "vashr<mode>3<mask_name>"): Add masking,
1259 use VI12_128 mode iterator.
1260 (define_expand "ashrv2di3<mask_name>"): New.
1262 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1264 Anna Tikhonova <anna.tikhonova@intel.com>
1265 Ilya Tocar <ilya.tocar@intel.com>
1266 Andrey Turetskiy <andrey.turetskiy@intel.com>
1267 Ilya Verbin <ilya.verbin@intel.com>
1268 Kirill Yukhin <kirill.yukhin@intel.com>
1269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1271 * config/i386/i386.c
1272 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1273 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1274 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1275 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1276 CODE_FOR_avx512vl_ucmpv4si3_mask.
1277 * config/i386/sse.md
1278 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1279 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1281 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1282 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1283 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1284 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1285 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1286 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1288 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1289 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1290 Anna Tikhonova <anna.tikhonova@intel.com>
1291 Ilya Tocar <ilya.tocar@intel.com>
1292 Andrey Turetskiy <andrey.turetskiy@intel.com>
1293 Ilya Verbin <ilya.verbin@intel.com>
1294 Kirill Yukhin <kirill.yukhin@intel.com>
1295 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1297 * config/i386/sse.md
1298 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1299 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1300 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1301 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1302 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1303 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1304 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1305 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1306 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1308 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1309 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1310 Anna Tikhonova <anna.tikhonova@intel.com>
1311 Ilya Tocar <ilya.tocar@intel.com>
1312 Andrey Turetskiy <andrey.turetskiy@intel.com>
1313 Ilya Verbin <ilya.verbin@intel.com>
1314 Kirill Yukhin <kirill.yukhin@intel.com>
1315 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1317 * config/i386/sse.md
1318 (define_insn "avx512f_blendm<mode>"): Delete.
1319 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1320 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1321 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1322 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1324 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1327 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1330 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1332 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1333 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1334 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1335 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1338 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1341 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1343 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1346 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1349 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1352 2014-10-14 Richard Biener <rguenther@suse.de>
1354 PR tree-optimization/63512
1355 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1358 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
1361 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1362 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
1364 (negsf2_i): Rename to *negsf2_i.
1365 (abssf2_i): Rename to *abssf2_i.
1366 (negdf2_i): Rename to *negdf2_i.
1367 (absdf2_i): Rename to *absdf2_i.
1369 2014-10-14 Felix Yang <felix.yang@huawei.com>
1370 Jeff Law <law@redhat.com>
1372 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1373 "replace" into boolean bitfields; turn member "loop_depth" into a short
1374 integer; add new member "no_equiv" and "reserved".
1375 (no_equiv): Set no_equiv of struct equivalence if register is marked
1376 as having no known equivalence.
1377 (update_equiv_regs): Check all definitions for a multiple-set
1378 register to make sure that the RHS have the same value.
1380 2014-10-13 Richard Henderson <rth@redhat.com>
1382 * combine-stack-adj.c (no_unhandled_cfa): New.
1383 (maybe_merge_cfa_adjust): New.
1384 (combine_stack_adjustments_for_block): Use them.
1386 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
1388 * Makefile.in (TAGS): Tag ../include files.
1390 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1392 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1393 to rs6000_dbx_register_number.
1394 (DWARF_FRAME_REGNUM): Redefine as identity map.
1395 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1396 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1397 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1398 argument to handle .debug_frame and .eh_frame directly. Always
1399 translate SPE high register numbers. Add special treatment for CR,
1400 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
1402 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1403 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1404 (RS6000_USE_DWARF_NUMBERING): Define.
1405 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1406 (RS6000_USE_DWARF_NUMBERING): Define.
1407 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1408 (RS6000_USE_DWARF_NUMBERING): Define.
1409 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1410 (RS6000_USE_DWARF_NUMBERING): Define.
1411 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1412 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1414 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1416 * config/i386/i386.c (ix86_address_cost): Lower cost for
1417 when address contains GOT register.
1419 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
1420 Vladimir Makarov <vmakarov@redhat.com>
1424 PR rtl-optimization/55458
1425 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1426 (ix86_init_pic_reg): New.
1427 (ix86_select_alt_pic_regnum): Add check on pseudo register.
1428 (ix86_save_reg): Likewise.
1429 (ix86_expand_prologue): Remove PIC register initialization
1430 now performed in ix86_init_pic_reg.
1431 (ix86_output_function_epilogue): Add check on pseudo register.
1432 (set_pic_reg_ever_alive): New.
1433 (legitimize_pic_address): Replace df_set_regs_ever_live with new
1434 set_pic_reg_ever_alive.
1435 (legitimize_tls_address): Likewise.
1436 (ix86_pic_register_p): New check.
1437 (ix86_delegitimize_address): Add check on pseudo register.
1438 (ix86_expand_call): Insert move from pseudo PIC register to ABI
1439 defined REAL_PIC_OFFSET_TABLE_REGNUM.
1440 (TARGET_INIT_PIC_REG): New.
1441 (TARGET_USE_PSEUDO_PIC_REG): New.
1442 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
1443 if pic_offset_table_rtx exists.
1444 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
1446 * doc/tm.texi: Regenerate.
1447 * function.c (assign_parms): Generate pseudo register for PIC.
1448 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
1450 * ira-color.c (color_pass): Add check on pseudo register.
1451 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
1453 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
1455 (ira): Add target specific PIC register initialization.
1456 (do_reload): Keep PIC pseudo register.
1457 * lra-assigns.c (spill_for): Add checks on pseudo register.
1458 * lra-constraints.c (contains_symbol_ref_p): New.
1459 (lra_constraints): Enable lra risky transformations when PIC is pseudo
1461 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
1462 * target.def (use_pseudo_pic_reg): New.
1463 (init_pic_reg): New.
1465 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1467 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
1468 Remove m_SILVERMONT and m_INTEL from the tune.
1470 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1473 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
1474 when _HPUX_SOURCE is defined.
1476 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1478 PR tree-optimization/62127
1479 * tree.c (remap_type_1): When remapping array, remap
1482 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
1484 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
1485 longer impact parallelization.
1487 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1490 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
1492 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
1494 * asan.c (instrument_derefs): BIT_FIELD_REF added.
1496 2014-10-13 Richard Biener <rguenther@suse.de>
1498 PR tree-optimization/63419
1499 * gimple-fold.h (gimple_convert): New function.
1500 * gimple-fold.c (gimple_convert): Likewise.
1501 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
1502 to split out required conversions early.
1504 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
1506 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
1507 Add the parts of an insn in reverse order, with the pattern at
1508 the top of the queue. Detect when we're iterating over a SEQUENCE
1509 pattern and in that case just consider patterns of subinstructions.
1511 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
1514 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
1516 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
1518 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
1519 address. Use def chains to handle GBR clobbering call insns.
1521 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1523 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
1524 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
1525 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
1526 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
1527 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
1528 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
1529 * doc/gty.texi (for_user): Document new option.
1530 * gengtype.c (create_user_defined_type): Don't try to get a struct for
1532 (walk_type): Don't error out on for_user option.
1533 (write_func_for_structure): Emit user marking routines if requested by
1535 (write_local_func_for_structure): Likewise.
1536 (main): Mark types with for_user option as used.
1537 * ggc.h (gt_pch_nx): Add overload for unsigned int.
1538 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
1539 * hash-table.h (ggc_hasher): New struct.
1540 (hash_table::create_ggc): New function.
1541 (gt_pch_nx): New overload for hash_table.
1543 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
1545 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
1546 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
1547 * config/sh/sh.c: Likewise.
1548 * config/sh/sh-mem.cc: Likewise.
1549 * config/sh/sh.md: Likewise.
1550 * config/sh/predicates.md: Likewise.
1551 * config/sh/sync.md: Likewise.
1553 2014-10-11 Martin Liska <mliska@suse.cz>
1556 * cgraphunit.c (symbol_table::process_new_functions): Missing call
1557 for call_cgraph_insertion_hooks added.
1559 2014-10-10 Jakub Jelinek <jakub@redhat.com>
1562 * stor-layout.c (min_align_of_type): Don't decrease alignment
1563 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
1564 TYPE_USER_ALIGN is set.
1566 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
1568 PR rtl-optimization/63483
1569 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
1570 references when alignment ANDs are involved.
1571 (write_dependence_p): Ditto.
1572 (may_alias_p): Ditto.
1574 2014-10-10 Marek Polacek <polacek@redhat.com>
1576 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
1577 * doc/invoke.texi: Document -fsanitize=object-size.
1578 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
1579 or it into SANITIZE_UNDEFINED.
1580 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
1581 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
1582 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
1583 * opts.c (common_handle_option): Handle -fsanitize=object-size.
1584 * ubsan.c: Include tree-object-size.h.
1585 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
1586 (ubsan_expand_bounds_ifn): Use false instead of 0.
1587 (ubsan_expand_objsize_ifn): New function.
1588 (instrument_object_size): New function.
1589 (pass_ubsan::execute): Add object size instrumentation.
1590 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
1592 2014-10-10 Richard Henderson <rth@redhat.com>
1595 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
1596 Restrict the set of expressions we're willing to move.
1598 2014-10-10 Jeff Law <law@redhat.com>
1600 * ira.c (struct equivalence): Promote INIT_INSNs field to
1601 an rtx_insn_list. Add comments.
1602 (no_equiv): Promote LIST to an rtx_insn_list. Update
1603 testing for and creating the special marker. Use methods
1604 to extract the insn and next pointers. Promote INSN to an
1606 (update_equiv_regs): Update test for special marker in the
1609 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1611 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
1612 * configure: Regenerate.
1613 * config/aarch64/aarch64.c (aarch64_override_options): Handle
1614 TARGET_FIX_ERR_A53_835769_DEFAULT.
1615 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
1617 * doc/install.texi (aarch64*-*-*): Document
1618 new --enable-fix-cortex-a53-835769 option.
1620 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1621 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1623 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
1624 (ADJUST_INSN_LENGTH): Define.
1625 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
1626 * config/aarch64/aarch64.c (is_mem_p): New function.
1627 (is_memory_op): Likewise.
1628 (aarch64_prev_real_insn): Likewise.
1629 (is_madd_op): Likewise.
1630 (dep_between_memop_and_curr): Likewise.
1631 (aarch64_madd_needs_nop): Likewise.
1632 (aarch64_final_prescan_insn): Likewise.
1633 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
1634 and -mno-fix-cortex-a53-835769 options.
1636 2014-10-10 Jakub Jelinek <jakub@redhat.com>
1638 PR tree-optimization/63464
1639 * tree-switch-conversion.c (struct case_bit_test): Remove
1640 hi and lo fields, add wide_int mask field.
1641 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
1642 hi/lo fields into wide_int mask operations, optimize by pretending
1643 minval to be 0 if maxval is small enough.
1644 (process_switch): Adjust caller.
1646 2014-10-10 Richard Biener <rguenther@suse.de>
1648 PR tree-optimization/63379
1649 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
1650 a neutral operand for min/max when it is not a reduction chain.
1652 2014-10-10 Richard Biener <rguenther@suse.de>
1654 PR tree-optimization/63476
1655 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
1656 (BB_LIVE_VOP_ON_EXIT): New define.
1657 (create_expression_by_pieces): Assign VUSEs to stmts.
1658 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
1659 (pass_pre::execute): Assert virtual SSA form is up-to-date
1662 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
1664 * lra-assigns.c (assign_by_spills): Error out on spill failure.
1666 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
1668 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
1671 2014-10-09 Richard Biener <rguenther@suse.de>
1673 PR tree-optimization/63380
1674 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
1677 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
1679 * config/avr/avr.opt (mmcu=): Change to have a string value.
1680 (mn-flash=, mskip-bug, march=, mrmw): New options.
1681 (HeaderInclude): New.
1682 (mmcu=): Remove Var / Init clauses.
1683 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
1685 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
1686 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
1687 (SYMBOL_FLAG_IO_LOW): Define.
1688 (avr_device_to_as, avr_device_to_ld): Don't declare.
1689 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
1690 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
1691 (EXTRA_SPEC_FUNCTIONS): Don't define.
1692 (ASM_SPEC): Translate -arch= option to -mmcu= option.
1693 (LINK_SPEC): Translate -arch= option to -m= option.
1694 Don't use device_to_ld / device_to_data_start.
1695 (STARTFILE_SPEC): Now empty.
1696 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
1697 * config/avr/gen-avr-mmcu-specs.c: New file.
1698 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
1699 (s-device-specs): Likewise.
1700 (GCC_PASSES): Add s-device-specs.
1701 (install-driver): Depend on install-device-specs.
1702 (install-device-specs): New rule.
1703 * config/avr/avr.c (avr_option_override): Look up mcu arch by
1704 avr_arch_index and provide fallback initialization for avr_n_flash.
1705 (varasm.h): #include.
1706 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
1707 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
1708 (avr_attribute_table): Add "io", "address" and "io_low".
1709 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
1710 Add special handling for symbols with "io" and/or "address" attributes.
1711 (avr_asm_asm_output_aligned_bss): New function.
1712 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
1713 as appropriate. Handle io_low attribute.
1714 (avr_out_sbxx_branch): Handle symbolic io addresses.
1715 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
1716 avr_n_flash instead of avr_current_device->n_flash.
1717 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
1718 (avr_emit_movmemhi): Likewise.
1719 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
1720 Use TARGET_RMW instead of avr_current_device->dev_attributes.
1721 Don't define avr_current_device->macro (that's the specfile's job).
1722 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
1723 * config/avr/avr.c (avr_2word_insn_p): Likewise.
1724 * config/avr/avr.md (*cpse.ne): Likewise.
1725 (mov<mode>): Use avr_eval_addr_attrib.
1726 (cbi): Change constraint for low_io_address_operand operand to "i".
1727 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
1728 * config/avr/predicates.md (io_address_operand):
1729 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
1730 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
1731 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
1733 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
1734 * config/avr/genmultilib.awk: Use -march=.
1735 Remove Multilib matches processing.
1736 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
1737 * config/avr/avr-arch.h: Add double include guard.
1738 (avr_mcu_t) <library_name>: Update comment.
1739 * config/avr/driver-avr.c (avr_device_to_as): Delete.
1740 (avr_device_to_ld, avr_device_to_data_start): Likewise.
1741 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
1742 (avr_device_to_sp8): Likewise.
1743 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
1745 * doc/extend.texi (io, address): Document new AVR variable attributes.
1748 2014-10-09 Marek Polacek <polacek@redhat.com>
1750 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
1752 2014-10-08 Richard Biener <rguenther@suse.de>
1754 PR tree-optimization/61969
1755 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
1758 2014-10-09 Richard Biener <rguenther@suse.de>
1760 PR tree-optimization/63445
1761 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
1762 overflow for non-equality compares.
1764 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
1766 PR rtl-optimization/57003
1767 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1768 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
1769 killing regs_invalidated_by_call.
1771 2014-10-08 Teresa Johnson <tejohnson@google.com>
1774 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
1775 (ssa_fix_duplicate_block_edges): Invoke it.
1776 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
1778 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
1781 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1782 atomic_fetch_<fetchop_name>si_hard,
1783 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
1784 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
1785 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
1786 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
1788 2014-10-08 Rong Xu <xur@google.com>
1790 * gcov-tool.c (profile_overlap): New driver function
1791 to compute profile overlap.
1792 (print_overlap_usage_message): New.
1793 (overlap_usage): New.
1795 (print_usage): Add calls to overlap function.
1797 * doc/gcov-tool.texi: Add documentation.
1799 2014-10-08 Steve Ellcey <sellcey@mips.com>
1801 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
1802 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
1804 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
1806 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
1807 pattern matching of MEM_REF.
1808 (check_stmt_for_type_change): Update.
1810 2014-10-08 Steve Ellcey <sellcey@mips.com>
1812 * config/mips/linux64.h: Remove.
1813 * config/mips/gnu-user64.h: Remove.
1814 * gcc.config (mips*-*-*): Remove references to linux64.h and
1816 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
1817 with modified version from gnu-user64.h.
1818 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
1819 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
1820 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
1822 (GNU_USER_LINK_EMULATION64): Ditto.
1823 (GNU_USER_LINK_EMULATIONN32): Ditto.
1824 (GLIBC_DYNAMIC_LINKER32): Ditto.
1825 (GLIBC_DYNAMIC_LINKER64): Ditto.
1826 (GLIBC_DYNAMIC_LINKERN32): Ditto.
1827 (UCLIBC_DYNAMIC_LINKER32): Ditto.
1828 (UCLIBC_DYNAMIC_LINKER64): Ditto.
1829 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
1830 (BIONIC_DYNAMIC_LINKERN32): Ditto.
1831 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
1832 (GLIBC_DYNAMIC_LINKER): Delete.
1833 (UCLIBC_DYNAMIC_LINKER): Delete.
1835 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
1836 Richard Biener <rguenther@suse.de>
1838 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
1839 Get address space from operand 0 (BASE).
1841 2014-10-07 Iain Sandoe <iain@codesourcery.com>
1844 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
1846 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
1848 * dwarf2out.c: Remove current_function_has_inlines.
1849 (gen_subprogram_die): Same.
1850 (gen_inlined_subroutine_die): Same.
1852 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
1854 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
1856 (_addcarry_u64): Ditto.
1857 (_addcarryx_u64): Ditto.
1859 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
1861 * cgraph.h (cgraph_node::get_fun): Declare.
1862 * cgraph.c (cgraph_node::get_fun): New method.
1863 * ipa-inline.c (can_inline_edge_p): Use it.
1865 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
1867 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
1868 and -ftrapping-math.
1869 * lto-wrapper.c (merge_and_complain): Likewise.
1870 (run_gcc): Likewise.
1872 2014-10-06 Rong Xu <xur@google.com>
1874 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
1875 * tree-profile.c: (params.h): New include.
1876 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
1877 and __gcov_indirect_call_topn_counters for
1878 indirect_call_topn_profile.
1879 (gimple_init_edge_profiler): New decls for
1880 __gcov_indirect_call_topn_profiler.
1881 (gimple_gen_ic_profiler): Generate the correct profiler call.
1882 (gimple_gen_ic_func_profiler): Fix format.
1883 * value-prof.c (params.h): New include.
1884 (dump_histogram_value): Hanlde indirect_call_topn counters.
1885 (stream_in_histogram_value): Ditto.
1886 (gimple_indirect_call_to_profile): Use indirect_call_topn
1887 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
1888 (gimple_find_values_to_profile): Hanlde indirect_call_topn
1890 * value-prof.h (enum hist_type): Histrogram type for
1891 indirect_call_topn counters.
1892 * profile.c (instrument_values): Instrument
1893 indirect_call_topn counters.
1895 2014-10-06 Rong Xu <xur@google.com>
1897 * Makefile.in: Fix dependence.
1898 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
1899 indirect call topn profiler.
1902 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
1904 * calls.c (expand_call): Do not use the target as the return slot if
1905 it is not sufficiently aligned.
1907 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1909 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
1910 discussion of permutes and why we don't handle them.
1912 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
1914 * config/sparc/predicates.md (int_register_operand): Delete.
1916 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
1918 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
1920 2014-10-06 Jakub Jelinek <jakub@redhat.com>
1922 * ubsan.h (ubsan_get_source_location): New prototype.
1923 * ubsan.c (ubsan_source_location_type): New variable.
1924 Function renamed to ...
1925 (ubsan_get_source_location_type): ... this. Cache
1926 return value in ubsan_source_location_type variable.
1927 (ubsan_source_location, ubsan_create_data): Use
1928 ubsan_get_source_location_type instead of
1929 ubsan_source_location_type.
1930 * asan.c (asan_protect_global): Don't protect globals
1931 with ubsan_get_source_location_type () type.
1932 (asan_add_global): Provide global decl location info
1935 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
1937 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
1940 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
1942 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
1944 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
1946 (ipa_polymorphic_call_context::dump): Fix formating.
1947 (walk_ssa_copies): Add logic avoiding loops; update uses.
1948 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
1950 2014-10-02 Mark Wielaard <mjw@redhat.com>
1953 * dwarf2out.c (gen_subprogram_die): When a member function is
1954 explicitly deleted then add a DW_AT_GNU_deleted attribute.
1955 * langhooks.h (struct lang_hooks_for_decls): Add
1956 function_decl_deleted_p langhook.
1957 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
1958 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
1960 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
1962 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
1963 NULL pointer checks.
1964 (ipa_polymorphic_call_context::get_dynamic_type): Return true
1965 if type doesn't change.
1966 * cgraph.h (cgraph_indirect_call_info): New flag.
1967 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
1968 (cgraph_node::dump): Dump it.
1969 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
1970 of context.get_dynamic_type.
1971 (ipa_make_edge_direct_to_target): Do not speculate
1972 edge that is already speuclative.
1973 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
1974 speculate to __builtin_unreachable
1975 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
1977 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
1979 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
1981 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
1982 get_dynamic_type; drop TODO.
1983 * ipa-polymorphic-call.c
1984 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
1985 for otr_type to be unknown.
1987 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
1989 * common/config/score/score-common.c: Remove.
1990 * config.gcc: Remove support for score-*.
1991 * config/score/constraints.md: Remove.
1992 * config/score/elf.h: Remove.
1993 * config/score/predicates.md: Remove.
1994 * config/score/score-conv.h: Remove.
1995 * config/score/score-generic.md: Remove.
1996 * config/score/score-modes.def: Remove.
1997 * config/score/score-protos.h: Remove.
1998 * config/score/score.c: Remove.
1999 * config/score/score.h: Remove.
2000 * config/score/score.md: Remove.
2001 * config/score/score.opt: Remove.
2002 * doc/md.texi: Don't document score-*.
2004 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2007 * genconditions.c: Directly include ggc.h before rtl.h.
2009 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2011 * ipa-polymorphic-call.c
2012 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2013 code determining speculative type.
2014 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2016 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2018 * altivec.md (altivec_lvsl): New define_expand.
2019 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2020 (altivec_lvsr): New define_expand.
2021 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2022 * rs6000.c (rs6000_expand_builtin): Change to use
2023 altivec_lvs[lr]_direct; remove commented-out code.
2025 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2027 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2028 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2029 little endian target.
2031 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2033 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2035 * tree-pretty-print.h (dump_location): Declare.
2036 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2037 (pp_gimple_stmt_1): Likewise.
2038 (dump_implicit_edges): Likewise.
2039 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2043 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2045 * gcc.c (driver::global_initializations): Remove "const" so
2046 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2047 and decoded_options_count.
2049 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2051 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2053 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2054 TARGET_E500_DOUBLE case here.
2056 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2061 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2063 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2065 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2066 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2067 in_polymorphic_cdtor
2068 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2069 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2070 * cgraphclones.c (cgraph_edge::clone): Likewise.
2071 * ipa-prop.c (update_jump_functions_after_inlining,
2072 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2073 to possible_dynamic_type_change.
2074 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2075 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2076 IN_POLY_CDOTR argument.
2078 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2079 for BASE and OUTER_TYPE being NULL.
2080 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2081 in_poly_cdtor parameter.
2083 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2085 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2086 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2088 (expand_vec_perm_1): Likewise.
2090 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2091 Uros Bizjak <ubizjak@gmail.com>
2093 PR tree-optimization/61403
2094 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2095 error in comment. Also optimize 256-bit vectors for AVX2
2096 or AVX (floating vectors only), provided the first permutation
2097 can be performed in one insn.
2099 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2101 * gcc.c (class driver): New class.
2102 (main): Reimplement in terms of driver::main, moving most of the
2103 locals to be locals within individual methods of class driver.
2104 The remaining locals "explicit_link_files", "decoded_options" and
2105 "decoded_options_count" are used by multiple driver:: methods, and
2106 so become member data. Doing so isolates the argc/argv reads and
2107 writes. Replace "goto out" with a special exit code from
2108 new method driver::prepare_infiles. Split out the old
2109 implementation of main into the following...
2110 (driver::main): New function, corresponding to the old "main"
2112 (driver::set_progname): New function, taken from the old
2113 "main" implementation.
2114 (driver::expand_at_files): Likewise.
2115 (driver::decode_argv): Likewise.
2116 (driver::global_initializations): Likewise.
2117 (driver::build_multilib_strings): Likewise.
2118 (driver::set_up_specs): Likewise.
2119 (driver::putenv_COLLECT_GCC): Likewise.
2120 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2121 (driver::handle_unrecognized_options): Likewise.
2122 (driver::maybe_print_and_exit): Likewise.
2123 (driver::prepare_infiles): Likewise.
2124 (driver::do_spec_on_infiles): Likewise.
2125 (driver::maybe_run_linker): Likewise.
2126 (driver::final_actions): Likewise.
2127 (driver::get_exit_code): Likewise.
2129 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2131 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2132 don't emit empty ctors.
2134 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2136 * convert.c (convert_to_integer): Do not introduce useless conversions
2137 between integral types.
2139 2014-10-03 David Sherwood <david.sherwood@arm.com>
2141 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2143 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
2145 * lra-constraints.c (inherit_in_ebb): Handle calls with
2146 multiple return values.
2147 * caller-save.c (save_call_clobbered_regs): Likewise.
2149 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2151 * tree-vect-data-refs.c (vect_permute_load_chain,
2152 vect_shift_permute_load_chain): Fix a typo in temporary var names,
2153 suffle3 to shuffle3.
2156 * omp-low.c (taskreg_contexts): New variable.
2157 (scan_omp_parallel): Push newly created context into taskreg_contexts
2158 vector and move record layout code to finish_taskreg_scan.
2159 (scan_omp_task): Likewise.
2160 (finish_taskreg_scan): New function.
2161 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2162 vector elements and release it.
2165 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2166 of palignr arguments can't be used due to min 0 or max - min
2167 too high, try also op0, op1 order of palignr arguments.
2169 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
2171 * cgraph.h (ipa_polymorphic_call_context):
2172 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2173 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2174 * ipa-polymorphic-call.c
2175 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2176 past end of dynamic types.
2177 (ipa_polymorphic_call_context::stream_out,
2178 speculative_outer_type): Stream dynamic flag.
2179 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2180 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2182 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2184 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2185 * ipa-prop.c (update_jump_functions_after_inlining,
2186 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2188 2014-10-02 Teresa Johnson <tejohnson@google.com>
2190 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2191 up when synthesizing counts to avoid rounding errors.
2193 2014-10-02 Teresa Johnson <tejohnson@google.com>
2196 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2197 asserts to handle incoming insanities.
2199 2014-10-02 Martin Jambor <mjambor@suse.cz>
2201 PR tree-optimization/63375
2202 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2205 2014-10-02 Olivier Hainque <hainque@adacore.com>
2207 * Makefile.in (CROSS): Define, to @CROSS.
2209 2014-10-02 Jakub Jelinek <jakub@redhat.com>
2212 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2213 if it expands to a single insn only.
2214 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
2215 fail unless in_order is true. Add forward declaration.
2216 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2217 is useful for one_operand_p.
2218 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2220 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2222 * cgraphclones.c (build_function_type_skip_args): Do not make new
2223 type variant of old.
2225 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2227 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2228 when speculation is added.
2229 (ipa_edge_args): Add polymorphic_call_contexts.
2230 (ipa_get_ith_polymorhic_call_context): New accesor.
2231 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2232 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2233 (ipa_compute_jump_functions_for_edge): Compute contexts.
2234 (update_jump_functions_after_inlining): Update contexts.
2235 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2236 update dumping; add speculative edge creation.
2237 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2239 (update_indirect_edges_after_inlining): Pass down context.
2240 (ipa_edge_duplication_hook): Duplicate contexts.
2241 (ipa_write_node_info): Stream out contexts.
2242 (ipa_read_node_info): Stream in contexts.
2243 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2245 (try_speculative_devirtualization): New function.
2246 * ipa-utils.h (try_speculative_devirtualization): Declare.
2248 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2250 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2253 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2255 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2258 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2260 * ipa-polymorphic-call.c
2261 (ipa_polymorphic_call_context::restrict_to_inner_class):
2262 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2263 use speculation_consistent_p to do so; Add CONSDER_BASES
2264 and CONSIDER_PLACEMENT_NEW parameters.
2265 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2266 short circuit obvious cases.
2267 (ipa_polymorphic_call_context::dump): Improve formatting.
2268 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2269 combine_speculation_with to record speculations; Do not ICE when
2270 object is located in pointer type decl; do not ICE for methods
2271 of UNION_TYPE; do not record nonpolymorphic types.
2272 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2273 (ipa_polymorphic_call_context::combine_speculation_with): New method.
2274 (ipa_polymorphic_call_context::combine_with): New method.
2275 (ipa_polymorphic_call_context::make_speculative): Move here; use
2276 combine speculation.
2277 * cgraph.h (ipa_polymorphic_call_context): Update
2278 restrict_to_inner_class prototype; add offset_by, make_speculative,
2279 combine_with, useless_p, combine_speculation_with and
2280 speculation_consistent_p methods.
2281 (ipa_polymorphic_call_context::offset_by): New method.
2282 (ipa_polymorphic_call_context::useless_p): New method.
2284 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2286 PR rtl-optimization/62151
2287 * combine.c (can_combine_p): Allow the destination register of INSN
2288 to be clobbered in I3.
2289 (subst): Do not substitute into clobbers of registers.
2291 2014-10-01 Jakub Jelinek <jakub@redhat.com>
2294 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2295 offset, TARGET_MEM_REF and SSA_NAME.
2297 * config/i386/i386.c (expand_vec_perm_palignr): Handle
2298 256-bit vectors for TARGET_AVX2.
2300 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2304 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2305 argument to avx2_permv2ti.
2307 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2309 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2311 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
2313 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2314 (fmod<mode>3): Ditto.
2315 (fpremxf4_i387): Ditto.
2316 (reminderxf3): Ditto.
2317 (reminder<mode>3): Ditto.
2318 (fprem1xf4_i387): Ditto.
2320 2014-09-30 Teresa Johnson <tejohnson@google.com>
2322 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2323 duplicate_blocks bitmap.
2324 (remove_ctrl_stmt_and_useless_edges): Ditto.
2325 (create_block_for_threading): Ditto.
2326 (compute_path_counts): New function.
2327 (update_profile): Ditto.
2328 (recompute_probabilities): Ditto.
2329 (update_joiner_offpath_counts): Ditto.
2330 (freqs_to_counts_path): Ditto.
2331 (clear_counts_path): Ditto.
2332 (ssa_fix_duplicate_block_edges): Update profile info.
2333 (ssa_create_duplicates): Pass new parameter.
2334 (ssa_redirect_edges): Remove old profile update.
2335 (thread_block_1): New duplicate_blocks bitmap,
2336 remove old profile update.
2337 (thread_single_edge): Pass new parameter.
2339 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
2342 * varasm.c (decode_reg_name_and_count): Check availability for
2343 registers from ADDITIONAL_REGISTER_NAMES.
2345 2014-09-30 David Malcolm <dmalcolm@redhat.com>
2348 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2349 (PLUGIN_HEADERS): Add pass-instances.def.
2351 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
2353 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2355 * config/aarch64/aarch64-simd.md
2356 (aarch64_sqdmull_laneq<mode>): Expand iterator.
2357 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2358 (vqdmulls_lane_s32): Fix return type.
2359 (vqdmulls_laneq_s32): New.
2361 2014-09-30 Jakub Jelinek <jakub@redhat.com>
2364 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2365 or invert_jump_1 if jump isn't any_condjump_p.
2367 2014-09-30 Terry Guo <terry.guo@arm.com>
2369 * config/arm/arm-cores.def (cortex-m7): New core name.
2370 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2372 * config/arm/arm-tables.opt: Regenerated.
2373 * config/arm/arm-tune.md: Regenerated.
2374 * config/arm/arm.h (TARGET_VFP5): New macro.
2375 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2376 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2377 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2378 * doc/invoke.texi: Document new cpu and fpu names.
2380 2014-09-30 Jiong Wang <jiong.wang@arm.com>
2382 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2383 before sinking insn.
2385 2014-09-30 David Sherwood <david.sherwood@arm.com>
2387 * ira-int.h (ira_allocno): Add "wmode" field.
2388 * ira-build.c (create_insn_allocnos): Add new "parent" function
2390 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2391 that cannot be accessed in wmode.
2393 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2395 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2398 2014-09-29 Andi Kleen <ak@linux.intel.com>
2400 * opts.c (print_filtered_help): Print --param min/max/default
2403 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2405 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2407 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
2409 * tree-vrp.c (get_single_symbol): New function.
2410 (build_symbolic_expr): Likewise.
2411 (symbolic_range_based_on_p): New predicate.
2412 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2413 for PLUS and MINUS. Do not drop symbolic ranges at the end.
2414 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2415 operand is symbolic and based on the other operand.
2417 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
2419 * config/microblaze/microblaze.md (call_internal1): Use VOID
2420 instead of SI to fix "((void (*)(void)) 0)()" issue
2422 2014-09-29 Nick Clifton <nickc@redhat.com>
2424 * config/msp430/msp430.c (msp430_expand_prologue): Return a
2425 CLOBBER rtx for naked functions.
2426 (msp430_expand_epilogue): Likewise.
2427 (msp430_use_f5_series_hwmult): Cache result.
2428 (use_32bit_hwmult): Cache result.
2429 (msp430_no_hwmult): New function.
2430 (msp430_output_labelref): Use it.
2432 2014-09-29 Jakub Jelinek <jakub@redhat.com>
2435 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2436 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2437 use the alignment of avar rather than ovar.
2439 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
2441 * config/pa/pa.c (pa_output_function_epilogue): Only update
2442 last_address when a nonnote insn is found.
2444 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2447 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2449 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2452 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
2453 fix pasto in checking array size.
2455 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2458 * passes.def (pass_tracer): Move before last dominator pass.
2460 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
2462 * gcc.c (try_generate_repro): Remove argument "prog". Change all
2464 (run_attempt): Handle errors of "pex_run" invocation.
2466 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
2468 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
2470 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
2471 (TARGET_ASAN_SHADOW_OFFSET): Define.
2473 2014-09-26 Martin Liska <mliska@suse.cz>
2475 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
2477 * cgraph.h: Likewise.
2478 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
2479 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
2480 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
2481 * tree-ssa-alias.h: Likewise.
2483 2014-09-26 Jakub Jelinek <jakub@redhat.com>
2484 Max Ostapenko <m.ostapenko@partner.samsung.com>
2486 * common.opt: New option.
2487 * doc/invoke.texi: Describe new option.
2488 * gcc.c (execute): Don't free first string early, but at the end
2489 of the function. Call retry_ice if compiler exited with
2491 (main): Factor out common code.
2492 (print_configuration): New function.
2493 (files_equal_p): Likewise.
2494 (check_repro): Likewise.
2495 (run_attempt): Likewise.
2496 (do_report_bug): Likewise.
2497 (append_text): Likewise.
2498 (try_generate_repro): Likewise
2500 2014-09-25 Andi Kleen <ak@linux.intel.com>
2502 * config/i386/i386.c (x86_print_call_or_nop): New function.
2503 (x86_function_profiler): Support -mnop-mcount and
2505 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
2506 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
2508 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2510 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
2511 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
2512 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
2515 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2517 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
2518 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
2519 types_odr_comparable): Declare.
2520 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
2521 * ipa-polymorphic-call.c: New file.
2522 (contains_polymorphic_type_p, possible_placement_new,
2523 ipa_polymorphic_call_context::restrict_to_inner_class,
2524 contains_type_p, decl_maybe_in_construction_p,
2525 ipa_polymorphic_call_context::stream_out,
2526 ipa_polymorphic_call_context::debug,
2527 ipa_polymorphic_call_context::stream_in,
2528 ipa_polymorphic_call_context::set_by_decl,
2529 ipa_polymorphic_call_context::set_by_invariant,
2531 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2532 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2533 extr_type_from_vtbl_ptr_store, record_known_type
2534 check_stmt_for_type_change,
2535 ipa_polymorphic_call_context::get_dynamic_type): Move here from
2537 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
2538 and streamer-hooks.h
2539 (contains_polymorphic_type_p, possible_placement_new,
2540 ipa_polymorphic_call_context::restrict_to_inner_class,
2541 contains_type_p, decl_maybe_in_construction_p,
2542 ipa_polymorphic_call_context::stream_out,
2543 ipa_polymorphic_call_context::debug,
2544 ipa_polymorphic_call_context::stream_in,
2545 ipa_polymorphic_call_context::set_by_decl,
2546 ipa_polymorphic_call_context::set_by_invariant,
2548 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2549 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2550 extr_type_from_vtbl_ptr_store, record_known_type
2551 check_stmt_for_type_change,
2552 ipa_polymorphic_call_context::get_dynamic_type): Move to
2553 ipa-polymorphic-call.c
2554 (type_all_derivations_known_p, types_odr_comparable,
2555 types_must_be_same_for_odr): Export.
2556 (type_known_to_have_no_deriavations_p): New function.
2557 * Makefile.in: Add ipa-polymorphic-call.c
2559 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2561 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
2563 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
2564 (possible_polymorphic_call_targets): Instead of computing both
2565 speculative and non-speculative answers, do just one at a time.
2566 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
2567 (dump_targets): Break out from ...
2568 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
2569 and non-speculative lists.
2570 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
2571 * ipa-utils.h (possible_polymorphic_call_targets): Update.
2573 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
2575 PR rtl-optimization/63348
2576 * emit-rtl.c (try_split): Do not emit extra barrier.
2578 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
2580 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
2581 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
2583 (aarch64_<sur>shll2_n<mode>): Likewise.
2584 (aarch64_<sur>shr_n<mode>): Likewise.
2585 (aarch64_<sur>sra_n<mode>: Likewise.
2586 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
2587 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
2588 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
2589 * config/aarch64/iterators.md (ve_mode): New.
2590 (offsetlr): Remap to infix text for use in new predicates.
2591 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
2592 (aarch64_simd_shift_imm_hi): Likewise.
2593 (aarch64_simd_shift_imm_si): Likewise.
2594 (aarch64_simd_shift_imm_di): Likewise.
2595 (aarch64_simd_shift_imm_offset_qi): Likewise.
2596 (aarch64_simd_shift_imm_offset_hi): Likewise.
2597 (aarch64_simd_shift_imm_offset_si): Likewise.
2598 (aarch64_simd_shift_imm_offset_di): Likewise.
2599 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
2600 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
2601 (aarch64_simd_shift_imm_bitsize_si): Likewise.
2602 (aarch64_simd_shift_imm_bitsize_di): Likewise.
2604 2014-09-25 Jiong Wang <jiong.wang@arm.com>
2606 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
2607 new created BB as the intersection of live-in from "old_dest" and
2610 2014-09-25 Felix Yang <felix.yang@huawei.com>
2612 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
2613 * genautomata.c (merge_states): Ditto.
2615 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
2618 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
2619 in instruction sequence.
2621 2014-09-25 Nick Clifton <nickc@redhat.com>
2624 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
2625 in instruction sequence.
2627 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2630 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
2631 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
2633 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2634 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2635 Anna Tikhonova <anna.tikhonova@intel.com>
2636 Ilya Tocar <ilya.tocar@intel.com>
2637 Andrey Turetskiy <andrey.turetskiy@intel.com>
2638 Ilya Verbin <ilya.verbin@intel.com>
2639 Kirill Yukhin <kirill.yukhin@intel.com>
2640 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2642 * config/i386/sse.md
2643 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
2644 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
2645 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
2646 (define_expand "<avx512>_perm<mode>_mask"): ... this.
2647 Use VI8F_256_512 mode iterator.
2648 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
2649 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
2651 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2652 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2653 Anna Tikhonova <anna.tikhonova@intel.com>
2654 Ilya Tocar <ilya.tocar@intel.com>
2655 Andrey Turetskiy <andrey.turetskiy@intel.com>
2656 Ilya Verbin <ilya.verbin@intel.com>
2657 Kirill Yukhin <kirill.yukhin@intel.com>
2658 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2660 * config/i386/sse.md
2661 (define_insn "avx_movshdup256<mask_name>"): Add masking.
2662 (define_insn "sse3_movshdup<mask_name>"): Ditto.
2663 (define_insn "avx_movsldup256<mask_name>"): Ditto.
2664 (define_insn "sse3_movsldup<mask_name>"): Ditto.
2665 (define_insn "vec_dupv2df<mask_name>"): Ditto.
2666 (define_insn "*vec_concatv2df"): Add EVEX version.
2668 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2670 Anna Tikhonova <anna.tikhonova@intel.com>
2671 Ilya Tocar <ilya.tocar@intel.com>
2672 Andrey Turetskiy <andrey.turetskiy@intel.com>
2673 Ilya Verbin <ilya.verbin@intel.com>
2674 Kirill Yukhin <kirill.yukhin@intel.com>
2675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2677 * config/i386/sse.md
2678 (define_insn "vec_set<mode>_0"): Add EVEX version.
2680 2014-09-25 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>
2689 * config/i386/sse.md
2691 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
2693 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
2694 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
2695 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
2696 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
2697 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
2698 (define_expand "sse2_cvtpd2ps_mask): New.
2699 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
2700 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
2702 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2703 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2704 Anna Tikhonova <anna.tikhonova@intel.com>
2705 Ilya Tocar <ilya.tocar@intel.com>
2706 Andrey Turetskiy <andrey.turetskiy@intel.com>
2707 Ilya Verbin <ilya.verbin@intel.com>
2708 Kirill Yukhin <kirill.yukhin@intel.com>
2709 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2711 * config/i386/i386.c
2712 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
2713 (ufix_notruncv8dfv8si2_mask_round): ... this.
2714 * config/i386/sse.md
2715 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
2716 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
2717 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
2718 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
2719 (define_expand "sse2_cvtpd2dq"): Delete.
2720 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
2721 make 2nd operand const0 vector.
2722 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
2724 (define_mode_attr pd2udqsuff): New.
2726 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
2727 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
2728 (define_insn "*avx_cvttpd2dq256_2"): Delete.
2729 (define_expand "sse2_cvttpd2dq"): Ditto.
2730 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
2731 make 2nd operand const0 vector.
2733 2014-09-25 Jakub Jelinek <jakub@redhat.com>
2735 PR tree-optimization/63341
2736 * tree-vectorizer.h (vect_create_data_ref_ptr,
2737 vect_create_addr_base_for_vector_ref): Add another tree argument
2738 defaulting to NULL_TREE.
2739 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
2740 argument, pass it down to vect_create_addr_base_for_vector_ref.
2741 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
2742 add that to base_offset too if non-NULL.
2743 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
2744 for dr_explicit_realign_optimized set it to vector byte size
2745 - 1 instead of setting offset, pass byte_offset down to
2746 vect_create_data_ref_ptr.
2748 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
2750 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
2751 forgotten debug output; canonicalize querries more wtih LTO.
2753 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
2755 * cgraph.h (class ipa_polymorphic_call_context): Move here from
2756 ipa-utils.h; add stream_int and stream_out methods.
2757 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
2758 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
2759 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
2761 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2762 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2763 ipa_polymorphic_call_context::clear_speculation,
2764 ipa_polymorphic_call_context::clear_outer_type): Move here from
2766 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
2767 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2768 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2769 ipa_polymorphic_call_context::clear_speculation,
2770 ipa_polymorphic_call_context::clear_outer_type): Likewise.
2771 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
2773 (ipa_polymorphic_call_context::stream_out): New method.
2774 (ipa_polymorphic_call_context::stream_in): New method.
2775 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
2776 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
2778 (ipa_analyze_call_uses): Simplify.
2779 (update_indirect_edges_after_inlining): Do not care about outer_type.
2780 (ipa_write_indirect_edge_info): Update.
2781 (ipa_write_indirect_edge_info): Likewise.
2782 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
2783 (dump_edge_flags): Break out from ...
2784 (cgraph_node::dump): ... here; dump indirect edges.
2786 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
2788 * ipa-utils.h (polymorphic_call_context): Add
2789 metdhos dump, debug and clear_outer_type.
2790 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
2791 (ipa_polymorphic_call_context::clear_outer_type): New method.
2792 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
2793 * ipa-devirt.c (types_odr_comparable): New function.
2794 (types_must_be_same_for_odr): New function.
2795 (odr_subtypes_equivalent_p): Simplify.
2796 (possible_placement_new): Break out from ...
2797 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
2798 be more cuatious about returning false in cases the context may be
2799 valid in derived type or via placement new.
2800 (contains_type_p): Clear maybe_derived_type
2801 (ipa_polymorphic_call_context::dump): New method.
2802 (ipa_polymorphic_call_context::debug): New method.
2803 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
2804 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
2805 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
2806 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
2807 to suceed on all valid cases; remove confused sanity check.
2808 (dump_possible_polymorphic_call_targets): Simplify.
2810 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
2812 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
2813 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
2814 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
2815 varpool.c: Rename all instances of DECL_ABSTRACT to
2818 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2820 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
2821 special handling for stores whose SET_SRC is an UNSPEC (such as
2824 2014-09-24 Jiong Wang <jiong.wang@arm.com>
2826 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
2827 !REG_P (src) to release more instruction sink opportunities.
2829 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
2831 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
2832 move costs for 128-bit types.
2834 2014-09-24 Martin Jambor <mjambor@suse.cz>
2836 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
2837 when duplicating a PASS_THROUGH jump function when creating a
2840 2014-09-24 Marek Polacek <polacek@redhat.com>
2844 * asan.c (maybe_instrument_call): Add default case.
2845 * ipa-pure-const.c (special_builtin_state): Likewise.
2846 * predict.c (expr_expected_value_1): Likewise.
2847 * lto-streamer-out.c (write_symbol): Initialize variable.
2849 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2851 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
2853 (vmuld_laneq_f64): Likewise.
2854 (vmuls_lane_f32): Likewise.
2855 (vmuls_laneq_f32): Likewise.
2857 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
2860 * varpool.c (varpool_node::add): Pass decl attributes
2861 to lookup_attribute.
2863 2014-09-24 Jakub Jelinek <jakub@redhat.com>
2866 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
2868 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
2870 PR tree-optimization/63266
2871 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
2872 marker for unknown byte value.
2873 (MARKER_MASK): New macro.
2874 (MARKER_BYTE_UNKNOWN): New macro.
2875 (HEAD_MARKER): New macro.
2876 (do_shift_rotate): Mark bytes with unknown values due to sign
2877 extension when doing an arithmetic right shift. Replace hardcoded
2878 mask for marker by new MARKER_MASK macro.
2879 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
2880 numbers accordingly.
2882 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2883 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2884 Anna Tikhonova <anna.tikhonova@intel.com>
2885 Ilya Tocar <ilya.tocar@intel.com>
2886 Andrey Turetskiy <andrey.turetskiy@intel.com>
2887 Ilya Verbin <ilya.verbin@intel.com>
2888 Kirill Yukhin <kirill.yukhin@intel.com>
2889 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2891 * config/i386/sse.md
2893 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
2895 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
2896 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
2898 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2899 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2900 Anna Tikhonova <anna.tikhonova@intel.com>
2901 Ilya Tocar <ilya.tocar@intel.com>
2902 Andrey Turetskiy <andrey.turetskiy@intel.com>
2903 Ilya Verbin <ilya.verbin@intel.com>
2904 Kirill Yukhin <kirill.yukhin@intel.com>
2905 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2907 * config/i386/sse.md
2908 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
2909 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
2910 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
2911 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
2912 (define_expand "avx512vl_pshuflw_mask"): New.
2913 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
2914 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
2915 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
2916 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
2917 (define_expand "avx512vl_pshufhw_mask"): New.
2918 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
2920 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2921 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2922 Anna Tikhonova <anna.tikhonova@intel.com>
2923 Ilya Tocar <ilya.tocar@intel.com>
2924 Andrey Turetskiy <andrey.turetskiy@intel.com>
2925 Ilya Verbin <ilya.verbin@intel.com>
2926 Kirill Yukhin <kirill.yukhin@intel.com>
2927 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2929 * config/i386/i386.c
2930 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
2931 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
2932 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
2933 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
2934 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
2935 * config/i386/sse.md
2936 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
2938 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
2939 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
2941 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
2942 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
2943 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
2944 (define_expand "avx512vl_pshufd_mask"): New.
2945 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
2947 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2948 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2949 Anna Tikhonova <anna.tikhonova@intel.com>
2950 Ilya Tocar <ilya.tocar@intel.com>
2951 Andrey Turetskiy <andrey.turetskiy@intel.com>
2952 Ilya Verbin <ilya.verbin@intel.com>
2953 Kirill Yukhin <kirill.yukhin@intel.com>
2954 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2956 * config/i386/i386.c
2957 (CODE_FOR_avx2_extracti128): Rename to ...
2958 (CODE_FOR_avx_vextractf128v4di): this.
2959 (CODE_FOR_avx2_inserti128): Rename to ...
2960 (CODE_FOR_avx_vinsertf128v4di): this.
2961 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
2962 CODE_FOR_avx_vextractf128v4di.
2963 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
2964 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
2965 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
2966 CODE_FOR_avx512vl_vinsertv8si.
2967 * config/i386/sse.md
2969 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
2970 AVX512_VEC mode iterator.
2972 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
2975 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
2976 AVX512_VEC_2 mode iterator.
2977 (define_insn "vec_set_lo_<mode><mask_name>"): New.
2978 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2979 (define_expand "avx512vl_vinsert<mode>"): Ditto.
2980 (define_insn "avx2_vec_set_lo_v4di"): Delete.
2981 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
2982 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
2983 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2984 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
2985 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2986 (define_expand "avx2_extracti128"): Delete.
2987 (define_expand "avx2_inserti128"): Ditto.
2989 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2990 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2991 Anna Tikhonova <anna.tikhonova@intel.com>
2992 Ilya Tocar <ilya.tocar@intel.com>
2993 Andrey Turetskiy <andrey.turetskiy@intel.com>
2994 Ilya Verbin <ilya.verbin@intel.com>
2995 Kirill Yukhin <kirill.yukhin@intel.com>
2996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2998 * config/i386/sse.md
2999 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3000 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3001 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3002 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3003 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3004 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3005 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3006 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3007 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3008 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3009 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3010 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3011 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3013 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3015 PR rtl-optimization/63210
3016 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3017 HARD_REGNO is not available for CONFLICT_A.
3019 2014-09-23 Andi Kleen <ak@linux.intel.com>
3021 * cgraph.h (symtab_node): Add no_reorder attribute.
3022 (symbol_table::output_asm_statements): Remove.
3023 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3024 (cgraph_node::create_version_clone): Dito.
3025 (symbol_table::output_asm_statements): Remove.
3026 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3027 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3028 (output_in_order): Add no_reorder flag. Only handle no_reorder
3030 (symbol_table::compile): Add separate pass for no_reorder nodes.
3031 (process_common_attributes): Set no_reorder flag in symtab node.
3033 (process_function_and_variable_attributes): Pass symtab nodes to
3034 process_common_attributes.
3035 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3036 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3037 (lto_output_varpool_node): Dito.
3038 (input_overwrite_node): Dito.
3039 (input_varpool_node): Dito.
3040 * varpool.c (varpool_node::add): Set no_reorder attribute.
3041 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3042 (symbol_table::output_variables): Dito.
3043 * symtab.c (symtab_node::dump_base): Print no_reorder.
3045 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3047 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3050 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3052 * configure: Regenerate.
3054 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3056 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3057 when result_mode == shift_mode.
3059 2014-09-23 Kostya Serebryany <kcc@google.com>
3061 Update to match the changed asan API.
3062 * asan.c (asan_global_struct): Update the __asan_global definition
3063 to match the new API.
3064 (asan_add_global): Ditto.
3065 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3068 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3070 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3071 refine the constraints used on 32/64-bit floating point moves.
3073 (f64_vsx): Likewise.
3076 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3077 (BOOL_REGS_OP1): Likewise.
3078 (BOOL_REGS_OP2): Likewise.
3079 (BOOL_REGS_UNARY): Likewise.
3080 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3081 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3082 for moves involving VSX registers. Do not use constraints that
3083 target VSX registers for decimal types.
3084 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3085 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3087 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3089 * tree.h (int_bit_position): Turn into inline function;
3090 implement using wide int.
3091 * tree.c (int_bit_position): Remove.
3093 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3096 * target-globals.c (target_globals::~target_globals): Fix location
3097 of ira_int destruction.
3099 2014-09-23 Renlin Li <renlin.li@arm.com>
3101 * config/aarch64/aarch64.md (return): New.
3102 (simple_return): Likewise.
3103 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3104 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3106 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3108 * common/config/aarch64/aarch64-common.c:
3109 (default_options aarch_option_optimization_table):
3110 Default to -fsched-pressure.
3112 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3114 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3115 with LABEL_PRESERVE_P flag set.
3117 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3118 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3119 Anna Tikhonova <anna.tikhonova@intel.com>
3120 Ilya Tocar <ilya.tocar@intel.com>
3121 Andrey Turetskiy <andrey.turetskiy@intel.com>
3122 Ilya Verbin <ilya.verbin@intel.com>
3123 Kirill Yukhin <kirill.yukhin@intel.com>
3124 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3126 * config/i386/sse.md
3127 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3128 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3129 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3130 (define_insn "sse2_shufpd_v2df_mask"): New.
3132 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3133 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3134 Anna Tikhonova <anna.tikhonova@intel.com>
3135 Ilya Tocar <ilya.tocar@intel.com>
3136 Andrey Turetskiy <andrey.turetskiy@intel.com>
3137 Ilya Verbin <ilya.verbin@intel.com>
3138 Kirill Yukhin <kirill.yukhin@intel.com>
3139 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3141 * config/i386/sse.md
3142 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3143 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3144 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3145 (define_insn "sse_shufps_v4sf_mask"): New.
3147 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3148 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3149 Anna Tikhonova <anna.tikhonova@intel.com>
3150 Ilya Tocar <ilya.tocar@intel.com>
3151 Andrey Turetskiy <andrey.turetskiy@intel.com>
3152 Ilya Verbin <ilya.verbin@intel.com>
3153 Kirill Yukhin <kirill.yukhin@intel.com>
3154 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3156 * config/i386/sse.md
3157 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3158 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3159 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3160 (define_insn "unpcklps128_mask"): New.
3162 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3164 Anna Tikhonova <anna.tikhonova@intel.com>
3165 Ilya Tocar <ilya.tocar@intel.com>
3166 Andrey Turetskiy <andrey.turetskiy@intel.com>
3167 Ilya Verbin <ilya.verbin@intel.com>
3168 Kirill Yukhin <kirill.yukhin@intel.com>
3169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3171 * config/i386/sse.md
3172 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3173 (define_insn "avx512vl_unpckhpd128_mask"): New.
3174 (define_expand "avx_movddup256<mask_name>"): Add masking.
3175 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3176 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3177 (define_insn "avx512vl_unpcklpd128_mask"): New.
3179 2014-09-22 Joseph Myers <joseph@codesourcery.com>
3181 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3182 * doc/tm.texi: Regenerate.
3183 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3184 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3185 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3187 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3188 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3189 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3190 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3191 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3193 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3194 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3195 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3196 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3197 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3198 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3199 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3200 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3201 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3202 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3203 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3206 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
3208 * tree-ssa-ccp.c (prop_value_d): Rename to ...
3209 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3210 * ipa-prop.c (struct type_change_info): Rename to ...
3211 (prop_type_change_info): ... this; update uses.
3212 * ggc-page.c (globals): Rename to ...
3213 (static struct ggc_globals): ... this; update uses.
3214 * tree-ssa-loop-im.c (mem_ref): Rename to ...
3215 (im_mem_ref): ... this; update uses.
3216 * ggc-common.c (loc_descriptor): Rename to ...
3217 (ggc_loc_descriptor): ... this; update uses.
3218 * lra-eliminations.c (elim_table): Rename to ...
3219 (lra_elim_table): ... this; update uses.
3220 * bitmap.c (output_info): Rename to ...
3221 (bitmap_output_info): ... this; update uses.
3222 * gcse.c (expr): Rename to ...
3223 (gcse_expr) ... this; update uses.
3224 (occr): Rename to ...
3225 (gcse_occr): .. this; update uses.
3226 * tree-ssa-copy.c (prop_value_d): Rename to ...
3227 (prop_value_t): ... this.
3228 * predict.c (block_info_def): Rename to ...
3229 (block_info): ... this; update uses.
3230 (edge_info_def): Rename to ...
3231 (edge_info): ... this; update uses.
3232 * profile.c (bb_info): Rename to ...
3233 (bb_profile_info): ... this; update uses.
3234 * alloc-pool.c (output_info): Rename to ...
3235 (pool_output_info): ... this; update uses.
3236 * ipa-cp.c (topo_info): Rename to ..
3237 (ipa_topo_info): ... this; update uses.
3238 * tree-nrv.c (nrv_data): Rename to ...
3239 (nrv_data_t): ... this; update uses.
3240 * ipa-split.c (bb_info): Rename to ...
3241 (split_bb_info): ... this one.
3242 * profile.h (edge_info): Rename to ...
3243 (edge_profile_info): ... this one; update uses.
3244 * dse.c (bb_info): Rename to ...
3245 (dse_bb_info): ... this one; update uses.
3246 * cprop.c (occr): Rename to ...
3247 (cprop_occr): ... this one; update uses.
3248 (expr): Rename to ...
3249 (cprop_expr): ... this one; update uses.
3251 2014-09-22 Jason Merrill <jason@redhat.com>
3253 * Makefile.in (check-parallel-%): Add @.
3255 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3257 * config/aarch64/geniterators.sh: New.
3258 * config/aarch64/iterators.md (VDQF_DF): New.
3259 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3260 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3262 2014-09-22 Peter A. Bigot <pab@pabigot.com>
3264 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3265 -lnosys when -msim absent.
3267 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3269 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3271 2014-09-22 Richard Biener <rguenther@suse.de>
3273 * gimplify.c (gimplify_init_constructor): Do not leave
3274 non-GIMPLE vector constructors around.
3275 * tree-cfg.c (verify_gimple_assign_single): Verify that
3276 CONSTRUCTORs have gimple elements.
3278 2014-09-22 Jakub Jelinek <jakub@redhat.com>
3281 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3282 insert a debug source bind stmt setting DEBUG_EXPR_DECL
3283 instead of a normal gimple assignment stmt.
3285 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3287 * config/bfin/bfin.md: Fix use of constraints in define_split.
3289 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3291 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3292 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3294 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3296 * hard-reg-set.h: Include hash-table.h.
3297 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3299 * target-globals.c (target_globals::~target_globals): Call
3300 hard_regs->finalize.
3301 * rtl.h (subreg_shape): New structure.
3302 (shape_of_subreg): New function.
3303 (simplifiable_subregs): Declare.
3304 * reginfo.c (simplifiable_subreg): New structure.
3305 (simplifiable_subregs_hasher): Likewise.
3306 (simplifiable_subregs): New function.
3307 (invalid_mode_changes): Delete.
3308 (alid_mode_changes, valid_mode_changes_obstack): New variables.
3309 (record_subregs_of_mode): Remove subregs_of_mode parameter.
3310 Record valid mode changes in valid_mode_changes.
3311 (find_subregs_of_mode): Remove subregs_of_mode parameter.
3312 Update calls to record_subregs_of_mode.
3313 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3314 handling. Initialize new variables. Update call to
3315 find_subregs_of_mode.
3316 (invalid_mode_change_p): Check new variables instead of
3317 invalid_mode_changes.
3318 (finish_subregs_of_mode): Finalize new variables instead of
3319 invalid_mode_changes.
3320 (target_hard_regs::finalize): New function.
3321 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3322 even when CLASS_CANNOT_CHANGE_MODE is undefined.
3324 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3326 * combine.c (subst): Use simplify_subreg_regno rather than
3327 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3329 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3331 * rtl.h (subreg_info): Expand commentary
3332 * rtlanal.c (subreg_get_info): Likewise.
3334 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3336 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3337 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3338 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3340 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
3342 * config/arm/arm.c: #include "tm-constrs.h"
3343 (thumb1_size_rtx_costs): Adjust rtx costs.
3345 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
3347 * configure.ac (target_header_dir): Move block defining
3348 this to before the block setting inhibit_libc.
3349 (inhibit_libc): When considering $with_headers, just
3350 check it it's explicitly "no". If not, also check if
3351 $target_header_dir/stdio.h is present. If not, set
3353 * configure: Regenerate.
3355 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
3357 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3359 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3361 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
3362 insn for divides by integer powers of two.
3363 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3364 (mod<mode>3): Fix formatting.
3365 (three anonymous define_insn and two define_split): Delete.
3367 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3369 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3370 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3371 (floatdisf2_internal2): Ditto.
3372 (ashrdi3_no_power): Ditto. Fix formatting.
3374 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3376 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3377 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3380 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3382 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3383 constant, use addsi3 directly.
3384 (three anonymous define_insn, two define_split): Delete.
3385 (sub<mode>3): Move. Do not allow constant second operand.
3386 Generate different insn for constant first operand.
3387 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3388 (subf<mode>3_imm): New.
3389 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3390 (*plus_ltu<mode>): Only handle registers.
3391 (*plus_ltu<mode>_1): New. Handle integer third operand.
3392 (*plus_gtu<mode>): Only handle registers.
3393 (*plus_gtu<mode>_1): New. Handle integer third operand.
3395 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3397 * config/rs6000/rs6000.md (iorxor): New code_iterator.
3398 (iorxor): New code_attr.
3399 (IORXOR): New code_attr.
3400 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3401 (ior<mode>3, xor<mode>3): Delete.
3402 (<iorxor><mode>3): New.
3403 (splitter for "big" integer ior, xor): New.
3404 (*bool<mode>3): Move. Also handle AND.
3405 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3406 (splitter for "big" integer ior, xor): Delete.
3408 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3410 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3411 (two anonymous define_insn and two define_split): Delete.
3412 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3414 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3416 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3417 (two anonymous define_insn and two define_split): Delete.
3418 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3420 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3422 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3424 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3426 * config/rs6000/predicates.md (ca_operand): Allow subregs.
3427 (input_operand): Do not allow ca_operand.
3428 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3429 carry bit, allow SImode and Pmode.
3430 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3432 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
3434 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3435 clobbered registers using clobber_reg. Remove UNSPEC decoration.
3436 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3437 (*call_rex64_ms_sysv): Remove.
3438 (*call_value_rex64_ms_sysv): Ditto.
3439 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3441 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
3443 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
3446 2014-09-20 Andreas Schwab <schwab@suse.de>
3448 * config/ia64/ia64.md: Remove constraints from define_split
3451 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3453 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3454 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3455 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3456 (get_dynamic_type): Remove.
3457 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3458 (clear_speculation): Bring to ipa-deivrt.h
3459 (get_class_context): Rename to ...
3460 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3461 (contains_type_p): Update.
3462 (get_dynamic_type): Rename to ...
3463 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3464 (possible_polymorphic_call_targets): UPdate.
3465 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3466 * ipa-prop.c (ipa_analyze_call_uses): Update.
3468 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3470 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
3471 privatize dynamic TLS variables.
3473 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3475 * diagnostic.c (warning_n): New function.
3476 * diagnostic-core.h (warning_n): Declare.
3477 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
3478 output dynamic counts when available.
3480 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3482 PR tree-optimization/63255
3483 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
3484 issue in setting body_removed flag.
3486 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3489 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
3490 that visibility change is possible
3491 (handle_weakref_attribute): Likewise.
3492 * cgraph.h (symtab_node): Add method get_create and
3493 field refuse_visibility_changes.
3494 (symtab_node::get_create): New method.
3495 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
3496 * varasm.c (mark_weak): Verify that visibility change is
3499 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3501 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
3502 for base_reg_operand to be common between LO_SUM and PLUS.
3503 (fusion_gpr_mem_combo): New predicate to match a fused address
3504 that combines the addis and memory offset address.
3506 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
3508 (emit_fusion_gpr_load): Likewise.
3510 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
3511 signature to pass each argument separately, rather than
3512 using an operands array. Rewrite the insns found by peephole2 to
3513 be a single insn, rather than hoping the insns will still be
3514 together when the peephole pass is done. Drop being called via a
3516 (emit_fusion_gpr_load): Change calling signature to be called from
3517 the fusion_gpr_load_<mode> insns with a combined memory address
3518 instead of the peephole pass passing the addis and offset
3521 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
3523 (power8 fusion peephole): Drop support for doing power8 via a
3524 normal peephole that was created by the peephole2 pass.
3525 (power8 fusion peephole2): Create a new insn with the fused
3526 address, so that the fused operation is kept together after
3527 register allocation is done.
3528 (fusion_gpr_load_<mode>): Likewise.
3530 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3533 * tree.c (need_assembler_name_p): Do not mangle variadic types.
3535 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
3537 * recog.c (scratch_operand): Do not simply allow all hard registers:
3538 only allow those that are allocatable.
3540 2014-09-19 Felix Yang <felix.yang@huawei.com>
3542 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
3543 comments and fix spacing to conform to coding style.
3545 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3547 * genrecog.c (validate_pattern): Allow empty constraints in
3550 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
3552 * dwarf2out.c (decl_ultimate_origin): Update comment.
3553 * tree.c (block_ultimate_origin): Same.
3555 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3557 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
3558 Update GCC version name to GCC 5.
3559 (rs6000_function_arg_boundary): Likewise.
3560 (rs6000_function_arg): Likewise.
3562 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3564 * config/sh/sh.md: Fix use of constraints in define_split.
3566 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
3569 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
3571 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3573 * doc/md.texi (Modifiers): Consistently use "read/write"
3574 nomenclature rather than "input/output".
3575 * genrecog.c (constraints_supported_in_insn_p): New.
3576 (validate_pattern): If needed, also check constraints on
3577 MATCH_SCRATCH operands.
3578 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
3579 operands with no '=' or '+' modifier.
3581 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3583 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
3584 scratch register as written.
3586 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3588 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
3591 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3593 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
3596 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3599 * config/s390/s390.c (s390_emit_epilogue): When doing the return
3600 address load optimization force s390_optimize_prologue to leave it
3601 that way. Only do the optimization if we already decided to push
3602 r14 into a stack slot.
3604 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
3606 * asan.c (build_check_stmt): Alignment arg was added.
3607 (asan_expand_check_ifn): Optimization for alignment >= 8.
3609 2014-09-19 Olivier Hainque <hainque@adacore.com>
3611 * config/i386/vxworksae.h: Remove obsolete definitions.
3612 (STACK_CHECK_PROTECT): Define.
3613 * config/i386/vx-common.h: Remove. Merge contents within
3614 config/i386/vxworks.h.
3615 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
3618 2014-09-19 Olivier Hainque <hainque@adacore.com>
3620 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
3621 * config/rs6000/t-vxworksmils: New file.
3622 * config/rs6000/vxworksmils.h: New file.
3624 2014-09-19 Olivier Hainque <hainque@adacore.com>
3626 * varasm.c (default_section_type_flags): Flag .persistent.bss
3627 sections as SECTION_BSS.
3629 2014-09-19 Nick Clifton <nickc@redhat.com>
3631 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
3632 pop'ed registers so that DCE does not eliminate them.
3634 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
3637 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
3639 2014-09-18 Joseph Myers <joseph@codesourcery.com>
3641 * system.h (LIBGCC2_TF_CEXT): Poison.
3642 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
3643 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
3644 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
3645 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
3646 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
3647 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
3648 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
3649 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
3650 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
3652 2014-09-19 Kito Cheng <kito@0xlab.org>
3654 * except.h: Fix header guard.
3655 * addresses.h: Add missing header guard.
3656 * cfghooks.h: Likewise.
3657 * collect-utils.h: Likewise.
3658 * collect2-aix.h: Likewise.
3659 * conditions.h: Likewise.
3660 * cselib.h: Likewise.
3661 * dwarf2asm.h: Likewise.
3662 * graphds.h: Likewise.
3663 * graphite-scop-detection.h: Likewise.
3664 * gsyms.h: Likewise.
3665 * hw-doloop.h: Likewise.
3666 * incpath.h: Likewise.
3667 * ipa-inline.h: Likewise.
3668 * ipa-ref.h: Likewise.
3669 * ira-int.h: Likewise.
3671 * lra-int.h: Likewise.
3673 * lto-section-names.h: Likewise.
3674 * read-md.h: Likewise.
3675 * reload.h: Likewise.
3676 * rtl-error.h: Likewise.
3677 * sdbout.h: Likewise.
3678 * targhooks.h: Likewise.
3679 * tree-affine.h: Likewise.
3680 * xcoff.h: Likewise.
3681 * xcoffout.h: Likewise.
3683 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
3686 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
3689 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
3692 * lra.c (lra): Call recog_init.
3694 2014-09-18 Jakub Jelinek <jakub@redhat.com>
3697 * asan.c (transform_statements): Don't instrument clobber statements.
3699 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3701 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
3702 to neon_load1_1reg<q>.
3704 2014-09-17 Jakub Jelinek <jakub@redhat.com>
3707 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
3708 if there are only debug stmts after the noreturn call, instead
3709 remove the debug stmts.
3711 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
3713 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
3714 (odr_types_equivalent_p): Use pair hash.
3715 (odr_subtypes_equivalent_p): Likewise, do structural compare
3716 on ODR types that may be mismatched.
3717 (warn_odr): Support warning when only one field is given.
3718 (odr_types_equivalent_p): Strenghten comparsions made;
3720 (add_type_duplicate): Update VISITED hash set.
3722 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
3724 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
3725 Enable selection of 'posix' or no thread model.
3727 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
3729 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
3730 when architecture is older than ARMv7.
3732 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
3735 * config/pa/pa.c (pa_function_value): Directly handle aggregates
3736 that fit exactly in a word or double word.
3738 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
3740 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
3743 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
3744 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3745 Anna Tikhonova <anna.tikhonova@intel.com>
3746 Ilya Tocar <ilya.tocar@intel.com>
3747 Andrey Turetskiy <andrey.turetskiy@intel.com>
3748 Ilya Verbin <ilya.verbin@intel.com>
3749 Kirill Yukhin <kirill.yukhin@intel.com>
3750 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3752 * config/i386/i386.c
3753 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
3754 * config/i386/sse.md
3755 (define_mode_iterator VI48F_256): New.
3756 (define_mode_attr extract_type): Ditto.
3757 (define_mode_attr extract_suf): Ditto.
3758 (define_mode_iterator AVX512_VEC): Ditto.
3760 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
3762 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
3764 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
3766 (define_mode_attr extract_type_2): Ditto.
3767 (define_mode_attr extract_suf_2): Ditto.
3768 (define_mode_iterator AVX512_VEC_2): Ditto.
3770 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
3771 AVX512_VEC_2 mode iterator.
3772 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
3773 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
3774 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3775 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3776 (define_split for V16FI mode): Ditto.
3777 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3778 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3779 (define_split for VI8F_256 mode): Ditto.
3780 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
3781 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3782 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3783 (define_split for VI4F_256 mode): Ditto.
3784 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
3785 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
3786 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
3787 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
3788 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
3789 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
3790 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
3791 Update `type' attribute, remove explicit `memory' attribute calculation.
3793 2014-09-16 Kito Cheng <kito@0xlab.org>
3795 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
3796 ira_spilled_reg_stack_slots_num if using lra.
3797 (do_reload): Remove release ira_spilled_reg_stack_slots part.
3798 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
3799 make sure not using lra.
3800 (ira_reuse_stack_slot): Likewise.
3801 (ira_mark_new_stack_slot): Likewise.
3803 2014-09-15 Andi Kleen <ak@linux.intel.com>
3805 * function.c (allocate_struct_function): Force
3806 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
3807 profiling is disabled.
3809 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
3811 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
3812 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
3813 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
3814 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
3815 macro with statically checked member functions.
3816 * rtl.h (rtx_insn::deleted): New method.
3817 (rtx_insn::set_deleted): Likewise.
3818 (rtx_insn::set_undeleted): Likewise.
3819 (INSN_DELETED_P): Remove.
3821 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
3823 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
3824 result of emit_jump_insn_before to a new variable.
3825 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
3826 (mark_jump_label_1): Likewise.
3827 (mark_jump_label_asm): Likewise.
3828 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
3829 * rtl.h (mark_jump_label): Adjust.
3831 2014-09-15 Jakub Jelinek <jakub@redhat.com>
3833 * Makefile.in (dg_target_exps): Remove.
3834 (check_gcc_parallelize): Change to just an upper bound number.
3835 (check-%-subtargets): Always print the non-parallelized goals.
3836 (check_p_vars, check_p_comma, check_p_subwork): Remove.
3837 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
3838 check_p_numbers3, check_p_numbers4, check_p_numbers5,
3839 check_p_numbers6): New variables.
3840 (check_p_numbers): Set to sequence from 1 to 9999.
3841 (check_p_subdirs): Set to sequence from 1 to minimum of
3842 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
3844 (check-%, check-parallel-%): Rewritten so that for parallelized
3845 testing each job runs all the *.exp files, with
3846 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
3848 2014-09-15 David Malcolm <dmalcolm@redhat.com>
3850 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
3852 (arc_sets_cc_p): Likewise.
3853 * config/arc/arc.c (arc_print_operand): Use methods of
3854 "final_sequence" for clarity, and to enable strengthening of
3855 locals "jump" and "delay" from rtx to rtx_insn *.
3856 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
3857 rtx_insn *; use method of rtx_sequence for typesafety.
3858 (arc_get_insn_variants): Use insn method of rtx_sequence for
3860 (arc_pad_return): Likewise.
3861 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
3862 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
3863 dyn_cast to rtx_sequence *, using insn method for typesafety.
3864 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
3865 rtx_sequence * and use insn method when invoking get_attr_length.
3866 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
3867 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
3868 rtx_sequence *, introducing a local "seq", using its insn method
3869 from typesafety and clarity.
3870 (add_sched_insns_for_speculation): Strengthen local "next" from
3872 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
3873 (predicate_insn): Likewise.
3874 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
3876 * config/cris/cris.c (cris_notice_update_cc): Likewise.
3877 * config/epiphany/epiphany-protos.h
3878 (extern void epiphany_insert_mode_switch_use): Likewise for param
3880 (get_attr_sched_use_fpu): Likewise for param.
3881 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
3882 Likewise for param "insn".
3883 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
3884 param "insn" of "target_insert_mode_switch_use" callback.
3885 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
3886 (frv_issues_to_branch_unit_p): Likewise.
3887 (frv_pack_insn_p): Likewise.
3888 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
3889 const rtx * (i.e. mutable rtx_def * const *) to
3891 * config/i386/i386-protos.h (standard_sse_constant_opcode):
3892 Strengthen first param from rtx to rtx_insn *.
3893 (output_fix_trunc): Likewise.
3894 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
3895 (output_fix_trunc): Likewise.
3896 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
3898 (min_insn_size): Likewise for param "insn".
3899 (get_mem_group): Likewise.
3901 (get_insn_path): Likewise.
3902 (get_insn_group): Likewise.
3903 (count_num_restricted): Likewise.
3904 (fits_dispatch_window): Likewise.
3905 (add_insn_window): Likewise.
3906 (add_to_dispatch_window): Likewise.
3907 (debug_insn_dispatch_info_file): Likewise.
3908 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
3910 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
3911 "cmp" and local "prev".
3912 (m32c_output_compare): Likewise for param "insn".
3913 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
3914 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
3915 (define_predicate "large_insn_p"): Likewise.
3916 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
3917 param from rtx to rtx_insn *.
3918 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
3919 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
3920 (m68k_sched_attr_size): Likewise.
3921 (sched_get_opxy_mem_type): Likewise for param "insn".
3922 (m68k_sched_attr_op_mem): Likewise.
3923 (sched_mem_operand_p): Likewise.
3924 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
3925 * config/mep/mep.c (mep_multi_slot): Likewise.
3926 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
3928 (mips_sync_loop_insns): Likewise.
3929 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
3930 method of "final_sequence" for typesafety.
3931 (mips_process_sync_loop): Strengthen param "insn" from rtx to
3933 (mips_output_sync_loop): Likewise.
3934 (mips_sync_loop_insns): Likewise.
3935 (mips_74k_agen_init): Likewise.
3936 (mips_sched_init): Use NULL rather than NULL_RTX when working with
3938 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
3939 Strengthen param "insn" from rtx to rtx_insn *.
3940 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
3942 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
3944 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
3945 "insn". Use method of rtx_sequence for typesafety.
3946 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
3948 (branch_needs_nop_p): Likewise.
3949 (use_skip_p): Likewise.
3950 (pa_insn_refs_are_delayed): Likewise.
3951 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
3952 for locals "insn", "ninsn".
3953 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
3955 (is_cracked_insn): Likewise.
3956 (is_branch_slot_insn): Likewise.
3957 (is_nonpipeline_insn): Likewise.
3958 (insn_terminates_group_p): Likewise.
3959 (insn_must_be_first_in_group): Likewise.
3960 (insn_must_be_last_in_group): Likewise.
3961 (force_new_group): Likewise for param "next_insn".
3962 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
3964 (s390_sched_score): Likewise.
3965 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
3966 (rtx sfunc_uses_reg): Likewise for sole param.
3967 * config/sh/sh.c (sh_print_operand): Use insn method of
3968 final_sequence for typesafety.
3969 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
3970 Use insn method of final_sequence for typesafety.
3971 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
3972 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
3974 (eligible_for_return_delay): Likewise.
3975 (eligible_for_sibcall_delay): Likewise.
3976 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
3977 (eligible_for_return_delay): Likewise.
3978 (eligible_for_sibcall_delay): Likewise.
3979 * config/stormy16/stormy16-protos.h
3980 (xstormy16_output_cbranch_hi): Likewise for final param.
3981 (xstormy16_output_cbranch_si): Likewise.
3982 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
3983 (xstormy16_output_cbranch_si): Likewise.
3984 * config/v850/v850-protos.h (notice_update_cc): Likewise.
3985 * config/v850/v850.c (notice_update_cc): Likewise.
3987 * final.c (get_attr_length_1): Strengthen param "insn" and param
3988 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
3989 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
3990 (get_attr_min_length): Likewise.
3991 (shorten_branches): Likewise for signature of locals "length_fun"
3992 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
3993 from a checked cast and use its methods for clarity and to enable
3994 strengthening local "inner_insn" from rtx to rtx_insn *.
3995 * genattr.c (gen_attr): When writing out the prototypes of the
3996 various generated "get_attr_" functions, strengthen the params of
3997 the non-const functions from rtx to rtx_insn *.
3998 Similarly, strengthen the params of insn_default_length,
3999 insn_min_length, insn_variable_length_p, insn_current_length.
4000 (main): Similarly, strengthen the param of num_delay_slots,
4001 internal_dfa_insn_code, insn_default_latency, bypass_p,
4002 insn_latency, min_issue_delay, print_reservation,
4003 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4004 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4005 to hook_int_rtx_insn_unreachable.
4006 * genattrtab.c (write_attr_get): When writing out the generated
4007 "get_attr_" functions, strengthen the param "insn" from rtx to
4008 rtx_insn *, eliminating a checked cast.
4009 (make_automaton_attrs): When writing out prototypes of
4010 "internal_dfa_insn_code_", "insn_default_latency_" functions
4011 and the "internal_dfa_insn_code" and "insn_default_latency"
4012 callbacks, strengthen their params from rtx to rtx_insn *
4013 * genautomata.c (output_internal_insn_code_evaluation): When
4014 writing out code, add a checked cast from rtx to rtx_insn * when
4015 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4016 (output_dfa_insn_code_func): Strengthen param of generated
4017 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4018 (output_trans_func): Likewise for generated function
4020 (output_internal_insn_latency_func): When writing out generated
4021 function "internal_insn_latency", rename params from "insn" and
4022 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4023 locals "insn" and "insn2" as rtx_insn * with checked casts once
4024 we've proven that we're not dealing with const0_rtx.
4025 (output_insn_latency_func): Strengthen param of generated
4026 function "insn_latency" from rtx to rtx_insn *.
4027 (output_print_reservation_func): Likewise for generated function
4028 "print_reservation".
4029 (output_insn_has_dfa_reservation_p): Likewise for generated
4030 function "insn_has_dfa_reservation_p".
4031 * hooks.c (hook_int_rtx_unreachable): Rename to...
4032 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4033 from rtx to rtx_insn *.
4034 * hooks.h (hook_int_rtx_unreachable): Likewise.
4035 (extern int hook_int_rtx_insn_unreachable): Likewise.
4036 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4037 (get_attr_min_length): Likewise.
4038 * recog.c (get_enabled_alternatives): Likewise.
4039 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4040 * reorg.c (find_end_label): Introduce local rtx "pat" and
4041 strengthen local "insn" from rtx to rtx_insn *.
4042 (redundant_insn): Use insn method of "seq" rather than element for
4043 typesafety; strengthen local "control" from rtx to rtx_insn *.
4044 * resource.c (mark_referenced_resources): Add checked cast to
4045 rtx_insn * within INSN/JUMP_INSN case.
4046 (mark_set_resources): Likewise.
4047 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4050 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4052 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4053 param "label" from rtx to rtx_insn *.
4054 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4056 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4057 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4058 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4059 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4060 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4061 param from rtx to rtx_insn *.
4062 (default_loop_align_max_skip): Likewise.
4063 (default_label_align_max_skip): Likewise.
4064 (default_jump_align_max_skip): Likewise.
4065 * target.def (label_align_after_barrier_max_skip): Likewise.
4066 (loop_align_max_skip): Likewise.
4067 (label_align_max_skip): Likewise.
4068 (jump_align_max_skip): Likewise.
4069 * targhooks.h (default_label_align_after_barrier_max_skip):
4071 (default_loop_align_max_skip): Likewise.
4072 (default_label_align_max_skip): Likewise.
4073 (default_jump_align_max_skip): Likewise.
4075 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4077 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4078 from const_rtx to const rtx_insn *. Update union members from rtx
4080 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4081 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4082 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4083 strengthen both params from const_rtx to const rtx_insn *.
4084 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4085 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4086 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4088 * target.def (can_follow_jump): Strengthen both params from
4089 const_rtx to const rtx_insn *, and update default implementation
4090 from hook_bool_const_rtx_const_rtx_true to
4091 hook_bool_const_rtx_insn_const_rtx_insn_true.
4093 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4095 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4096 "insn" from rtx to rtx_insn *.
4097 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4099 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4100 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4101 Anna Tikhonova <anna.tikhonova@intel.com>
4102 Ilya Tocar <ilya.tocar@intel.com>
4103 Andrey Turetskiy <andrey.turetskiy@intel.com>
4104 Ilya Verbin <ilya.verbin@intel.com>
4105 Kirill Yukhin <kirill.yukhin@intel.com>
4106 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4108 * config/i386/sse.md
4109 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4110 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4111 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4112 (define_expand "vcvtps2ph_mask"): New.
4113 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4114 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4115 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4117 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4118 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4119 Anna Tikhonova <anna.tikhonova@intel.com>
4120 Ilya Tocar <ilya.tocar@intel.com>
4121 Andrey Turetskiy <andrey.turetskiy@intel.com>
4122 Ilya Verbin <ilya.verbin@intel.com>
4123 Kirill Yukhin <kirill.yukhin@intel.com>
4124 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4126 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4128 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4129 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4130 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4131 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4132 also for TARGET_AVX512VL.
4133 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4135 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4137 * doc/install.texi (Options specification): add
4138 --disable-libsanitizer item.
4140 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4141 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4144 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4146 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4147 kernel version check to avoid incrementing it after every major OS X
4149 (darwin_default_min_version): Avoid static memory buffer.
4151 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
4153 * tree.c (need_assembler_name_p): Store C++ type mangling only
4156 2014-09-13 Marek Polacek <polacek@redhat.com>
4158 * tree.c (protected_set_expr_location): Don't check whether T is
4161 2014-09-12 DJ Delorie <dj@redhat.com>
4163 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4164 (extend_and_shift1_hipsi2): Likewise.
4165 (extend_and_shift2_hipsi2): Likewise.
4167 2014-09-12 David Malcolm <dmalcolm@redhat.com>
4169 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4170 with NULL when dealing with an insn.
4171 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4172 from rtx to rtx_insn *.
4173 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4174 const_rtx to const rtx_insn *.
4175 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4177 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
4179 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4182 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4184 * target.def (libgcc_floating_mode_supported_p): New hook.
4185 * targhooks.c (default_libgcc_floating_mode_supported_p): New
4187 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4188 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4189 (LIBGCC2_HAS_TF_MODE): Remove.
4190 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4191 * doc/tm.texi: Regenerate.
4192 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4194 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4195 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4196 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4197 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4198 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4199 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4200 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4201 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4202 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4203 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4205 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4206 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4207 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4208 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4209 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4210 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4211 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4212 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4213 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4214 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4215 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4216 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4217 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4218 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4220 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4222 (ia64_libgcc_floating_mode_supported_p): New function.
4223 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4224 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4225 (IA64_NO_LIBGCC_TFMODE): Define.
4226 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4227 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4229 (pdp11_scalar_mode_supported_p): New function.
4230 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4231 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4233 2014-09-12 Richard Biener <rguenther@suse.de>
4236 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4238 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
4240 * tree.c (integer_each_onep): New function.
4241 * tree.h (integer_each_onep): Declare it.
4242 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4243 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4244 (X & 1) == 0 for vector and complex.
4246 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4248 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4250 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
4251 cost to spilling from integer to FP registers.
4253 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4255 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4257 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4258 are now handled correctly.
4260 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4262 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4263 handling of CALLER_SAVE_REGS and POINTER_REGS.
4265 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4267 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4268 the number of hard registers.
4270 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4271 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4272 Anna Tikhonova <anna.tikhonova@intel.com>
4273 Ilya Tocar <ilya.tocar@intel.com>
4274 Andrey Turetskiy <andrey.turetskiy@intel.com>
4275 Ilya Verbin <ilya.verbin@intel.com>
4276 Kirill Yukhin <kirill.yukhin@intel.com>
4277 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4279 * config/i386/sse.md
4280 (define_mode_iterator VI48_AVX512VL): New.
4281 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4282 "avx512f_vternlog<mode>_maskz" and update mode iterator.
4283 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4284 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4285 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4286 "avx512f_vternlog<mode>_mask" and update mode iterator.
4287 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4288 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4290 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4291 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4292 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4293 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4294 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4295 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4297 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4298 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4299 Anna Tikhonova <anna.tikhonova@intel.com>
4300 Ilya Tocar <ilya.tocar@intel.com>
4301 Andrey Turetskiy <andrey.turetskiy@intel.com>
4302 Ilya Verbin <ilya.verbin@intel.com>
4303 Kirill Yukhin <kirill.yukhin@intel.com>
4304 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4306 * config/i386/sse.md (VI128_256): Delete.
4307 (define_mode_iterator VI124_256): New.
4308 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4309 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4310 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4311 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4312 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4313 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4314 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4315 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4317 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4318 in presence of AVX-512.
4320 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4321 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4322 Anna Tikhonova <anna.tikhonova@intel.com>
4323 Ilya Tocar <ilya.tocar@intel.com>
4324 Andrey Turetskiy <andrey.turetskiy@intel.com>
4325 Ilya Verbin <ilya.verbin@intel.com>
4326 Kirill Yukhin <kirill.yukhin@intel.com>
4327 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4329 * config/i386/sse.md
4330 (define_expand "<avx512>_gathersi<mode>"): Rename from
4331 "avx512f_gathersi<mode>".
4332 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4333 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4334 (define_expand "<avx512>_gatherdi<mode>"): Rename from
4335 "avx512f_gatherdi<mode>".
4336 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4337 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4339 (define_expand "<avx512>_scattersi<mode>"): Rename from
4340 "avx512f_scattersi<mode>".
4341 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4342 (define_expand "<avx512>_scatterdi<mode>"): Rename from
4343 "avx512f_scatterdi<mode>".
4344 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4346 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
4348 * ira.h (ira_finish_once): Delete.
4349 * ira-int.h (target_ira_int::~target_ira_int): Declare.
4350 (target_ira_int::free_ira_costs): Likewise.
4351 (target_ira_int::free_register_move_costs): Likewise.
4352 (ira_finish_costs_once): Delete.
4353 * ira.c (free_register_move_costs): Replace with...
4354 (target_ira_int::free_register_move_costs): ...this new function.
4355 (target_ira_int::~target_ira_int): Define.
4356 (ira_init): Call free_register_move_costs as a member function rather
4357 than a global function.
4358 (ira_finish_once): Delete.
4359 * ira-costs.c (free_ira_costs): Replace with...
4360 (target_ira_int::free_ira_costs): ...this new function.
4361 (ira_init_costs): Call free_ira_costs as a member function rather
4362 than a global function.
4363 (ira_finish_costs_once): Delete.
4364 * target-globals.c (target_globals::~target_globals): Call the
4365 target_ira_int destructor.
4366 * toplev.c: Include lra.h.
4367 (finalize): Call lra_finish_once rather than ira_finish_once.
4369 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
4371 * common.opt (flto-odr-type-merging): New flag.
4372 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4373 (types_same_for_odr): Likewise.
4374 (odr_subtypes_equivalent_p): Likewise.
4375 (add_type_duplicate): Do not walk type variants.
4376 (register_odr_type): New function.
4377 * ipa-utils.h (register_odr_type): Declare.
4378 (odr_type_p): New function.
4379 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4381 * doc/invoke.texi (-flto-odr-type-merging): Document.
4382 * tree.c (need_assembler_name_p): Compute ODR names when asked
4384 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4386 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
4389 * config/i386/i386.c (ix86_option_override_internal): Also turn
4390 off OPTION_MASK_ABI_X32 for -m16.
4392 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4394 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4397 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4400 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4401 Directly forward to __*_DENORM_MIN__.
4403 2014-09-11 David Malcolm <dmalcolm@redhat.com>
4405 * rtl.h (LABEL_REF_LABEL): New macro.
4407 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4408 of XEXP (, 0), where we know that we have a LABEL_REF.
4409 * cfgbuild.c (make_edges): Likewise.
4410 (purge_dead_tablejump_edges): Likewise.
4411 * cfgexpand.c (convert_debug_memory_address): Likewise.
4412 * cfgrtl.c (patch_jump_insn): Likewise.
4413 * combine.c (distribute_notes): Likewise.
4414 * cse.c (hash_rtx_cb): Likewise.
4415 (exp_equiv_p): Likewise.
4416 (fold_rtx): Likewise.
4417 (check_for_label_ref): Likewise.
4418 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4419 (cselib_hash_rtx): Likewise.
4420 * emit-rtl.c (mark_label_nuses): Likewise.
4421 * explow.c (convert_memory_address_addr_space): Likewise.
4422 * final.c (output_asm_label): Likewise.
4423 (output_addr_const): Likewise.
4424 * gcse.c (add_label_notes): Likewise.
4425 * genconfig.c (walk_insn_part): Likewise.
4426 * genrecog.c (validate_pattern): Likewise.
4427 * ifcvt.c (cond_exec_get_condition): Likewise.
4428 (noce_emit_store_flag): Likewise.
4429 (noce_get_alt_condition): Likewise.
4430 (noce_get_condition): Likewise.
4431 * jump.c (maybe_propagate_label_ref): Likewise.
4432 (mark_jump_label_1): Likewise.
4433 (redirect_exp_1): Likewise.
4434 (rtx_renumbered_equal_p): Likewise.
4435 * lra-constraints.c (operands_match_p): Likewise.
4436 * reload.c (operands_match_p): Likewise.
4437 (find_reloads): Likewise.
4438 * reload1.c (set_label_offsets): Likewise.
4439 * reorg.c (get_branch_condition): Likewise.
4440 * rtl.c (rtx_equal_p_cb): Likewise.
4441 (rtx_equal_p): Likewise.
4442 * rtlanal.c (reg_mentioned_p): Likewise.
4443 (rtx_referenced_p): Likewise.
4444 (get_condition): Likewise.
4445 * sched-vis.c (print_value): Likewise.
4446 * varasm.c (const_hash_1): Likewise.
4447 (compare_constant): Likewise.
4448 (const_rtx_hash_1): Likewise.
4449 (output_constant_pool_1): Likewise.
4451 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4453 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
4454 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
4456 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
4457 cr6_test_for_lt_reverse): Ditto.
4459 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
4462 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
4464 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4466 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
4467 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
4468 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
4469 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
4472 (aarch64_fold_builtin): Remove all reinterpret cases.
4474 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
4476 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
4478 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
4479 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
4480 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
4481 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
4482 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
4483 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
4484 aarch64_reinterpretv2df<mode>): Delete.
4486 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
4488 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
4489 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
4490 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
4491 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
4492 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
4493 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
4494 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
4495 vreinterpret_u32_f64): Use cast.
4497 * config/aarch64/iterators.md (VD_RE): Delete.
4499 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4501 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
4502 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
4503 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
4504 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
4505 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
4506 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
4507 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
4508 Replace inline assembler with __aarch64_vset_lane_any.
4510 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
4512 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
4514 (vmull_high_lane_s32): Likewise.
4515 (vmull_high_lane_u16): Likewise.
4516 (vmull_high_lane_u32): Likewise.
4518 2014-09-11 Jason Merrill <jason@redhat.com>
4521 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
4523 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
4526 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
4527 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
4528 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
4530 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4531 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4532 Anna Tikhonova <anna.tikhonova@intel.com>
4533 Ilya Tocar <ilya.tocar@intel.com>
4534 Andrey Turetskiy <andrey.turetskiy@intel.com>
4535 Ilya Verbin <ilya.verbin@intel.com>
4536 Kirill Yukhin <kirill.yukhin@intel.com>
4537 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4539 * config/i386/sse.md
4540 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
4541 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
4542 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
4544 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
4545 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
4547 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4549 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
4550 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
4551 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
4552 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
4553 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
4554 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
4555 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
4556 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
4558 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4560 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
4561 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
4562 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
4564 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4566 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
4567 to access removed nodes.
4569 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4571 PR tree-optimization/63186
4572 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
4573 (mark_nonssa_use): Likewise.
4574 (verify_non_ssa_vars): Verify all header blocks for label
4577 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4578 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4579 Anna Tikhonova <anna.tikhonova@intel.com>
4580 Ilya Tocar <ilya.tocar@intel.com>
4581 Andrey Turetskiy <andrey.turetskiy@intel.com>
4582 Ilya Verbin <ilya.verbin@intel.com>
4583 Kirill Yukhin <kirill.yukhin@intel.com>
4584 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4586 * config/i386/sse.md
4587 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
4588 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
4589 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
4590 "<avx2_avx512f>_permvar<mode><mask_name>".
4591 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
4592 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
4593 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
4594 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
4596 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
4597 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4598 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
4599 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4601 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4603 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
4604 V2DF, V4SF, DF, and DI modes.
4605 (vsx_fmav2df2): Likewise.
4606 (vsx_float_fix_<mode>2): Likewise.
4607 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
4609 2014-09-10 Xinliang David Li <davidxl@google.com>
4612 * config/arm/arm.md (movcond_addsi): Handle case where source
4613 and target operands are the same.
4615 2014-09-10 David Malcolm <dmalcolm@redhat.com>
4617 * final.c (this_is_asm_operands): Strengthen this variable from
4618 rtx to const rtx_insn *.
4619 * output.h (this_is_asm_operands): Likewise.
4620 * rtl-error.c (location_for_asm): Strengthen param "insn" from
4621 const_rtx to const rtx_insn *.
4622 (diagnostic_for_asm): Likewise.
4623 * rtl-error.h (error_for_asm): Likewise.
4624 (warning_for_asm): Likewise.
4626 2014-09-10 David Malcolm <dmalcolm@redhat.com>
4628 * genextract.c (print_header): When writing out insn_extract to
4629 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
4630 * recog.h (insn_extract): Strengthen the param from rtx to
4633 2014-09-10 Mike Stump <mikestump@comcast.net>
4635 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
4638 2014-09-10 Martin Jambor <mjambor@suse.cz>
4640 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
4641 (analyze): Do not set analyze flag if expand_thunk returns false;.
4642 (create_wrapper): Likewise.
4643 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
4645 2014-09-10 Martin Jambor <mjambor@suse.cz>
4648 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
4649 new decl properly. Analyze the new thunk if it is expanded.
4651 2014-09-10 Andreas Schwab <schwab@suse.de>
4653 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
4654 [USED_FOR_TARGET]: Define.
4656 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
4658 * config/mips/mips.c (mips_secondary_reload_class): Handle
4661 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
4663 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
4666 2014-09-10 Jakub Jelinek <jakub@redhat.com>
4668 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
4669 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
4670 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
4671 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
4672 flag_delete_null_pointer_checks for them.
4673 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4674 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
4675 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
4676 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
4677 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
4679 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
4680 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
4681 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
4682 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
4683 * doc/invoke.texi (-fsanitize=nonnull-attribute,
4684 -fsanitize=returns-nonnull-attribute): Document.
4686 * ubsan.h (struct ubsan_mismatch_data): Removed.
4687 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
4688 * ubsan.c (ubsan_source_location): For unknown locations,
4689 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
4690 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
4691 Allow more than one location and arbitrary extra arguments passed
4692 in ... instead of through MISMATCH pointer.
4693 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
4694 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
4695 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
4698 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4699 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4700 Anna Tikhonova <anna.tikhonova@intel.com>
4701 Ilya Tocar <ilya.tocar@intel.com>
4702 Andrey Turetskiy <andrey.turetskiy@intel.com>
4703 Ilya Verbin <ilya.verbin@intel.com>
4704 Kirill Yukhin <kirill.yukhin@intel.com>
4705 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4707 * config/i386/sse.md
4708 (define_mode_iterator VI48F): New.
4709 (define_insn "<avx512>_compress<mode>_mask"): Rename from
4710 "avx512f_compress<mode>_mask" and update mode iterator.
4711 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
4712 "avx512f_compressstore<mode>_mask" and update mode iterator.
4713 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
4714 "avx512f_expand<mode>_maskz" and update mode iterator.
4715 (define_insn "<avx512>_expand<mode>_mask"): Rename from
4716 "avx512f_expand<mode>_mask" and update mode iterator.
4718 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4719 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4720 Anna Tikhonova <anna.tikhonova@intel.com>
4721 Ilya Tocar <ilya.tocar@intel.com>
4722 Andrey Turetskiy <andrey.turetskiy@intel.com>
4723 Ilya Verbin <ilya.verbin@intel.com>
4724 Kirill Yukhin <kirill.yukhin@intel.com>
4725 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4727 * config/i386/i386.c
4728 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
4729 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
4730 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
4731 avx512dq_rangepv4sf_mask.
4732 * config/i386/sse.md
4733 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
4735 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
4736 (define_insn "reduces<mode>"): Ditto.
4737 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4739 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
4740 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
4741 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
4743 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4744 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4745 Anna Tikhonova <anna.tikhonova@intel.com>
4746 Ilya Tocar <ilya.tocar@intel.com>
4747 Andrey Turetskiy <andrey.turetskiy@intel.com>
4748 Ilya Verbin <ilya.verbin@intel.com>
4749 Kirill Yukhin <kirill.yukhin@intel.com>
4750 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4752 * config/i386/i386.c
4753 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
4754 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
4755 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
4756 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
4757 avx512vl_getmantv2df_mask.
4758 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
4759 avx512f_vgetmantv4sf_round.
4760 * config/i386/sse.md
4761 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
4762 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
4764 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
4765 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
4766 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
4767 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
4769 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
4770 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
4771 update mode iterator.
4773 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
4774 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
4777 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
4778 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
4779 update mode iterator.
4780 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
4781 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
4784 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
4785 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
4787 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
4788 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
4789 update mode iterator.
4790 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
4791 "avx512f_getmant<mode><round_saeonly_name>".
4793 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4796 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
4798 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4799 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4800 Anna Tikhonova <anna.tikhonova@intel.com>
4801 Ilya Tocar <ilya.tocar@intel.com>
4802 Andrey Turetskiy <andrey.turetskiy@intel.com>
4803 Ilya Verbin <ilya.verbin@intel.com>
4804 Kirill Yukhin <kirill.yukhin@intel.com>
4805 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4807 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
4808 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
4809 (define_mode_iterator FMAMODE_AVX512): New.
4810 (define_mode_iterator FMAMODE): Remove conditions.
4811 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
4812 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
4813 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
4815 (define_mode_iterator FMAMODE_NOVF512): Remove.
4816 (define_insn "*fma_fmadd_<mode>"): Rename from
4817 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
4818 FMAMODE mode iterator.
4819 (define_mode_iterator VF_SF_AVX512VL): New.
4820 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
4821 Use VF_SF_AVX512VL mode iterator.
4822 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
4823 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4825 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
4826 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4828 (define_insn "*fma_fmsub_<mode>"): Rename from
4829 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
4830 FMAMODE mode iterator.
4831 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
4832 Use VF_SF_AVX512VL mode iterator.
4833 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
4834 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4836 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
4837 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4839 (define_insn "*fma_fnmadd_<mode>"): Rename from
4840 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
4841 use FMAMODE mode iterator.
4842 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
4843 Use VF_SF_AVX512VL mode iterator.
4844 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
4845 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4847 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
4848 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4850 (define_insn "*fma_fnmsub_<mode>"): Rename from
4851 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
4852 FMAMODE mode iterator.
4853 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
4854 Use VF_SF_AVX512VL mode iterator.
4855 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
4856 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4858 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
4859 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4861 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
4862 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
4863 use VF_AVX512VL mode iterator.
4864 (define_insn "*fma_fmaddsub_<mode>"): Rename from
4865 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
4867 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
4868 Use VF_SF_AVX512VL mode iterator.
4869 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
4870 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4872 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
4873 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4875 (define_insn "*fma_fmsubadd_<mode>"): Rename from
4876 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
4877 remove usage of subst.
4878 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
4879 Use VF_SF_AVX512VL mode iterator.
4880 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
4881 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4883 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
4884 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4887 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
4890 * calls.c (precompute_arguments): Check
4891 promoted_for_signed_and_unsigned_p and set the promoted mode.
4892 (promoted_for_signed_and_unsigned_p): New function.
4893 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
4894 and set the promoted mode.
4895 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
4896 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
4897 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
4899 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4901 * opth-gen.awk: Generate mapping from cpp message reasons to the
4902 options that enable them.
4903 * doc/options.texi (CppReason): Document.
4905 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4907 * doc/invoke.texi (Wnormalized=): Update.
4909 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4912 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
4913 operands. Split off the constant operand alternative to ...
4914 (*bool<mode>3_imm): New.
4916 2014-09-09 David Malcolm <dmalcolm@redhat.com>
4918 * rtl.h (single_set_2): Strengthen first param from const_rtx to
4919 const rtx_insn *, and move prototype to above...
4920 (single_set): ...this. Convert this from a macro to an inline
4921 function, enforcing the requirement that the param is a const
4923 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
4925 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
4926 Strengthen both params from rtx to rtx_insn *.
4927 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
4928 Likewise; introduce locals "producer_set", "consumer_set", using
4929 them in place of "producer" and "consumer" when dealing with SET
4931 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
4932 when invoking single_set in region guarded by INSN_P.
4933 (avr_out_bitop): Likewise.
4934 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
4935 region guarded by GET_CODE check, using methods to strengthen
4936 local "this_insn" from rtx to rtx_insn *, and for clarity.
4937 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
4938 Strengthen local "insn" from rtx to rtx_insn *.
4939 (define_insn_and_split "xload<mode>_A"): Likewise.
4940 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
4942 (find_load): Likewise for return type.
4943 (workaround_speculation): Likewise for both locals named
4945 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
4947 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
4949 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
4951 * config/h8300/h8300.c (notice_update_cc): Likewise.
4952 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
4953 "insn" and "dep_insn".
4954 (exact_store_load_dependency): Likewise for both params.
4955 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
4956 since this now clashes with inline function. Instead, delay
4957 calling single_set until the point where its needed, and then
4958 assign the result to "compare_set" and rework the conditional that
4960 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
4961 local "last" from rtx to rtx_insn *.
4962 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
4964 (mips_store_data_bypass_p): Likewise for both params.
4965 * config/mips/mips.c (mips_load_store_insns): Likewise for second
4967 (mips_store_data_bypass_p): Likewise for both params.
4968 (mips_orphaned_high_part_p): Likewise for param "insn".
4969 * config/mn10300/mn10300.c (extract_bundle): Likewise.
4970 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
4971 Introduce local rtx "insn2_pat".
4972 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
4974 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
4975 Introduce local rtx "set", using it in place of "insn" for the
4976 result of single_set. This appears to fix a bug, since the call
4977 to find_regno_note on a SET does nothing.
4978 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
4979 params from rtx to rtx_insn *.
4980 (set_to_load_agen): Likewise.
4981 * config/s390/s390.c (s390_label_align): Likewise for local
4982 "prev_insn". Introduce new rtx locals "set" and "src", using
4983 them in place of "prev_insn" for the results of single_set
4984 and SET_SRC respectively.
4985 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
4986 Introduce new rtx local "set" using in place of "jump" for the
4987 result of single_set. Use SET_SRC (set) rather than plain
4989 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
4991 (noncall_uses_reg): Likewise.
4992 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
4993 guarded by GET_CODE check, using its methods for clarity, and to
4994 enable strengthening local "this_insn" from rtx to rtx_insn *.
4995 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
4996 "insn" from rtx to rtx_insn *.
4997 (define_expand "umulhisi3"): Likewise.
4998 (define_expand "smulsi3_highpart"): Likewise.
4999 (define_expand "umulsi3_highpart"): Likewise.
5000 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5001 local "after". Replace GET_CODE check with a dyn_cast,
5002 introducing new local rtx_sequence * "seq", using insn method for
5005 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5006 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5007 place of "insn" once we're dealing with patterns rather than the
5009 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5010 (scan_trace): Likewise for local "elt", updating lookups within
5011 sequence to use insn method rather than element method.
5012 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5014 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5015 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5016 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5017 invoking single_set.
5018 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5019 "insn" from rtx to rtx_insn *.
5020 (skip_usage_debug_insns): Likewise for return type, adding a
5022 (check_secondary_memory_needed_p): Likewise for local "insn".
5023 (inherit_reload_reg): Likewise.
5024 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5025 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5027 (store_data_bypass_p): Likewise for both params.
5028 (if_test_bypass_p): Likewise.
5029 * recog.h (store_data_bypass_p): Likewise for both params.
5030 (if_test_bypass_p): Likewise.
5031 * reload.c (find_equiv_reg): Likewise for local "where".
5032 * reorg.c (delete_jump): Likewise for param "insn".
5033 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5034 to const rtx_insn *.
5035 * store-motion.c (replace_store_insn): Likewise for param "del".
5036 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5037 and use its methods for clarity, and to strengthen local "del"
5038 from rtx to rtx_insn *.
5039 (build_store_vectors): Use insn method of "st" when calling
5040 replace_store_insn for typesafety and clarity.
5042 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5044 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5045 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5046 on how to make it legal in future.
5048 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5050 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5052 (restinsn): Likewise.
5053 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5055 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5057 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5059 (arc_hazard): Likewise for both params.
5060 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5061 checked casts to rtx_sequence * and uses of the insn method for
5063 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5064 (arc_adjust_insn_length): Likewise for param "insn".
5065 (struct insn_length_parameters_s): Likewise for first param of
5066 "get_variants" callback field.
5067 (arc_get_insn_variants): Likewise for first param and local
5068 "inner". Replace a check of GET_CODE with a dyn_cast to
5069 rtx_sequence *, using methods for type-safety and clarity.
5070 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5071 rtx_sequence * and uses of the insn method for type-safety when
5072 invoking arc_adjust_insn_length.
5073 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5075 (arm_address_offset_is_imm): Likewise.
5076 (struct tune_params): Likewise for params 1 and 3 of the
5077 "sched_adjust_cost" callback field.
5078 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5079 params 1 and 3 ("insn" and "dep").
5080 (xscale_sched_adjust_cost): Likewise.
5081 (fa726te_sched_adjust_cost): Likewise.
5082 (cortexa7_older_only): Likewise for param "insn".
5083 (cortexa7_younger): Likewise.
5084 (arm_attr_length_move_neon): Likewise.
5085 (arm_address_offset_is_imm): Likewise.
5086 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5087 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5088 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5089 (workaround_speculation): Likewise for local "last_condjump".
5090 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5091 (shadow_or_blockage_p): Likewise.
5092 (get_unit_reqs): Likewise.
5093 (get_unit_operand_masks): Likewise.
5094 (c6x_registers_update): Likewise.
5095 (returning_call_p): Likewise.
5096 (can_use_callp): Likewise.
5097 (convert_to_callp): Likewise.
5098 (find_last_same_clock): Likwise for local "t".
5099 (reorg_split_calls): Likewise for local "shadow".
5100 (hwloop_pattern_reg): Likewise for param "insn".
5101 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5102 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5103 (frv_extract_membar): Likewise.
5104 (frv_optimize_membar_local): Strengthen param "last_membar" from
5105 rtx * to rtx_insn **.
5106 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5108 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5110 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5111 both params from rtx to rtx_insn *.
5112 (ia64_ld_address_bypass_p): Likewise.
5113 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5115 (ia64_safe_type): Likewise.
5116 (group_barrier_needed): Likewise.
5117 (safe_group_barrier_needed): Likewise.
5118 (ia64_single_set): Likewise.
5119 (is_load_p): Likewise.
5120 (record_memory_reference): Likewise.
5121 (get_mode_no_for_insn): Likewise.
5122 (important_for_bundling_p): Likewise.
5123 (unknown_for_bundling_p): Likewise.
5124 (ia64_st_address_bypass_p): Likewise for both params.
5125 (ia64_ld_address_bypass_p): Likewise.
5126 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5127 in place of rtx "x" after the emit_insn call.
5128 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5129 Strengthen param from rtx to rtx_insn *.
5130 (ix86_agi_dependent): Likewise for both params.
5131 (ix86_attr_length_immediate_default): Likewise for param 1.
5132 (ix86_attr_length_address_default): Likewise for param.
5133 (ix86_attr_length_vex_default): Likewise for param 1.
5134 * config/i386/i386.c (ix86_attr_length_immediate_default):
5135 Likewise for param "insn".
5136 (ix86_attr_length_address_default): Likewise.
5137 (ix86_attr_length_vex_default): Likewise.
5138 (ix86_agi_dependent): Likewise for both params.
5139 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5140 (vselect_insn): Likewise for this variable.
5141 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5143 (m68k_sched_attr_opy_type): Likewise.
5144 * config/m68k/m68k.c (sched_get_operand): Likewise.
5145 (sched_attr_op_type): Likewise.
5146 (m68k_sched_attr_opx_type): Likewise.
5147 (m68k_sched_attr_opy_type): Likewise.
5148 (sched_get_reg_operand): Likewise.
5149 (sched_get_mem_operand): Likewise.
5150 (m68k_sched_address_bypass_p): Likewise for both params.
5151 (sched_get_indexed_address_scale): Likewise.
5152 (m68k_sched_indexed_address_bypass_p): Likewise.
5153 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5154 (m68k_sched_indexed_address_bypass_p): Likewise.
5155 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5156 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5158 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5159 params from rtx to rtx_insn *.
5160 (mips_fmadd_bypass): Likewise.
5161 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5162 (mips_linked_madd_p): Likewise.
5163 (mips_macc_chains_last_hilo): Likewise for this variable.
5164 (mips_macc_chains_record): Likewise for param.
5165 (vr4130_last_insn): Likewise for this variable.
5166 (vr4130_swap_insns_p): Likewise for both params.
5167 (mips_ls2_variable_issue): Likewise for param.
5168 (mips_need_noat_wrapper_p): Likewise for param "insn".
5169 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5170 in place of "x" after the emit_insn.
5171 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5172 params from rtx to rtx_insn *.
5173 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5174 (pa_combine_instructions): Introduce local "par" for result of
5175 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5177 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5178 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5179 (rl78_alloc_physical_registers_op1): Likewise.
5180 (rl78_alloc_physical_registers_op2): Likewise.
5181 (rl78_alloc_physical_registers_ro1): Likewise.
5182 (rl78_alloc_physical_registers_cmp): Likewise.
5183 (rl78_alloc_physical_registers_umul): Likewise.
5184 (rl78_alloc_address_registers_macax): Likewise.
5185 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5186 * config/s390/predicates.md (execute_operation): Likewise for
5188 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5190 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5191 (addr_generation_dependency_p): Likewise for param "insn".
5192 (s390_agen_dep_p): Likewise for both params.
5193 (s390_fpload_toreg): Likewise for param "insn".
5194 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5195 * config/sh/sh.c (sh_loop_align): Likewise for param and local
5197 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5198 * config/sh/sh_treg_combine.cc
5199 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5201 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5202 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5203 "and_insn", "load", "shift".
5204 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5206 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5207 for XEXP (note, 0) of the REG_CC_SETTER note.
5208 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5209 rtx_insn *, eliminating a checked cast made redundant by this.
5210 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5212 * genattr.c (main): When writing out the prototype to
5213 const_num_delay_slots, strengthen the param from rtx to
5215 * genattrtab.c (write_const_num_delay_slots): Likewise when
5216 writing out the implementation of const_num_delay_slots.
5217 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5218 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5219 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5220 favor of new rtx locals "src" and "set" and new local rtx_insn *
5222 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5224 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5225 locals "cond", "if_then_else", "set" and new rtx_insn * locals
5227 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5228 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
5229 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
5230 the top-level scope, replacing with new more tightly-scoped rtx
5231 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5232 "new_insn", "copy_of_insn_b", and make local rtx "set" more
5234 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5236 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5238 (ira_setup_alts): Likewise for param "insn".
5239 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5240 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5242 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5243 new more-tightly scoped rtx locals "add3_insn", "insn",
5244 "add2_insn" and rtx_insn * "move_insn".
5245 * postreload-gcse.c (eliminate_partially_redundant_load): Add
5246 checked cast on result of gen_move_insn when invoking
5248 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5250 (verify_changes): Add a checked cast on "object" when invoking
5252 (extract_insn_cached): Strengthen param "insn" from rtx to
5254 (extract_constrain_insn_cached): Likewise.
5255 (extract_insn): Likewise.
5256 * recog.h (insn_invalid_p): Likewise for param 1.
5257 (recog_memoized): Likewise for param.
5258 (extract_insn): Likewise.
5259 (extract_constrain_insn_cached): Likewise.
5260 (extract_insn_cached): Likewise.
5261 * reload.c (can_reload_into): Likewise for local "test_insn".
5262 * reload.h (cleanup_subreg_operands): Likewise for param.
5263 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5264 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5265 result of emit_insn. Remove a checked cast made redundant by this
5267 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5269 * sel-sched.c (get_reg_class): Likewise.
5271 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
5272 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5274 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5275 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5277 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5279 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5281 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5282 const rtx_insn *, and from rtx to rtx_insn * for the other
5284 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5285 INSN_LOCATION, since we know INSN_P holds.
5286 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5287 (insn_file): Likewise.
5288 (insn_scope): Likewise.
5289 (insn_location): Likewise.
5291 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5292 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5293 for the result of gen_load_const_gp.
5294 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5295 param from rtx to rtx_insn *.
5296 * config/rs6000/rs6000.c (output_call): Likewise.
5297 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5298 introducing a checked cast to rtx_sequence * and use of the insn
5300 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5301 from rtx to rtx_insn *.
5302 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5303 (insn_line): Likewise.
5304 (insn_file): Likewise.
5305 (insn_location): Likewise.
5306 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5307 from rtx to rtx_insn *.
5308 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5309 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5310 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5312 * reorg.c (relax_delay_slots): Strengthen locals named "after"
5313 from rtx to rtx_insn *; use methods of "pat" for type-safety.
5315 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5317 * combine.c (try_combine): Eliminate checked cast on result of
5319 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5320 autogenerated one by strengthening the return type and params 2 and 3
5321 from rtx to rtx_insn *, and by naming the params.
5322 * gengenrtl.c (special_rtx): Add INSN to those that are
5324 * rtl.h (gen_rtx_INSN): New prototype.
5326 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5328 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5330 (no_equiv): Likewise.
5331 (update_equiv_regs): Likewise.
5332 (setup_reg_equiv): Likewise. Strengthen locals "elem",
5333 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5334 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
5336 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5337 from rtx to rtx_insn_list *.
5338 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5339 rtx_insn_list * and use methods for clarity and typesafety.
5340 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5342 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
5343 redundant check on INSN_P (insns): this cannot hold, as "insns" is
5344 an INSN_LIST, not an insn.
5345 (reverse_equiv_p): Strengthen local "insns" from rtx to
5346 rtx_insn_list * and use methods for clarity and typesafety.
5347 (contains_reloaded_insn_p): Likewise for local "list".
5349 2014-09-09 Jiong Wang <jiong.wang@arm.com>
5351 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5352 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5353 (arm_builtin_vectorized_function): Likewise.
5354 * config/arm/arm_neon_builtins.def: New macro for copysignf.
5355 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5357 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
5359 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5360 * builtins.h (default_target_builtins): Likewise.
5361 * gcse.h (default_target_gcse): Likewise.
5362 * target-globals.h (target_globals): Add a destructor. Convert
5363 void-pointer fields back to their real type and change from
5364 GTY((atomic)) to GTY((skip)).
5365 (restore_target_globals): Remove casts accordingly.
5366 * target-globals.c (save_target_globals): Use XCNEW rather than
5367 ggc_internal_cleared_alloc to allocate non-GC structures.
5368 Use ggc_cleared_alloc to allocate the target_globals structure
5370 (target_globals::~target_globals): Define.
5372 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5374 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5375 mnemonic instead of fldmfdd.
5376 * config/arm/arm.c (vfp_output_fstmd): Rename to...
5377 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
5378 Output vpush when address register is SP.
5379 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5380 (vfp_output_vstmd): ... This.
5381 * config/arm/vfp.md (push_multi_vfp): Update call to
5384 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5386 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5388 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5390 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5391 (*sqrtdf2_vfp): Likewise.
5392 (*cmpsf_vfp): Likewise.
5393 (*cmpsf_trap_vfp): Likewise.
5394 (*cmpdf_vfp): Likewise.
5395 (*cmpdf_trap_vfp): Likewise.
5397 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5399 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5400 (*truncdfsf2_vfp): Likewise.
5401 (*truncsisf2_vfp): Likewise.
5402 (*truncsidf2_vfp): Likewise.
5403 (fixuns_truncsfsi2): Likewise.
5404 (fixuns_truncdfsi2): Likewise.
5405 (*floatsisf2_vfp): Likewise.
5406 (*floatsidf2_vfp): Likewise.
5407 (floatunssisf2): Likewise.
5408 (floatunssidf2): Likewise.
5410 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5412 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5413 (*muldf3_vfp): Likewise.
5414 (*mulsf3negsf_vfp): Likewise.
5415 (*muldf3negdf_vfp): Likewise.
5416 (*mulsf3addsf_vfp): Likewise.
5417 (*muldf3adddf_vfp): Likewise.
5418 (*mulsf3subsf_vfp): Likewise.
5419 (*muldf3subdf_vfp): Likewise.
5420 (*mulsf3negsfaddsf_vfp): Likewise.
5421 (*fmuldf3negdfadddf_vfp): Likewise.
5422 (*mulsf3negsfsubsf_vfp): Likewise.
5423 (*muldf3negdfsubdf_vfp): Likewise.
5425 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5427 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5428 (*absdf2_vfp): Likewise.
5429 (*negsf2_vfp): Likewise.
5430 (*negdf2_vfp): Likewise.
5431 (*addsf3_vfp): Likewise.
5432 (*adddf3_vfp): Likewise.
5433 (*subsf3_vfp): Likewise.
5434 (*subdf3_vfp): Likewise.
5435 (*divsf3_vfp): Likewise.
5436 (*divdf3_vfp): Likewise.
5438 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5440 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
5442 (arm_print_operand): Don't convert real values to decimal
5443 representation in default case.
5444 (fp_immediate_constant): Delete.
5445 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
5446 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
5448 (*thumb2_movsi_vfp): Likewise.
5449 (*movdi_vfp): Likewise.
5450 (*movdi_vfp_cortexa8): Likewise.
5451 (*movhf_vfp_neon): Likewise.
5452 (*movhf_vfp): Likewise.
5453 (*movsf_vfp): Likewise.
5454 (*thumb2_movsf_vfp): Likewise.
5455 (*movdf_vfp): Likewise.
5456 (*thumb2_movdf_vfp): Likewise.
5457 (*movsfcc_vfp): Likewise.
5458 (*thumb2_movsfcc_vfp): Likewise.
5459 (*movdfcc_vfp): Likewise.
5460 (*thumb2_movdfcc_vfp): Likewise.
5462 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
5464 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
5468 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5471 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
5472 Use qualifier_immediate for last operand. Rename to...
5473 (aarch64_types_ternop_lane_qualifiers): ... This.
5474 (TYPES_QUADOP): Rename to...
5475 (TYPES_TERNOP_LANE): ... This.
5476 (aarch64_simd_expand_args): Return const0_rtx when encountering user
5477 error. Change return of 0 to return of NULL_RTX.
5478 (aarch64_crc32_expand_builtin): Likewise.
5479 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
5480 ICE when expanding unknown builtin.
5481 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
5482 TERNOP_LANE qualifiers.
5483 (sqdmlsl_lane): Likewise.
5484 (sqdmlal_laneq): Likewise.
5485 (sqdmlsl_laneq): Likewise.
5486 (sqdmlal2_lane): Likewise.
5487 (sqdmlsl2_lane): Likewise.
5488 (sqdmlal2_laneq): Likewise.
5489 (sqdmlsl2_laneq): Likewise.
5491 2014-09-09 Nick Clifton <nickc@redhat.com>
5493 * doc/invoke.texi (Optimization Options): Add missing @gol to the
5495 (S/390 and zSeries Options): Remove superfluous word from the
5496 description of the -mhotpatch option.
5498 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
5500 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
5501 * ira.c: #include "shrink-wrap.h"
5502 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
5503 * ifcvt.c: #include "shrink-wrap.h"
5504 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
5506 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
5508 * common/config/picochip/picochip-common.c: Remove.
5509 * config.gcc: Remove support for picochip.
5510 * config/picochip/constraints.md: Remove.
5511 * config/picochip/dfa_space.md: Remove.
5512 * config/picochip/dfa_speed.md: Remove.
5513 * config/picochip/picochip-protos.h: Remove.
5514 * config/picochip/picochip.c: Remove.
5515 * config/picochip/picochip.h: Remove.
5516 * config/picochip/picochip.md: Remove.
5517 * config/picochip/picochip.opt: Remove.
5518 * config/picochip/predicates.md: Remove.
5519 * config/picochip/t-picochip: Remove.
5520 * doc/md.texi: Don't document picochi.
5522 2014-09-08 David Malcolm <dmalcolm@redhat.com>
5524 * basic-block.h (control_flow_insn_p): Strengthen param from
5525 const_rtx to const rtx_insn *.
5526 * cfgbuild.c (control_flow_insn_p): Likewise.
5528 2014-09-08 David Malcolm <dmalcolm@redhat.com>
5530 * gcse.c (modify_mem_list): Strengthen this variable from
5531 vec<rtx> * to vec<rtx_insn *> *.
5532 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
5534 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
5535 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
5536 (record_last_mem_set_info): Strengthen param "insn" from rtx to
5538 (record_last_set_info): Likewise for local "last_set_insn".
5540 2014-09-08 DJ Delorie <dj@redhat.com>
5542 * doc/invoke.texi (MSP430 Options): Add -minrt.
5544 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5546 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
5547 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
5548 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
5550 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
5552 (adjust_splat): New function.
5553 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
5554 (dump_swap_insn_table): Add case for SH_SPLAT.
5556 2014-09-08 Richard Biener <rguenther@suse.de>
5559 * tree-inline.c (copy_loops): The source loop header should
5561 (tree_function_versioning): If loops need fixup after removing
5562 unreachable blocks fix them.
5563 * omp-low.c (simd_clone_adjust): Do not add incr block to
5564 loop under construction.
5566 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
5568 * config/aarch64/aarch64-builtins.c
5569 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
5571 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5573 * config/i386/cygming.h (TF_SIZE): Remove.
5574 * config/i386/darwin.h (TF_SIZE): Remove.
5575 * config/i386/dragonfly.h (TF_SIZE): Remove.
5576 * config/i386/freebsd.h (TF_SIZE): Remove.
5577 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
5578 * config/i386/openbsdelf.h (TF_SIZE): Remove.
5579 * config/i386/sol2.h (TF_SIZE): Remove.
5580 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
5581 * config/ia64/linux.h (TF_SIZE): Remove.
5582 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
5583 * doc/tm.texi: Regenerate.
5584 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
5586 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5588 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5590 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
5592 * doc/tm.texi: Regenerate.
5593 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5595 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
5596 * config/cris/cris.h (__make_dp): Remove.
5598 2014-09-08 Richard Biener <rguenther@suse.de>
5601 * cfgloop.c (mark_loop_for_removal): Track former header
5603 * cfgloop.h (struct loop): Add former_header member unconditionally.
5604 * loop-init.c (fix_loop_structure): Enable bogus loop removal
5605 diagnostic unconditionally.
5607 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
5610 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
5611 constraint for operand0 and remove write only modifier from operand3.
5613 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
5615 PR rtl-optimization/62208
5616 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
5617 rather than const0_rtx in eq/ne-xor simplifications.
5619 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
5621 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
5622 (arc_output_mi_thunk): Likewise.
5624 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
5625 arguments to silence bogus warning.
5627 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
5630 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
5632 2014-09-06 Tom de Vries <tom@codesourcery.com>
5634 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
5635 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
5636 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
5638 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
5641 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
5642 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
5644 2014-09-05 Easwaran Raman <eraman@google.com>
5646 PR rtl-optimization/62146
5647 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
5648 hoisted instruction unconditional.
5650 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
5653 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
5654 Do not allow any_mask_operand for operands[2].
5655 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
5657 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5659 * config/arc/arc.c (arc_print_operand): Use insn method of
5660 final_sequence for type-safety.
5661 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
5662 "insn" from rtx to rtx_insn *.
5663 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
5664 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5665 Likewise for locals "branch", "label".
5666 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
5667 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
5668 (same_cmp_following_p): Likewise for locals "i2", "i3".
5669 * config/sh/sh_optimize_sett_clrt.cc
5670 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
5671 param "cbranch_insn".
5672 * function.c (convert_jumps_to_returns): Likewis for local "jump".
5673 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
5674 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
5676 (condjump_p): Likewise.
5677 (condjump_in_parallel_p): Likewise.
5679 (any_uncondjump_p): Likewise.
5680 (any_condjump_p): Likewise.
5681 (condjump_label): Likewise.
5682 (returnjump_p): Strengthen param "insn" from rtx to
5684 (onlyjump_p): Strengthen param "insn" from const_rtx to
5686 (jump_to_label_p): Likewise.
5687 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
5688 (invert_jump): Likewise.
5689 * reorg.c (simplejump_or_return_p): Add checked cast when calling
5691 (get_jump_flags): Strengthen param "insn" from rtx to
5693 (get_branch_condition): Likewise.
5694 (condition_dominates_p): Likewise.
5695 (make_return_insns): Move declaration of local "pat" earlier, to
5696 after we've handled NONJUMP_INSN_P and non-sequences, using its
5697 methods to simplify the code and for type-safety.
5698 * rtl.h (find_constant_src): Strengthen param from const_rtx to
5700 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
5701 (condjump_p): Strengthen param from const_rtx to
5703 (any_condjump_p): Likewise.
5704 (any_uncondjump_p): Likewise.
5706 (condjump_label): Likewise.
5707 (simplejump_p): Likewise.
5708 (returnjump_p): Likewise.
5709 (onlyjump_p): Likewise.
5710 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
5711 (invert_jump): Likewise.
5712 (condjump_in_parallel_p): Strengthen param from const_rtx to
5714 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
5715 to const rtx_insn *.
5716 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
5717 to const rtx_insn *.
5718 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
5720 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5722 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
5723 above the conditional, and convert the check on GET_CODE to a
5724 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
5725 the conditional. Simplify the conditional by using methods of
5728 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5730 * haifa-sched.c (check_clobbered_conditions): Strengthen local
5731 "link" from rtx to rtx_insn_list *, and use its methods for
5732 clarity and type-safety.
5733 (toggle_cancelled_flags): Likewise.
5734 (restore_last_backtrack_point): Likewise.
5735 (queue_to_ready): Use insn method of "link" in one place.
5736 (schedule_block): Strengthen local "link" from rtx to
5737 rtx_insn_list *, and use its methods for clarity and type-safety.
5739 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5741 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
5742 param "insn" from const_rtx to const rtx_insn *.
5743 (sched_get_reverse_condition_uncached): Likewise.
5744 (sched_get_condition_with_rev): Likewise.
5745 (sched_has_condition_p): Likewise.
5746 (sched_insns_conditions_mutex_p): Likewise for both params.
5747 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
5748 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
5749 (setup_insn_reg_uses): Move local "list" to be more tightly
5750 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
5751 its methods for clarity and type-safety.
5752 (sched_analyze_1): Strengthen local "pending" from rtx to
5753 rtx_insn_list *, and local "pending_mem" from rtx to
5754 rtx_expr_list *. Use methods of each for clarity and type-safety.
5755 (sched_analyze_2): Likewise.
5756 (sched_analyze_insn): Likewise.
5758 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
5759 param from const_rtx to const rtx_insn *.
5760 (sched_insns_conditions_mutex_p): Likewise for both params.
5761 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
5764 * system.h (CONST_CAST_RTX_INSN): New macro.
5766 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5768 * recog.c (peep2_attempt): Strengthen return type from rtx to
5770 (peep2_update_life): Likewise for params "last", "prev", removing
5771 a checked cast made redundant by this.
5772 (peephole2_optimize): Likewise for local "last".
5774 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5776 * basic-block.h (set_block_for_insn): Eliminate this macro in
5778 * rtl.h (set_block_for_insn): New inline function, imposing the
5779 requirement that the "insn" param is an rtx_insn *.
5781 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5783 * caller-save.c (setup_save_areas): Strengthen local "insn" from
5785 * final.c (get_call_reg_set_usage): Likewise for first param,
5786 eliminating a checked cast.
5787 * regs.h (get_call_reg_set_usage): Likewise for first param.
5788 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
5789 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
5790 cast, replacing references to "x" with "call_insn" where
5792 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
5793 rtx_insn *, adding a checked cast.
5795 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5797 * output.h (final_scan_insn): Strengthen first param from rtx to
5800 * final.c (final_scan_insn): Likewise, renaming it back from
5801 "uncast_insn" to "insn", eliminating the checked cast.
5803 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
5804 "vec" with an rtx_sequence * "seq", taking a copy of
5805 "final_sequence", and using methods of "seq" for clarity, and for
5806 type-safety in the calls to final_scan_insn.
5807 * config/mips/mips.c (mips_output_conditional_branch): Use methods
5808 of "final_sequence" for clarity, and for type-safety in the call to
5810 * config/sh/sh.c (print_slot): Strengthen param from rtx to
5811 rtx_sequence * and rename from "insn" to "seq".
5813 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5815 * jump.c (delete_related_insns): Introduce a new local "table" by
5816 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
5817 get_labels method of "table" to simplify access to the labels in
5820 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5822 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
5823 f_minmaxs, f_minmaxd types.
5825 2014-09-05 Richard Biener <rguenther@suse.de>
5827 * cfgloop.c (mark_loop_for_removal): Record former header
5828 when ENABLE_CHECKING.
5829 * cfgloop.h (strut loop): Add former_header member when
5831 * loop-init.c (fix_loop_structure): Sanity check loops
5832 marked for removal if they re-appeared.
5834 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5836 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
5837 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
5839 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
5840 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
5841 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
5842 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
5843 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
5844 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
5845 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
5846 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
5847 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
5848 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
5849 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
5850 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
5851 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
5852 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
5853 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
5854 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
5855 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
5856 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
5857 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
5858 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
5859 with int{32,16,8}_t.
5861 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5863 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
5864 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
5865 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
5866 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
5867 Remove temporary __asm__ and reimplement.
5869 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5871 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
5872 handling cmge, cmgt, cmeq, cmtst.
5874 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
5875 cmlt, cmgeu, cmgtu, cmtst): Remove.
5877 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
5878 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
5879 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
5880 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
5882 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5884 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
5886 (aarch64_fold_builtin): Update pattern for cmtst.
5888 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
5891 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
5893 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
5894 Switch operands, separate out more cases, refactor.
5896 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
5898 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
5899 argument; rename old version to...
5900 (aarch64_const_vec_all_same_in_range_p): ...this.
5901 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
5903 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
5905 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5907 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5908 Remove qualifier_const_pointer, update comment.
5910 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5912 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
5914 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5916 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
5917 varargs with pointer parameter.
5918 (aarch64_simd_expand_builtin): pass pointer into previous.
5920 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5922 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
5925 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5927 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
5928 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
5929 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
5930 Replace temporary asm with call to builtin.
5931 (vrbit_p8, vrbitq_p8): New functions.
5933 2014-09-05 Richard Biener <rguenther@suse.de>
5935 * cfgloop.c (mark_loop_for_removal): New function.
5936 * cfgloop.h (mark_loop_for_removal): Declare.
5937 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
5938 (merge_blocks): Likewise.
5939 (duplicate_block): Likewise.
5940 * except.c (sjlj_emit_dispatch_table): Likewise.
5941 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
5942 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
5943 (thread_through_loop_header): Likewise.
5945 2014-09-05 Richard Biener <rguenther@suse.de>
5948 * fold-const.c (try_move_mult_to_index): Remove.
5949 (fold_binary_loc): Do not call it.
5950 * tree-data-ref.c (dr_analyze_indices): Strip conversions
5951 from the base object again.
5953 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
5955 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
5958 2014-09-05 Bin Cheng <bin.cheng@arm.com>
5961 * config/arm/arm.md (setmem): New pattern.
5962 * config/arm/arm-protos.h (struct tune_params): New fields.
5963 (arm_gen_setmem): New prototype.
5964 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
5965 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5966 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5967 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
5968 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
5969 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
5970 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
5971 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5972 (arm_const_inline_cost): New function.
5973 (arm_block_set_max_insns): New function.
5974 (arm_block_set_non_vect_profit_p): New function.
5975 (arm_block_set_vect_profit_p): New function.
5976 (arm_block_set_unaligned_vect): New function.
5977 (arm_block_set_aligned_vect): New function.
5978 (arm_block_set_unaligned_non_vect): New function.
5979 (arm_block_set_aligned_non_vect): New function.
5980 (arm_block_set_vect, arm_gen_setmem): New functions.
5982 2014-09-05 Bin Cheng <bin.cheng@arm.com>
5984 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
5986 2014-09-05 Bin Cheng <bin.cheng@arm.com>
5988 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
5990 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
5992 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
5994 * valtrack.h: Adjust.
5996 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
5998 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6000 (emit_jump_insn_before_noloc): Likewise.
6001 (emit_call_insn_before_noloc): Likewise.
6002 (emit_label_before): Likewise.
6003 (emit_label_after): Likewise.
6004 (emit_insn_before_setloc): Likewise.
6005 (emit_jump_insn_before_setloc): Likewise.
6006 (emit_call_insn_before_setloc): Likewise.
6007 (emit_call_insn_before): Likewise.
6010 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6012 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6013 rtx_insn *, eliminating a checked cast.
6015 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6017 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6018 const_rtx to const rtx_insn *.
6019 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6022 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6024 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6025 fixup_args_size_notes.
6026 * expr.c (fixup_args_size_notes): Strengthen first two params from
6027 rtx to rtx_insn *, eliminating a checked cast.
6028 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6031 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6033 * haifa-sched.c (get_ready_element): Strengthen return type from
6035 * sched-int.h (get_ready_element): Likewise.
6037 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6040 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6041 indexed_or_indirect_operand instead of memory_operand.
6042 (floatsi<mode>2_lfiwzx_mem): Ditto.
6044 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6046 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6047 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6048 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6050 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6052 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6054 (get_last_nonnote_insn): Likewise.
6055 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6056 * resource.c (find_basic_block): Likewise.
6058 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6061 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6063 * genattr.c (main): Within the prototype of insn_latency written
6064 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6065 * genautomata.c (output_internal_maximal_insn_latency_func):
6066 Within the implementation of insn_latency written out to
6067 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6068 eliminating a pair of checked casts.
6070 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6072 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6075 * rtl.h (eh_returnjump_p): Likewise.
6077 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6079 * Makefile.in (TAGS): Handle constructs in timevar.def.
6081 2014-09-04 Guozhi Wei <carrot@google.com>
6084 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6085 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6086 it into two patterns.
6087 (move_lo_quad_internal_be_<mode>): Likewise.
6089 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6091 * doc/options.texi: Document that Var and Init are required if CPP
6093 * optc-gen.awk: Require Var and Init if CPP is given.
6094 * common.opt (Wpedantic): Use Init.
6096 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6098 * config/rs6000/rs6000.c (special_handling_values): Add
6100 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6101 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6102 as swappable with special handling SH_EXTRACT. Remove
6103 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6105 (adjust_extract): New function.
6106 (handle_special_swappables): Add default to case statement; add
6107 case for SH_EXTRACT that calls adjust_extract.
6108 (dump_swap_insn_table): Handle SH_EXTRACT.
6110 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6112 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6113 selection of 0th memory doubleword, regardless of endianness.
6115 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6117 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6119 2014-09-04 Alan Modra <amodra@gmail.com>
6122 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6125 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6127 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6128 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6129 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6130 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6131 * doc/tm.texi: Regenerate.
6132 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6133 selection logic to default_dwarf_frame_reg_mode.
6135 2014-09-03 Marek Polacek <polacek@redhat.com>
6137 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6140 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6142 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6143 the automodified register.
6145 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6147 * output.h (get_some_local_dynamic_name): Declare.
6148 * final.c (some_local_dynamic_name): New variable.
6149 (get_some_local_dynamic_name): New function.
6150 (final_end_function): Clear some_local_dynamic_name.
6151 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6152 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6153 (print_operand): Report an error if '%&' is used inappropriately.
6154 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6155 (get_some_local_dynamic_name_1): Delete.
6156 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6157 (rs6000_get_some_local_dynamic_name): Delete.
6158 (rs6000_get_some_local_dynamic_name_1): Delete.
6159 (print_operand): Report an error if '%&' is used inappropriately.
6160 * config/s390/s390.c (machine_function): Remove some_ld_name.
6161 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6162 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6163 * config/sparc/sparc.c: Include rtl-iter.h.
6164 (machine_function): Remove some_ld_name.
6165 (sparc_print_operand): Report an error if '%&' is used inappropriately.
6166 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6168 2014-09-03 Richard Henderson <rth@redhat.com>
6170 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6171 (aarch64_popwb_pair_reg): Remove.
6172 (aarch64_set_frame_expr): Remove.
6173 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6174 the restore ops performed by the insns generated.
6175 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6176 insn. Perform the calls_eh_return addition later; do not attempt to
6177 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
6178 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6179 special markup at all. Load cfun->machine->frame.hard_fp_offset
6180 into a local variable.
6181 (aarch64_frame_pointer_required): Don't check calls_alloca.
6183 2014-09-03 Richard Biener <rguenther@suse.de>
6185 * opts.c (default_options_optimization): Adjust
6186 max-combine-insns to 2 for -Og.
6188 2014-09-03 Martin Jambor <mjambor@suse.cz>
6191 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6192 pass-trough jump functions correctly.
6194 2014-09-03 Martin Jambor <mjambor@suse.cz>
6197 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6198 created replacements in ascending order of offsets.
6199 (known_aggs_to_agg_replacement_list): Likewise.
6201 2014-09-03 Martin Liska <mliska@suse.cz>
6203 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6204 is set to set uninitialized value for vnresult.
6206 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6208 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6209 for TARGET_MUST_PASS_IN_STACK.
6211 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6213 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6214 for TARGET_ARG_PARTIAL_BYTES.
6216 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6218 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6219 instructions for varargs implementation.
6220 (nds32_expand_epilogue): Emit stack adjustment instructions for
6221 varargs implementation.
6223 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6225 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6226 optimization detection.
6228 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6230 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6232 (nds32_function_arg_advance): Deal with nameless arguments.
6233 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6234 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6235 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6237 2014-09-03 Richard Biener <rguenther@suse.de>
6239 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6240 (struct bb_bitmap_sets): Remove deferred member.
6241 (BB_DEFERRED): Remove.
6242 (defer_or_phi_translate_block): Remove.
6243 (compute_antic_aux): Remove deferring of blocks, assert
6244 proper iteration order.
6245 (compute_antic): Do not set BB_DEFERRED.
6246 (eliminate): Allocate el_avail of proper size initially.
6248 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6250 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6251 according to the value of crtl->args.pretend_args_size.
6253 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6255 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6256 varargs information.
6258 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6260 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6261 implementation for TARGET_SETUP_INCOMING_VARARGS.
6262 (nds32_strict_argument_naming): Refine comment.
6263 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6264 Define for future implementation.
6266 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
6268 * config/i386/adxintrin.h (_subborrow_u32): New.
6269 (_addcarry_u32): Ditto.
6270 (_subborrow_u64): Ditto.
6271 (_addcarry_u64): Ditto.
6272 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6274 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6275 __builtin_ia32_sbb_u64
6277 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6279 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6281 (nds32_function_arg_advance): Likewise.
6282 (nds32_init_cumulative_args): Likewise.
6283 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6284 (NDS32_FIRST_GPR_REGNUM): Define.
6285 (NDS32_LAST_GPR_REGNUM): Define.
6286 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6287 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6288 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6289 (machine_function): Use GRP-specific stuff.
6291 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6293 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6294 (nds32_expand_epilogue): Likewise.
6295 (nds32_expand_prologue_v3push): Likewise.
6296 (nds32_expand_epilogue_v3pop): Likewise.
6298 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6300 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6301 v3push/v3pop for variadic function.
6302 * config/nds32/nds32.md (prologue, epilogue): Likewise.
6304 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6306 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6307 Check rtx for varargs implementation.
6308 (nds32_output_stack_pop): Likewise.
6309 * config/nds32/nds32-protos.h: Have a rtx argument for
6310 nds32_output_stack_push and nds32_output_stack_pop.
6311 * config/nds32/nds32.md: Likewise.
6313 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6315 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6316 to check if FUNC is an interrupt service routine.
6317 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6319 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6321 * config/nds32/nds32.h (machine_function): Add some fields for variadic
6322 arguments implementation.
6324 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6326 * config/nds32/nds32-predicates.c
6327 (nds32_valid_stack_push_pop): Rename to ...
6328 (nds32_valid_stack_push_pop_p): ... this.
6329 * config/nds32/nds32-protos.h: Likewise.
6330 * config/nds32/predicates.md: Likewise.
6332 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6334 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6335 (nds32_emit_stack_v3push): ... this.
6336 (nds32_gen_stack_v3pop): Rename to ...
6337 (nds32_emit_stack_v3pop): ... this and consider CFA restore
6340 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6342 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6343 (nds32_emit_stack_push_multiple): ... this.
6344 (nds32_gen_stack_pop_multiple): Rename to ...
6345 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6348 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6351 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6352 and add a second splitter to handle the remaining cases.
6354 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6356 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6358 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6360 * cfgexpand.c (label_rtx_for_bb): Change type to
6361 hash_map<basic_block, rtx_code_label *> *.
6362 (expand_gimple_basic_block): Adjust.
6363 (pass_expand::execute): Likewise.
6365 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6367 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6368 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6369 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6370 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6371 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6372 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6373 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6376 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6378 * alloc-pool.c: Include coretypes.h.
6379 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6380 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6381 hash_set instead of htab.
6382 * ggc-page.c (in_gc): New variable.
6383 (ggc_free): Do nothing if a collection is taking place.
6384 (ggc_collect): Set in_gc appropriately.
6385 * ggc.h (gt_ggc_mx(const char *)): New function.
6386 (gt_pch_nx(const char *)): Likewise.
6387 (gt_ggc_mx(int)): Likewise.
6388 (gt_pch_nx(int)): Likewise.
6389 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6390 (hash_map::hash_entry::pch_nx): Likewise.
6391 (hash_map::hash_entry::pch_nx_helper): Likewise.
6392 (hash_map::hash_map): Adjust.
6393 (hash_map::create_ggc): New function.
6394 (gt_ggc_mx): Likewise.
6395 (gt_pch_nx): Likewise.
6396 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6397 (default_hashset_traits::pch_nx): Likewise.
6398 (hash_set::hash_entry::ggc_mx): Likewise.
6399 (hash_set::hash_entry::pch_nx): Likewise.
6400 (hash_set::hash_entry::pch_nx_helper): Likewise.
6401 (hash_set::hash_set): Adjust.
6402 (hash_set::create_ggc): New function.
6403 (hash_set::elements): Likewise.
6404 (gt_ggc_mx): Likewise.
6405 (gt_pch_nx): Likewise.
6406 * hash-table.h (hash_table::hash_table): Adjust.
6407 (hash_table::m_ggc): New member.
6408 (hash_table::~hash_table): Adjust.
6409 (hash_table::expand): Likewise.
6410 (hash_table::empty): Likewise.
6411 (gt_ggc_mx): New function.
6412 (hashtab_entry_note_pointers): Likewise.
6413 (gt_pch_nx): Likewise.
6415 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6417 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
6418 built-in definition.
6419 (XVCVUXDDP_SCALE): Likewise.
6420 (XVCVDPSXDS_SCALE): Likewise.
6421 (XVCVDPUXDS_SCALE): Likewise.
6422 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6423 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6424 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6425 VSX_BUILTIN_XVCVDPUXDS_SCALE.
6426 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6428 * config/rs6000/rs6000.c (real.h): New include.
6429 (rs6000_scale_v2df): New function.
6430 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6431 (UNSPEC_VSX_XVCVUXDDP): Likewise.
6432 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6433 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6434 (vsx_xvcvsxddp_scale): New define_expand.
6435 (vsx_xvcvsxddp): New define_insn.
6436 (vsx_xvcvuxddp_scale): New define_expand.
6437 (vsx_xvcvuxddp): New define_insn.
6438 (vsx_xvcvdpsxds_scale): New define_expand.
6439 (vsx_xvcvdpsxds): New define_insn.
6440 (vsx_xvcvdpuxds_scale): New define_expand.
6441 (vsx_xvcvdpuxds): New define_insn.
6442 * doc/extend.texi (vec_ctf): Add new prototypes.
6443 (vec_cts): Likewise.
6444 (vec_ctu): Likewise.
6445 (vec_splat): Likewise.
6446 (vec_div): Likewise.
6447 (vec_mul): Likewise.
6449 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6452 * config/arm/neon.md
6453 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
6454 <v_cmp_result>): New pattern.
6455 * config/arm/iterators.md (NEON_VCVT): New int iterator.
6456 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
6457 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
6458 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
6459 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
6460 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
6462 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6465 * config/arm/iterators.md (FIXUORS): New code iterator.
6466 (VCVT): New int iterator.
6467 (su_optab): New code attribute.
6469 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
6471 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6473 * config/aarch64/predicates.md (aarch64_comparison_operation):
6474 New special predicate.
6475 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
6476 aarch64_comparison_operation instead of matching an operator.
6477 Update operand numbers.
6478 (csinc3<mode>_insn): Likewise.
6479 (*csinv3<mode>_insn): Likewise.
6480 (*csneg3<mode>_insn): Likewise.
6481 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
6482 * config/aarch64/aarch64.c (aarch64_get_condition_code):
6483 Return -1 instead of aborting on invalid condition codes.
6484 (aarch64_print_operand): Update aarch64_get_condition_code callsites
6485 to assert that the returned condition code is valid.
6486 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
6488 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
6490 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
6491 tree.def, and gimple.def
6493 2014-09-02 Jakub Jelinek <jakub@redhat.com>
6494 Balaji V. Iyer <balaji.v.iyer@intel.com>
6495 Igor Zamyatin <igor.zamyatin@intel.com>
6497 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
6498 (__cilkrts_cilk_for_64): Likewise.
6499 * cilk-common.c (declare_cilk_for_builtin): New function.
6500 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
6501 __cilkrts_cilk_for_64 bultins.
6502 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
6504 (cilk_for_32_fndecl): New define.
6505 (cilk_for_64_fndecl): Likewise.
6506 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
6507 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
6508 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
6509 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
6510 GF_OMP_FOR_COMBINED_INTO.
6511 * gimplify.c (gimplify_scan_omp_clauses): Added
6512 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6513 (gimplify_adjust_omp_clauses): Ditto.
6514 (gimplify_omp_for): Added CILK_FOR case.
6515 (gimplify_expr): Ditto.
6516 * omp-low.c: Include cilk.h.
6517 (extract_omp_for_data): Set appropriate kind for
6518 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
6519 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
6520 (create_omp_child_function_name): Added second argument to handle
6522 (cilk_for_check_loop_diff_type): New function.
6523 (expand_cilk_for_call): Likewise.
6524 (expand_cilk_for): Likewise.
6525 (create_omp_child_function): Set cilk_for_count; handle the cases when
6526 it is true; call create_omp_child_function_name with second argument.
6527 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
6528 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
6529 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
6530 * tree-nested.c (convert_nonlocal_omp_clauses): Added
6531 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6532 (convert_local_omp_clauses): Ditto.
6533 * tree-pretty-print.c (dump_omp_clause): Added
6534 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
6535 (dump_generic_node): Added CILK_FOR case.
6536 * tree.c (omp_clause_num_ops): New element
6537 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
6538 (omp_clause_code_name): New element _Cilk_for_count_.
6539 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
6540 * tree.def: Add tree code for CILK_FOR.
6542 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6544 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
6545 (ppc403-compare): Add "exts with dot" case.
6546 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
6547 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
6548 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
6549 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
6550 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
6551 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
6552 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
6553 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
6554 cell-cmp-microcoded): Similarly.
6555 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
6556 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
6557 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
6558 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
6559 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
6560 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
6561 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
6562 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
6563 (power6-compare): Add "exts with dot" case.
6564 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
6565 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
6566 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
6568 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
6569 if avoiding Cell microcode.
6570 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
6571 (is_cracked_insn): Ditto.
6572 (insn_must_be_first_in_group): Ditto.
6573 * config/rs6000/rs6000.md (dot): Adjust comment.
6574 (cell_micro): Handle exts+dot.
6575 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
6576 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
6577 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
6578 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
6579 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
6580 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
6581 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
6583 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6585 * config/rs6000/rs6000.md (QHSI): Delete.
6586 (EXTQI, EXTHI, EXTSI): New mode iterators.
6587 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
6588 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
6589 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
6590 9 anonymous instructions, and 8 splitters): Delete.
6591 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
6592 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
6593 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
6594 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
6595 *zero_extendsi<mode>2_dot2): New.
6597 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6599 * config/rs6000/rs6000.md (any_extend): New code iterator.
6600 (u, su): New code attributes.
6601 (dmode, DMODE): New mode attributes.
6602 (<su>mul<mode>3_highpart): New.
6603 (*<su>mul<mode>3_highpart): New.
6604 (<su>mulsi3_highpart_le): New.
6605 (<su>muldi3_highpart_le): New.
6606 (<su>mulsi3_highpart_64): New.
6607 (<u>mul<mode><dmode>3): New.
6608 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
6610 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
6613 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6615 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
6616 *mulsi3_internal2, and two splitters): Delete.
6617 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
6619 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
6621 2014-09-02 Richard Biener <rguenther@suse.de>
6623 PR tree-optimization/62695
6624 * tree-ssa-structalias.c (find_func_clobbers): Add missing
6627 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
6630 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
6632 2014-09-01 Andi Kleen <ak@linux.intel.com>
6634 * file-find.c (add_prefix_begin): Add.
6635 (do_add_prefix): Rename from add_prefix with first argument.
6636 (add_prefix): Add new wrapper.
6637 * file-find.h (add_prefix_begin): Add.
6638 * gcc-ar.c (main): Support -B option.
6640 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6642 * genemit.c: Include dumpfile.h.
6643 (gen_split): Print name of splitter function to dump file.
6645 2014-09-01 Richard Biener <rguenther@suse.de>
6647 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
6648 Use stack auto_vecs for constraint expressions.
6649 (find_func_aliases_for_call): Likewise.
6650 (find_func_aliases): Likewise.
6651 (find_func_clobbers): Likewise.
6653 2014-09-01 Richard Biener <rguenther@suse.de>
6655 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
6656 operands vector in most cases. Remove redundant code.
6658 2014-09-01 Olivier Hainque <hainque@adacore.com>
6660 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
6661 $WIND_BASE instead of designating a harcoded arbitrary home dir.
6662 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
6664 2014-09-01 Richard Biener <rguenther@suse.de>
6666 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
6667 copy_reference_ops_from_call, vn_nary_op_compute_hash,
6668 vn_reference_compute_hash, vn_reference_insert): Remove.
6669 (vn_reference_lookup_call): New function.
6670 * tree-ssa-sccvn.c (vn_reference_compute_hash,
6671 copy_reference_ops_from_ref, copy_reference_ops_from_call,
6672 vn_reference_insert, vn_nary_op_compute_hash): Make static.
6673 (create_reference_ops_from_call): Remove.
6674 (vn_reference_lookup_3): Properly update shared_lookup_references.
6675 (vn_reference_lookup_pieces): Assert that we updated
6676 shared_lookup_references properly.
6677 (vn_reference_lookup): Likewise.
6678 (vn_reference_lookup_call): New function.
6679 (visit_reference_op_call): Use it. Avoid re-building the
6681 (visit_reference_op_load): Remove redundant lookup.
6682 (visit_reference_op_store): Perform special tail-merging work
6683 only when possibly doing tail-merging.
6684 (visit_use): Likewise.
6685 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
6687 2014-09-01 Jakub Jelinek <jakub@redhat.com>
6690 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
6691 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
6692 (find_inc): Revert 2014-08-13 change.
6694 2014-09-01 Marek Polacek <polacek@redhat.com>
6697 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
6698 Change the type of V to unsigned HOST_WIDE_INT.
6700 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
6702 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
6703 the size of byte markers.
6704 (do_shift_rotate): Fix confusion between host, target and marker byte
6706 (verify_symbolic_number_p): Likewise.
6707 (find_bswap_or_nop_1): Likewise.
6708 (find_bswap_or_nop): Likewise.
6710 2014-09-01 Olivier Hainque <hainque@adacore.com>
6712 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
6713 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
6715 2014-09-01 Jakub Jelinek <jakub@redhat.com>
6717 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
6718 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
6719 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
6721 2014-09-01 Yury Gribov <y.gribov@samsung.com>
6725 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
6726 (build_check_stmt): Likewise.
6727 (instrument_strlen_call): Likewise.
6728 (asan_expand_check_ifn): Likewise and fix types.
6729 (maybe_cast_to_ptrmode): New function.
6731 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6733 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
6735 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6737 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
6739 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
6741 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
6742 prefix to function labels when generating fast indirect calls.
6744 2014-08-30 David Malcolm <dmalcolm@redhat.com>
6748 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
6749 param back from rtx_insn * to rtx. Rename param from "label" to
6750 "label_or_return", reintroducing "label" as an rtx_insn * after
6751 we've ensured it's not a RETURN.
6752 (first_active_target_insn): Likewise for return type and param;
6753 add a checked cast to rtx_insn * once we've ensured "insn" is not
6755 (steal_delay_list_from_target): Convert param "pnew_thread" back
6756 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
6758 (own_thread_p): Convert param "thread" back from an rtx_insn * to
6759 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
6760 cast once we've established we're not dealing with a RETURN,
6761 renaming subsequent uses of "thread" to "thread_insn".
6762 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
6764 (follow_jumps): Convert return type and param "label" from
6765 rtx_insn * back to rtx. Move initialization of "value" to after
6766 the handling for ANY_RETURN_P, adding a checked cast there to
6767 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
6768 rename to "this_label_or_return", reintroducing "this_label" as
6769 an rtx_insn * once we've handled the case where it could be an
6771 (fill_slots_from_thread): Rename param "thread" to
6772 "thread_or_return", converting from an rtx_insn * back to an rtx.
6773 Reintroduce name "thread" as an rtx_insn * local with a checked
6774 cast once we've handled the case of it being an ANY_RETURN_P.
6775 Convert local "new_thread" from an rtx_insn * back to an rtx.
6776 Add a checked cast when assigning to "trial" from "new_thread".
6777 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
6778 checked cast to rtx_insn * from "new_thread" when invoking
6780 (fill_eager_delay_slots): Convert locals "target_label",
6781 "insn_at_target" from rtx_insn * back to rtx.
6782 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
6783 (relax_delay_slots): Convert locals "trial", "target_label" from
6784 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
6785 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
6786 invoking update_block.
6787 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
6788 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
6790 * resource.h (mark_target_live_regs): Undo erroneous conversion
6791 of second param of r214693, converting it back from rtx_insn * to
6792 rtx, since it could be a RETURN.
6794 * resource.c (find_dead_or_set_registers): Similarly, convert
6795 param "jump_target" back from an rtx_insn ** to an rtx *, as we
6796 could be writing back a RETURN. Rename local rtx_insn * "next" to
6797 "next_insn", and introduce "lab_or_return" as a local rtx,
6798 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
6799 (mark_target_live_regs): Undo erroneous conversion
6800 of second param of r214693, converting it back from rtx_insn * to
6801 rtx, since it could be a RETURN. Rename it from "target" to
6802 "target_maybe_return", reintroducing the name "target" as a local
6803 rtx_insn * with a checked cast, after we've handled the case of
6806 2014-08-29 DJ Delorie <dj@redhat.com>
6808 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
6809 pointer size up to a power of two.
6810 * defaults.h (DWARF2_ADDR_SIZE): Round up.
6811 (POINTER_SIZE_UNITS): New, rounded up value.
6812 * dwarf2asm.c (size_of_encoded_value): Use it.
6813 (dw2_output_indirect_constant_1): Likewise.
6814 * expmed.c (init_expmed_one_conv): We now know the sizes of
6816 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
6817 * optabs.c (expand_float): Use precision, not size.
6818 (expand_fix): Likewise.
6819 * simplify-rtx (simplify_unary_operation_1): Likewise.
6820 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6821 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
6822 (default_assemble_integer) Likewise.
6823 (dump_tm_clone_pairs): Likewise.
6824 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
6825 * var-tracking.c (adjust_mems): Allow partial-int modes also.
6826 (prepare_call_arguments): Likewise.
6827 * stor-layout.c (finalize_type_size): Preserve precision.
6828 (layout_type): Use precision, not size.
6830 * expr.c (convert_move): If the target has an explicit converter,
6833 2014-08-29 David Malcolm <dmalcolm@redhat.com>
6835 * gdbinit.in: Skip various inline functions in rtl.h when
6838 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
6841 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
6843 2014-08-29 Richard Biener <rguenther@suse.de>
6845 PR tree-optimization/62291
6846 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
6847 exactly the vector size needed and use quick_push.
6848 (phi_translate_1): Adjust comment.
6849 (valid_in_sets): Remove block argument and remove pointless
6851 (dependent_clean): Adjust for removal of block argument.
6853 (compute_antic_aux): Likewise.
6854 (compute_partial_antic_aux): Likewise.
6856 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
6857 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6858 Anna Tikhonova <anna.tikhonova@intel.com>
6859 Ilya Tocar <ilya.tocar@intel.com>
6860 Andrey Turetskiy <andrey.turetskiy@intel.com>
6861 Ilya Verbin <ilya.verbin@intel.com>
6862 Kirill Yukhin <kirill.yukhin@intel.com>
6863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6865 * config/i386/sse.md
6866 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
6867 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
6868 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
6869 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
6871 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
6872 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6873 Anna Tikhonova <anna.tikhonova@intel.com>
6874 Ilya Tocar <ilya.tocar@intel.com>
6875 Andrey Turetskiy <andrey.turetskiy@intel.com>
6876 Ilya Verbin <ilya.verbin@intel.com>
6877 Kirill Yukhin <kirill.yukhin@intel.com>
6878 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6880 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
6881 * config/i386/sse.md
6882 (define_mode_iterator VI4_128_8_256): New.
6883 (define_mode_iterator VI2_128_4_256): Ditto.
6884 (define_mode_iterator PMOV_DST_MODE): Rename into
6885 (define_mode_iterator PMOV_DST_MODE_1): this.
6886 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
6887 Use PMOV_DST_MODE_1 mode iterator.
6888 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6890 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6892 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
6893 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
6894 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
6895 (define_mode_iterator PMOV_DST_MODE_2): New.
6896 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
6897 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
6898 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
6900 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
6901 (define_mode_attr pmov_dst_3): Ditto.
6902 (define_mode_attr pmov_dst_zeroed_3): Ditto.
6903 (define_mode_attr pmov_suff_3): Ditto.
6904 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
6905 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
6906 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
6907 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
6908 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
6909 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
6910 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
6911 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
6912 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
6913 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
6914 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
6915 (define_mode_attr pmov_dst_4): Ditto.
6916 (define_mode_attr pmov_dst_zeroed_4): Ditto.
6917 (define_mode_attr pmov_suff_4): Ditto.
6918 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
6919 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
6920 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
6921 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
6922 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
6923 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
6924 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
6925 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
6926 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
6927 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
6928 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
6930 2014-08-29 Richard Biener <rguenther@suse.de>
6932 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
6933 NON_LVALUE_EXPR in gimple.
6935 2014-08-29 Richard Biener <rguenther@suse.de>
6938 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
6939 from previous refactoring.
6940 (gimple_fold_builtin_strncpy): Likewise.
6942 2014-08-29 David Malcolm <dmalcolm@redhat.com>
6945 * function.c (assign_parm_setup_reg): Remove erroneous checked
6946 cast to rtx_insn * on result of gen_extend_insn in favor of
6947 introducing a new local rtx "pat".
6949 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6951 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
6953 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
6955 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6957 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
6958 (next_insn): Likewise.
6959 * emit-rtl.c (next_insn): Likewise.
6960 (previous_insn): Likewise.
6961 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
6962 "insn" and "next" from rtx to rtx_insn *.
6963 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
6964 "insn", "insn1", "vliw_start", "prologue_end_note",
6965 "last_insn_in_packet".
6967 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6969 * shrink-wrap.h (active_insn_between): Strengthen both params from
6971 * function.c (active_insn_between): Likewise.
6973 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6975 * genattr.c (main): When writing out insn-attr.h, strengthen param
6976 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
6977 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
6978 writing out the definition of dfa_clear_single_insn_cache to the
6979 generated insn-automata.c
6981 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6983 * resource.h (clear_hashed_info_for_insn): Strengthen param from
6985 (incr_ticks_for_insn): Likewise.
6986 (init_resource_info): Likewise.
6988 * resource.c (init_resource_info): Likewise.
6989 (clear_hashed_info_for_insn): Likewise.
6990 (incr_ticks_for_insn): Likewise.
6992 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
6994 (steal_delay_list_from_target): Use methods of "seq".
6995 (try_merge_delay_insns): Use methods of "merged_insns".
6996 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
6997 (reorg_redirect_jump): Likewise for param "jump".
6999 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7001 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7003 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7004 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7006 (s390_mainpool_finish): In three places, split out a local rtx
7007 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7008 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7009 and split another local rtx "insn" out into rtx "pat" and
7011 * config/sh/sh.c (output_branchy_insn): Rather than working
7012 directly on operands[9], introduce local rtx_code_label *
7013 variables named "lab" in two places, working on them, and then
7014 assigning them to operands[9], so that the intervening operations
7015 are known by the type system to be on insns.
7017 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7019 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7022 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7023 in invocation of INSN_HAS_LOCATION.
7025 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7027 * config/rs6000/altivec.h (vec_xl): New #define.
7028 (vec_xst): Likewise.
7029 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7030 (XXSPLTD_V2DI): Likewise.
7031 (DIV_V2DI): Likewise.
7032 (UDIV_V2DI): Likewise.
7033 (MUL_V2DI): Likewise.
7034 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7035 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7036 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7037 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7038 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7039 (UNSPEC_VSX_DIVSD): Likewise.
7040 (UNSPEC_VSX_DIVUD): Likewise.
7041 (UNSPEC_VSX_MULSD): Likewise.
7042 (vsx_mul_v2di): New insn-and-split.
7043 (vsx_div_v2di): Likewise.
7044 (vsx_udiv_v2di): Likewise.
7045 (vsx_xxspltd_<mode>): New insn.
7047 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7049 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7051 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7052 (NEXT_INSN): Likewise.
7053 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7054 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7056 (no_labels_between_p): Likewise for both params.
7058 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7059 cast when using NEXT_INSN on operands[2].
7060 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7061 "insn" from rtx to rtx_insn *, adding a checked cast.
7062 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7064 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7066 (arc_text_label): Likewise for param "insn".
7067 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7069 (arc_ccfsm_record_condition): Likewise for param "jump".
7070 (arc_text_label): Likewise for local "label".
7071 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7072 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7073 a method for typesafety. Add a checked cast.
7074 * config/arc/constraints.md (Clb): Add a checked cast when getting
7075 the CODE_LABEL from a LABEL_REF.
7076 * config/arm/arm.c (require_pic_register): Strengthen locals
7077 "seq", "insn" from rtx to rtx_insn *.
7078 (create_fix_barrier): Likewise for locals "selected", "next".
7079 (thumb1_reorg): Likewise for locals "prev", "insn".
7080 (arm_expand_prologue): Likewise for local "last".
7081 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7083 (thumb2_output_casesi): Likewise for operands[2].
7084 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7085 strengthen local "insn" from rtx to rtx_insn *.
7086 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7087 type and param "insn".
7088 (find_prev_insn_start): Likewise.
7089 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7091 (gen_one_bundle): Likewise for loal "t".
7092 (find_load): Likewise for param "insn".
7093 (workaround_speculation): Likewise for locals "insn", "next",
7094 "target", "next_tgt".
7095 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7096 and for locals "insn", "within", "last".
7097 (count_unit_reqs): Likewise for params "head", "tail" and local
7099 (try_rename_operands): Likewise for params "head", "tail".
7100 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7101 (struct c6x_sched_context): Likewise for fields
7102 "last_scheduled_insn", "last_scheduled_iter0".
7103 (init_sched_state): Replace NULL_RTX with NULL.
7104 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7106 (undo_split_delayed_nonbranch): Likewise for param and for local
7108 (conditionalize_after_sched): Likewise for local "insn".
7109 (bb_earliest_end_cycle): Likewise.
7110 (filter_insns_above): Likewise for locals "insn", "next".
7111 (hwloop_optimize): Remove redundant checked cast.
7112 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7113 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7115 (cris_simple_epilogue): Likewise.
7116 (cris_expand_prologue): Likewise.
7117 (cris_expand_epilogue): Likewise.
7118 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7119 local "insn" from rtx to rtx_insn *.
7120 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7121 (struct frv_packet_group): Likewise for the elements within array
7122 fields "insns", "sorted", and for field "nop".
7123 (frv_packet): Likewise for the elements within array field
7125 (frv_add_insn_to_packet): Likewise for param "insn".
7126 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7128 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7129 (frv_sort_insn_group_1): Likewise for local "insn".
7130 (frv_optimize_membar_local): Likewise.
7131 (frv_align_label): Likewise for locals "x", "last", "barrier",
7133 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7135 (ia64_sched_init): Likewise for local "insn".
7136 (scheduled_good_insn): Likewise for param "last".
7137 (struct _ia64_sched_context): Likewise for field
7138 "last_scheduled_insn".
7139 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7140 (struct bundle_state): Likewise for field "insn".
7141 (issue_nops_and_insn): Likewise for param "insn".
7142 (get_next_important_insn): Likewise for return type and both
7144 (ia64_add_bundle_selector_before): Likewise for param "insn".
7145 (bundling): Likewise for params "prev_head_insn", "tail" and
7146 locals "insn", "next_insn", "b". Eliminate top-level local rtx
7147 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7148 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7149 Strengthen final param from rtx to rtx_insn *.
7150 (iq2000_move_1word): Likewise for second param.
7151 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7152 param "cur_insn" and local "next_insn".
7153 (iq2000_move_1word): Likewise for param "insn".
7154 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7155 casts when using NEXT_INSN on operands[1].
7156 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7157 "insn" from rtx to rtx_insn *.
7158 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7159 "x", introducing local rtx_insn * "insn" for when working with the
7160 CODE_LABEL of the LABEL_REF.
7161 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7163 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7165 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7167 (conditionalize_block): Likewise for return type and param.
7168 (mcore_is_dead): Likewise for param "first" and local "insn".
7169 (emit_new_cond_insn): Likewise for return type.
7170 (conditionalize_block): Likewise for return type, param, and
7171 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7173 (conditionalize_optimization): Likewise for local "insn".
7174 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7176 * config/microblaze/microblaze.md: Add checked casts when using
7178 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7179 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7180 and rtx_insn * "insn".
7181 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7182 checked cast when using NEXT_INSN on operands[2].
7183 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7184 local "insn" from rtx to rtx_insn *.
7185 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7187 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7188 Add a checked cast when using NEXT_INSN on operands[1].
7189 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7191 (pa_output_cbranch): Likewise for final param.
7192 (pa_output_lbranch): Likewise for second param.
7193 (pa_output_bb): Likewise for third param.
7194 (pa_output_bvb): Likewise.
7195 (pa_output_dbra): Likewise for second param.
7196 (pa_output_movb): Likewise.
7197 (pa_output_parallel_movb): Likewise.
7198 (pa_output_parallel_addb): Likewise.
7199 (pa_output_millicode_call): Likewise for first param.
7200 (pa_output_mul_insn): Likewise for second param.
7201 (pa_output_div_insn): Likewise for third param.
7202 (pa_output_mod_insn): Likewise for second param.
7203 (pa_jump_in_call_delay): Likewise for param.
7204 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7205 (pa_output_div_insn): Likewise.
7206 (pa_output_mod_insn): Likewise.
7207 (pa_output_cbranch): Likewise.
7208 (pa_output_lbranch): Likewise.
7209 (pa_output_bb): Likewise.
7210 (pa_output_bvb): Likewise.
7211 (pa_output_dbra): Likewise.
7212 (pa_output_movb): Likewise.
7213 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7214 to simplify and for typesafety.
7215 (pa_output_call): Use method of rtx_sequence *.
7216 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7217 (pa_jump_in_call_delay): Likewise.
7218 (pa_output_parallel_movb): Likewise.
7219 (pa_output_parallel_addb): Likewise.
7220 (pa_following_call): Likewise.
7221 (pa_combine_instructions): Likewise for locals "anchor",
7223 (pa_can_combine_p): Likewise for params "anchor", "floater" and
7224 locals "start", "end".
7225 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7226 param "insn" and local "local_insn".
7227 (picochip_final_prescan_insn): Likewise for local "local_insn".
7228 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7230 (uses_TOC): Likewise.
7231 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7232 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7233 splitting out to more tightly-scoped locals, 3 as rtx and one as
7235 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7237 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7239 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7241 (fixup_addr_diff_vecs): Likewise.
7242 (reg_unused_after): Likewise for param 2.
7243 (sh_can_redirect_branch): Likewise for both params.
7244 (check_use_sfunc_addr): Likewise for param 1.
7245 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7246 (find_barrier): Likewise for local "last_got".
7247 (gen_block_redirect): Likewise for return type, param "jump" and
7248 locals "prev", "scan", "next", "insn".
7249 (struct far_branch): Likewise for fields "near_label",
7250 "insert_place", "far_label".
7251 (gen_far_branch): Likewise for local "jump".
7252 (fixup_addr_diff_vecs): Likewise for param "first" and locals
7254 (barrier_align): Likewise for param and for locals "prev", "x".
7255 Introduce local rtx_sequence * "prev_seq" and use insn method for
7256 typesafety and clarity.
7257 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7258 (get_dest_uid): Likewise for local "dest".
7259 (split_branches): Likewise for locals "next", "beyond", "label",
7260 "block", "far_label". Add checked casts when assigning to
7261 bp->far_label and "far_label".
7262 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7263 (sequence_insn_p): Likewise.
7264 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
7265 more loop-scoped rtx "insn" when walking LABEL_REFS.
7266 (sh_can_redirect_branch): Strengthen both params from rtx to
7268 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
7269 new local rtx_sequence * "seq" via a dyn_cast, and use a method
7270 for clarity and typesafety.
7271 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7272 "insn" from rtx to rtx_insn *.
7273 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7274 when using NEXT_INSN on the CODE_LABEL in operands[2].
7275 (define_insn "casesi_worker_2"): Likewise.
7276 (define_insn "casesi_shift_media"): Likewise.
7277 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7279 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7280 Strengthen field "insn" from rtx to rtx_insn *.
7281 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7282 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7283 param "start_insn" and local "start_insn".
7284 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7286 (find_set_of_reg_bb): Likewise for param "insn".
7287 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7288 (trace_reg_uses): Likewise for param "start_insn".
7289 (sh_treg_combine::cbranch_trace): Likewise for field
7291 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7293 (sh_treg_combine::record_set_of_reg): Likewise for param
7294 "start_insn" and local "i".
7295 (sh_treg_combine::can_remove_cstore): Likewise for local
7297 (sh_treg_combine::try_optimize_cbranch): Likewise for param
7299 (sh_treg_combine::execute): Likewise for local "i".
7300 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7302 (sparc_check_64): Likewise for second param.
7303 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7304 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
7305 dyn_cast, using its insn method for typesafety and clarity.
7306 (empty_delay_slot): Strengthen param "insn" from rtx to
7308 (set_extends): Likewise.
7309 (sparc_check_64): Likewise.
7310 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7311 for locals "seq", "last_insn".
7312 (combine_bnp): Likewise for param "insn".
7313 (xstormy16_reorg): Likewise for local "insn".
7314 * config/v850/v850.c (substitute_ep_register): Likewise for params
7315 "first_insn", "last_insn" and local "insn".
7316 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7317 elements of "regs" array, and local "insn".
7318 * except.c (emit_note_eh_region_end): Likewise for param "insn".
7319 * final.c (final_sequence): Strengthen this global from rtx to
7321 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7323 (final_scan_insn): Update assignment to "final_sequence" to be
7324 from "seq", the cast version of "body", for type-safety.
7325 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7326 "insns" from rtx to rtx_insn *.
7327 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7328 * genattr.c (main): When writing out generated insn-attr.h,
7329 strengthen params 1 and 3 of eligible_for_delay,
7330 eligible_for_annul_true, eligible_for_annul_false from rtx to
7332 * genattrtab.c (write_eligible_delay): Likewise when writing out
7333 generated insn-attrtab.c; also local "insn" the generated
7335 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7337 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7338 "start_label" from rtx to rtx_insn *.
7339 * ira.c (decrease_live_ranges_number): Likewise for local "p".
7340 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7341 "insns" and local "insn".
7342 (validate_equiv_mem): Likewise for param "start" and local "insn".
7343 (memref_used_between_p): Likewise for params "start", "end" and
7345 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7347 * loop-doloop.c (doloop_optimize): Within region guarded by
7348 INSN_P (doloop_pat), introduce a new local rtx_insn *
7349 "doloop_insn" via a checked cast, and use it for typesafety,
7350 eventually writing the value back into doloop_pat.
7351 * output.h (final_sequence): Strengthen this global from rtx to
7353 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7354 reintroducing "insn" as an rtx_insn * via a checked cast.
7355 Strengthen param "attempt" and local "new_insn"from rtx to
7357 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7359 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7360 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7361 "p" in favor of more tightly-scoped replacements, sometimes rtx
7362 and sometimes rtx_insn *, as appropriate.
7363 (delete_output_reload): Eliminate top-level rtx "i1", splitting
7364 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7365 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
7366 local "trial" from rtx to rtx_insn *.
7367 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7368 rtx to rtx_insn *. Strenghten local "pat" from rtx to
7369 rtx_sequence * and use methods for clarity and typesafety.
7370 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7371 rtx to rtx_insn *. Strenghten local "li" from rtx to
7372 rtx_insn_list * and use its methods for clarity and typesafety.
7373 (steal_delay_list_from_target): Strengthen param "insn" from rtx
7375 (steal_delay_list_from_fallthrough): Likewise.
7376 (try_merge_delay_insns): Likewise for param "thread" and locals
7377 "trial", "next_trial", "delay_insn".
7378 (redundant_insn): Likewise for param "target" and local "trial".
7379 (own_thread_p): Likewise for param "thread" and locals
7380 "active_insn", "insn".
7381 (get_label_before): Likewise for param "insn".
7382 (fill_simple_delay_slots): Likewise for local "new_label"; use
7383 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7384 (label_before_next_insn): Strengthen return type and local "insn"
7385 from rtx to rtx_insn *.
7386 (relax_delay_slots): Likewise for locals "other", "tmp".
7387 (make_return_insns): Likewise for param "first" and locals "insn",
7388 "jump_insn", "prev". Move declaration of "pat" to its assignment
7389 and strengthen from rtx to rtx_sequence *. Use its methods for
7390 clarity and typesafety.
7391 * rtlanal.c (no_labels_between_p): Strengthen params from
7392 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
7394 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7395 from const_rtx to const rtx_insn *.
7396 (reg_set_between_p): Rename param "from_insn" to
7397 "uncast_from_insn", and reintroduce "from_insn" as a
7398 const rtx_insn * via a checked cast.
7399 (modified_between_p): Likewise for param "start" as "uncast_start".
7400 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7401 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7402 "tmp", head" from rtx to rtx_insn *.
7403 (recompute_rev_top_order): Likewise for local "insn".
7404 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7405 * store-motion.c (build_store_vectors): Likewise for local "insn".
7406 Strengthen local "st" from rtx to rtx_insn_list * and use methods
7407 for clarity and typesafety.
7408 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7410 (computation_cost): Likewise for local "seq".
7411 (get_address_cost): Likewise.
7413 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7415 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7417 (label_is_jump_target_p): Likewise for second param.
7419 * rtlanal.c (tablejump_p): Likewise for param "insn".
7420 (label_is_jump_target_p): Likewise for param "jump_insn".
7422 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7424 * rtl.h (find_first_parameter_load): Strengthen return type and
7425 both params from rtx to rtx_insn *.
7426 * rtlanal.c (find_first_parameter_load): Strengthen return type,
7427 both params and locals "before", "first_set" from rtx to
7428 rtx_insn *. Remove now-redundant cast.
7429 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7431 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7433 * rtl.h (find_last_value): Delete.
7434 * rtlanal.c (find_last_value): Delete.
7436 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7438 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7439 from rtx to rtx_insn *.
7440 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
7441 rtx "note" with new local rtx_insn * "new_head" when calculating
7442 head insn of new basic block.
7443 * combine.c (combine_split_insns): Strengthen return type and local
7444 "ret" from rtx to rtx_insn *.
7445 (likely_spilled_retval_p): Likewise for locals "use" and "p".
7446 (try_combine): Eliminate local "m_split", splitting into new
7447 locals "m_split_insn" and "m_split_pat".
7448 (find_split_point): Strengthen local "seq" from rtx into
7450 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
7451 locals "label", "branch".
7452 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
7454 (define_expand "umulsi3_highpart"): Likewise for local "insn".
7455 * dse.c (note_add_store_info): Likewise for fields "first",
7457 (note_add_store): Likewise for local "insn".
7458 (emit_inc_dec_insn_before): Likewise for locals "insn",
7460 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
7461 (replace_read): Likewise for locals "insns", "this_insn".
7462 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
7463 (notice_eh_throw): Likewise for param "insn".
7464 (before_next_cfi_note): Likewise for return type, param, and local
7466 (connect_traces): Likewise for local "note".
7467 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
7468 (verify_rtl_sharing): Likewise.
7469 (unshare_all_rtl_in_chain): Likewise for param "insn".
7470 (get_first_nonnote_insn): Likewise for local "insn".
7471 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
7472 "seq" and use its methods to clarify things.
7473 (next_insn): Strengthen return type from rtx to rtx_insn *.
7474 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
7475 local rtx_insn * using a checked cast, dropping a checked cast
7476 made redundant by this change. Use a cast to and method of
7477 rtx_sequence to clarify the code.
7478 (previous_insn): Rename param "insn" to "uncast_insn" and
7479 reintroduce "insn" as a local rtx_insn * using a checked cast,
7480 dropping a checked cast made redundant by this change. Use a cast
7481 to and method of rtx_sequence to clarify the code.
7482 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
7483 reintroduce "insn" as a local rtx_insn * using a checked cast,
7484 dropping a checked cast made redundant by this change.
7485 (next_nonnote_insn_bb): Likewise.
7486 (prev_nonnote_insn): Likewise.
7487 (prev_nonnote_insn_bb): Likewise.
7488 (next_nondebug_insn): Likewise.
7489 (prev_nondebug_insn): Likewise.
7490 (next_nonnote_nondebug_insn): Likewise.
7491 (prev_nonnote_nondebug_insn): Likewise.
7492 (next_real_insn): Likewise.
7493 (prev_real_insn): Likewise.
7494 (next_active_insn): Likewise.
7495 (prev_active_insn): Likewise.
7496 (next_cc0_user): Likewise. Use rtx_sequence and a method for
7498 (prev_cc0_setter): Likewise.
7499 (try_split): Rename param "trial" to "uncast_trial" and
7500 reintroduce "insn" as a local rtx_insn * using a checked cast,
7501 dropping checked casts made redundant by this change.
7502 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
7504 (remove_insn): Rename param "insn" to "uncast_insn" and
7505 reintroduce "insn" as a local rtx_insn * using a checked cast.
7506 (emit_pattern_after_setloc): Likewise for param "after", as
7508 (emit_pattern_after): Likewise. Strengthen local "prev" from
7510 (emit_pattern_before_setloc): Rename param "before" to
7511 "uncast_before" and reintroduce "before" as a local rtx_insn *
7512 using a checked cast. Strengthen locals "first", "last" from
7514 (emit_pattern_before): Likewise rename/cast param "before" to
7515 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
7516 * except.c (copy_reg_eh_region_note_forward): Strengthen param
7517 "first" and local "insn" from rtx to rtx_insn *.
7518 (copy_reg_eh_region_note_backward): Likewise for param "last"
7520 * expr.c (fixup_args_size_notes): Rename param "last" to
7521 "uncast_last" and reintroduce "last" as a local rtx_insn *
7522 using a checked cast. Strengthen local "insn" from rtx to
7524 * function.c (set_insn_locations): Strengthen param "insn" from
7526 (record_insns): Likewise for param "insns" and local "tmp".
7527 (active_insn_between): Rename param "tail" to
7528 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
7529 using a checked cast.
7530 (thread_prologue_and_epilogue_insns): Split out top-level local
7531 rtx "seq" into three different rtx_insn * locals. Strengthen
7532 local "prologue_seq" from rtx to rtx_insn *.
7533 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
7534 from rtx to rtx_insn *.
7535 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
7536 (priority): Likewise for locals "prev_first", "twin".
7537 (setup_insn_max_reg_pressure): Likewise for param "after".
7538 (sched_setup_bb_reg_pressure_info): Likewise.
7539 (no_real_insns_p): Strengthen params from const_rtx to
7541 (schedule_block): Strengthen local "next_tail" from rtx to
7543 * ifcvt.c (find_active_insn_before): Strengthen return type and
7544 param "insn" from rtx to rtx_insn *.
7545 (find_active_insn_after): Likewise.
7546 (cond_exec_process_insns): Likewise for param "start" and local "insn".
7547 (cond_exec_process_if_block): Likewise for locals "then_start",
7548 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
7549 (noce_process_if_block): Likewise for local "jump".
7550 (merge_if_block): Likewise for two locals named "end".
7551 (cond_exec_find_if_block): Likewise for local "last_insn".
7552 * jump.c (delete_related_insns): Rename param "insn" to
7553 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
7554 checked cast. Strengthen local "p" from rtx to rtx_insn *.
7555 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
7557 (split_reg): Likewise.
7558 * lra.c (lra_process_new_insns): Likewise.
7559 * modulo-sched.c (permute_partial_schedule): Strengthen param
7560 "last" from rtx to rtx_insn *.
7561 * optabs.c (add_equal_note): Likewise for param "insns" and local
7563 (expand_binop_directly): Add checked casts to rtx_insn * within
7564 NEXT_INSN (pat) uses.
7565 (expand_unop_direct): Likewise.
7566 (maybe_emit_unop_insn): Likewise.
7567 * recog.c (peep2_attempt): Strengthen locals "last",
7568 "before_try", "x" from rtx to rtx_insn *.
7569 * reorg.c (optimize_skip): Strengthen return type and local
7570 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
7571 and locals "trial", "next_trial" from rtx to rtx_insn *.
7572 * resource.c (next_insn_no_annul): Strengthen return type and
7573 param "insn" from rtx to rtx_insn *. Use a cast to and method of
7574 rtx_sequence to clarify the code.
7575 (mark_referenced_resources): Add a checked cast to rtx_insn *
7576 within PREV_INSN (x).
7577 (find_dead_or_set_registers): Strengthen return type, param
7578 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
7579 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
7581 (mark_target_live_regs): Strengthen params "insns" and "target",
7582 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
7583 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
7585 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
7586 from rtx to rtx_insn *.
7587 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
7588 from rtx to rtx_insn *.
7589 (copy_reg_eh_region_note_backward): Likewise.
7590 (unshare_all_rtl_in_chain): Likewise for sole param.
7591 (dump_rtl_slim): Strengthen second and third params from const_rtx
7592 to const rtx_insn *.
7593 * sched-deps.c (sched_free_deps): Strengthen params "head" and
7594 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
7595 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
7596 "next_tail" from rtx to rtx_insn *.
7597 (begin_move_insn): Likewise for local "next".
7598 * sched-int.h (sched_free_deps): Likewise for first and second
7600 (no_real_insns_p): Strengthen both params from const_rtx to
7602 (sched_setup_bb_reg_pressure_info): Strengthen second params from
7604 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
7606 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
7607 and locals "insn", "tail" from const_rtx to const rtx_insn *.
7608 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
7610 (debug_rtl_slim): Strengthen params "first" and "last" from
7611 const_rtx to const rtx_insn *.
7612 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
7613 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
7614 (convert_to_simple_return): Likewise for param "returnjump".
7615 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
7617 (convert_to_simple_return): Likewise for param "returnjump".
7618 * valtrack.c (propagate_for_debug): Likewise for params
7620 * valtrack.h (propagate_for_debug): Likewise for second param.
7622 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7624 * output.h (insn_current_reference_address): Strengthen param
7625 from rtx to rtx_insn *.
7626 * final.c (insn_current_reference_address): Likewise.
7628 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7630 * basic-block.h (inside_basic_block_p): Strengthen param from
7631 const_rtx to const rtx_insn *.
7632 * cfgbuild.c (inside_basic_block_p): Likewise.
7634 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7636 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
7638 (get_trace_info): Likewise for param "insn".
7639 (save_point_p): Likewise.
7640 (maybe_record_trace_start): Likewise for both params.
7641 (maybe_record_trace_start_abnormal): Likewise.
7642 (create_trace_edges): Likewise for sole param and for three of the
7644 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
7645 to rtx_insn *, and update a call to pat->element to pat->insn.
7647 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7649 * function.h (struct expr_status): Convert field "x_forced_labels"
7650 from rtx_expr_list * to rtx_insn_list *.
7652 * cfgbuild.c (make_edges): Convert local "x" from an
7653 rtx_expr_list * to an rtx_insn_list *, replacing use of
7654 "element" method with "insn" method.
7655 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7656 * except.c (sjlj_emit_dispatch_table): Replace use of
7657 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
7659 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
7660 rtx_expr_list * to an rtx_insn_list *, replacing use of
7661 "element" method with "insn" method.
7662 * reload1.c (set_initial_label_offsets): Likewise for local "x".
7663 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
7664 rtx_insn *, adding a checked cast. Replace use of
7665 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
7667 (expand_label): Likewise for local "label_r".
7669 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7671 * function.h (struct rtl_data): Convert field
7672 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
7674 * rtl.h (remove_node_from_insn_list): New prototype.
7676 * builtins.c (expand_builtin): When prepending to
7677 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
7679 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
7680 to rtx_insn_list *, and use its "insn" method rather than
7682 * cfgrtl.c (delete_insn): Use new function
7683 remove_node_from_insn_list rather than
7684 remove_node_from_expr_list.
7685 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
7686 to rtx_insn_list *, and use its "insn" method rather than
7688 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7689 * reload1.c (set_initial_label_offsets): Likewise for local "x".
7690 * rtlanal.c (remove_node_from_insn_list): New function, adapted
7691 from remove_node_from_expr_list.
7692 * stmt.c (expand_label): When prepending to
7693 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
7696 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7698 * function.h (struct rtl_data): Strengthen fields "x_return_label"
7699 and "x_naked_return_label" from rtx to rtx_code_label *.
7701 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7703 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
7704 (SET_NEXT_INSN): Likewise.
7705 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
7707 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
7708 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
7709 to split out the SEQUENCE from local "bundle", strengthening the
7710 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
7711 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
7712 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
7713 and the type of the elements of the "slot" array from rtx to
7715 (reorg_split_calls): Likewise for locals "insn" and "next", and
7716 the type of the elements of the "slot" array.
7718 * config/frv/frv.c (frv_nops): Likewise for the elements of this
7720 (frv_function_prologue): Likewise for locals "insn", "next",
7722 (frv_register_nop): Introduce a local "nop_insn" to be the
7723 rtx_insn * containing rtx "nop".
7725 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
7726 used as an insn and sometimes as a pattern, so rename it to
7727 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
7728 using it where dealing with the core insn.
7730 * config/picochip/picochip.c (reorder_var_tracking_notes):
7731 Strengthen locals "insn", "next", "last_insn", "queue",
7732 "next_queue", "prev" from rtx to rtx_insn *.
7734 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
7735 the second param is an rtx_insn ** rather than an rtx **.
7736 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
7737 from rtx to rtx_sequence *, and introduce local named "sequence",
7738 using methods of rtx_sequence to clarify the code.
7739 (remove_insn): Introduce local rtx_sequence * named "sequence" and
7741 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
7742 Rename param "after" to "uncast_after", reintroducing "after" as a
7743 local rtx_insn * with a checked cast.
7744 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
7745 reintroducing "after" as a local rtx_insn * with a checked cast.
7746 Strengthen local "last" from rtx to rtx_insn * and remove the
7747 now-redundant checked casts.
7748 (copy_delay_slot_insn): Strengthen return type and param from rtx
7751 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
7752 "last" from rtx to rtx_insn *.
7754 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7756 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
7757 param from rtx to rtx_insn *.
7759 * emit-rtl.c (copy_delay_slot_insn): Likewise.
7761 * reorg.c (skip_consecutive_labels): Strengthen return type, param
7762 and local "insn" from rtx to rtx_insn *.
7763 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
7764 (unfilled_slots_next): Likewise.
7765 (function_return_label): Strengthen from rtx to rtx_code_label *.
7766 (function_simple_return_label): Likewise.
7767 (first_active_target_insn): Strengthen return type and param from
7769 (find_end_label): Strengthen return type from rtx to
7770 rtx_code_label *; strengthen locals as appropriate.
7771 (emit_delay_sequence): Strengthen return type, param "insn" and
7772 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
7773 and local "li" from rtx to rtx_insn_list *, using methods of
7774 rtx_insn_list for clarity and typesafety.
7775 (add_to_delay_list): Strengthen return type and param "insn" from
7776 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
7777 rtx_insn_list * and use methods of rtx_insn_list.
7778 (delete_from_delay_slot): Strengthen return type, param "insn",
7779 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
7780 Strengthen local "seq" from rtx to rtx_sequence *, and local
7781 "delay_list" from rtx to rtx_insn_list *, using methods of
7782 rtx_sequence for clarity and type-safety.
7783 (delete_scheduled_jump): Add checked cast when invoking
7784 delete_from_delay_slot. Strengthen local "trial" from rtx to
7786 (optimize_skip): Strengthen return type and local "delay_list"
7787 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
7789 (steal_delay_list_from_target): Strengthen return type, param
7790 "delay_list" and local "new_delay_list" from rtx to
7791 rtx_insn_list *. Strengthen param "seq" from rtx to
7792 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
7794 Split out local "temp" into multiple more-tightly scoped locals:
7795 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
7796 of rtx_insn_list and rtx_sequence for clarity and typesafety.
7797 Strengthen locals named "trial" from rtx to rtx_insn *.
7798 (steal_delay_list_from_fallthrough): Strengthen return type and
7799 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
7800 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
7801 Strengthen local "trial" from rtx to rtx_insn *.
7802 (try_merge_delay_insns): Strength local "merged_insns" from rtx
7803 to rtx_insn_list * and use its methods. Strengthen local "pat"
7804 from rtx to rtx_sequence * and use its methods. Strengthen locals
7805 "dtrial" and "new_rtx" from rtx to rtx_insn *.
7806 (get_label_before): Strengthen return type and local "label" from
7808 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
7809 "next_trial", "next", prev". Strengthen local "delay_list" from
7810 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
7812 (follow_jumps): Strengthen return type, param "label" and locals
7813 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
7814 (fill_slots_from_thread): Strengthen return type, param
7815 "delay_list" from rtx to rtx_insn_list *. Strengthen params
7816 "insn", "thread", "opposite_thread" and locals "new_thread",
7817 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
7818 "sequence" from a checked cast to rtx_sequence so that we can call
7819 steal_delay_list_from_target and steal_delay_list_from_fallthrough
7820 with an rtx_sequence *.
7821 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
7822 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
7823 Strengthen local "delay_list" from rtx to rtx_insn_list *.
7824 (relax_delay_slots): Strengthen param "first" and locals "insn",
7825 "next", "trial", "delay_insn", "target_label" from rtx to
7826 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
7827 Introduce a local "trial_seq" for PATTERN (trial) of type
7828 rtx_sequence *, in both cases using methods of rtx_sequence.
7829 (dbr_schedule): Strengthen param "first" and locals "insn",
7830 "next", "epilogue_insn" from rtx to rtx_insn *.
7832 2014-08-28 Richard Biener <rguenther@suse.de>
7834 PR tree-optimization/62283
7835 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7836 Do not peel loops for alignment where the vector loop likely
7837 doesn't run at least VF times.
7839 2014-08-28 Bin Cheng <bin.cheng@arm.com>
7841 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
7842 important_candidates. Consider all important candidates if
7843 IVS doesn't give any result. Remove check on ivs->upto.
7844 (try_add_cand_for): Call iv_ca_add_use only once.
7846 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7848 Anna Tikhonova <anna.tikhonova@intel.com>
7849 Ilya Tocar <ilya.tocar@intel.com>
7850 Andrey Turetskiy <andrey.turetskiy@intel.com>
7851 Ilya Verbin <ilya.verbin@intel.com>
7852 Kirill Yukhin <kirill.yukhin@intel.com>
7853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7855 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
7856 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
7858 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
7859 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
7860 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
7861 (define_insn "*mul<mode>3"): Add EVEX version.
7863 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7864 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7865 Anna Tikhonova <anna.tikhonova@intel.com>
7866 Ilya Tocar <ilya.tocar@intel.com>
7867 Andrey Turetskiy <andrey.turetskiy@intel.com>
7868 Ilya Verbin <ilya.verbin@intel.com>
7869 Kirill Yukhin <kirill.yukhin@intel.com>
7870 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7872 * config/i386/sse.md
7873 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
7874 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
7875 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
7876 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
7877 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
7878 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
7879 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
7880 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
7881 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
7882 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
7883 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
7884 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
7885 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
7886 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
7887 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
7888 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
7890 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7892 Anna Tikhonova <anna.tikhonova@intel.com>
7893 Ilya Tocar <ilya.tocar@intel.com>
7894 Andrey Turetskiy <andrey.turetskiy@intel.com>
7895 Ilya Verbin <ilya.verbin@intel.com>
7896 Kirill Yukhin <kirill.yukhin@intel.com>
7897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7899 * config/i386/sse.md
7900 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
7901 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
7902 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
7904 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7905 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7906 Anna Tikhonova <anna.tikhonova@intel.com>
7907 Ilya Tocar <ilya.tocar@intel.com>
7908 Andrey Turetskiy <andrey.turetskiy@intel.com>
7909 Ilya Verbin <ilya.verbin@intel.com>
7910 Kirill Yukhin <kirill.yukhin@intel.com>
7911 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7913 * config/i386/sse.md
7914 (define_mode_iterator VI128_256): New.
7915 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
7917 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7918 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7919 Anna Tikhonova <anna.tikhonova@intel.com>
7920 Ilya Tocar <ilya.tocar@intel.com>
7921 Andrey Turetskiy <andrey.turetskiy@intel.com>
7922 Ilya Verbin <ilya.verbin@intel.com>
7923 Kirill Yukhin <kirill.yukhin@intel.com>
7924 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7926 * config/i386/sse.md
7927 (define_mode_iterator VI8_256_512): New.
7928 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
7930 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7931 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
7933 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
7935 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7937 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
7938 pointer to the cumulative reloc value and return the value for
7940 (compute_reloc_for_rtx): Take a const_rtx. Call
7941 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
7942 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
7943 for_each_rtx for the CONST case.
7945 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7947 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
7948 (mark_constants_in_pattern): ...this new function to iterate over
7950 (mark_constants): Update accordingly.
7952 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7954 * varasm.c: Include rtl-iter.h.
7955 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
7956 Remove the pointer to the cumulative hashval_t and just return
7957 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
7958 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7959 Accumulate the hashval_ts here instead of const_rtx_hash_1.
7961 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7963 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
7964 Give real type of data parameter. Remove return value.
7965 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
7966 to iterate over subrtxes.
7968 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7970 * var-tracking.c (use_narrower_mode_test): Turn from being a
7971 for_each_rtx callback to being a function that examines each
7973 (adjust_mems): Update accordingly.
7975 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7977 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
7978 callback to being a function that examines each subrtx itself.
7979 Remove handling of null rtxes.
7980 (add_uses): Update accordingly.
7982 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7984 * var-tracking.c: Include rtl-iter.h.
7985 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
7986 to being a function that examines each subrtx itself.
7987 (use_type): Update accordingly.
7989 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7991 * store-motion.c: Include rtl-iter.h.
7992 (extract_mentioned_regs_1): Delete.
7993 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
7994 for_each_rtx to iterate over subrtxes.
7996 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7998 * sel-sched.c: Include rtl-iter.h
7999 (count_occurrences_1): Delete.
8000 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8001 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8003 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8005 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8006 * rtlanal.c (tls_referenced_p_1): Delete.
8007 (tls_referenced_p): Take a const_rtx rather than an rtx.
8008 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8010 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8012 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8013 (for_each_inc_dec): Take an rtx rather than an rtx *.
8014 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8015 (cselib_record_sets): Likewise.
8016 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8017 (check_for_inc_dec): Likewise.
8018 * rtlanal.c (for_each_inc_dec_ops): Delete.
8019 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8020 rather than a pointer to the memory address. Replace
8021 for_each_inc_dec_ops argument with separate function and data
8022 arguments. Abort on non-autoinc addresses.
8023 (for_each_inc_dec_find_mem): Delete.
8024 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8025 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8027 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8029 * rtl.h (find_all_hard_regs): Declare.
8030 * rtlanal.c (find_all_hard_regs): New function.
8031 (record_hard_reg_uses_1): Delete.
8032 (record_hard_reg_uses): Use find_all_hard_regs.
8034 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8036 * rtl.h (replace_label_data): Delete.
8037 (replace_label): Take the old label, new label and update-nuses flag
8038 as direct arguments. Return void.
8039 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8040 * rtlanal.c (replace_label): Update interface as above. Handle
8041 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8042 iterator. Use FOR_EACH_SUBRTX_PTR.
8044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8046 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8047 with const_rtx parameters.
8048 * varasm.c (get_pool_constant): Likewise.
8049 * rtlanal.c (rtx_referenced_p_1): Delete.
8050 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8051 Assert that the rtx we're looking for is nonnull. Allow searches
8052 for constant pool SYMBOL_REFs.
8054 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8056 * reload1.c: Include rtl-iter.h.
8057 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8058 to being a function that examines each subrtx itself.
8059 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8061 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8063 * regcprop.c (cprop_find_used_regs_1): Delete.
8064 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8066 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8068 * regcprop.c: Include rtl-iter.h.
8069 (kill_value): Take a const_rtx.
8070 (kill_autoinc_value): Turn from being a for_each_rtx callback
8071 to being a function that examines each subrtx itself.
8072 (copyprop_hardreg_forward_1): Update accordingly.
8074 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8076 * reg-stack.c: Include rtl-iter.h.
8077 (subst_stack_regs_in_debug_insn): Delete.
8078 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8079 instead of for_each_rtx.
8081 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8083 * lower-subreg.c (find_decomposable_subregs): Turn from being
8084 a for_each_rtx callback to being a function that examines each
8085 subrtx itself. Remove handling of null rtxes.
8086 (decompose_multiword_subregs): Update accordingly.
8088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8090 * lower-subreg.c (adjust_decomposed_uses): Delete.
8091 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8092 Remove handling of null rtxes.
8094 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8096 * lower-subreg.c: Include rtl-iter.h.
8097 (resolve_subreg_use): Turn from being a for_each_rtx callback
8098 to being a function that examines each subrtx itself. Remove
8099 handling of null rtxes.
8100 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8101 (decompose_multiword_subregs): Likewise.
8103 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8105 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8106 to being a function that examines each subrtx itself.
8107 (simplify_using_condition, simplify_using_initial_values): Update
8110 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8112 * loop-iv.c: Include rtl-iter.h.
8113 (find_single_def_src): New function.
8114 (replace_single_def_regs): Turn from being a for_each_rtx callback
8115 to being a function that examines each subrtx itself.
8116 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8118 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8120 * jump.c (eh_returnjump_p_1): Delete.
8121 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8122 Remove handling of null rtxes.
8124 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8126 * jump.c: Include rtl-iter.h.
8127 (returnjump_p_1): Delete.
8128 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8129 Remove handling of null rtxes.
8131 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8133 * ira.c: Include rtl-iter.h.
8134 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8135 to being a function that examines each subrtx itself. Remove
8136 handling of null rtxes.
8137 (update_equiv_regs): Update call accordingly.
8139 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8141 * fwprop.c: Include rtl-iter.h.
8142 (varying_mem_p): Turn from being a for_each_rtx callback to being
8143 a function that examines each subrtx itself.
8144 (propagate_rtx): Update accordingly.
8146 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8148 * function.c: Include rtl-iter.h
8149 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8150 callback to being a function that examines each subrtx itself.
8151 Return the changed flag.
8152 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8153 (instantiate_virtual_regs): Update calls accordingly.
8155 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8157 * final.c: Include rtl-iter.h.
8158 (mark_symbol_ref_as_used): Delete.
8159 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8162 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8164 * emit-rtl.c: Include rtl-iter.h.
8165 (find_auto_inc): Turn from being a for_each_rtx callback to being
8166 a function that examines each subrtx itself. Assume the first operand
8167 to an RTX_AUTOINC is the automodified register.
8168 (try_split): Update call accordingly.
8170 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8172 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8173 Return a bool, inverting the result so that 0/false means "not ok".
8174 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8175 subrtxes of a CONST.
8176 (mem_loc_descriptor, add_const_value_attribute)
8177 (resolve_addr_in_expr): Update calls accordingly.
8179 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8181 * dwarf2out.c: Include rtl-iter.h.
8182 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8183 Remove unused data parameter. Return a bool, inverting the result
8184 so that 0/false means "not ok".
8185 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8186 instead of for_each_rtx.
8188 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8190 * dse.c: Include rtl-iter.h.
8191 (check_mem_read_rtx): Change void * parameter to real type.
8192 Remove return value.
8193 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
8194 for_each_rtx. Don't handle null rtxes.
8196 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8198 * df-problems.c: Include rtl-iter.h.
8199 (find_memory): Turn from being a for_each_rtx callback to being
8200 a function that examines each subrtx itself. Continue to look for
8201 volatile references even after a nonvolatile one has been found.
8202 (can_move_insns_across): Update calls accordingly.
8204 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8206 * ddg.c (walk_mems_2, walk_mems_1): Delete.
8207 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8208 to iterate over subrtxes. Return a bool rather than an int.
8210 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8212 * ddg.c: Include rtl-iter.h.
8213 (mark_mem_use_1): Rename to...
8214 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
8215 instead of for_each_rtx.
8216 (mem_read_insn_p): Update accordingly.
8218 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8220 * cse.c (change_cc_mode_args): Delete.
8221 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8222 a function that examines each subrtx itself. Take the fields of
8223 change_cc_mode_args as argument and return void.
8224 (cse_change_cc_mode_insn): Update calls accordingly.
8226 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8228 * cse.c (is_dead_reg): Change argument to const_rtx.
8229 (dead_debug_insn_data): Delete.
8230 (is_dead_debug_insn): Expand commentary. Turn from being a
8231 for_each_rtx callback to being a function that examines
8232 each subrtx itself. Take the fields of dead_debug_insn_data
8234 (delete_trivially_dead_insns): Update call accordingly.
8236 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8238 * cse.c (check_for_label_ref): Move earlier in file. Turn from
8239 being a for_each_rtx callback to being a function that examines
8241 (cse_extended_basic_block): Update call accordingly.
8243 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8245 * cse.c (check_dependence_data): Delete.
8246 (check_dependence): Change from being a for_each_rtx callback to being
8247 a function that examines all subrtxes itself. Don't handle null rtxes.
8248 (invalidate): Update call accordingly.
8250 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8252 * cse.c: Include rtl-iter.h.
8253 (approx_reg_cost_1): Delete.
8254 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8255 Don't handle null rtxes.
8257 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8259 * cfgcleanup.c: Include rtl-iter.h.
8260 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8261 to being a function that examines each subrtx itself.
8262 (thread_jump): Update accordingly.
8264 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8266 * combine-stack-adj.c: Include rtl-iter.h.
8267 (record_stack_refs_data): Delete.
8268 (record_stack_refs): Turn from being a for_each_rtx callback
8269 to being a function that examines each subrtx itself.
8270 Take a pointer to the reflist. Invert sense of return value
8271 so that true means success and false means failure. Don't
8273 (combine_stack_adjustments_for_block): Update accordingly.
8275 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8277 * combine.c (record_truncated_value): Turn from being a for_each_rtx
8278 callback to a function that takes an rtx and returns a bool
8279 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8282 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8284 * combine.c: Include rtl-iter.h.
8285 (unmentioned_reg_p_1): Delete.
8286 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8287 Don't handle null rtxes.
8289 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8291 * calls.c: Include rtl-iter.h.
8292 (internal_arg_pointer_based_exp_1): Delete.
8293 (internal_arg_pointer_based_exp): Take a const_rtx.
8294 Use FOR_EACH_SUBRTX to iterate over subrtxes.
8296 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8298 * caller-save.c: Include rtl-iter.h.
8299 (add_used_regs_1): Delete.
8300 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8301 to iterate over subrtxes. Assert that any remaining pseudos
8304 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8306 * bt-load.c: Include rtl-iter.h.
8307 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8308 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
8309 to iterate over subrtxes.
8310 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8311 find_btr_use rather than btr_referenced_p.
8313 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8315 * alias.c: Include rtl-iter.h.
8316 (refs_newer_value_cb): Delete.
8317 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8319 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8321 * rtl-iter.h: New file.
8322 * rtlanal.c: Include it.
8323 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8324 (generic_subrtx_iterator <T>::add_single_to_queue)
8325 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8326 (generic_subrtx_iterator <T>::free_array): New functions.
8327 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8328 (generic_subrtx_iterator <const_rtx_accessor>)
8329 (generic_subrtx_iterator <rtx_var_accessor>
8330 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8331 (setup_reg_subrtx_bounds): New function.
8332 (init_rtlanal): Call it.
8334 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8337 * config/sh/sh.md (ashlsi3): Handle negative shift count for
8339 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8341 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
8343 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8345 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8347 * rtl.h (JUMP_LABEL_AS_INSN): New.
8349 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8351 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8353 (alloc_EXPR_LIST): Strengthen return type from rtx to
8355 (remove_free_EXPR_LIST_node): Likewise for param.
8356 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8357 from rtx to rtx_expr_list *.
8358 * sched-int.h (struct deps_desc): Strengthen fields
8359 "pending_read_mems" and "pending_write_mems" from rtx to
8362 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8363 rtx to rtx_expr_list *.
8364 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8365 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8367 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
8368 from rtx to rtx_expr_list *.
8369 * loop-iv.c (simplify_using_initial_values): Strengthen local
8370 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8371 "pnote_next" from rtx * to rtx_expr_list **.
8372 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
8373 param "exprp" from rtx * to rtx_expr_list **.
8374 (add_insn_mem_dependence): Strengthen local "mem_list" from
8375 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
8377 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8378 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
8379 param "old_mems_p" from rtx * to rtx_expr_list **.
8380 * var-tracking.c (struct adjust_mem_data): Strengthen field
8381 "side_effects" from rtx to rtx_expr_list *.
8382 (adjust_insn): Replace NULL_RTX with NULL when assigning to
8384 (prepare_call_arguments): Likewise.
8386 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8388 * function.h (struct rtl_data): Strengthen field
8389 "x_stack_slot_list" from rtx to rtx_expr_list *.
8391 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8392 when assigning to stack_slot_list.
8394 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8396 * function.h (struct rtl_data): Strengthen field
8397 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8398 * rtl.h (remove_node_from_expr_list): Strengthen second param from
8399 rtx * to rtx_expr_list **.
8401 * cfgbuild.c (make_edges): In loop over
8402 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8403 rtx_expr_list *, and use methods of the latter class to clarify
8405 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8406 rtx_expr_list *, and use methods of the latter class to clarify
8408 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8409 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8410 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8411 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
8412 to rtx_expr_list *. Use methods of the latter class to clarify
8415 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8417 * function.h (struct expr_status): Strengthen field
8418 "x_forced_labels" from rtx to rtx_expr_list *.
8420 * cfgbuild.c (make_edges): Split local "x" into two locals,
8421 strengthening one from rtx to rtx_expr_list *, and using methods
8423 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8424 loop over forced_labels, introduce strengthen it from rtx to
8425 rtx_expr_list *, using methods to clarify the code.
8426 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8427 to rtx_expr_list *, using methods of said class to clarify the
8429 * reload1.c (set_initial_label_offsets): Split local "x" into two
8430 per-loop variables, strengthening the first from rtx to
8431 rtx_expr_list * and using methods.
8433 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8435 * coretypes.h (class rtx_expr_list): Add forward declaration.
8436 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8437 * gengenrtl.c (special_rtx): Add EXPR_LIST.
8438 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8439 invariant: GET_CODE (X) == EXPR_LIST.
8440 (is_a_helper <rtx_expr_list *>::test): New.
8441 (rtx_expr_list::next): New.
8442 (rtx_expr_list::element): New.
8443 (gen_rtx_EXPR_LIST): New.
8445 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8447 * varasm.c (mark_constants): Convert a GET_CODE check into a
8448 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8449 Use methods of rtx_sequence to clarify the code.
8451 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8453 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
8454 local "seq" via a checked cast, and use methods of rtx_sequence
8455 to simplify the code.
8457 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8459 * resource.c (mark_referenced_resources): Strengthen local
8460 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
8461 using methods of rtx_sequence to clarify the code.
8462 (find_dead_or_set_registers): Within the switch statement, convert
8463 a GET_CODE check to a dyn_cast, introducing local "seq". Within
8464 the JUMP_P handling, introduce another local "seq", adding a
8465 checked cast to rtx_sequence *. In both cases, use methods of
8466 rtx_sequence to clarify the code.
8467 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
8468 via a checked cast, and use methods of rtx_sequence to simplify
8471 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8473 * reorg.c (redundant_insn): In two places in the function, replace
8474 a check of GET_CODE with a dyn_cast, introducing local "seq", and
8475 usings methods of rtx_sequence to clarify the code.
8477 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8479 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
8480 local "seq" with a checked cast, and use methods of rtx_sequence
8481 to clarify the code.
8483 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8485 * function.c (contains): Introduce local "seq" for PATTERN (insn),
8486 with a checked cast, in the region for where we know it's a
8487 SEQUENCE. Use methods of rtx_sequence.
8489 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8491 * final.c (get_attr_length_1): Replace GET_CODE check with a
8492 dyn_cast, introducing local "seq" and the use of methods of
8494 (shorten_branches): Likewise, introducing local "body_seq".
8495 Strengthen local "inner_insn" from rtx to rtx_insn *.
8496 (reemit_insn_block_notes): Replace GET_CODE check with a
8497 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
8498 Use methods of rtx_sequence.
8499 (final_scan_insn): Likewise, introducing local "seq" for when
8500 "body" is known to be a SEQUENCE, using its methods.
8502 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8504 * except.c (can_throw_external): Strengthen local "seq" from rtx
8505 to rtx_sequence *. Use methods of rtx_sequence.
8506 (insn_nothrow_p): Likewise.
8508 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8510 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
8511 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8512 Use methods of rtx_sequence.
8513 (scan_trace): Likewise for local "pat".
8515 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8517 * coretypes.h (class rtx_sequence): Add forward declaration.
8518 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
8519 invariant: GET_CODE (X) == SEQUENCE.
8520 (is_a_helper <rtx_sequence *>::test): New.
8521 (is_a_helper <const rtx_sequence *>::test): New.
8522 (rtx_sequence::len): New.
8523 (rtx_sequence::element): New.
8524 (rtx_sequence::insn): New.
8526 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8528 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
8530 (alloc_INSN_LIST): Strengthen return type from rtx to
8532 (copy_INSN_LIST): Likewise for return type and param.
8533 (concat_INSN_LIST): Likewise for both params and return type.
8534 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
8535 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
8536 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
8537 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
8539 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
8540 "implicit_sets", "control_uses", "clobbers" from rtx to
8542 (struct deps_desc): Likewise for fields "pending_read_insns",
8543 "pending_write_insns", "pending_jump_insns",
8544 "last_pending_memory_flush", "last_function_call",
8545 "last_function_call_may_noreturn", "sched_before_next_call",
8546 "sched_before_next_jump".
8547 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
8548 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
8550 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
8551 from rtx to rtx_insn_list *.
8552 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
8555 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
8556 to rtx_insn_list **.
8557 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
8559 (queue_insn): Likewise for local "link".
8560 (struct haifa_saved_data): Strengthen field "insn_queue" from
8561 rtx * to rtx_insn_list **.
8562 (save_backtrack_point): Update allocation of save->insn_queue to
8563 reflect the strengthening of elements from rtx to rtx_insn_list *.
8564 (queue_to_ready): Strengthen local "link" from rtx to
8565 rtx_insn_list *; use methods "next" and "insn" when traversing the
8567 (early_queue_to_ready): Likewise for locals "link", "next_link",
8569 (schedule_block): Update allocation of insn_queue to reflect the
8570 strengthening of elements from rtx to rtx_insn_list *. Strengthen
8571 local "link" from rtx to rtx_insn_list *, and use methods when
8573 (add_to_speculative_block): Strengthen locals "twins" and
8574 "next_node" from rtx to rtx_insn_list *, and use methods when
8575 working with them. Strengthen local "twin" from rtx to
8576 rtx_insn *, eliminating a checked cast.
8577 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
8578 from rtx to rtx_insn_list *, and use methods when working with
8581 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
8582 from rtx to rtx_insn_list *, adding a checked cast.
8583 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
8585 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
8586 "newlink" from rtx to rtx_insn_list *. Strengthen local
8587 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
8588 from rtx to rtx_insn *.
8589 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
8590 from rtx to rtx_insn_list *. Use methods of the latter class.
8591 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
8592 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
8593 (remove_free_INSN_LIST_node): Strengthen return type and local
8594 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
8595 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
8596 rtx_insn_list *, using "insn" method.
8598 * sched-deps.c (add_dependence_list): Strengthen param "list"
8599 from rtx to rtx_insn_list *, and use methods when working with it.
8600 (add_dependence_list_and_free): Strengthen param "listp" from
8601 rtx * to rtx_insn_list **.
8602 (remove_from_dependence_list): Strenghten param "listp" from rtx *
8603 to rtx_insn_list **, and use methods when working with *listp.
8604 (remove_from_both_dependence_lists): Strengthen param "listp" from
8605 rtx * to rtx_insn_list **
8606 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
8607 to rtx_insn_list **. Eliminate local "link", in favor of two new
8608 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
8610 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
8611 by introducing local "cond_deps".
8612 (remove_from_deps): Strengthen param "insn" from rtx to
8615 * sched-rgn.c (concat_insn_mem_list): Strengthen param
8616 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
8617 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
8618 Use methods of rtx_insn_list.
8620 * store-motion.c (struct st_expr): Strengthen fields
8621 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
8622 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
8624 (find_moveable_store): Split out "tmp" into multiple more-tightly
8625 scoped locals. Use methods of rtx_insn_list *.
8626 (compute_store_table): Strengthen local "tmp" from rtx to
8627 rtx_insn *. Use methods of rtx_insn_list *.
8629 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8631 * coretypes.h (class rtx_insn_list): Add forward declaration.
8632 * rtl.h (class rtx_insn_list): New subclass of rtx_def
8633 (is_a_helper <rtx_insn_list *>::test): New.
8634 (rtx_insn_list::next): New.
8635 (rtx_insn_list::insn): New.
8636 (gen_rtx_INSN_LIST): Add prototype.
8637 * emit-rtl.c (gen_rtx_INSN_LIST): New.
8638 * gengenrtl.c (special_rtx): Add INSN_LIST.
8640 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8642 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
8643 "prev" from rtx to rtx_insn *.
8645 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8647 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
8648 functions. Require merely an rtx for now, not an rtx_insn *.
8649 (BLOCK_FOR_INSN): Likewise.
8650 (INSN_LOCATION): Likewise.
8651 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
8653 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8655 * rtl.h (PATTERN): Convert this macro into a pair of inline
8656 functions, for now, requiring const_rtx and rtx.
8658 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8660 * target.def (unwind_emit): Strengthen param "insn" from rtx to
8662 (final_postscan_insn): Likewise.
8663 (adjust_cost): Likewise.
8664 (adjust_priority): Likewise.
8665 (variable_issue): Likewise.
8666 (macro_fusion_pair_p): Likewise.
8667 (dfa_post_cycle_insn): Likewise.
8668 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
8669 (first_cycle_multipass_issue): Likewise.
8670 (dfa_new_cycle): Likewise.
8671 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
8672 (speculate_insn): Likewise for param "insn".
8673 (gen_spec_check): Likewise for params "insn" and "label".
8674 (get_insn_spec_ds): Likewise for param "insn".
8675 (get_insn_checked_ds): Likewise.
8676 (dispatch_do): Likewise.
8677 (dispatch): Likewise.
8678 (cannot_copy_insn_p): Likewise.
8679 (invalid_within_doloop): Likewise.
8680 (legitimate_combined_insn): Likewise.
8684 * doc/tm.texi: Automatically updated to reflect changes to
8687 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
8689 (schedule_block): Likewise.
8690 (sched_init): Likewise.
8691 (sched_speculate_insn): Strengthen param "insn" from rtx to
8693 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
8695 * hooks.c (hook_bool_rtx_true): Rename to...
8696 hook_bool_rtx_insn_true): ...this, and strengthen first param from
8698 (hook_constcharptr_const_rtx_null): Rename to...
8699 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
8700 first param from const_rtx to const rtx_insn *.
8701 (hook_bool_rtx_int_false): Rename to...
8702 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
8703 param from rtx to rtx_insn *.
8704 (hook_void_rtx_int): Rename to...
8705 (hook_void_rtx_insn_int): ...this, and strengthen first param from
8708 * hooks.h (hook_bool_rtx_true): Rename to...
8709 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
8711 (hook_bool_rtx_int_false): Rename to...
8712 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
8713 param from rtx to rtx_insn *.
8714 (hook_void_rtx_int): Rename to...
8715 (hook_void_rtx_insn_int): ...this, and strengthen first param from
8717 (hook_constcharptr_const_rtx_null): Rename to...
8718 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
8719 first param from const_rtx to const rtx_insn *.
8721 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
8722 and local "prev" from rtx to rtx_insn *.
8724 * sched-int.h (sched_speculate_insn): Strengthen first param from
8727 * sel-sched.c (create_speculation_check): Likewise for local "label".
8728 * targhooks.c (default_invalid_within_doloop): Strengthen param
8729 "insn" from const_rtx to const rtx_insn *.
8730 * targhooks.h (default_invalid_within_doloop): Strengthen param
8731 from const_rtx to const rtx_insn *.
8733 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
8734 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
8736 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
8738 (arc_invalid_within_doloop): Likewise, with const.
8740 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
8741 (arm_cannot_copy_insn_p): Likewise for param "insn".
8742 (arm_unwind_emit): Likewise.
8744 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
8747 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
8748 (c6x_variable_issue): Likewise. Removed now-redundant checked
8750 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
8752 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
8753 Likewise for param "insn".
8754 (epiphany_mode_after): Likewise.
8755 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
8756 params "insn", "dep_insn".
8757 (epiphany_mode_needed): Likewise for param "insn".
8758 (epiphany_mode_after): Likewise.
8760 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
8761 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8762 (ix86_avx_u128_mode_needed): Likewise.
8763 (ix86_i387_mode_needed): Likewise.
8764 (ix86_mode_needed): Likewise.
8765 (ix86_avx_u128_mode_after): Likewise.
8766 (ix86_mode_after): Likewise.
8767 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
8768 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
8769 (ix86_adjust_priority): Likewise for param "insn".
8770 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
8771 (do_dispatch): Likewise.
8772 (has_dispatch): Likewise.
8773 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
8775 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
8776 reflect renaming of default hook implementation from
8777 hook_constcharptr_const_rtx_null to
8778 hook_constcharptr_const_rtx_insn_null.
8779 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
8781 (ia64_variable_issue): Likewise for param "insn".
8782 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
8783 (ia64_dfa_new_cycle): Likewise.
8784 (ia64_get_insn_spec_ds): Likewise.
8785 (ia64_get_insn_checked_ds): Likewise.
8786 (ia64_speculate_insn): Likewise.
8787 (ia64_gen_spec_check): Likewise for params "insn", "label".
8788 (ia64_asm_unwind_emit): Likewise for param "insn".
8790 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
8792 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
8794 (m68k_sched_variable_issue): Likewise for param "insn".
8796 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
8799 * config/microblaze/microblaze.c (microblaze_adjust_cost):
8800 Likewise for params "insn", "dep".
8802 * config/mips/mips.c (mips_adjust_cost): Likewise.
8803 (mips_variable_issue): Likewise for param "insn".
8804 (mips_final_postscan_insn): Likewise.
8806 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
8807 for params "insn", "dep".
8809 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
8811 (pa_adjust_priority): Likewise for param "insn".
8813 * config/picochip/picochip.c (picochip_sched_adjust_cost):
8814 Likewise for params "insn", "dep_insn".
8816 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
8818 (rs6000_variable_issue): Likewise.
8819 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
8820 (rs6000_debug_adjust_cost): Likewise.
8821 (rs6000_adjust_priority): Likewise for param "insn".
8822 (rs6000_use_sched_lookahead_guard): Likewise.
8823 (get_next_active_insn): Likewise for return type and both params.
8824 (redefine_groups): Likewise for params "prev_head_insn", "tail"
8825 and locals "insn", "next_insn".
8826 (pad_groups): Likewise.
8828 * config/s390/s390.c (s390_adjust_priority): Likewise for param
8830 (s390_cannot_copy_insn_p): Likewise.
8831 (s390_sched_variable_issue): Likewise for third param, eliminating
8833 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
8834 default hook implementation from hook_constcharptr_const_rtx_null
8835 to hook_constcharptr_const_rtx_insn_null.
8837 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
8838 from rtx to rtx_insn *.
8839 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
8840 (sh_variable_issue): Likewise for param "insn".
8841 (sh_dfa_new_cycle): Likewise.
8842 (sh_mode_needed): Likewise.
8843 (sh_mode_after): Likewise.
8845 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
8846 params "insn", "dep_insn".
8847 (hypersparc_adjust_cost): Likewise.
8848 (sparc_adjust_cost): Likewise.
8850 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
8851 param, eliminated checked cast.
8852 (spu_sched_adjust_cost): Likewise for first and third params.
8854 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
8855 params "insn" and "dep_insn" from rtx to rtx_insn *.
8857 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
8859 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8861 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
8862 (set_is_load_p): ...this, updating to work on a SET pattern rather
8864 (is_store_insn): Rename to...
8865 (set_is_store_p): ...this, updating to work on a SET pattern
8866 rather than an insn.
8867 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
8868 top of function to where it is needed. Rewrite the bogus
8869 condition that checks for "insn" and "dep" being PARALLEL to
8870 instead use single_set, introducing locals "insn_set" and
8871 "dep_set". Given that we only ever returned "cost" for a non-pair
8872 of SETs, bail out early if we don't have a pair of SET.
8873 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
8874 use the new locals "insn_set" and "dep_set", and update calls to
8875 is_load_insn and is_store_insn to be calls to set_is_load_p and
8878 2014-08-27 Guozhi Wei <carrot@google.com>
8881 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
8882 amount before using it.
8884 2014-08-27 Richard Biener <rguenther@suse.de>
8886 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
8887 get_maxval_strlen inside a more useful API.
8888 (gimple_fold_builtin_with_strlen): Remove and fold into ...
8889 (gimple_fold_builtin): ... caller.
8890 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
8891 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
8892 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
8893 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
8894 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
8895 gimple_fold_builtin_sprintf): Adjust to compute maxval
8898 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
8901 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
8903 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8905 Anna Tikhonova <anna.tikhonova@intel.com>
8906 Ilya Tocar <ilya.tocar@intel.com>
8907 Andrey Turetskiy <andrey.turetskiy@intel.com>
8908 Ilya Verbin <ilya.verbin@intel.com>
8909 Kirill Yukhin <kirill.yukhin@intel.com>
8910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8912 * config/i386/sse.md
8913 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
8914 Use `concat_tg_mode' attribute to determine asm register size.
8916 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8917 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8918 Anna Tikhonova <anna.tikhonova@intel.com>
8919 Ilya Tocar <ilya.tocar@intel.com>
8920 Andrey Turetskiy <andrey.turetskiy@intel.com>
8921 Ilya Verbin <ilya.verbin@intel.com>
8922 Kirill Yukhin <kirill.yukhin@intel.com>
8923 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8925 * config/i386/sse.md
8926 (define_mode_iterator VI48_AVX512VL): New.
8927 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
8928 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
8929 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
8930 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8931 with VI1): Change mode iterator.
8932 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8933 with VI_ULOADSTORE_BW_AVX512VL): New.
8934 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8935 with VI_ULOADSTORE_F_AVX512VL): Ditto.
8936 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8937 with VI1): Change mode iterator.
8938 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8939 with VI_ULOADSTORE_BW_AVX512VL): New.
8940 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8941 with VI_ULOADSTORE_F_AVX512VL): Ditto.
8942 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8943 with VI1): Change mode iterator.
8944 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8945 with VI_ULOADSTORE_BW_AVX512VL): New.
8946 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8947 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
8948 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
8949 (define_insn "<avx512>_storedqu<mode>_mask" with
8950 VI48_AVX512VL): New.
8951 (define_insn "<avx512>_storedqu<mode>_mask" with
8952 VI12_AVX512VL): Ditto.
8954 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8955 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8956 Anna Tikhonova <anna.tikhonova@intel.com>
8957 Ilya Tocar <ilya.tocar@intel.com>
8958 Andrey Turetskiy <andrey.turetskiy@intel.com>
8959 Ilya Verbin <ilya.verbin@intel.com>
8960 Kirill Yukhin <kirill.yukhin@intel.com>
8961 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8963 * config/i386/sse.md
8964 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
8965 (define_mode_iterator VI48_AVX512BW): New.
8966 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
8967 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8968 with VI48_AVX2_48_AVX512F): New.
8969 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8970 with VI2_AVX512VL): Ditto.
8972 2014-08-27 Richard Biener <rguenther@suse.de>
8975 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
8976 (fold_builtin_3): Do not fold strcat_chk here.
8977 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
8979 (gimple_fold_builtin): Fold strcat_chk here.
8981 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
8983 * dwarf2out.h (dwarf2out_decl): Remove prototype.
8984 * dwarf2out.c (dwarf2out_decl): Make static.
8986 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
8988 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
8990 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8992 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
8993 from rtx to rtx_insn *.
8994 (cselib_lookup_from_insn): Likewise for final param.
8995 (cselib_subst_to_values_from_insn): Likewise.
8996 (cselib_add_permanent_equiv): Likewise.
8998 * cselib.c (cselib_current_insn): Likewise for this variable.
8999 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9000 (cselib_lookup_from_insn): Likewise.
9001 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9002 "save_cselib_current_insn".
9003 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9005 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9006 from rtx to rtx_insn *.
9008 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9010 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9013 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9015 * df.h (df_dump_insn_problem_function): Strengthen first param of
9016 this callback from const_rtx to const rtx_insn *.
9017 (struct df_insn_info): Strengthen field "insn" from rtx to
9019 (DF_REF_INSN): Eliminate this function, reinstating the older
9021 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9022 (df_reg_defined): Likewise.
9023 (df_find_use): Likewise.
9024 (df_reg_used): Likewise.
9025 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9027 (df_dump_insn_bottom): Likewise.
9028 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9029 (df_insn_debug_regno): Likewise.
9030 (debug_df_insn): Likewise.
9031 (df_rd_simulate_one_insn): Likewise for param 2.
9032 (df_word_lr_simulate_defs): Likewise for param 1.
9033 (df_word_lr_simulate_uses): Likewise.
9034 (df_md_simulate_one_insn): Likewise for param 2.
9035 (df_simulate_find_noclobber_defs): Likewise for param 1.
9036 (df_simulate_find_defs): Likewise.
9037 (df_simulate_defs): Likewise.
9038 (df_simulate_uses): Likewise.
9039 (df_simulate_one_insn_backwards): Likewise for param 2.
9040 (df_simulate_one_insn_forwards): Likewise.
9041 (df_uses_create): Likewise for param 2.
9042 (df_insn_create_insn_record): Likewise for param 1.
9043 (df_insn_delete): Likewise.
9044 (df_insn_rescan): Likewise.
9045 (df_insn_rescan_debug_internal): Likewise.
9046 (df_insn_change_bb): Likewise.
9047 (df_notes_rescan): Likewise.
9048 * rtl.h (remove_death): Likewise for param 2.
9049 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9051 * sched-int.h (reemit_notes): Strengthen param from rtx to
9053 * valtrack.h (propagate_for_debug): Likewise for param 1.
9055 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9056 local "tmp_rtx" from const_rtx to const rtx_insn *.
9057 * combine.c (remove_death): Strengthen param "insn" from rtx to
9059 (move_deaths): Likewise for local "where_dead".
9060 * cse.c (delete_trivially_dead_insns): Introduce local
9061 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9062 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9064 (df_reg_defined): Likewise.
9065 (df_find_use): Likewise.
9066 (df_reg_used): Likewise.
9067 (df_dump_insn_problem_data): Strengthen param "insn" from
9068 const_rtx to const rtx_insn *.
9069 (df_dump_insn_top): Likewise.
9070 (df_dump_insn_bottom): Likewise.
9071 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9072 (df_insn_debug_regno): Likewise.
9073 (debug_df_insn): Likewise.
9074 (DF_REF_INSN): Delete.
9075 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9076 from rtx to rtx_insn *.
9077 (df_chain_insn_top_dump): Strengthen param "insn" from
9078 const_rtx to const rtx_insn *.
9079 (df_chain_insn_bottom_dump): Likewise.
9080 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9082 (df_word_lr_simulate_uses): Likewise.
9083 (df_print_note): Likewise.
9084 (df_remove_dead_and_unused_notes): Likewise.
9085 (df_set_unused_notes_for_mw): Likewise.
9086 (df_set_dead_notes_for_mw): Likewise.
9087 (df_create_unused_note): Likewise.
9088 (df_simulate_find_defs): Likewise.
9089 (df_simulate_find_uses): Likewise.
9090 (df_simulate_find_noclobber_defs): Likewise.
9091 (df_simulate_defs): Likewise.
9092 (df_simulate_uses): Likewise.
9093 (df_simulate_one_insn_backwards): Likewise.
9094 (df_simulate_one_insn_forwards): Likewise.
9095 (df_md_simulate_one_insn): Likewise.
9096 * df-scan.c (df_uses_create): Likewise.
9097 (df_insn_create_insn_record): Likewise.
9098 (df_insn_delete): Likewise.
9099 (df_insn_rescan): Likewise.
9100 (df_insn_rescan_debug_internal): Likewise.
9101 (df_insn_change_bb): Likewise.
9102 (df_notes_rescan): Likewise.
9103 (df_refs_add_to_chains): Likewise.
9104 (df_insn_refs_verify): Likewise.
9105 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9106 when invoking df_insn_delete.
9107 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9108 (set_unique_reg_note): Add checked cast.
9109 * final.c (cleanup_subreg_operands): Likewise.
9110 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9111 "insn" from rtx to rtx_insn *.
9112 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9113 "last" from rtx to rtx_insn *.
9114 * ira-emit.c (change_regs_in_insn): New function.
9115 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9116 Invoke change_regs_in_insn rather than change_regs.
9117 * ira.c (update_equiv_regs): Strengthen locals "insn",
9118 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9119 for_each_rtx_in_insn rather than for_each_rtx.
9120 * recog.c (confirm_change_group): Add checked casts.
9121 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9123 (peep2_fill_buffer): Add checked cast.
9124 * rtlanal.c (remove_note): Likewise.
9125 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9126 locals "next" "end" from rtx to rtx_insn *.
9128 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9130 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9132 (struct reg_use_data): Likewise for field "insn".
9133 (insn_cost): Likewise for param.
9134 (real_insn_for_shadow): Likewise for return type and param.
9135 (increase_insn_priority): Likewise for param 1.
9136 (debug_dependencies): Likewise for both params.
9138 * haifa-sched.c (insn_delay): Likewise for param "insn".
9139 (real_insn_for_shadow): Likewise for return type and param "insn".
9140 (update_insn_after_change): Likewise for param "insn".
9141 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9143 (insn_cost): Likewise for param "insn".
9144 (increase_insn_priority): Likewise.
9145 (calculate_reg_deaths): Likewise.
9146 (setup_insn_reg_pressure_info): Likewise.
9147 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9148 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9149 (model_recompute): Likewise.
9150 (must_restore_pattern_p): Likewise for param "next".
9151 (model_excess_cost): Likewise for param "insn".
9152 (queue_remove): Likewise.
9153 (adjust_priority): Likewise for param "prev".
9154 (update_register_pressure): Likewise for param "insn".
9155 (setup_insn_max_reg_pressure): Likewise for local "insn".
9156 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9157 (model_add_to_schedule): Likewise.
9158 (model_reset_queue_indices): Likewise for local "insn".
9159 (unschedule_insns_until): Strengthen local "recompute_vec" from
9160 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
9161 "con" from rtx to rtx_insn *.
9162 (restore_last_backtrack_point): Likewise for both locals "x". Add
9164 (estimate_insn_tick): Likewise for param "insn".
9165 (commit_schedule): Likewise for params "prev_head", "tail" and
9167 (verify_shadows): Likewise for locals "i1", "i2".
9168 (dump_insn_stream): Likewise for params "head", "tail" and locals
9169 "next_tail", "insn".
9170 (schedule_block): Likewise for locals "insn", "x". Add a checked
9172 (fix_inter_tick): Likewise for params "head", "tail".
9173 (create_check_block_twin): Likewise for local "jump".
9174 (haifa_change_pattern): Likewise for param "insn".
9175 (haifa_speculate_insn): Likewise.
9176 (dump_new_block_header): Likewise for params "head", "tail".
9177 (fix_jump_move): Likewise for param "jump".
9178 (move_block_after_check): Likewise.
9179 (sched_init_insn_luid): Likewise for param "insn".
9180 (sched_init_luids): Likewise for local "insn".
9181 (insn_luid): Likewise for param "insn".
9182 (init_h_i_d): Likewise.
9183 (haifa_init_h_i_d): Likewise for local "insn".
9184 (haifa_init_insn): Likewise for param "insn".
9185 * sched-deps.c (add_dependence): Likewise for local "real_pro",
9187 (create_insn_reg_use): Likewise for param "insn".
9188 (setup_insn_reg_uses): Likewise. Add a checked cast.
9189 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9190 "tail" from rtx to rtx_insn *.
9191 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9192 "insn", "next_tail".
9194 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9196 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9197 from rtx to rtx_insn *.
9198 (model_add_to_schedule): Likewise for locals "start", "end",
9201 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9203 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9205 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
9206 "to" and locals "insn", "next", "copy". Remove now-redundant
9209 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9211 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9212 rtx_insn * and param 4 from rtx * to rtx_insn **.
9213 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9214 param 2 from rtx * to rtx_insn **.
9216 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9217 rtx_insn * and final param from rtx * to rtx_insn **.
9219 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9220 from rtx to rtx_insn *.
9221 (try_head_merge_bb): Likewise for both locals named "move_upto".
9222 * df-problems.c (can_move_insns_across): Likewise for params
9223 "from", "to", "across_from", "across_to" and locals "insn",
9224 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
9226 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9227 from rtx to rtx_insn *.
9228 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9229 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9230 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9232 (noce_try_abs): Likewise.
9233 (noce_get_condition): Likewise for param "jump". Strengthen param
9234 "earliest" from rtx * to rtx_insn **.
9235 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9237 (find_cond_trap): Likewise.
9238 (dead_or_predicable): Likewise for local "earliest".
9239 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
9241 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9242 and local "prev". Strengthen param "earliest" from rtx * to
9244 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9245 Strengthen param "earliest" from rtx * to rtx_insn **.
9247 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9249 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9250 "to" and local "insn" from rtx to rtx_insn *.
9252 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9254 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9255 from rtx to rtx_insn *.
9256 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9257 (code_motion_path_driver): Likewise for local "last_insn".
9258 (simplify_changed_insns): Likewise for local "insn".
9260 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9262 * rtl.h (push_to_sequence): Strengthen param from rtx to
9264 (push_to_sequence2): Likewise for both params.
9265 (delete_insns_since): Likewise for param.
9266 (reorder_insns_nobb): Likewise for all three params.
9267 (set_new_first_and_last_insn): Likewise for both params.
9269 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9270 rtx_insn *. Remove now-redundant cast.
9271 (set_last_insn): Likewise.
9273 * builtins.c (expand_builtin_return): Strengthen local
9274 "call_fusage" from rtx to rtx_insn *.
9275 * cfgrtl.c (create_basic_block_structure): Likewise for local
9277 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9278 "first", "last" and local "insn".
9279 (delete_insns_since): Likewise for param "from".
9280 (reorder_insns_nobb): Likewise for params "from", "to", "after"
9282 (push_to_sequence): Likewise for param "first" and local "last".
9283 (push_to_sequence2): Likewise for params "first" and "last".
9284 * lra.c (emit_add3_insn): Likewise for local "last".
9285 (lra_emit_add): Likewise.
9286 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9288 (process_address_1): Likewise for locals "insn", last".
9289 * modulo-sched.c (ps_first_note): Likewise for return type.
9290 * optabs.c (expand_binop_directly): Likewise for param "last".
9292 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9294 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9296 * emit-rtl.c (get_last_insn_anywhere): Likewise.
9298 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9300 * function.h (struct sequence_stack): Strengthen fields "first"
9301 and "last" from rtx to rtx_insn *.
9302 (struct emit_status): Likewise for fields "x_first_insn" and
9305 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9306 (set_first_insn): Add checked cast.
9307 (get_last_insn): Remove now-redundant checked cast.
9308 (set_last_insn): Add checked cast.
9310 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9311 "saved_first" and "saved_last" from rtx to rtx_insn *.
9313 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9315 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9316 (unlink_insn_chain): Strengthen both params from rtx to
9319 * cfgrtl.c (cfg_layout_function_header): Likewise for this
9321 (unlink_insn_chain): Likewise for params "first" and "last".
9322 Remove now-redundant checked cast.
9323 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9324 (fixup_reorder_chain): Strengthen local "insn" from rtx to
9326 * emit-rtl.c (link_insn_into_chain): Likewise for all three
9328 (add_insn): Likewise for param "insn" and local "prev".
9329 (add_insn_after_nobb): Likewise for both params and local "next".
9330 (add_insn_before_nobb): Likewise for both params and local "prev".
9331 (add_insn_after): Rename param "after" to "uncast_after",
9332 introducing local "after" with another checked cast.
9333 (add_insn_before): Rename params "insn" and "before", giving them
9334 "uncast_" prefixes, adding the old names back using checked casts.
9335 (emit_note_after): Likewise for param "after".
9336 (emit_note_before): Likewise for param "before".
9337 (emit_label): Add a checked cast.
9339 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9341 * cselib.h (cselib_record_sets_hook): Strengthen initial param
9342 "insn" from rtx to rtx_insn *.
9344 * cselib.c (cselib_record_sets_hook): Likewise.
9346 * var-tracking.c (add_with_sets): Likewise, renaming back from
9347 "uncast_insn" to "insn" and eliminating the checked cast from rtx
9350 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9352 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9353 and "header_" from rtx to rtx_insn *.
9354 (struct basic_block_d): Likewise for field "head_" within "x"
9355 field of union basic_block_il_dependent.
9356 (BB_HEAD): Drop function...
9357 (SET_BB_HEAD): ...and this function in favor of...
9358 (BB_HEAD): ...reinstate macro.
9359 (BB_END): Drop function...
9360 (SET_BB_END): ...and this function in favor of...
9361 (BB_END): ...reinstate macro.
9362 (BB_HEADER): Drop function...
9363 (SET_BB_HEADER): ...and this function in favor of...
9364 (BB_HEADER): ...reinstate macro.
9366 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9367 (fix_crossing_unconditional_branches): Likewise.
9368 * caller-save.c (save_call_clobbered_regs): Likewise.
9369 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9370 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9371 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9372 (merge_blocks_move_successor_nojumps): Likewise.
9373 (outgoing_edges_match): Update use of for_each_rtx to
9374 for_each_rtx_in_insn.
9375 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9376 (expand_gimple_cond): Likewise.
9377 (expand_gimple_tailcall): Likewise.
9378 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9380 (construct_exit_block): Drop use of SET_BB_END.
9381 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9383 (delete_insn): Rename param "insn" to "uncast_insn", introducing
9384 a new local "insn" with a checked cast to rtx_insn *. Drop use of
9385 SET_BB_HEAD and SET_BB_END.
9386 (create_basic_block_structure): Drop use of SET_BB_HEAD and
9388 (rtl_delete_block): Drop use of SET_BB_HEAD.
9389 (rtl_split_block): Drop use of SET_BB_END.
9390 (emit_nop_for_unique_locus_between): Likewise.
9391 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9392 (block_label): Drop use of SET_BB_HEAD.
9393 (fixup_abnormal_edges): Drop use of SET_BB_END.
9394 (record_effective_endpoints): Drop use of SET_BB_HEADER.
9395 (relink_block_chain): Likewise.
9396 (fixup_reorder_chain): Drop use of SET_BB_END.
9397 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9398 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9399 rtx_insn **. Drop use of SET_BB_HEADER.
9400 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9402 (BB_HEAD): Delete this function.
9403 (SET_BB_HEAD): Likewise.
9405 (SET_BB_END): Likewise.
9406 (BB_HEADER): Likewise.
9407 (SET_BB_HEADER): Likewise.
9408 * emit-rtl.c (add_insn_after): Rename param "insn" to
9409 "uncast_insn", adding a new local "insn" and a checked cast to
9410 rtx_insn *. Drop use of SET_BB_END.
9411 (remove_insn): Strengthen locals "next" and "prev" from rtx to
9412 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
9413 (reorder_insns): Drop use of SET_BB_END.
9414 (emit_insn_after_1): Strengthen param "first" and locals "last",
9415 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
9416 (emit_pattern_after_noloc): Add checked cast.
9417 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9418 (restore_other_notes): Likewise.
9419 (move_insn): Likewise.
9420 (sched_extend_bb): Likewise.
9421 (fix_jump_move): Likewise.
9422 * ifcvt.c (noce_process_if_block): Likewise.
9423 (dead_or_predicable): Likewise.
9424 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9425 * reg-stack.c (change_stack): Drop use of SET_BB_END.
9426 * sel-sched-ir.c (sel_move_insn): Likewise.
9427 * sel-sched.c (move_nop_to_previous_block): Likewise.
9429 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9431 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9433 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9435 * basic-block.h (create_basic_block_structure): Strengthen params
9436 1 "head" and 2 "end" from rtx to rtx_insn *.
9437 * cfgrtl.c (create_basic_block_structure): Likewise.
9438 (rtl_create_basic_block): Update casts from void * to rtx to
9439 rtx_insn *, so that we can pass them as rtx_insn * to
9440 create_basic_block_structure.
9441 * sel-sched-ir.c (sel_create_basic_block): Likewise.
9443 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9445 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
9447 (check_for_inc_dec): Strengthen param "insn" from rtx to
9450 * cselib.h (cselib_process_insn): Likewise.
9452 * cselib.c (cselib_record_sets): Likewise.
9453 (cselib_process_insn): Likewise.
9455 * dse.c (struct insn_info): Likewise for field "insn".
9456 (check_for_inc_dec_1): Likewise for local "insn".
9457 (check_for_inc_dec): Likewise for param "insn".
9458 (scan_insn): Likewise.
9459 (dse_step1): Likewise for local "insn".
9461 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
9462 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
9464 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9466 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
9467 from rtx to rtx_insn *.
9468 (DEP_PRO): Delete this function and...
9469 (SET_DEP_PRO): ...this function in favor of...
9470 (DEP_PRO): ...reinstate this macro.
9471 (DEP_CON): Delete this function and...
9472 (SET_DEP_CON): ...this function in favor of...
9473 (DEP_CON): ...reinstate this old macro.
9474 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
9475 (init_dep): Likewise.
9476 (set_priorities): Likewise for both params.
9477 (sd_copy_back_deps): Likewise for params 1 and 2.
9479 * haifa-sched.c (priority): Likewise for param "insn" and local
9481 (set_priorities): Likewise for params "head" and "tail" and local
9483 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
9485 (add_to_speculative_block): Add a checked cast.
9486 (create_check_block_twin): Drop use of SET_DEP_CON.
9487 (add_jump_dependencies): Strengthen params "insn" and "jump" from
9490 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
9491 Drop use of SET_DEP_PRO
9492 (init_dep): Strengthen params "pro" and "con" from rtx to
9494 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
9498 (SET_DEP_PRO): Delete.
9499 (SET_DEP_CON): Delete.
9501 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9503 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
9504 from rtx to rtx_insn *.
9505 (VINSN_INSN_RTX): Eliminate rvalue function and...
9506 (SET_VINSN_INSN): ...lvalue function in favor of...
9507 (VINSN_INSN_RTX): reinstate this old macro.
9509 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
9510 in favor of VINSN_INSN_RTX.
9511 (VINSN_INSN_RTX): Delete this function.
9512 (SET_VINSN_INSN_RTX): Likewise.
9514 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9516 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
9517 (BND_TO): Delete this function and...
9518 (SET_BND_TO): ...this functions in favor of...
9519 (BND_TO): ...reinstating this macro.
9520 (struct _fence): Strengthen field "executing_insns" from
9521 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
9522 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
9523 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
9524 and param "insn" from rtx to insn_t.
9525 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
9528 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
9530 (rtx_vec_t): Likewise.
9531 (struct sched_deps_info_def): Strengthen param of "start_insn"
9532 callback from rtx to rtx_insn *. Likewise for param "insn2" of
9533 "note_mem_dep" callback and first param of "note_dep" callback.
9535 * haifa-sched.c (add_to_speculative_block): Strengthen param
9536 "insn" from rtx to rtx_insn *.
9537 (clear_priorities): Likewise.
9538 (calc_priorities): Likewise for local "insn".
9540 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
9541 Remove redundant checked cast.
9542 (haifa_note_mem_dep): Likewise for param "pending_insn".
9543 (haifa_note_dep): Likewise for param "elem".
9544 (note_mem_dep): Likewise for param "e".
9545 (sched_analyze_1): Add checked casts.
9546 (sched_analyze_2): Likewise.
9548 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
9549 from rtx to rtx_insn *.
9550 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
9551 from vec<rtx> * to vec<rtx_insn *> *.
9553 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
9555 (flist_add): Strengthen param "executing_insns" from
9556 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9557 (advance_deps_context): Remove now-redundant checked cast.
9558 (init_fences): Replace uses of NULL_RTX with NULL.
9559 (merge_fences): Strengthen params "last_scheduled_insn" and
9560 "sched_next" from rtx to rtx_insn * and "executing_insns" from
9561 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9562 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
9563 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
9564 an instruction, rather than doing double-duty as a pattern.
9565 (return_nop_to_pool): Update for change of insn_t.
9566 (deps_init_id): Remove now-redundant checked cast.
9567 (struct sched_scan_info_def): Strengthen param of "init_insn"
9568 callback from rtx to insn_t.
9569 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
9570 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
9572 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
9573 "end" from rtx to rtx_insn *.
9574 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
9575 (rtx insn_rtx, bool force_unique_p)
9576 (BND_TO): Delete function.
9577 (SET_BND_TO): Delete function.
9579 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
9581 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
9582 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
9584 (undo_transformations): Likewise for param "insn".
9585 (update_liveness_on_insn): Likewise.
9586 (compute_live_below_insn): Likewise for param "insn" and local
9588 (update_data_sets): Likewise for param "insn".
9589 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
9590 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
9591 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
9593 (move_cond_jump): Likewise for param "insn".
9594 (move_cond_jump): Drop use of SET_BND_TO.
9595 (compute_av_set_on_boundaries): Likewise.
9596 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
9597 (update_and_record_unavailable_insns): Strengthen local "bb_end"
9598 from rtx to rtx_insn *.
9599 (maybe_emit_renaming_copy): Likewise for param "insn".
9600 (maybe_emit_speculative_check): Likewise.
9601 (handle_emitting_transformations): Likewise.
9602 (remove_insn_from_stream): Likewise.
9603 (code_motion_process_successors): Strengthen local "succ" from rtx
9606 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9608 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
9609 ilist_t, not _xlist_t;
9610 (ILIST_INSN): Define in terms of new union field "insn".
9611 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
9613 (struct _list_node): Add new field "insn" to the union, of type
9615 (ilist_add): Replace macro with an inline function, requiring an
9617 (ilist_remove): Define this macro directly in terms of
9618 _list_remove, rather than indirectly via _xlist_remove.
9619 (ilist_clear): Likewise, in terms of _list_clear rather than
9621 (ilist_is_in_p): Replace macro with an inline function, requiring
9623 (_list_iter_cond_insn): New function.
9624 (ilist_iter_remove): Define this macro directly in terms of
9625 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
9626 (ilist_iterator): Define directly in terms of _list_iterator
9627 rather than indirectly through _xlist_iterator.
9628 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
9629 than in terms of _FOR_EACH_X.
9630 (FOR_EACH_INSN_1): Likewise.
9632 2014-08-26 Joseph Myers <joseph@codesourcery.com>
9636 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
9637 DECL_HARD_REGISTER and return for invalid register specifications.
9638 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
9639 DECL_HARD_REGISTER, call expand_one_error_var.
9640 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
9641 CC_REGNUM with non-MODE_CC modes.
9642 (arm_regno_class): Return NO_REGS for PC_REGNUM.
9644 2014-08-26 Marek Polacek <polacek@redhat.com>
9647 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
9649 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
9651 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
9652 qi cost; add di cost.
9653 (cortexa57_addrcost_table): Likewise.
9655 2014-08-26 Marek Polacek <polacek@redhat.com>
9658 * expr.c (is_aligning_offset): Remove logical not.
9660 2014-08-26 Marek Polacek <polacek@redhat.com>
9663 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
9664 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
9666 2014-08-26 Richard Biener <rguenther@suse.de>
9668 PR tree-optimization/62175
9669 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9670 expand possibly trapping operations.
9672 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9674 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
9675 "insn" from rtx to rtx_insn *.
9676 (permute_load): Likewise for param "insn".
9677 (permute_store): Likewise.
9678 (handle_special_swappables): Likewise for local "insn".
9679 (replace_swap_with_copy): Likewise for locals "insn" and
9681 (rs6000_analyze_swaps): Likewise for local "insn".
9683 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9685 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
9688 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9690 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
9691 "note_list" from rtx to rtx_insn *.
9692 (BB_NOTE_LIST): Replace this function and...
9693 (SET_BB_NOTE_LIST): ...this function with...
9694 (BB_NOTE_LIST): ...the former macro implementation.
9696 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
9697 local "from_start" from rtx to rtx_insn *. Strengthen param
9698 "to_endp" from rtx * to rtx_insn **.
9700 * haifa-sched.c (concat_note_lists): Likewise.
9701 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
9703 (sel_restore_notes): Likewise.
9704 (move_bb_info): Likewise.
9705 (BB_NOTE_LIST): Delete this function.
9706 (SET_BB_NOTE_LIST): Delete this function.
9707 * sel-sched.c (create_block_for_bookkeeping): Eliminate
9708 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
9710 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9712 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
9713 from rtx * to rtx_insn **.
9714 (reorder2): Likewise.
9715 (dependencies_evaluation_hook): Strengthen params "head", "tail"
9716 from rtx to rtx_insn *.
9718 * doc/tm.texi: Update mechanically for above change to target.def.
9720 * sched-int.h (note_list): Strengthen this variable from rtx to
9722 (remove_notes): Likewise for both params.
9723 (restore_other_notes): Likewise for return type and first param.
9724 (struct ready_list): Strengthen field "vec" from rtx * to
9726 (struct dep_replacement): Strenghten field "insn" from rtx to
9728 (struct deps_desc): Likewise for fields "last_debug_insn",
9730 (struct haifa_sched_info): Likewise for callback field
9731 "can_schedule_ready_p"'s param, for first param of "new_ready"
9732 callback field, for both params of "rank" callback field, for
9733 first field of "print_insn" callback field (with a const), for
9734 both params of "contributes_to_priority" callback, for param
9735 of "insn_finishes_block_p" callback, for fields "prev_head",
9736 "next_tail", "head", "tail", for first param of "add_remove_insn"
9737 callback, for first param of "begin_schedule_ready" callback, for
9738 both params of "begin_move_insn" callback, and for second param
9739 of "advance_target_bb" callback.
9740 (add_dependence): Likewise for params 1 and 2.
9741 (sched_analyze): Likewise for params 2 and 3.
9742 (deps_analyze_insn): Likewise for param 2.
9743 (ready_element): Likewise for return type.
9744 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9745 (try_ready): Strenghten param from rtx to rtx_insn *.
9746 (sched_emit_insn): Likewise for return type.
9747 (record_delay_slot_pair): Likewise for params 1 and 2.
9748 (add_delay_dependencies): Likewise for param.
9749 (contributes_to_priority): Likewise for both params.
9750 (find_modifiable_mems): Likewise.
9752 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
9753 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
9754 "first_older_only_insn" from rtx to rtx_insn *.
9755 (arm_sched_reorder): Strengthen param "ready" from rtx * to
9758 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
9759 "last_scheduled_iter0" from rtx to rtx_insn *.
9760 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
9761 (c6x_sched_reorder_1): Strengthen param "ready" and locals
9762 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
9763 "insn" from rtx to rtx_insn *.
9764 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
9766 (c6x_sched_reorder2): Strengthen param "ready" and locals
9767 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
9768 "insn" from rtx to rtx_insn *.
9769 (c6x_variable_issue): Add a checked cast when assigning from insn
9770 to ss.last_scheduled_iter0.
9771 (split_delayed_branch): Strengthen param "insn" and local "i1"
9772 from rtx to rtx_insn *.
9773 (split_delayed_nonbranch): Likewise.
9774 (undo_split_delayed_nonbranch): Likewise for local "insn".
9775 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
9776 "entry_after", "end_packet", "head_insn", "tail_insn",
9777 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
9778 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
9779 to rtx_insn **. Remove now-redundant checked cast on last_insn,
9780 but add a checked cast on loop->start_label. Consolidate calls to
9781 avoid assigning result of gen_spkernel to "insn", now an
9784 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
9785 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
9787 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
9788 rtx_insn **. Strengthen locals "top", "next" from rtx to
9790 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
9791 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9792 (add_parameter_dependencies): Strengthen params "call", "head" and
9793 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
9794 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
9795 (add_dependee_for_func_arg): Likewise for param "arg" and local
9797 (ix86_dependencies_evaluation_hook): Likewise for params "head",
9798 "tail" and locals "insn", "first_arg".
9800 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
9801 for params "head", "tail" and locals "insn", "next", "next_tail".
9802 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
9803 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
9804 "insn", "lowest", "highest" from rtx to rtx_insn *.
9805 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
9807 (ia64_sched_reorder2): Likewise.
9809 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
9810 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
9811 from rtx * to rtx_insn **.
9812 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
9814 (mep_print_sched_insn): Strengthen param "insn" from rtx to
9816 (mep_sched_reorder): Strengthen param "ready" from rtx * to
9817 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
9820 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
9821 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
9823 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
9824 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
9825 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
9827 (vr4130_reorder): Likewise.
9828 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
9830 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
9832 (mips_sched_reorder): Likewise.
9833 (mips_sched_reorder2): Likewise.
9835 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
9837 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
9838 Strengthen local "tmp" from rtx to rtx_insn *.
9839 (rs6000_sched_reorder2): Likewise.
9841 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
9842 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
9843 (s390_sched_reorder): Strengthen param "ready" from rtx * to
9844 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
9846 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
9847 "tmp2" from rtx to rtx_insn *.
9848 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
9849 Strengthen local "insn" from rtx to rtx_insn *.
9850 (ready_reorder): Strengthen param "ready" from rtx * to
9851 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
9852 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
9853 (sh_reorder2): Likewise.
9855 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
9856 local "insn" from rtx to rtx_insn *.
9858 * haifa-sched.c (note_list): Strengthen this variable from rtx to
9860 (scheduled_insns): Strengthen this variable from vec<rtx> to
9862 (set_modulo_params): Likewise for locals "i1", "i2".
9863 (record_delay_slot_pair): Likewise for params "i1", "i2".
9864 (add_delay_dependencies): Likewise for param "insn".
9865 (cond_clobbered_p): Likewise.
9866 (recompute_todo_spec): Likewise for local "prev".
9867 (last_scheduled_insn): Likewise for this variable.
9868 (nonscheduled_insns_begin): Likewise.
9869 (model_set_excess_costs): Strengthen param "insns" from rtx * to
9871 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
9873 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
9874 Strengthen local "insn" from rtx to rtx_insn *.
9875 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
9876 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9877 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
9878 (ready_remove_first): Likewise for return type and local "t".
9879 (ready_element): Likewise for return type.
9880 (ready_remove): Likewise for return type and local "t".
9881 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
9882 (check_clobbered_conditions): Strengthen local "x" from rtx to
9883 rtx_insn *, adding a checked cast.
9884 (schedule_insn): Likewise for param "insn".
9885 (remove_notes): Likewise for params "head", "tail" and locals
9886 "next_tail", "insn", "next".
9887 (struct haifa_saved_data): Likewise for fields
9888 "last_scheduled_insn", "nonscheduled_insns_begin".
9889 (save_backtrack_point): Update for change to field "vec" of
9891 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
9893 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
9894 from rtx to rtx_insn *
9895 (resolve_dependencies): Strengthen param "insn" from rtx to
9897 (restore_other_notes): Likewise for return type, for param "head"
9898 and local "note_head".
9899 (undo_all_replacements): Likewise for local "insn".
9900 (first_nonscheduled_insn): Likewise for return type and local "insn".
9901 (queue_to_ready): Likewise for local "insn", adding checked casts.
9902 (early_queue_to_ready): Likewise for local "insn".
9903 (debug_ready_list_1): Strengthen local "p" from rtx * to
9905 (move_insn): Strengthen param "insn" and local "note" from rtx to
9907 (insn_finishes_cycle_p): Likewise for param "insn".
9908 (max_issue): Likewise for local "insn".
9909 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
9911 (commit_schedule): Strengthen param "prev_head" and local "insn"
9912 from rtx to rtx_insn *
9913 (prune_ready_list): Likewise for local "insn".
9914 (schedule_block): Likewise for locals "prev_head", "head", "tail",
9915 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
9916 (set_priorities): Likewise for local "prev_head".
9917 (try_ready): Likewise for param "next".
9918 (fix_tick_ready): Likewise.
9919 (change_queue_index): Likewise.
9920 (sched_extend_ready_list): Update for change to field "vec" of
9922 (generate_recovery_code): Strengthen param "insn" from rtx to
9924 (begin_speculative_block): Likewise.
9925 (create_check_block_twin): Likewise for param "insn" and locals
9926 "label", "check", "twin". Introduce local "check_pat" to avoid
9927 "check" being used as a plain rtx before being used as an insn.
9928 (fix_recovery_deps): Add a checked cast to rtx_insn * when
9929 extracting elements from ready_list.
9930 (sched_remove_insn): Strengthen param "insn" from rtx to
9932 (sched_emit_insn): Likewise for return type.
9933 (ready_remove_first_dispatch): Likewise for return type and local
9936 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
9938 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
9941 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
9942 from rtx to rtx_insn *.
9943 (add_dependence_list): Likewise for param "insn". Add a checked
9945 (add_dependence_list_and_free): Strengthen param "insn" from rtx
9946 to rtx_insn *. Strengthen param "list_p" from rtx * to
9948 (chain_to_prev_insn): Strengthen param "insn" and locals
9949 "prec_nonnote", "i" from rtx to rtx_insn *.
9950 (flush_pending_lists): Likewise for param "insn".
9951 (cur_insn): Likewise for this variable.
9952 (haifa_start_insn): Add a checked cast.
9953 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
9954 (sched_analyze_reg): Likewise for param "insn".
9955 (sched_analyze_1): Likewise.
9956 (sched_analyze_2): Likewise. Add checked casts.
9957 (sched_analyze_insn): Likewise. Also for local "prev".
9958 (deps_analyze_insn): Likewise for param "insn".
9959 (sched_analyze): Likewise for params "head", "tail" and local "insn".
9960 (add_dependence_1): Likewise for params "insn", "elem".
9961 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
9962 (parse_add_or_inc): Likewise for param "insn".
9963 (find_inc): Likewise for local "inc_cand".
9964 (find_modifiable_mems): Likewise for params "head", "tail" and
9965 locals "insn", "next_tail".
9967 * sched-ebb.c (init_ready_list): Likewise for local "insn".
9968 (begin_schedule_ready): Likewise for param "insn".
9969 (begin_move_insn): Likewise for params "insn" and "last".
9970 (ebb_print_insn): Strengthen param "insn" from const_rtx to
9972 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
9973 (ebb_contributes_to_priority): Likewise for params "next", "insn".
9974 (ebb_add_remove_insn): Likewise for param "insn".
9975 (advance_target_bb): Likewise.
9977 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
9979 (check_live): Likewise for param "insn".
9980 (init_ready_list): Likewise for local "insn".
9981 (can_schedule_ready_p): Likewise for param "insn".
9982 (begin_schedule_ready): Likewise.
9983 (new_ready): Likewise for param "next".
9984 (rgn_print_insn): Likewise for param "insn".
9985 (rgn_rank): Likewise for params "insn1", "insn2".
9986 (contributes_to_priority): Likewise for params "next", "insn".
9987 (rgn_insn_finishes_block_p): Likewise for param "insn".
9988 (add_branch_dependences): Likewise for params "head", "tail" and
9989 locals "insn", "last".
9990 (rgn_add_remove_insn): Likewise for param "insn".
9991 (advance_target_bb): Likewise.
9993 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
9994 const_rtx to const rtx_insn *.
9996 * sel-sched-dump.h (sel_print_insn): Likewise.
9998 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
9999 (deps_init_id): Likewise.
10001 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10002 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10005 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10007 * output.h (final_start_function): Strengthen param 1 from rtx to
10010 * final.c (final_start_function): Likewise, renaming back from
10011 "uncast_first" to "first", and dropping the checked cast from rtx
10014 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10016 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10017 * final.c (final): Likewise. Rename param back from
10018 "uncast_first" to "first" and eliminate the checked cast from rtx
10021 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10023 * output.h (shorten_branches): Strengthen param from rtx to
10026 * final.c (shorten_branches): Likewise, renaming param back from
10027 "uncast_first" to "first", and dropping the checked cast from rtx
10030 * genattr.c (gen_attr): Likewise when writing out the prototype of
10033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10035 * sched-int.h (struct haifa_sched_info): Strengthen fields
10036 "prev_head" and "next_tail" from rtx to rtx_insn *.
10038 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10040 * rtl.h (rtx_jump_table_data::get_labels): New method.
10041 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10042 with use of the new rtx_jump_table_data::get_labels method.
10043 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10044 to rtx_jump_table_data *. Simplify by using get_labels method.
10045 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10046 a dyn_cast, introducing local "table", using it to replace
10047 label-lookup logic with a get_labels method call.
10048 (patch_jump_insn): Simplify using get_labels method.
10049 * dwarf2cfi.c (create_trace_edges): Likewise.
10050 * rtlanal.c (label_is_jump_target_p): Likewise.
10052 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10054 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10057 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10058 (unshare_all_rtl_again): Likewise, also for local "p".
10060 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10062 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10064 * cfgrtl.c (delete_insn_and_edges): Likewise.
10066 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10068 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10069 from rtx to rtx_insn *.
10071 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10073 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10075 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10076 locals "returnjump", "epilogue_end", "insn", "next".
10078 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10079 "returnjump" from rtx * to rtx_insn **.
10080 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10082 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10084 * basic-block.h (struct edge_def). Strengthen "r" within
10085 union edge_def_insns from rtx to rtx_insn *.
10087 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10088 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10090 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10091 from rtx to rtx_insn *.
10092 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10094 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10095 (reg_used_on_edge): Likewise.
10096 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10097 (gt_pch_nx): New overload for rtx_insn *&.
10098 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10099 from rtx to rtx_insn *.
10101 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10103 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10104 from rtx to rtx_insn *.
10105 (BB_FOOTER): Replace function with access macro.
10106 (SET_BB_FOOTER): Delete.
10108 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10110 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10111 (emit_barrier_after_bb): Likewise.
10112 (record_effective_endpoints): Likewise.
10113 (relink_block_chain): Likewise.
10114 (fixup_fallthru_exit_predecessor): Likewise.
10115 (cfg_layout_duplicate_bb): Likewise.
10116 (cfg_layout_split_block): Likewise.
10117 (cfg_layout_delete_block): Likewise.
10118 (cfg_layout_merge_blocks): Likewise.
10119 (BB_FOOTER): Delete function.
10120 (SET_BB_FOOTER): Delete function.
10121 * combine.c (update_cfg_for_uncondjump): Replace uses of
10122 SET_BB_FOOTER with BB_FOOTER.
10124 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10126 * except.h (struct eh_landing_pad_d): Strengthen field
10127 "landing_pad" from rtx to rtx_code_label *.
10129 * except.c (sjlj_emit_dispatch_table): Likewise for param
10131 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10133 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10135 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10136 first param from rtx to rtx_insn *.
10137 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10138 field "set_frame_ptr_insn".
10139 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10140 "csend" from rtx to rtx_code_label *.
10141 (xtensa_expand_atomic): Likewise for local "csloop".
10142 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10144 (xtensa_call_tls_desc): Likewise for return type and locals
10145 "call_insn", "insns".
10146 (xtensa_legitimize_tls_address): Likewise for local "insns".
10147 (xtensa_expand_prologue): Likewise for locals "insn", "first".
10149 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10151 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10152 first param from rtx to rtx_insn *.
10153 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10156 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10158 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10159 Strengthen param 1 from rtx to rtx_insn *.
10160 (tilepro_output_cbranch): Likewise.
10161 (tilepro_adjust_insn_length): Likewise.
10162 (tilepro_final_prescan_insn): Likewise for sole param.
10164 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10165 Likewise for local "last".
10166 (cbranch_predicted_p): Likewise for param "insn".
10167 (tilepro_output_simple_cbranch_with_opcode): Likewise.
10168 (tilepro_output_cbranch_with_opcode): Likewise.
10169 (tilepro_output_cbranch): Likewise.
10170 (frame_emit_load): Likewise for return type and locals "seq",
10172 (emit_sp_adjust): Likewise for return type and local "insn".
10173 (tilepro_expand_epilogue): Likewise for locals "last_insn",
10175 (tilepro_adjust_insn_length): Likewise for param "insn".
10176 (next_insn_to_bundle): Likewise for return type and params
10178 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10179 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10181 (match_addli_pcrel): Likewise for param "insn".
10182 (replace_addli_pcrel): Likewise.
10183 (match_auli_pcrel): Likewise.
10184 (replace_auli_pcrel): Likewise.
10185 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10187 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10188 "queue", "next_queue", "prev".
10189 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10190 (tilepro_final_prescan_insn): Likewise for param "insn".
10192 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10194 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10195 Strengthen param 1 from rtx to rtx_insn *.
10196 (tilegx_output_cbranch): Likewise.
10197 (tilegx_adjust_insn_length): Likewise.
10198 (tilegx_final_prescan_insn): Likewise for sole param.
10200 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10202 (cbranch_predicted_p): Likewise for param "insn".
10203 (tilegx_output_simple_cbranch_with_opcode): Likewise.
10204 (tilegx_output_cbranch_with_opcode): Likewise.
10205 (tilegx_output_cbranch): Likewise.
10206 (frame_emit_load): Likewise for return type.
10207 (set_frame_related_p): Likewise for locals "seq", "insn".
10208 (emit_sp_adjust): Likewise for return type, and for local "insn".
10209 Introduce local "pat" for use in place of "insn" where the latter
10210 isn't an instruction.
10211 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10212 from rtx to rtx_insn *.
10213 (tilegx_adjust_insn_length): Likewise for param "insn".
10214 (next_insn_to_bundle): Likewise for return type and params "r" and
10216 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10218 (replace_insns): Likewise for params "old_insn", "new_insns".
10219 (replace_mov_pcrel_step1): Likewise for param "insn" and local
10221 (replace_mov_pcrel_step2): Likewise.
10222 (replace_mov_pcrel_step3): Likewise.
10223 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10225 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10226 "queue", "next_queue", "prev".
10227 (tilegx_output_mi_thunk): Likewise for local "insn".
10228 (tilegx_final_prescan_insn): Likewise for param "insn".
10230 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10232 * config/spu/spu.c (frame_emit_store): Strengthen return type from
10234 (frame_emit_load): Likewise.
10235 (frame_emit_add_imm): Likewise, also for local "insn".
10236 (spu_expand_prologue): Likewise for local "insn".
10237 (struct spu_bb_info): Likewise for field "prop_jump".
10238 (emit_nop_for_insn): Likewise for param "insn" and local
10240 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10242 (spu_emit_branch_hint): Likewise for params "before", "branch" and
10243 locals "hint", "insn".
10244 (get_branch_target): Likewise for param "branch".
10245 (insn_clobbers_hbr): Likewise for param "insn".
10246 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10247 locals "insn", "before_4", "before_16".
10248 (insert_hbrp): Likewise for local "insn".
10249 (spu_machine_dependent_reorg): Likewise for locals "branch",
10250 "insn", "next", "bbend".
10251 (uses_ls_unit): Likewise for param "insn".
10252 (get_pipe): Likewise.
10253 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10254 introducing a checked cast.
10255 (spu_sched_adjust_cost): Likewise for params "insn" and
10257 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10258 (spu_sms_res_mii): Likewise.
10260 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10262 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10263 from rtx to rtx_insn *.
10264 (output_cbranch): Likewise for param 6.
10265 (output_return): Likewise for param 1.
10266 (output_sibcall): Likewise.
10267 (output_v8plus_shift): Likewise.
10268 (output_v8plus_mult): Likewise.
10269 (output_v9branch): Likewise for param 7.
10270 (output_cbcond): Likewise for param 3.
10272 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10274 (sparc_legitimize_pic_address): Likewise.
10275 (sparc_emit_call_insn): Likewise.
10276 (emit_save_or_restore_regs): Likewise.
10277 (emit_window_save): Likewise for return type and local "insn".
10278 (sparc_expand_prologue): Likewise for local "insn".
10279 (sparc_flat_expand_prologue): Likewise.
10280 (output_return): Likewise for param "insn".
10281 (output_sibcall): Likewise for param "insn" and local "delay".
10282 (output_ubranch): Likewise for param "insn".
10283 (output_cbranch): Likewise.
10284 (output_cbcond): Likewise.
10285 (output_v9branch): Likewise.
10286 (output_v8plus_shift): Likewise.
10287 (sparc_output_mi_thunk): Likewise for local "insn".
10288 (get_some_local_dynamic_name): Likewise.
10289 (output_v8plus_mult): Likewise for param "insn".
10291 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10293 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10294 from rtx to rtx_insn *.
10295 (output_branchy_insn): Likewise for param 3.
10296 (output_far_jump): Likewise for param 1.
10297 (final_prescan_insn): Likewise.
10298 (sh_insn_length_adjustment): Likewise for sole param.
10300 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10301 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10303 (sh_emit_compare_and_set): Likewise for local "lab".
10304 (output_far_jump): Strengthen param "insn" and local "prev" from
10306 (output_branchy_insn): Likewise for param "insn" and local
10308 (output_ieee_ccmpeq): Likewise for param "insn".
10309 (struct label_ref_list_d): Strengthen field "label" from rtx to
10311 (pool_node): Likewise.
10312 (pool_window_label): Likewise for this global.
10313 (add_constant): Likewise for return type and locals "lab", "new_rtx".
10314 (dump_table): Strengthen params "start", "barrier" and local
10315 "scan" from rtx to rtx_insn *.
10316 (broken_move): Likewise for param "insn".
10317 (untangle_mova): Likewise for params "first_mova" and "new_mova".
10318 Strengthen param "first_mova" from rtx * to rtx_insn **.
10319 (mova_p): Likewise for param "insn".
10320 (fixup_mova): Likewise for param "mova".
10321 (find_barrier): Likewise for return type, params "mova" and
10322 "from", and locals "barrier_before_mova", "found_barrier",
10323 "good_barrier", "orig", "last_symoff", "next". Strengthen local
10324 "label" from rtx to rtx_code_label *.
10325 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10327 (sh_reorg): Likewise for locals "link", "scan", "barrier".
10328 (split_branches): Likewise for param "first" and local "insn".
10329 (final_prescan_insn): Likewise for param "insn".
10330 (sequence_insn_p): Likewise for locals "prev", "next".
10331 (sh_insn_length_adjustment): Likewise for param "insn".
10332 (sh_can_redirect_branch): Likewise for local "insn".
10333 (find_r0_life_regions): Likewise for locals "end", "insn".
10334 (sh_output_mi_thunk): Likewise for local "insns".
10336 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10338 * config/score/score.c (score_output_mi_thunk): Strengthen local
10339 "insn" from rtx to rtx_insn *.
10340 (score_prologue): Likewise.
10342 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10344 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10345 1 from rtx to rtx_insn *.
10346 (s390_emit_jump): Likewise for return type.
10347 (s390_emit_call): Likewise.
10348 (s390_load_got): Likewise.
10350 * config/s390/s390.c (last_scheduled_insn): Likewise for this
10352 (s390_match_ccmode): Likewise for param "insn".
10353 (s390_emit_jump): Likewise for return type.
10354 (s390_split_branches): Likewise for local "label".
10355 (struct constant): Strengthen field "label" from rtx to
10357 (struct constant_pool): Likewise for field "label". Strengthen
10358 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10360 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10362 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10363 (s390_end_pool): Likewise.
10364 (s390_dump_pool): Likewise for local "insn".
10365 (s390_mainpool_start): Likewise.
10366 (s390_chunkify_start): Likewise.
10367 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10368 with insns. Strengthen locals "label", "jump", "barrier", "next",
10369 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10370 (s390_chunkify_finish): Strengthen local "insn" from rtx to
10372 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10373 "jump", "label", "next_insn".
10374 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10375 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10377 (s390_load_got): Likewise for return type and local "insns".
10378 (s390_save_gprs_to_fprs): Likewise for local "insn".
10379 (s390_restore_gprs_from_fprs): Likewise.
10380 (pass_s390_early_mach::execute): Likewise.
10381 (s390_emit_prologue): Likewise for local "insns".
10382 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10384 (s390_emit_call): Strengthen return type and local "insn" from
10386 (s390_emit_tpf_eh_return): Likewise for local "insn".
10387 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10388 "next_insn", introducing locals "s_pat", "rpat" to allow this.
10389 (s390_fix_long_loop_prediction): Likewise for param "insn" and
10391 (s390_non_addr_reg_read_p): Likewise for param "insn".
10392 (find_cond_jump): Likewise for return type and param "insn".
10393 (s390_swap_cmp): Likewise for param "insn".
10394 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10395 "prev_insn", "next_insn".
10396 (s390_reorg): Likewise for locals "insn", "target".
10397 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10398 (s390_sched_variable_issue): For now, rename param "insn" to
10399 "uncast_insn", introducing a checked cast.
10400 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10402 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10403 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
10405 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10407 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10408 param from rtx to rtx_insn *.
10409 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10411 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10413 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10414 4 from rtx to rtx_insn *.
10415 (rs6000_final_prescan_insn): Likewise for first param.
10416 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10418 (rs6000_get_some_local_dynamic_name): Likewise.
10419 (output_cbranch): Likewise for param "insn".
10420 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10421 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10422 (rs6000_emit_allocate_stack): Likewise for local "insn".
10423 (load_cr_save): Likewise.
10424 (restore_saved_cr): Likewise.
10425 (restore_saved_lr): Likewise.
10426 (emit_cfa_restores): Likewise.
10427 (rs6000_output_function_epilogue): Likewise for locals "insn" and
10428 "deleted_debug_label".
10429 (rs6000_output_mi_thunk): Likewise for local "insn".
10430 (rs6000_final_prescan_insn): Likewise for param "insn".
10432 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10434 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10435 Strengthen param "insn" from rtx to rtx_insn *.
10436 * config/picochip/picochip.c (picochip_current_prescan_insn):
10437 Likewise for this variable.
10438 (picochip_final_prescan_insn): Likewise for param "insn".
10440 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10442 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
10443 from rtx to rtx_insn *.
10444 (pa_output_indirect_call): Likewise.
10445 (pa_adjust_insn_length): Likewise.
10446 (pa_attr_length_millicode_call): Likewise.
10447 (pa_attr_length_call): Likewise.
10448 (pa_attr_length_indirect_call): Likewise.
10450 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
10452 (pa_attr_length_millicode_call): Likewise.
10453 (pa_attr_length_call): Likewise.
10454 (pa_output_call): Likewise.
10455 (pa_attr_length_indirect_call): Likewise.
10456 (pa_output_indirect_call): Likewise.
10458 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10460 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
10461 Strengthen first param from rtx to rtx_insn *.
10462 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
10465 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10467 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
10468 type from rtx to rtx_insn *.
10469 (mips_expand_call): Likewise.
10470 (mips_adjust_insn_length): Likewise for first param.
10471 (mips_output_conditional_branch): Likewise.
10472 (mips_output_order_conditional_branch): Likewise.
10473 (mips_final_prescan_insn): Likewise.
10475 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
10476 rtx_insn * for the SEQUENCE case.
10477 (SEQ_END): Likewise.
10478 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
10479 (mips_emit_call_insn): Likewise, also for local "insn".
10480 (mips16_gp_pseudo_reg): Likewise for local "scan".
10481 (mips16_build_call_stub): Likewise for return type and for local
10482 "insn". Introduce a new local "pattern" so that "insn" can indeed
10484 (mips_expand_call): Strengthen return type and local "insn" from
10486 (mips_block_move_loop): Strengthen local "label" from rtx to
10488 (mips_expand_synci_loop): Likewise for locals "label",
10490 (mips_set_frame_expr): Strengthen local "insn" from rtx to
10492 (mips16e_collect_argument_saves): Likewise for locals "insn",
10494 (mips_find_gp_ref): Likewise for param of callback for "pred"
10495 param, and for local "insn".
10496 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
10497 (mips_insn_has_flexible_gp_ref_p): Likewise.
10498 (mips_epilogue_emit_cfa_restores): Likewise for return type and
10500 (mips_epilogue_set_cfa): Likewise for local "insn".
10501 (mips_expand_epilogue): Likewise.
10502 (mips_adjust_insn_length): Likewise for param "insn".
10503 (mips_output_conditional_branch): Likewise.
10504 (mips_output_order_conditional_branch): Likewise.
10505 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
10506 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
10507 "falu2_turn_enabled_insn".
10508 (mips_builtin_branch_and_move): Strengthen locals "true_label",
10509 "done_label" from rtx to rtx_code_label *.
10510 (struct mips16_constant): Likewise for field "label".
10511 (mips16_add_constant): Likewise for return type.
10512 (mips16_emit_constants_1): Strengthen return type and param "insn"
10513 from rtx to rtx_insn *.
10514 (mips16_emit_constants): Likewise for param "insn".
10515 (mips16_insn_length): Likewise.
10516 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
10517 to rtx_code_label *.
10518 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
10519 from rtx to rtx_insn *.
10520 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
10521 "jump". Strengthen local "label" from rtx to rtx_code_label *.
10522 (r10k_simplify_address): Strengthen param "insn" and local
10523 "def_insn" from rtx to rtx_insn *.
10524 (r10k_safe_address_p): Strengthen param "insn" from rtx to
10526 (r10k_needs_protection_p_1): Update target type of cast of data
10527 from to rtx to rtx_insn *.
10528 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
10529 rtx * to rtx_insn **.
10530 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
10532 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
10533 (mips_call_expr_from_insn): Likewise for param "insn".
10534 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
10535 (mips_find_pic_call_symbol): Likewise for param "insn".
10536 (mips_annotate_pic_calls): Likewise for local "insn".
10537 (mips_sim_insn): Likewise for this variable.
10538 (struct mips_sim): Likewise for field "insn" within elements of
10540 (mips_sim_wait_reg): Likewise for param "insn".
10541 (mips_sim_wait_regs): Likewise.
10542 (mips_sim_wait_units): Likewise.
10543 (mips_sim_wait_insn): Likewise.
10544 (mips_sim_issue_insn): Likewise.
10545 (mips_sim_finish_insn): Likewise.
10546 (mips_seq_time): Likewise for param "seq" and local "insn".
10547 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
10548 locals "first", "second".
10549 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
10550 "last", "last2", "next".
10551 (mips_avoid_hazard): Likewise for params "after", "insn".
10552 (mips_reorg_process_insns): Likewise for locals "insn",
10553 "last_insn", "subinsn", "next_insn".
10554 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
10555 (mips16_split_long_branches): Likewise for locals "insn" "jump",
10557 (mips_output_mi_thunk): Likewise for local "insn".
10558 (mips_final_prescan_insn): Likewise for param "insn".
10560 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10562 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
10563 Strengthen return type and local "insns" from rtx to rtx_insn *.
10564 (microblaze_legitimize_tls_address): Likewise for local "insns".
10565 (microblaze_block_move_loop): Strengthen local "label" from rtx
10566 to rtx_code_label *.
10567 (microblaze_expand_prologue): Strengthen two locals named "insn"
10568 from rtx to rtx_insn *.
10569 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
10570 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
10571 "insn". Strengthen locals "div_label", "div_end_label" from rtx
10572 to rtx_code_label *.
10574 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10576 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
10577 param from rtx to rtx_insn *.
10578 (mep_reuse_lo): Likewise for third param.
10579 (mep_use_post_modify_p): Likewise for first param.
10580 (mep_core_address_length): Likewise.
10581 (mep_cop_address_length): Likewise.
10582 (mep_final_prescan_insn): Likewise.
10583 (mep_store_data_bypass_p): Likewise for both params.
10584 (mep_mul_hilo_bypass_p): Likewise.
10585 (mep_ipipe_ldc_p): Likewise for param.
10587 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
10588 (mep_rewrite_mult): Likewise.
10589 (mep_rewrite_mulsi3): Likewise.
10590 (mep_rewrite_maddsi3): Likewise.
10591 (mep_reuse_lo_p_1): Likewise.
10592 (mep_reuse_lo_p): Likewise.
10593 (mep_frame_expr): Likewise.
10594 (mep_make_parallel): Likewise for both params.
10595 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
10597 (mep_use_post_modify_p): Likewise for param "insn".
10598 (mep_core_address_length): Likewise.
10599 (mep_cop_address_length): Likewise.
10600 (mep_reg_set_in_function): Likewise for local "insn".
10601 (mep_asm_without_operands_p): Likewise.
10602 (F): Likewise for return type and param "x".
10603 (add_constant): Likewise for local "insn".
10604 (maybe_dead_move): Likewise for return type and local "insn".
10605 (mep_expand_prologue): Likewise for local "insn".
10606 (mep_final_prescan_insn): Likewise for param "insn".
10607 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
10608 "next", "follow", "x".
10609 (mep_insert_repeat_label_last): Likewise for return type, param
10610 "last_insn", and locals "next", "prev". Strengthen param "label"
10611 from rtx to rtx_code_label *.
10612 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
10614 (struct mep_doloop_end): Likewise for fields "insn" and
10616 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
10617 Strengthen local "repeat_label" from rtx to rtx_code_label *.
10618 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
10620 (mep_invert_branch): Likewise for params "insn" and "after".
10621 (mep_reorg_erepeat): Likewise for param "insns" and locals
10622 "insn", "prev", "new_last", "barrier", "user". Strengthen local
10623 "l" from rtx to rtx_code_label *.
10624 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
10625 from rtx to rtx_insn *.
10626 (mep_reorg_addcombine): Likewise for param "insns" and locals
10628 (add_sp_insn_p): Likewise for param "insn".
10629 (mep_reorg_noframe): Likewise for param "insns" and locals
10630 "start_frame_insn", "end_frame_insn", "next".
10631 (mep_reorg): Likewise for local "insns".
10632 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
10634 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
10635 (mep_mul_hilo_bypass_p): Likewise.
10636 (mep_ipipe_ldc_p): Likewise for param "insn".
10637 (mep_make_bundle): Likewise for return type, param "cop" and local
10638 "insn", splitting out the latter into a new local "seq" for when it
10639 is a SEQUENCE rather than an insn.
10640 (core_insn_p): Likewise for param "insn".
10641 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
10642 "last", "first", "note", "prev", "core_insn".
10644 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10646 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
10648 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
10649 (m68k_final_prescan_insn): Likewise for first param.
10651 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
10652 (m68k_set_frame_related): Likewise for param "insn".
10653 (output_btst): Likewise for param "insn".
10654 (m68k_final_prescan_insn): Likewise.
10655 (m68k_move_to_reg): Likewise for local "insn".
10656 (m68k_call_tls_get_addr): Likewise for local "insns".
10657 (m68k_call_m68k_read_tp): Likewise.
10658 (strict_low_part_peephole_ok): Likewise for param "first_insn".
10659 (m68k_output_mi_thunk): Likewise for local "insn".
10661 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10663 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
10664 first param from rtx to rtx_insn *.
10665 (iq2000_adjust_insn_length): Likewise.
10666 (iq2000_output_conditional_branch): Likewise.
10667 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
10668 "insn" and local "nop_insn".
10669 (iq2000_annotate_frame_insn): Likewise for param "insn".
10670 (iq2000_expand_prologue): Likewise for both locals "insn".
10671 (iq2000_adjust_insn_length): Likewise for param "insn".
10672 (iq2000_output_conditional_branch): Likewise.
10674 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10676 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
10677 "insns" from rtx to rtx_insn *.
10678 (ia64_emit_cond_move): Likewise for locals "insn", "first".
10679 (struct spill_fill_data): Likewise for field "init_after" and for
10680 elements of array field "prev_insn".
10681 (spill_restore_mem): Likewise for locals "insn", "first".
10682 (do_spill): Likewise for local "insn".
10683 (do_restore): Likewise.
10684 (ia64_expand_prologue): Likewise.
10685 (ia64_expand_epilogue): Likewise.
10686 (emit_insn_group_barriers): Likewise for locals "insn",
10688 (emit_all_insn_group_barriers): Likewise for locals "insn",
10690 (dfa_stop_insn): Likewise for this global.
10691 (dfa_pre_cycle_insn): Likewise.
10692 (ia64_nop): Likewise.
10693 (final_emit_insn_group_barriers): Likewise for locals "insn",
10695 (emit_predicate_relation_info): Likewise for locals "head", "n",
10697 (ia64_reorg): Likewise for local "insn".
10698 (ia64_output_mi_thunk): Likewise.
10699 (expand_vec_perm_interleave_2): Likewise for local "seq".
10701 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10703 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
10704 param 1 "insn" from rtx to rtx_insn *.
10705 (ix86_use_lea_for_mov): Likewise.
10706 (ix86_avoid_lea_for_addr): Likewise.
10707 (ix86_split_lea_for_addr): Likewise.
10708 (ix86_lea_for_add_ok): Likewise.
10709 (ix86_output_call_insn): Likewise.
10711 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
10712 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
10713 (ix86_output_function_epilogue): Likewise for locals "insn",
10714 "deleted_debug_label".
10715 (legitimize_tls_address): Likewise for local "insn".
10716 (get_some_local_dynamic_name): Likewise.
10717 (increase_distance): Likewise for params "prev", "next".
10718 (distance_non_agu_define_in_bb): Likewise for params "insn",
10719 "start" and locals "prev", "next".
10720 (distance_non_agu_define): Likewise for param "insn".
10721 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
10722 locals "next", "prev".
10723 (distance_agu_use): Likewise for param "insn".
10724 (ix86_lea_outperforms): Likewise.
10725 (ix86_ok_to_clobber_flags): Likewise.
10726 (ix86_avoid_lea_for_add): Likewise.
10727 (ix86_use_lea_for_mov): Likewise.
10728 (ix86_avoid_lea_for_addr): Likewise.
10729 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
10730 (ix86_split_lea_for_addr): Likewise for param "insn".
10731 (ix86_lea_for_add_ok): Likewise for param "insn".
10732 (ix86_expand_carry_flag_compare): Likewise for local
10734 (ix86_expand_int_movcc): Likewise.
10735 (ix86_output_call_insn): Likewise for param "insn".
10736 (ix86_output_call_insn): Likewise for local "i".
10737 (x86_output_mi_thunk): Introduce local "insn", using it in place
10738 of "tmp" when dealing with insns.
10739 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
10741 (ix86_pad_returns): Likewise for locals "ret", "prev".
10742 (ix86_count_insn_bb): Likewise for local "insn".
10743 (ix86_pad_short_function): Likewise for locals "ret", "insn".
10744 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
10745 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
10746 (expand_vec_perm_interleave2): Likewise for local "seq".
10747 (expand_vec_perm_vperm2f128_vblend): Likewise.
10748 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
10749 call to for_each_rtx with for_each_rtx_in_insn.
10751 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10753 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
10754 "label" from rtx to rtx_code_label *.
10755 (ix86_expand_prologue): Likewise.
10756 (ix86_expand_split_stack_prologue): Likewise for locals "label",
10758 (ix86_split_idivmod): Likewise for locals "end_label" and
10760 (ix86_expand_branch): Likewise for local "label2".
10761 (ix86_expand_aligntest): Likewise for return type and local "label".
10762 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
10764 (expand_movmem_epilogue): Likewise for the various locals named
10766 (expand_setmem_epilogue): Likewise.
10767 (expand_small_movmem_or_setmem): Likewise for local "label".
10768 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
10769 Strengthen param "done_label" from rtx * to rtx_code_label **.
10770 Strengthen locals "loop_label" and "label" from rtx to
10772 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
10773 Likewise for locals "loop_label", "label".
10774 (ix86_expand_set_or_movmem): Likewise for locals "label",
10775 "jump_around_label", "hot_label".
10776 (ix86_expand_strlensi_unroll_1): Likewise for locals
10777 "align_2_label", align_3_label", "align_4_label", "end_0_label",
10779 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
10780 (void ix86_emit_i387_log1p): Likewise for locals "label1",
10781 "label2", "jump_label".
10782 (ix86_expand_sse_compare_and_jump): Likewise for return type and
10784 (ix86_expand_lfloorceil): Likewise for local "label".
10785 (ix86_expand_rint): Likewise.
10786 (ix86_expand_floorceildf_32): Likewise.
10787 (ix86_expand_floorceil): Likewise.
10788 (ix86_expand_rounddf_32): Likewise.
10789 (ix86_expand_trunc): Likewise.
10790 (ix86_expand_truncdf_32): Likewise.
10791 (ix86_expand_round): Likewise.
10793 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10795 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
10796 first param from rtx to rtx_insn *.
10797 (h8300_insn_length_from_table): Likewise.
10798 * config/h8300/h8300.c (F): Likewise for return type and param
10800 (Fpa): Add a checked cast to rtx_insn *.
10801 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
10803 (final_prescan_insn): Likewise for param "insn".
10804 (h8300_binary_length): Likewise.
10805 (h8300_insn_length_from_table): Likewise.
10807 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10809 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
10810 Strengthen first param "insn" from rtx to rtx_insn *.
10812 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
10814 (frame_insn): Likewise for return type. Introduce local "insn"
10815 for use in place of local "x" for use as an rtx_insn *.
10816 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
10817 (epiphany_expand_prologue): Likewise for local "insn".
10818 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
10819 * config/epiphany/resolve-sw-modes.c
10820 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
10823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10825 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
10826 param from rtx to rtx_insn *.
10827 (c6x_final_prescan_insn): Likewise for first param.
10829 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
10830 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
10831 (c6x_expand_compare): Strengthen local "insns" from rtx to
10833 (c6x_get_unit_specifier): Likewise for param "insn".
10834 (c6x_print_unit_specifier_field): Likewise.
10835 (c6x_final_prescan_insn): Likewise.
10836 (emit_add_sp_const): Likewise for local "insn".
10837 (c6x_expand_prologue): Likewise.
10839 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10841 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
10842 param 1 from rtx to rtx_insn *.
10843 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
10844 the various locals named "insn".
10845 (expand_epilogue_reg_restore): Likewise.
10846 (frame_related_constant_load): Likewise.
10847 (add_to_reg): Likewise.
10848 (emit_link_insn): Likewise.
10849 (do_link): Likewise.
10850 (expand_interrupt_handler_prologue): Likewise.
10851 (branch_dest): Likewise for param "branch".
10852 (asm_conditional_branch): Likewise for param "insn".
10853 (gen_one_bundle): Likewise for elements of param "slot" and local
10855 (bfin_gen_bundles): Likewise for locals "insn", "next" and
10856 elements of local "slot".
10857 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10858 "queue", "next_queue", "prev".
10859 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
10860 (add_sched_insns_for_speculation): Likewise for local "insn".
10862 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10864 * config/avr/avr-protos.h (output_movqi): Strengthen first param
10865 from rtx to rtx_insn *.
10866 (output_movhi): Likewise.
10867 (output_movsisf): Likewise.
10868 (avr_out_tstsi): Likewise.
10869 (avr_out_tsthi): Likewise.
10870 (avr_out_tstpsi): Likewise.
10871 (avr_out_compare): Likewise.
10872 (avr_out_compare64): Likewise.
10873 (avr_out_movpsi): Likewise.
10874 (ashlqi3_out): Likewise.
10875 (ashlhi3_out): Likewise.
10876 (ashlsi3_out): Likewise.
10877 (ashrqi3_out): Likewise.
10878 (ashrhi3_out): Likewise.
10879 (ashrsi3_out): Likewise.
10880 (lshrqi3_out): Likewise.
10881 (lshrhi3_out): Likewise.
10882 (lshrsi3_out): Likewise.
10883 (avr_out_ashlpsi3): Likewise.
10884 (avr_out_ashrpsi3): Likewise.
10885 (avr_out_lshrpsi3): Likewise.
10886 (avr_out_fract): Likewise.
10887 (avr_out_sbxx_branch): Likewise.
10888 (avr_out_round): Likewise.
10889 (avr_out_xload): Likewise.
10890 (avr_out_movmem): Likewise.
10891 (adjust_insn_length): Likewise.
10892 (avr_out_lpm): Likewise.
10893 (reg_unused_after): Likewise.
10894 (_reg_unused_after): Likewise.
10895 (avr_jump_mode): Likewise for second param.
10896 (jump_over_one_insn): Likewise for first param.
10897 (avr_final_prescan_insn): Likewise.
10898 (out_shift_with_cnt): Likewise for second param.
10900 * config/avr/avr.c (get_sequence_length): Likewise for param
10901 "insns" and local "insn".
10902 (emit_push_byte): Likewise for local "insn".
10903 (emit_push_sfr): Likewise.
10904 (avr_prologue_setup_frame): Likewise for locals "insn",
10905 "fp_plus_insns", "sp_plus_insns".
10906 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
10908 (avr_jump_mode): Likewise for param "insn".
10909 (avr_final_prescan_insn): Likewise.
10910 (avr_find_unused_d_reg): Likewise.
10911 (avr_out_lpm_no_lpmx): Likewise.
10912 (avr_out_lpm): Likewise.
10913 (avr_out_xload): Likewise.
10914 (output_movqi): Likewise.
10915 (output_movhi): Likewise.
10916 (out_movqi_r_mr): Likewise.
10917 (out_movhi_r_mr): Likewise.
10918 (out_movsi_r_mr): Likewise.
10919 (out_movsi_mr_r): Likewise.
10920 (output_movsisf): Likewise.
10921 (avr_out_load_psi): Likewise.
10922 (avr_out_store_psi): Likewise.
10923 (avr_out_movpsi): Likewise.
10924 (out_movqi_mr_r): Likewise.
10925 (avr_out_movhi_mr_r_xmega): Likewise.
10926 (out_movhi_mr_r): Likewise.
10927 (compare_condition): Likewise for param "insn" and local "next".
10928 (compare_sign_p): Likewise for param "insn".
10929 (compare_diff_p): Likewise.
10930 (compare_eq_p): Likewise.
10931 (avr_out_compare): Likewise.
10932 (avr_out_compare64): Likewise.
10933 (avr_out_tsthi): Likewise.
10934 (avr_out_tstpsi): Likewise.
10935 (avr_out_tstsi): Likewise.
10936 (out_shift_with_cnt): Likewise.
10937 (ashlqi3_out): Likewise.
10938 (ashlhi3_out): Likewise.
10939 (avr_out_ashlpsi3): Likewise.
10940 (ashlsi3_out): Likewise.
10941 (ashrqi3_out): Likewise.
10942 (ashrhi3_out): Likewise.
10943 (avr_out_ashrpsi3): Likewise.
10944 (ashrsi3_out): Likewise.
10945 (lshrqi3_out): Likewise.
10946 (lshrhi3_out): Likewise.
10947 (avr_out_lshrpsi3): Likewise.
10948 (lshrsi3_out): Likewise.
10949 (avr_out_fract): Likewise.
10950 (avr_out_round): Likewise.
10951 (avr_adjust_insn_length): Likewise.
10952 (reg_unused_after): Likewise.
10953 (_reg_unused_after): Likewise.
10954 (avr_compare_pattern): Likewise.
10955 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
10956 and locals "branch1", "branch2", "insn2", "jump".
10957 (avr_reorg): Likewise for local "insn".
10958 (avr_2word_insn_p): Likewise for param "insn".
10959 (jump_over_one_insn_p): Likewise.
10960 (avr_out_sbxx_branch): Likewise.
10961 (avr_out_movmem): Likewise.
10963 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10965 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
10966 param from rtx to rtx_insn *.
10967 (thumb1_final_prescan_insn): Likewise.
10968 (thumb2_final_prescan_insn): Likewise.
10970 * config/arm/arm.c (emit_set_insn): Strengthen return type from
10972 (struct minipool_node): Likewise for field "insn".
10973 (dump_minipool): Likewise for param "scan".
10974 (create_fix_barrier): Likewise for local "from". Strengthen local
10975 "label" from rtx to rtx_code_label *.
10976 (push_minipool_barrier): Strengthen param "insn" from rtx to
10978 (push_minipool_fix): Likewise.
10979 (note_invalid_constants): Likewise.
10980 (thumb2_reorg): Likewise for local "insn".
10981 (arm_reorg): Likewise.
10982 (thumb2_final_prescan_insn): Likewise for param
10983 "insn" and local "first_insn".
10984 (arm_final_prescan_insn): Likewise for param "insn" and locals
10985 "start_insn", "this_insn".
10986 (arm_debugger_arg_offset): Likewise for param "insn".
10987 (thumb1_emit_multi_reg_push): Likewise for return type and local
10989 (thumb1_final_prescan_insn): Likewise for param "insn".
10990 (thumb_far_jump_used_p): Likewise for local "insn".
10991 (thumb1_expand_prologue): Likewise.
10992 (arm_expand_epilogue_apcs_frame): Likewise.
10993 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
10994 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
10995 from rtx to rtx_code_label *.
10996 (arm_split_atomic_op): Likewise for local "label".
10997 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
10999 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11001 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11002 first param from rtx to rtx_insn *.
11003 (arc_verify_short): Likewise.
11004 (arc_short_long): Likewise.
11005 (arc_need_delay): Likewise.
11007 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11009 (arc_ccfsm_advance): Likewise for param "insn" and locals
11010 "start_insn", "this_insn".
11011 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11012 (arc_ccfsm_post_advance): Likewise for param "insn".
11013 (arc_next_active_insn): Likewise for return type and param "insn".
11014 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11015 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11016 (output_short_suffix): Likewise for local "insn".
11017 (arc_final_prescan_insn): Likewise for param "insn". Remove
11018 now-redundant checked cast.
11019 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11020 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11021 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11022 for use where lc_set became an insn.
11023 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11025 (arc_get_insn_variants): Likewise for local "prev".
11026 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11028 (arc_predicate_delay_insns): Likewise for local "insn".
11029 (arc_pad_return): Likewise for local "prev". For now, add a
11030 checked cast when extracting the insn from "final_sequence".
11031 (arc_short_long): Likewise for param "insn".
11032 (arc_need_delay): Likewise for param "insn" and local "next".
11033 (arc_label_align): Likewise for locals "prev", "next".
11035 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11037 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11038 "insn" from rtx to rtx_insn *.
11039 (alpha_gp_save_rtx): Likewise for local "seq".
11040 (alpha_instantiate_decls): Likewise for local "top".
11041 (get_some_local_dynamic_name): Likewise for local "insn".
11042 (alpha_does_function_need_gp): Likewise.
11043 (set_frame_related_p): Likewise for return type and for locals
11045 (emit_frame_store_1): Likewise for local "insn".
11046 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11047 (alpha_end_function): Likewise for local "insn".
11048 (alpha_output_mi_thunk_osf): Likewise.
11049 (alphaev4_insn_pipe): Likewise for param "insn".
11050 (alphaev5_insn_pipe): Likewise.
11051 (alphaev4_next_group): Likewise for return type and param 1
11053 (alphaev5_next_group): Likewise.
11054 (alpha_align_insns_1): Likewise for return type and param 1 of
11055 callback param "next_group", and for locals "i", "next", "prev",
11056 "where", "where2", "insn".
11058 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11060 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11061 rather than modifying the stmt.
11063 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11065 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11066 cgraph_state conversion.
11068 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11070 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11071 Strengthen local "insns" from rtx to rtx_insn *.
11072 (aarch64_set_frame_expr): Likewise for local "insn".
11073 (aarch64_save_or_restore_fprs): Likewise.
11074 (aarch64_save_or_restore_callee_save_registers): Likewise.
11075 (aarch64_expand_prologue): Likewise.
11076 (aarch64_expand_epilogue): Likewise.
11077 (aarch64_output_mi_thunk): Likewise.
11078 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11079 "label2" from rtx to rtx_code_label *.
11080 (aarch64_split_atomic_op): Likewise for local "label".
11082 2014-08-25 Martin Liska <mliska@suse.cz>
11084 * cgraph.h (symtab_node):
11085 (bool needed_p (void)): created from decide_is_symbol_needed
11086 (bool referred_to_p (void)): created from referred_to_p
11087 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11088 * cgraph.h (cgraph_node):
11089 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11090 (void expand (void)): created from expand_function
11091 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11092 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11093 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11094 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11095 * cgraph.h (varpool_node):
11096 (static void add (tree decl): created from varpool_add_new_variable
11097 * cgraph.h (cgraph_edge):
11098 void remove (void);
11099 (void remove_caller (void)): created from cgraph_edge_remove_caller
11100 (void remove_callee (void)): created from cgraph_edge_remove_callee
11101 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11102 created from cgraph_set_call_stmt
11103 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11104 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11105 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11106 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11107 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11108 created from cgraph_speculative_call_info
11109 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11110 int freq_scale, bool update_original)): created from cgraph_clone_edge
11111 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11112 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11113 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11114 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11115 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11116 (static void rebuild_references (void)): created from cgraph_rebuild_references
11117 * cgraph.h (symbol_table):
11118 (create_reference): renamed from add_reference
11119 (maybe_create_reference): renamed from maybe_add_reference
11120 (void register_symbol (symtab_node *node)): new function
11121 (void clear_asm_symbols (void)): new function
11122 (void unregister (symtab_node *node)): new function
11123 (void release_symbol (cgraph_node *node, int uid)): new function
11124 (cgraph_node * allocate_cgraph_symbol (void)): new function
11125 (void initialize (void)): created from cgraph_init
11126 (symtab_node *first_symbol (void)):new function
11127 (asm_node *first_asm_symbol (void)):new function
11128 (symtab_node *first_defined_symbol (void)):new function
11129 (varpool_node *first_variable (void)):new function
11130 (varpool_node *next_variable (varpool_node *node)):new function
11131 (varpool_node *first_static_initializer (void)):new function
11132 (varpool_node *next_static_initializer (varpool_node *node)):new function
11133 (varpool_node *first_defined_variable (void)):new function
11134 (varpool_node *next_defined_variable (varpool_node *node)):new function
11135 (cgraph_node *first_defined_function (void)):new function
11136 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11137 (cgraph_node *first_function (void)):new function
11138 (cgraph_node *next_function (cgraph_node *node)):new function
11139 (cgraph_node *first_function_with_gimple_body (void)):new function
11140 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11141 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11142 created from symtab_remove_unreachable_nodes
11143 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11144 (void process_new_functions (void)): created from cgraph_process_new_functions
11145 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11146 (bool output_variables (void)): created from varpool_node::output_variables
11147 (void output_asm_statements (void)): created from output_asm_statements
11148 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11149 (void compile (void)): created from compile
11150 (void output_weakrefs (void)): created from output_weakrefs
11151 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11152 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11153 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11154 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11155 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11156 created from cgraph_next_function_with_gimple_body
11157 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11158 created from cgraph_remove_edge_removal_hook
11159 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11160 created from cgraph_add_node_removal_hook
11161 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11162 created from cgraph_remove_node_removal_hook
11163 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11164 created from varpool_add_node_removal_hook
11165 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11166 created from varpool_remove_node_removal_hook
11167 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11168 created from cgraph_add_function_insertion_hook
11169 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11170 created from cgraph_remove_function_insertion_hook
11171 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11172 created from varpool_add_variable_insertion_hook
11173 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11174 created from varpool_remove_variable_insertion_hook
11175 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11176 created from cgraph_add_edge_duplication_hook
11177 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11178 created from cgraph_remove_edge_duplication_hook
11179 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11180 created from cgraph_add_node_duplication_hook
11181 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11182 created from cgraph_remove_node_duplication_hook
11183 (void call_edge_removal_hooks (cgraph_edge *e)):
11184 created from cgraph_call_edge_removal_hooks
11185 (void call_cgraph_insertion_hooks (cgraph_node *node)):
11186 created from call_function_insertion_hooks
11187 (void call_cgraph_removal_hooks (cgraph_node *node)):
11188 created from cgraph_call_node_removal_hooks
11189 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11190 created from cgraph_node::call_duplication_hooks
11191 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11192 created from cgraph_call_edge_duplication_hooks
11193 (void call_varpool_removal_hooks (varpool_node *node)):
11194 created from varpool_call_node_removal_hooks
11195 (void call_varpool_insertion_hooks (varpool_node *node)):
11196 created from varpool_call_variable_insertion_hooks
11197 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11198 created from insert_to_assembler_name_hash
11199 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11200 created from unlink_from_assembler_name_hash
11201 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11202 created from symtab_prevail_in_asm_name_hash
11203 (void symtab_initialize_asm_name_hash (void)):
11204 created from symtab_initialize_asm_name_hash
11205 (void change_decl_assembler_name (tree decl, tree name)):
11206 created from change_decl_assembler_name
11207 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11208 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11209 created from decl_assembler_name_hash
11210 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11211 created from decl_assembler_name_equal
11212 (static hashval_t hash_node_by_assembler_name (const void *p)):
11213 created from hash_node_by_assembler_name
11214 (static int eq_assembler_name (const void *p1, const void *p2)):
11215 created from eq_assembler_name
11217 2014-08-25 Marek Polacek <polacek@redhat.com>
11219 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11221 2014-08-25 Petr Murzin <petr.murzin@intel.com>
11223 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11224 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11225 SWI1248_AVX512BW mode iterator.
11227 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
11230 * config/sh/predicates.md (general_extend_operand): Disable
11231 TRUNCATE before reload completes.
11233 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
11235 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11237 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
11240 * config/sh/sh.opt (musermode): Allow negative form.
11241 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11242 targets that don't support it.
11243 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11244 Document -mno-usermode option.
11246 2014-08-24 Kito Cheng <kito@0xlab.org>
11248 * system.h (CALLER_SAVE_PROFITABLE): Poison.
11249 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11250 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11251 * doc/tm.texi: Regenerate.
11253 2014-08-24 Kito Cheng <kito@0xlab.org>
11255 * ira.c: Fix typo in comment.
11257 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
11259 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11260 Deprecate c++1y. Change language to reflect greater confidence in C++14.
11262 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
11265 * config/pa/pa.c (pa_output_function_epilogue): Don't set
11266 last_address when the current function is a thunk.
11267 (pa_asm_output_mi_thunk): When we don't have named sections or they
11268 are not being used, check that thunk can reach the stub table with a
11271 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11273 * web.c (union_match_dups): Strengthen param "insn" from rtx to
11275 (pass_web::execute): Likewise for local "insn".
11277 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11279 * var-tracking.c (struct micro_operation_def): Strengthen field
11280 "insn" from rtx to rtx_insn *.
11281 (struct emit_note_data_def): Likewise.
11282 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11283 (vt_stack_adjustments): Likewise for local "insn".
11284 (adjust_insn): Likewise for param "insn".
11285 (val_store): Likewise.
11286 (val_resolve): Likewise.
11287 (struct count_use_info): Likewise for field "insn".
11288 (log_op_type): Likewise for param "insn".
11289 (reverse_op): Likewise.
11290 (prepare_call_arguments): Likewise.
11291 (add_with_sets): The initial param takes an insn, but we can't
11292 yet strengthen it from rtx to rtx_insn * since it's used as a
11293 cselib_record_sets_hook callback. For now rename initial param
11294 from "insn" to "uncast_insn", and introduce a local "insn" of
11295 the stronger rtx_insn * type, with a checked cast.
11296 (compute_bb_dataflow): Strengthen local "insn" from rtx to
11298 (emit_note_insn_var_location): Likewise.
11299 (emit_notes_for_changes): Likewise.
11300 (emit_notes_for_differences): Likewise.
11301 (next_non_note_insn_var_location): Likewise for return type and
11303 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11304 (vt_initialize): Likewise for local "insn".
11305 (delete_debug_insns): Likewise for locals "insn" and "next".
11307 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11309 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11311 (mark_constant_pool): Likewise for local "insn".
11313 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11315 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11317 (dead_debug_promote_uses): Likewise.
11318 (dead_debug_insert_temp): Likewise.
11320 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11322 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11323 from const_rtx to const rtx_insn *.
11324 (store_killed_after): Likewise. Strengthen locals "last", "act"
11325 from rtx to rtx_insn *.
11326 (store_killed_before): Strengthen param "insn" from const_rtx to
11327 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
11328 (find_moveable_store): Strengthen param "insn" from rtx to
11330 (compute_store_table): Likewise for local "insn".
11331 (insert_insn_start_basic_block): Likewise for param "insn" and
11332 locals "prev", "before", "insn".
11333 (insert_store): For now, add a checked cast to rtx_insn * on the
11334 result of gen_move_insn.
11335 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11337 (replace_store_insn): Likewise. For now, add a checked cast to
11338 rtx_insn * on the result of gen_move_insn.
11340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11342 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11344 (expand_sjlj_dispatch_table): Likewise.
11346 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11348 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11349 "insn" from rtx to rtx_insn *.
11351 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11353 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11354 "insn" from rtx to rtx_insn *.
11355 (dup_block_and_redirect): Likewise for param 3 "before".
11357 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11358 from rtx to rtx_insn *.
11359 (move_insn_for_shrink_wrap): Likewise.
11360 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11361 (dup_block_and_redirect): Likewise for param "before" and local
11363 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11365 (convert_to_simple_return): Likewise for local "start".
11367 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11368 Strengthen local "insn" from rtx to rtx_insn *, for use when
11369 invoking requires_stack_frame_p.
11371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11373 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11375 (speculate_expr): Likewise for locals "orig_insn_rtx",
11377 (eq_transformed_insns): Likewise for locals "i1", "i2".
11378 (check_for_new_jump): Likewise for return type and local "end".
11379 (find_new_jump): Likewise for return type and local "jump".
11380 (sel_split_edge): Likewise for local "jump".
11381 (sel_create_recovery_block): Likewise.
11382 (sel_redirect_edge_and_branch_force): Likewise.
11383 (sel_redirect_edge_and_branch): Likewise.
11385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11387 * sel-sched.c (substitute_reg_in_expr): Strengthen local
11388 "new_insn" from rtx to rtx_insn *.
11389 (create_insn_rtx_with_rhs): Likewise for return type and for local
11391 (create_insn_rtx_with_lhs): Likewise.
11392 (create_speculation_check): Likewise for local "insn_rtx".
11393 (implicit_clobber_conflict_p): Likewise for local "insn".
11394 (get_expr_cost): Likewise.
11395 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11396 (move_cond_jump): Likewise for locals "next", "prev", "link",
11397 "head", "from", "to".
11399 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11401 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11402 "next" from rtx to rtx_insn *.
11403 (find_conditional_protection): Likewise for local "next".
11404 (is_conditionally_protected): Likewise for local "insn1".
11405 (is_pfree): Likewise for locals "insn1", "insn2".
11407 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11409 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11410 from rtx to rtx_insn *.
11412 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11413 locals "insn1", "insn2" from rtx to rtx_insn *.
11414 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11415 locals "insn", "prev", "last_jump", "next_tail".
11416 (schedule_ebb): Likewise for params "head", "tail".
11417 (schedule_ebbs): Likewise for locals "tail", "head".
11419 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11420 to rtx_insn on "last_insn" in one of the invocations of
11423 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11425 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11426 "elem", "insn" from rtx to rtx_insn *.
11427 (change_spec_dep_to_hard): Likewise.
11428 (get_back_and_forw_lists): Likewise for local "con".
11429 (sd_add_dep): Likewise for locals "elem", "insn".
11430 (sd_resolve_dep): Likewise for locals "pro", "con".
11431 (sd_unresolve_dep): Likewise.
11432 (sd_delete_dep): Likewise.
11433 (chain_to_prev_insn): Likewise for local "pro".
11434 (find_inc): Likewise for locals "pro", "con".
11436 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11438 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11440 (reg_set_between_p): Strengthen local "insn" from const_rtx to
11442 (modified_between_p): Strengthen local "insn" from rtx to
11444 (remove_reg_equal_equiv_notes_for_regno): Likewise.
11445 (keep_with_call_p): Strengthen local "i2" from const_rtx to
11448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11450 * resource.c (next_insn_no_annul): Strengthen local "next" from
11452 (mark_referenced_resources): Likewise for local "insn".
11454 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11456 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
11458 (find_reloads): Likewise for param 1.
11459 (subst_reloads): Likewise for sole param.
11460 (find_equiv_reg): Likwise for param 2.
11461 (regno_clobbered_p): Likwise for param 2.
11462 (reload): Likewise for param 1.
11464 * caller-save.c (save_call_clobbered_regs): Strengthen local
11465 "insn" from rtx to rtx_insn *.
11466 (insert_one_insn): Likewise for local "insn".
11468 * reload.c (this_insn): Likewise for this global.
11469 (find_reloads): Likewise for param "insn".
11470 (find_reloads_toplev): Likewise.
11471 (find_reloads_address): Likewise.
11472 (subst_reg_equivs): Likewise.
11473 (update_auto_inc_notes): Likewise.
11474 (find_reloads_address_1): Likewise.
11475 (find_reloads_subreg_address): Likewise.
11476 (subst_reloads): Likewise.
11477 (find_equiv_reg): Likewise, also for local "p".
11478 (regno_clobbered_p): Likewise for param "insn".
11480 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
11482 (spill_reg_store): Likewise for the elements of this array.
11483 (remove_init_insns): Likewise for local "equiv_insn".
11484 (will_delete_init_insn_p): Likewise for param "insn".
11485 (reload): Likewise for param ""first" and local "insn".
11486 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
11488 (calculate_elim_costs_all_insns): Likewise.
11489 (delete_caller_save_insns): Likewise.
11490 (spill_failure): Likewise for param "insn".
11491 (delete_dead_insn): Likewise.
11492 (set_label_offsets): Likewise.
11493 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
11495 (elimination_costs_in_insn): Likewise for param "insn".
11496 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
11497 when referring to an insn.
11498 (set_initial_label_offsets): Likewise.
11499 (set_offsets_for_label): Strengthen param "insn" from rtx to
11501 (init_eliminable_invariants): Likewise for param "first" and local
11503 (fixup_eh_region_note): Likewise for param "insn".
11504 (reload_as_needed): Likewise for locals "prev", "insn",
11505 "old_next", "old_prev", "next".
11506 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
11508 (reload_inheritance_insn): Strengthen elements of this array from
11510 (failed_reload): Likewise for param "insn".
11511 (choose_reload_regs): Likewise for local "insn". Replace use of
11512 NULL_RTX with NULL when referring to an insn.
11513 (input_reload_insns): Strengthen elements of this array from rtx
11515 (other_input_address_reload_insns): Likewise for this global.
11516 (other_input_reload_insns): Likewise for this global.
11517 (input_address_reload_insns): Likwise for the elements of this
11519 (inpaddr_address_reload_insns): Likwise for the elements of this
11521 (output_reload_insns): Likewise for the elements of this array.
11522 (output_address_reload_insns): Likewise for the elements of this
11524 (outaddr_address_reload_insns): Likewise for the elements of this
11526 (operand_reload_insns): Likewise for this global.
11527 (other_operand_reload_insns): Likewise for this global.
11528 (other_output_reload_insns): Likewise for the elements of this
11530 (new_spill_reg_store): Likewise for the elements of this
11532 (emit_input_reload_insns): Likewise for locals "insn", "temp".
11533 Strengthen local "where" from rtx * to rtx_insn **.
11534 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
11535 from rtx to rtx_insn *.
11536 (do_input_reload): Likewise for local "insn".
11537 (do_output_reload): Likewise for local "insn".
11538 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
11539 (emit_insn_if_valid_for_reload): Likewise for return type and local
11540 "last". Add checked cast to rtx_insn when returning "insn" since
11541 this has been through emit_insn.
11542 (gen_reload): Strengthen return type and locals "last", "insn", "set"
11543 from rtx to rtx_insn *. Add checked cast to rtx_insn when
11544 returning "insn" since it's been through
11545 emit_insn_if_valid_for_reload at this point.
11546 (delete_output_reload): Strengthen param "insn" and locals
11547 "output_reload_insn", "i2" from rtx to rtx_insn *.
11548 (delete_address_reloads): Likewise for params "dead_insn",
11549 "current_insn" and locals "prev", "next".
11550 (delete_address_reloads_1): Likewise for params "dead_insn",
11551 "current_insn" and locals "prev", "i2".
11552 (inc_for_reload): Likewise for locals "last", "add_insn".
11553 (add_auto_inc_notes): Strengthen param "insn" from rtx to
11556 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
11557 param of this duplicate of the prototype from reload.h
11559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11561 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
11563 (regstat_bb_compute_calls_crossed): Likewise.
11565 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11567 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
11569 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
11571 (regrename_analyze): Strengthen local "insn" from rtx to
11573 (scan_rtx_reg): Likewise for param "insn".
11574 (scan_rtx_address): Likewise.
11575 (scan_rtx): Likewise.
11576 (restore_operands): Likewise.
11577 (record_out_operands): Likewise.
11578 (build_def_use): Likewise for local "insn". Replace use of
11579 NULL_RTX with NULL when dealing with an insn.
11581 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11583 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
11584 * reginfo.c (reg_scan): Likewise, also for local "insn".
11585 (reg_scan_mark_refs): Likewise for param "insn".
11586 (init_subregs_of_mode): Likewise for local "insn".
11588 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11590 * regcprop.c (struct queued_debug_insn_change): Strengthen field
11591 "insn" from rtx to rtx_insn *.
11592 (replace_oldest_value_reg): Likewise for param "insn".
11593 (replace_oldest_value_addr): Likewise.
11594 (replace_oldest_value_mem): Likewise.
11595 (apply_debug_insn_changes): Likewise for local "last_insn".
11596 (copyprop_hardreg_forward_1): Likewise for local "insn".
11598 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11600 * reg-stack.c (next_flags_user): Strengthen return type and param
11601 "insn" from rtx to rtx_insn *.
11602 (straighten_stack): Likewise for param "insn".
11603 (check_asm_stack_operands): Likewise.
11604 (remove_regno_note): Likewise.
11605 (emit_pop_insn): Likewise for return type, param "insn", local
11607 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
11608 "limit" from rtx to rtx_insn *.
11609 (swap_to_top): Likewise for param "insn".
11610 (move_for_stack_reg): Likewise.
11611 (move_nan_for_stack_reg): Likewise.
11612 (swap_rtx_condition): Likewise.
11613 (compare_for_stack_reg): Likewise.
11614 (subst_all_stack_regs_in_debug_insn): Likewise.
11615 (subst_stack_regs_pat): Likewise, and local "insn2".
11616 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
11618 (subst_stack_regs): Likewise.
11619 (change_stack): Likewise.
11620 (convert_regs_1): Likewise for locals "insn", "next".
11622 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11624 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
11626 (combine_set_extension): Likewise for param "curr_insn".
11627 (transform_ifelse): Likewise for param "def_insn".
11628 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
11629 from vec<rtx> * to vec<rtx_insn *> *.
11630 (is_cond_copy_insn): Likewise for param "insn".
11631 (struct ext_state): Strengthen the four vec fields from vec<rtx>
11632 to vec<rtx_insn *>.
11633 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
11634 local "def_insn" from rtx to rtx_insn *.
11635 (get_sub_rtx): Likewise for param "def_insn".
11636 (merge_def_and_ext): Likewise.
11637 (combine_reaching_defs): Likewise.
11638 (add_removable_extension): Likewise for param "insn".
11639 (find_removable_extensions): Likewise for local "insn".
11640 (find_and_remove_re): Likewise for locals "curr_insn" and
11641 "def_insn". Strengthen locals "reinsn_del_list" and
11642 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
11644 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11646 * recog.c (split_insn): Strengthen param "insn" and locals
11647 "first", "last" from rtx to rtx_insn *.
11648 (split_all_insns): Likewise for locals "insn", "next".
11649 (split_all_insns_noflow): Likewise.
11651 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11653 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
11655 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
11656 (debug_rtx_find): Likewise for param 1 "x".
11658 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
11659 const_rtx to const rtx_insn *. Likewise for local "insn".
11660 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
11661 (debug_rtx_find): Likewise for param 1 "x".
11662 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
11663 from const_rtx to const rtx_insn * within the appropriate cases of
11664 the switch statement.
11666 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
11667 Strengthen local "insns" from rtx to rtx_insn * since this is
11668 passed to a call to debug_rtx_list.
11670 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11672 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
11675 * function.c (stack_protect_epilogue): Add checked cast to
11676 rtx_insn for now when invoking predict_insn_def.
11678 * predict.c (predict_insn): Strengthen param "insn" from rtx to
11680 (predict_insn_def): Likewise.
11681 (rtl_predict_edge): Likewise for local "last_insn".
11682 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
11684 (combine_predictions_for_insn): Strengthen param "insn" from rtx
11686 (bb_estimate_probability_locally): Likewise for local "last_insn".
11687 (expensive_function_p): Likewise for local "insn".
11689 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
11690 local "jmp", since this is used when invoking predict_insn_def.
11692 2014-08-22 Marek Polacek <polacek@redhat.com>
11695 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
11697 2014-08-22 Marek Polacek <polacek@redhat.com>
11700 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
11701 a comparison in parens.
11702 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
11705 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11707 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
11710 * cprop.c (fis_get_condition): Likewise.
11712 * postreload.c (reload_cse_regs): Likewise for param "first".
11713 (reload_cse_simplify): Likewise for param "insn".
11714 (reload_cse_regs_1): Likewise for local "insn".
11715 (reload_cse_simplify_set): Likewise for param "insn".
11716 (reload_cse_simplify_operands): Likewise.
11717 (struct reg_use): Likewise for field "insn".
11718 (reload_combine_purge_insn_uses): Likewise for param "insn".
11719 (fixup_debug_insns): Likewise for params "from", "to" and local
11721 (try_replace_in_use): Likewise for local "use_insn".
11722 (reload_combine_recognize_const_pattern): Likewise for param
11723 "insn" and locals "add_moved_after_insn", "use_insn".
11724 (reload_combine_recognize_pattern): Likewise for param "insn" and
11726 (reload_combine): Likewise for locals "insn", "prev".
11727 (reload_combine_note_use): Likewise for param "insn".
11728 (move2add_use_add2_insn): Likewise.
11729 (move2add_use_add3_insn): Likewise.
11730 (reload_cse_move2add): Likewise, also for local "next".
11731 (move2add_note_store): Likewise for local "insn".
11733 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11735 * postreload-gcse.c (struct occr): Strengthen field "insn" from
11737 (struct unoccr): Likewise.
11738 (struct modifies_mem): Likewise.
11739 (alloc_mem): Likewise for local "insn".
11740 (insert_expr_in_table): Likewise for param "insn".
11741 (dump_expr_hash_table_entry): Likewise for local "insn".
11742 (oprs_unchanged_p): Likewise for param "insn".
11743 (load_killed_in_block_p): Likewise for local "setter".
11744 (record_last_reg_set_info): Likewise for param "insn".
11745 (record_last_reg_set_info_regno): Likewise.
11746 (record_last_mem_set_info): Likewise.
11747 (record_last_set_info): Likewise for local "last_set_insn".
11748 (record_opr_changes): Likewise for param "insn".
11749 (hash_scan_set): Likewise.
11750 (compute_hash_table): Likewise for local "insn".
11751 (get_avail_load_store_reg): Likewise for param "insn".
11752 (eliminate_partially_redundant_load): Likewise, also for locals
11753 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
11755 (eliminate_partially_redundant_loads): Likewise for local "insn".
11757 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11759 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
11761 (expand_binop): Likewise for locals "entry_last", "last", "insns"
11762 (expand_twoval_unop): Likewise for locals entry_last", "last".
11763 (expand_twoval_binop): Likewise.
11764 (expand_twoval_binop_libfunc): Likewise for local "insns".
11765 (widen_leading): Likewise for local "last".
11766 (expand_doubleword_clz): Likewise for local "seq". Strengthen
11767 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
11768 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
11769 (expand_parity): Likewise for locals "last" and "seq".
11770 (expand_ffs): Likewise for local "seq". Strengthen local
11771 "nonzero_label" from rtx to rtx_code_label *.
11772 (expand_absneg_bit): Strengthen local "insns" from rtx to
11774 (expand_unop_direct): Likewise for local "last".
11775 (expand_unop): Likewise for locals "last", "insns".
11776 (expand_abs_nojump): Likewise for local "last".
11777 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
11778 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
11780 (expand_copysign_absneg): Strengthen local "label" from rtx to
11782 (expand_copysign_bit): Strengthen local "insns" from rtx to
11784 (struct no_conflict_data): Likewise for fields "first", "insn".
11785 (emit_libcall_block_1): Likewise for param "insns" and locals
11786 "next", "last", "insn".
11787 (emit_libcall_block): For now, add a checked cast to rtx_insn *
11788 on "insns" when invoking emit_libcall_block_1. Ultimately we
11789 want to strengthen insns itself.
11790 (prepare_cmp_insn): Strengthen local "last" from rtx to
11792 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
11793 (prepare_float_lib_cmp): Likewise for local "insns".
11794 (emit_conditional_move): Likewise for local "last".
11795 (emit_conditional_add): Likewise.
11796 (have_sub2_insn): Likewise for local "seq".
11797 (expand_float): Likewise for local "insns". Strengthen locals
11798 "label", "neglabel" from rtx to rtx_code_label *.
11799 (expand_fix): Likewise for locals "last", "insn", "insns" (to
11800 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
11801 (expand_fixed_convert): Likewise for local "insns" (to
11803 (expand_sfix_optab): Likewise for local "last".
11804 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
11805 to rtx_code_label *.
11806 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
11807 from rtx to rtx_insn *.
11808 (expand_atomic_fetch_op): Likewise for local "insn".
11809 (maybe_legitimize_operand_same_code): Likewise for local "last".
11810 (maybe_legitimize_operands): Likewise.
11812 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11814 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
11815 "insn" from rtx to rtx_insn *.
11816 (ps_rtl_insn): Likewise for return type.
11817 (doloop_register_get): Likewise for params "head", "tail" and
11818 locals "insn", "first_insn_not_to_check".
11819 (schedule_reg_move): Likewise for local "this_insn".
11820 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
11821 of gen_move_insn for now.
11822 (reset_sched_times): Strengthen local "insn" from rtx to
11824 (permute_partial_schedule): Likewise.
11825 (duplicate_insns_of_cycles): Likewise for local "u_insn".
11826 (dump_insn_location): Likewise for param "insn".
11827 (loop_canon_p): Likewise for local "insn".
11828 (sms_schedule): Likewise.
11829 (print_partial_schedule): Likewise.
11830 (ps_has_conflicts): Likewise.
11832 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11834 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
11835 "tailp" from rtx * to rtx_insn **.
11837 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
11838 from rtx to rtx_insn *.
11839 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
11840 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
11841 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
11843 * modulo-sched.c (const_iteration_count): Strengthen return type
11844 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
11845 use of NULL_RTX with NULL when working with insns.
11846 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
11848 (sms_schedule): Likewise.
11849 * sched-rgn.c (init_ready_list): Likewise, also for locals
11850 "src_head" and "src_next_tail".
11851 (compute_block_dependences): Likewise.
11852 (free_block_dependencies): Likewise.
11853 (debug_rgn_dependencies): Likewise.
11854 (free_rgn_deps): Likewise.
11855 (compute_priorities): Likewise.
11856 (schedule_region): Likewise.
11857 * sel-sched.c (find_ebb_boundaries): Likewise.
11859 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
11860 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
11862 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11864 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
11865 from rtx to rtx_insn *.
11866 (new_seginfo): Likewise for param "insn".
11867 (create_pre_exit): Likewise for locals "last_insn",
11868 "before_return_copy", "return_copy".
11869 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
11872 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11874 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
11875 from rtx to rtx_insn *.
11876 (lra_push_insn): Likewise for 1st param.
11877 (lra_push_insn_and_update_insn_regno_info): Likewise.
11878 (lra_pop_insn): Likewise for return type.
11879 (lra_invalidate_insn_data): Likewise for 1st param.
11880 (lra_set_insn_deleted): Likewise.
11881 (lra_delete_dead_insn): Likewise.
11882 (lra_process_new_insns): Likewise for first 3 params.
11883 (lra_set_insn_recog_data): Likewise for 1st param.
11884 (lra_update_insn_recog_data): Likewise.
11885 (lra_set_used_insn_alternative): Likewise.
11886 (lra_invalidate_insn_regno_info): Likewise.
11887 (lra_update_insn_regno_info): Likewise.
11888 (lra_former_scratch_operand_p): Likewise.
11889 (lra_eliminate_regs_1): Likewise.
11890 (lra_get_insn_recog_data): Likewise.
11892 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
11895 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
11897 (substitute_within_insn): New.
11898 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
11899 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
11900 Replace call to "substitute" with call to substitute_within_insn.
11902 * lra-constraints.c (curr_insn): Strengthen from rtx to
11904 (get_equiv_with_elimination): Likewise for param "insn".
11905 (match_reload): Strengthen params "before" and "after" from rtx *
11907 (emit_spill_move): Likewise for return type. Add a checked cast
11908 to rtx_insn * on result of gen_move_insn for now.
11909 (check_and_process_move): Likewise for local "before". Replace
11910 NULL_RTX with NULL when referring to insns.
11911 (process_addr_reg): Strengthen params "before" and "after" from
11912 rtx * to rtx_insn **.
11913 (insert_move_for_subreg): Likewise.
11914 (simplify_operand_subreg): Strengthen locals "before" and "after"
11915 from rtx to rtx_insn *.
11916 (process_address_1): Strengthen params "before" and "after" from
11917 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
11919 (process_address): Strengthen params "before" and "after" from
11920 rtx * to rtx_insn **.
11921 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
11922 (curr_insn_transform): Strengthen locals "before" and "after"
11923 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
11925 (loc_equivalence_callback): Update cast of "data", changing
11926 resulting type from rtx to rtx_insn *.
11927 (substitute_pseudo_within_insn): New.
11928 (inherit_reload_reg): Strengthen param "insn" from rtx to
11929 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
11930 NULL when referring to insns. Add a checked cast to rtx_insn *
11931 when using usage_insn to invoke lra_update_insn_regno_info.
11932 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
11933 likewise for locals "restore", "save". Add checked casts to
11934 rtx_insn * when using usage_insn to invoke
11935 lra_update_insn_regno_info and lra_process_new_insns. Replace
11936 NULL_RTX with NULL when referring to insns.
11937 (split_if_necessary): Strengthen param "insn" from rtx to
11939 (update_ebb_live_info): Likewise for params "head", "tail" and local
11941 (get_last_insertion_point): Likewise for return type and local "insn".
11942 (get_live_on_other_edges): Likewise for local "last".
11943 (inherit_in_ebb): Likewise for params "head", "tail" and locals
11944 "prev_insn", "next_insn", "restore".
11945 (remove_inheritance_pseudos): Likewise for local "prev_insn".
11946 (undo_optional_reloads): Likewise for local "insn".
11948 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
11950 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
11952 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
11954 (spill_pseudos): Likewise for local "insn".
11955 (init_elimination): Likewise.
11956 (process_insn_for_elimination): Likewise for param "insn".
11958 * lra-lives.c (curr_insn): Likewise.;
11960 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
11961 (remove_pseudos): Likewise for param "insn".
11962 (spill_pseudos): Likewise for local "insn".
11963 (lra_final_code_change): Likewise for locals "insn", "curr".
11965 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
11966 (lra_set_insn_deleted): Likewise.
11967 (lra_delete_dead_insn): Likewise, and for local "prev".
11968 (new_insn_reg): Likewise for param "insn".
11969 (lra_set_insn_recog_data): Likewise.
11970 (lra_update_insn_recog_data): Likewise.
11971 (lra_set_used_insn_alternative): Likewise.
11972 (get_insn_freq): Likewise.
11973 (invalidate_insn_data_regno_info): Likewise.
11974 (lra_invalidate_insn_regno_info): Likewise.
11975 (lra_update_insn_regno_info): Likewise.
11976 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
11978 (lra_push_insn_1): Strengthen param "insn" from rtx to
11980 (lra_push_insn): Likewise.
11981 (lra_push_insn_and_update_insn_regno_info): Likewise.
11982 (lra_pop_insn): Likewise for return type and local "insn".
11983 (push_insns): Likewise for params "from", "to", and local "insn".
11984 (setup_sp_offset): Likewise for params "from", "last" and locals
11986 (lra_process_new_insns): Likewise for params "insn", "before",
11987 "after" and local "last".
11988 (struct sloc): Likewise for field "insn".
11989 (lra_former_scratch_operand_p): Likewise for param "insn".
11990 (remove_scratches): Likewise for locals "insn", "last".
11991 (check_rtl): Likewise for local "insn".
11992 (add_auto_inc_notes): Likewise for param "insn".
11993 (update_inc_notes): Likewise for local "insn".
11994 (lra): Replace NULL_RTX with NULL when referring to insn.
11996 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11998 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12000 (resolve_reg_notes): Likewise.
12001 (resolve_simple_move): Likewise for return type, param "insn", and
12002 locals "insns", "minsn".
12003 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12004 (resolve_use): Likewise.
12005 (resolve_debug): Likewise.
12006 (find_decomposable_shift_zext): Likewise.
12007 (resolve_shift_zext): Likewise for return type, param "insn", and
12008 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12009 (decompose_multiword_subregs): Likewise for local "insn",
12010 "orig_insn", "decomposed_shift", "end".
12012 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12014 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12015 param "insns" from rtx to rtx_insn *.
12017 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12019 (struct iv_to_split): Likewise.
12020 (loop_exit_at_end_p): Likewise for local "insn".
12021 (split_edge_and_insert): Likewise for param "insns".
12022 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12023 and locals "seq", "jump".
12024 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12025 "branch_code"; update invocations of compare_and_jump_seq to
12026 eliminate NULL_RTX in favor of NULL.
12027 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12029 (reset_debug_uses_in_loop): Likewise.
12030 (analyze_insn_to_expand_var): Likewise for param "insn".
12031 (analyze_iv_to_split_insn): Likewise.
12032 (analyze_insns_in_loop): Likewise for local "insn".
12033 (insert_base_initialization): Likewise for param
12034 "insn" and local "seq".
12035 (split_iv): Likewise for param "insn" and local "seq".
12036 (expand_var_during_unrolling): Likewise for param "insn".
12037 (insert_var_expansion_initialization): Likewise for local "seq".
12038 (combine_var_copies_in_loop_exit): Likewise.
12039 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12041 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12042 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12047 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12049 (iv_analyze_result): Likewise.
12050 (iv_analyze_expr): Likewise.
12053 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12054 local "def_insn" from rtx to rtx_insn *.
12055 (get_biv_step_1): Likewise for local "insn".
12056 (iv_analyze_expr): Likewise for param "insn".
12057 (iv_analyze_def): Likewise for local "insn".
12058 (iv_analyze_op): Likewise for param "insn".
12059 (iv_analyze): Likewise.
12060 (iv_analyze_result): Likewise.
12062 (suitable_set_for_replacement): Likewise.
12063 (simplify_using_initial_values): Likewise for local "insn".
12064 (iv_number_of_iterations): Likewise for param "insn".
12065 (check_simple_exit): Add checked cast to rtx_insn when invoking
12066 iv_number_of_iterations for now (until get_condition is
12069 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12070 "insn" from rtx to rtx_insn *.
12071 (analyze_insns_in_loop): Likewise for local "insn".
12073 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12075 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12077 (struct invariant): Likewise.
12078 (hash_invariant_expr_1): Likewise for param "insn".
12079 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12080 (find_exits): Likewise for local "insn".
12081 (create_new_invariant): Likewise for param "insn".
12082 (check_dependencies): Likewise.
12083 (find_invariant_insn): Likewise.
12084 (record_uses): Likewise.
12085 (find_invariants_insn): Likewise.
12086 (find_invariants_bb): Likewise for local "insn".
12087 (get_pressure_class_and_nregs): Likewise for param "insn".
12088 (calculate_loop_reg_pressure): Likewise for local "insn".
12090 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12092 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12094 (add_test): Likewise for locals "seq", "jump".
12095 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12097 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12099 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12101 (rebuild_jump_labels_chain): Likewise for param "chain".
12103 * cfgexpand.c (pass_expand::execute): Add checked cast to
12104 rtx_insn * when calling rebuild_jump_labels_chain in region where
12105 we know e->insns.r is non-NULL.
12107 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12109 (rebuild_jump_labels): Likewise.
12110 (rebuild_jump_labels_chain): Likewise for param "chain".
12111 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12112 (init_label_info): Likewise for param "f".
12113 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12114 "prev_nonjump_insn".
12115 (mark_all_labels): Likewise for param "f" and locals "insn",
12116 "prev_nonjump_insn".
12118 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12120 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12121 from rtx to rtx_insn *insn.
12122 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12123 (ira_add_allocno_copy): Likewise.
12124 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12126 (ira_create_copy): Likewise.
12127 (ira_add_allocno_copy): Likewise.
12128 (create_bb_allocnos): Likewise for local "insn".
12129 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12130 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12131 process_regs_for_copy for rtx_insn * param.
12132 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12133 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12134 process_regs_for_copy for rtx_insn * param.
12135 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12136 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12137 (record_operand_costs): Likewise.
12138 (scan_one_insn): Likewise for return type, and for param "insn".
12139 (process_bb_for_costs): Likewise for local "insn".
12140 (process_bb_node_for_hard_reg_moves): Likewise.
12141 * ira-emit.c (struct move): Likewise for field "insn".
12142 (create_move): Eliminate use of NULL_RTX when dealing with an
12144 (emit_move_list): Strengthen return type and locals "result",
12145 "insn" from rtx to rtx_insn *insn.
12146 (emit_moves): Likewise for locals "insns", "tmp".
12147 (ira_emit): Likewise for local "insn".
12148 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12150 (find_call_crossed_cheap_reg): Likewise.
12151 (process_bb_node_lives): Likewise for local "insn".
12152 * ira.c (decrease_live_ranges_number): Likewise.
12153 (compute_regs_asm_clobbered): Likewise.
12154 (build_insn_chain): Likewise.
12155 (find_moveable_pseudos): Likewise, also locals "def_insn",
12156 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
12157 to rtx_insn **. Add a checked cast when assigning from
12158 "closest_use" into closest_uses array in a region where we know
12159 it's a non-NULL insn.
12160 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12162 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12163 "last_interesting_insn", "uin".
12164 (move_unallocated_pseudos): Likewise for locals "def_insn",
12165 "move_insn", "newinsn".
12167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12169 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12170 Strengthen locals "done_label", "do_error" from rtx to
12172 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12173 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
12175 (ubsan_expand_si_overflow_neg_check): Likewise for locals
12176 "done_label", "do_error" to rtx_code_label * and local "last" to
12178 (ubsan_expand_si_overflow_mul_check): Likewise for locals
12179 "done_label", "do_error", "large_op0", "small_op0_large_op1",
12180 "one_small_one_large", "both_ops_large", "after_hipart_neg",
12181 "after_lopart_neg", "do_overflow", "hipart_different" to
12182 rtx_code_label * and local "last" to rtx_insn *.
12184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12186 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12187 "insn" and "move_insn" from rtx to rtx_insn *.
12189 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12191 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12193 (cheap_bb_rtx_cost_p): Likewise.
12194 (first_active_insn): Likewise for return type and local "insn".
12195 (last_active_insn): Likewise for return type and locals "insn",
12197 (struct noce_if_info): Likewise for fields "jump", "insn_a",
12199 (end_ifcvt_sequence): Likewise for return type and locals "insn",
12201 (noce_try_move): Likewise for local "seq".
12202 (noce_try_store_flag): Likewise.
12203 (noce_try_store_flag_constants): Likewise.
12204 (noce_try_addcc): Likewise.
12205 (noce_try_store_flag_mask): Likewise.
12206 (noce_try_cmove): Likewise.
12207 (noce_try_minmax): Likewise.
12208 (noce_try_abs): Likewise.
12209 (noce_try_sign_mask): Likewise.
12210 (noce_try_bitop): Likewise.
12211 (noce_can_store_speculate_p): Likewise for local "insn".
12212 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12214 (check_cond_move_block): Likewise for local "insn".
12215 (cond_move_convert_if_block): Likewise.
12216 (cond_move_process_if_block): Likewise for locals "seq",
12218 (noce_find_if_block): Likewise for local "jump".
12219 (merge_if_block): Likewise for local "last".
12220 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12221 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12222 (block_has_only_trap): Likewise for return type and local "trap".
12223 (find_if_case_1): Likewise for local "jump".
12224 (dead_or_predicable): Likewise for locals "head", "end", "jump",
12227 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12229 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12230 "last_insn", "loop_end" from rtx to rtx_insn *.
12232 * hw-doloop.c (scan_loop): Likewise for local "insn".
12233 (discover_loop): Likewise for param "tail_insn".
12234 (discover_loops): Likewise for local "tail".
12236 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12237 cast to rtx_insn * when assigning from an rtx local to a
12238 hwloop_info's "last_insn" field.
12240 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12242 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12243 (add_delay_dependencies): Strengthen local "pro" from rtx to
12245 (recompute_todo_spec): Likewise.
12246 (dep_cost_1): Likewise for locals "insn", "used".
12247 (schedule_insn): Likewise for local "dbg".
12248 (schedule_insn): Likewise for locals "pro", "next".
12249 (unschedule_insns_until): Likewise for local "con".
12250 (restore_pattern): Likewise for local "next".
12251 (estimate_insn_tick): Likewise for local "pro".
12252 (resolve_dependencies): Likewise for local "next".
12253 (fix_inter_tick): Likewise.
12254 (fix_tick_ready): Likewise for local "pro".
12255 (add_to_speculative_block): Likewise for locals "check", "twin",
12257 (sched_extend_bb): Likewise for locals "end", "insn".
12258 (init_before_recovery): Likewise for local "x".
12259 (sched_create_recovery_block): Likewise for local "barrier".
12260 (create_check_block_twin): Likewise for local "pro".
12261 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12263 (unlink_bb_notes): Update for change to type of bb_header.
12264 Strengthen locals "prev", "label", "note", "next" from rtx to
12266 (clear_priorities): Likewise for local "pro".
12268 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12270 * gcse.c (struct occr): Strengthen field "insn" from rtx to
12272 (test_insn): Likewise for this global.
12273 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12275 (oprs_anticipatable_p): Likewise.
12276 (oprs_available_p): Likewise.
12277 (insert_expr_in_table): Strengthen param "insn" from rtx to
12279 (hash_scan_set): Likewise.
12280 (hash_scan_clobber): Likewise.
12281 (hash_scan_call): Likewise.
12282 (hash_scan_insn): Likewise.
12283 (compute_hash_table_work): Likewise for local "insn".
12284 (process_insert_insn): Likewise for return type and local "pat".
12285 (insert_insn_end_basic_block): Likewise for locals "new_insn",
12286 "pat", "pat_end", "maybe_cc0_setter".
12287 (pre_edge_insert): Likewise for local "insn".
12288 (pre_insert_copy_insn): Likewise for param "insn".
12289 (pre_insert_copies): Likewise for local "insn".
12290 (struct set_data): Likewise for field "insn".
12291 (single_set_gcse): Likewise for param "insn".
12292 (gcse_emit_move_after): Likewise.
12293 (pre_delete): Likewise for local "insn".
12294 (update_bb_reg_pressure): Likewise for param "from" and local
12296 (should_hoist_expr_to_dom): Likewise for param "from".
12297 (hoist_code): Likewise for local "insn".
12298 (get_pressure_class_and_nregs): Likewise for param "insn".
12299 (calculate_bb_reg_pressure): Likewise for local "insn".
12300 (compute_ld_motion_mems): Likewise.
12302 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12304 * genpeep.c (main): Rename param back from "uncast_ins1" to
12305 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
12308 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12310 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12313 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12314 documentation to state it is only for VSX operations.
12316 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12317 constraint only active if VSX.
12319 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12320 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12321 (lfiwzx): Likewise.
12323 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12325 * fwprop.c (single_def_use_dom_walker::before_dom_children):
12326 Strengthen local "insn" from rtx to rtx_insn *.
12327 (use_killed_between): Likewise for param "target_insn".
12328 (all_uses_available_at): Likewise for param "target_insn" and
12330 (update_df_init): Likewise for params "def_insn", "insn".
12331 (update_df): Likewise for param "insn".
12332 (try_fwprop_subst): Likewise for param "def_insn" and local
12334 (free_load_extend): Likewise for param "insn".
12335 (forward_propagate_subreg): Likewise for param "def_insn" and
12337 (forward_propagate_asm): Likewise for param "def_insn" and local
12339 (forward_propagate_and_simplify): Likewise for param "def_insn"
12340 and local "use_insn".
12341 (forward_propagate_into): Likewise for locals "def_insn" and
12344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12346 * function.c (emit_initial_value_sets): Strengthen local "seq"
12347 from rtx to rtx_insn *.
12348 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12350 (instantiate_virtual_regs): Likewise for local "insn".
12351 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12352 (reorder_blocks_1): Likewise for param "insns" and local "insn".
12353 (expand_function_end): Likewise for locals "insn" and "seq".
12354 (epilogue_done): Likewise for local "insn".
12355 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12357 (reposition_prologue_and_epilogue_notes): Likewise for locals
12358 "insn", "last", "note", "first".
12359 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12360 (pass_match_asm_constraints::execute): Likewise for local "insn".
12362 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12364 * output.h (final_scan_insn): Strengthen return type from rtx to
12366 (final_forward_branch_p): Likewise for param.
12367 (current_output_insn): Likewise for this global.
12369 * final.c (rtx debug_insn): Likewise for this variable.
12370 (current_output_insn): Likewise.
12371 (get_attr_length_1): Rename param "insn" to "uncast_insn",
12372 adding "insn" back in as an rtx_insn * with a checked cast, so
12373 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12375 (compute_alignments): Strengthen local "label" from rtx to
12377 (shorten_branches): Rename param from "first" to "uncast_first",
12378 introducing a new local rtx_insn * "first" using a checked cast to
12379 effectively strengthen "first" from rtx to rtx_insn * without
12380 affecting the type signature. Strengthen locals "insn", "seq",
12381 "next", "label" from rtx to rtx_insn *.
12382 (change_scope): Strengthen param "orig_insn" and local "insn" from
12384 (final_start_function): Rename param from "first" to "uncast_first",
12385 introducing a new local rtx_insn * "first" using a checked cast to
12386 effectively strengthen "first" from rtx to rtx_insn * without
12387 affecting the type signature. Strengthen local "insn" from rtx to
12389 (dump_basic_block_info): Strengthen param "insn" from rtx to
12391 (final): Rename param from "first" to "uncast_first",
12392 introducing a new local rtx_insn * "first" using a checked cast to
12393 effectively strengthen "first" from rtx to rtx_insn * without
12394 affecting the type signature. Strengthen locals "insn", "next"
12395 from rtx to rtx_insn *.
12396 (output_alternate_entry_point): Strengthen param "insn" from rtx to
12398 (call_from_call_insn): Strengthen param "insn" from rtx to
12400 (final_scan_insn): Rename param from "insn" to "uncast_insn",
12401 introducing a new local rtx_insn * "insn" using a checked cast to
12402 effectively strengthen "insn" from rtx to rtx_insn * without
12403 affecting the type signature. Strengthen return type and locals
12404 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
12405 now-redundant checked cast to rtx_insn * from both invocations of
12406 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
12407 introducing a local "call_insn" for use when invoking
12408 call_from_call_insn.
12409 (notice_source_line): Strengthen param "insn" from rtx to
12411 (leaf_function_p): Likewise for local "insn".
12412 (final_forward_branch_p): Likewise.
12413 (leaf_renumber_regs): Likewise for param "first".
12414 (rest_of_clean_state): Likewise for locals "insn" and "next".
12415 (self_recursive_call_p): Likewise for param "insn".
12416 (collect_fn_hard_reg_usage): Likewise for local "insn".
12417 (get_call_fndecl): Likewise for param "insn".
12418 (get_call_cgraph_rtl_info): Likewise.
12419 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12420 introducing a new local rtx_insn * "insn" using a checked cast to
12421 effectively strengthen "insn" from rtx to rtx_insn * without
12422 affecting the type signature.
12424 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12425 cast when assigning from param "insn" to current_output_insn.
12426 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12427 so that we can assign it back to current_output_insn.
12429 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12431 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12432 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12433 atmxt540s and atmxt540sreva devices.
12434 * config/avr/avr-tables.opt: Regenerate.
12435 * config/avr/t-multilib: Regenerate.
12436 * doc/avr-mmcu.texi: Regenerate.
12438 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12440 * expr.c (convert_move): Strengthen local "insns" from rtx to
12442 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
12443 "top_label" from rtx to rtx_code_label *.
12444 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
12446 (emit_single_push_insn): Likewise for locals "prev", "last".
12447 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
12448 to rtx_code_label *.
12449 (store_constructor): Likewise for locals "loop_start", "loop_end".
12450 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
12452 (expand_expr_real_2): Likewise.
12453 (expand_expr_real_1): Strengthen local "label" from rtx to
12456 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12458 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
12459 from rtx to rtx_insn *.
12460 (store_bit_field_1): Likewise.
12461 (extract_bit_field_1): Likewise.
12462 (expand_mult_const): Likewise for local "insns".
12463 (expmed_mult_highpart): Strengthen local "label" from rtx to
12465 (expand_smod_pow2): Likewise.
12466 (expand_sdiv_pow2): Likewise.
12467 (expand_divmod): Strengthen locals "last", "insn" from rtx to
12468 rtx_insn *. Strengthen locals "label", "label1", "label2",
12469 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
12470 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
12471 (emit_store_flag): Likewise.
12472 (emit_store_flag_force): Strengthen local "label" from rtx to
12474 (do_cmp_and_jump): Likewise for param "label".
12476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12478 * explow.c (force_reg): Strengthen local "insn" from rtx to
12480 (adjust_stack_1): Likewise.
12481 (allocate_dynamic_stack_space): Likewise. Strengthen locals
12482 "final_label", "available_label", "space_available" from rtx to
12484 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
12485 (anti_adjust_stack_and_probe): Likewise.
12487 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12489 * except.h (sjlj_emit_function_exit_after): Strengthen param
12490 "after" from rtx to rtx_insn *. This is only called with
12491 result of get_last_insn (in function.c) so type-change should be
12494 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
12495 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
12496 to rtx_insn *. These fields are only used from except.c so this
12497 type-change should be self-contained to this patch.
12499 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
12500 local "last" from rtx to rtx_insn *.
12501 (dw2_build_landing_pads): Likewise for local "seq".
12502 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
12503 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
12504 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
12506 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
12508 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
12509 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
12510 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
12511 referring to an insn. Strengthen local "dispatch_label" from
12512 rtx to rtx_code_label *.
12513 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
12515 (expand_eh_return): Strengthen local "around_label" from
12516 rtx to rtx_code_label *.
12517 (convert_to_eh_region_ranges): Strengthen locals "iter",
12518 "last_action_insn", "first_no_action_insn",
12519 "first_no_action_insn_before_switch",
12520 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
12522 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12524 * dwarf2out.c (last_var_location_insn): Strengthen this variable
12525 from rtx to rtx_insn *.
12526 (cached_next_real_insn): Likewise.
12527 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
12528 working with insns.
12529 (dwarf2out_var_location): Strengthen locals "next_real",
12530 "next_note", "expected_next_loc_note", "last_start", "insn" from
12533 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12535 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
12536 from rtx to rtx_insn *.
12537 (create_pseudo_cfg): Likewise for local "insn".
12539 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12541 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
12542 from rtx to rtx_insn *.
12543 (df_bb_regno_last_def_find): Likewise.
12545 * df-problems.c (df_rd_bb_local_compute): Likewise.
12546 (df_lr_bb_local_compute): Likewise.
12547 (df_live_bb_local_compute): Likewise.
12548 (df_chain_remove_problem): Likewise.
12549 (df_chain_create_bb): Likewise.
12550 (df_word_lr_bb_local_compute): Likewise.
12551 (df_remove_dead_eq_notes): Likewise for param "insn".
12552 (df_note_bb_compute): Likewise for local "insn".
12553 (simulate_backwards_to_point): Likewise.
12554 (df_md_bb_local_compute): Likewise.
12556 * df-scan.c (df_scan_free_bb_info): Likewise.
12557 (df_scan_start_dump): Likewise.
12558 (df_scan_start_block): Likewise.
12559 (df_install_ref_incremental): Likewise for local "insn".
12560 (df_insn_rescan_all): Likewise.
12561 (df_reorganize_refs_by_reg_by_insn): Likewise.
12562 (df_reorganize_refs_by_insn_bb): Likewise.
12563 (df_recompute_luids): Likewise.
12564 (df_bb_refs_record): Likewise.
12565 (df_update_entry_exit_and_calls): Likewise.
12566 (df_bb_verify): Likewise.
12568 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12570 * ddg.h (struct ddg_node): Strengthen fields "insn" and
12571 "first_note" from rtx to rtx_insn *.
12572 (get_node_of_insn): Likewise for param 2 "insn".
12573 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12575 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
12577 (mem_write_insn_p): Likewise.
12578 (mem_access_insn_p): Likewise.
12579 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12580 (def_has_ccmode_p): Likewise for param "insn".
12581 (add_cross_iteration_register_deps): Likewise for locals
12582 "def_insn" and "use_insn".
12583 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
12584 (build_intra_loop_deps): Likewise for local "src_insn".
12585 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
12587 (get_node_of_insn): Likewise for param "insn".
12589 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12591 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
12592 (deletable_insn_p): Strengthen param "insn" from rtx to
12593 rtx_insn *. Add checked cast to rtx_call_insn when invoking
12594 find_call_stack_args, since this is guarded by CALL_P (insn).
12595 (marked_insn_p): Strengthen param "insn" from rtx to
12597 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
12598 invoking find_call_stack_args, since this is guarded by
12600 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
12601 rtx_insn *; we know this is an insn since this was called by
12602 mark_nonreg_stores.
12603 (mark_nonreg_stores_2): Likewise.
12604 (mark_nonreg_stores): Strengthen param "insn" from rtx to
12606 (find_call_stack_args): Strengthen param "call_insn" from rtx to
12607 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
12609 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
12610 from rtx to rtx_insn *.
12611 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
12612 "next", "ref_insn".
12613 (delete_unmarked_insns): Likewise for locals "insn", "next".
12614 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
12615 (mark_reg_dependencies): Likewise for param "insn".
12616 (rest_of_handle_ud_dce): Likewise for local "insn".
12617 (word_dce_process_block): Likewise.
12618 (dce_process_block): Likewise.
12620 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12622 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
12623 from rtx to rtx_insn *.
12624 (struct change_cc_mode_args): Likewise for field "insn".
12625 (this_insn): Strengthen from rtx to rtx_insn *.
12626 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
12628 (validate_canon_reg): Strengthen param "insn" from rtx to
12630 (canon_reg): Likewise.
12631 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
12633 (record_jump_equiv): Strengthen param "insn" from rtx to
12635 (try_back_substitute_reg): Likewise, also for locals "prev",
12637 (find_sets_in_insn): Likewise for param "insn".
12638 (canonicalize_insn): Likewise.
12639 (cse_insn): Likewise. Add a checked cast.
12640 (invalidate_from_clobbers): Likewise for param "insn".
12641 (invalidate_from_sets_and_clobbers): Likewise.
12642 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
12644 (cse_prescan_path): Strengthen local "insn" from rtx to
12646 (cse_extended_basic_block): Likewise for locals "insn" and
12648 (cse_main): Likewise for param "f".
12649 (check_for_label_ref): Likewise for local "insn".
12650 (set_live_p): Likewise for second param ("insn").
12651 (insn_live_p): Likewise for first param ("insn") and for local
12653 (cse_change_cc_mode_insn): Likewise for first param "insn".
12654 (cse_change_cc_mode_insns): Likewise for first and second params
12656 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
12658 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
12661 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
12662 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12663 Anna Tikhonova <anna.tikhonova@intel.com>
12664 Ilya Tocar <ilya.tocar@intel.com>
12665 Andrey Turetskiy <andrey.turetskiy@intel.com>
12666 Ilya Verbin <ilya.verbin@intel.com>
12667 Kirill Yukhin <kirill.yukhin@intel.com>
12668 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12670 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
12672 * config/i386/sse.md
12673 (define_mode_iterator VI248_AVX2): Delete.
12674 (define_mode_iterator VI2_AVX2_AVX512BW): New.
12675 (define_mode_iterator VI48_AVX2): Ditto.
12676 (define_insn <shift_insn><mode>3): Delete.
12677 (define_insn "<shift_insn><mode>3<mask_name>" with
12678 VI2_AVX2_AVX512BW): New.
12679 (define_insn "<shift_insn><mode>3<mask_name>" with
12682 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
12683 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12684 Anna Tikhonova <anna.tikhonova@intel.com>
12685 Ilya Tocar <ilya.tocar@intel.com>
12686 Andrey Turetskiy <andrey.turetskiy@intel.com>
12687 Ilya Verbin <ilya.verbin@intel.com>
12688 Kirill Yukhin <kirill.yukhin@intel.com>
12689 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12691 * config/i386/sse.md
12692 (define_mode_iterator VI4F_BRCST32x2): New.
12693 (define_mode_attr 64x2_mode): Ditto.
12694 (define_mode_attr 32x2mode): Ditto.
12695 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
12696 with VI4F_BRCST32x2): Ditto.
12697 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
12698 with V16FI mode iterator): Ditto.
12699 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
12700 with V16FI): Ditto.
12701 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
12702 with VI8F_BRCST64x2): Ditto.
12704 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
12705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12706 Anna Tikhonova <anna.tikhonova@intel.com>
12707 Ilya Tocar <ilya.tocar@intel.com>
12708 Andrey Turetskiy <andrey.turetskiy@intel.com>
12709 Ilya Verbin <ilya.verbin@intel.com>
12710 Kirill Yukhin <kirill.yukhin@intel.com>
12711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12713 * config/i386/sse.md
12714 (define_mode_iterator VI8_AVX512VL): New.
12715 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
12717 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
12719 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
12720 (define_mode_iterator V48_AVX512VL): New.
12721 (define_mode_iterator V12_AVX512VL): Ditto.
12722 (define_insn <avx512>_load<mode>_mask): Split into two similar
12723 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
12724 Refactor output template.
12725 (define_insn "<avx512>_store<mode>_mask"): Ditto.
12727 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12729 * cprop.c (struct occr): Strengthen field "insn" from rtx to
12731 (reg_available_p): Likewise for param "insn".
12732 (insert_set_in_table): Likewise.
12733 (hash_scan_set): Likewise.
12734 (hash_scan_insn): Likewise.
12735 (make_set_regs_unavailable): Likewise.
12736 (compute_hash_table_work): Likewise for local "insn".
12737 (reg_not_set_p): Strengthen param "insn" from const_rtx to
12739 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
12740 (try_replace_reg): Likewise.
12741 (find_avail_set): Likewise.
12742 (cprop_jump): Likewise for params "setcc", "jump".
12743 (constprop_register): Likewise for param "insn".
12744 (cprop_insn): Likewise.
12745 (do_local_cprop): Likewise.
12746 (local_cprop_pass): Likewise for local "insn".
12747 (bypass_block): Likewise for params "setcc" and "jump".
12748 (bypass_conditional_jumps): Likewise for locals "setcc" and
12750 (one_cprop_pass): Likewise for local "insn".
12752 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12754 * compare-elim.c (struct comparison_use): Strengthen field "insn"
12755 from rtx to rtx_insn *.
12756 (struct comparison): Likewise, also for field "prev_clobber".
12757 (conforming_compare): Likewise for param "insn".
12758 (arithmetic_flags_clobber_p): Likewise.
12759 (find_flags_uses_in_insn): Likewise.
12760 (find_comparison_dom_walker::before_dom_children): Likewise for
12761 locals "insn", "next", "last_clobber".
12762 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
12764 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12766 * combine-stack-adj.c (struct csa_reflist): Strengthen field
12767 "insn" from rtx to rtx_insn *.
12768 (single_set_for_csa): Likewise for param "insn".
12769 (record_one_stack_ref): Likewise.
12770 (try_apply_stack_adjustment): Likewise.
12771 (struct record_stack_refs_data): Likewise for field "insn".
12772 (maybe_move_args_size_note): Likewise for params "last" and "insn".
12773 (prev_active_insn_bb): Likewise for return type and param "insn".
12774 (next_active_insn_bb): Likewise.
12775 (force_move_args_size_note): Likewise for params "prev" and "last"
12776 and locals "test", "next_candidate", "prev_candidate".
12777 (combine_stack_adjustments_for_block): Strengthen locals
12778 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
12781 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12783 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
12784 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
12785 (subst_insn): Likewise for this variable.
12786 (added_links_insn): Likewise.
12787 (struct insn_link): Likewise for field "insn".
12788 (alloc_insn_link): Likewise for param "insn".
12789 (struct undobuf): Likewise for field "other_insn".
12790 (find_single_use): Likewise for param "insn" and local "next".
12791 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
12792 (delete_noop_moves): Likewise for locals "insn", "next".
12793 (create_log_links): Likewise for locals "insn", "use_insn".
12794 Strengthen local "next_use" from rtx * to rtx_insn **.
12795 (insn_a_feeds_b): Likewise for params "a", "b".
12796 (combine_instructions): Likewise for param "f" and locals "insn",
12797 "next", "prev", "first", "last_combined_insn", "link", "link1",
12798 "temp". Replace use of NULL_RTX with NULL when referring to
12800 (setup_incoming_promotions): Likewise for param "first"
12801 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
12802 (can_combine_p): Likewise for params "insn", "i3", "pred",
12803 "pred2", "succ", "succ2" and for local "p".
12804 (combinable_i3pat): Likewise for param "i3".
12805 (cant_combine_insn_p): Likewise for param "insn".
12806 (likely_spilled_retval_p): Likewise.
12807 (adjust_for_new_dest): Likewise.
12808 (update_cfg_for_uncondjump): Likewise, also for local "insn".
12809 (try_combine): Likewise for return type and for params "i3", "i2",
12810 "i1", "i0", "last_combined_insn", and for locals "insn",
12811 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
12812 "i0_insn". Eliminate local "tem" in favor of new locals
12813 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
12814 checked cast for now to rtx_insn * on the return type of
12815 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
12817 (find_split_point): Strengthen param "insn" from rtx to
12819 (simplify_set): Likewise for local "other_insn".
12820 (recog_for_combine): Likewise for param "insn".
12821 (record_value_for_reg): Likewise.
12822 (record_dead_and_set_regs_1): Likewise for local
12823 "record_dead_insn".
12824 (record_dead_and_set_regs): Likewise for param "insn".
12825 (record_promoted_value): Likewise.
12826 (check_promoted_subreg): Likewise.
12827 (get_last_value_validate): Likewise.
12828 (reg_dead_at_p): Likewise.
12829 (move_deaths): Likewise for param "to_insn".
12830 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
12831 and locals "place", "place2", "cc0_setter". Eliminate local "tem
12832 in favor of new locals "tem_note" and "tem_insn", the latter being
12834 (distribute_links): Strengthen locals "place", "insn" from rtx to
12837 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12839 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
12841 (can_delete_label_p): Require a const rtx_code_label * rather than
12843 (delete_insn): Add checked cast to rtx_code_label * when we know
12844 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
12846 (delete_insn_chain): Strengthen locals "prev" and "current" from
12847 rtx to rtx_insn *. Add a checked cast when assigning from
12848 "finish" (strengthening the params will come later). Add a
12849 checked cast to rtx_note * in region where we know
12851 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
12853 (compute_bb_for_insn): Likewise.
12854 (free_bb_for_insn): Likewise for local "insn".
12855 (compute_bb_for_insn): Likewise.
12856 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
12857 local "insn" from rtx to rtx_insn *
12858 (flow_active_insn_p): Require a const rtx_insn * rather than a
12860 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
12862 (can_fallthru): Likewise for locals "insn" and "insn2".
12863 (bb_note): Likewise for local "note".
12864 (first_insn_after_basic_block_note): Likewise for local "note" and
12866 (rtl_split_block): Likewise for locals "insn" and "next".
12867 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
12869 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
12870 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
12872 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
12873 them), "kill_from", "barrier", "new_insn".
12874 (patch_jump_insn): Likewise for params "insn", "old_label".
12875 (redirect_branch_edge): Likewise for locals "old_label", "insn".
12876 (force_nonfallthru_and_redirect): Likewise for locals "insn",
12877 "old_label", "new_label".
12878 (rtl_tidy_fallthru_edge): Likewise for local "q".
12879 (rtl_split_edge): Likewise for locals "before", "last".
12880 (commit_one_edge_insertion): Likewise for locals "before",
12881 "after", "insns", "tmp", "last", adding a checked cast where
12882 currently necessary.
12883 (commit_edge_insertions): Likewise.
12884 (rtl_dump_bb): Likewise for locals "insn", "last".
12885 (print_rtl_with_bb): Likewise for local "x".
12886 (rtl_verify_bb_insns): Likewise for local "x".
12887 (rtl_verify_bb_pointers): Likewise for local "insn".
12888 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
12890 (rtl_verify_fallthru): Likewise for local "insn".
12891 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
12892 (purge_dead_edges): Likewise for local "insn".
12893 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
12894 (skip_insns_after_block): Likewise for return type and for locals
12895 "insn", "last_insn", "next_head", "prev".
12896 (record_effective_endpoints): Likewise for locals "next_insn",
12898 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
12899 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
12900 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
12901 (duplicate_insn_chain): For now, add checked cast from rtx to
12902 rtx_insn * when returning insn.
12903 (cfg_layout_duplicate_bb): Likewise for local "insn".
12904 (cfg_layout_delete_block): Likewise for locals "insn", "next",
12905 "prev", "remaints".
12906 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
12907 (rtl_block_empty_p): Likewise.
12908 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
12909 "split_point", "last".
12910 (rtl_block_ends_with_call_p): Likewise for local "insn".
12911 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
12913 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
12914 "split_at_insn" from rtx to rtx_insn *.
12915 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
12916 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
12917 to const rtx_insn *.
12918 (rtl_account_profile_record): Likewise.
12920 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12922 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
12924 (average_num_loop_insns): Likewise.
12925 (init_set_costs): Likewise for local "seq".
12926 (seq_cost): Likewise for param "seq", from const_rtx to const
12929 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12931 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
12934 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12936 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
12937 "f1" and "f2" from rtx * to rtx_insn **.
12938 (flow_find_head_matching_sequence): Likewise.
12940 * cfgcleanup.c (try_simplify_condjump): Strengthen local
12941 "cbranch_insn" from rtx to rtx_insn *.
12942 (thread_jump): Likewise for local "insn".
12943 (try_forward_edges): Likewise for local "last".
12944 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
12945 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
12947 (can_replace_by): Likewise for params "i1", "i2".
12948 (old_insns_match_p): Likewise.
12949 (merge_notes): Likewise.
12950 (walk_to_nondebug_insn): Likewise for param "i1".
12951 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
12952 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
12953 "afterlast1", "afterlast2" from rtx to rtx_insn *.
12954 (flow_find_head_matching_sequence): Strengthen params "f1" and
12955 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
12956 "last1", "last2", "beforelast1", "beforelast2" from rtx to
12958 (outgoing_edges_match): Likewise for locals "last1", "last2".
12959 (try_crossjump_to_edge): Likewise for local "insn".
12960 Replace call to for_each_rtx with for_each_rtx_in_insn.
12962 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
12963 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
12964 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
12965 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
12966 (try_optimize_cfg): Strengthen local "last" from rtx to
12968 (delete_dead_jumptables): Likewise for locals "insn", "next",
12971 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
12972 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
12973 "rtx else_first_tail", to reflect the basic-block.h changes above.
12975 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12977 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
12979 (purge_dead_tablejump_edges): Likewise.
12980 (find_bb_boundaries): Likewise for locals "insn", "end",
12981 "flow_transfer_insn".
12983 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12985 * caller-save.c (save_call_clobbered_regs): Strengthen locals
12986 "ins" and "prev" from rtx to rtx_insn *.
12988 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12990 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
12992 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
12993 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
12995 (load_register_parameters): Likewise for local "before_arg".
12996 (check_sibcall_argument_overlap): Likewise for param "insn".
12997 (expand_call): Likewise for locals "normal_call_insns",
12998 "tail_call_insns", "insns", "before_call", "after_args",
12999 "before_arg", "last", "prev". Strengthen one of the "last" from
13000 rtx to rtx_call_insn *.
13001 (fixup_tail_calls): Strengthen local "insn" from rtx to
13003 (emit_library_call_value_1): Likewise for locals "before_call" and
13006 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13008 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13009 and "last" from rtx to rtx_insn *.
13010 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13011 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13013 (expand_errno_check): Strengthen local "lab" from rtx to
13015 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13017 (expand_builtin_mathfn_2): Likewise.
13018 (expand_builtin_mathfn_ternary): Likewise.
13019 (expand_builtin_mathfn_3): Likewise.
13020 (expand_builtin_interclass_mathfn): Likewise for local "last".
13021 (expand_builtin_int_roundingfn): Likewise for local "insns".
13022 (expand_builtin_int_roundingfn_2): Likewise.
13023 (expand_builtin_strlen): Likewise for local "before_strlen".
13024 (expand_builtin_strncmp): Likewise for local "seq".
13025 (expand_builtin_signbit): Likewise for local "last".
13026 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13027 from rtx to rtx_code_label *.
13028 (expand_stack_restore): Strengthen local "prev" from rtx to
13031 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13033 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13035 (struct btr_def_s): Likewise.
13036 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13038 (add_btr_def): Likewise.
13039 (new_btr_user): Likewise.
13040 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13042 (link_btr_uses): Likewise.
13043 (move_btr_def): Likewise for locals "insp", "old_insn",
13044 "new_insn". Add checked cast to rtx_insn * for now on result of
13046 (can_move_up): Strengthen param "insn" from const_rtx to
13049 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13051 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13053 (get_uncond_jump_length): Likewise for locals "label", "jump".
13054 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13056 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13057 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13058 (find_jump_block): Likewise for local "insn".
13059 (fix_crossing_conditional_branches): Likewise for locals
13060 "old_jump", "new_jump".
13061 (fix_crossing_unconditional_branches): Likewise for locals
13062 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13063 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13065 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13067 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13069 (struct mem_insn): Likewise for field "insn".
13070 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13071 (reg_next_inc_use): Likewise.
13072 (reg_next_def): Likewise.
13073 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13074 from rtx to rtx_insn *.
13075 (move_insn_before): Likewise for param "next_insn" and local "insns".
13076 (attempt_change): Likewise for local "mov_insn".
13077 (try_merge): Likewise for param "last_insn".
13078 (get_next_ref): Likewise for return type and local "insn".
13079 Strengthen param "next_array" from rtx * to rtx_insn **.
13080 (parse_add_or_inc): Strengthen param "insn" from rtx to
13082 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13084 (merge_in_block): Likewise for locals "insn", "curr",
13086 (pass_inc_dec::execute): Update allocations of the arrays to
13087 reflect the stronger types.
13089 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13091 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13092 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13093 from rtx to rtx_code_label *.
13095 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13097 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13100 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13102 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13103 generated a warning and prevented bootstrapping the compiler.
13105 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13107 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13110 * jump.c (delete_related_insns): Likewise, also for locals "next"
13113 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13115 * genautomata.c (output_internal_insn_latency_func): When writing
13116 the function "internal_insn_latency" to insn-automata.c,
13117 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13118 allowing the optional guard function of (define_bypass) clauses to
13119 expect a pair of rtx_insn *, rather than a pair of rtx.
13120 (output_insn_latency_func): When writing the function
13121 "insn_latency", add an "uncast_" prefix to params "insn" and
13122 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13123 using checked casts from the params, thus enabling the above
13124 change to the generated "internal_insn_latency" function.
13126 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13128 PR tree-optimization/62091
13129 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13130 handle correctly arrays.
13131 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13132 inheritance binfos.
13133 (record_known_type): Walk into inner type.
13134 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13135 condition on no type changes.
13137 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13139 * genattrtab.c (write_attr_get): Within the generated get_attr_
13140 functions, rename param "insn" to "uncast_insn" and reintroduce
13141 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13142 is an rtx_insn * within insn-attrtab.c
13144 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13146 * output.h (peephole): Strengthen return type from rtx to
13148 * rtl.h (delete_for_peephole): Likewise for both params.
13149 * genpeep.c (main): In generated "peephole" function, strengthen
13150 return type and local "insn" from rtx to rtx_insn *. For now,
13151 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13152 rtx_insn *, with a checked cast.
13153 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13154 locals "insn", "next", "prev" from rtx to rtx_insn *.
13156 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
13158 PR tree-optimization/62112
13159 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13160 * gimple-iterator.h (gsi_replace): Return bool.
13161 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13162 moved from ref_may_alias_global_p.
13163 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13165 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13166 (stmt_kills_ref_p_1): Rename...
13167 (stmt_kills_ref_p): ... to this.
13168 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13169 stmt_kills_ref_p): Declare.
13170 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13171 Move the self-assignment case...
13172 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13174 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13176 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13178 * emit-rtl.c (try_split): Likewise, also for locals "before" and
13179 "after". For now, don't strengthen param "trial", which requires
13180 adding checked casts when returning it.
13182 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13184 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13185 "label" from rtx to rtx_code_label *. Strengthen param 1 of
13186 "var_location" hook from rtx to rtx_insn *.
13187 (debug_nothing_rtx): Delete in favor of...
13188 (debug_nothing_rtx_code_label): New prototype.
13189 (debug_nothing_rtx_rtx): Delete unused prototype.
13190 (debug_nothing_rtx_insn): New prototype.
13192 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13193 invoking debug_hooks->var_location (in two places, one in a NOTE
13194 case of a switch statement, the other guarded by a CALL_P
13195 conditional. Add checked cast to rtx_code_label * when invoking
13196 debug_hooks->label (within CODE_LABEL case of switch statement).
13198 * dbxout.c (dbx_debug_hooks): Update "label" hook from
13199 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13200 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13201 (xcoff_debug_hooks): Likewise.
13202 * debug.c (do_nothing_debug_hooks): Likewise.
13203 (debug_nothing_rtx): Delete in favor of...
13204 (debug_nothing_rtx_insn): New function.
13205 (debug_nothing_rtx_rtx): Delete unused function.
13206 (debug_nothing_rtx_code_label): New function.
13207 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13208 debug_nothing_rtx to debug_nothing_rtx_code_label.
13209 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13211 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13212 debug_nothing_rtx to debug_nothing_rtx_insn.
13213 (sdbout_label): Strengthen param "insn" from rtx to
13215 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13216 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13217 "var_location" hook from debug_nothing_rtx to
13218 debug_nothing_rtx_insn.
13220 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13222 * recog.h (insn_output_fn): Update this function typedef to match
13223 the changes below to the generated output functions, strengthening
13224 the 2nd param from rtx to rtx_insn *.
13226 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13227 insn when invoking an output function, to match the new signature
13228 of insn_output_fn with a stronger second param.
13230 * genconditions.c (write_header): In the generated code for
13231 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13232 to match the other changes in this patch.
13234 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13235 the generated "gen_" functions from rtx to rtx_insn * within their
13238 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13239 the subfunctions within the generated "recog_", "split", "peephole2"
13240 function trees from rtx to rtx_insn *. For now, the top-level
13241 generated functions ("recog", "split", "peephole2") continue to
13242 take a plain rtx for "insn", to avoid introducing dependencies on
13243 other patches. Rename this 2nd param from "insn" to
13244 "uncast_insn", and reintroduce "insn" as a local variable of type
13245 rtx_insn *, initialized at the top of the generated function with
13246 a checked cast on "uncast_insn".
13247 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13248 the generated "gen_" functions from rtx to rtx_insn * within their
13251 * genoutput.c (process_template): Strengthen the 2nd param within
13252 the generated "output_" functions "insn" from rtx to rtx_insn *.
13254 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13256 * tree-profile.c (tree_profiling): Skip external functions
13257 when doing coverage instrumentation.
13258 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13260 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13262 * config/rs6000/altivec.h (vec_cpsgn): New #define.
13263 (vec_mergee): Likewise.
13264 (vec_mergeo): Likewise.
13265 (vec_cntlz): Likewise.
13266 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13267 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13268 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13269 VMRGEW, and VMRGOW.
13270 * doc/extend.texi: Document various forms of vec_cpsgn,
13271 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13272 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13273 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13274 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13275 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13277 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13279 * config/rs6000/rs6000.c (context.h): New include.
13280 (tree-pass.h): Likewise.
13281 (make_pass_analyze_swaps): New decl.
13282 (rs6000_option_override): Register pass_analyze_swaps.
13283 (swap_web_entry): New subsclass of web_entry_base (df.h).
13284 (special_handling_values): New enum.
13285 (union_defs): New function.
13286 (union_uses): Likewise.
13287 (insn_is_load_p): Likewise.
13288 (insn_is_store_p): Likewise.
13289 (insn_is_swap_p): Likewise.
13290 (rtx_is_swappable_p): Likewise.
13291 (insn_is_swappable_p): Likewise.
13292 (chain_purpose): New enum.
13293 (chain_contains_only_swaps): New function.
13294 (mark_swaps_for_removal): Likewise.
13295 (swap_const_vector_halves): Likewise.
13296 (adjust_subreg_index): Likewise.
13297 (permute_load): Likewise.
13298 (permute_store): Likewise.
13299 (handle_special_swappables): Likewise.
13300 (replace_swap_with_copy): Likewise.
13301 (dump_swap_insn_table): Likewise.
13302 (rs6000_analyze_swaps): Likewise.
13303 (pass_data_analyze_swaps): New pass_data.
13304 (pass_analyze_swaps): New rtl_opt_pass.
13305 (make_pass_analyze_swaps): New function.
13306 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13308 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13310 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13311 type from rtx to rtx_insn *.
13312 (create_copy_of_insn_rtx): Likewise.
13313 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13314 (create_copy_of_insn_rtx): Likewise, also for local "res".
13316 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13318 * rtl.h (find_first_parameter_load): Strengthen return type from
13320 * rtlanal.c (find_first_parameter_load): Strengthen return type
13321 from rtx to rtx_insn *. Add checked cast for now, to postpone
13322 strengthening the params.
13324 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13327 * diagnostic.c: Set default caret.
13328 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13330 * diagnostic.h (struct diagnostic_context):
13332 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13334 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13335 (sel_bb_head): Strengthen return type insn_t (currently just an
13336 rtx) to rtx_insn *.
13337 (sel_bb_end): Likewise.
13339 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13340 (sel_bb_head): Strengthen return type and local "head" from
13341 insn_t (currently just an rtx) to rtx_insn *.
13342 (sel_bb_end): Likewise for return type.
13343 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13346 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13348 * basic-block.h (get_last_bb_insn): Strengthen return type from
13350 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13353 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13356 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13358 (diagnostic_report_diagnostic): ... from here.
13359 * toplev.c (general_init): Move code to c-family.
13361 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13363 * df.h (web_entry_base): Replace existing struct web_entry with a
13364 new class web_entry_base with only the predecessor member.
13365 (unionfind_root): Remove declaration and move to class member.
13366 (unionfind_union): Remove declaration and move to friend
13368 (union_defs): Remove declaration.
13369 * web.c (web_entry_base::unionfind_root): Modify to be member
13370 function and adjust accessors.
13371 (unionfind_union): Modify to be friend function and adjust
13373 (web_entry): New subclass of web_entry_base containing the reg
13375 (union_match_dups): Modify for struct -> class changes.
13376 (union_defs): Likewise.
13377 (entry_register): Likewise.
13378 (pass_web::execute): Likewise.
13380 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
13382 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13383 builtin define __VEC_ELEMENT_REG_ORDER__.
13385 2014-08-20 Martin Jambor <mjambor@suse.cz>
13386 Wei Mi <wmi@google.com>
13389 PR middle-end/61776
13390 * tree-ssa-operands.c (update_stmt_operands): Remove
13391 MODIFIED_NORETURN_CALLS.
13392 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13393 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13394 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13395 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13396 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13397 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13398 (gimple_call_set_ctrl_altering): New func.
13399 (gimple_call_ctrl_altering_p): Ditto.
13400 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13401 (make_blocks): Use gimple_call_initialize_ctrl_altering.
13402 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13403 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13404 remove MODIFIED_NORETURN_CALLS.
13406 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13408 * coverage.c (coverage_compute_profile_id): Return non-0;
13409 also handle symbols with unique name.
13410 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13412 2014-08-20 Steve Ellcey <sellcey@mips.com>
13414 PR middle-end/49191
13415 * doc/sourcebuild.texi (non_strict_align): New.
13417 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13419 * cgraphunit.c (ipa_passes, compile): Reshedule
13420 symtab_remove_unreachable_nodes passes; update comments.
13421 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13422 TODO_remove_functions before the pass; the functions ought to be
13424 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13425 TODO_remove_functions.
13426 * passes.c (pass_data_early_local_passes): Do not schedule function
13428 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13430 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13433 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13434 before setting the option.
13435 * diagnostic.c (diagnostic_classify_diagnostic): Record
13436 command-line status.
13438 2014-08-20 Richard Biener <rguenther@suse.de>
13441 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
13442 to build uint{16,32,64}_type_node.
13444 2014-08-20 Terry Guo <terry.guo@arm.com>
13446 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
13447 with immediate_operand.
13449 2014-08-20 David Malcolm <dmalcolm@redhat.com>
13451 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
13452 "insn" from an as_a to a safe_as_a, for the case when "insn" is
13455 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13457 PR preprocessor/51303
13458 * incpath.c (remove_duplicates): Use cpp_warning.
13460 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13464 * doc/options.texi (CPP): Document it.
13465 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
13466 * optc-gen.awk: Handle CPP.
13467 * opth-gen.awk: Likewise.
13469 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13471 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
13473 (duplicate_insn_chain): Likewise.
13474 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
13475 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
13476 checked cast for now (until we can strengthen the params in the
13478 (duplicate_insn_chain): Likewise.
13480 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13482 * rtl.h (next_cc0_user): Strengthen return type from rtx to
13484 (prev_cc0_setter): Likewise.
13486 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
13487 rtx_insn *, adding checked casts for now as necessary.
13488 (prev_cc0_setter): Likewise.
13490 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13492 * expr.h (emit_move_insn): Strengthen return type from rtx to
13494 (emit_move_insn_1): Likewise.
13495 (emit_move_complex_push): Likewise.
13496 (emit_move_complex_parts): Likewise.
13498 * expr.c (emit_move_via_integer): Strengthen return type from rtx
13499 to rtx_insn *. Replace use of NULL_RTX with NULL when working
13501 (emit_move_complex_push): Strengthen return type from rtx to
13503 (emit_move_complex): Likewise, also for local "ret".
13504 (emit_move_ccmode): Likewise.
13505 (emit_move_multi_word): Likewise for return type and locals
13506 "last_insn", "seq".
13507 (emit_move_insn_1): Likewise for return type and locals "result",
13509 (emit_move_insn): Likewise for return type and local "last_insn".
13510 (compress_float_constant): Likewise.
13512 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13514 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
13515 from rtx to rtx_insn *.
13517 * rtl.h (emit_insn_before): Likewise.
13518 (emit_insn_before_noloc): Likewise.
13519 (emit_insn_before_setloc): Likewise.
13520 (emit_jump_insn_before): Likewise.
13521 (emit_jump_insn_before_noloc): Likewise.
13522 (emit_jump_insn_before_setloc): Likewise.
13523 (emit_call_insn_before): Likewise.
13524 (emit_call_insn_before_noloc): Likewise.
13525 (emit_call_insn_before_setloc): Likewise.
13526 (emit_debug_insn_before): Likewise.
13527 (emit_debug_insn_before_noloc): Likewise.
13528 (emit_debug_insn_before_setloc): Likewise.
13529 (emit_label_before): Likewise.
13530 (emit_insn_after): Likewise.
13531 (emit_insn_after_noloc): Likewise.
13532 (emit_insn_after_setloc): Likewise.
13533 (emit_jump_insn_after): Likewise.
13534 (emit_jump_insn_after_noloc): Likewise.
13535 (emit_jump_insn_after_setloc): Likewise.
13536 (emit_call_insn_after): Likewise.
13537 (emit_call_insn_after_noloc): Likewise.
13538 (emit_call_insn_after_setloc): Likewise.
13539 (emit_debug_insn_after): Likewise.
13540 (emit_debug_insn_after_noloc): Likewise.
13541 (emit_debug_insn_after_setloc): Likewise.
13542 (emit_label_after): Likewise.
13543 (emit_insn): Likewise.
13544 (emit_debug_insn): Likewise.
13545 (emit_jump_insn): Likewise.
13546 (emit_call_insn): Likewise.
13547 (emit_label): Likewise.
13548 (gen_clobber): Likewise.
13549 (emit_clobber): Likewise.
13550 (gen_use): Likewise.
13551 (emit_use): Likewise.
13554 (emit_barrier_before): Strengthen return type from rtx to
13556 (emit_barrier_after): Likewise.
13557 (emit_barrier): Likewise.
13559 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
13560 from rtx to rtx_insn *. Add checked casts for now when converting
13561 "last" from rtx to rtx_insn *.
13562 (emit_insn_before_noloc): Likewise for return type.
13563 (emit_jump_insn_before_noloc): Likewise.
13564 (emit_call_insn_before_noloc): Likewise.
13565 (emit_debug_insn_before_noloc): Likewise.
13566 (emit_barrier_before): Strengthen return type and local "insn"
13567 from rtx to rtx_barrier *.
13568 (emit_label_before): Strengthen return type from rtx to
13569 rtx_insn *. Add checked cast for now when returning param
13570 (emit_pattern_after_noloc): Strengthen return type from rtx to
13571 rtx_insn *. Add checked casts for now when converting "last" from
13573 (emit_insn_after_noloc): Strengthen return type from rtx to
13575 (emit_jump_insn_after_noloc): Likewise.
13576 (emit_call_insn_after_noloc): Likewise.
13577 (emit_debug_insn_after_noloc): Likewise.
13578 (emit_barrier_after): Strengthen return type from rtx to
13580 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
13581 Add checked cast for now when converting "label" from rtx to
13583 (emit_pattern_after_setloc): Strengthen return type from rtx to
13584 rtx_insn *. Add checked casts for now when converting "last" from
13586 (emit_pattern_after): Strengthen return type from rtx to
13588 (emit_insn_after_setloc): Likewise.
13589 (emit_insn_after): Likewise.
13590 (emit_jump_insn_after_setloc): Likewise.
13591 (emit_jump_insn_after): Likewise.
13592 (emit_call_insn_after_setloc): Likewise.
13593 (emit_call_insn_after): Likewise.
13594 (emit_debug_insn_after_setloc): Likewise.
13595 (emit_debug_insn_after): Likewise.
13596 (emit_pattern_before_setloc): Likewise. Add checked casts for now
13597 when converting "last" from rtx to rtx_insn *.
13598 (emit_pattern_before): Strengthen return type from rtx to
13600 (emit_insn_before_setloc): Likewise.
13601 (emit_insn_before): Likewise.
13602 (emit_jump_insn_before_setloc): Likewise.
13603 (emit_jump_insn_before): Likewise.
13604 (emit_call_insn_before_setloc): Likewise.
13605 (emit_call_insn_before): Likewise.
13606 (emit_debug_insn_before_setloc): Likewise.
13607 (emit_debug_insn_before): Likewise.
13608 (emit_insn): Strengthen return type and locals "last", "insn",
13609 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
13610 within cases where we know we have an insn.
13611 (emit_debug_insn): Likewise.
13612 (emit_jump_insn): Likewise.
13613 (emit_call_insn): Strengthen return type and local "insn" from rtx
13615 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
13616 a checked cast to rtx_insn * for now on "label".
13617 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
13618 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
13619 (emit_use): Likewise.
13620 (gen_use): Likewise, also for local "seq".
13621 (emit): Likewise for return type and local "insn".
13622 (rtx_insn): Likewise for return type and local "new_rtx".
13624 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
13625 from rtx to rtx_barrier *.
13627 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
13628 changed return type from rtx to rtx_insn *, we must update
13629 "emit_fn" type, and this in turn means updating...
13630 (frame_insn): ...this. Strengthen return type from rtx to
13631 rtx_insn *. Introduce a new local "insn" of the appropriate type.
13633 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13635 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
13636 rtx to rtx_jump_table_data *. Also for local.
13637 * rtl.h (emit_jump_table_data): Likewise.
13639 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13641 * basic-block.h (create_basic_block_structure): Strengthen third
13642 param "bb_note" from rtx to rtx_note *.
13643 * rtl.h (emit_note_before): Strengthen return type from rtx to
13645 (emit_note_after): Likewise.
13646 (emit_note): Likewise.
13647 (emit_note_copy): Likewise. Also, strengthen param similarly.
13648 * function.h (struct rtl_data): Strengthen field
13649 "x_stack_check_probe_note" from rtx to rtx_note *.
13651 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
13652 from rtx to rtx_note *.
13653 * cfgrtl.c (create_basic_block_structure): Strengthen third param
13654 "bb_note" from rtx to rtx_note *.
13655 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
13656 when calling emit_note_copy.
13657 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
13659 (emit_note_after): Likewise.
13660 (emit_note_before): Likewise.
13661 (emit_note_copy): Likewise. Also, strengthen param similarly.
13662 (emit_note): Likewise.
13663 * except.c (emit_note_eh_region_end): Likewise for return type.
13664 Strengthen local "next" from rtx to rtx_insn *.
13665 (convert_to_eh_region_ranges): Strengthen local "note"
13666 from rtx to rtx_note *.
13667 * final.c (change_scope): Likewise.
13668 (reemit_insn_block_notes): Likewise, for both locals named "note".
13669 Also, strengthen local "insn" from rtx to rtx_insn *.
13670 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
13672 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
13673 strengthen local "seq" from rtx to rtx_insn *.
13674 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
13676 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
13678 (get_bb_note_from_pool): Strengthen return type from rtx to
13680 (sel_create_basic_block): Strengthen local "new_bb_note" from
13681 insn_t to rtx_note *.
13682 * var-tracking.c (emit_note_insn_var_location): Strengthen local
13683 "note" from rtx to rtx_note *.
13684 (emit_notes_in_bb): Likewise.
13686 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13688 * function.h (struct rtl_data): Strengthen field
13689 "x_parm_birth_insn" from rtx to rtx_insn *.
13690 * function.c (struct assign_parm_data_all): Strengthen fields
13691 "first_conversion_insn" and "last_conversion_insn" from rtx to
13694 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13696 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
13697 to rtx_insn *; also for local "var_end_seq".
13698 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
13699 (maybe_cleanup_end_of_block): Likewise for param "last" and local
13701 (expand_gimple_cond): Likewise for locals "last2" and "last".
13702 (mark_transaction_restart_calls): Likewise for local "insn".
13703 (expand_gimple_stmt): Likewise for return type and locals "last"
13705 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
13706 (avoid_complex_debug_insns): Likewise for param "insn".
13707 (expand_debug_locations): Likewise for locals "insn", "last",
13708 "prev_insn" and "insn2".
13709 (expand_gimple_basic_block): Likewise for local "last".
13710 (construct_exit_block): Likewise for locals "head", "end",
13712 (pass_expand::execute): Likewise for locals "var_seq",
13713 "var_ret_seq", "next".
13715 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13717 * asan.h (asan_emit_stack_protection): Strengthen return type from
13719 * asan.c (asan_emit_stack_protection): Likewise. Add local
13720 "insns" to hold the return value.
13722 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13724 * basic-block.h (bb_note): Strengthen return type from rtx to
13726 * sched-int.h (bb_note): Likewise.
13727 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
13729 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13731 * rtl.h (make_insn_raw): Strengthen return type from rtx to
13734 * emit-rtl.c (make_insn_raw): Strengthen return type and local
13735 "insn" from rtx to rtx_insn *.
13736 (make_debug_insn_raw): Strengthen return type from rtx to
13737 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
13738 (make_jump_insn_raw): Strengthen return type from rtx to
13739 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
13740 (make_call_insn_raw): Strengthen return type from rtx to
13741 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
13742 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
13743 callback from rtx to rtx_insn *; likewise for local "insn" and
13744 "next", adding a checked cast to rtx_insn in the relevant cases of
13745 the switch statement.
13746 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
13747 callback from rtx to rtx_insn *.
13748 (emit_pattern_after_setloc): Likewise.
13749 (emit_pattern_after): Likewise.
13750 (emit_pattern_before_setloc): Likewise.
13751 (emit_pattern_before): Likewise.
13753 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13755 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
13757 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
13758 accepting an rtx_insn *.
13759 (last_call_insn): Strengthen return type from rtx to
13762 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13764 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
13765 "insns" from rtx to rtx_insn *.
13766 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
13767 locals "insn" and "prev".
13769 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13771 * rtl.h (tablejump_p): Strengthen third param from rtx * to
13772 rtx_jump_table_data **.
13774 * cfgbuild.c (make_edges): Introduce local "table", using it in
13775 place of "tmp" for jump table data.
13776 (find_bb_boundaries): Strengthen local "table" from rtx to
13777 rtx_jump_table_data *.
13778 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
13779 (outgoing_edges_match): Likewise for locals "table1" and "table2".
13780 (try_crossjump_to_edge): Likewise.
13781 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
13783 (patch_jump_insn): Introduce local "table", using it in place of
13784 "tmp" for jump table data.
13785 (force_nonfallthru_and_redirect): Introduce local "table", so that
13786 call to tablejump_p can receive an rtx_jump_table_data **. Update
13787 logic around the call to overwrite "note" appropriately if
13788 tablejump_p returns non-zero.
13789 (get_last_bb_insn): Introduce local "table", using it in place of
13790 "tmp" for jump table data.
13791 * dwarf2cfi.c (create_trace_edges): Likewise.
13793 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
13794 from rtx to rtx_jump_table_data *.
13795 (create_fix_barrier): Strengthen local "tmp" from rtx to
13796 rtx_jump_table_data *.
13797 (arm_reorg): Likewise for local "table".
13799 * config/s390/s390.c (s390_chunkify_start): Likewise.
13801 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
13803 * jump.c (delete_related_insns): Strengthen local "lab_next" from
13804 rtx to rtx_jump_table_data *.
13806 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
13807 rtx_jump_table_data **. Add a checked cast when writing through
13808 the pointer: we know there that local "table" is non-NULL and that
13809 JUMP_TABLE_DATA_P (table) holds.
13810 (label_is_jump_target_p): Introduce local "table", using it in
13811 place of "tmp" for jump table data.
13813 2014-08-19 Marek Polacek <polacek@redhat.com>
13816 * doc/invoke.texi: Document -Wbool-compare.
13818 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13820 * rtl.h (entry_of_function): Strengthen return type from rtx to
13822 * cfgrtl.c (entry_of_function): Likewise.
13824 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13826 * emit-rtl.h (get_insns): Strengthen return type from rtx to
13827 rtx_insn *, adding a checked cast for now.
13828 (get_last_insn): Likewise.
13830 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13832 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
13835 * emit-rtl.c (gen_label_rtx): Likewise.
13837 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13839 * rtl.h (previous_insn): Strengthen return type from rtx to
13841 (next_insn): Likewise.
13842 (prev_nonnote_insn): Likewise.
13843 (prev_nonnote_insn_bb): Likewise.
13844 (next_nonnote_insn): Likewise.
13845 (next_nonnote_insn_bb): Likewise.
13846 (prev_nondebug_insn): Likewise.
13847 (next_nondebug_insn): Likewise.
13848 (prev_nonnote_nondebug_insn): Likewise.
13849 (next_nonnote_nondebug_insn): Likewise.
13850 (prev_real_insn): Likewise.
13851 (next_real_insn): Likewise.
13852 (prev_active_insn): Likewise.
13853 (next_active_insn): Likewise.
13855 * emit-rtl.c (next_insn): Strengthen return type from rtx to
13856 rtx_insn *, adding a checked cast.
13857 (previous_insn): Likewise.
13858 (next_nonnote_insn): Likewise.
13859 (next_nonnote_insn_bb): Likewise.
13860 (prev_nonnote_insn): Likewise.
13861 (prev_nonnote_insn_bb): Likewise.
13862 (next_nondebug_insn): Likewise.
13863 (prev_nondebug_insn): Likewise.
13864 (next_nonnote_nondebug_insn): Likewise.
13865 (prev_nonnote_nondebug_insn): Likewise.
13866 (next_real_insn): Likewise.
13867 (prev_real_insn): Likewise.
13868 (next_active_insn): Likewise.
13869 (prev_active_insn): Likewise.
13871 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
13872 param "stepfunc" so that it returns an rtx_insn * rather than an
13873 rtx, to track the change to prev_nonnote_insn_bb, which is the
13874 only function this is called with.
13875 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
13877 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
13879 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
13882 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13884 * coretypes.h (class rtx_debug_insn): Add forward declaration.
13885 (class rtx_nonjump_insn): Likewise.
13886 (class rtx_jump_insn): Likewise.
13887 (class rtx_call_insn): Likewise.
13888 (class rtx_jump_table_data): Likewise.
13889 (class rtx_barrier): Likewise.
13890 (class rtx_code_label): Likewise.
13891 (class rtx_note): Likewise.
13893 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
13894 adding the invariant DEBUG_INSN_P (X).
13895 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
13896 the invariant NONJUMP_INSN_P (X).
13897 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
13898 the invariant JUMP_P (X).
13899 (class rtx_call_insn): New, a subclass of rtx_insn, adding
13900 the invariant CALL_P (X).
13901 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
13902 invariant JUMP_TABLE_DATA_P (X).
13903 (class rtx_barrier): New, a subclass of rtx_insn, adding the
13904 invariant BARRIER_P (X).
13905 (class rtx_code_label): New, a subclass of rtx_insn, adding
13906 the invariant LABEL_P (X).
13907 (class rtx_note): New, a subclass of rtx_insn, adding
13908 the invariant NOTE_P(X).
13909 (is_a_helper <rtx_debug_insn *>::test): New.
13910 (is_a_helper <rtx_nonjump_insn *>::test): New.
13911 (is_a_helper <rtx_jump_insn *>::test): New.
13912 (is_a_helper <rtx_call_insn *>::test): New.
13913 (is_a_helper <rtx_jump_table_data *>::test): New functions,
13914 overloaded for both rtx and rtx_insn *.
13915 (is_a_helper <rtx_barrier *>::test): New.
13916 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
13917 for both rtx and rtx_insn *.
13918 (is_a_helper <rtx_note *>::test): New.
13920 2014-08-19 Marek Polacek <polacek@redhat.com>
13922 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
13923 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13924 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
13925 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13927 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13929 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
13930 rtx_insn *. To help with transition, for now, convert from an
13931 access macro into a pair of functions: BND_TO, returning an
13933 (SET_BND_TO): New function, for use where BND_TO is used as an
13936 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
13938 (BND_TO): New function, adding a checked cast.
13939 (SET_BND_TO): New function.
13941 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
13943 (compute_av_set_on_boundaries): Likewise.
13945 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
13947 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
13948 destination if it is used in source.
13949 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
13950 (*popcount<mode>2_falsedep_1): Likewise.
13952 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
13955 * configure.ac: Set install_gold_as_default to no first.
13956 * configure: Regenerated.
13958 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13960 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
13961 "note_list" field will eventually be an rtx_insn *. To help with
13962 transition, for now, convert from an access macro into a pair of
13963 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
13964 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
13967 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
13968 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
13970 * sel-sched-ir.c (init_bb): Likewise.
13971 (sel_restore_notes): Likewise.
13972 (move_bb_info): Likewise.
13973 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
13974 (SET_BB_NOTE_LIST): New function.
13976 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13978 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
13979 field will eventually be an rtx_insn *. To help with transition,
13980 for now, convert from an access macro into a pair of functions:
13981 VINSN_INSN_RTX, returning an rtx_insn *, and...
13982 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
13983 is used as an lvalue.
13985 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
13986 SET_VINSN_INSN_RTX where it's used as an lvalue.
13987 (VINSN_INSN_RTX): New function.
13988 (SET_VINSN_INSN_RTX): New function.
13990 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13992 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
13993 eventually be rtx_insn *, but to help with transition, for now,
13994 convert from an access macro into a pair of functions: DEP_PRO
13995 returning an rtx_insn * and...
13996 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
13997 lvalue, returning an rtx&.
13998 (DEP_CON): Analogous changes to DEP_PRO above.
13999 (SET_DEP_CON): Likewise.
14001 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14002 an lvalue to SET_DEP_CON.
14003 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14004 (sd_copy_back_deps): Likewise for DEP_CON.
14005 (DEP_PRO): New function, adding a checked cast for now.
14006 (DEP_CON): Likewise.
14007 (SET_DEP_PRO): New function.
14008 (SET_DEP_CON): Likewise.
14010 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14012 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14013 (extra_options): Add i386/cygwin.opt.
14014 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14015 (CPP_SPEC): Accept -pthread.
14016 (LINK_SPEC): Ditto.
14017 (GOMP_SELF_SPECS): Update comment.
14018 * config/i386/cygwin.opt: New file for -pthread flag.
14020 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14022 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14023 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14024 that we can return an rtx_insn *.
14026 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14028 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14029 when building executables, not DLLs. Add --large-address-aware
14030 under the same conditions.
14031 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14032 when building executables, not DLLs. Add --large-address-aware
14033 under the same conditions when using -m32.
14035 * config/i386/cygwin-stdint.h: Throughout, make type
14036 definitions dependent on target architecture, not host.
14038 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14040 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14041 the return type from rtx to rtx_insn *, which will enable various
14042 conversions in followup patches. For now this is is done by a
14044 (NEXT_INSN): Likewise.
14045 (SET_PREV_INSN): Convert to an inline function. This is intended
14046 for use as an lvalue, and so returns an rtx& to allow in-place
14048 (SET_NEXT_INSN): Likewise.
14050 2014-07-08 Mark Wielaard <mjw@redhat.com>
14053 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14055 2014-08-19 Marek Polacek <polacek@redhat.com>
14058 * cgraphunit.c (handle_alias_pairs): Fix condition.
14060 2014-08-19 Richard Biener <rguenther@suse.de>
14062 * gimple-fold.c (fold_gimple_assign): Properly build a
14063 null-pointer constant when devirtualizing addresses.
14065 2014-07-07 Mark Wielaard <mjw@redhat.com>
14067 * dwarf2out.c (decl_quals): New function.
14068 (modified_type_die): Take one cv_quals argument instead of two,
14069 one for const and one for volatile.
14070 (add_type_attribute): Likewise.
14071 (generic_parameter_die): Call add_type_attribute with one modifier
14073 (base_type_for_mode): Likewise.
14074 (add_bounds_info): Likewise.
14075 (add_subscript_info): Likewise.
14076 (gen_array_type_die): Likewise.
14077 (gen_descr_array_type_die): Likewise.
14078 (gen_entry_point_die): Likewise.
14079 (gen_enumeration_type_die): Likewise.
14080 (gen_formal_parameter_die): Likewise.
14081 (gen_subprogram_die): Likewise.
14082 (gen_variable_die): Likewise.
14083 (gen_const_die): Likewise.
14084 (gen_field_die): Likewise.
14085 (gen_pointer_type_die): Likewise.
14086 (gen_reference_type_die): Likewise.
14087 (gen_ptr_to_mbr_type_die): Likewise.
14088 (gen_inheritance_die): Likewise.
14089 (gen_subroutine_type_die): Likewise.
14090 (gen_typedef_die): Likewise.
14091 (force_type_die): Likewise.
14093 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14095 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14097 * configure: Regenerate.
14099 2014-08-19 Richard Biener <rguenther@suse.de>
14101 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14102 DECL_EXTERNALs in BLOCKs as non-references.
14103 * tree-streamer-out.c (streamer_write_chain): Likewise.
14105 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14106 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14107 Anna Tikhonova <anna.tikhonova@intel.com>
14108 Ilya Tocar <ilya.tocar@intel.com>
14109 Andrey Turetskiy <andrey.turetskiy@intel.com>
14110 Ilya Verbin <ilya.verbin@intel.com>
14111 Kirill Yukhin <kirill.yukhin@intel.com>
14112 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14114 * config/i386/sse.md
14115 (define_mode_iterator VI48_AVX512F): Delete.
14116 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14117 (define_mode_iterator VI2_AVX512VL): Ditto.
14118 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14121 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14123 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14124 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14125 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14126 with VI48_AVX512F_AVX512VL): New.
14127 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14128 with VI2_AVX512VL): Ditto.
14130 2014-08-19 Marek Polacek <polacek@redhat.com>
14132 * doc/invoke.texi: Document -Wc99-c11-compat.
14134 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14136 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14137 for rvalues, and...
14138 (SET_PREV_INSN): New macro, for use as an lvalue.
14139 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14141 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14142 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14143 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14144 (fixup_abnormal_edges): Likewise.
14145 (unlink_insn_chain): Likewise.
14146 (fixup_reorder_chain): Likewise.
14147 (cfg_layout_delete_block): Likewise.
14148 (cfg_layout_merge_blocks): Likewise.
14149 * combine.c (update_cfg_for_uncondjump): Likewise.
14150 * emit-rtl.c (link_insn_into_chain): Likewise.
14151 (remove_insn): Likewise.
14152 (delete_insns_since): Likewise.
14153 (reorder_insns_nobb): Likewise.
14154 (emit_insn_after_1): Likewise.
14155 * final.c (rest_of_clean_state): Likewise.
14156 (final_scan_insn): Likewise.
14157 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14158 * haifa-sched.c (concat_note_lists): Likewise.
14159 (remove_notes): Likewise.
14160 (restore_other_notes): Likewise.
14161 (move_insn): Likewise.
14162 (unlink_bb_notes): Likewise.
14163 (restore_bb_notes): Likewise.
14164 * jump.c (delete_for_peephole): Likewise.
14165 * optabs.c (emit_libcall_block_1): Likewise.
14166 * reorg.c (emit_delay_sequence): Likewise.
14167 (fill_simple_delay_slots): Likewise.
14168 * sel-sched-ir.c (sel_move_insn): Likewise.
14169 (sel_remove_insn): Likewise.
14170 (get_bb_note_from_pool): Likewise.
14171 * sel-sched.c (move_nop_to_previous_block): Likewise.
14173 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14174 * config/c6x/c6x.c (gen_one_bundle): Likewise.
14175 (c6x_gen_bundles): Likewise.
14176 (hwloop_optimize): Likewise.
14177 * config/frv/frv.c (frv_function_prologue): Likewise.
14178 (frv_register_nop): Likewise.
14179 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14180 (ia64_reorg): Likewise.
14181 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14182 (mep_make_bundle): Likewise.
14183 (mep_bundle_insns): Likewise.
14184 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14185 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14186 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14188 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14190 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
14191 return type from rtx to rtx_insn *.
14192 (BB_END): Likewise.
14193 (BB_HEADER): Likewise.
14194 (BB_FOOTER): Likewise.
14195 (SET_BB_HEAD): Convert to a function.
14196 (SET_BB_END): Likewise.
14197 (SET_BB_HEADER): Likewise.
14198 (SET_BB_FOOTER): Likewise.
14200 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14201 Strengthen the return type from rtx to rtx_insn *. For now, this
14202 is done by adding a checked cast, but this will eventually
14203 become a field lookup.
14204 (BB_END): Likewise.
14205 (BB_HEADER): Likewise.
14206 (BB_FOOTER): Likewise.
14207 (SET_BB_HEAD): New function, from macro of same name. This is
14208 intended for use as an lvalue, and so returns an rtx& to allow
14209 in-place modification.
14210 (SET_BB_END): Likewise.
14211 (SET_BB_HEADER): Likewise.
14212 (SET_BB_FOOTER): Likewise.
14214 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14216 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14217 for rvalues, and...
14218 (SET_BB_HEAD): New macro, for use as a lvalue.
14219 (BB_END, SET_BB_END): Likewise.
14220 (BB_HEADER, SET_BB_HEADER): Likewise.
14221 (BB_FOOTER, SET_BB_FOOTER): Likewise.
14223 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14224 of BB_* macros into SET_BB_* macros.
14225 (fix_crossing_unconditional_branches): Likewise.
14226 * caller-save.c (save_call_clobbered_regs): Likewise.
14227 (insert_one_insn): Likewise.
14228 * cfgbuild.c (find_bb_boundaries): Likewise.
14229 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14230 (outgoing_edges_match): Likewise.
14231 (try_optimize_cfg): Likewise.
14232 * cfgexpand.c (expand_gimple_cond): Likewise.
14233 (expand_gimple_tailcall): Likewise.
14234 (expand_gimple_basic_block): Likewise.
14235 (construct_exit_block): Likewise.
14236 * cfgrtl.c (delete_insn): Likewise.
14237 (create_basic_block_structure): Likewise.
14238 (rtl_delete_block): Likewise.
14239 (rtl_split_block): Likewise.
14240 (emit_nop_for_unique_locus_between): Likewise.
14241 (rtl_merge_blocks): Likewise.
14242 (block_label): Likewise.
14243 (try_redirect_by_replacing_jump): Likewise.
14244 (emit_barrier_after_bb): Likewise.
14245 (fixup_abnormal_edges): Likewise.
14246 (record_effective_endpoints): Likewise.
14247 (relink_block_chain): Likewise.
14248 (fixup_reorder_chain): Likewise.
14249 (fixup_fallthru_exit_predecessor): Likewise.
14250 (cfg_layout_duplicate_bb): Likewise.
14251 (cfg_layout_split_block): Likewise.
14252 (cfg_layout_delete_block): Likewise.
14253 (cfg_layout_merge_blocks): Likewise.
14254 * combine.c (update_cfg_for_uncondjump): Likewise.
14255 * emit-rtl.c (add_insn_after): Likewise.
14256 (remove_insn): Likewise.
14257 (reorder_insns): Likewise.
14258 (emit_insn_after_1): Likewise.
14259 * haifa-sched.c (get_ebb_head_tail): Likewise.
14260 (restore_other_notes): Likewise.
14261 (move_insn): Likewise.
14262 (sched_extend_bb): Likewise.
14263 (fix_jump_move): Likewise.
14264 * ifcvt.c (noce_process_if_block): Likewise.
14265 (dead_or_predicable): Likewise.
14266 * ira.c (update_equiv_regs): Likewise.
14267 * reg-stack.c (change_stack): Likewise.
14268 * sel-sched-ir.c (sel_move_insn): Likewise.
14269 * sel-sched.c (move_nop_to_previous_block): Likewise.
14271 * config/c6x/c6x.c (hwloop_optimize): Likewise.
14272 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14274 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14276 * rtl.h (for_each_rtx_in_insn): New function.
14277 * rtlanal.c (for_each_rtx_in_insn): Likewise.
14279 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14281 * coretypes.h (class rtx_insn): Add forward declaration.
14283 * rtl.h: Include is-a.h.
14284 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14285 workaround to ensure gengtype knows inheritance is occurring,
14286 whilst continuing to use the pre-existing special-casing for
14288 (class rtx_insn): New subclass of rtx_def, adding the
14289 invariant that we're dealing with something we can sanely use
14290 INSN_UID, NEXT_INSN, PREV_INSN on.
14291 (is_a_helper <rtx_insn *>::test): New.
14292 (is_a_helper <const rtx_insn *>::test): New.
14294 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14296 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14298 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14300 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14303 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14305 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14306 to BUILT_IN_UNREACHABLE.
14308 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
14311 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14313 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14314 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14315 (ffs<mode>2): Do not expand with tzcnt for
14316 TARGET_AVOID_FALSE_DEP_FOR_BMI.
14317 (ffssi2_no_cmove): Ditto.
14318 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14319 (ctz<mode>2): New expander.
14320 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14321 (*ctz<mode>2_falsedep): New insn.
14322 (*ctz<mode>2): Rename from ctz<mode>2.
14323 (clz<mode>2_lzcnt): New expander.
14324 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14325 (*clz<mode>2_lzcnt_falsedep): New insn.
14326 (*clz<mode>2): Rename from ctz<mode>2.
14327 (popcount<mode>2): New expander.
14328 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14329 (*popcount<mode>2_falsedep): New insn.
14330 (*popcount<mode>2): Rename from ctz<mode>2.
14331 (*popcount<mode>2_cmp): Remove.
14332 (*popcountsi2_cmp_zext): Ditto.
14334 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
14336 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14337 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14338 * config/microblaze/microblaze.h
14339 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14341 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
14344 * configure.ac: Set install_gold_as_default to no for
14346 * configure: Regenerated.
14348 2014-08-18 Roman Gareev <gareevroman@gmail.com>
14350 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14351 * config.in: Add undef of HAVE_isl.
14352 * configure: Regenerate.
14353 * configure.ac: Add definition of HAVE_isl.
14354 * graphite-blocking.c: Add checking of HAVE_isl.
14355 * graphite-dependences.c: Likewise.
14356 * graphite-interchange.c: Likewise.
14357 * graphite-isl-ast-to-gimple.c: Likewise.
14358 * graphite-optimize-isl.c: Likewise.
14359 * graphite-poly.c: Likewise.
14360 * graphite-scop-detection.c: Likewise.
14361 * graphite-sese-to-poly.c: Likewise.
14362 * graphite.c: Likewise.
14363 * toplev.c: Replace the checking of HAVE_cloog with the checking
14366 2014-08-18 Richard Biener <rguenther@suse.de>
14368 PR tree-optimization/62090
14369 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14370 (fold_builtin_3): Do not fold snprintf.
14371 (fold_builtin_4): Likewise.
14372 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14373 moved from builtins.c.
14374 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14375 (gimple_fold_builtin): Do not fold sprintf here.
14377 2014-08-18 Richard Biener <rguenther@suse.de>
14379 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14381 (maybe_canonicalize_mem_ref_addr): ... this function.
14382 (fold_stmt_1): Apply it here before all simplification.
14384 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
14387 * cgraph.h (cgraph_node::create_indirect_edge): Add
14388 compute_indirect_info param.
14389 * cgraph.c (cgraph_node::create_indirect_edge): Compute
14390 indirect_info only when it is required.
14391 * cgraphclones.c (cgraph_clone_edge): Do not recompute
14392 indirect_info fore cloned indirect edge.
14394 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14395 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14396 Anna Tikhonova <anna.tikhonova@intel.com>
14397 Ilya Tocar <ilya.tocar@intel.com>
14398 Andrey Turetskiy <andrey.turetskiy@intel.com>
14399 Ilya Verbin <ilya.verbin@intel.com>
14400 Kirill Yukhin <kirill.yukhin@intel.com>
14401 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14403 * config/i386/sse.md
14404 (define_mode_iterator VI8_AVX2_AVX512BW): New.
14405 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14407 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14408 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14409 Anna Tikhonova <anna.tikhonova@intel.com>
14410 Ilya Tocar <ilya.tocar@intel.com>
14411 Andrey Turetskiy <andrey.turetskiy@intel.com>
14412 Ilya Verbin <ilya.verbin@intel.com>
14413 Kirill Yukhin <kirill.yukhin@intel.com>
14414 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14416 * config/i386/sse.md
14417 (define_mode_iterator VF1_AVX512VL): New.
14418 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14419 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14422 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14423 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14424 Anna Tikhonova <anna.tikhonova@intel.com>
14425 Ilya Tocar <ilya.tocar@intel.com>
14426 Andrey Turetskiy <andrey.turetskiy@intel.com>
14427 Ilya Verbin <ilya.verbin@intel.com>
14428 Kirill Yukhin <kirill.yukhin@intel.com>
14429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14431 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14432 * config/i386/i386.md
14433 (define_code_iterator any_float): New.
14434 (define_code_attr floatsuffix): New.
14435 * config/i386/sse.md
14436 (define_mode_iterator VF1_128_256VL): New.
14437 (define_mode_iterator VF2_512_256VL): New.
14438 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14440 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
14441 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
14443 (define_mode_attr qq2pssuff): New.
14444 (define_mode_attr sselongvecmode): New.
14445 (define_mode_attr sselongvecmodelower): New.
14446 (define_mode_attr sseintvecmode3): New.
14447 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
14449 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
14450 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
14451 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
14452 (define_insn "ufloatv2siv2df2<mask_name>"): New.
14454 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14455 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14456 Anna Tikhonova <anna.tikhonova@intel.com>
14457 Ilya Tocar <ilya.tocar@intel.com>
14458 Andrey Turetskiy <andrey.turetskiy@intel.com>
14459 Ilya Verbin <ilya.verbin@intel.com>
14460 Kirill Yukhin <kirill.yukhin@intel.com>
14461 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14463 * config/i386/sse.md
14464 (define_mode_iterator VF2_AVX512VL): New.
14465 (define_mode_attr sseintvecmode2): New.
14466 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
14467 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
14468 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
14470 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
14472 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14474 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14477 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14478 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14479 Anna Tikhonova <anna.tikhonova@intel.com>
14480 Ilya Tocar <ilya.tocar@intel.com>
14481 Andrey Turetskiy <andrey.turetskiy@intel.com>
14482 Ilya Verbin <ilya.verbin@intel.com>
14483 Kirill Yukhin <kirill.yukhin@intel.com>
14484 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14486 * config/i386/i386.md
14487 (define_insn "*movoi_internal_avx"): Add evex version.
14488 (define_insn "*movti_internal"): Ditto.
14490 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14491 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14492 Anna Tikhonova <anna.tikhonova@intel.com>
14493 Ilya Tocar <ilya.tocar@intel.com>
14494 Andrey Turetskiy <andrey.turetskiy@intel.com>
14495 Ilya Verbin <ilya.verbin@intel.com>
14496 Kirill Yukhin <kirill.yukhin@intel.com>
14497 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14499 * config/i386/i386.md
14500 (define_attr "isa"): Add avx512dq, noavx512dq.
14501 (define_attr "enabled"): Ditto.
14502 * config/i386/sse.md
14503 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
14505 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14506 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14507 Anna Tikhonova <anna.tikhonova@intel.com>
14508 Ilya Tocar <ilya.tocar@intel.com>
14509 Andrey Turetskiy <andrey.turetskiy@intel.com>
14510 Ilya Verbin <ilya.verbin@intel.com>
14511 Kirill Yukhin <kirill.yukhin@intel.com>
14512 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14514 * config/i386/i386.c
14515 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
14516 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
14517 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
14518 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
14519 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
14520 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
14521 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
14522 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
14523 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
14524 * config/i386/sse.md
14525 (define_mode_iterator VMOVE): Allow V4TI mode.
14526 (define_mode_iterator V_AVX512VL): New.
14527 (define_mode_iterator V): New handling for AVX512VL.
14528 (define_insn "avx512f_load<mode>_mask"): Delete.
14529 (define_insn "<avx512>_load<mode>_mask"): New.
14530 (define_insn "avx512f_store<mode>_mask"): Delete.
14531 (define_insn "<avx512>_store<mode>_mask"): New.
14534 2014-08-18 Yury Gribov <y.gribov@samsung.com>
14537 * asan.c (instrument_derefs): Fix bitfield check.
14539 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14541 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
14542 * config/rs6000/htm.md (ttest): Remove clobber.
14543 * config/rs6000/predicates.md (any_mask_operand): New predicate.
14544 (and_operand): Reformat.
14545 (and_2rld_operand): New predicate.
14546 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
14548 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
14549 parameter. Handle AND directly.
14550 (rs6000_split_logical_di): Remove last parameter.
14551 (rs6000_split_logical): Remove last parameter. Remove obsolete
14553 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
14554 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
14555 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
14556 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
14557 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
14558 and 5 anonymous splitters): Delete.
14559 (and<mode>3): New expander.
14560 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
14561 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
14562 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
14563 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
14564 (floatdisf2_internal1): Remove clobbers.
14565 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
14566 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
14567 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
14568 (and<mode>3 for BOOL_128): Remove clobber.
14569 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
14570 rs6000_split_logical.
14571 (*bool<mode>3_internal for BOOL_128): Adjust call of
14572 rs6000_split_logical.
14573 (*boolc<mode>3_internal1 for BOOL_128,
14574 *boolc<mode>3_internal2 for BOOL_128,
14575 *boolcc<mode>3_internal1 for BOOL_128,
14576 *boolcc<mode>3_internal2 for BOOL_128,
14577 *eqv<mode>3_internal1 for BOOL_128,
14578 *eqv<mode>3_internal2 for BOOL_128,
14579 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
14580 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
14582 (*vec_reload_and_reg_<mptrsize>): Delete.
14584 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14586 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
14587 and split, *boolccsi3_internal3 and split): Delete.
14588 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
14589 *boolccdi3_internal3 and split): Delete.
14590 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
14591 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
14593 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14595 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
14596 and split, *boolcsi3_internal3 and split): Delete.
14597 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
14598 *boolcdi3_internal3 and split): Delete.
14599 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
14601 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14603 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
14604 <'u'>: Also support printing the low-order 16 bits.
14605 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
14606 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
14607 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
14608 *booldi3_internal3 and split): Delete.
14609 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
14610 *bool<mode>3_dot2): New.
14611 (two anonymous define_splits for non_logical_cint_operand): Merge.
14613 2014-08-17 Marek Polacek <polacek@redhat.com>
14614 Manuel López-Ibáñez <manu@gcc.gnu.org>
14617 * diagnostic.c (adjust_line): Add gcc_checking_assert.
14618 (diagnostic_show_locus): Don't print caret diagnostic
14619 if a column is larger than the line_width.
14621 2014-08-17 Roman Gareev <gareevroman@gmail.com>
14623 * common.opt: Make the ISL AST generator to be the main code generator
14626 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
14628 * wide-int.h (generic_wide_int): Declare as class instead of struct.
14630 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
14633 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
14635 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
14636 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
14637 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
14639 * config/pa/pa.md (begin_brtab): Delete insn.
14640 (end_brtab): Likewise.
14642 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14644 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
14646 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
14648 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
14649 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
14650 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
14651 (get_dynamic_type): Remove.
14652 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
14653 (clear_speculation): Bring to ipa-deivrt.h
14654 (get_class_context): Rename to ...
14655 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
14656 (contains_type_p): Update.
14657 (get_dynamic_type): Rename to ...
14658 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
14659 (possible_polymorphic_call_targets): UPdate.
14660 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
14661 * ipa-prop.c (ipa_analyze_call_uses): Update.
14663 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
14665 * doc/invoke.texi (SH options): Document missing processor variant
14666 options. Remove references to Hitachi. Undocument deprecated mspace
14669 2014-08-15 Jason Merrill <jason@redhat.com>
14671 * tree.c (type_hash_canon): Uncomment assert.
14673 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14675 * input.h (in_system_header_at): Add comment.
14677 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14680 * diagnostic.c (build_message_string): Make it extern.
14681 * diagnostic.h (build_message_string): Make it extern.
14683 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
14685 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
14686 load/store from/to non-floating class pseudo.
14688 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14690 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
14692 2014-08-15 Richard Biener <rguenther@suse.de>
14694 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
14695 (get_constraint_for_ssa_var): Remove dead code.
14696 (get_constraint_for_1): Adjust.
14697 (find_what_var_points_to): Likewise.
14698 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
14700 2014-08-15 Ilya Tocar <tocarip@gmail.com>
14703 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
14704 (_mm512_mask_cmpge_epu32_mask): Ditto.
14705 (_mm512_cmpge_epu32_mask): Ditto.
14706 (_mm512_mask_cmpge_epi64_mask): Ditto.
14707 (_mm512_cmpge_epi64_mask): Ditto.
14708 (_mm512_mask_cmpge_epu64_mask): Ditto.
14709 (_mm512_cmpge_epu64_mask): Ditto.
14710 (_mm512_mask_cmple_epi32_mask): Ditto.
14711 (_mm512_cmple_epi32_mask): Ditto.
14712 (_mm512_mask_cmple_epu32_mask): Ditto.
14713 (_mm512_cmple_epu32_mask): Ditto.
14714 (_mm512_mask_cmple_epi64_mask): Ditto.
14715 (_mm512_cmple_epi64_mask): Ditto.
14716 (_mm512_mask_cmple_epu64_mask): Ditto.
14717 (_mm512_cmple_epu64_mask): Ditto.
14718 (_mm512_mask_cmplt_epi32_mask): Ditto.
14719 (_mm512_cmplt_epi32_mask): Ditto.
14720 (_mm512_mask_cmplt_epu32_mask): Ditto.
14721 (_mm512_cmplt_epu32_mask): Ditto.
14722 (_mm512_mask_cmplt_epi64_mask): Ditto.
14723 (_mm512_cmplt_epi64_mask): Ditto.
14724 (_mm512_mask_cmplt_epu64_mask): Ditto.
14725 (_mm512_cmplt_epu64_mask): Ditto.
14726 (_mm512_mask_cmpneq_epi32_mask): Ditto.
14727 (_mm512_mask_cmpneq_epu32_mask): Ditto.
14728 (_mm512_cmpneq_epu32_mask): Ditto.
14729 (_mm512_mask_cmpneq_epi64_mask): Ditto.
14730 (_mm512_cmpneq_epi64_mask): Ditto.
14731 (_mm512_mask_cmpneq_epu64_mask): Ditto.
14732 (_mm512_cmpneq_epu64_mask): Ditto.
14733 (_mm512_castpd_ps): Ditto.
14734 (_mm512_castpd_si512): Ditto.
14735 (_mm512_castps_pd): Ditto.
14736 (_mm512_castps_si512): Ditto.
14737 (_mm512_castsi512_ps): Ditto.
14738 (_mm512_castsi512_pd): Ditto.
14739 (_mm512_castpd512_pd128): Ditto.
14740 (_mm512_castps512_ps128): Ditto.
14741 (_mm512_castsi512_si128): Ditto.
14742 (_mm512_castpd512_pd256): Ditto.
14743 (_mm512_castps512_ps256): Ditto.
14744 (_mm512_castsi512_si256): Ditto.
14745 (_mm512_castpd128_pd512): Ditto.
14746 (_mm512_castps128_ps512): Ditto.
14747 (_mm512_castsi128_si512): Ditto.
14748 (_mm512_castpd256_pd512): Ditto.
14749 (_mm512_castps256_ps512): Ditto.
14750 (_mm512_castsi256_si512): Ditto.
14751 (_mm512_cmpeq_epu32_mask): Ditto.
14752 (_mm512_mask_cmpeq_epu32_mask): Ditto.
14753 (_mm512_mask_cmpeq_epu64_mask): Ditto.
14754 (_mm512_cmpeq_epu64_mask): Ditto.
14755 (_mm512_cmpgt_epu32_mask): Ditto.
14756 (_mm512_mask_cmpgt_epu32_mask): Ditto.
14757 (_mm512_mask_cmpgt_epu64_mask): Ditto.
14758 (_mm512_cmpgt_epu64_mask): Ditto.
14759 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
14760 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
14761 * config/i386/i386.c (enum ix86_builtins): Add
14762 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
14763 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
14764 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
14765 (bdesc_args): Add __builtin_ia32_si512_256si,
14766 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
14767 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
14768 __builtin_ia32_pd512_pd.
14769 (ix86_expand_args_builtin): Handle new FTYPEs.
14770 * config/i386/sse.md (castmode): Add 512-bit modes.
14771 (AVX512MODE2P): New.
14772 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
14773 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
14775 2014-08-15 Richard Biener <rguenther@suse.de>
14777 * fold-const.c (tree_swap_operands_p): Put all constants
14778 last, also strip sign-changing NOPs when considering further
14779 canonicalization. Canonicalize also when optimizing for size.
14781 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14783 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
14784 one_match > zero_match case to just before simple_sequence.
14786 2014-08-15 Richard Biener <rguenther@suse.de>
14788 * data-streamer.h (streamer_string_index, string_for_index):
14790 * data-streamer-out.c (streamer_string_index): Make static.
14791 * data-streamer-in.c (string_for_index): Likewise.
14792 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
14793 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
14795 2014-08-15 Richard Biener <rguenther@suse.de>
14797 PR tree-optimization/62031
14798 * tree-data-ref.c (dr_analyze_indices): Do not set
14799 DR_UNCONSTRAINED_BASE.
14800 (dr_may_alias_p): All indirect accesses have to go the
14801 formerly DR_UNCONSTRAINED_BASE path.
14802 * tree-data-ref.h (struct indices): Remove
14803 unconstrained_base member.
14804 (DR_UNCONSTRAINED_BASE): Remove.
14806 2014-08-15 Jakub Jelinek <jakub@redhat.com>
14808 PR middle-end/62092
14809 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
14810 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
14811 in OMP_CLAUSE_MAP in some outer target region.
14813 2014-08-15 Bin Cheng <bin.cheng@arm.com>
14815 * tree-ssa-loop-ivopts.c (ivopts_data): New field
14816 name_expansion_cache.
14817 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
14818 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
14819 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
14820 (difference_cannot_overflow_p): New parameter. Use affine
14821 expansion for equality check.
14822 (iv_elimination_compare_lt): Pass new argument.
14824 2014-08-14 DJ Delorie <dj@redhat.com>
14826 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
14827 variables to the accumulator.
14829 * config/rl78/predicates.md (rl78_near_mem_operand): New.
14830 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
14831 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
14832 with far-far moves.
14834 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
14835 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
14836 (umulqihi3_virt): Likewise.
14837 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
14838 (umulqihi3_real): Likewise.
14840 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
14842 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
14844 PR tree-optimization/62091
14845 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
14846 function_entry_reached.
14847 (walk_aliased_vdefs): Clear it here.
14848 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
14850 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
14852 * ipa-utils.h (compare_virtual_tables): Declare.
14853 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
14855 2014-08-14 Marek Polacek <polacek@redhat.com>
14858 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
14859 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
14861 2014-08-14 Tom de Vries <tom@codesourcery.com>
14863 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
14865 2014-08-14 Tom de Vries <tom@codesourcery.com>
14867 PR rtl-optimization/62004
14868 PR rtl-optimization/62030
14869 * ifcvt.c (rtx_interchangeable_p): New function.
14870 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
14871 * emit-rtl.h (mem_attrs_eq_p): Declare.
14873 2014-08-14 Roman Gareev <gareevroman@gmail.com>
14875 * graphite-scop-detection.c:
14876 Add inclusion of cp-tree.h.
14877 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
14878 in case they are pointers to object types
14880 2014-08-14 Richard Biener <rguenther@suse.de>
14882 * BASE-VER: Change to 5.0.0
14884 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14885 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14886 Anna Tikhonova <anna.tikhonova@intel.com>
14887 Ilya Tocar <ilya.tocar@intel.com>
14888 Andrey Turetskiy <andrey.turetskiy@intel.com>
14889 Ilya Verbin <ilya.verbin@intel.com>
14890 Kirill Yukhin <kirill.yukhin@intel.com>
14891 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14893 * config/i386/sse.md (define_mode_attr avx512): New.
14894 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
14896 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
14897 (define_mode_attr ssse3_avx2): Ditto.
14898 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
14899 (define_mode_attr avx2_avx512bw): New.
14900 (define_mode_attr ssedoublemodelower): New.
14901 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
14902 V32HI, V64QI modes.
14903 (define_mode_attr ssebytemode): Allow V8DI modes.
14904 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
14905 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
14906 (define_mode_attr ssePSmode2): New.
14907 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
14908 V16HI, V32HI modes.
14909 (define_mode_attr dbpsadbwmode): New.
14910 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
14911 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
14912 (vi8_sse4_1_avx2_avx512): New.
14913 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
14915 (define_mode_attr blendbits): Move before its immediate use.
14917 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14918 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14919 Anna Tikhonova <anna.tikhonova@intel.com>
14920 Ilya Tocar <ilya.tocar@intel.com>
14921 Andrey Turetskiy <andrey.turetskiy@intel.com>
14922 Ilya Verbin <ilya.verbin@intel.com>
14923 Kirill Yukhin <kirill.yukhin@intel.com>
14924 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14926 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
14927 * config/i386/subst.md
14928 (define_mode_iterator SUBST_V): Update.
14929 (define_mode_iterator SUBST_A): Ditto.
14930 (define_subst_attr "mask_operand7"): New.
14931 (define_subst_attr "mask_operand10"): New.
14932 (define_subst_attr "mask_operand_arg34") : New.
14933 (define_subst_attr "mask_expand_op3"): New.
14934 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
14935 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
14936 (define_subst_attr "mask_avx512vl_condition"): New.
14937 (define_subst_attr "round_mask_operand4"): Ditto.
14938 (define_subst_attr "round_mask_scalar_op3"): Delete.
14939 (define_subst_attr "round_mask_op4"): New.
14940 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
14942 (define_subst_attr "round_modev8sf_condition"): New.
14943 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
14945 (define_subst_attr "round_saeonly_mask_operand4"): New.
14946 (define_subst_attr "round_saeonly_mask_op4"): New.
14947 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
14948 V8DImode, V16SImode.
14949 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
14950 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
14951 (define_subst_attr "mask_expand4_args"): New.
14952 (define_subst "mask_expand4"): New.
14954 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14955 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14956 Anna Tikhonova <anna.tikhonova@intel.com>
14957 Ilya Tocar <ilya.tocar@intel.com>
14958 Andrey Turetskiy <andrey.turetskiy@intel.com>
14959 Ilya Verbin <ilya.verbin@intel.com>
14960 Kirill Yukhin <kirill.yukhin@intel.com>
14961 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14963 * config/i386/i386.md
14964 (define_attr "isa"): Add avx512bw,noavx512bw.
14965 (define_attr "enabled"): Ditto.
14966 (define_split): Add 32/64-bit mask logic.
14967 (define_insn "*k<logic>qi"): New.
14968 (define_insn "*k<logic>hi"): New.
14969 (define_insn "*anddi_1"): Add mask version.
14970 (define_insn "*andsi_1"): Ditto.
14971 (define_insn "*<code><mode>_1"): Ditto.
14972 (define_insn "*<code>hi_1"): Ditto.
14973 (define_insn "kxnor<mode>"): New.
14974 (define_insn "kunpcksi"): New.
14975 (define_insn "kunpckdi"): New.
14976 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
14977 (define_insn "*one_cmplhi2_1"): Ditto.
14979 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14981 Anna Tikhonova <anna.tikhonova@intel.com>
14982 Ilya Tocar <ilya.tocar@intel.com>
14983 Andrey Turetskiy <andrey.turetskiy@intel.com>
14984 Ilya Verbin <ilya.verbin@intel.com>
14985 Kirill Yukhin <kirill.yukhin@intel.com>
14986 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14988 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
14991 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14993 Anna Tikhonova <anna.tikhonova@intel.com>
14994 Ilya Tocar <ilya.tocar@intel.com>
14995 Andrey Turetskiy <andrey.turetskiy@intel.com>
14996 Ilya Verbin <ilya.verbin@intel.com>
14997 Kirill Yukhin <kirill.yukhin@intel.com>
14998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15000 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15002 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15003 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15004 xmm/ymm16+ when availble.
15005 * config/i386/i386.h
15006 (HARD_REGNO_NREGS): Add mask regs.
15007 (VALID_AVX512F_REG_MODE): Ditto.
15008 (VALID_AVX512F_REG_MODE) : Define.
15009 (VALID_MASK_AVX512BW_MODE): Ditto.
15010 (reg_class) (MASK_REG_P(X)): Define.
15011 * config/i386/i386.md: Do not split long moves with mask register,
15012 use kmovb if avx512bw is availible.
15013 (movdi_internal): Handle mask registers.
15015 2014-08-14 Richard Biener <rguenther@suse.de>
15017 PR tree-optimization/62081
15018 * tree-ssa-loop.c (pass_fix_loops): New pass.
15019 (pass_tree_loop::gate): Do not fixup loops here.
15020 * tree-pass.h (make_pass_fix_loops): Declare.
15021 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15023 2014-08-14 Richard Biener <rguenther@suse.de>
15025 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15026 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15028 2014-08-14 Richard Biener <rguenther@suse.de>
15030 PR tree-optimization/62090
15031 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15032 (fold_builtin_2): Do not fold sprintf.
15033 (fold_builtin_3): Likewise.
15034 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15035 moved from builtins.c.
15036 (gimple_fold_builtin): Fold sprintf.
15038 2014-08-14 Richard Biener <rguenther@suse.de>
15040 PR rtl-optimization/62079
15041 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15044 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15046 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15047 current_function_decl.
15049 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15051 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15052 cgraph_function_node to cgraph_node::function_symbol
15055 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15057 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15058 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15060 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15062 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15065 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15067 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15070 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15073 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15074 any registers that are used in mem_insn.
15076 2014-08-12 Steve Ellcey <sellcey@mips.com>
15078 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15080 2014-08-12 Steve Ellcey <sellcey@mips.com>
15082 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15083 (MULTILIB_DIRNAMES): Ditto.
15084 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15085 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15086 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15087 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15088 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15089 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15091 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15094 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15095 of __ARM_SIZEOF_WCHAR_T.
15097 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15100 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15101 Remove unnecessary attributes.
15103 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15105 * internal-fn.c (init_internal_fns): Fix off-by-one.
15107 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15108 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15109 Anna Tikhonova <anna.tikhonova@intel.com>
15110 Ilya Tocar <ilya.tocar@intel.com>
15111 Andrey Turetskiy <andrey.turetskiy@intel.com>
15112 Ilya Verbin <ilya.verbin@intel.com>
15113 Kirill Yukhin <kirill.yukhin@intel.com>
15114 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15116 * config/i386/i386.c (standard_sse_constant_opcode): Use
15117 vpxord/vpternlog if avx512 is availible.
15119 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15121 PR middle-end/62103
15122 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15123 bitfields, that is when size doesn't match the size of type or the
15124 size of the constructor.
15126 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15128 * config/rs6000/constraints.md (wh constraint): New constraint,
15129 for FP registers if direct move is available.
15130 (wi constraint): New constraint, for VSX/FP registers that can
15131 handle 64-bit integers.
15132 (wj constraint): New constraint for VSX/FP registers that can
15133 handle 64-bit integers for direct moves.
15134 (wk constraint): New constraint for VSX/FP registers that can
15135 handle 64-bit doubles for direct moves.
15136 (wy constraint): Make documentation match implementation.
15138 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15139 scalar_in_vmx_p field to simplify tests of whether SFmode or
15140 DFmode can go in the Altivec registers.
15141 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15142 (rs6000_setup_reg_addr_masks): Likewise.
15143 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15144 field, and wh/wi/wj/wk constraints.
15145 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15146 the wh/wi/wj/wk constraints.
15147 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15148 upper registers, prefer VSX registers unless the operation is a
15149 memory operation with REG+OFFSET addressing.
15151 * config/rs6000/vsx.md (VSr mode attribute): Add support for
15152 DImode. Change SFmode to use ww constraint instead of d to allow
15153 SF registers in the upper registers.
15156 (VSr5): Fix thinko in comment.
15157 (VSa): New mode attribute that is an alternative to wa, that
15158 returns the VSX register class that a mode can go in, but may not
15159 be the preferred register class.
15160 (VS_64dm): New mode attribute for appropriate register classes for
15161 referencing 64-bit elements of vectors for direct moves and normal
15163 (VS_64reg): Likewise.
15164 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15165 register allocator to only registers the data type can handle.
15166 (vsx_le_perm_load_<mode>): Likewise.
15167 (vsx_le_perm_store_<mode>): Likewise.
15168 (vsx_xxpermdi2_le_<mode>): Likewise.
15169 (vsx_xxpermdi4_le_<mode>): Likewise.
15170 (vsx_lxvd2x2_le_<mode>): Likewise.
15171 (vsx_lxvd2x4_le_<mode>): Likewise.
15172 (vsx_stxvd2x2_le_<mode>): Likewise.
15173 (vsx_add<mode>3): Likewise.
15174 (vsx_sub<mode>3): Likewise.
15175 (vsx_mul<mode>3): Likewise.
15176 (vsx_div<mode>3): Likewise.
15177 (vsx_tdiv<mode>3_internal): Likewise.
15178 (vsx_fre<mode>2): Likewise.
15179 (vsx_neg<mode>2): Likewise.
15180 (vsx_abs<mode>2): Likewise.
15181 (vsx_nabs<mode>2): Likewise.
15182 (vsx_smax<mode>3): Likewise.
15183 (vsx_smin<mode>3): Likewise.
15184 (vsx_sqrt<mode>2): Likewise.
15185 (vsx_rsqrte<mode>2): Likewise.
15186 (vsx_tsqrt<mode>2_internal): Likewise.
15187 (vsx_fms<mode>4): Likewise.
15188 (vsx_nfma<mode>4): Likewise.
15189 (vsx_eq<mode>): Likewise.
15190 (vsx_gt<mode>): Likewise.
15191 (vsx_ge<mode>): Likewise.
15192 (vsx_eq<mode>_p): Likewise.
15193 (vsx_gt<mode>_p): Likewise.
15194 (vsx_ge<mode>_p): Likewise.
15195 (vsx_xxsel<mode>): Likewise.
15196 (vsx_xxsel<mode>_uns): Likewise.
15197 (vsx_copysign<mode>3): Likewise.
15198 (vsx_float<VSi><mode>2): Likewise.
15199 (vsx_floatuns<VSi><mode>2): Likewise.
15200 (vsx_fix_trunc<mode><VSi>2): Likewise.
15201 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15202 (vsx_x<VSv>r<VSs>i): Likewise.
15203 (vsx_x<VSv>r<VSs>ic): Likewise.
15204 (vsx_btrunc<mode>2): Likewise.
15205 (vsx_b2trunc<mode>2): Likewise.
15206 (vsx_floor<mode>2): Likewise.
15207 (vsx_ceil<mode>2): Likewise.
15208 (vsx_<VS_spdp_insn>): Likewise.
15209 (vsx_xscvspdp): Likewise.
15210 (vsx_xvcvspuxds): Likewise.
15211 (vsx_float_fix_<mode>2): Likewise.
15212 (vsx_set_<mode>): Likewise.
15213 (vsx_extract_<mode>_internal1): Likewise.
15214 (vsx_extract_<mode>_internal2): Likewise.
15215 (vsx_extract_<mode>_load): Likewise.
15216 (vsx_extract_<mode>_store): Likewise.
15217 (vsx_splat_<mode>): Likewise.
15218 (vsx_xxspltw_<mode>): Likewise.
15219 (vsx_xxspltw_<mode>_direct): Likewise.
15220 (vsx_xxmrghw_<mode>): Likewise.
15221 (vsx_xxmrglw_<mode>): Likewise.
15222 (vsx_xxsldwi_<mode>): Likewise.
15223 (vsx_xscvdpspn): Tighten constraints to only use register classes
15225 (vsx_xscvspdpn): Likewise.
15226 (vsx_xscvdpspn_scalar): Likewise.
15228 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15229 wj, and wk constraints.
15230 (GPR_REG_CLASS_P): New helper macro for register classes targeting
15231 general purpose registers.
15233 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15235 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15236 DImode instead of wm. Use wk constraint for direct move of DFmode
15238 (extendsidi2_lfiwax): Likewise.
15239 (lfiwax): Likewise.
15240 (lfiwzx): Likewise.
15241 (movdi_internal64): Likewise.
15243 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15244 wk constraints. Make the wy constraint documentation match them
15247 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
15249 Replacement of isl_int by isl_val
15250 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15251 (compute_bounds_for_param): use isl_val instead of isl_int
15252 (compute_bounds_for_loop): likewise
15253 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15254 (build_linearized_memory_access): use isl_val instead of isl_int
15255 (pdr_stride_in_loop): likewise
15256 * graphite-optimize-isl.c:
15257 (getPrevectorMap): use isl_val instead of isl_int
15259 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15260 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15261 (extern the_isl_ctx): declare
15262 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15263 (extract_affine_gmp): likewise
15265 (build_loop_iteration_domains): likewise
15266 (add_param_constraints): likewise
15268 2014-08-11 Richard Biener <rguenther@suse.de>
15270 PR tree-optimization/62075
15271 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15272 handle uses in patterns.
15274 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15275 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15276 Anna Tikhonova <anna.tikhonova@intel.com>
15277 Ilya Tocar <ilya.tocar@intel.com>
15278 Andrey Turetskiy <andrey.turetskiy@intel.com>
15279 Ilya Verbin <ilya.verbin@intel.com>
15280 Kirill Yukhin <kirill.yukhin@intel.com>
15281 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15283 * common/config/i386/i386-common.c
15284 (OPTION_MASK_ISA_AVX512VL_SET): Define.
15285 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15286 (ix86_handle_option): Handle OPT_mavx512vl.
15287 * config/i386/cpuid.h (bit_AVX512VL): Define.
15288 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15289 set -mavx512vl accordingly.
15290 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15291 OPTION_MASK_ISA_AVX512VL.
15292 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15293 (ix86_option_override_internal): Define PTA_AVX512VL, handle
15294 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15295 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15296 * config/i386/i386.h (TARGET_AVX512VL): Define.
15297 (TARGET_AVX512VL_P(x)): Ditto.
15298 * config/i386/i386.opt: Add mavx512vl.
15300 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
15302 PR tree-optimization/62073
15303 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15306 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15307 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15308 Anna Tikhonova <anna.tikhonova@intel.com>
15309 Ilya Tocar <ilya.tocar@intel.com>
15310 Andrey Turetskiy <andrey.turetskiy@intel.com>
15311 Ilya Verbin <ilya.verbin@intel.com>
15312 Kirill Yukhin <kirill.yukhin@intel.com>
15313 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15315 * common/config/i386/i386-common.c
15316 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15317 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15318 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15319 (ix86_handle_option): Handle OPT_mavx512bw.
15320 * config/i386/cpuid.h (bit_AVX512BW): Define.
15321 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15322 set -mavx512bw accordingly.
15323 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15324 OPTION_MASK_ISA_AVX512BW.
15325 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15326 (ix86_option_override_internal): Define PTA_AVX512BW, handle
15327 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15328 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15329 * config/i386/i386.h (TARGET_AVX512BW): Define.
15330 (TARGET_AVX512BW_P(x)): Ditto.
15331 * config/i386/i386.opt: Add mavx512bw.
15333 2014-08-11 Richard Biener <rguenther@suse.de>
15335 PR tree-optimization/62070
15336 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15337 Remove SSA checking.
15339 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15341 * asan.c (asan_check_flags): New enum.
15342 (build_check_stmt_with_calls): Removed function.
15343 (build_check_stmt): Split inlining logic to
15344 asan_expand_check_ifn.
15345 (instrument_derefs): Rename parameter.
15346 (instrument_mem_region_access): Rename parameter.
15347 (instrument_strlen_call): Likewise.
15348 (asan_expand_check_ifn): New function.
15349 (asan_instrument): Remove old code.
15350 (pass_sanopt::execute): Change handling of
15351 asan-instrumentation-with-call-threshold.
15352 (asan_clear_shadow): Fix formatting.
15353 (asan_function_start): Likewise.
15354 (asan_emit_stack_protection): Likewise.
15355 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15356 Update description.
15357 * internal-fn.c (expand_ASAN_CHECK): New function.
15358 * internal-fn.def (ASAN_CHECK): New internal function.
15359 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15360 Update description.
15361 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15362 * tree.c: Small comment fix.
15364 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15366 * gimple.c (gimple_call_fnspec): Support internal functions.
15367 (gimple_call_return_flags): Use const.
15368 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15369 * internal-fn.def: Add fnspec information.
15370 * internal-fn.h (internal_fn_fnspec): New function.
15371 (init_internal_fns): Declare new function.
15372 * internal-fn.c (internal_fn_fnspec_array): New global variable.
15373 (init_internal_fns): New function.
15374 * tree-core.h: Update macro call.
15375 * tree.c (build_common_builtin_nodes): Initialize internal fns.
15377 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
15379 * lto-streamer.h (struct output_block::symbol): Change from
15380 struct symtab_node to plain symtab_node.
15381 (referenced_from_this_partition_p): Change first parameter
15382 from struct symtab_node to plain symtab_node.
15384 2014-08-10 Marek Polacek <polacek@redhat.com>
15387 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15389 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
15391 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15392 DECL correctly; do not give up on types in static storage.
15394 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
15396 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15398 2014-08-09 Roman Gareev <gareevroman@gmail.com>
15400 * graphite-isl-ast-to-gimple.c:
15401 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15403 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15405 2014-08-08 Guozhi Wei <carrot@google.com>
15407 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15409 2014-08-08 Cary Coutant <ccoutant@google.com>
15411 * dwarf2out.c (get_skeleton_type_unit): Remove.
15412 (output_skeleton_debug_sections): Remove skeleton type units.
15413 (output_comdat_type_unit): Likewise.
15414 (dwarf2out_finish): Likewise.
15416 2014-08-07 Yi Yang <ahyangyi@google.com>
15418 * predict.c (expr_expected_value_1): Remove the redundant assignment.
15420 2014-08-08 Richard Biener <rguenther@suse.de>
15422 * lto-streamer.h (struct lto_input_block): Make it a class
15423 with a constructor.
15424 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15425 (struct lto_function_header, struct lto_simple_header,
15426 struct lto_simple_header_with_strings,
15427 struct lto_decl_header, struct lto_function_header): Make
15428 a simple inheritance hieararchy. Remove unused fields.
15429 (struct lto_asm_header): Remove.
15430 * lto-streamer-out.c (produce_asm): Adjust.
15431 (lto_output_toplevel_asms): Likewise.
15432 (produce_asm_for_decls): Likewise.
15433 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15434 * data-streamer-in.c (string_for_index): Likewise.
15435 * ipa-inline-analysis.c (inline_read_section): Likewise.
15436 * ipa-prop.c (ipa_prop_read_section): Likewise.
15437 (read_replacements_section): Likewise.
15438 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15439 * lto-section-in.c (lto_create_simple_input_block): Likewise.
15440 (lto_destroy_simple_input_block): Likewise.
15441 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
15442 (lto_input_toplevel_asms): Likewise.
15444 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
15445 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15446 Anna Tikhonova <anna.tikhonova@intel.com>
15447 Ilya Tocar <ilya.tocar@intel.com>
15448 Andrey Turetskiy <andrey.turetskiy@intel.com>
15449 Ilya Verbin <ilya.verbin@intel.com>
15450 Kirill Yukhin <kirill.yukhin@intel.com>
15451 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15453 * common/config/i386/i386-common.c
15454 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
15455 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
15456 (ix86_handle_option): Handle OPT_mavx512dq.
15457 * config/i386/cpuid.h (bit_AVX512DQ): Define.
15458 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
15459 set -mavx512dq accordingly.
15460 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15461 OPTION_MASK_ISA_AVX512DQ.
15462 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
15463 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
15464 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
15465 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
15466 * config/i386/i386.h (TARGET_AVX512DQ): Define.
15467 (TARGET_AVX512DQ_P(x)): Ditto.
15468 * config/i386/i386.opt: Add mavx512dq.
15470 2014-08-08 Richard Biener <rguenther@suse.de>
15472 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
15473 target_percent, target_percent_s): Export.
15474 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
15475 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
15476 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
15477 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
15478 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
15479 Move to gimple-fold.c.
15480 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
15482 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
15483 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
15484 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
15485 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
15486 (rewrite_call_expr_array): Remove.
15487 (fold_builtin_sprintf_chk): Likewise.
15488 (fold_builtin_snprintf_chk): Likewise.
15489 (fold_builtin_varargs): Remove handling of sprintf_chk,
15490 vsprintf_chk, snprintf_chk and vsnprintf_chk.
15491 (gimple_fold_builtin_sprintf_chk): Remove.
15492 (gimple_fold_builtin_snprintf_chk): Likewise.
15493 (gimple_fold_builtin_varargs): Likewise.
15494 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
15495 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
15496 * gimple.c (gimple_seq_add_seq_without_update): New function.
15497 * gimple.h (gimple_seq_add_seq_without_update): Declare.
15498 * gimple-fold.c: Include output.h.
15499 (gsi_replace_with_seq_vops): New function, split out from ...
15500 (gimplify_and_update_call_from_tree): ... here.
15501 (replace_call_with_value): New function.
15502 (replace_call_with_call_and_fold): Likewise.
15503 (var_decl_component_p): Moved from builtins.c.
15504 (gimple_fold_builtin_memory_op): Moved from builtins.c
15505 fold_builtin_memory_op and rewritten to GIMPLE.
15506 (gimple_fold_builtin_memset): Likewise.
15507 (gimple_fold_builtin_strcpy): Likewise.
15508 (gimple_fold_builtin_strncpy): Likewise.
15509 (gimple_fold_builtin_strcat): Likewise.
15510 (gimple_fold_builtin_fputs): Likewise.
15511 (gimple_fold_builtin_memory_chk): Likewise.
15512 (gimple_fold_builtin_stxcpy_chk): Likewise.
15513 (gimple_fold_builtin_stxncpy_chk): Likewise.
15514 (gimple_fold_builtin_snprintf_chk): Likewise.
15515 (gimple_fold_builtin_sprintf_chk): Likewise.
15516 (gimple_fold_builtin_strlen): New function.
15517 (gimple_fold_builtin_with_strlen): New function split out from
15518 gimple_fold_builtin.
15519 (gimple_fold_builtin): Change signature and handle
15520 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
15521 here. Call gimple_fold_builtin_with_strlen.
15522 (gimple_fold_call): Adjust.
15524 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
15526 * calls.c (precompute_arguments): Check
15527 promoted_for_signed_and_unsigned_p and set the promoted mode.
15528 (promoted_for_signed_and_unsigned_p): New function.
15529 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15530 and set the promoted mode.
15531 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
15532 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
15533 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
15536 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
15538 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
15539 instead of SUBREG_PROMOTED_UNSIGNED_SET.
15540 (expand_call): Likewise.
15541 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
15542 to get promoted mode.
15543 * combine.c (record_promoted_value): Skip > 0 comparison with
15544 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
15545 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
15546 of SUBREG_PROMOTED_UNSIGNED_P.
15547 (convert_modes): Likewise.
15548 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
15549 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
15550 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
15551 SUBREG_PROMOTED_UNSIGNED_SET.
15552 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
15553 instead of SUBREG_PROMOTED_UNSIGNED_SET.
15554 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
15555 SUBREG_PROMOTED_SET.
15556 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
15557 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
15558 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
15559 of SUBREG_PROMOTED_UNSIGNED_P.
15560 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
15561 (SUBREG_PROMOTED_SET): New define.
15562 (SUBREG_PROMOTED_GET): Likewise.
15563 (SUBREG_PROMOTED_SIGN): Likewise.
15564 (SUBREG_PROMOTED_SIGNED_P): Likewise.
15565 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
15566 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
15567 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
15568 instead of SUBREG_PROMOTED_UNSIGNED_GET.
15569 (nonzero_bits1): Skip > 0 comparison with the results as
15570 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
15571 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
15572 of !SUBREG_PROMOTED_UNSIGNED_P.
15573 * simplify-rtx.c (simplify_unary_operation_1): Use new
15574 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
15575 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
15576 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
15577 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
15579 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
15581 * ipa-devirt.c: Include gimple-pretty-print.h
15582 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
15584 (decl_maybe_in_construction_p): Fix conditional on cdtor check
15585 (get_polymorphic_call_info): Fix return value
15586 (type_change_info): New sturcture based on ipa-prop
15588 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
15589 based on ipa-prop variant.
15590 (extr_type_from_vtbl_ptr_store): New function
15591 based on ipa-prop variant.
15592 (record_known_type): New function.
15593 (check_stmt_for_type_change): New function.
15594 (get_dynamic_type): New function.
15595 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
15596 * tree-ssa-pre.c: ipa-utils.h
15597 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
15598 machinery; sanity check with ipa-prop devirtualization.
15599 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
15602 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
15604 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
15605 * alias.c, cfgexpand.c, cgraphbuild.c,
15606 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
15607 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
15608 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
15609 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
15610 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
15611 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15612 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
15613 dse.c, except.c, gengtype.c, gimple-expr.c,
15614 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
15615 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
15616 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
15617 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
15618 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
15619 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
15621 * pointer-set.c: Remove file.
15622 * pointer-set.h: Remove file.
15624 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15626 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
15627 * config/arm/types.md (f_sels, f_seld): Delete.
15629 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15631 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
15632 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
15633 (aarch64_movdi_<mode>high): Likewise.
15634 (aarch64_mov<mode>high_di): Likewise.
15635 (aarch64_movdi_<mode>low): Likewise.
15636 (aarch64_mov<mode>low_di): Likewise.
15637 (aarch64_movtilow_tilow): Likewise.
15638 Add comment explaining usage of fp,simd attributes and of
15639 TARGET_FLOAT and TARGET_SIMD.
15641 2014-08-07 Ian Bolton <ian.bolton@arm.com>
15642 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15644 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
15645 Use MOVN when one of the half-words is 0xffff.
15647 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
15649 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
15651 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15653 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
15654 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
15655 (rfs_str): String corresponding to RFS_* constants.
15656 (rank_for_schedule_stats_t): New typedef.
15657 (rank_for_schedule_stats): New static variable.
15658 (rfs_result): New static function.
15659 (rank_for_schedule): Track statistics for deciding heuristics.
15660 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
15662 (ready_sort): Use them for debug printouts.
15663 (schedule_block): Init statistics state. Print statistics on
15664 rank_for_schedule decisions.
15666 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15668 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
15670 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
15672 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
15675 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
15677 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
15678 function to not conflict.
15679 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
15680 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
15681 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
15682 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
15683 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
15686 2014-08-07 Marek Polacek <polacek@redhat.com>
15688 * fold-const.c (fold_binary_loc): Add folding of
15689 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
15691 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
15693 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
15694 instead of type size.
15695 (ASM_FINISH_DECLARE_OBJECT): Likewise.
15697 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
15699 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
15700 (*thumb1_movqi_insn): Likewise.
15701 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
15703 2014-08-07 Tom de Vries <tom@codesourcery.com>
15705 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
15706 (glibc_2_11_or_earlier): Remove effective-target keywords.
15708 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15710 * config/arm/arm.c (bdesc_2arg): Fix typo.
15711 (arm_atomic_assign_expand_fenv): Remove The default implementation.
15713 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
15715 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
15717 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
15720 * haifa-sched.c (advance_one_cycle): Fix dump.
15721 (schedule_block): Don't advance cycle if we are already at the
15722 beginning of the cycle.
15724 2014-08-06 Martin Jambor <mjambor@suse.cz>
15727 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
15729 2014-08-06 Richard Biener <rguenther@suse.de>
15732 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
15734 (lto_input_tree): Pop SCCs here.
15736 2014-08-06 Richard Biener <rguenther@suse.de>
15738 PR tree-optimization/61320
15739 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
15740 handle misaligned loads.
15742 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
15744 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
15745 (aarch64_expand_vec_perm_const): Check for dup before zip.
15747 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15749 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
15750 CONST_INT_P instead of GET_CODE and compare.
15751 (aarch64_select_cc_mode): Likewise.
15752 (aarch64_print_operand): Likewise.
15753 (aarch64_rtx_costs): Likewise.
15754 (aarch64_simd_valid_immediate): Likewise.
15755 (aarch64_simd_check_vect_par_cnst_half): Likewise.
15756 (aarch64_simd_emit_pair_result_insn): Likewise.
15758 2014-08-05 David Malcolm <dmalcolm@redhat.com>
15760 * gdbhooks.py (find_gcc_source_dir): New helper function.
15761 (class PassNames): New class, locating and parsing passes.def.
15762 (class BreakOnPass): New command "break-on-pass".
15764 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
15766 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
15769 2014-08-05 Richard Biener <rguenther@suse.de>
15771 PR rtl-optimization/61672
15772 * emit-rtl.h (mem_attrs_eq_p): Declare.
15773 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
15774 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
15775 * cfgcleanup.c (merge_memattrs): Likewise.
15776 Include emit-rtl.h.
15778 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15780 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
15781 rather than singleton vectors.
15782 (vqdmlsls_lane_s32): Likewise.
15784 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15786 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
15787 Use VSDQ_HSI mode iterator.
15788 (aarch64_sqrdmulh_laneq<mode>): Likewise.
15789 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
15790 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
15791 Use BUILTIN_VDQHS macro.
15792 (sqrdmulh_laneq): Likewise.
15793 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
15794 (vqdmlals_laneq_s32): Likewise.
15795 (vqdmlslh_laneq_s16): Likewise.
15796 (vqdmlsls_laneq_s32): Likewise.
15797 (vqdmulhh_laneq_s16): Likewise.
15798 (vqdmulhs_laneq_s32): Likewise.
15799 (vqrdmulhh_laneq_s16): Likewise.
15800 (vqrdmulhs_laneq_s32): Likewise.
15802 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15804 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
15805 (vmuld_laneq_f64): Likewise.
15806 (vmuls_laneq_f32): Likewise.
15807 (vmul_n_f64): Likewise.
15808 (vmuld_lane_f64): Reimplement in C.
15809 (vmuls_lane_f32): Likewise.
15811 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15813 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
15815 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
15817 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15819 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
15820 (rbitsi2): Likewise.
15821 (*arm_rev): Set predicable and predicable_short_it attributes.
15823 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15825 * convert.c (convert_to_integer): Guard transformation to lrint by
15828 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15830 * config/aarch64/aarch64-builtins.c
15831 (aarch64_simd_builtin_type_mode): Delete.
15832 (v8qi_UP): Remap to V8QImode.
15833 (v4hi_UP): Remap to V4HImode.
15834 (v2si_UP): Remap to V2SImode.
15835 (v2sf_UP): Remap to V2SFmode.
15836 (v1df_UP): Remap to V1DFmode.
15837 (di_UP): Remap to DImode.
15838 (df_UP): Remap to DFmode.
15839 (v16qi_UP):V16QImode.
15840 (v8hi_UP): Remap to V8HImode.
15841 (v4si_UP): Remap to V4SImode.
15842 (v4sf_UP): Remap to V4SFmode.
15843 (v2di_UP): Remap to V2DImode.
15844 (v2df_UP): Remap to V2DFmode.
15845 (ti_UP): Remap to TImode.
15846 (ei_UP): Remap to EImode.
15847 (oi_UP): Remap to OImode.
15848 (ci_UP): Map to CImode.
15849 (xi_UP): Remap to XImode.
15850 (si_UP): Remap to SImode.
15851 (sf_UP): Remap to SFmode.
15852 (hi_UP): Remap to HImode.
15853 (qi_UP): Remap to QImode.
15854 (aarch64_simd_builtin_datum): Make mode a machine_mode.
15855 (VAR1): Build builtin name.
15856 (aarch64_init_simd_builtins): Remove dead code.
15858 2014-08-05 Roman Gareev <gareevroman@gmail.com>
15860 * graphite-isl-ast-to-gimple.c:
15861 (set_options): New function.
15862 (scop_to_isl_ast): Add calling of set_options.
15864 2014-08-05 Jakub Jelinek <jakub@redhat.com>
15866 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
15867 (analyze_iv_to_split_insn): Don't initialize them.
15868 (get_ivts_expr): Removed.
15869 (allocate_basic_variable, insert_base_initialization): Use
15870 SET_SRC instead of *get_ivts_expr.
15871 (split_iv): Use &SET_SRC instead of get_ivts_expr.
15873 2014-08-05 Roman Gareev <gareevroman@gmail.com>
15875 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
15876 (translate_isl_ast_for_loop): Add checking of the
15877 flag_loop_parallelize_all.
15878 (ast_build_before_for): New function.
15879 (scop_to_isl_ast): Add checking of the
15880 flag_loop_parallelize_all.
15881 * graphite-dependences.c: Move the defenition of the
15882 scop_get_dependences from graphite-optimize-isl.c to this file.
15883 (apply_schedule_on_deps): Add checking of the ux's emptiness.
15884 (carries_deps): Add checking of the x's value.
15885 * graphite-optimize-isl.c: Move the defenition of the
15886 scop_get_dependences to graphite-dependences.c.
15887 * graphite-poly.h: Add declarations of scop_get_dependences
15890 2014-08-04 Rohit <rohitarulraj@freescale.com>
15893 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
15895 (alt_reg_names): Likewise.
15896 (rs6000_dwarf_register_span): For SPE high registers, replace
15897 dwarf register numbers with GCC hard register numbers.
15898 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
15899 (rs6000_dbx_register_number): For SPE high registers, return dwarf
15900 register number for the corresponding GCC hard register number.
15901 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
15902 newly added GCC hard register numbers for SPE high registers.
15903 (DWARF_FRAME_REGISTERS): Likewise.
15904 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
15905 (DWARF_FRAME_REGNUM): Likewise.
15906 (FIXED_REGISTERS): Likewise.
15907 (CALL_USED_REGISTERS): Likewise.
15908 (CALL_REALLY_USED_REGISTERS): Likewise.
15909 (REG_ALLOC_ORDER): Likewise.
15910 (enum reg_class): Likewise.
15911 (REG_CLASS_NAMES): Likewise.
15912 (REG_CLASS_CONTENTS): Likewise.
15913 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
15915 2014-08-04 Richard Biener <rguenther@suse.de>
15917 * gimple-fold.h (gimple_fold_builtin): Remove.
15918 * gimple-fold.c (gimple_fold_builtin): Make static.
15919 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
15920 fold_stmt, not gimple_fold_builtin.
15922 2014-08-04 Martin Liska <mliska@suse.cz>
15924 * cgraph.h (csi_end_p): Removed.
15925 (csi_next): Likewise.
15926 (csi_node): Likewise.
15927 (csi_start): Likewise.
15928 (cgraph_node_in_set_p): Likewise.
15929 (cgraph_node_set_size): Likewise.
15930 (vsi_end_p): Likewise.
15931 (vsi_next): Likewise.
15932 (vsi_node): Likewise.
15933 (vsi_start): Likewise.
15934 (varpool_node_set_size): Likewise.
15935 (cgraph_node_set_nonempty_p): Likewise.
15936 (varpool_node_set_nonempty_p): Likewise.
15937 * cgraphunit.c (cgraph_process_new_functions): vec replaces
15939 * ipa-inline-transform.c: Likewise.
15940 * ipa-utils.c (cgraph_node_set_new): Removed.
15941 (cgraph_node_set_add): Likewise.
15942 (cgraph_node_set_remove): Likewise.
15943 (cgraph_node_set_find): Likewise.
15944 (dump_cgraph_node_set): Likewise.
15945 (debug_cgraph_node_set): Likewise.
15946 (free_cgraph_node_set): Likewise.
15947 (varpool_node_set_new): Likewise.
15948 (varpool_node_set_add): Likewise.
15949 (varpool_node_set_remove): Likewise.
15950 (varpool_node_set_find): Likewise.
15951 (dump_varpool_node_set): Likewise.
15952 (free_varpool_node_set): Likewise.
15953 (debug_varpool_node_set): Likewise.
15954 * tree-emutls.c (struct tls_var_data):
15955 (emutls_index): Removed.
15956 (emutls_decl): Likewise.
15957 (gen_emutls_addr): Function implementation uses newly added
15958 hash_map<varpool_node *, tls_var_data>.
15959 (clear_access_vars): Likewise.
15960 (create_emultls_var): Likewise.
15961 (ipa_lower_emutls): Likewise.
15962 (reset_access): New function.
15964 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15966 * config/i386/i386.c (ix86_option_override_internal): Add
15967 PTA_RDRND and PTA_MOVBE for bdver4.
15969 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15970 James Greenhalgh <james.greenhalgh@arm.com>
15972 * doc/md.texi (clrsb): Document.
15973 (clz): Change reference to x into operand 1.
15975 (popcount): Likewise.
15977 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15980 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
15981 move to subtarget in serial version if result is ignored.
15983 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15984 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15986 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
15987 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
15988 (sched_analyze_insn): Update use of try_group_insn to
15989 sched_macro_fuse_insns.
15990 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
15991 arguments that are not conditional jumps.
15993 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15995 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
15996 family information. Handle BTVER2 cpu with cpuid family value.
15998 2014-08-04 Tom de Vries <tom@codesourcery.com>
16000 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16001 (glibc_2_11_or_earlier): Document effective-target keywords.
16003 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16005 * ipa-devirt.c (odr_type_warn_count): Add type.
16006 (possible_polymorphic_call_targets): Set it.
16007 (ipa_devirt): Use it.
16009 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16011 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16013 * ipa-devirt.c: Include hash-map.h
16014 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16015 (clear_speculation): Break out of ...
16016 (get_class_context): ... here; speed up handling obviously useless
16018 (odr_type_warn_count, decl_warn_count): New structures.
16019 (final_warning_record): New structure.
16020 (final_warning_records): New static variable.
16021 (possible_polymorphic_call_targets): Cleanup handling of
16022 speculative info; do not build speculation when user do not care;
16023 record info about warnings when asked for.
16024 (add_decl_warning): New function.
16025 (type_warning_cmp): New function.
16026 (decl_warning_cmp): New function.
16027 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16028 (gate): Enable pass when warnings are requested.
16029 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16032 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16034 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16036 (hash_map::remove): New method.
16037 (hash_map::traverse): New method.
16038 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16039 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16040 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16041 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16042 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16043 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16046 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16048 * hash-set.h: new File.
16049 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16050 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16051 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16052 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16053 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16054 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16055 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16056 varpool.c: Use hash_set instead of pointer_set.
16058 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16060 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16062 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16064 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16065 for frame access when strict_p is false.
16067 2014-08-01 Renlin Li <renlin.li@arm.com>
16068 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16070 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16071 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16072 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16074 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16076 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16077 aarch64_mem_pair_offset.
16079 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16081 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16083 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16084 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16086 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16088 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16090 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16092 PR regression/61510
16093 * cgraphunit.c (analyze_functions): Use get_create rather than get
16094 for decls which are clones of abstract functions.
16096 2014-08-01 Martin Liska <mliska@suse.cz>
16098 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16099 * ipa-prop.h (count_formal_params): Global function created from static.
16100 * ipa-prop.c (count_formal_params): Likewise.
16101 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16102 profiles for semantically equivalent functions.
16103 * passes.c (do_per_function): If we load body of a function
16104 during WPA, this condition should behave same.
16105 * varpool.c (ctor_for_folding): More tolerant assert for variable
16106 aliases created during WPA.
16108 2014-08-01 Martin Liska <mliska@suse.cz>
16110 * doc/invoke.texi (Options That Control Optimization): Documentation
16111 for -foptimize-strlen introduced. Optimization levels default options
16114 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16116 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16117 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16118 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16120 * stor-layout.h (min_align_of_type): New prototype.
16121 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16122 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16124 * ubsan.c: Include builtins.h.
16125 (ubsan_expand_bounds_ifn): Change return type to bool,
16126 always return true.
16127 (ubsan_expand_null_ifn): Change return type to bool, change
16128 argument to gimple_stmt_iterator *. Handle both null and alignment
16129 sanitization, take type from ckind argument's type rather than
16131 (instrument_member_call): Removed.
16132 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16133 Handle both null and alignment sanitization, don't say whole
16134 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16135 call instead of 2 argument.
16136 (instrument_null): Adjust instrument_mem_ref caller. Don't
16137 instrument calls here.
16138 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16139 like SANITIZE_NULL.
16140 * stor-layout.c (min_align_of_type): New function.
16141 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16142 Or it into SANITIZE_UNDEFINED.
16143 * doc/invoke.texi (-fsanitize=alignment): Document.
16145 2014-07-31 Andi Kleen <ak@linux.intel.com>
16147 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16149 2014-07-31 Andi Kleen <ak@linux.intel.com>
16151 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16153 (vn_reference_compute_hash): Dito.
16154 (vn_nary_op_compute_hash): Dito.
16155 (vn_phi_compute_hash): Dito.
16156 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16158 2014-07-31 Andi Kleen <ak@linux.intel.com>
16160 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16161 Rename to inchash:add_expr_commutative. Convert to inchash.
16162 (iterative_hash_hashable_expr): Rename to
16163 inchash:add_hashable_expr. Convert to inchash.
16164 (avail_expr_hash): Dito.
16166 2014-07-31 Andi Kleen <ak@linux.intel.com>
16168 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16169 Convert to inchash.
16171 2014-07-31 Andi Kleen <ak@linux.intel.com>
16173 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16175 2014-07-31 Andi Kleen <ak@linux.intel.com>
16177 * Makefile.in (OBJS): Add rtlhash.o
16178 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16179 (loc_checksum): Dito.
16180 (loc_checksum_ordered): Dito.
16181 (hash_loc_operands): Dito.
16183 (hash_loc_list): Dito.
16184 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16185 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16186 * rtlhash.c: New file.
16187 * rtlhash.h: New file.
16189 2014-07-31 Andi Kleen <ak@linux.intel.com>
16191 * inchash.h (inchash): Change inchash class to namespace.
16192 (class hash): ... Rename from inchash.
16193 (add_object): Move from macro to class template.
16194 * lto-streamer-out.c (hash_tree): Change inchash
16196 * tree.c (build_type_attribute_qual_variant): Dito.
16197 (type_hash_list): Dito.
16198 (attribute_hash_list): Dito.
16199 (iterative_hstate_expr): Rename to inchash::add_expr
16200 (build_range_type_1): Change inchash to inchash::hash
16201 and use hash::add_expr.
16202 (build_array_type_1): Dito.
16203 (build_function_type): Dito
16204 (build_method_type_directly): Dito.
16205 (build_offset_type): Dito.
16206 (build_complex_type): Dito.
16207 (make_vector_type): Dito.
16208 * tree.h (iterative_hash_expr): Dito.
16210 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
16212 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16214 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16216 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16217 correct alphabetical position.
16218 (vpaddd_f64): Rewrite using builtins.
16219 (vpaddd_s64): Move to correct alphabetical position.
16222 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
16225 * config/sh/sh.c (sh_legitimate_address_p,
16226 sh_legitimize_reload_address): Handle reg+reg address modes when
16227 ALLOW_INDEXED_ADDRESS is false.
16228 * config/sh/predicates.md (general_movsrc_operand,
16229 general_movdst_operand): Likewise.
16231 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16233 * config/aarch64/aarch64-builtins.c
16234 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16237 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16239 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16240 the generated mask based on BYTES_BIG_ENDIAN.
16241 (aarch64_simd_check_vect_par_cnst_half): New.
16242 * config/aarch64/aarch64-protos.h
16243 (aarch64_simd_check_vect_par_cnst_half): New.
16244 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16245 the check out to aarch64_simd_check_vect_par_cnst_half.
16246 (vect_par_cnst_lo_half): Likewise.
16247 * config/aarch64/aarch64-simd.md
16248 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16249 (move_hi_quad_<mode>): Always generate a low mask.
16251 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16253 * doc/invoke.texi (AVR Options): Add documentation about
16254 __AVR_DEVICE_NAME__ built-in macro.
16256 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
16259 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16260 constraints are satisfied.
16261 (<shift>di3_neon): Likewise.
16263 2014-07-31 Richard Biener <rguenther@suse.de>
16265 PR tree-optimization/61964
16266 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16267 by structural equality.
16269 2014-07-31 Yury Gribov <y.gribov@samsung.com>
16271 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16272 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16273 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16275 * gcc.c (sanitize_spec_function): Support new option.
16276 (SANITIZER_SPEC): Remove now redundant check.
16277 * opts.c (common_handle_option): Support new option.
16278 (finish_options): Check for incompatibilities.
16279 * toplev.c (process_options): Split userspace-specific checks.
16281 2014-07-31 Richard Biener <rguenther@suse.de>
16283 * lto-streamer.h (struct output_block): Remove global.
16284 (struct data_in): Remove labels, num_named_labels and
16285 num_unnamed_labels.
16286 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16287 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16289 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
16292 * common.opt (-Wreturn-local-addr): Moved from c.opt.
16293 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16294 (isolate_path): New argument to avoid inserting a trap.
16295 (find_implicit_erroneous_behaviour): Handle returning the address
16296 of a local variable.
16297 (find_explicit_erroneous_behaviour): Likewise.
16299 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
16302 * toplev.c (init_random_seed): Move piece of code never called to
16304 (set_random_seed): see above.
16306 2014-07-31 Tom de Vries <tom@codesourcery.com>
16308 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16310 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
16312 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16313 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16315 2014-07-31 Richard Biener <rguenther@suse.de>
16317 * data-streamer.h (streamer_write_data_stream): Declare here,
16319 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
16320 * lto-cgraph.c (lto_output_node): Adjust.
16321 (lto_output_varpool_node): Likewise.
16322 * data-streamer-out.c (streamer_string_index): Likewise.
16323 (streamer_write_data_stream, lto_append_block): Move from ...
16324 * lto-section-out.c (lto_output_data_stream,
16325 lto_append_block): ... here.
16327 2014-07-30 Mike Stump <mikestump@comcast.net>
16329 * configure.ac: Also check for popen.
16330 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16331 * configure: Regenerate.
16332 * config.in: Regenerate.
16334 2014-07-30 Martin Jambor <mjambor@suse.cz>
16336 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16337 parameter to gimple.
16339 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16341 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16342 address as second parameter to __tpf_eh_return routine.
16344 2014-07-30 Jiong Wang <jiong.wang@arm.com>
16346 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16349 2014-07-30 Tom Tromey <tromey@redhat.com>
16352 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16353 * doc/extend.texi (Type Attributes): Document designated_init
16356 2014-07-30 Roman Gareev <gareevroman@gmail.com>
16358 * graphite-isl-ast-to-gimple.c:
16359 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16360 (gcc_expression_from_isl_expression): Pass type to
16361 gcc_expression_from_isl_ast_expr_id.
16363 2014-07-30 Richard Biener <rguenther@suse.de>
16365 * lto-streamer.h (lto_write_data): New function.
16366 * langhooks.c (lhd_append_data): Do not free block.
16367 * lto-section-out.c (lto_write_data): New function writing
16368 raw data to the current section.
16369 (lto_write_stream): Adjust for langhook semantic change.
16370 (lto_destroy_simple_output_block): Write header directly.
16371 * lto-opts.c (lto_write_options): Write options directly.
16372 * lto-streamer-out.c (produce_asm): Write heaeder directly.
16373 (lto_output_toplevel_asms): Likewise.
16374 (copy_function_or_variable): Copy data directly.
16375 (write_global_references): Output index table directly.
16376 (lto_output_decl_state_refs): Likewise.
16377 (write_symbol): Write data directly.
16378 (produce_symtab): Adjust.
16379 (produce_asm_for_decls): Output header and refs directly.
16381 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16383 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16384 to speculative_targets
16385 (get_class_context): Fix handling of contextes without outer type;
16386 avoid matching non-polymorphic types in LTO.
16387 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16388 parameter to speculative_targetsp; handle speculation.
16389 (dump_possible_polymorphic_call_targets): Update dumping.
16391 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16393 * common.opt (Wodr): Enable by default.
16395 2014-07-29 Olivier Hainque <hainque@adacore.com>
16397 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16399 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
16402 * gengtype.c (strtoken): New function.
16403 (create_user_defined_type): Replace strtok with strtoken.
16405 2014-07-29 Nathan Sidwell <nathan@acm.org>
16407 * gcov-io.c (gcov_var): Make hidden.
16408 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16409 (gcov_do_dump): Declare.
16410 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16412 2014-07-29 Martin Jambor <mjambor@suse.cz>
16414 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16415 parameter to gimple.
16416 (sra_modify_assign): Likewise.
16418 2014-07-29 Richard Biener <rguenther@suse.de>
16420 PR middle-end/52478
16421 * expr.c (expand_expr_real_2): Revert last change.
16423 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16425 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16426 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16427 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16429 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16430 (contains_type_p): Forward declare.
16431 (polymorphic_call_target_hasher::hash): Hash speculative info.
16432 (polymorphic_call_target_hasher::equal): Compare speculative info.
16433 (get_class_context): Handle speuclation.
16434 (contains_type_p): Update.
16435 (get_polymorphic_call_info_for_decl): Update.
16436 (walk_ssa_copies): Break out from ...
16437 (get_polymorphic_call_info): ... here; set speculative context
16439 * ipa-prop.c (ipa_write_indirect_edge_info,
16440 ipa_read_indirect_edge_info): Stream speculative context.
16441 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
16442 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
16443 SPECULATIVE_MAYBE_DERIVED_TYPE).
16444 (possible_polymorphic_call_targets overriders): Update.
16445 (dump_possible_polymorphic_call_targets overriders): Update.
16446 (dump_possible_polymorphic_call_target_p overriders): Update.
16448 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16450 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
16451 ipa-devirt path; fix thinko there.
16453 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
16455 * config/i386/i386.c (ix86_return_in_memory): Replace one
16456 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
16458 2014-07-28 Marek Polacek <polacek@redhat.com>
16460 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
16462 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
16464 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
16465 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
16466 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
16467 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16468 (USE_LD_AS_NEEDED): Likewise.
16469 (ASM_APP_ON): Likewise.
16470 (ASM_APP_OFF): Likewise.
16471 (TARGET_POSIX_IO): Likewise.
16472 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
16473 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16474 (USE_LD_AS_NEEDED): Likewise.
16475 (ASM_APP_ON): Likewise.
16476 (ASM_APP_OFF): Likewise.
16477 (TARGET_POSIX_IO): Likewise.
16479 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
16481 PR middle-end/61734
16482 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
16483 operators other than the equality operators.
16485 2014-07-28 Richard Biener <rguenther@suse.de>
16487 PR middle-end/52478
16488 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
16489 sure to register SImode ones, not only >= word_mode ones.
16490 * expr.c (expand_expr_real_2): When expanding -ftrapv
16491 binops do not use OPTAB_LIB_WIDEN.
16493 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
16495 PR middle-end/61919
16496 * tree-outof-ssa.c (insert_partition_copy_on_edge)
16497 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
16498 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
16499 inserting them in the insn stream.
16501 2014-07-28 Marek Polacek <polacek@redhat.com>
16503 PR middle-end/61913
16504 * common.opt (Wodr): Add Var.
16506 2014-07-28 Richard Biener <rguenther@suse.de>
16508 PR tree-optimization/61921
16509 * tree-ssa-structalias.c (create_variable_info_for_1): Check
16510 if there is a varpool node before dereferencing it.
16512 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16514 * graphite-sese-to-poly.c:
16515 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
16516 id of the pbb), which contains pointer to the pbb1.
16518 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
16520 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16522 * graphite-isl-ast-to-gimple.c:
16523 (graphite_create_new_guard): New function.
16524 (translate_isl_ast_node_if): New function.
16525 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
16527 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
16529 2014-07-27 Anthony Green <green@moxielogic.com>
16531 * config.gcc: Add moxie-*-moxiebox* configuration.
16532 * config/moxie/moxiebox.h: New file.
16534 2014-07-26 Andrew Pinski <apinski@cavium.com>
16536 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
16537 from the read only register.
16539 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
16541 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
16542 as the allocation class if it isn't likely to be spilled.
16544 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
16546 * rtl.h (tls_referenced_p): Declare.
16547 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
16548 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
16549 (mips_cannot_force_const_mem): Use tls_referenced_p.
16550 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
16551 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
16552 instead of pa_tls_referenced_p.
16553 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
16554 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
16555 (pa_legitimate_constant_p): Likewise.
16556 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
16557 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
16558 (rs6000_cannot_force_const_mem, rs6000_emit_move)
16559 (rs6000_address_for_altivec): Use tls_referenced_p instead of
16560 rs6000_tls_referenced_p.
16561 (rs6000_tls_symbol_ref_1): Delete.
16563 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
16566 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
16567 Optimize inverse of a VEC_CONCAT.
16569 2014-07-25 Xinliang David Li <davidxl@google.com>
16571 * params.def: New parameter.
16572 * coverage.c (get_coverage_counts): Check new flag.
16573 (coverage_compute_profile_id): Check new flag.
16574 (coverage_begin_function): Check new flag.
16575 (coverage_end_function): Check new flag.
16576 * value-prof.c (coverage_node_map_initialized_p): New function.
16577 (init_node_map): Populate map with all functions.
16578 * doc/invoke.texi: Document new parameter.
16580 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
16581 Richard Biener <rguenther@suse.de>
16583 * lto-streamer-out.c (struct sccs): Turn to ...
16584 (class DFS): ... this one; refactor the DFS walk so it can
16585 be re-done on per-SCC basis.
16586 (DFS::DFS): New constructor.
16587 (DFS::~DFS): New destructor.
16588 (hash_tree): Add new MAP argument holding in-SCC hash values;
16589 remove POINTER_TYPE hashing hack.
16590 (scc_entry_compare): Rename to ...
16591 (DFS::scc_entry_compare): ... this one.
16592 (hash_scc): Rename to ...
16593 (DFS::hash_scc): ... this one; pass output_block instead
16594 of streamer_cache; work harder to get unique and stable SCC
16596 (DFS_write_tree): Rename to ...
16597 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
16598 (lto_output_tree): Update.
16600 2014-07-25 Andi Kleen <ak@linux.intel.com>
16602 * lto-streamer-out.c (hash_tree): Convert to inchash.
16604 2014-07-25 Andi Kleen <ak@linux.intel.com>
16606 * tree.c (build_type_attribute_qual_variant): Use inchash.
16607 (type_hash_list): Dito.
16608 (attribute_hash_list): Dito
16609 (iterative_hstate_expr): Dito.
16610 (iterative_hash_expr): Dito.
16611 (build_range_type_1): Dito.
16612 (build_array_type_1): Dito.
16613 (build_function_type): Dito.
16614 (build_method_type_directly): Dito.
16615 (build_offset_type): Dito.
16616 (build_complex_type): Dito.
16617 (make_vector_type): Dito.
16618 * tree.h (iterative_hash_expr): Add compat wrapper.
16619 (iterative_hstate_expr): Add.
16621 2014-07-25 Andi Kleen <ak@linux.intel.com>
16623 * Makefile.in (OBJS): Add inchash.o.
16624 (PLUGIN_HEADERS): Add inchash.h.
16625 * ipa-devirt.c: Include inchash.h.
16626 * lto-streamer-out.c: Dito.
16627 * tree-ssa-dom.c: Dito.
16628 * tree-ssa-pre.c: Dito.
16629 * tree-ssa-sccvn.c: Dito.
16630 * tree-ssa-tail-merge.c: Dito.
16632 * tree.c (iterative_hash_hashval_t): Move to ...
16633 (iterative_hash_host_wide_int): Move to ...
16634 * inchash.c: Here. New file.
16635 * tree.h (iterative_hash_hashval_t): Move to ...
16636 (iterative_hash_host_wide_int): Move to ...
16637 * inchash.h: Here. New file.
16639 2014-07-25 Richard Biener <rguenther@suse.de>
16641 PR middle-end/61762
16642 PR middle-end/61894
16643 * fold-const.c (native_encode_int): Add and handle offset
16644 parameter to do partial encodings of expr.
16645 (native_encode_fixed): Likewise.
16646 (native_encode_real): Likewise.
16647 (native_encode_complex): Likewise.
16648 (native_encode_vector): Likewise.
16649 (native_encode_string): Likewise.
16650 (native_encode_expr): Likewise.
16651 * fold-const.c (native_encode_expr): Add offset parameter
16653 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
16654 (fold_ctor_reference): Handle all reads from tcc_constant
16657 2014-07-25 Richard Biener <rguenther@suse.de>
16659 * tree-inline.c (estimate_move_cost): Mark speed_p argument
16660 as possibly unused.
16662 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16664 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
16666 2014-07-24 Kyle McMartin <kyle@redhat.com>
16668 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
16670 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16672 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
16674 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
16676 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
16677 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
16678 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
16680 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16682 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
16683 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
16684 aggregate types. Instead, *all* aggregate types, except for single-
16685 element or homogeneous float/vector aggregates, are quadword-aligned
16686 if required by their type alignment. Issue -Wpsabi note when a type
16687 is now treated differently than before.
16689 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16691 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
16692 does not fit fully into floating-point registers, and there is still
16693 space in the register parameter area, use GPRs to pass those parts
16694 of the argument. Issue -Wpsabi note if any parameter is now treated
16695 differently than before.
16696 (rs6000_arg_partial_bytes): Update.
16698 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
16700 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
16702 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
16704 * rtl.h (target_rtl): Remove lang_dependent_initialized.
16705 * toplev.c (initialize_rtl): Don't use it. Move previously
16706 "language-dependent" calls to...
16707 (backend_init): ...here.
16708 (lang_dependent_init_target): Don't set lang_dependent_initialized.
16709 Assert that RTL initialization hasn't happend yet.
16711 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
16713 PR rtl-optimization/61629
16714 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
16715 they have already been initialized.
16717 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
16719 PR middle-end/61268
16720 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
16721 DECL_INCOMING_RTL and entry_parm.
16722 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
16723 * calls.c (load_register_parameters): Likewise argument values.
16724 (emit_library_call_value_1, store_one_arg): Likewise argument
16726 * config/i386/i386.c (assign_386_stack_local): Likewise the local
16728 * explow.c (validize_mem): Modify the argument in-place.
16730 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16732 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
16733 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
16735 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16737 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
16738 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
16740 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16742 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
16743 (aarch64_save_callee_saves): New parameter "skip_wb".
16744 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
16746 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16748 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
16750 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
16752 2014-07-24 Roman Gareev <gareevroman@gmail.com>
16754 * graphite-isl-ast-to-gimple.c:
16755 (graphite_create_new_loop): Add calling of isl_id_free to properly
16756 decrement reference counts.
16758 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
16760 2014-07-24 Martin Liska <mliska@suse.cz>
16761 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
16763 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
16764 (rs6000_code_end): Likewise.
16766 2014-07-24 Martin Liska <mliska@suse.cz>
16768 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
16769 symtab_node funtion used.
16770 (rs6000_xcoff_declare_object_name): Likewise.
16772 2014-07-24 Martin Liska <mliska@suse.cz>
16774 * cgraphunit.c (compile): Correct function used.
16776 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
16778 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
16781 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
16784 * varasm.c (bss_initializer_p): Handle offlined ctors.
16785 (align_variable, get_variable_align): Likewise.
16786 (make_decl_one_only): Likewise.
16787 (default_binds_local_p_1): Likewise.
16788 (decl_binds_to_current_def_p): Likewise.
16789 (get_variable_section): Get constructor if it is offlined.
16790 (assemble_variable_contents): Sanity check that the caller
16791 streamed in the ctor in LTO.
16793 2014-07-24 Roman Gareev <gareevroman@gmail.com>
16795 * graphite-isl-ast-to-gimple.c:
16796 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
16797 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
16798 isl_ast_op_pdiv_r to the different case.
16800 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
16802 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16804 PR middle-end/61876
16805 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
16806 when flag_errno_math is on.
16808 2014-07-24 Martin Liska <mliska@suse.cz>
16810 * cgraph.h (varpool_node):
16811 (availability get_availability (void)):
16812 created from cgraph_variable_initializer_availability
16813 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
16814 created from: cgraph_variable_initializer_availability
16815 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
16816 (void finalize_named_section_flags (void)):
16817 created from varpool_finalize_named_section_flags
16818 (bool assemble_decl (void)): created from varpool_assemble_decl
16819 (void analyze (void)): created from varpool_analyze_node
16820 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
16821 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
16822 (void remove_initializer (void)): created from varpool_remove_initializer
16823 (tree get_constructor (void)): created from varpool_get_constructor
16824 (bool externally_visible_p (void)): created from varpool_externally_visible_p
16825 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
16826 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
16827 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
16828 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
16829 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
16830 (static bool output_variables (void)): created from varpool_output_variables
16831 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
16832 created from varpool_extra_name_alias
16833 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
16834 (static void dump_varpool (FILE *f)): created from dump_varpool
16835 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
16836 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
16837 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
16838 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
16839 (void assemble_aliases (void)): created from assemble_aliases
16841 2014-07-24 Martin Liska <mliska@suse.cz>
16843 * cgraph.h (symtab_node):
16844 (void register_symbol (void)): created from symtab_register_node
16845 (void remove (void)): created from symtab_remove_node
16846 (void dump (FILE *f)): created from dump_symtab_node
16847 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
16848 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
16849 (struct ipa_ref *add_reference (symtab_node *referred_node,
16850 enum ipa_ref_use use_type)): created from add_reference
16851 (struct ipa_ref *add_reference (symtab_node *referred_node,
16852 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
16853 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
16854 gimple stmt)): created from maybe_add_reference
16855 (bool semantically_equivalent_p (symtab_node *target)): created from
16856 symtab_semantically_equivalent_p
16857 (void remove_from_same_comdat_group (void)): created from
16858 remove_from_same_comdat_group
16859 (void add_to_same_comdat_group (symtab_node *old_node)): created from
16860 symtab_add_to_same_comdat_group
16861 (void dissolve_same_comdat_group_list (void)): created from
16862 symtab_dissolve_same_comdat_group_list
16863 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
16864 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
16865 created from symtab_alias_ultimate_target
16866 (inline symtab_node *next_defined_symbol (void)): created from
16867 symtab_next_defined_symbol
16868 (bool resolve_alias (symtab_node *target)): created from
16869 symtab_resolve_alias
16870 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
16871 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
16872 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
16873 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
16874 (void set_section (const char *section)): created from set_section_1
16875 (enum availability get_availability (void)): created from symtab_node_availability
16876 (void make_decl_local (void)): created from symtab_make_decl_local
16877 (bool real_symbol_p (void)): created from symtab_read_node
16878 (can_be_discarded_p (void)): created from symtab_can_be_discarded
16879 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
16880 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
16881 symtab_in_same_comdat_p;
16882 (bool address_taken_from_non_vtable_p (void)): created from
16883 address_taken_from_non_vtable_p
16884 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
16885 (static void dump_table (FILE *)): created from dump_symtab
16886 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
16887 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
16888 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
16889 symtab_used_from_object_file_p
16890 (void dump_base (FILE *)): created from dump_symtab_base
16891 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
16892 (void unregister (void)): created from symtab_unregister_node
16893 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
16894 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
16895 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
16896 symtab_nonoverwritable_alias_1
16897 * cgraph.h (cgraph_node):
16898 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
16899 created from cgraph_remove_node_and_inline_clones
16900 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
16901 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
16902 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
16903 (cgraph_node *function_symbol (enum availability *avail = NULL)):
16904 created from cgraph_function_node
16905 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
16906 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
16907 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
16908 created from cgraph_create_clone
16909 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
16910 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
16911 created from cgraph_create_virtual_clone
16912 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
16913 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
16914 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
16915 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
16916 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
16917 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
16918 created from cgraph_function_version_info
16919 (struct cgraph_function_version_info *insert_new_function_version (void)):
16920 created from insert_new_cgraph_node_version
16921 (struct cgraph_function_version_info *function_version (void)): created from
16922 get_cgraph_node_version
16923 (void analyze (void)): created from analyze_function
16924 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
16925 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
16926 tree real_alias) cgraph_add_thunk
16927 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
16928 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
16929 created from cgraph_function_or_thunk_node
16930 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
16931 created from expand_thunk
16932 (void reset (void)): created from cgraph_reset_node
16933 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
16934 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
16935 (void remove (void)): created from cgraph_remove_node
16936 (void dump (FILE *f)): created from dump_cgraph_node
16937 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
16938 (bool get_body (void)): created from cgraph_get_body
16939 (void release_body (void)): created from cgraph_release_function_body
16940 (void unnest (void)): created from cgraph_unnest_node
16941 (void make_local (void)): created from cgraph_make_node_local
16942 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
16943 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
16944 gcov_type count, int freq)): created from cgraph_create_edge
16945 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
16946 gcov_type count, int freq)): created from cgraph_create_indirect_edge
16947 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
16948 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
16949 created from cgraph_create_edge_including_clones
16950 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
16951 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
16952 (void remove_callers (void)): created from cgraph_node_remove_callers
16953 (void remove_callees (void)): created from cgraph_node_remove_callees
16954 (enum availability get_availability (void)): created from cgraph_function_body_availability
16955 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
16956 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
16957 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
16958 (void call_duplication_hooks (cgraph_node *node2)): created from
16959 cgraph_call_node_duplication_hooks
16960 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
16961 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
16962 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
16963 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
16964 (void call_function_insertion_hooks (void)):
16965 created from cgraph_call_function_insertion_hooks
16966 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
16967 (bool local_p (void)): created from cgraph_local_node
16968 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
16969 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
16970 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
16971 (inline bool only_called_directly_or_aliased_p (void)):
16972 created from cgraph_only_called_directly_or_aliased_p
16973 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
16974 created from cgraph_will_be_removed_from_program_if_no_direct_calls
16975 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
16976 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
16977 (bool can_remove_if_no_direct_calls_p (void)):
16978 created from cgraph_can_remove_if_no_direct_calls_p
16979 (inline bool has_gimple_body_p (void)):
16980 created from cgraph_function_with_gimple_body_p
16981 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
16982 (static void dump_cgraph (FILE *f)): created from dump_cgraph
16983 (static inline void debug_cgraph (void)): created from debug_cgraph
16984 (static void record_function_versions (tree decl1, tree decl2)):
16985 created from record_function_versions
16986 (static void delete_function_version (tree decl)):
16987 created from delete_function_version
16988 (static void add_new_function (tree fndecl, bool lowered)):
16989 created from cgraph_add_new_function
16990 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
16991 (static cgraph_node * create (tree decl)): created from cgraph_create_node
16992 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
16993 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
16994 (static cgraph_node *get_for_asmname (tree asmname)):
16995 created from cgraph_node_for_asm
16996 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
16997 created from cgraph_same_body_alias
16998 (static bool used_from_object_file_p_worker (cgraph_node *node,
16999 void *): new function
17000 (static bool non_local_p (cgraph_node *node, void *)):
17001 created from cgraph_non_local_node_p_1
17002 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17003 created from verify_cgraph
17004 (static bool make_local (cgraph_node *node, void *)):
17005 created from cgraph_make_node_local
17006 (static cgraph_node *create_alias (tree alias, tree target)):
17007 created from cgraph_create_function_alias
17008 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17009 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17010 created from cgraph_create_edge_1
17011 * cgraph.h (varpool_node):
17012 (void remove (void)): created from varpool_remove_node
17013 (void dump (FILE *f)): created from dump_varpool_node
17015 2014-07-24 Richard Biener <rguenther@suse.de>
17018 * tree-ssa-structalias.c (create_variable_info_for_1):
17019 Use varpool_get_constructor.
17020 (create_variable_info_for): Likewise.
17022 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17024 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17025 subtract outgoing area size when restoring stack_pointer_rtx.
17027 2014-07-24 Nick Clifton <nickc@redhat.com>
17029 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17030 that operations are taking place in parallel.
17031 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17033 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17035 * omp-low.c (extract_omp_for_data): Add missing break statement.
17037 2014-07-24 Richard Biener <rguenther@suse.de>
17039 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17040 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17041 and adjust MOVE_RATIO query accordingly.
17042 (estimate_num_insns): Adjust callers.
17043 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17044 * ipa-cp.c (gather_context_independent_values,
17045 estimate_local_effects): Likewise.
17046 * ipa-split.c (consider_split): Likewise.
17048 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17050 * config/i386/driver-i386.c: Remove names of unused arguments and
17051 unnecessary unused attributes.
17052 * config/i386/host-mingw32.c: Likewise.
17053 * config/i386/i386.c: Likewise.
17054 * config/i386/winnt-stubs.c: Likewise.
17055 * config/i386/winnt.c: Likewise.
17057 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17059 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17060 (aarch64_gen_loadwb_pair): New helper function.
17061 (aarch64_expand_epilogue): Simplify code using new helper functions.
17062 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17064 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17066 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17067 (aarch64_gen_storewb_pair): New helper function.
17068 (aarch64_expand_prologue): Simplify code using new helper functions.
17069 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17071 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17073 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17074 Rename to aarch64_save_callee_saves, remove restore code.
17075 (aarch64_restore_callee_saves): New function.
17077 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17079 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17080 (aarch64_save_callee_saves): New function to handle reg save
17081 for both core and vectore regs.
17083 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17085 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17086 (aarch64_gen_store_pair): New helper function.
17087 (aarch64_save_or_restore_callee_save_registers)
17088 (aarch64_save_or_restore_fprs): Use new helper functions.
17090 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17092 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17093 (aarch64_save_or_restore_callee_save_registers)
17094 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17096 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17098 * config/aarch64/aarch64.c
17099 (aarch64_save_or_restore_callee_save_registers)
17100 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17102 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17104 * config/aarch64/aarch64.c
17105 (aarch64_save_or_restore_callee_save_registers)
17106 (aarch64_save_or_restore_fprs): Remove 'increment'.
17108 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17110 * config/aarch64/aarch64.c
17111 (aarch64_save_or_restore_callee_save_registers)
17112 (aarch64_save_or_restore_fprs): Use register offset in
17113 cfun->machine->frame.reg_offset.
17115 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17117 * config/aarch64/aarch64.c
17118 (aarch64_save_or_restore_callee_save_registers)
17119 (aarch64_save_or_restore_fprs): Remove base_rtx.
17121 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17123 * config/aarch64/aarch64.c
17124 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17125 to 'start_offset'. Remove local variable 'start_offset'.
17127 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17129 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17130 type to HOST_WIDE_INT.
17132 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17134 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17135 (aarch64_save_or_restore_fprs)
17136 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17138 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17140 * config/arm/t-rtems-eabi: Add
17141 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17142 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17143 mbig-endian/mthumb/march=armv7-r, and
17144 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17147 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17148 Chris Johns <chrisj@rtems.org>
17149 Joel Sherrill <joel.sherrill@oarcorp.com>
17151 * config.gcc: Add nios2-*-rtems*.
17152 * config/nios2/rtems.h: New file.
17153 * gcc/config/nios2/t-rtems: New file.
17155 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17158 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17159 constant numbers, not general constants.
17160 (rs6000_expand_vector_init): Ditto.
17162 2014-07-23 Nathan Sidwell <nathan@acm.org>
17164 * gcov-tool.c (gcov_list): Declare here.
17165 (set_gcov_list): Remove.
17166 (gcov_output_files): Set gcov_list directly.
17168 2014-07-23 Host Schirmeier <horst@schirmeier.com>
17170 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17172 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17174 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17175 callee-saved registers are available for padding purpose
17176 and r3 is not mandatory, then prefer use those callee-saved
17179 2014-07-23 Richard Biener <rguenther@suse.de>
17181 * params.def (PARAM_MAX_COMBINE_INSNS): New.
17182 * combine.c: Include statistics.h and params.h.
17183 (combine_instructions): Guard three and four insn combines
17184 with max-combine-insns value. Record statistics for combines
17186 * doc/invoke.texi (max-combine-insns): Document new param.
17188 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17190 * graphite-isl-ast-to-gimple.c:
17191 (translate_isl_ast_node_block): New function.
17192 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17194 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17195 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17197 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17199 * graphite-isl-ast-to-gimple.c:
17200 (get_max_schedule_dimensions): New function.
17201 (extend_schedule): Likewise.
17202 (generate_isl_schedule): Add calling of extend_schedule and
17203 get_max_schedule_dimensions.
17205 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17207 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17208 (case UNSPEC): Handle UNSPEC_RBIT.
17210 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17212 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17213 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17215 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17217 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17219 2014-07-22 Roman Gareev <gareevroman@gmail.com>
17221 * graphite-isl-ast-to-gimple.c:
17222 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17223 (ivs_params_clear):
17224 (build_iv_mapping): New function.
17225 (translate_isl_ast_node_user): Likewise.
17226 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17228 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17229 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17230 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17232 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17235 * config/arm/arm.md (setmem): New pattern.
17236 * config/arm/arm-protos.h (struct tune_params): New fields.
17237 (arm_gen_setmem): New prototype.
17238 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17239 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17240 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17241 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17242 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17243 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17244 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17245 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17246 (arm_const_inline_cost): New function.
17247 (arm_block_set_max_insns): New function.
17248 (arm_block_set_non_vect_profit_p): New function.
17249 (arm_block_set_vect_profit_p): New function.
17250 (arm_block_set_unaligned_vect): New function.
17251 (arm_block_set_aligned_vect): New function.
17252 (arm_block_set_unaligned_non_vect): New function.
17253 (arm_block_set_aligned_non_vect): New function.
17254 (arm_block_set_vect, arm_gen_setmem): New functions.
17256 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17258 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17260 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
17263 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17264 out of #ifdef __OPTIMIZE__.
17266 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17268 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17269 different trapping status if -fnon-call-exceptions is enabled.
17271 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17273 * expr.c (store_field): Handle VOIDmode for calls that return values
17274 in multiple locations.
17276 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17278 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
17279 (altivec_vsldoi_<mode>): Likewise.
17281 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17283 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17284 to the number of characters in the line.
17286 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17288 * graphite-isl-ast-to-gimple.c: Add using of
17289 build_nonstandard_integer_type instead of int128_integer_type_node.
17291 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
17293 * toplev.c (output_stack_usage): Adjust the location of the warning.
17295 2014-07-19 Daniel Cederman <cederman@gaisler.com>
17297 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17298 (*membar_storeload): Disable for LEON3.
17300 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
17302 PR rtl-optimization/61461
17303 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17305 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
17308 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17309 Fix instruction constraint.
17310 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17312 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
17314 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17316 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
17318 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17319 GNU coding standards.
17320 (nds32_register_move_cost): Likewise.
17321 (nds32_memory_move_cost): Likewise.
17322 (nds32_address_cost): Likewise.
17324 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17326 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17328 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
17330 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17331 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17332 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17333 (HAVE_sync_compare_and_swapqi): Define.
17334 (HAVE_sync_compare_and_swaphi): Likewise.
17335 (HAVE_sync_compare_and_swapsi): Likewise.
17337 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
17339 * config/mips/p5600.md: Add missing cpu tests.
17341 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17343 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17344 (vmla_f64): Likewise.
17345 (vfms_f64): Likewise.
17346 (vmls_f64): Likewise.
17348 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17350 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17351 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17353 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17355 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17356 (vmlal_high_lane_s32): Likewise.
17357 (vmlal_high_lane_u16): Likewise.
17358 (vmlal_high_lane_u32): Likewise.
17359 (vmlsl_high_lane_s16): Likewise.
17360 (vmlsl_high_lane_s32): Likewise.
17361 (vmlsl_high_lane_u16): Likewise.
17362 (vmlsl_high_lane_u32): Likewise.
17364 2014-07-17 Terry Guo <terry.guo@arm.com>
17366 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17367 (alus_reg): Renamed to alus_sreg.
17368 * config/arm/arm-fixed.md: Change type of non-dsp instructions
17369 from alu_reg to alu_sreg. Change type of dsp instructions from
17370 alu_reg to alu_dsp_reg.
17371 * config/arm/thumb1.md: Likewise.
17372 * config/arm/thumb2.md: Likewise.
17373 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17374 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17375 with alu_sreg and alus_sreg.
17376 * config/arm/arm1026ejs.md (alu_op): Likewise.
17377 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17378 * config/arm/arm926ejs.md (9_alu_op): Likewise.
17379 * config/arm/fa526.md (526_alu_op): Likewise.
17380 * config/arm/fa606te.md (606te_alu_op): Likewise.
17381 * config/arm/fa626te.md (626te_alu_op): Likewise.
17382 * config/arm/fa726te.md (726te_alu_op): Likewise.
17383 * config/arm/fmp626.md (mp626_alu_op): Likewise.
17384 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17385 alu_sreg, alu_dsp_reg and alus_sreg.
17386 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17387 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17388 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17389 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17390 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17391 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17392 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17393 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17394 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17395 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17396 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17397 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17398 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17399 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17400 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17401 alus_reg to alus_sreg.
17403 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
17405 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17408 2014-07-17 Richard Biener <rguenther@suse.de>
17410 PR rtl-optimization/61801
17411 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17412 don't set reg_pending_barrier if it appears in a debug-insn.
17414 2014-07-16 DJ Delorie <dj@redhat.com>
17416 * config/rx/rx.c (rx_option_override): Fix alignment values.
17417 (rx_align_for_label): Likewise.
17419 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
17422 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17423 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17424 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17426 (cris_print_index, cris_print_operand, cris_constant_index_p)
17427 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17428 (cris_address_cost): Ditto last CONSTANT_P.
17429 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
17430 callers changed. Yield cris_offsettable_symbol for non-PIC
17431 constant symbolic expressions including labels. Yield cris_unspec
17433 (cris_expand_pic_call_address): New parameter MARKERP. Set its
17434 target to pic_offset_table_rtx for calls that will likely go
17435 through PLT, const0_rtx when they can't. All callers changed.
17436 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17437 symbolic expressions to be PICified. Remove second, redundant,
17438 assert on can_create_pseudo_p returning non-zero. Use
17439 replace_equiv_address_nv, not replace_equiv_address, for final
17441 * config/cris/cris.md ("movsi"): Move variable t to pattern
17442 toplevel. Adjust assert for new cris_symbol_type member. Use
17443 CONSTANT_P instead of CONSTANT_ADDRESS_P.
17444 ("*movsi_internal") <case 9>: Make check for valid unspec operands
17446 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
17447 ("call", "call_value"): Use second incoming operand as a marker
17448 for pic-offset-table-register being used.
17449 ("*expanded_call_non_v32", "*expanded_call_v32")
17450 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
17451 second incoming operand to CALL, match cris_call_type_marker.
17452 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
17453 ("*expanded_call_side"): Ditto. Fix typo in comment.
17454 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
17456 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
17457 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
17458 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
17459 users changed. Add members cris_offsettable_symbol and cris_unspec.
17460 (cris_symbol_type): Rename from cris_pic_symbol_type.
17461 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
17463 * config/cris/cris-protos.h (cris_symbol_type_of,
17464 cris_expand_pic_call_address): Adjust prototypes.
17465 (cris_legitimate_constant_p): New prototype.
17467 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
17468 an existing tmake_file. Don't add t-slibgcc and t-linux.
17470 2014-07-17 Jason Merrill <jason@redhat.com>
17473 * symtab.c (symtab_remove_from_same_comdat_group): Also
17474 set_comdat_group to NULL_TREE.
17475 (verify_symtab): Fix diagnostic.
17477 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
17480 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
17482 2014-07-16 Dodji Seketeli <dodji@redhat.com>
17484 Support location tracking for built-in macro tokens
17485 * input.h (is_location_from_builtin_token): New function declaration.
17486 * input.c (is_location_from_builtin_token): New function definition.
17487 * toplev.c (general_init): Tell libcpp what the pre-defined
17488 spelling location for built-in tokens is.
17490 2014-07-16 Jakub Jelinek <jakub@redhat.com>
17492 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
17493 on the FUNCTION_DECL.
17495 2014-07-16 Richard Biener <rguenther@suse.de>
17498 * doc/extend.texi (always_inline): Clarify.
17500 2014-07-15 Eric Christopher <echristo@gmail.com>
17502 * doc/invoke.texi (Link Options): Document -z option.
17504 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
17506 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
17507 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17509 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
17511 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
17513 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
17515 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
17516 varpool_assemble_decl.
17517 * varpool.c (varpool_assemble_decl): Assert that node->definition is
17520 2014-07-15 Michael Matz <matz@suse.de>
17522 PR rtl-optimization/61772
17523 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
17525 2014-07-15 Richard Biener <rguenther@suse.de>
17527 * opts.c (default_options_table): Disable bit-ccp at -Og.
17529 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
17531 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
17533 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
17535 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
17536 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
17537 call langhook for unknown declaration.
17538 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
17539 * tree.h (DECL_ARGUMENTS): Update.
17540 * print-tree.c (print_node): Update.
17541 * tree-core.h (tree_decl_non_common): Remove arguments.
17542 (tree_function_decl): Add arguments.
17544 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
17546 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
17548 2014-07-14 Richard Biener <rguenther@suse.de>
17550 PR tree-optimization/61779
17551 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
17552 simplifying a condition.
17554 2014-07-14 Richard Biener <rguenther@suse.de>
17556 * builtins.c (c_strlen): Make only_value == 2 really only
17557 affect warning generation.
17559 2014-07-14 Richard Biener <rguenther@suse.de>
17561 PR tree-optimization/61757
17562 PR tree-optimization/61783
17563 PR tree-optimization/61787
17564 * tree-ssa-dom.c (record_equality): Revert canonicalization
17565 change and add comment.
17566 (propagate_rhs_into_lhs): Revert previous fix, removing
17567 loop depth restriction again.
17569 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17571 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
17572 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17573 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17574 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
17575 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17576 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17577 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17579 2014-07-14 Richard Biener <rguenther@suse.de>
17581 * cgraph.h (decl_in_symtab_p): Make inline.
17583 2014-07-14 Jakub Jelinek <jakub@redhat.com>
17585 PR middle-end/61294
17586 * doc/invoke.texi (-Wmemset-transposed-args): Document.
17589 * config/i386/i386.c (classify_argument): Don't merge classes above
17592 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
17594 * cgraph.h (symtab_node): Add nonzero_address.
17595 (decl_in_symtab_p): Break out from ...
17596 (symtab_get_node): ... here.
17597 * fold-const.c: Include cgraph.h
17598 (tree_single_nonzero_warnv_p): Use symtab to determine
17599 if symbol is non-zero.
17600 * symtab.c (symtab_node::nonzero_address): New method.
17602 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17604 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
17605 forgotten in previous commit.
17607 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17609 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
17611 * ipa-devirt.c: Include stor-layout.h and intl.h
17612 (odr_subtypes_equivalent_p): New function.
17613 (warn_odr): New function.
17614 (warn_type_mismatch): New function.
17615 (odr_types_equivalent_p): New function.
17616 (add_type_duplicate): Use it.
17617 * common.opt (Wodr): New flag.
17618 * doc/invoke.texi (Wodr): Document new warning.
17620 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17622 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
17623 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
17624 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
17625 (varpool_get_constructor): Push CTORS_IN timevar.
17626 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
17628 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
17630 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
17631 Remove VOID_FTYPE_PUSHORT.
17632 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
17633 Change code to USHORT_FTYPE_VOID.
17634 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
17635 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
17636 (ix86_atomic_assign_expand_fenv): Update for
17637 __builtin_ia32_fnstsw changes.
17638 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
17639 (fnstsw): Change operand 0 to nonimmediate operand.
17641 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17643 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
17644 (varpool_get_constructor): New function.
17645 (varpool_ctor_useable_for_folding_p): Break out from ...
17646 (ctor_for_folding): ... here; use varpool_get_constructor.
17647 (varpool_assemble_decl): Likewise.
17648 * lto-streamer.h (struct output_block): Turn cgraph_node
17650 (lto_input_variable_constructor): Declare.
17651 * ipa-visibility.c (function_and_variable_visibility): Use
17652 varpool_get_constructor.
17653 * cgraph.h (varpool_get_constructor): Declare.
17654 (varpool_ctor_useable_for_folding_p): New function.
17655 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
17656 parameter; return error_mark_node for non-trivial constructors.
17657 (lto_write_tree_1, DFS_write_tree): Update use of
17658 get_symbol_initial_value.
17659 (output_function): Update initialization of symbol.
17660 (output_constructor): New function.
17661 (copy_function): Rename to ..
17662 (copy_function_or_variable): ... this one; handle vars too.
17663 (lto_output): Output variable sections.
17664 * lto-streamer-in.c (input_constructor): New function.
17665 (lto_read_body): Rename from ...
17666 (lto_read_body_or_constructor): ... this one; handle vars too.
17667 (lto_input_variable_constructor): New function.
17668 * ipa-prop.c (ipa_prop_write_jump_functions,
17669 ipa_prop_write_all_agg_replacement): Update.
17670 * lto-cgraph.c (compute_ltrans_boundary): Use it.
17671 (output_cgraph_opt_summary): Set symbol to NULL.
17673 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17675 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
17676 non-polymorphic types.
17677 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
17678 * ipa-devirt.c (types_same_for_odr): Do not explode when one
17679 of types is not polymorphic.
17681 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
17683 * lra-constraints.c (remove_inheritance_pseudos): Process
17684 destination pseudo too.
17686 2014-07-11 Rong Xu <xur@google.com>
17688 * gcov-tool.c (gcov_output_files): Fix build error introduced in
17691 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17693 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
17694 * config/avr/avr-devices.c (AVR_MCU): Same.
17695 (avr_mcu_types): add text start value to end of device list.
17696 * config/avr/avr-mcus.def: Add text section start for all devices.
17697 (ata5782): Add new avr5 device.
17699 * config/avr/avr-tables.opt: Regenerate.
17700 * config/avr/avr.h: Add declaration for text section start handler.
17701 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
17703 (LINK_SPEC): Include text section start handler to linker spec.
17704 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
17705 pass -Ttext option to linker if the text section start for the device
17707 * config/avr/t-multilib: Regenerate.
17708 * doc/avr-mmcu.texi: Regenerate.
17710 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
17712 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
17713 * config/rs6000/aix52.h (LINK_SPEC): Same.
17714 * config/rs6000/aix53.h (LINK_SPEC): Same.
17715 * config/rs6000/aix61.h (LINK_SPEC): Same.
17716 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
17718 2014-07-11 Roman Gareev <gareevroman@gmail.com>
17720 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
17721 (graphite_verify): New function.
17722 (ivs_params_clear): New function.
17723 (gcc_expression_from_isl_ast_expr_id): New function.
17724 (gcc_expression_from_isl_expr_int): New function.
17725 (binary_op_to_tree): New function.
17726 (ternary_op_to_tree): New function.
17727 (unary_op_to_tree): New function.
17728 (nary_op_to_tree): New function.
17729 (gcc_expression_from_isl_expr_op): New function.
17730 (gcc_expression_from_isl_expression): New function.
17731 (graphite_create_new_loop): New function.
17732 (translate_isl_ast_for_loop): New function.
17733 (get_upper_bound): New function.
17734 (graphite_create_new_loop_guard): New function.
17735 (translate_isl_ast_node_for): New function.
17736 (translate_isl_ast): New function.
17737 (add_parameters_to_ivs_params): New function.
17738 (scop_to_isl_ast): New parameter ip.
17739 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
17741 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17743 * config/xtensa/predicates.md (call expander): Update for
17744 DECL_SECTION_NAME being string.
17746 2014-07-11 Richard Biener <rguenther@suse.de>
17748 PR middle-end/61473
17749 * builtins.c (fold_builtin_memory_op): Inline memory moves that
17750 can be implemented with a single load followed by a single store.
17751 (c_strlen): Only warn when only_value is not 2.
17753 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
17755 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
17757 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
17760 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
17761 (*movhi_bytes): Likewise.
17762 (*arm_movqi_insn): Likewise.
17764 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
17767 * config/alpha/alpha.c: Include tree-pass.h, context.h
17768 and pass_manager.h.
17769 (pass_data_handle_trap_shadows): New pass.
17770 (pass_handle_trap_shadows::gate): New pass gate function.
17771 (make_pass_handle_trap_shadows): New function.
17772 (rest_of_handle_trap_shadows): Ditto.
17774 (alpha_align_insns_1): Rename from alpha_align_insns.
17775 (pass_data_align_insns): New pass.
17776 (pass_align_insns::gate): New pass gate function.
17777 (make_pass_aling_insns): New function.
17778 (rest_of_align_insns): Ditto.
17779 (alpha_align_insns): Ditto.
17781 (alpha_option_override): Declare handle_trap_shadows info
17782 and align_insns_info. Register handle_trap_shadows and align_insns
17784 (alpha_reorg): Do not call alpha_trap_shadows and
17785 alpha_align_insn from here.
17787 (alpha_pad_function_end): Do not skip BARRIERs.
17789 2014-07-10 Rong Xu <xur@google.com>
17791 Add gcov-tool: an offline gcda profile processing tool support.
17792 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
17793 (gcov_is_error): Ditto.
17794 (gcov_read_string): Ditto.
17795 (gcov_read_sync): Ditto.
17796 * gcov-io.h: Move counter defines to gcov-counter.def.
17797 * gcov-dump.c (tag_counters): Use gcov-counter.def.
17798 * coverage.c: Ditto.
17799 * gcov-tool.c: Offline gcda profile processing tool.
17800 (unlink_gcda_file): Remove one gcda file.
17801 (unlink_profile_dir): Remove gcda files from the profile path.
17802 (gcov_output_files): Output gcda files to an output dir.
17803 (profile_merge): Merge two profiles in directory.
17804 (print_merge_usage_message): Print merge usage.
17805 (merge_usage): Print merge usage and exit.
17806 (do_merge): Driver for profile merge sub-command.
17807 (profile_rewrite): Rewrite profile.
17808 (print_rewrite_usage_message): Print rewrite usage.
17809 (rewrite_usage): Print rewrite usage and exit.
17810 (do_rewrite): Driver for profile rewrite sub-command.
17811 (print_usage): Print gcov-info usage and exit.
17812 (print_version): Print gcov-info version.
17813 (process_args): Process arguments.
17814 (main): Main routine for gcov-tool.
17815 * Makefile.in: Build and install gcov-tool.
17816 * gcov-counter.def: New file split from gcov-io.h.
17817 * doc/gcc.texi: Include gcov-tool.texi.
17818 * doc/gcov-tool.texi: Document for gcov-tool.
17820 2014-07-10 Richard Biener <rguenther@suse.de>
17822 PR tree-optimization/61757
17823 * tree-ssa-dom.c (loop_depth_of_name): Restore.
17824 (propagate_rhs_into_lhs): Revert part of last change.
17826 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
17828 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
17831 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
17833 PR middle-end/53590
17834 * function.c (allocate_struct_function): Revert r188667 change.
17836 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
17838 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
17840 * doc/install.texi: Remove links to defunct package providers for
17843 2014-07-09 Tom de Vries <tom@codesourcery.com>
17845 * final.c (get_call_fndecl): Declare.
17846 (self_recursive_call_p): New function.
17847 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
17849 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17851 * ipa-devirt.c (record_node): Walk through aliases.
17853 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17855 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
17857 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17860 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17862 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17864 * ipa-visibility.c (function_and_variable_visibility): Remove
17865 temporary hack disabling local aliases on AIX.
17867 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17869 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
17870 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
17872 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17874 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
17875 * rs6000/rs6000.c: Inline output of .set instruction.
17876 (declare_alias_data): New struct.
17877 (rs6000_declare_alias): New function.
17878 (rs6000_xcoff_declare_function_name): Use it.
17879 (rs6000_xcoff_declare_object_name): New function.
17880 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
17881 (ASM_OUTPUT_DEF): Turn to empty definition.
17883 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
17886 * hash-table.h: use hash_table::value_type instead of
17887 Descriptor::value_type in the return types of several methods.
17889 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
17891 * tree-pass.h (pass_data): Remove has_execute member.
17892 * passes.c (execute_one_pass): Don't check pass->has_execute.
17893 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
17894 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
17895 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
17896 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
17897 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
17898 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
17899 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
17900 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
17901 gimple-low.c, gimple-ssa-isolate-paths.c,
17902 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
17903 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
17904 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
17905 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
17906 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
17907 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
17908 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
17909 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
17910 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
17911 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
17912 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
17913 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17914 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
17915 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17916 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17917 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
17918 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
17919 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17920 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17921 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
17922 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
17923 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
17924 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
17925 web.c: Remove initializer for pass_data::has_execute.
17927 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
17929 * graphite-htab.h: Use hash_map instead of hash_table.
17930 * graphite-clast-to-gimple.c: Adjust.
17931 * passes.c: Use hash_map instead of hash_table.
17932 * sese.c: Likewise.
17933 * sese.h: Remove now unused code.
17935 2014-07-08 Sriraman Tallam <tmsriram@google.com>
17938 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
17941 2014-07-08 Jakub Jelinek <jakub@redhat.com>
17943 PR rtl-optimization/61673
17944 * combine.c (simplify_comparison): Test just mode's sign bit
17945 in tmode rather than the sign bit and any bits above it.
17947 2014-07-08 Roman Gareev <gareevroman@gmail.com>
17949 * graphite-isl-ast-to-gimple.c (generate_isl_context):
17950 Add __isl_give to the declaration.
17951 (generate_isl_schedule): Likewise.
17952 (scop_to_isl_ast): Likewise.
17954 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17956 * config/arm/arm.c (cortexa5_extra_costs): New table.
17957 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
17959 2014-07-08 Jakub Jelinek <jakub@redhat.com>
17961 PR tree-optimization/61725
17962 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
17963 range, use range_includes_zerop_p instead of integer_zerop on
17964 vr0->min, only use log2 of max if min is not negative.
17966 2014-07-08 Richard Biener <rguenther@suse.de>
17968 * tree-ssa-dom.h (loop_depth_of_name): Remove.
17969 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
17970 restriction on loop depth difference.
17971 (record_equality): Likewise.
17972 (propagate_rhs_into_lhs): Likewise. Simplify condition.
17973 (loop_depth_of_name): Remove.
17974 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
17975 restriction on loop depth difference.
17976 (init_copy_prop): Likewise.
17978 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17980 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
17982 (walk_aliased_vdefs): Likewise.
17983 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
17984 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
17985 (detect_type_change_from_memory_writes): Check if entry was reached.
17987 2014-07-08 Richard Biener <rguenther@suse.de>
17989 PR tree-optimization/61681
17990 * tree-ssa-structalias.c (find_what_var_points_to): Expand
17991 NONLOCAL inside ESCAPED.
17993 2014-07-08 Richard Biener <rguenther@suse.de>
17995 PR tree-optimization/61680
17996 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17997 Handle properly all read-write dependences with group accesses.
17999 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18001 PR tree-optimization/61576
18002 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18003 block containing reduction statement is predecessor of phi basi block.
18005 2014-07-08 Marek Polacek <polacek@redhat.com>
18008 * fold-const.c (round_up_loc): Change the parameter type.
18010 * fold-const.h (round_up_loc): Adjust declaration.
18011 * stor-layout.c (finalize_record_size): Check for too large types.
18013 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18015 * symtab.c: Include calls.h.
18016 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18018 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18020 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18021 little-endian code generation.
18022 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18023 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18024 (spe_evmergehilo): Rename to...
18025 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18026 (spe_evmergelo): Rename to...
18027 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18028 (spe_evmergelohi): Rename to...
18029 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18030 (spe_evmergehi, spe_evmergehilo): New expanders.
18031 (spe_evmergelo, spe_evmergelohi): Likewise.
18032 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18033 (*frob_tf_ti): Likewise.
18034 (*frob_<mode>_di_2): Likewise.
18035 (*frob_tf_di_8_2): Likewise.
18036 (*frob_di_<mode>): Likewise.
18037 (*frob_ti_tf): Likewise.
18038 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18039 (*frob_ti_<mode>_8_2): Likewise.
18040 (*frob_ti_tf_2): Likewise.
18041 (mov_si<mode>_e500_subreg0): Rename to...
18042 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18044 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18045 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18046 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18047 the big endianness only.
18048 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18049 (*mov_si<mode>_e500_subreg0_2): Rename to...
18050 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18051 big big endianness only.
18052 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18053 (*mov_si<mode>_e500_subreg4): Rename to...
18054 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18056 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18057 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18058 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18059 the big endianness only.
18060 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18062 (*mov_si<mode>_e500_subreg4_2): Rename to...
18063 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18065 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18066 (*mov_sitf_e500_subreg8): Rename to...
18067 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18069 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18070 (*mov_sitf_e500_subreg8_2): Rename to...
18071 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18073 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18074 (*mov_sitf_e500_subreg12): Rename to...
18075 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18077 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18078 (*mov_sitf_e500_subreg12_2): Rename to...
18079 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18081 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18083 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18085 * asan.c (instrument_strlen_call): Do not instrument first byte
18086 in strlen if already instrumented.
18088 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18090 * config/arm/arm.opt (mwords-little-endian): Delete.
18091 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18092 of TARGET_LITTLE_WORDS.
18093 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18094 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18096 * doc/invoke.texi: Remove references to -mwords-little-endian.
18098 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18100 * expmed.c (struct init_expmed_rtl): Change all fields but
18101 pow2 and cint from struct rtx_def to rtx.
18102 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18103 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18106 2014-07-06 Marek Polacek <polacek@redhat.com>
18109 * doc/invoke.texi: Document -Wsizeof-array-argument.
18111 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18113 * wide-int.h (wide_int_storage): Change declaration from struct
18116 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18118 * cgraph.c (cgraph_create_indirect_edge): Update call of
18119 get_polymorphic_call_info.
18120 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18121 (possible_polymorphic_call_targets): Add parameter call.
18122 (decl_maybe_in_construction_p): New predicate.
18123 (get_polymorphic_call_info): Add parameter call;
18124 use decl_maybe_in_construction_p.
18125 * gimple-fold.c (fold_gimple_assign): Update use of
18126 possible_polymorphic_call_targets.
18127 (gimple_fold_call): Likewise.
18128 * ipa-prop.c: Inlcude calls.h
18129 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18130 (param_type_may_change_p): New predicate.
18131 (detect_type_change_from_memory_writes): Break out from ...
18132 (detect_type_change): ... this one; use param_type_may_change_p.
18133 (detect_type_change_ssa): Use param_type_may_change_p.
18134 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18136 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18139 * config/arm/arm-protos.h (arm_legitimate_address_p,
18140 arm_is_constant_pool_ref): Add prototypes.
18141 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18142 (arm_is_constant_pool_ref) New function.
18143 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18144 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18145 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18146 operand. Remove pool_range and neg_pool_range attributes.
18147 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18148 pool_range and neg_pool_range attributes.
18149 * config/arm/constraints.md (Uh): New constraint.
18150 (Uq): Don't allow constant pool references.
18152 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
18154 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18155 (move_lo_quad_internal_be_<mode>): Likewise.
18156 (move_lo_quad_<mode>): Convert to define_expand.
18157 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18158 (aarch64_simd_move_hi_quad_be_<mode>): New.
18159 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18160 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18161 (aarch64_combinez_be<mode>): New.
18162 (aarch64_combine<mode>): Convert to define_expand.
18163 (aarch64_combine_internal<mode>): New.
18164 (aarch64_simd_combine<mode>): Remove bogus RTL description.
18166 2014-07-04 Tom de Vries <tom@codesourcery.com>
18168 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18169 combination of earlyclobber and read/write modifiers.
18171 2014-07-04 Tom de Vries <tom@codesourcery.com>
18173 * config/aarch64/aarch64-simd.md
18174 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18176 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
18179 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18181 2014-07-04 Jakub Jelinek <jakub@redhat.com>
18183 PR middle-end/61654
18184 * cgraphunit.c (expand_thunk): Call free_dominance_info.
18186 PR tree-optimization/61684
18187 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18188 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18190 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18191 Kito Cheng <kito@0xlab.org>
18192 Monk Chiang <sh.chiang04@gmail.com>
18194 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18195 (nds32_symbol_load_store_p): Move to ...
18196 (nds32_fp_as_gp_check_available): Move to ...
18197 * config/nds32/nds32-fp-as-gp.c: ... here.
18198 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18199 extern declaration.
18201 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18202 Kito Cheng <kito@0xlab.org>
18203 Monk Chiang <sh.chiang04@gmail.com>
18205 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18206 (nds32_expand_store_multiple): Move to ...
18207 (nds32_expand_movmemqi): Move to ...
18208 * config/nds32/nds32-memory-manipulation.c: ... here.
18210 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18211 Kito Cheng <kito@0xlab.org>
18212 Monk Chiang <sh.chiang04@gmail.com>
18214 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18215 (nds32_output_casesi_pc_relative): Move to ...
18216 (nds32_output_casesi): Move to ...
18217 (nds32_mem_format): Move to ...
18218 (nds32_output_16bit_store): Move to ...
18219 (nds32_output_16bit_load): Move to ...
18220 (nds32_output_32bit_store): Move to ...
18221 (nds32_output_32bit_load): Move to ...
18222 (nds32_output_32bit_load_s): Move to ...
18223 (nds32_output_stack_push): Move to ...
18224 (nds32_output_stack_pop): Move to ...
18225 * config/nds32/nds32-md-auxiliary.c: ... here.
18227 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18228 Ling-Hua Tseng <uranus@tinlans.org>
18230 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18231 the purpose of this file.
18233 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18234 Kito Cheng <kito@0xlab.org>
18235 Monk Chiang <sh.chiang04@gmail.com>
18237 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18238 (nds32_address_cost): Move implementation to ...
18239 * config/nds32/nds32-cost.c: ... here.
18240 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18241 (nds32_address_cost_impl): Declare.
18243 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18244 Kito Cheng <kito@0xlab.org>
18245 Monk Chiang <sh.chiang04@gmail.com>
18247 * config/nds32/nds32.c
18248 (nds32_consecutive_registers_load_store_p): Move to ...
18249 (nds32_valid_multiple_load_store): Move to ...
18250 (nds32_valid_stack_push_pop): Move to ...
18251 (nds32_can_use_bclr_p): Move to ...
18252 (nds32_can_use_bset_p): Move to ...
18253 (nds32_can_use_btgl_p): Move to ...
18254 (nds32_can_use_bitci_p): Move to ...
18255 * config/nds32/nds32-predicates.c: ... here.
18257 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18258 Kito Cheng <kito@0xlab.org>
18259 Monk Chiang <sh.chiang04@gmail.com>
18261 * config/nds32/nds32.c
18262 (nds32_expand_builtin_null_ftype_reg): Move to ...
18263 (nds32_expand_builtin_reg_ftype_imm): Move to ...
18264 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18265 (nds32_init_builtins): Move implementation to ...
18266 (nds32_expand_builtin): Move implementation to ...
18267 * config/nds32/nds32-intrinsic.c: ... here.
18268 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18269 (nds32_expand_builtin_impl): Declare.
18271 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18272 Kito Cheng <kito@0xlab.org>
18273 Monk Chiang <sh.chiang04@gmail.com>
18275 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18276 (nds32_emit_section_tail_template): Move to ...
18277 (nds32_emit_isr_jmptbl_section): Move to ...
18278 (nds32_emit_isr_vector_section): Move to ...
18279 (nds32_emit_isr_reset_conten): Move to ...
18280 (nds32_check_isr_attrs_conflict): Move to ...
18281 (nds32_construct_isr_vectors_information): Move to ...
18282 (nds32_asm_file_start): Move implementation to ...
18283 (nds32_asm_file_end): Move implementation to ...
18284 * config/nds32/nds32-isr.c: ... here.
18285 * config/nds32/nds32-protos.h
18286 (nds32_check_isr_attrs_conflict): Declare.
18287 (nds32_construct_isr_vectors_information): Declare.
18288 (nds32_asm_file_start_for_isr): Declare.
18289 (nds32_asm_file_end_for_isr): Declare.
18291 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18292 Kito Cheng <kito@0xlab.org>
18293 Monk Chiang <sh.chiang04@gmail.com>
18295 * config.gcc (nds32*): Add new modules to extra_objs.
18296 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18297 (nds32be-*-*): Likewise.
18298 * config/nds32/nds32-cost.c: New file.
18299 * config/nds32/nds32-fp-as-gp.c: New file.
18300 * config/nds32/nds32-intrinsic.c: New file.
18301 * config/nds32/nds32-isr.c: New file.
18302 * config/nds32/nds32-md-auxiliary.c: New file.
18303 * config/nds32/nds32-memory-manipulation.c: New file.
18304 * config/nds32/nds32-pipelines-auxiliary.c: New file.
18305 * config/nds32/nds32-predicates.c: New file.
18306 * config/nds32/t-nds32: New file.
18308 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18310 PR tree-optimization/61682
18311 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18312 using cases and when one of the operands is equal to 1.
18314 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
18316 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18317 ashr<mode>3): Correct mode of operands[2].
18318 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18319 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18320 Correct mode of operands[2]. Fix split condition.
18322 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
18324 * arm.md (arch): Add armv6_or_vfpv3.
18325 (arch_enabled): Add test for the above.
18326 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18328 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18330 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18332 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18333 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18334 HWI 1 and negate the unsigned value.
18335 * expmed.c (expand_sdiv_pow2): For modes wider than word always
18336 use AND instead of shift.
18337 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18339 2014-07-03 Marek Polacek <polacek@redhat.com>
18341 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18342 (-fsanitize=float-divide-by-zero): Move to the table with
18343 -fsanitize=undefined suboptions.
18344 (-fsanitize=float-cast-overflow): Likewise.
18346 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
18348 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18349 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18352 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18354 * loop-invariant.c (struct invariant): Add a new member: eqno;
18355 (find_identical_invariants): Update eqno;
18356 (create_new_invariant): Init eqno;
18357 (get_inv_cost): Compute comp_cost with eqno;
18359 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18361 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18362 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18363 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18364 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18365 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18367 2014-07-02 Christian Bruel <christian.bruel@st.com>
18371 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18372 (make_preds_opaque): Delete.
18373 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18374 (commit_mode_sets): New function.
18375 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18376 Process all modes at once.
18377 * basic-block.h (pre_edge_lcm_avs): Declare.
18378 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18379 Call clear_aux_for_edges. Fix comments.
18380 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18381 (pre_edge_rev_lcm): Idem.
18382 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18384 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18385 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18387 * config/i386/i386.c (x96_emit_mode_set): Idem.
18388 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18389 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
18390 (fpscr_toggle) Disallow from delay slot.
18391 * target.def (emit_mode_set): Add prev_mode parameter.
18392 * doc/tm.texi: Regenerate.
18394 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18396 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18399 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18401 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18402 vtable_pointer_value_to_vtable): Constify.
18403 (contains_polymorphic_type_p): Declare.
18404 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18405 vtable_pointer_value_to_vtable): Constify.
18406 (contains_polymorphic_type_p): New predicate.
18407 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18409 (ipa_set_ancestor_jf): Likewise.
18410 (detect_type_change): Return false in easy cases.
18411 (compute_complex_assign_jump_func): Require type to contain
18413 (compute_known_type_jump_func): Likewise.
18415 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18417 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18419 (type_in_anonymous_namespace_p): Constify argument.
18420 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18421 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18422 (main_odr_variant): New function.
18423 (hash_type_name): Make static; update assert; do not ICE on
18425 (types_same_for_odr): Bring here from tree.c; simplify and remove
18426 old structural comparing code that doesn't work for templates.
18427 (odr_hasher::equal): Update assert.
18428 (add_type_duplicate): Return true when bases should be computed;
18429 replace incomplete loader by complete; do not output duplicated
18430 warnings; do not ICE on non-records; set odr_violated flag.
18431 (get_odr_type): Be ready to replace incomplete type by complete
18432 one; work on ODR variants instead of main variants; reorder item
18433 in array so bases have still smaller indexes.
18434 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18435 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18437 2014-07-01 Cary Coutant <ccoutant@google.com>
18439 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18441 (resolve_addr_in_expr): When replacing the rtx in a location list
18442 entry, get a new address table entry.
18443 (dwarf2out_finish): Call index_location_lists even if there are no
18444 addr_index_table entries yet.
18446 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18448 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
18449 change for not being obvious.
18451 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18453 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
18456 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18458 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
18459 (vcagt_f64): Likewise.
18460 (vcale_f64): Likewise.
18461 (vcaled_f64): Likewise.
18462 (vcales_f32): Likewise.
18463 (vcalt_f64): Likewise.
18464 (vcaltd_f64): Likewise.
18465 (vcalts_f32): Likewise.
18467 2014-07-01 Marek Polacek <polacek@redhat.com>
18469 * doc/invoke.texi: Document -Wint-conversion.
18471 2014-07-01 Marek Polacek <polacek@redhat.com>
18474 * doc/invoke.texi: Document -Wincompatible-pointer-types.
18476 2014-07-01 Martin Liska <mliska@suse.cz>
18478 IPA REF alias refactoring
18479 * cgraph.h (iterate_direct_aliases): New function.
18480 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
18481 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
18482 FOR_EACH_ALIAS added.
18483 (cgraph_for_node_and_aliases): Likewise.
18484 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
18485 * ipa-inline.c (reset_edge_caches): Likewise.
18486 (update_caller_keys): Likewise.
18487 * trans-mem.c (ipa_tm_execute): Likewise.
18488 *varpool.c (varpool_analyze_node): Likewise.
18489 (varpool_for_node_and_aliases): Likewise.
18490 * ipa-ref.h (first_alias): New function.
18491 (last_alias): Likewise.
18492 (has_aliases_p): Likewise.
18493 * ipa-ref.c (ipa_ref::remove_reference): Removal function
18494 is sensitive to IPA_REF_ALIASes.
18495 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
18496 are put at the beginning of the list.
18497 (symtab_node::iterate_direct_aliases): New function.
18499 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18502 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18504 (write_ts_type_common_tree_pointers): Do not stream fields not set
18505 for incomplete types; do not stream duplicated fields for variants;
18506 sanity check that variant and type match.
18507 (write_ts_type_non_common_tree_pointers): Likewise.
18508 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18509 TYPE_SIZE whether type is complete.
18510 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18511 write_ts_type_common_tree_pointers
18512 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18514 2014-06-30 Joseph Myers <joseph@codesourcery.com>
18516 * var-tracking.c (add_stores): Return instead of asserting if old
18517 and new values for conditional store are the same.
18519 2014-06-30 Richard Henderson <rth@redhat.com>
18523 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
18524 the cfg if there were any changes.
18525 * passes.def: Revert move of peephole2 after reorder_blocks;
18526 move duplicate_computed_gotos before peephole2.
18528 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
18530 * except.c (emit_note_eh_region_end): New helper function.
18531 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
18532 emit EH_REGION_END note.
18533 * jump.c (cleanup_barriers): Do not split a call and its
18534 corresponding CALL_ARG_LOCATION note.
18536 2014-06-30 Jeff Law <law@redhat.com>
18538 PR tree-optimization/61607
18539 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
18540 deeper into the SSA_NAME_VALUE chain.
18542 2014-06-30 Marek Polacek <polacek@redhat.com>
18544 * convert.c (convert_to_integer): Don't instrument conversions if the
18545 function has no_sanitize_undefined attribute.
18546 * ubsan.c: Don't run the ubsan pass if the function has
18547 no_sanitize_undefined attribute.
18549 2014-06-30 Jakub Jelinek <jakub@redhat.com>
18551 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
18552 -fsanitize=undefined suboptions.
18554 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
18556 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
18557 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
18558 against bigendian and adjust indices.
18560 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
18562 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
18564 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
18567 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
18568 Add alternative; make early clobber. Adjust both split patterns
18569 to use operand 0 as the working register.
18571 2014-06-30 Jakub Jelinek <jakub@redhat.com>
18573 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
18574 as ira_object_id_map might be NULL, or 1.
18576 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18578 * loop-invariant.c (get_inv_cost): Handle register class.
18579 (gain_for_invariant): Check the register pressure of the inv
18580 and its overlapped register class, other than all.
18582 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
18584 * doc/invoke.texi (Optimize Options): Fix descriptions of
18585 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
18587 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
18589 * doc/extend.texi (Function Attributes): Update 'naked' attribute
18592 2014-06-29 Tobias Grosser <tobias@grosser.es>
18595 * graphite-isl-ast-to-gimple.c: Add missing guards.
18597 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18599 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
18600 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
18601 * flag-types.h: Add new enum fgraphite_generator.
18602 * graphite-isl-ast-to-gimple.c: New.
18603 * graphite-isl-ast-to-gimple.h: New.
18604 * graphite.c (graphite_transform_loops): Add choice of Graphite
18605 code generator, which depends on flag_graphite_code_gen.
18607 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18609 * graphite-dependences.c (subtract_commutative_associative_deps):
18610 Add NULL checking of the following variables: must_raw_no_source,
18611 may_raw_no_source, must_war_no_source, may_war_no_source,
18612 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
18613 must_war, may_war, must_waw, may_waw.
18615 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18617 * graphite-clast-to-gimple.c: gloog is renamed to
18618 graphite_regenerate_ast_cloog. gloog_error is renamed to
18619 graphite_regenerate_error.
18620 * graphite-clast-to-gimple.h: The definition of the struct
18621 bb_pbb_def is moved to graphite-htab.h.
18622 Add inclusion of the hash-table.h.
18623 * graphite-htab.h: The declaration of the function gloog is moved
18624 to graphite-clast-to-gimple.h and renamed to
18625 graphite_regenerate_ast_cloog.
18626 * graphite.c (graphite_transform_loops): gloog is renamed
18627 to graphite_regenerate_ast_cloog.
18629 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18631 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18633 (write_ts_type_common_tree_pointers): Do not stream fields not set
18634 for incomplete types; do not stream duplicated fields for variants;
18635 sanity check that variant and type match.
18636 (write_ts_type_non_common_tree_pointers): Likewise.
18637 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18638 TYPE_SIZE whether type is complete.
18639 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18640 write_ts_type_common_tree_pointers
18641 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18643 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18645 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
18647 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18649 * tree-inline.c (remap_type_1): Do not duplicate fields
18650 that are shared in between type and its main variant.
18652 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18654 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
18656 (ipa_set_ancestor_jf) Likewise.
18657 (check_stmt_for_type_change): Check that we work on main variant.
18658 (detect_type_change): Look into main variant.
18659 (compute_known_type_jump_func): Check that main variant has BINFO.
18661 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18663 * ipa-devirt.c (set_type_binfo): New function.
18664 (add_type_duplicate): Use it.
18665 (get_odr_type): Sanity check that binfos points to main variants.
18666 (get_class_context): Be sure the context's outer_type is main variant.
18667 (contains_type_p): Walk main variant.
18668 (get_polymorphic_call_info_for_decl): Set outer_type to be
18670 (get_polymorphic_call_info): Likewise.
18671 (possible_polymorphic_call_targets): Sanity check that we operate
18674 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18676 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18678 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18680 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
18681 accidental change due to wide-int branch merge.
18683 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18685 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
18686 compressed debug support.
18687 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
18688 * configure: Regenerate.
18689 * config.in: Regenerate.
18690 * common.opt (compressed_debug_sections): New enum.
18691 (gz, gz=): New options.
18692 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
18693 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
18694 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
18695 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
18696 LINK_COMPRESS_DEBUG_SPEC.
18697 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
18698 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
18699 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
18700 (Debugging Options): Document -gz[=type].
18702 2014-06-27 Martin Jambor <mjambor@suse.cz>
18705 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
18706 args_to_skip, use those from node instead. Copy args_to_skip and
18707 combined_args_to_skip from node to the new thunk.
18708 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
18709 (cgraph_create_virtual_clone): Moved computation of
18710 combined_args_to_skip...
18711 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
18713 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
18715 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
18716 redundant diagnostic machinary.
18718 2014-06-27 Richard Biener <rguenther@suse.de>
18720 * tree-ssa-math-opts.c (bswap_replace): Fix
18721 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
18723 2014-06-27 Martin Liska <mliska@suse.cz>
18725 * gimple.h (gimple_location_safe): New function introduced.
18726 * cgraphunit.c (walk_polymorphic_call_targets): Usage
18727 of gimple_location_safe replaces gimple_location.
18728 (gimple_fold_call): Likewise.
18729 * ipa-devirt.c (ipa_devirt): Likewise.
18730 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18731 * ipa.c (walk_polymorphic_call_targets): Likewise.
18732 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18734 2014-06-27 Jakub Jelinek <jakub@redhat.com>
18736 PR tree-optimization/57233
18737 PR tree-optimization/61299
18738 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
18740 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
18741 would be lowered to scalar shifts, check if corresponding
18742 shifts and vector BIT_IOR_EXPR are supported and don't lower
18743 or lower just to narrower vector type in that case.
18744 * expmed.c (expand_shift_1): Fix up handling of vector
18745 shifts and rotates.
18747 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
18750 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
18752 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
18754 * doc/invoke.texi (-fsemantic-interposition): Document.
18755 * common.opt (fsemantic-interposition): New flag.
18756 * varasm.c (decl_replaceable_p): Use it.
18758 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18761 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
18762 extraction other than index 3.
18764 2014-06-26 Teresa Johnson <tejohnson@google.com>
18766 * doc/invoke.texi: Fix typo.
18767 * dumpfile.c: Add support for documented -fdump-* options
18768 optimized/missed/note/optall.
18770 2014-06-26 Martin Jambor <mjambor@suse.cz>
18772 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
18773 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
18774 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
18775 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
18776 * opts.c (default_options_optimization): Set
18777 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
18778 * doc/invoke.texi (allow-load-data-races)
18779 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
18780 (allow-store-data-races): Document the new default.
18782 2014-06-26 Martin Jambor <mjambor@suse.cz>
18784 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
18785 renamed to ipa_impossible_devirt_target. Fix typo.
18786 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
18787 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
18788 ipa_impossible_devirt_target.
18790 2014-06-26 Richard Biener <rguenther@suse.de>
18792 PR tree-optimization/61607
18793 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
18794 explaining why we restrict copies on loop depth.
18795 * tree-ssa-dom.c (cprop_operand): Remove restriction on
18797 (record_equivalences_from_phis): Instead add it here.
18799 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
18801 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
18802 (LTO_WRAPPER_OBJS): New variable.
18803 (lto-wrapper$(exeext)): Use it.
18804 * collect2.c: Include "collect-utils.h".
18805 (verbose, debug): Remove variables.
18806 (at_file_supplied): No longer static.
18807 (tool_name): New variable.
18808 (do_wait, fork_execute, maybe_unlink): Don't declare.
18809 (tool_cleanup): No longer static.
18810 (notice): Remove function.
18811 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
18812 fork_execute calls.
18813 (collect_wait, do_wait, collect_execute): Remove functions.
18814 (maybe_unlink): No longer static.
18815 * collect2.h (verbose, debug): Don't declare.
18816 (at_file_supplied): Declare.
18817 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
18819 (collect_execute): Replace with implementation from collect2, plus a
18820 new arg use_atfile. All callers changed.
18821 (collect_wait): Replace with implementation from collect2.
18822 (maybe_unlink_file): Remove function.
18823 (fork_execute): Replace with implementation from collect2, plus a
18824 new arg use_atfile. All callers changed.
18825 (do_wait): Add call to utils_cleanup to the error path.
18826 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
18827 (tool_cleanup): Adjust declarations.
18828 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
18829 * tlink.c: Include "collect-utils.h".
18830 (tlink_execute): New arg use_atfile. All callers changed.
18831 (tlink_init, tlink_execute): Remove declarations.
18833 * collect-utils.c (save_temps): New variable.
18834 (do_wait): Use it instead of debug. Use fatal_error.
18835 * collect-utils.h (save_temps): Declare.
18836 * collect2.c (verbose): Rename from vflag. All uses changed.
18837 (tool_cleanup): New function, copied from collect_atexit.
18838 (collect_atexit, handler): Just call it.
18839 * collect2.h (verbose): Declaration renamed from vflag.
18840 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
18843 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
18844 (lto-wrapper$(exeext)): Link with collect-utils.o.
18845 * collect-utils.c: New file.
18846 * collect-utils.h: New file.
18847 * lto-wrapper.c: Include "collect-utils.h".
18848 (args_name): Delete variable.
18849 (tool_name): New variable.
18850 (tool_cleanup): New function.
18851 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
18852 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
18853 (fork_execute): Remove functions.
18855 2014-06-26 Nick Clifton <nickc@redhat.com>
18857 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
18859 * doc/extend.texi (Function Attributes): Fix typo in description
18860 of RX vector attribute.
18862 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18864 * config.gcc (supported_defaults): Error when passing either
18865 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
18867 2014-06-26 Richard Biener <rguenther@suse.de>
18869 * tree-ssa-dom.c (cprop_operand): Remove restriction on
18870 propagating volatile pointers.
18872 2014-06-26 Richard Biener <rguenther@suse.de>
18874 PR tree-optimization/61607
18875 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
18876 loop if we redirected its latch edge.
18877 (thread_block_1): Do not cancel loops prematurely.
18879 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
18881 * toplev.c (backend_init_target): Move init_emit_regs and
18883 (backend_init) ... here; skip ira_init_once and backend_init_target.
18884 (target_reinit) ... and here; clear
18885 this_target_rtl->lang_dependent_initialized.
18886 (lang_dependent_init_target): Clear
18887 this_target_rtl->lang_dependent_initialized;
18888 break out rtl initialization to ...
18889 (initialize_rtl): ... here; call also backend_init_target
18891 * toplev.h (initialize_rtl): New function.
18892 * function.c: Include toplev.h
18893 (init_function_start): Call initialize_rtl.
18894 * rtl.h (target_rtl): Add target_specific_initialized,
18895 lang_dependent_initialized.
18897 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
18898 Jakub Jelinek <jakub@redhat.com>
18900 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
18902 2014-06-25 Tom de Vries <tom@codesourcery.com>
18904 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
18906 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
18908 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
18909 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
18910 Issue a strict overflow warning if appropriate.
18912 2014-06-25 Martin Liska <mliska@suse.cz>
18914 IPA REF refactoring
18915 * Makefile.in: Removed header file (ipa-ref-inline.h).
18916 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
18918 (cgraph_speculative_call_info): Likewise.
18919 (cgraph_for_node_thunks_and_aliases): Likewise.
18920 (cgraph_for_node_and_aliases): Likewise.
18921 (verify_cgraph_node): Likewise.
18922 * cgraph.h: Batch of IPA REF functions become member functions of
18923 symtab_node: add_reference, maybe_add_reference, clone_references,
18924 clone_referring, clone_reference, find_reference,
18925 remove_stmt_references, remove_all_references,
18926 remove_all_referring, dump_references, dump_referring,
18927 has_alias_p, iterate_reference, iterate_referring.
18928 * cgraphbuild.c (record_reference): New IPA REF function used.
18929 (record_type_list): Likewise.
18930 (record_eh_tables): Likewise.
18931 (mark_address): Likewise.
18932 (mark_load): Likewise.
18933 (mark_store): Likewise.
18934 (pass_build_cgraph_edges): Likewise.
18935 (rebuild_cgraph_edge): Likewise.
18936 (cgraph_rebuild_references): Likewise.
18937 (pass_remove_cgraph_callee_edges): Likewise.
18938 * cgraphclones.c (cgraph_clone_node): Likewise.
18939 (cgraph_create_virtual_clone): Likewise.
18940 (cgraph_materialize_clone): Likewise.
18941 (cgraph_materialize_all_clones): Likewise.
18942 * cgraphunit.c (cgraph_reset_node): Likewise.
18943 (cgraph_reset_node): Likewise.
18944 (analyze_function): Likewise.
18945 (assemble_thunks_and_aliases): Likewise.
18946 (expand_function): Likewise.
18947 * ipa-comdats.c (propagate_comdat_group): Likewise.
18948 (enqueue_references): Likewise.
18949 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
18950 (create_specialized_node): Likewise.
18951 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
18952 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
18953 * ipa-inline.c (reset_edge_caches): Likewise.
18954 (update_caller_keys): Likewise.
18955 (execute): Likewise.
18956 * ipa-prop.c (remove_described_reference): Likewise.
18957 (propagate_controlled_uses): Likewise.
18958 (ipa_edge_duplication_hook): Likewise.
18959 (ipa_modify_call_arguments): Likewise.
18960 * ipa-pure-const.c (propagate_pure_const): Likewise.
18961 * ipa-ref-inline.h: Header file removed, functions moved
18962 to symtab_node class.
18963 * ipa-ref.c (remove_reference): New class member function.
18964 (cannot_lead_to_return): New class member function.
18965 (referring_ref_list): Likewise.
18966 (referred_ref_list): Likewise.
18967 Rest of functions moved to symtab_node class.
18968 * ipa-ref.h: New member functions remove_reference,
18969 cannot_lead_to_return, referring_ref_list, referred_ref_list added
18971 ipa_ref_list class has new member functions: first_reference,
18972 first_referring, clear, nreferences.
18973 * ipa-reference.c (analyze_function): New IPA REF function used.
18974 (write_node_summary_p): Likewise.
18975 (ipa_reference_write_optimization_summary): Likewise.
18976 * ipa-split.c (split_function): Likewise.
18977 * ipa-utils.c (ipa_reverse_postorder): Likewise.
18978 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
18979 (function_and_variable_visibility): Likewise.
18980 * ipa.c (has_addr_references_p): Likewise.
18981 (process_references): Argument type changed.
18982 (symtab_remove_unreachable_nodes): New IPA REF function used.
18983 (process_references): Likewise.
18984 (set_writeonly_bit): Likewise.
18985 * lto-cgraph.c: Implementation of new symtab_node member functions
18986 that uses new IPA REF functions.
18987 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
18989 * lto-streamer-out.c (output_symbol_p): Likewise.
18990 * lto-streamer.h (referenced_from_this_partition_p): Argument type
18992 * symtab.c: Implementation of new IPA REF API.
18993 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
18994 (ipa_tm_create_version): Likewise.
18995 (ipa_tm_execute): Likewise.
18996 * tree-emutls.c (gen_emutls_addr): Likewise.
18997 * tree-inline.c (copy_bb): Likewise.
18998 (delete_unreachable_blocks_update_callgraph): Likewise.
18999 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19000 (varpool_for_node_and_aliases): Likewise.
19002 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19004 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19006 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19009 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19010 tree_node * instead of tree_node *.
19012 (print_fold_checksum): Likewise.
19013 (fold_check_failed): Likewise.
19014 (debug_fold_checksum): Likewise.
19015 (fold_build1_stat_loc): Likewise.
19016 (fold_build2_stat_loc): Likewise.
19017 (fold_build3_stat_loc): Likewise.
19018 (fold_build_call_array_loc): Likewise.
19020 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19022 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19023 implementation with call to...
19024 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19026 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19029 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19031 PR tree-optimization/57742
19032 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19033 after replacing the statement.
19035 2014-06-25 Nick Clifton <nickc@redhat.com>
19037 * config/v850/v850.c (GHS_default_section_names): Change to const
19039 (GHS_current_section_names): Likewise.
19040 (v850_insert_attributes): Do not build strings, just assign the
19041 names directly. Change the type of 'chosen_section' to const
19043 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19044 directly to the array entry.
19045 * config/v850/v850.h (GHS_default_section_names): Change to const
19047 (GHS_current_section_names): Likewise.
19049 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19051 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19052 (LANG_HOOKS_DECLS): Add it.
19053 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19055 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19056 * langhooks.h (struct lang_hooks_for_decls): Add
19057 omp_clause_linear_ctor hook.
19058 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19059 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19060 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19061 combined simd loop use omp_clause_linear_ctor hook.
19063 2014-06-24 Cong Hou <congh@google.com>
19065 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19066 pattern recognition.
19067 (type_conversion_p): PROMOTION is true if it's a type promotion
19068 conversion, and false otherwise. Return true if the given expression
19069 is a type conversion one.
19070 * tree-vectorizer.h: Adjust the number of patterns.
19071 * tree.def: Add SAD_EXPR.
19072 * optabs.def: Add sad_optab.
19073 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19074 * expr.c (expand_expr_real_2): Likewise.
19075 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19076 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19077 * optabs.c (optab_for_tree_code): Likewise.
19078 * tree-cfg.c (estimate_operator_cost): Likewise.
19079 * tree-ssa-operands.c (get_expr_operands): Likewise.
19080 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19081 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19082 * doc/generic.texi: Add document for SAD_EXPR.
19083 * doc/md.texi: Add document for ssad and usad.
19085 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19087 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19088 qualification in cast.
19090 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19092 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19093 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19094 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19095 (tree_function_decl): ... here.
19096 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19097 streaming of vindex to ...
19098 (write_ts_function_decl_tree_pointers): ... here.
19099 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19100 Do not stream DECL_VINDEX.
19101 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19103 2014-06-24 Catherine Moore <clm@codesourcery.com>
19104 Sandra Loosemore <sandra@codesourcery.com>
19106 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19107 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19108 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19110 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19112 * doc/invoke.texi (Warning Options): Remove duplicated
19113 -Wmaybe-uninitialized.
19115 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19117 PR tree-optimization/57742
19118 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19119 (handle_builtin_malloc, handle_builtin_memset): New functions.
19120 (strlen_optimize_stmt): Call them.
19121 * passes.def: Move strlen after loop+dom but before vrp.
19123 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19126 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19127 model family 6 CPU with has_longmode never use a CPU without
19130 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19133 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19136 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19138 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19139 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19141 * hash-map.h: New file.
19142 * ipa-comdats.c: Use hash_map instead of pointer_map.
19144 * lto-section-out.c: Adjust.
19145 * lto-streamer.h: Replace pointer_map with hash_map.
19146 * symtab.c (verify_symtab): Likewise.
19147 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19148 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19149 * tree-streamer.h: Likewise.
19150 * tree-streamer.c: Adjust.
19151 * pointer-set.h: Remove pointer_map.
19153 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19155 * hash-table.h: Add a template arg to choose between storing values
19156 and storing pointers to values, and then provide partial
19157 specializations for both.
19158 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19159 should store, not the type values should point to.
19160 * tree-into-ssa.c (var_info_hasher): Likewise.
19161 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19162 * tree-complex.c: Adjust.
19163 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19164 table instead of int_tree_map *.
19165 * tree-parloops.c: Adjust.
19166 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19167 type is being stored.
19168 * tree-vectorizer.c: Adjust.
19170 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19172 * hash-table.h: Remove a layer of indirection from hash_table so that
19173 it contains the hash table's data instead of a pointer to the data.
19174 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19175 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19176 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19177 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19178 fold-const.c, gcse.c, ggc-common.c,
19179 gimple-ssa-strength-reduction.c, gimplify.c,
19180 graphite-clast-to-gimple.c, graphite-dependences.c,
19181 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19182 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19183 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19184 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19185 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19186 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19187 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19188 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19189 tree-ssa-live.c, tree-ssa-loop-im.c,
19190 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19191 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19192 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19193 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19194 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19195 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19196 vtable-verify.c, vtable-verify.h: Adjust.
19198 2014-06-24 Richard Biener <rguenther@suse.de>
19200 PR tree-optimization/61572
19201 * tree-ssa-sink.c (statement_sink_location): Do not sink
19202 loads from hard registers.
19204 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19206 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19207 not mentioned in clauses use private clause if the iterator is
19208 declared in #pragma omp for simd, and when adding lastprivate
19209 instead, add it to the outer #pragma omp for too. Diagnose
19210 if the variable is private in outer context. For simd collapse > 1
19211 loops, replace all iterators with temporaries.
19212 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19213 same even in collapse > 1 loops.
19215 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19216 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19218 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19219 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19221 (gimplify_adjust_omp_clauses): Likewise.
19222 * omp-low.c (lower_rec_simd_input_clauses,
19223 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19224 safelen the same as safelen(1).
19225 * tree-nested.c (convert_nonlocal_omp_clauses,
19226 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
19227 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19228 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19229 Fixup handling of GIMPLE_OMP_TARGET.
19230 (convert_tramp_reference_stmt, convert_gimple_call): Handle
19233 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
19235 PR tree-optimization/61554
19236 * tree-ssa-propagate.c: Include "bitmap.h".
19237 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19238 properly update constructor/destructor.
19239 (substitute_and_fold_dom_walker::before_dom_children):
19240 Remove call to gimple_purge_dead_eh_edges, add bb->index to
19241 need_eh_cleaup instead.
19242 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19245 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19247 * varpool.c (dump_varpool_node): Dump used_by_single_function.
19248 * tree-pass.h (make_pass_ipa_single_use): New pass.
19249 * cgraph.h (used_by_single_function): New flag.
19250 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19252 * passes.def (pass_ipa_single_use): Scedule.
19253 * ipa.c (BOTTOM): New macro.
19254 (meet): New function
19255 (propagate_single_user): New function.
19256 (ipa_single_use): New function.
19257 (pass_data_ipa_single_use): New pass.
19258 (pass_ipa_single_use): New pass.
19259 (pass_ipa_single_use::gate): New gate.
19260 (make_pass_ipa_single_use): New function.
19262 2014-06-23 Kai Tietz <ktietz@redhat.com>
19265 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19266 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19268 2014-06-23 Richard Biener <rguenther@suse.de>
19270 * tree-ssa-loop.c (gate_loop): New function.
19271 (pass_tree_loop::gate): Call it.
19272 (pass_data_tree_no_loop, pass_tree_no_loop,
19273 make_pass_tree_no_loop): New.
19274 * tree-vectorizer.c: Include tree-scalar-evolution.c
19275 (pass_slp_vectorize::execute): Initialize loops and SCEV if
19277 (pass_slp_vectorize::clone): New method.
19278 * timevar.def (TV_TREE_NOLOOP): New.
19279 * tree-pass.h (make_pass_tree_no_loop): Declare.
19280 * passes.def (pass_tree_no_loop): New pass group with
19283 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
19286 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19287 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19289 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19291 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19292 "yes" where needed.
19294 2014-06-23 Alan Modra <amodra@gmail.com>
19297 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19298 to zero on debug statements.
19300 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19303 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19304 Ignore third operand if present by marking qualifier_internal.
19306 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19308 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19310 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19311 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19312 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19313 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19314 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19315 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19316 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19317 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19318 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19319 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19320 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19321 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19322 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19323 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19324 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19325 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19326 logic in GCC vector extensions
19328 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19329 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19330 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19331 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19332 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19333 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19334 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19335 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19336 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19337 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19339 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19341 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19344 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19345 (vget_low_s64): Use __GET_LOW macro.
19346 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19347 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19348 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19349 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19350 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19352 (vcombine_s64): Use GCC vector extensions; remove cast.
19353 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19354 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19355 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19356 Fix type signature; remove cast.
19358 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19361 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19363 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19365 (BUILTIN_VD1): New.
19366 (BUILTIN_VD_RE): Remove.
19367 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19368 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19369 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19370 variant but not df.
19371 (vreinterpretv1df*, vreinterpret*v1df): New.
19372 (vreinterpretdf*, vreinterpret*df): Remove.
19373 * config/aarch64/aarch64-simd.md (aarch64_create,
19374 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19375 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19377 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19378 (vcreate_f64): Remove cast, use v1df builtin.
19379 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19380 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19381 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19382 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19383 vmov_n_f64, vst1_f64): Use gcc vector extensions.
19384 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19385 add range check using __builtin_aarch64_im_lane_boundsi.
19386 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19387 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19388 type signature, use gcc vector extensions.
19389 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19390 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19391 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19392 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19393 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19394 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19395 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19396 vreinterpret_u64_f64): Use v1df builtin not df.
19398 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19400 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19403 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19405 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19408 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19410 * loop-invariant.c (pre_check_invariant_p): New function.
19411 (find_invariant_insn): Call pre_check_invariant_p.
19413 2014-06-22 Richard Henderson <rth@redhat.com>
19416 * compare-elim.c (struct comparison): Add eh_note.
19417 (find_comparison_dom_walker::before_dom_children): Don't eliminate
19418 a redundant comparison in a different EH region. Purge EH edges if
19421 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19423 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19424 (var_shift): Use it.
19425 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19426 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19427 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19428 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19429 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19430 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19431 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19432 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19433 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19434 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19435 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19436 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19437 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19438 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19439 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19440 *rotldi3_internal15be): Use the new attribute. Merge register and
19441 integer alternatives.
19443 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19445 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
19446 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
19447 split, *ashrdi3_internal3 and split): Delete, merge into...
19448 (ashr<mode>3): New expander.
19449 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
19450 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
19452 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19454 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
19455 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
19456 *rotldi3_internal3 and split): Delete, merge into...
19457 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
19458 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
19459 Use "rotlw" extended mnemonic.
19461 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19463 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
19464 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
19465 and split, *ashldi3_internal3 and split): Delete, merge into...
19466 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
19467 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
19469 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19471 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
19472 (lshrsi3, two anonymous define_insns and define_splits,
19473 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
19474 *lshrdi3_internal3 and split): Delete, merge into...
19475 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
19476 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
19478 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19480 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
19481 Remove "O" alternative.
19483 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
19485 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
19486 (mips_move_from_gpr_cost): Likewise.
19487 (mips_register_move_cost): Update accordingly.
19488 (mips_secondary_reload_class): Remove name of in_p.
19490 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
19493 * config/i386/i386.md (x86_64_shrd, x86_shrd,
19494 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
19496 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19498 * config/nios2/nios2.c: Include "builtins.h".
19500 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19502 * cgraph.h (tls_model_names): New variable.
19503 * print-tree.c (print_node): Simplify.
19504 * varpool.c (tls_model_names): New variable.
19505 (dump_varpool_node): Output tls model.
19507 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19509 * ipa-visibility.c (function_and_variable_visibility): Disable
19510 temporarily local aliases for some targets.
19512 2014-06-20 Marek Polacek <polacek@redhat.com>
19514 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
19515 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
19516 into SANITIZE_UNDEFINED.
19517 * doc/invoke.texi: Describe -fsanitize=bounds.
19518 * gimplify.c (gimplify_call_expr): Add gimplification of internal
19519 functions created in the FEs.
19520 * internal-fn.c: Move "internal-fn.h" after "tree.h".
19521 (expand_UBSAN_BOUNDS): New function.
19522 * internal-fn.def (UBSAN_BOUNDS): New internal function.
19523 * internal-fn.h: Don't define internal functions here.
19524 * opts.c (common_handle_option): Add -fsanitize=bounds.
19525 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
19526 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
19527 * tree-core.h: Define internal functions here.
19528 (struct tree_base): Add ifn field.
19529 * tree-pretty-print.c: Include "internal-fn.h".
19530 (dump_generic_node): Handle functions without CALL_EXPR_FN.
19531 * tree.c (get_callee_fndecl): Likewise.
19532 (build_call_expr_internal_loc): New function.
19533 * tree.def (CALL_EXPR): Update description.
19534 * tree.h (CALL_EXPR_IFN): Define.
19535 (build_call_expr_internal_loc): Declare.
19536 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
19538 (ubsan_type_descriptor): Change bool parameter to enum
19539 ubsan_print_style. Adjust the code. Add handling of
19541 (ubsan_expand_bounds_ifn): New function.
19542 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
19543 (ubsan_build_overflow_builtin): Likewise.
19544 (instrument_bool_enum_load): Likewise.
19545 (ubsan_instrument_float_cast): Likewise.
19546 * ubsan.h (enum ubsan_print_style): New enum.
19547 (ubsan_expand_bounds_ifn): Declare.
19548 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
19550 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
19552 * config/rs6000/rs6000.md: Append `DONE' to preparation
19553 statements of `bswap' pattern splitters.
19555 2014-06-20 Tom de Vries <tom@codesourcery.com>
19557 * target.def (call_fusage_contains_non_callee_clobbers): Update
19559 * doc/tm.texi: Regenerate.
19561 2014-06-20 Yury Gribov <y.gribov@samsung.com>
19562 Max Ostapenko <m.ostapenko@partner.samsung.com>
19565 * asan.c (instrument_strlen_call): Fixed instrumentation of
19568 2014-06-20 Martin Jambor <mjambor@suse.cz>
19571 * ipa-prop.c (impossible_devirt_target): New function.
19572 (try_make_edge_direct_virtual_call): Use it, also instead of
19575 2014-06-20 Yury Gribov <y.gribov@samsung.com>
19576 Max Ostapenko <m.ostapenko@partner.samsung.com>
19579 * asan.c (build_check_stmt): Add condition.
19581 2014-06-20 Martin Jambor <mjambor@suse.cz>
19584 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
19587 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19589 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
19591 (VCONQ): Make comment more helpful.
19593 * config/aarch64/aarch64-simd.md
19594 (aarch64_sqdmulh_lane<mode>):
19595 Use VCOND for operands 2. Update lane checking and flipping logic.
19596 (aarch64_sqrdmulh_lane<mode>): Likewise.
19597 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
19598 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
19599 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
19600 attribute of operand 3 to VCOND.
19601 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
19602 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
19603 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
19604 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
19605 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
19606 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
19608 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
19609 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
19610 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
19611 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
19612 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
19613 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
19614 operand to VCOND. Update lane flipping and bounds checking logic.
19615 (aarch64_sqdmlal2_lane<mode>): Likewise.
19616 (aarch64_sqdmlsl_lane<mode>): Likewise.
19617 (aarch64_sqdmull_lane<mode>): Likewise.
19618 (aarch64_sqdmull2_lane<mode>): Likewise.
19619 (aarch64_sqdmlal_laneq<mode>):
19620 Replace VCON usage with VCONQ.
19621 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
19622 (aarch64_sqdmlal2_laneq<mode>): Emit
19623 aarch64_sqdmlal2_laneq<mode>_internal insn.
19624 Replace VCON with VCONQ.
19625 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
19626 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19627 (aarch64_sqdmull_laneq<mode>): Emit
19628 aarch64_sqdmull_laneq<mode>_internal insn.
19629 Replace VCON with VCONQ.
19630 (aarch64_sqdmull2_laneq<mode>): Emit
19631 aarch64_sqdmull2_laneq<mode>_internal insn.
19632 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
19633 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
19634 of 3rd argument to int16x4_t.
19635 (vqdmlalh_lane_s16): Likewise.
19636 (vqdmlslh_lane_s16): Likewise.
19637 (vqdmull_high_lane_s16): Likewise.
19638 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
19639 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
19640 (vqdmlsl_lane_s16): Likewise.
19641 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
19642 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
19643 (vqdmlals_lane_s32): Likewise.
19644 (vqdmlsls_lane_s32): Likewise.
19645 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
19646 (vqdmulls_lane_s32): Likewise.
19647 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
19648 (vqdmlsl_lane_s32): Likewise.
19649 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
19650 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
19651 (vqrdmulhh_lane_s16): Likewise.
19652 (vqdmlsl_high_lane_s16): Likewise.
19653 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
19654 (vqdmlsl_high_lane_s32): Likewise.
19655 (vqrdmulhs_lane_s32): Likewise.
19657 2014-06-20 Tom de Vries <tom@codesourcery.com>
19659 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
19660 get_call_reg_set_usage.
19662 2014-06-20 Tom de Vries <tom@codesourcery.com>
19664 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
19665 it contains all call_used_regs.
19667 2014-06-20 Tom de Vries <tom@codesourcery.com>
19669 * final.c (collect_fn_hard_reg_usage): Add and use variable
19670 function_used_regs.
19672 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19674 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
19675 (set_init_priority, get_init_priority, set_fini_priority,
19676 get_fini_priority): New methods.
19677 * tree.c (init_priority_for_decl): Remove.
19678 (init_ttree): Do not initialize init priority.
19679 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
19680 (decl_priority_info): Remove.
19681 (decl_init_priority_insert): Rewrite.
19682 (decl_fini_priority_insert): Rewrite.
19683 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
19684 tree_priority_map_marked_p): Remove.
19685 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
19686 * lto-streamer-out.c (hash_tree): Do not hash priorities.
19687 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
19688 not output priorities.
19689 (pack_ts_function_decl_value_fields): Likewise.
19690 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
19691 not input priorities.
19692 (unpack_ts_function_decl_value_fields): Likewise.
19693 * symtab.c (symbol_priority_map): Declare.
19694 (init_priority_hash): Declare.
19695 (symtab_unregister_node): Unregister from priority hash, too.
19696 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
19698 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
19699 (symbol_priority_info): New function.
19700 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
19702 * tree-core.h (tree_priority_map): Remove.
19704 2014-06-20 Jakub Jelinek <jakub@redhat.com>
19706 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
19707 0xff to uint64_t before shifting it up.
19709 2014-06-20 Julian Brown <julian@codesourcery.com>
19710 Chung-Lin Tang <cltang@codesourcery.com>
19712 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
19713 TARGET_THUMB1_ONLY. Add comments.
19715 2014-06-19 Tom de Vries <tom@codesourcery.com>
19717 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
19718 return type to void.
19719 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
19721 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19723 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
19724 as "move", from depends_on.
19726 2014-06-19 Terry Guo <terry.guo@arm.com>
19728 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
19731 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
19733 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
19735 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
19737 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
19740 * config/sh/sh.c (prepare_move_operands): Don't process TLS
19741 addresses here if reload in progress or completed.
19743 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
19745 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
19746 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
19747 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
19748 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
19749 (mips_register_priority): New function that implements the target
19750 hook TARGET_REGISTER_PRIORITY.
19751 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
19752 (mips_lra_p): Likewise for TARGET_LRA_P.
19753 (TARGET_REGISTER_PRIORITY): Define macro.
19754 (TARGET_SPILL_CLASS): Likewise.
19755 (TARGET_LRA_P): Likewise.
19756 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
19758 (REG_CLASS_NAMES): Likewise.
19759 (REG_CLASS_CONTENTS): Likewise.
19760 (BASE_REG_CLASS): Use M16_SP_REGS.
19761 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
19762 New set attribute to enable alternatives depending on the register
19764 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
19765 (*lea64): Disable pattern for MIPS16.
19766 * config/mips/mips.opt (mlra): New option.
19768 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
19770 * lra-constraints.c (base_to_reg): New function.
19771 (process_address): Use new function.
19773 2014-06-18 Tom de Vries <tom@codesourcery.com>
19775 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
19776 * config/aarch64/aarch64.c
19777 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
19778 (aarch64_emit_call_insn): New function.
19779 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
19781 * config/aarch64/aarch64.md (define_expand "call_internal")
19782 (define_expand "call_value_internal", define_expand "sibcall_internal")
19783 (define_expand "sibcall_value_internal"): New.
19784 (define_expand "call", define_expand "call_value")
19785 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
19786 expand variant and aarch64_emit_call_insn.
19788 2014-06-18 Radovan Obradovic <robradovic@mips.com>
19789 Tom de Vries <tom@codesourcery.com>
19791 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
19792 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19794 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
19795 clobbers to CALL_INSN_FUNCTION_USAGE.
19796 (define_expand "sibcall_internal")
19797 (define_expand "sibcall_value_internal"): New.
19798 (define_expand "call", define_expand "call_value"): Add argument to
19799 arm_emit_call_insn.
19800 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
19801 (define_expand "sibcall_value"): Use sibcall_value_internal and
19802 arm_emit_call_insn.
19804 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19806 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
19808 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19810 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
19813 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19815 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
19816 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
19817 annotations. Fix DWARF information.
19819 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19821 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
19822 __udivmoddi4, and fixups for negative operands.
19824 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19826 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
19828 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19830 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
19833 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19835 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
19838 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19840 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
19841 describing register usage on function entry and exit.
19843 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19845 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
19846 (__aeabi_ldivmod): Fix whitespace.
19848 2014-06-18 Andreas Schwab <schwab@suse.de>
19850 * doc/md.texi (Standard Names): Use @itemx for grouped items.
19851 Remove blank line after @item.
19853 2014-06-18 Richard Henderson <rth@redhat.com>
19856 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
19858 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19860 * config/arm/arm.c (neon_vector_mem_operand): Allow register
19861 POST_MODIFY for neon loads and stores.
19862 (arm_print_operand): Output post-index register for neon loads and
19865 2014-06-18 Richard Biener <rguenther@suse.de>
19867 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
19869 2014-06-18 Richard Biener <rguenther@suse.de>
19871 * tree-pass.h (make_pass_dce_loop): Remove.
19872 * passes.def: Replace pass_dce_loop with pass_dce.
19873 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
19874 changed free niter estimates and reset the scev cache.
19875 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
19876 make_pass_dce_loop): Remove.
19877 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
19878 (fini_copy_prop): Return whether something changed. Always
19879 let substitute_and_fold perform DCE and free niter estimates
19880 and reset the scev cache if so.
19881 (execute_copy_prop): If sth changed schedule cleanup-cfg.
19882 (pass_data_copy_prop): Do not unconditionally schedule
19883 cleanup-cfg or update-ssa.
19885 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
19887 PR tree-optimization/61518
19888 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19889 reduction var is used in reduction stmt or phi-function only.
19891 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19893 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
19895 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
19897 PR tree-optimization/61517
19898 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
19899 whose rhs's first tree is the source expression instead of the
19901 (find_bswap_or_nop): Likewise.
19902 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
19903 gimple stmt whose rhs's first tree is the source. In the memory source
19904 case, move the stmt to be replaced close to one of the original load to
19905 avoid the problem of a store between the load and the stmt's original
19907 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
19910 2014-06-18 Andreas Schwab <schwab@suse.de>
19912 PR rtl-optimization/54555
19913 * postreload.c (move2add_use_add2_insn): Substitute
19914 STRICT_LOW_PART only if it is cheaper.
19916 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
19918 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
19919 Do not use unspec as call operand. Use memory_operand instead of
19920 memory_nox32_operand and add "m" operand constraint. Disable
19921 pattern for TARGET_X32.
19922 (*sibcall_pop_memory): Ditto.
19923 (*sibcall_value_memory): Ditto.
19924 (*sibcall_value_pop_memory): Ditto.
19925 (sibcall peepholes): Merge SImode and DImode patterns using
19926 W mode iterator. Use memory_operand instead of memory_nox32_operand.
19927 Disable pattern for TARGET_X32. Check if eliminated register is
19928 really dead after call insn. Generate call RTX without unspec operand.
19929 (sibcall_value peepholes): Ditto.
19930 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
19931 instead of memory_nox32_operand. Check if eliminated register is
19932 really dead after call insn. Generate call RTX without unspec operand.
19933 (sibcall_value_pop peepholes): Ditto.
19934 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
19936 2014-06-18 Terry Guo <terry.guo@arm.com>
19939 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
19942 2014-06-18 Olivier Hainque <hainque@adacore.com>
19944 * tree-core.h (tree_block): Add an "end_locus" field, allowing
19945 memorization of the end of block source location.
19946 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
19947 * gimplify.c (gimplify_bind_expr): Propagate the block start and
19948 end source location info we have on the block entry/exit code we
19951 2014-06-18 Richard Biener <rguenther@suse.de>
19953 * common.opt (fssa-phiopt): New option.
19954 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
19956 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
19957 * doc/invoke.texi (-fssa-phiopt): Document.
19959 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19961 * genattrtab.c (n_bypassed): New variable.
19962 (process_bypasses): Initialise n_bypassed.
19963 Count number of bypassed reservations.
19964 (make_automaton_attrs): Allocate space for bypassed reservations
19965 rather than number of bypasses.
19967 2014-06-18 Richard Biener <rguenther@suse.de>
19969 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
19970 we propagated anything.
19971 (substitute_and_fold_dom_walker::before_dom_children): Something
19972 changed if we propagated into PHI arguments.
19973 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
19976 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
19978 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
19980 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
19981 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
19982 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
19983 Introduces alternative way of loads group permutaions.
19984 (vect_transform_grouped_load): Try alternative way of permutations.
19986 2014-06-18 Jakub Jelinek <jakub@redhat.com>
19988 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
19989 changed in ORT_TARGET region, don't jump to do_outer.
19990 (struct gimplify_adjust_omp_clauses_data): New type.
19991 (gimplify_adjust_omp_clauses_1): Adjust for data being
19992 a struct gimplify_adjust_omp_clauses_data pointer instead
19993 of tree *. Pass pre_p as a new argument to
19994 lang_hooks.decls.omp_finish_clause hook.
19995 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
19996 splay_tree_foreach to pass both list_p and pre_p.
19997 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
19998 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
19999 gimplify_adjust_omp_clauses callers.
20000 * langhooks.c (lhd_omp_finish_clause): New function.
20001 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20002 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20003 * langhooks.h (struct lang_hooks_for_decls): Add a new
20004 gimple_seq * argument to omp_finish_clause hook.
20005 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20006 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20007 (scan_omp_parallel, lower_omp_for): When adding
20008 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20009 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20010 * tree-nested.c (convert_nonlocal_omp_clauses,
20011 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20012 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20014 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20016 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20017 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20019 2014-06-17 Xinliang David Li <davidxl@google.com>
20021 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20022 * passes.c (pass_init_dump_file): Do not set initialize
20023 flag to false unconditionally.
20025 2014-06-17 Richard Biener <rguenther@suse.de>
20027 * genopinit.c (main): Use vec<>::qsort method.
20028 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20030 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20032 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20034 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20035 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20036 (mips_move_to_gpr_cost): Remove ST_REGS case.
20037 (mips_move_from_gpr_cost): Likewise.
20038 (mips_register_move_cost): Likewise.
20039 (mips_secondary_reload_class): Likewise.
20041 2014-06-17 Richard Biener <rguenther@suse.de>
20043 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20044 (pass_all_optimizations): Move 3rd copy-prop pass from after
20045 fre to before ifcombine/phiopt.
20047 2014-06-17 Richard Biener <rguenther@suse.de>
20049 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20050 and allow all blocks to be forwarders.
20052 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20055 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20056 variable 'size'; calculate 'size' right in the front; use
20057 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20058 pcum->aapcs_stack_words.
20060 2014-06-17 Nick Clifton <nickc@redhat.com>
20062 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20063 (umulhi3, mulsidi3, umulsidi3): Likewise.
20065 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20067 PR middle-end/61508
20068 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20069 check for section name.
20071 2014-06-17 Richard Biener <rguenther@suse.de>
20073 * tree-ssa-propagate.c: Include domwalk.h.
20074 (substitute_and_fold): Outline main worker into a domwalker ...
20075 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20076 Schedule stmts we can fully propagate for removal. Remove
20078 (substitute_and_fold): Apply a dominator walk to perform
20079 substitution. Process stmts scheduled for removal here.
20081 2014-06-17 Richard Biener <rguenther@suse.de>
20083 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20084 of PHI node moving.
20086 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20088 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20089 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20090 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20091 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20092 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20094 (get_fpscr) : Likewise.
20096 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20098 PR rtl-optimization/61325
20099 * lra-constraints.c (valid_address_p): Add forward declaration.
20100 (simplify_operand_subreg): Check address validity before and after
20101 alter_reg of memory subreg.
20103 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20105 * config/i386/i386.c (decide_alg): Correctly handle
20106 maximum size of stringop algorithm.
20108 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20110 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20112 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20114 PR rtl-optimization/61522
20115 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20117 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20120 * symtab.c (symtab_node::reset_section): New method.
20121 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20123 * cgraph.h (reset_section): Declare.
20124 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20125 do not consider comdat locals.
20126 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20128 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20129 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20130 reset sections of symbols dragged out of the comdats.
20131 (function_and_variable_visibility): Reset sections of
20134 2014-06-16 Richard Biener <rguenther@suse.de>
20136 PR tree-optimization/61482
20137 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20138 [-INF(OVF), +INF(OVF)] range.
20140 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20142 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20143 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20144 handling 32-bit multiplication.
20146 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
20148 PR middle-end/61430
20149 * lra-lives.c (process_bb_lives): Skip creating copy during
20150 insn scan when src/dest has constrained to same regno.
20152 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20154 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20155 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20157 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20159 * asan.c (check_func): New function.
20160 (maybe_create_ssa_name): Likewise.
20161 (build_check_stmt_with_calls): Likewise.
20162 (use_calls_p): Likewise.
20163 (report_error_func): Change interface.
20164 (build_check_stmt): Allow non-integer lengths; add support
20166 (asan_instrument): Likewise.
20167 (instrument_mem_region_access): Moved code to build_check_stmt.
20168 (instrument_derefs): Likewise.
20169 (instrument_strlen_call): Likewise.
20170 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20171 * doc/invoke.texi: Describe new parameter.
20172 * params.def: Define new parameter.
20173 * params.h: Likewise.
20174 * sanitizer.def: Describe new builtins.
20176 2014-06-16 Richard Biener <rguenther@suse.de>
20178 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20179 Make all defs available at the end.
20180 (eliminate): If we remove a PHI node schedule cfg-cleanup.
20182 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20185 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20187 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20190 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20191 initialization. Replace remaining use of uid.
20193 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20195 * c-family/c-common.c (handle_tls_model_attribute): Use
20196 set_decl_tls_model.
20197 * c-family/c-common.c (handle_tls_model_attribute): Use
20198 set_decl_tls_model.
20199 * cgraph.h (struct varpool_node): Add tls_model.
20200 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20201 * tree.h (DECL_TLS_MODEL): Update.
20202 (DECL_THREAD_LOCAL_P): Check that variable is static.
20203 (decl_tls_model): Declare.
20204 (set_decl_tls_model): Declare.
20205 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20206 set symbol prorperties.
20207 (get_emutls_init_templ_addr): Cleanup.
20208 (new_emutls_decl): Update.
20209 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20210 (lto_input_varpool_node): Likewise.
20211 * lto-streamer-out.c (hash_tree): Likewise.
20212 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20213 not stream DECL_TLS_MODEL.
20214 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20215 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20217 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20219 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20221 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20223 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20224 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20226 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20227 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20228 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20229 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20230 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20231 (df_get_artificial_defs, df_get_artificial_uses)
20232 (df_single_def, df_single_use): Update accordingly.
20233 (df_refs_chain_dump): Take the first element in a linked list as
20234 parameter, rather than a pointer to an array of pointers.
20235 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20236 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20237 (df_chain_create_bb_process_use): Likewise.
20238 (df_md_bb_local_compute_process_def): Likewise.
20239 * fwprop.c (process_defs, process_uses): Likewise.
20240 (register_active_defs, update_uses): Likewise.
20241 (forward_propagate_asm): Update for new df_ref linking.
20242 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20243 (df_null_ref_rec, df_null_mw_rec): Likewise.
20244 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20246 (df_scan_free_bb_info): Remove check for null artificial_defs.
20247 (df_install_ref_incremental): Adjust for new df_ref linking.
20248 Use a single-element insertion rather than a full sort.
20249 (df_ref_chain_delete_du_chain): Take the first element
20250 in a linked list as parameter, rather than a pointer to an array of
20252 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20253 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20254 (df_insn_info_delete): Remove check for null defs and call to
20255 df_scan_free_mws_vec.
20256 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20257 null rather than df_null_*_rec.
20258 (df_insn_rescan_debug_internal): Likewise, and update null
20259 checks in the same way. Remove check for null defs.
20260 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20261 Move a single element rather doing a full sort.
20262 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20264 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
20265 Initialize df_ref and df_mw_hardreg lists to null rather than
20267 (df_ref_compare): Take df_refs as parameter, transferring the
20268 old interface to...
20269 (df_ref_ptr_compare): ...this new function.
20270 (df_sort_and_compress_refs): Update accordingly.
20271 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20272 old interface to...
20273 (df_mw_ptr_compare): ...this new function.
20274 (df_sort_and_compress_mws): Update accordingly.
20275 (df_install_refs, df_install_mws): Return a linked list rather than
20276 an array of pointers.
20277 (df_refs_add_to_chains): Assert that old lists are empty rather
20279 (df_insn_refs_verify): Don't handle null defs speciailly.
20280 * web.c (union_match_dups): Update for new df_ref linking.
20282 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20284 * df.h (df_ref_create, df_ref_remove): Delete.
20285 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20286 (df_ref_remove): Likewise.
20288 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20290 * df.h (df_single_def, df_single_use): New functions.
20291 * ira.c (find_moveable_pseudos): Use them.
20293 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20295 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20296 * df-problems.c (df_note_bb_compute): Use it.
20297 * regstat.c (regstat_bb_compute_ri): Likewise.
20299 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20301 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20302 * cse.c (cse_extended_basic_block): Use them.
20303 * dce.c (mark_artificial_use): Likewise.
20304 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20305 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20306 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20307 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20308 (df_simulate_initialize_backwards): Likewise.
20309 (df_simulate_finalize_backwards): Likewise.
20310 (df_simulate_initialize_forwards): Likewise.
20311 (df_md_simulate_artificial_defs_at_top): Likewise.
20312 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20313 * regrename.c (init_rename_info): Likewise.
20314 * regstat.c (regstat_bb_compute_ri): Likewise.
20315 (regstat_bb_compute_calls_crossed): Likewise.
20317 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20319 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20320 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20321 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20322 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20323 * combine.c (create_log_links): Likewise.
20324 * compare-elim.c (find_flags_uses_in_insn): Likewise.
20325 (try_eliminate_compare): Likewise.
20326 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20327 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20328 (remove_reg_equal_equiv_notes_for_defs): Likewise.
20329 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20330 (word_dce_process_block, dce_process_block): Likewise.
20331 * ddg.c (def_has_ccmode_p): Likewise.
20332 * df-core.c (df_bb_regno_first_def_find): Likewise.
20333 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20334 * df-problems.c (df_rd_simulate_one_insn): Likewise.
20335 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20336 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20337 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20338 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20339 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20340 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20341 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20342 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20343 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20344 * fwprop.c (local_ref_killed_between_p): Likewise.
20345 (all_uses_available_at, free_load_extend): Likewise.
20346 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20347 * hw-doloop.c (scan_loop): Likewise.
20348 * ifcvt.c (dead_or_predicable): Likewise.
20349 * init-regs.c (initialize_uninitialized_regs): Likewise.
20350 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20351 (process_bb_node_lives): Likewise.
20352 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20353 (find_moveable_pseudos): Likewise.
20354 * loop-invariant.c (check_dependencies, record_uses): Likewise.
20355 * recog.c (peep2_find_free_register): Likewise.
20356 * ree.c (get_defs): Likewise.
20357 * regstat.c (regstat_bb_compute_ri): Likewise.
20358 (regstat_bb_compute_calls_crossed): Likewise.
20359 * sched-deps.c (find_inc, find_mem): Likewise.
20360 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20361 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20362 * shrink-wrap.c (requires_stack_frame_p): Likewise.
20363 (prepare_shrink_wrap): Likewise.
20364 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20365 * web.c (union_defs, pass_web::execute): Likewise.
20366 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20367 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20369 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
20371 * lra-assign.c (assign_by_spills): Add code to assign vector regs
20372 to inheritance pseudos.
20373 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20375 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
20378 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20379 (BU_MISC_2): Rename to ...
20380 (BU_LDBL128_2): ... this.
20381 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20382 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20383 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20384 RS6000_BTM_LDBL128.
20385 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20386 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20387 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20388 (unpacktf_1): Likewise.
20389 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20390 (__builtin_longdouble_dw1): Likewise.
20391 * doc/sourcebuild.texi (longdouble128): Document.
20393 2014-06-13 Jeff Law <law@redhat.com>
20395 PR rtl-optimization/61094
20396 PR rtl-optimization/61446
20397 * ree.c (combine_reaching_defs): Get the mode for the copy from
20398 the extension insn rather than the defining insn.
20400 2014-06-13 Dehao Chen <dehao@google.com>
20402 * dwarf2out.c (add_linkage_name): Emit more linkage name.
20404 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
20406 * doc/install.texi (--enable-linker-plugin-configure-flags)
20407 (--enable-linker-plugin-flags): Document new flags.
20409 2014-06-13 Martin Jambor <mjambor@suse.cz>
20412 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20413 cache_token if returning early.
20415 2014-06-13 Nick Clifton <nickc@redhat.com>
20417 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20418 requested alignment is active.
20419 (LABEL_ALIGN): Likewise.
20420 (LOOP_ALIGN): Likewise.
20422 2014-06-13 Richard Biener <rguenther@suse.de>
20424 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20425 Rewrite to propagate the VN result into all uses where
20426 possible and to remove stmts becoming dead because of that.
20427 (eliminate): Generalize stmt removal handling, remove in
20428 reverse dominator order to support proper debug stmt
20429 generation. Update stmts before removing stmts.
20430 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20432 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20434 PR tree-optimization/61375
20435 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20436 symbolic number cannot be represented in an uint64_t.
20437 (find_bswap_or_nop_1): Likewise.
20439 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20441 * symtab.c (symtab_node::reset_section): New method.
20442 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20444 * cgraph.h (reset_section): Declare.
20445 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20446 do not consider comdat locals.
20447 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20449 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20450 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20451 reset sections of symbols dragged out of the comdats.
20452 (function_and_variable_visibility): Reset sections of
20455 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20457 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
20458 to use symtab and decl_binds_to_current_def_p
20459 * tree-vectorizer.c (increase_alignment): Increase alignment
20460 of alias target, too.
20462 2014-06-12 Jakub Jelinek <jakub@redhat.com>
20464 PR middle-end/61486
20465 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
20466 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
20467 if outer combined construct is distribute.
20468 (gimplify_omp_for): For OMP_DISTRIBUTE set
20469 gimplify_omp_ctxp->distribute.
20470 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
20471 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
20472 mapping into decl map.
20474 2014-06-12 Jason Merrill <jason@redhat.com>
20476 * common.opt (fabi-version): Change default to 0.
20478 2014-06-12 Jason Merrill <jason@redhat.com>
20480 * toplev.c (process_options): Reject -fabi-version=1.
20482 2014-06-12 Jeff Law <law@redhat.com>
20484 PR tree-optimization/61009
20485 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
20486 value when we stop processing a block due to problematic PHIs.
20488 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
20490 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
20491 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
20492 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
20493 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
20494 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
20495 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
20496 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
20497 are not in the spec.
20499 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
20502 * config/aarch64/aarch64-modes.def: Add V1DFmode.
20503 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
20506 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
20508 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
20510 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
20513 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
20514 loading from address spaces.
20516 2014-06-12 Martin Liska <mliska@suse.cz>
20519 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
20520 statement is reachable.
20522 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
20524 * symtab.c (section_hash): New hash.
20525 (symtab_unregister_node): Clear section before freeing.
20526 (hash_section_hash_entry): New haser.
20527 (eq_sections): New function.
20528 (symtab_node::set_section_for_node): New method.
20529 (set_section_1): Update.
20530 (symtab_node::set_section): Take string instead of tree as parameter.
20531 (symtab_resolve_alias): Update.
20532 * cgraph.h (section_hash_entry_d): New structure.
20533 (section_hash_entry): New typedef.
20534 (cgraph_node): Change comdat_group_ to x_comdat_group,
20535 change section_ to x_section and turn into section_hash_entry;
20536 update accestors; put set_section_for_node offline.
20537 * tree.c (decl_section_name): Turn into string.
20538 (set_decl_section_name): Change parameter to be string.
20539 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
20540 * sdbout.c (sdbout_one_type): Update.
20541 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
20542 * varasm.c (IN_NAMED_SECTION, get_named_section,
20543 resolve_unique_section, hot_function_section, get_named_text_section,
20544 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
20545 make_decl_rtl, default_unique_section): Update.
20546 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
20547 (c6x_elf_unique_section): Update.
20548 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
20549 * config/pa/pa.c (pa_function_section): Update.
20550 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
20551 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
20552 * config/arc/arc.c (arc_in_small_data_p): Update.
20553 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
20554 * config/mcore/mcore.c (mcore_unique_section): Update.
20555 * config/mips/mips.c (mips16_build_function_stub): Update.
20556 (mips16_build_call_stub): Update.
20557 (mips_function_rodata_section): Update.
20558 (mips_in_small_data_p): Update.
20559 * config/score/score.c (score_in_small_data_p): Update.
20560 * config/rx/rx.c (rx_in_small_data): Update.
20561 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
20562 (rs6000_xcoff_asm_named_section): Update.
20563 (rs6000_xcoff_unique_section): Update.
20564 * config/frv/frv.c (frv_string_begins_with): Update.
20565 (frv_in_small_data_p): Update.
20566 * config/v850/v850.c (v850_encode_data_area): Update.
20567 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
20568 (bfin_handle_l1_data_attribute): Update.
20569 (bfin_handle_l2_attribute): Update.
20570 * config/mep/mep.c (mep_unique_section): Update.
20571 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
20573 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
20574 (h8300_handle_tiny_data_attribute): Update.
20575 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
20576 (m32r_in_small_data_p): Update.
20577 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
20578 * config/i386/i386.c (ix86_in_large_data_p): Update.
20579 * config/i386/winnt.c (i386_pe_unique_section): Update.
20580 * config/darwin.c (darwin_function_section): Update.
20581 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
20582 * tree-emutls.c (get_emutls_init_templ_addr): Update.
20583 (new_emutls_decl): Update.
20584 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
20585 input_varpool_node): Update.
20586 (ead_string_cst): Turn to ...
20587 (read_string): ... this one.
20588 * dwarf2out.c (secname_for_decl): Update.
20589 * asan.c (asan_protect_global): Update.
20591 2014-06-11 DJ Delorie <dj@redhat.com>
20593 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
20595 * config/rx/rx.c (rx_option_override): Likewise.
20596 (rx_align_for_label): Likewise.
20598 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
20600 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
20602 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
20605 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20607 * common.md: New file.
20608 * doc/md.texi: Update description of generic, machine-independent
20610 * config/s390/constraints.md (e): Delete.
20611 * Makefile.in (md_file): Include common.md.
20612 * config/m32c/t-m32c (md_file): Likewise.
20613 * genpreds.c (general_mem): New array.
20614 (generic_constraint_letters): Remove constraints now defined by
20616 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20617 Allow the first character to be '<' or '>' as well.
20618 * genoutput.c (general_mem): New array.
20619 (indep_constraints): Remove constraints now defined by common.md.
20620 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20621 Remove special handling of 'm'.
20622 * ira-costs.c (record_reg_classes): Remove special handling of
20623 constraints now defined by common.md.
20624 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20625 * ira-lives.c (single_reg_class): Likewise.
20626 (ira_implicitly_set_insn_hard_regs): Likewise.
20627 * lra-constraints.c (reg_class_from_constraints): Likewise.
20628 (process_alt_operands, process_address, curr_insn_transform): Likewise.
20629 * postreload.c (reload_cse_simplify_operands): Likewise.
20630 * reload.c (push_secondary_reload, scratch_reload_class)
20631 (find_reloads, alternative_allows_const_pool_ref): Likewise.
20632 * reload1.c (maybe_fix_stack_asms): Likewise.
20633 * targhooks.c (default_secondary_reload): Likewise.
20634 * stmt.c (parse_output_constraint): Likewise.
20635 * recog.c (preprocess_constraints): Likewise.
20636 (constrain_operands, peep2_find_free_register): Likewise.
20637 (asm_operand_ok): Likewise, but add a comment saying why 'o'
20638 must be handled specially.
20640 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20642 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
20643 * genpreds.c (have_const_dbl_constraints): Delete.
20644 (add_constraint): Don't set it.
20645 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
20646 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
20647 constraints using the lookup_constraint logic.
20648 * ira-lives.c (single_reg_class): Likewise.
20649 * ira.c (ira_setup_alts): Likewise.
20650 * lra-constraints.c (process_alt_operands): Likewise.
20651 * recog.c (asm_operand_ok, constrain_operands): Likewise.
20652 * reload.c (find_reloads): Likewise.
20654 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20656 * genpreds.c (const_int_start, const_int_end): New variables.
20657 (choose_enum_order): Output CONST_INT constraints before memory
20659 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
20661 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
20662 * ira.c (ira_setup_alts): Likewise.
20663 * lra-constraints.c (process_alt_operands): Likewise.
20664 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20665 * reload.c (find_reloads): Likewise.
20667 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20669 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
20670 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
20671 * recog.c (preprocess_constraints): Update accordingly.
20673 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20675 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
20676 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
20677 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
20678 * genpreds.c (print_type_tree): New function.
20679 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
20680 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
20681 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
20682 Write out enum constraint_type and get_constraint_type.
20683 * lra-constraints.c (satisfies_memory_constraint_p): Take a
20684 constraint_num rather than a constraint string.
20685 (satisfies_address_constraint_p): Likewise.
20686 (reg_class_from_constraints): Avoid old constraint macros.
20687 (process_alt_operands, process_address_1): Likewise.
20688 (curr_insn_transform): Likewise.
20689 * ira-costs.c (record_reg_classes): Likewise.
20690 (record_operand_costs): Likewise.
20691 * ira-lives.c (single_reg_class): Likewise.
20692 (ira_implicitly_set_insn_hard_regs): Likewise.
20693 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20694 * postreload.c (reload_cse_simplify_operands): Likewise.
20695 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20696 (constrain_operands, peep2_find_free_register): Likewise.
20697 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
20698 (find_reloads, alternative_allows_const_pool_ref): Likewise.
20699 * reload1.c (maybe_fix_stack_asms): Likewise.
20700 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
20701 * targhooks.c (default_secondary_reload): Likewise.
20702 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
20703 to EXTRA_CONSTRAINT_STR.
20704 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
20706 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20708 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
20709 (write_constraint_satisfied_p_array): ...this new function.
20710 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
20712 (write_insn_preds_c): Update accordingly.
20714 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20716 * genpreds.c (write_lookup_constraint): Rename to...
20717 (write_lookup_constraint_1): ...this.
20718 (write_lookup_constraint_array): New function.
20719 (write_tm_preds_h): Define lookup_constraint as an inline function
20720 that uses write_lookup_constraint_array where possible.
20721 (write_insn_preds_c): Update for the changes above.
20723 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20725 * doc/md.texi (regclass_for_constraint): Rename to...
20726 (reg_class_for_constraint): ...this.
20727 * genpreds.c (num_constraints, enum_order, register_start)
20728 (register_end, satisfied_start, memory_start, memory_end)
20729 (address_start, address_end): New variables.
20730 (add_constraint): Count the number of constraints.
20731 (choose_enum_order): New function.
20732 (write_enum_constraint_num): Iterate over enum_order.
20733 (write_regclass_for_constraint): Rename to...
20734 (write_reg_class_for_constraint_1): ...this and update output
20736 (write_constraint_satisfied_p): Rename to...
20737 (write_constraint_satisfied_p_1): ...this and update output
20738 accordingly. Do nothing if all extra constraints are register
20740 (write_insn_extra_memory_constraint): Delete.
20741 (write_insn_extra_address_constraint): Delete.
20742 (write_range_function): New function.
20743 (write_tm_preds_h): Define constraint_satisfied_p and
20744 reg_class_for_constraint as inline functions that do a range check
20745 before calling the out-of-line function. Use write_range_function
20746 to implement insn_extra_{register,memory,address}_constraint,
20747 the first of which is new.
20748 (write_insn_preds_c): Update after above changes to write_* functions.
20749 (main): Call choose_enum_order.
20751 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
20753 PR tree-optimization/61306
20754 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
20755 expression instead of its size.
20756 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
20757 false to prevent optimization when the result is unpredictable due to
20758 arithmetic right shift of signed type with highest byte is set.
20759 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
20760 (init_symbolic_number): Likewise.
20761 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
20762 when the result is unpredictable due to sign extension.
20764 2014-06-11 Terry Guo <terry.guo@arm.com>
20766 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
20767 (*thumb1_addsi3): Ditto.
20768 (*thumb_subdi3): Ditto.
20769 (thumb1_subsi3_insn): Ditto.
20770 (*thumb_mulsi3): Ditto.
20771 (*thumb_mulsi3_v6): Ditto.
20772 (*thumb1_andsi3_insn): Ditto.
20773 (thumb1_bicsi3): Ditto.
20774 (*thumb1_iorsi3_insn): Ditto.
20775 (*thumb1_xorsi3_insn): Ditto.
20776 (*thumb1_ashlsi3): Ditto.
20777 (*thumb1_ashrsi3): Ditto.
20778 (*thumb1_lshrsi3): Ditto.
20779 (*thumb1_rotrsi3): Ditto.
20780 (*thumb1_negdi2): Ditto.
20781 (*thumb1_negsi2): Ditto.
20782 (*thumb1_abssi2): Ditto.
20783 (*thumb1_neg_abssi2): Ditto.
20784 (*thumb1_one_cmplsi2): Ditto.
20785 (*thumb1_zero_extendhisi2): Ditto.
20786 (*thumb1_zero_extendqisi2): Ditto.
20787 (*thumb1_zero_extendqisi2_v6): Ditto.
20788 (thumb1_extendhisi2): Ditto.
20789 (thumb1_extendqisi2): Ditto.
20790 (*thumb1_movdi_insn): Ditto.
20791 (*thumb1_movsi_insn): Ditto.
20792 (*thumb1_movhi_insn): Ditto.
20793 (thumb_movhi_clobber): Ditto.
20794 (*thumb1_movqi_insn): Ditto.
20795 (*thumb1_movhf): Ditto.
20796 (*thumb1_movsf_insn): Ditto.
20797 (*thumb_movdf_insn): Ditto.
20798 (movmem12b): Ditto.
20800 (cbranchqi4): Ditto.
20801 (cbranchsi4_insn): Ditto.
20802 (cbranchsi4_scratch): Ditto.
20803 (*negated_cbranchsi4): Ditto.
20804 (*tbit_cbranch): Ditto.
20805 (*tlobits_cbranch): Ditto.
20806 (*tstsi3_cbranch): Ditto.
20807 (*cbranchne_decr1): Ditto.
20808 (*addsi3_cbranch): Ditto.
20809 (*addsi3_cbranch_scratch): Ditto.
20810 (*thumb_cmpdi_zero): Ditto.
20811 (cstoresi_eq0_thumb1): Ditto.
20812 (cstoresi_ne0_thumb1): Ditto.
20813 (*cstoresi_eq0_thumb1_insn): Ditto.
20814 (*cstoresi_ne0_thumb1_insn): Ditto.
20815 (cstoresi_nltu_thumb1): Ditto.
20816 (cstoresi_ltu_thumb1): Ditto.
20817 (thumb1_addsi3_addgeu): Ditto.
20818 (*thumb_jump): Ditto.
20819 (*call_reg_thumb1_v5): Ditto.
20820 (*call_reg_thumb1): Ditto.
20821 (*call_value_reg_thumb1_v5): Ditto.
20822 (*call_value_reg_thumb1): Ditto.
20823 (*call_insn): Ditto.
20824 (*call_value_insn): Ditto.
20825 (thumb1_casesi_internal_pic): Ditto.
20826 (thumb1_casesi_dispatch): Ditto.
20827 (*thumb1_indirect_jump): Ditto.
20828 (prologue_thumb1_interwork): Ditto.
20829 (*epilogue_insns): Ditto.
20830 (consttable_1): Ditto.
20831 (consttable_2): Ditto.
20832 (tablejump): Ditto.
20833 (*thumb1_tablejump): Ditto.
20834 (thumb_eh_return): Ditto.
20835 (define_peephole2): Two of them are thumb1 only and got moved into
20836 new file thumb1.md.
20837 (define_split): Six of them are thumb1 only and got moved into new
20839 * config/arm/thumb1.md: New file comprised of above thumb1 only
20842 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20844 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
20845 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
20847 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
20848 (aarch64_crc_builtin_datum): New struct.
20849 (aarch64_crc_builtin_data): New.
20850 (aarch64_init_crc32_builtins): New function.
20851 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
20852 (aarch64_crc32_expand_builtin): New.
20853 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
20854 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20855 __ARM_FEATURE_CRC32 when appropriate.
20856 (TARGET_CRC32): Define.
20857 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
20858 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
20859 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
20860 (aarch64_<crc_variant>): New pattern.
20861 * config/aarch64/arm_acle.h: New file.
20862 * config/aarch64/iterators.md (CRC): New int iterator.
20863 (crc_variant, crc_mode): New int attributes.
20864 * doc/aarch64-acle-intrinsics.texi: New file.
20865 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
20866 Include aarch64-acle-intrinsics.texi.
20868 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
20870 * tree-vect-data-refs.c (vect_grouped_store_supported): New
20871 check for stores group of length 3.
20872 (vect_permute_store_chain): New permutations for stores group of
20874 * tree-vect-stmts.c (vect_model_store_cost): Change cost
20875 of vec_perm_shuffle for the new permutations.
20877 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
20879 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
20880 table rewriting temporarily on targets not supporting ONE_ONLY.
20882 2014-06-11 Richard Biener <rguenther@suse.de>
20884 PR middle-end/61437
20886 2014-06-04 Richard Biener <rguenther@suse.de>
20888 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20889 TREE_PUBLIC and DECL_EXTERNAL decls.
20891 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
20893 * varasm.c (set_implicit_section): New function.
20894 (resolve_unique_section): Use it to set implicit section
20896 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
20897 (default_function_section): Likewise.
20898 (decl_binds_to_current_def_p): Constify argument.
20899 * varasm.h (decl_binds_to_current_def_p): Update prototype.
20900 * asan.c (asan_protect_global): Use
20901 symtab_get_node (decl)->implicit_section.
20902 * symtab.c (dump_symtab_base): Dump implicit sections.
20903 (verify_symtab_base): Verify sanity of sectoins and comdats.
20904 (symtab_resolve_alias): Alias share the section of its target.
20905 (set_section_1): New function.
20906 (symtab_node::set_section): Move here, recurse to aliases.
20907 (verify_symtab): Check for duplicated symtab lists.
20908 * tree-core.h (implicit_section_name_p): Remove.
20909 * tree-vect-data-refs.c: Include varasm.h.
20910 (vect_can_force_dr_alignment_p): Fix conditional on when
20911 decl bints to current definition; use
20912 symtab_get_node (decl)->implicit_section.
20913 * cgraph.c (cgraph_make_node_local_1): Fix section set.
20914 * cgraph.h (struct symtab_node): Add implicit_section.
20915 (set_section): Rename to ...
20916 (set_section_for_node): ... this one.
20917 (set_section): Declare.
20918 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
20919 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
20920 input_overwrite_node, input_varpool_node): Stream implicit_section.
20921 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
20922 removal; it will fail in LTO.
20924 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20926 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
20927 Change second alternative type to f_mcr.
20928 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
20929 and 12th alternatives' types to f_mcr and f_mrc.
20930 (*movdi_aarch64): Same for 12th and 13th alternatives.
20931 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
20932 (aarch64_movtilow_tilow): Change type to fmov.
20934 2014-06-10 Jiong Wang <jiong.wang@arm.com>
20936 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
20937 (aarch64_save_or_restore_callee_save_registers): Fix layout.
20939 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20941 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
20943 (aarch64_sqrdmulh_lane<mode>): Likewise.
20944 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20945 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20946 (aarch64_sqdmulh_laneq<mode>): New expander.
20947 (aarch64_sqrdmulh_laneq<mode>): Likewise.
20948 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
20949 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
20950 (aarch64_sqdmulh_lane<mode>): New expander.
20951 (aarch64_sqrdmulh_lane<mode>): Likewise.
20952 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20953 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20954 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
20955 (aarch64_sqdmlal_laneq<mode>): Likewise.
20956 (aarch64_sqdmlsl_lane<mode>): Likewise.
20957 (aarch64_sqdmlsl_laneq<mode>): Likewise.
20958 (aarch64_sqdmlal2_lane<mode>): Likewise.
20959 (aarch64_sqdmlal2_laneq<mode>): Likewise.
20960 (aarch64_sqdmlsl2_lane<mode>): Likewise.
20961 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20962 (aarch64_sqdmull_lane<mode>): Likewise.
20963 (aarch64_sqdmull_laneq<mode>): Likewise.
20964 (aarch64_sqdmull2_lane<mode>): Likewise.
20965 (aarch64_sqdmull2_laneq<mode>): Likewise.
20967 2014-06-10 Richard Biener <rguenther@suse.de>
20969 PR tree-optimization/61438
20970 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
20971 (eliminate_dom_walker::before_dom_children): Only try to inhibit
20972 insertion of IVs if running PRE.
20973 (eliminate): Adjust.
20974 (pass_pre::execute): Likewise.
20975 (pass_fre::execute): Likewise.
20977 2014-06-10 Richard Biener <rguenther@suse.de>
20979 PR middle-end/61456
20980 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20981 Do not use the main variant for the type comparison.
20982 (ncr_compar): Likewise.
20983 (nonoverlapping_component_refs_p): Likewise.
20985 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
20987 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
20988 REG_CFA_RESTORE mode.
20990 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
20992 * config/i386/i386.c (expand_vec_perm_pblendv): New.
20993 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
20994 expand_vec_perm_pblendv.
20996 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20998 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21000 Simplify description of __crc32d and __crc32cd intrinsics.
21001 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21004 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21007 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21008 * config.in: Regenerate.
21009 * configure: Likewise.
21011 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21013 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21015 (intersect_static_var_sets): Remove.
21016 (propagate): Do not prune local statics.
21018 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21021 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21022 Set lastprivate_firstprivate even if omp_private_outer_ref
21023 langhook returns true.
21024 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21025 langhook, call unshare_expr on new_var and call
21026 build_outer_var_ref to get the last argument.
21028 2014-06-10 Marek Polacek <polacek@redhat.com>
21031 * doc/extend.texi: Add cindex for transparent_union.
21033 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21035 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21036 init_symbolic_number ().
21038 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21040 PR middle-end/61141
21041 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21042 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21043 (verify_rtl_sharing): Likewise.
21045 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21048 * tree.c (build_qualified_type): Use a canonical type for
21051 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21053 * config/arm/arm-modes.def: Remove XFmode.
21055 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21058 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21059 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21060 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21061 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21062 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21063 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21064 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21065 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21066 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21068 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21070 * tree-core.h (tree_decl_with_vis): Remove section_name.
21072 2014-06-09 Kito Cheng <kito@0xlab.org>
21074 * ira.c (ira): Don't call init_caller_save if LRA enabled
21075 since LRA use its own infrastructure to handle that.
21077 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21079 * symtab.c (dump_symtab_base): Update dumping.
21080 (symtab_make_decl_local): Clear only DECL_COMDAT.
21081 * tree-vect-data-refs.c (Check that variable is static before
21082 tampering with sections.
21083 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21084 (cgraph_create_virtual_clone): Likewise.
21085 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21086 (decl_section_name, set_decl_section_name): New accessors.
21087 (find_decls_types_r): Do not walk section name
21088 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21089 (decl_comdat_group, decl_comdat_group_id): Constify.
21090 (decl_section_name, set_decl_section_name): Update.
21091 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21092 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21093 (cgraph_make_node_local_1): Clear section and comdat group.
21094 * cgraph.h (set_comdat_group): Sanity check.
21095 (get_section, set_section): New.
21096 * ipa-comdats.c (ipa_comdats): Use get_section.
21097 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21098 * lto-streamer-out.c: Do not follow section names.
21099 * c-family/c-common.c (handle_section_attribute): Update.
21100 * lto-cgraph.c (lto_output_node): Output section.
21101 (lto_output_varpool_node): Likewise.
21102 (read_comdat_group): Rename to ...
21103 (read_identifier): ... this one.
21104 (read_string_cst): New function.
21105 (input_node, input_varpool_node): Input section names.
21106 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21107 (new_emutls_decl): Update.
21108 (secname_for_decl): Check section names only of static vars.
21109 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21110 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21111 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21112 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21113 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21114 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21115 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21116 * config/v850/v850.c (v850_insert_attributes): Likewise.
21117 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21119 (h8300_handle_tiny_data_attribute): Likewise.
21120 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21121 (bfin_handle_l2_attribute): Likewise.
21123 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21125 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21126 remove static initializer.
21128 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21130 * varasm.c (use_blocks_for_decl_p): Check symbol table
21131 instead of alias attribute.
21132 (place_block_symbol): Recurse on aliases.
21134 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21136 * ipa-visibility.c: Include varasm.h
21137 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21139 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21141 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21142 outputting aliases.
21144 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
21146 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21147 from test_insn into GGC space escape via SET_SRC.
21149 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
21151 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21152 call statement, if any.
21153 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21154 statements, if any. Tidy up.
21156 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21159 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21160 iterators, VSX_D that handles 64-bit types, and VSX_LE that
21161 handles swapping the two 64-bit double words on little endian
21162 systems. Include V1TImode and optionally TImode in VSX_LE so that
21163 these types are properly swapped. Change all of the insns and
21164 splits that do the 64-bit swaps to use VSX_LE.
21165 (vsx_le_perm_load_<mode>): Likewise.
21166 (vsx_le_perm_store_<mode>): Likewise.
21167 (splitters for little endian memory operations): Likewise.
21168 (vsx_xxpermdi2_le_<mode>): Likewise.
21169 (vsx_lxvd2x2_le_<mode>): Likewise.
21170 (vsx_stxvd2x2_le_<mode>): Likewise.
21172 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
21175 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21176 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21177 and corresponding splitters. Zero extend general register
21178 or memory input operand to XMM temporary. Enable for
21179 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21180 (floatunssi<mode>2): Update expander predicate.
21182 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
21184 PR rtl-optimization/61325
21185 * lra-constraints.c (process_address_1): Check scale equal to one
21186 to prevent transformation: base + scale * index => base + new_reg.
21188 2014-06-06 Richard Biener <rguenther@suse.de>
21190 PR tree-optimization/59299
21191 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21193 (nearest_common_dominator_of_uses): Likewise.
21194 (statement_sink_location): Adjust. Support sinking loads.
21196 2014-06-06 Martin Jambor <mjambor@suse.cz>
21198 * ipa-prop.c (get_place_in_agg_contents_list): New function.
21199 (build_agg_jump_func_from_list): Likewise.
21200 (determine_known_aggregate_parts): Renamed to
21201 determine_locally_known_aggregate_parts. Moved some functionality
21202 to the two functions above, removed bound checks.
21204 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
21206 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21207 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21208 (aarch64_progress_pointer): Likewise.
21209 (aarch64_copy_one_part_and_move_pointers): Likewise.
21210 (aarch64_expand_movmen): Likewise.
21211 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21212 * config/aarch64/aarch64.md (movmem<mode>): New.
21214 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
21216 * targhooks.c (default_add_stmt_cost): Call target specific
21217 hook instead of default one.
21219 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21221 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21222 endianness instead of host endianness.
21223 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21226 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21229 * function.c (instantiate_decls): Process the saved static chain.
21230 (expand_function_start): If not optimizing, save the static chain
21232 * tree-nested.c (convert_all_function_calls): Always create the static
21233 chain for nested functions if not optimizing.
21235 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21237 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21239 2014-06-06 Richard Biener <rguenther@suse.de>
21241 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21242 (construct_init_block): Likewise.
21243 (construct_exit_block): Likewise.
21244 (pass_expand::execute): Likewise.
21245 * graphite.c (graphite_transforms): Replace check for current_loops
21246 with a check for > 1 loops.
21247 (pass_graphite_transforms::execute): Adjust.
21248 * ipa-split.c (split_function): Remove check for current_loops.
21249 * omp-low.c (expand_parallel_call): Likewise.
21250 (expand_omp_for_init_counts): Likewise.
21251 (extract_omp_for_update_vars): Likewise.
21252 (expand_omp_for_generic): Likewise.
21253 (expand_omp_sections): Likewise.
21254 (expand_omp_target): Likewise.
21255 * tracer.c (tail_duplicate): Likewise.
21256 (pass_tracer::execute): Likewise.
21257 * trans-mem.c (expand_transaction): Likewise.
21258 * tree-complex.c (expand_complex_div_wide): Likewise.
21259 * tree-eh.c (lower_resx): Likewise.
21260 (cleanup_empty_eh_merge_phis): Likewise.
21261 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21262 current_loops with a check for > 1 loops.
21263 (pass_predcom::execute): Adjust.
21264 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21265 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21266 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21267 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21268 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21269 * tree-switch-conversion.c (process_switch): Likewise.
21270 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21271 * tree-vrp.c (vrp_visit_phi_node): Likewise.
21272 (execute_vrp): Likewise.
21273 * ubsan.c (ubsan_expand_null_ifn): Likewise.
21275 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21277 * rtl.h (insn_location): Declare.
21278 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21279 with UNKNOWN_LOCATION.
21280 * emit-rtl.c (insn_location): New function.
21281 * final.c (notice_source_line): Check that the instruction has a
21282 location before retrieving it and use insn_location.
21283 * modulo-sched.c (loop_single_full_bb_p): Likewise.
21284 * print-rtl.c (print_rtx): Likewise.
21286 2014-06-06 Richard Biener <rguenther@suse.de>
21288 * passes.def: Move 2nd VRP pass before phi-only-cprop.
21290 2014-06-06 Christian Bruel <christian.bruel@st.com>
21292 PR tree-optimization/43934
21293 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21296 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
21298 * ira-lives.c (single_reg_class): Add missing break. Explicitly
21299 return NO_REGS for extra address and memory constraints. Handle
21300 operands that match (or are equivalent to something that matches)
21301 extra constant constraints. Ignore other non-register operands.
21303 2014-06-06 Alan Modra <amodra@gmail.com>
21306 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21307 * doc/tm.texi: Regenerate.
21308 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21309 Use throughout in place of REG_PARM_STACK_SPACE.
21310 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21311 "incoming" param. Pass to rs6000_function_parms_need_stack.
21312 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21313 prototype_p when incoming. Use function decl when incoming
21314 to handle K&R style functions.
21315 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21316 (INCOMING_REG_PARM_STACK_SPACE): Define.
21318 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21321 * cfgexpand.c (expand_debug_expr): Use address space of nested
21322 TREE_TYPE for ADDR_EXPR and MEM_REF.
21324 2014-06-05 Jeff Law <law@redhat.com>
21326 PR tree-optimization/61289
21327 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21328 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
21329 looking for those which match LHS. All callers changed.
21330 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21331 parameters and code which manipulated them. All callers changed.
21332 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21333 and DST_MAP parameters. Simplify invalidation code by just calling
21334 invalidate_equivalences. All callers changed.
21335 (thread_across_edge): Simplify now that we don't need to maintain
21336 the map of equivalences to invalidate.
21338 2014-06-05 Kai Tietz <ktietz@redhat.com>
21339 Richard Henderson <rth@redhat.com>
21342 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21343 checking for !TARGET_X32.
21344 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21345 (sibcall_intern): New define_insn, plus required peepholes.
21346 (sibcall_pop_intern): Likewise.
21347 (sibcall_value_intern): Likewise.
21348 (sibcall_value_pop_intern): Likewise.
21350 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
21352 * tree-inline.c (tree_function_versioning): Check DF info existence
21353 before accessing it.
21355 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21357 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21359 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21360 aarch64_frame hard_fp_offset and frame_size.
21361 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21362 frame_size; remove original_frame_size.
21363 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21364 (aarch64_initial_elimination_offset): Remove frame_size and
21365 offset. Use aarch64_frame frame_size.
21367 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21368 Jiong Wang <jiong.wang@arm.com>
21369 Renlin <renlin.li@arm.com>
21371 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21372 initialization of R30 offset. Update offset. Iterate core
21373 regisers upto X30. Remove X29, X30 specific code.
21375 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21376 Jiong Wang <jiong.wang@arm.com>
21378 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21379 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21380 (aarch64_register_saved_on_entry): Adjust test.
21382 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21384 * config/aarch64/aarch64.h (machine_function): Move
21385 saved_varargs_size from here...
21386 (aarch64_frame): ... to here.
21388 * config/aarch64/aarch64.c (aarch64_expand_prologue)
21389 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21390 (aarch64_initial_elimination_offset)
21391 (aarch64_setup_incoming_varargs): Adjust location of
21392 saved_varargs_size.
21394 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21396 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21399 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
21400 Prachi Godbole <Prachi.Godbole@imgtec.com>
21402 * config/mips/mips-cpus.def: Add definition for p5600. Updated
21403 mips32r5 entry to use PROCESSOR_P5600.
21404 * config/mips/mips-tables.opt: Regenerate.
21405 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21406 * config/mips/mips.c (mips_fmadd_bypass): New function.
21407 (mips_rtx_cost_data): Add costs for p5600.
21408 (mips_issue_rate): Add support for p5600.
21409 (mips_multipass_dfa_lookahead): Likewise.
21410 * config/mips/mips.h (TUNE_P5600): New define.
21411 (TUNE_MACC_CHAINS): Add TUNE_P5600.
21412 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21413 * config/mips/mips.md: Include p5600.md.
21414 (processor): Add p5600.
21415 * config/mips/p5600.md: New file.
21417 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
21419 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21420 * config/i386/predicates.md (palignr_operand): New.
21421 Indicates if permutation is suitable for palignr instruction.
21423 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
21425 PR tree-optimization/61319
21426 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21427 stmt belongs to loop.
21429 2014-06-05 Richard Biener <rguenther@suse.de>
21431 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21432 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21433 (lookup_tmp_var): Adjust.
21434 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21436 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21438 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21440 2014-06-05 Marek Polacek <polacek@redhat.com>
21443 * doc/invoke.texi: Document -Wlogical-not-parentheses.
21445 2014-06-04 Tom de Vries <tom@codesourcery.com>
21447 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
21450 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
21452 PR tree-optimization/61385
21453 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
21455 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
21457 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
21458 changed to use fatal_error.
21459 (main): Ensure lto_wrapper_cleanup is run atexit.
21461 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21463 * lra-constraints.c (valid_address_p): Move earlier in file.
21464 (address_eliminator): New structure.
21465 (satisfies_memory_constraint_p): New function.
21466 (satisfies_address_constraint_p): Likewise.
21467 (process_alt_operands, process_address, curr_insn_transform): Use them.
21469 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21471 * lra-int.h (lra_static_insn_data): Make operand_alternative a
21473 (target_lra_int, default_target_lra_int, this_target_lra_int)
21474 (op_alt_data): Delete.
21475 * lra.h (lra_init): Delete.
21476 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
21477 (init_insn_code_data_once): Remove op_alt_data handling.
21478 (finish_insn_code_data_once): Likewise.
21479 (init_op_alt_data): Delete.
21480 (get_static_insn_data): Initialize operand_alternative to null.
21481 (free_insn_recog_data): Cast operand_alternative before freeing it.
21482 (setup_operand_alternative): Take the operand_alternative as
21483 parameter and assume it isn't already cached in the static
21485 (lra_set_insn_recog_data): Update accordingly.
21486 (lra_init): Delete.
21487 * ira.c (ira_init): Don't call lra_init.
21488 * target-globals.h (this_target_lra_int): Declare.
21489 (target_globals): Remove lra_int.
21490 (restore_target_globals): Update accordingly.
21491 * target-globals.c: Don't include lra-int.h.
21492 (default_target_globals, save_target_globals): Remove lra_int.
21494 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21496 * recog.h (operand_alternative): Convert reg_class, reject,
21497 matched and matches into bitfields.
21498 (preprocess_constraints): New overload.
21499 (preprocess_insn_constraints): New function.
21500 (preprocess_constraints): Take the insn as parameter.
21501 (recog_op_alt): Change into a pointer.
21502 (target_recog): Add x_op_alt.
21503 * recog.c (asm_op_alt): New variable.
21504 (recog_op_alt): Change into a pointer.
21505 (preprocess_constraints): New overload, replacing the old function
21506 definition with one that doesn't use global state.
21507 (preprocess_insn_constraints): New function.
21508 (preprocess_constraints): Use them. Take the insn as parameter.
21509 Use asm_op_alt for asms.
21510 (recog_init): Free existing x_op_alt entries.
21511 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
21513 (make_early_clobber_and_input_conflicts): Likewise.
21514 (process_bb_node_lives): Pass the insn to process_constraints.
21515 * reg-stack.c (check_asm_stack_operands): Likewise.
21516 (subst_asm_stack_regs): Likewise.
21517 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21518 * regrename.c (build_def_use): Likewise.
21519 * sched-deps.c (sched_analyze_insn): Likewise.
21520 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
21521 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
21522 (note_invalid_constants): Likewise.
21523 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21524 (ix86_legitimate_combined_insn): Make operand_alternative pointer
21527 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21529 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
21530 * ira-lives.c (check_and_make_def_conflict): Check for disabled
21532 (make_early_clobber_and_input_conflicts): Likewise.
21533 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21535 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21537 * recog.h (alternative_class): New function.
21538 (which_op_alt): Return a const recog_op_alt.
21539 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
21540 (subst_asm_stack_regs): Likewise.
21541 * config/arm/arm.c (note_invalid_constants): Likewise.
21542 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
21543 the operand_alternative; use alternative class instead.
21544 * sel-sched.c (get_reg_class): Likewise.
21545 * regrename.c (build_def_use): Likewise.
21546 (hide_operands, restore_operands, record_out_operands): Update type
21549 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21551 * recog.h (recog_op_alt): Convert to a flat array.
21552 (which_op_alt): New function.
21553 * recog.c (recog_op_alt): Convert to a flat array.
21554 (preprocess_constraints): Update accordingly, grouping all
21555 operands of the same alternative together, rather than the
21557 * ira-lives.c (check_and_make_def_conflict): Likewise.
21558 (make_early_clobber_and_input_conflicts): Likewise.
21559 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21560 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
21561 (subst_asm_stack_regs): Likewise.
21562 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21563 * regrename.c (hide_operands, record_out_operands): Likewise.
21564 (build_def_use): Likewise.
21565 * sel-sched.c (get_reg_class): Likewise.
21566 * config/arm/arm.c (note_invalid_constants): Likewise.
21568 2014-06-04 Jason Merrill <jason@redhat.com>
21572 * gimplify.c (gimplify_arg): Non-static.
21573 * gimplify.h: Declare it.
21575 2014-06-04 Richard Biener <rguenther@suse.de>
21577 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21578 TREE_PUBLIC and DECL_EXTERNAL decls.
21580 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
21582 * regcprop.c (copyprop_hardreg_forward_1): Account for
21583 HARD_REGNO_CALL_PART_CLOBBERED.
21585 2014-06-04 Richard Biener <rguenther@suse.de>
21587 * configure.ac: Check whether the underlying type of int64_t
21588 is long or long long.
21589 * configure: Regenerate.
21590 * config.in: Likewise.
21591 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
21592 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21594 2014-06-04 Richard Biener <rguenther@suse.de>
21596 PR tree-optimization/60098
21597 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
21599 (dse_optimize_stmt): Simplify, now that we found a kill
21602 2014-06-04 Richard Biener <rguenther@suse.de>
21604 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
21605 of accesses with non-invariant address.
21607 2014-06-04 Martin Liska <mliska@suse.cz>
21609 * cgraph.h (cgraph_make_wrapper): New function introduced.
21610 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
21611 * ipa-inline.h (inline_analyze_function): The function is global.
21612 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
21614 2014-06-04 Martin Liska <mliska@suse.cz>
21616 * tree.h (private_lookup_attribute_starting): New function.
21617 (lookup_attribute_starting): Likewise.
21618 * tree.c (private_lookup_attribute_starting): Likewise.
21620 2014-06-04 Martin Liska <mliska@suse.cz>
21622 * cgraph.h (expand_thunk): New argument added.
21623 (address_taken_from_non_vtable_p): New global function.
21624 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
21625 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
21626 * cgraphunit.c (analyze_function): Likewise.
21627 (assemble_thunks_and_aliases): Argument added to call.
21628 (expand_thunk): New argument forces to produce GIMPLE thunk.
21630 2014-06-04 Martin Liska <mliska@suse.cz>
21632 * coverage.h (coverage_compute_cfg_checksum): Argument added.
21633 * coverage.c (coverage_compute_cfg_checksum): Likewise.
21634 * profile.c (branch_prob): Likewise.
21636 2014-06-04 Martin Jambor <mjambor@suse.cz>
21639 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
21640 handler for switch on an ipa_ref_use enum.
21641 * ipa-reference.c (analyze_function): Likewise.
21643 2014-06-04 Kai Tietz <ktietz@redhat.com>
21645 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
21646 from old call-instruction.
21648 2014-06-04 Bin Cheng <bin.cheng@arm.com>
21650 * config/aarch64/aarch64.c (aarch64_classify_address)
21651 (aarch64_legitimize_reload_address): Support full addressing modes
21653 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
21654 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
21656 2014-06-03 Andrew Pinski <apinski@cavium.com>
21658 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
21661 2014-06-03 Andrew Pinski <apinski@cavium.com>
21663 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
21664 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
21666 2014-06-03 Kai Tietz <ktietz@redhat.com>
21668 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
21671 2014-06-03 Dehao Chen <dehao@google.com>
21673 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
21676 2014-06-03 Marek Polacek <polacek@redhat.com>
21679 * doc/invoke.texi: Document -Wswitch-bool.
21680 * function.c (stack_protect_epilogue): Cast controlling expression of
21682 * gengtype.c (walk_type): Generate switch expression with its
21683 controlling expression cast to int.
21685 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
21687 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
21689 * config/avr/avr-tables.opt: Regenerate.
21690 * config/avr/t-multilib: Regenerate.
21691 * doc/avr-mmcu.texi: Regenerate.
21693 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
21694 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21696 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
21697 (ata6617c, ata664251): Add new avr35 devices.
21698 (ata6612c): Add new avr4 device.
21699 (ata6613c, ata6614q): Add new avr5 devices.
21700 * config/avr/avr-tables.opt: Regenerate.
21701 * config/avr/t-multilib: Regenerate.
21702 * doc/avr-mmcu.texi: Regenerate.
21704 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
21706 * gcc/config/aarch64/aarch64-builtins.c
21707 (aarch64_types_binop_ssu_qualifiers): New static data.
21708 (TYPES_BINOP_SSU): Define.
21709 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
21710 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
21711 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
21712 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
21713 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
21714 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
21715 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
21716 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
21717 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
21718 suffix to builtin function name, remove cast.
21719 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
21720 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
21721 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
21723 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
21725 * gcc/config/aarch64/aarch64-builtins.c
21726 (aarch64_types_binop_uus_qualifiers,
21727 aarch64_types_shift_to_unsigned_qualifiers,
21728 aarch64_types_unsigned_shiftacc_qualifiers): Define.
21729 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
21730 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
21731 sqshlu_n, uqshl_n): Update qualifiers.
21732 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
21733 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
21734 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
21735 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
21736 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
21737 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
21738 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
21739 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
21740 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
21741 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
21742 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
21743 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
21744 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
21745 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
21746 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
21747 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
21748 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
21749 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
21750 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
21751 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
21752 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
21753 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
21754 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
21755 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
21756 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
21757 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
21758 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
21760 2014-06-03 Teresa Johnson <tejohnson@google.com>
21762 * tree-sra.c (modify_function): Record caller nodes after rebuild.
21764 2014-06-02 Jason Merrill <jason@redhat.com>
21767 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
21769 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
21771 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
21774 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
21776 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
21778 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
21779 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
21780 * config/aarch64/iterators.md (REVERSE): New iterator.
21781 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
21782 (rev_op): New int_attribute.
21783 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
21784 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
21785 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
21786 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
21787 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
21788 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
21789 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
21790 Replace temporary __asm__ with __builtin_shuffle.
21792 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21794 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
21796 * config/mips/mips-tables.opt: Regenerate.
21797 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
21798 to use mips_isa_rev rather than ISA_MIPS32R2.
21799 * config/mips/mips.h (ISA_MIPS32R3): New define.
21800 (ISA_MIPS32R5): New define.
21801 (ISA_MIPS64R3): New define.
21802 (ISA_MIPS64R5): New define.
21803 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
21804 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
21805 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
21807 (MIPS_ISA_SYNCI_SPEC): Likewise.
21808 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
21809 (LINK_SPEC): Added mips32r3 and mips32r5.
21810 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
21811 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
21812 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
21813 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
21814 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
21815 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
21816 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
21818 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21820 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
21822 * config/mips/mips.opt (mxpa): New option.
21823 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
21826 2014-06-03 Martin Jambor <mjambor@suse.cz>
21829 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
21832 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
21834 PR tree-optimization/61328
21835 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
21836 initialization from find_bswap_or_nop_1.
21837 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
21838 in source_expr2 before using the size value the function sets. Also
21839 make use of init_symbolic_number () in both the old place and
21840 find_bswap_or_nop_load () to avoid reading uninitialized memory when
21841 doing recursion in the GIMPLE_BINARY_RHS case.
21843 2014-06-03 Richard Biener <rguenther@suse.de>
21845 PR tree-optimization/61383
21846 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
21849 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
21851 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
21852 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
21853 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
21854 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
21856 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
21857 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
21858 * system.h: ...here and make it unconditional.
21859 * target.def (conditional_register_usage): Mention
21860 define_register_constraint instead of old-style constraint macros.
21861 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
21862 * doc/tm.texi: Regenerate.
21863 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
21864 protected by !USE_MD_CONSTRAINTS.
21865 * config/frv/frv.md: Remove quote from old version of documentation.
21866 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
21867 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
21868 CONST_DOUBLE_OK_FOR_LETTER.
21869 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
21871 2014-06-02 Andrew Pinski <apinski@cavium.com>
21873 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
21874 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
21875 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
21876 file whose name depends on -mabi= and -mbig-endian.
21877 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
21878 Handle LP64 better and handle ilp32 too.
21879 (MULTILIB_OPTIONS): Delete.
21880 (MULTILIB_DIRNAMES): Delete.
21882 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
21884 * expr.h: Remove prototypes of functions defined in builtins.c.
21885 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
21886 Remove prototypes of functions defined in builtins.c.
21887 * builtins.h: Update prototype list to include all exported functions.
21888 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
21889 no_c99_libc_has_function): Move to targhooks.c
21890 (build_string_literal, build_call_expr_loc_array,
21891 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
21893 (expand_builtin_object_size, fold_builtin_object_size): Make static.
21894 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
21895 no_c99_libc_has_function): Relocate from builtins.c.
21896 * tree.c: Include builtins.h.
21897 (build_call_expr_loc_array, build_call_expr_loc_vec,
21898 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
21900 * fold-const.h (fold_fma): Move prototype to builtins.h.
21901 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
21902 * asan.c: Include builtins.h.
21903 * cfgexpand.c: Likewise.
21904 * convert.c: Likewise.
21905 * emit-rtl.c: Likewise.
21906 * except.c: Likewise.
21907 * expr.c: Likewise.
21908 * fold-const.c: Likewise.
21909 * gimple-fold.c: Likewise.
21910 * gimple-ssa-strength-reduction.c: Likewise.
21911 * gimplify.c: Likewise.
21912 * ipa-inline.c: Likewise.
21913 * ipa-prop.c: Likewise.
21914 * lto-streamer-out.c: Likewise.
21915 * stmt.c: Likewise.
21916 * tree-inline.c: Likewise.
21917 * tree-object-size.c: Likewise.
21918 * tree-sra.c: Likewise.
21919 * tree-ssa-ccp.c: Likewise.
21920 * tree-ssa-forwprop.c: Likewise.
21921 * tree-ssa-loop-ivcanon.c: Likewise.
21922 * tree-ssa-loop-ivopts.c: Likewise.
21923 * tree-ssa-math-opts.c: Likewise.
21924 * tree-ssa-reassoc.c: Likewise.
21925 * tree-ssa-threadedge.c: Likewise.
21926 * tree-streamer-in.c: Likewise.
21927 * tree-vect-data-refs.c: Likewise.
21928 * tree-vect-patterns.c: Likewise.
21929 * tree-vect-stmts.c: Likewise.
21930 * config/aarch64/aarch64.c: Likewise.
21931 * config/alpha/alpha.c: Likewise.
21932 * config/arc/arc.c: Likewise.
21933 * config/arm/arm.c: Likewise.
21934 * config/avr/avr.c: Likewise.
21935 * config/bfin/bfin.c: Likewise.
21936 * config/c6x/c6x.c: Likewise.
21937 * config/cr16/cr16.c: Likewise.
21938 * config/cris/cris.c: Likewise.
21939 * config/epiphany/epiphany.c: Likewise.
21940 * config/fr30/fr30.c: Likewise.
21941 * config/frv/frv.c: Likewise.
21942 * config/h8300/h8300.c: Likewise.
21943 * config/i386/i386.c: Likewise.
21944 * config/i386/winnt.c: Likewise.
21945 * config/ia64/ia64.c: Likewise.
21946 * config/iq2000/iq2000.c: Likewise.
21947 * config/lm32/lm32.c: Likewise.
21948 * config/m32c/m32c.c: Likewise.
21949 * config/m32r/m32r.c: Likewise.
21950 * config/m68k/m68k.c: Likewise.
21951 * config/mcore/mcore.c: Likewise.
21952 * config/mep/mep.c: Likewise.
21953 * config/microblaze/microblaze.c: Likewise.
21954 * config/mips/mips.c: Likewise.
21955 * config/mmix/mmix.c: Likewise.
21956 * config/mn10300/mn10300.c: Likewise.
21957 * config/moxie/moxie.c: Likewise.
21958 * config/msp430/msp430.c: Likewise.
21959 * config/nds32/nds32.c: Likewise.
21960 * config/pa/pa.c: Likewise.
21961 * config/pdp11/pdp11.c: Likewise.
21962 * config/picochip/picochip.c: Likewise.
21963 * config/rl78/rl78.c: Likewise.
21964 * config/rs6000/rs6000.c: Likewise.
21965 * config/rx/rx.c: Likewise.
21966 * config/s390/s390.c: Likewise.
21967 * config/score/score.c: Likewise.
21968 * config/sh/sh.c: Likewise.
21969 * config/sparc/sparc.c: Likewise.
21970 * config/spu/spu.c: Likewise.
21971 * config/stormy16/stormy16.c: Likewise.
21972 * config/tilegx/tilegx.c: Likewise.
21973 * config/tilepro/tilepro.c: Likewise.
21974 * config/v850/v850.c: Likewise.
21975 * config/vax/vax.c: Likewise.
21976 * config/xtensa/xtensa.c: Likewise.
21978 2014-06-02 Jeff Law <law@redhat.com>
21980 PR rtl-optimization/61094
21981 * ree.c (combine_reaching_defs): Do not reextend an insn if it
21982 was marked as do_no_reextend. If a copy is needed to eliminate
21983 an extension, then mark it as do_not_reextend.
21985 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
21987 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
21989 2014-06-02 Richard Henderson <rth@redhat.com>
21992 * config/alpha/alpha.c (print_operand_address): Allow symbolic
21993 addresses inside asms. Use output_operand_lossage instead of
21996 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
21999 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22000 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22002 2014-06-02 Tom de Vries <tom@codesourcery.com>
22004 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22005 case that x has VOIDmode.
22007 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22009 * varasm.c (copy_constant): Delete function.
22010 (build_constant_desc): Don't call it.
22012 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22015 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22016 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22017 with immediate_operand.
22019 2014-06-02 Andreas Schwab <schwab@suse.de>
22021 * config/ia64/ia64.c
22022 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22023 pending_data_specs first.
22025 2014-06-02 Richard Biener <rguenther@suse.de>
22027 PR tree-optimization/61378
22028 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22029 valueized_anything.
22031 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22033 * config/i386/constraints.md (Bw): Rename from 'w'.
22034 (Bz): Rename from 'z'.
22035 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22037 2014-06-01 Kai Tietz <ktietz@redhat.com>
22040 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22041 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22042 instead of m constraint.
22044 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22046 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22047 a separate alternative where the scratch operand 2 is marked as
22050 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22052 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22053 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22054 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22055 and __builtins_arm_get_fpscr.
22056 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22057 __builtins_arm_get_fpscr.
22058 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22059 __builtins_arm_ldfpscr.
22060 (arm_atomic_assign_expand_fenv): New function.
22061 * config/arm/vfp.md (set_fpscr): New pattern.
22062 (get_fpscr) : Likewise.
22063 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22065 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22066 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22068 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22070 * asan.c (report_error_func): Add SLOW_P argument, use
22071 BUILT_IN_ASAN_*_N if set.
22072 (build_check_stmt): Likewise.
22073 (instrument_derefs): If T has insufficient alignment,
22074 force same handling as for odd sizes.
22076 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22077 BUILT_IN_ASAN_REPORT_STORE_N): New.
22078 * asan.c (struct asan_mem_ref): Change access_size type to
22080 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22081 update_mem_ref_hash_table): Likewise.
22082 (asan_mem_ref_hasher::hash): Hash in a HWI.
22083 (report_error_func): Change size_in_bytes argument to HWI.
22084 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22086 (build_shadow_mem_access): New function.
22087 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22088 Handle size_in_bytes not power of two or larger than 16.
22089 (instrument_derefs): Don't give up if size_in_bytes is not
22090 power of two or is larger than 16.
22092 2014-05-30 Kai Tietz <ktietz@redhat.com>
22095 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22096 for sibling-tail-calls.
22097 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22099 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22100 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22102 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22104 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22105 * config/avr/avr-tables.opt: Regenerate.
22106 * config/avr/t-multilib: Regenerate.
22107 * doc/avr-mmcu.texi: Regenerate.
22109 2014-05-30 Ian Lance Taylor <iant@google.com>
22111 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22114 2014-05-30 Tom de Vries <tom@codesourcery.com>
22116 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22119 2014-05-30 Tom de Vries <tom@codesourcery.com>
22121 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22122 * lra.c (initialize_lra_reg_info_element): Add init of
22123 actual_call_used_reg_set field.
22124 (lra): Call lra_create_live_ranges before lra_inheritance for
22126 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22128 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22129 instead of call_used_reg_set for -fuse-caller-save.
22130 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22132 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22134 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22136 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22138 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22140 * ira.c (ira_get_dup_out_num): Check for output operands at
22141 the start of the loop. Handle cases where an included alternative
22142 follows an excluded one.
22144 2014-05-29 Mike Stump <mikestump@comcast.net>
22147 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22148 post ld passes when lto is used.
22150 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
22152 PR rtl-optimization/61325
22153 * lra-constraints.c (process_address): Rename to process_address_1.
22154 (process_address): New function.
22156 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
22158 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22159 TYPES_BINOPV): New static data.
22160 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22162 * config/aarch64/aarch64-simd.md (aarch64_ext,
22163 aarch64_im_lane_boundsi): New patterns.
22164 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22166 (aarch64_evpc_ext): New function.
22168 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22170 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22171 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22172 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22173 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22174 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22176 2014-05-29 Tom de Vries <tom@codesourcery.com>
22178 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22180 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
22181 Richard Sandiford <rdsandiford@googlemail.com>
22183 * arm/iterators.md (shiftable_ops): New code iterator.
22184 (t2_binop0, arith_shift_insn): New code attributes.
22185 * arm/predicates.md (shift_nomul_operator): New predicate.
22186 * arm/arm.md (insn_enabled): Delete.
22187 (enabled): Remove insn_enabled test.
22188 (*arith_shiftsi): Delete. Replace with ...
22189 (*<arith_shift_insn>_multsi): ... new pattern.
22190 (*<arith_shift_insn>_shiftsi): ... new pattern.
22191 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22193 2014-05-29 Radovan Obradovic <robradovic@mips.com>
22194 Tom de Vries <tom@codesourcery.com>
22196 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22197 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22199 (mips_split_call): Use POST_CALL_TMP_REG.
22200 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22202 2014-05-29 Tom de Vries <tom@codesourcery.com>
22204 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22205 with #ifdef STACK_REGS.
22207 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
22209 * varasm.c (get_variable_section): Walk aliases.
22210 (place_block_symbol): Walk aliases.
22212 2014-05-28 Tom de Vries <tom@codesourcery.com>
22215 2014-05-28 Tom de Vries <tom@codesourcery.com>
22217 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22218 * lra.c (initialize_lra_reg_info_element): Add init of
22219 actual_call_used_reg_set field.
22220 (lra): Call lra_create_live_ranges before lra_inheritance for
22222 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22224 * lra-constraints.c (need_for_call_save_p): Use
22225 actual_call_used_reg_set instead of call_used_reg_set for
22227 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22229 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22231 * doc/md.texi: Document that the % constraint character must
22232 be at the beginning of the string.
22233 * genoutput.c (validate_insn_alternatives): Check that '=',
22234 '+' and '%' only appear at the beginning of a constraint.
22235 * ira.c (commutative_constraint_p): Delete.
22236 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22237 at the start of the string.
22238 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22240 * config/arm/neon.md (bicdi3_neon): Likewise.
22241 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22242 (slt_si, sltu_si): Likewise.
22243 * config/vax/vax.md (sbcdi3): Likewise.
22244 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22245 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22246 (mul64): Move '%' to beginning of constraint.
22247 * config/arm/arm.md (*xordi3_insn): Likewise.
22248 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22249 (xorsi3): Likewise.
22251 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22253 * doc/md.texi: Document the restrictions on the "enabled" attribute.
22255 2014-05-28 Jason Merrill <jason@redhat.com>
22258 * cgraph.h (symtab_node::get_comdat_group_id): New.
22259 * cgraphunit.c (analyze_functions): Call it.
22260 * symtab.c (dump_symtab_node): Likewise.
22261 * tree.c (decl_comdat_group_id): New.
22262 * tree.h: Declare it.
22263 * lto-streamer-out.c (write_symbol): Use it.
22264 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22266 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
22268 PR bootstrap/PR61146
22269 * wide-int.cc: Do not include longlong.h when compiling with clang.
22271 2014-05-28 Richard Biener <rguenther@suse.de>
22273 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22274 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22275 (vrp_visit_assignment_or_call): Print less vertical space.
22276 (vrp_visit_stmt): Likewise.
22277 (vrp_visit_phi_node): Likewise. For a PHI argument with
22278 VR_VARYING range consider recording it as copy.
22280 2014-05-28 Richard Biener <rguenther@suse.de>
22283 2014-05-28 Richard Biener <rguenther@suse.de>
22285 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22287 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22289 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22290 sufficiently aligned and an offset is used at the same time.
22291 (expand_expr_real_1): Likewise.
22293 2014-05-28 Richard Biener <rguenther@suse.de>
22295 PR middle-end/61045
22296 * fold-const.c (fold_comparison): When folding
22297 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22298 the sign of the remaining constant operand stays the same.
22300 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
22302 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22303 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22304 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22306 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22307 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22308 (m32bit-doubles) Likewise.
22309 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22310 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22313 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22315 * configure.ac ($gcc_cv_ld_clearcap): New test.
22316 * configure: Regenerate.
22317 * config.in: Regenerate.
22318 * config/sol2.opt (mclear-hwcap): New option.
22319 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22320 * config/sol2-clearcap.map: Moved here from
22321 testsuite/gcc.target/i386/clearcap.map.
22322 * config/sol2-clearcapv2.map: Move here from
22323 gcc.target/i386/clearcapv2.map.
22324 * config/t-sol2 (install): Depend on install-clearcap-map.
22325 (install-clearcap-map): New target.
22326 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22329 2014-05-28 Richard Biener <rguenther@suse.de>
22331 * hwint.h (*_HALF_WIDE_INT*): Move to ...
22332 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22333 ... here and remove the rest.
22334 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22336 2014-05-28 Richard Biener <rguenther@suse.de>
22338 PR tree-optimization/61335
22339 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22340 new range fails, drop to varying.
22342 2014-05-28 Olivier Hainque <hainque@adacore.com>
22344 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22345 (CPP_SPEC): Add entry for -mcpu=8548.
22346 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22347 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22349 2014-05-28 Tom de Vries <tom@codesourcery.com>
22351 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22352 * lra.c (initialize_lra_reg_info_element): Add init of
22353 actual_call_used_reg_set field.
22354 (lra): Call lra_create_live_ranges before lra_inheritance for
22356 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22358 * lra-constraints.c (need_for_call_save_p): Use
22359 actual_call_used_reg_set instead of call_used_reg_set for
22361 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22363 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22364 Tom de Vries <tom@codesourcery.com>
22366 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22368 (@item -fuse-caller-save): New item.
22370 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22371 Tom de Vries <tom@codesourcery.com>
22373 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22374 OPT_fuse_caller_save.
22376 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22377 Tom de Vries <tom@codesourcery.com>
22379 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22380 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22381 get_call_reg_set_usage.
22382 * resource.c (mark_set_resources, mark_target_live_regs): Use
22383 get_call_reg_set_usage.
22384 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22386 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22387 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22388 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22389 * ira-build.c (ira_create_allocno): Init
22390 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22391 (create_cap_allocno, propagate_allocno_info)
22392 (propagate_some_info_from_allocno)
22393 (copy_info_to_removed_store_destinations): Handle
22394 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22395 * ira-costs.c (ira_tune_allocno_costs): Use
22396 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22398 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22399 Tom de Vries <tom@codesourcery.com>
22401 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22402 and function_used_regs_valid fields.
22403 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22404 find_all_hard_reg_sets.
22405 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22406 (get_call_reg_set_usage): New function.
22407 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22408 * regs.h (get_call_reg_set_usage): Declare.
22410 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22413 * config/dbx.h (License): Add Runtime Library Exception.
22414 * config/newlib-stdint.h (License): Same.
22415 * config/rtems.h (License): Same
22416 * config/initfini-array.h (License): Same
22417 * config/v850/v850.h (License): Same.
22418 * config/v850/v850-opts.h (License): Same
22419 * config/v850/rtems.h (License): Same.
22421 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22424 * doc/extend.texi (Local Labels): Note that label differences are
22425 not supported for AVR.
22427 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22428 Olivier Hainque <hainque@adacore.com>
22430 * rtl.h (set_for_reg_notes): Declare.
22431 * emit-rtl.c (set_for_reg_notes): New function.
22432 (set_unique_reg_note): Use it.
22433 * optabs.c (add_equal_note): Likewise
22435 2014-05-27 Andrew Pinski <apinski@cavium.com>
22437 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22438 Use <w> for the register in assembly template.
22439 (stack_protect_test): Use the mode of operands[0] for the result.
22440 (stack_protect_test_<mode>): Use <w> for the register
22441 in assembly template.
22443 2014-05-27 DJ Delorie <dj@redhat.com>
22445 * config/rx/rx.c (add_vector_labels): New.
22446 (rx_output_function_prologue): Call it.
22447 (rx_handle_func_attribute): Don't require empty arguments.
22448 (rx_handle_vector_attribute): New.
22449 (rx_attribute_table): Add "vector" attribute.
22450 * doc/extend.texi (interrupt, vector): Document new/changed
22451 RX-specific attributes.
22453 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
22455 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22457 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
22458 predicate to detect a negative quotient.
22460 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22462 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
22463 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
22464 Add X - Y CMP 0 to X CMP Y transformation.
22465 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
22467 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
22469 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
22472 2014-05-27 Steve Ellcey <sellcey@mips.com>
22474 * config/mips/mips.c: Add include of cgraph.h.
22476 2014-05-27 Richard Biener <rguenther@suse.de>
22478 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
22480 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22483 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
22484 * config/arm/arm-cores.def (License): Same.
22485 * config/arm/arm-opts.h (License): Same.
22486 * config/arm/aout.h (License): Same.
22487 * config/arm/bpabi.h (License): Same.
22488 * config/arm/elf.h (License): Same.
22489 * config/arm/linux-elf.h (License): Same.
22490 * config/arm/linux-gas.h (License): Same.
22491 * config/arm/netbsd-elf.h (License): Same.
22492 * config/arm/uclinux-eabi.h (License): Same.
22493 * config/arm/uclinux-elf.h (License): Same.
22494 * config/arm/vxworks.h (License): Same.
22496 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22498 * config/arm/neon.md (neon_bswap<mode>): New pattern.
22499 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
22500 (arm_init_neon_builtins): Handle NEON_BSWAP.
22501 Define required type nodes.
22502 (arm_expand_neon_builtin): Handle NEON_BSWAP.
22503 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
22504 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
22505 * config/arm/iterators.md (VDQHSD): New mode iterator.
22507 2014-05-27 Richard Biener <rguenther@suse.de>
22509 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
22510 Try using literal operands when comparing value-ranges failed.
22512 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22514 * ira.c (commutative_operand): Adjust for change to recog_data.
22515 [Missing from previous commit.]
22517 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22519 * system.h (TEST_BIT): New macro.
22520 * recog.h (alternative_mask): New type.
22521 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
22522 (recog_data_d): Replace alternative_enabled_p array with
22523 enabled_alternatives.
22524 (target_recog): New structure.
22525 (default_target_recog, this_target_recog): Declare.
22526 (get_enabled_alternatives, recog_init): Likewise.
22527 * recog.c (default_target_recog, this_target_recog): New variables.
22528 (get_enabled_alternatives): New function.
22529 (extract_insn): Use it.
22530 (recog_init): New function.
22531 (preprocess_constraints, constrain_operands): Adjust for change to
22533 * postreload.c (reload_cse_simplify_operands): Likewise.
22534 * reload.c (find_reloads): Likewise.
22535 * ira-costs.c (record_reg_classes): Likewise.
22536 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
22537 all alternatives after a disabled one would be skipped.
22538 (ira_implicitly_set_insn_hard_regs): Likewise.
22539 * ira.c (ira_setup_alts): Adjust for change to recog_data.
22540 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
22541 with enabled_alternatives.
22542 * lra.c (free_insn_recog_data): Update accordingly.
22543 (lra_update_insn_recog_data): Likewise.
22544 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
22545 * lra-constraints.c (process_alt_operands): Likewise. Handle
22546 only_alternative as part of the enabled mask.
22547 * target-globals.h (this_target_recog): Declare.
22548 (target_globals): Add a recog field.
22549 (restore_target_globals): Restore this_target_recog.
22550 * target-globals.c: Include recog.h.
22551 (default_target_globals): Initialize recog field.
22552 (save_target_globals): Likewise.
22553 * reginfo.c (reinit_regs): Call recog_init.
22554 * toplev.c (backend_init_target): Likewise.
22556 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22558 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
22559 rather than any named insn's code.
22561 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22564 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
22565 * config/arm/arm-cores.def (License): Same.
22567 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
22569 * tree.h (decl_comdat_group): Declare.
22570 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
22571 * tree.c (decl_comdat_group): Here.
22573 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
22575 PR rtl-optimization/61222
22576 * combine.c (simplify_shift_const_1): When moving a PLUS outside
22577 the shift, truncate the PLUS operand to the result mode.
22579 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
22582 * config/i386/i386.c (ix86_rtx_costs)
22583 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
22586 2014-05-26 Martin Jambor <mjambor@suse.cz>
22588 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
22591 2014-05-26 Richard Biener <rguenther@suse.de>
22593 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
22594 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
22595 Provide specializations.
22596 (wi::int_traits <HOST_WIDE_INT>,
22597 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
22599 2014-05-26 Alan Modra <amodra@gmail.com>
22602 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
22603 params and return a bool. Remove dead code. Update comment.
22604 Assert we have a const_int source. Remove bogus code from
22605 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
22606 handling of constants > 2G and reg_equal note, from..
22607 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
22608 return value. Update comment. If we can, use a new pseudo
22609 for intermediate calculations.
22610 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
22612 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
22613 call to rs6000_emit_set_const in splitter.
22614 (movdi_internal64+2, +3): Likewise.
22616 2014-05-26 Richard Biener <rguenther@suse.de>
22618 * system.h: Define __STDC_FORMAT_MACROS before
22619 including inttypes.h.
22620 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
22621 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
22622 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
22623 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
22624 HOST_WIDEST_INT_C): Remove.
22625 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
22626 if C99 inttypes.h is not available.
22627 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
22628 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
22629 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
22630 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
22631 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
22632 (struct output_info): Likewise.
22633 (print_statistics): Adjust.
22634 (dump_bitmap_statistics): Likewise.
22635 * bt-load.c (migrate_btr_defs): Print with PRId64.
22636 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
22637 (MAX_SAFE_MULTIPLIER): Adjust.
22638 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
22639 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
22640 dump_cgraph_node): Likewise.
22641 * final.c (dump_basic_block_info): Likewise.
22642 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
22643 * gcov.c (format_gcov): Likewise.
22644 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
22646 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
22647 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
22648 (inline_small_functions, dump_overall_stats, dump_inline_stats):
22649 Use PRId64 for dumping.
22650 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
22651 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
22652 (add_allocno_hard_regs): Adjust.
22653 * loop-doloop.c (doloop_modify): Print using PRId64.
22654 * loop-iv.c (inverse): Compute in uint64_t.
22655 (determine_max_iter, iv_number_of_iterations): Likewise.
22656 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
22657 Print using PRId64.
22658 * lto-streamer-out.c (write_symbol): Use uint64_t.
22659 * mcf.c (CAP_INFINITY): Use int64_t maximum.
22660 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
22661 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
22662 * modulo-sched.c (const_iteration_count): Use int64_t.
22663 (sms_schedule): Dump using PRId64.
22664 * predict.c (dump_prediction): Likewise.
22665 * pretty-print.h (pp_widest_integer): Remove.
22666 * profile.c (get_working_sets, is_edge_inconsistent,
22667 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
22668 * tree-pretty-print.c (pp_double_int): Remove case handling
22669 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
22670 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
22672 (pass_optimize_bswap::execute): Remove restriction on hosts.
22673 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
22674 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
22675 * tree.c (widest_int_cst_value): Remove.
22676 * tree.h (widest_int_cst_value): Likewise.
22677 * value-prof.c (dump_histogram_value): Print using PRId64.
22678 * gengtype.c (main): Also inject int64_t.
22679 * ggc-page.c (struct max_alignment): Use int64_t.
22680 * alloc-pool.c (struct allocation_object_def): Likewise.
22681 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
22683 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
22684 * doc/tm.texi: Regenerated.
22685 * gengtype-lex.l (IWORD): Handle [u]int64_t.
22686 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
22687 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
22688 mmix_output_register_setting): Use [u]int64_t in prototypes.
22689 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
22690 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
22691 mmix_output_octa, mmix_output_shifted_value): Adjust.
22692 (mmix_intval): Adjust. Remove unreachable case.
22693 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
22695 2014-05-26 Richard Biener <rguenther@suse.de>
22697 * configure.ac: Drop __int64 type check. Insist that we
22698 found uint64_t and int64_t.
22699 * hwint.h (HOST_BITS_PER___INT64): Remove.
22700 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
22701 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
22702 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
22703 (HOST_WIDEST_FAST_INT): Remove __int64 case.
22704 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
22705 for dst_q_src_df_rms_cdt.
22706 * configure: Regenerate.
22707 * config.in: Likewise.
22709 2014-05-26 Michael Tautschnig <mt@debian.org>
22712 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
22713 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
22715 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22717 PR rtl-optimization/61278
22718 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
22720 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22722 PR rtl-optimization/61220
22723 Part of PR rtl-optimization/61225
22724 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
22725 insn; skip split_edge for a block with only one successor.
22727 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22729 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
22732 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22734 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
22735 (update_vtable_references): New function.
22736 (function_and_variable_visibility): Rewrite also vtable initializers.
22737 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
22739 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22741 * ggc.h (ggc_grow): New function.
22742 * ggc-none.c (ggc_grow): New function.
22743 * ggc-page.c (ggc_grow): Likewise.
22745 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22747 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
22748 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
22749 comdat_can_be_unshared_p, cgraph_externally_visible_p,
22750 varpool_externally_visible_p, can_replace_by_local_alias,
22751 update_visibility_by_resolution_info, function_and_variable_visibility,
22752 pass_data_ipa_function_and_variable_visibility,
22753 make_pass_ipa_function_and_variable_visibility,
22754 whole_program_function_and_variable_visibility,
22755 pass_data_ipa_whole_program_visibility,
22756 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
22757 * cgraph.h (cgraph_local_node_p): Declare.
22758 * ipa-visibility.c: New file.
22759 * Makefile.in (OBJS): Add ipa-visiblity.o
22761 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22763 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
22764 that var decl is available.
22766 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22768 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
22769 symtab_node pointer.
22770 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
22771 (find_decls_types_r): Do not walk COMDAT_GROUP.
22772 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
22773 * varasm.c (make_decl_one_only): Use set_comdat_group;
22774 create node if needed.
22775 * ipa-inline-transform.c (save_inline_function_body): Update
22776 way we decl->symtab mapping.
22777 * symtab.c (symtab_hash, hash_node, eq_node
22778 symtab_insert_node_to_hashtable): Remove.
22779 (symtab_register_node): Update.
22780 (symtab_unregister_node): Update.
22781 (symtab_get_node): Reimplement as inline function.
22782 (symtab_add_to_same_comdat_group): Update.
22783 (symtab_dissolve_same_comdat_group_list): Update.
22784 (dump_symtab_base): Update.
22785 (verify_symtab_base): Update.
22786 (symtab_make_decl_local): Update.
22787 (fixup_same_cpp_alias_visibility): Update.
22788 (symtab_nonoverwritable_alias): Update.
22789 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
22790 * ipa.c (update_visibility_by_resolution_info): UPdate.
22791 * bb-reorder.c: Include cgraph.h
22792 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
22793 with comdat groups.
22794 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
22795 * cgraph.c (cgraph_get_create_node): Update.
22796 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
22798 (symtab_get_node): Make inline.
22799 (symtab_insert_node_to_hashtable): Remove.
22800 (symtab_can_be_discarded): Update.
22801 (decl_comdat_group): New function.
22802 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
22804 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
22806 (read_comdat_group): New function.
22807 (input_node, input_varpool_node): Use it.
22808 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
22810 * mips.c (mips_start_unique_function): Likewise.
22811 (ix86_code_end): Likewise.
22812 (rs6000_code_end): Likweise.
22813 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
22815 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22817 * gengtype-state.c (fatal_reading_state): Bring offline.
22818 * optabs.c (widening_optab_handler): Bring offline.
22819 * optabs.h (widening_optab_handler): Likewise.
22820 * final.c (get_attr_length_1): Likewise.
22822 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22824 * sched-int.h (sd_iterator_cond): Manually tail recurse.
22826 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22828 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
22829 (ppc440-compare): Include shift with dot.
22830 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
22831 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
22833 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
22835 (e6500_sfx2): Include it.
22836 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
22837 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
22838 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
22839 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
22840 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
22841 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
22842 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
22843 *lshiftrt_internal1le, *lshiftrt_internal1be,
22844 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
22845 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
22846 *rotldi3_internal10le, *rotldi3_internal10be,
22847 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
22848 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
22849 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
22850 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
22851 define_insns): Use type "shift" in the appropriate alternatives.
22853 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22855 * config/rs6000/rs6000.md (type): Add "logical". Delete
22857 (dot): Adjust comment.
22858 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
22859 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
22860 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
22861 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
22862 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
22863 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
22864 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
22865 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22867 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22868 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22869 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22870 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22871 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22872 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22873 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22874 * config/rs6000/8540.md (ppc8540_su): Adjust.
22875 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22876 cell-cmp-microcoded): Adjust.
22877 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22878 * config/rs6000/e500mc.md (e500mc_su): Adjust.
22879 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22880 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22881 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22882 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22883 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22884 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22885 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22887 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22888 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
22889 Adjust. Adjust comment.
22890 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22891 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22893 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22895 * config/rs6000/rs6000.md (type): Add "add".
22896 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
22897 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
22898 define_insns): Use it.
22899 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22901 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22902 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22903 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22904 * config/rs6000/601.md (ppc601-integer): Adjust.
22905 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22906 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22907 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22908 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22909 * config/rs6000/8540.md (ppc8540_su): Adjust.
22910 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22911 cell-cmp-microcoded): Adjust.
22912 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22913 * config/rs6000/e500mc.md (e500mc_su): Adjust.
22914 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22915 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22916 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22917 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22918 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22919 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22920 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22922 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22923 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
22924 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22925 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22927 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22929 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
22930 "delayed_compare", "var_delayed_compare".
22931 (var_shift): New attribute.
22932 (cell_micro): Adjust.
22933 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
22934 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
22935 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
22936 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
22937 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
22938 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
22939 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
22940 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
22941 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
22942 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22943 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
22944 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
22945 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
22946 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
22947 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
22948 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
22949 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
22950 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
22951 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
22952 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
22953 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
22954 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
22955 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
22956 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22957 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22959 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22960 * config/rs6000/440.md (ppc440-integer): Adjust.
22961 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22962 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
22963 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22964 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22965 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22966 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22967 * config/rs6000/8540.md (ppc8540_su): Adjust.
22968 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22969 cell-cmp-microcoded): Adjust.
22970 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
22971 * config/rs6000/e500mc.md (e500mc_su): Adjust.
22972 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
22973 e500mc64_delayed): Adjust.
22974 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
22975 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
22976 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22977 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
22978 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
22979 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
22980 power6-delayed-compare, power6-var-delayed-compare): Adjust.
22981 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
22982 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
22984 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22985 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22987 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22989 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
22990 (bits): New mode_attr.
22991 (idiv_ldiv): Delete mode_attr.
22992 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
22993 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22994 rs6000_adjust_priority, is_nonpipeline_insn,
22995 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22997 * config/rs6000/40x.md (ppc403-idiv): Adjust.
22998 * config/rs6000/440.md (ppc440-idiv): Adjust.
22999 * config/rs6000/476.md (ppc476-idiv): Adjust.
23000 * config/rs6000/601.md (ppc601-idiv): Adjust.
23001 * config/rs6000/603.md (ppc603-idiv): Adjust.
23002 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23003 ppc620-ldiv): Adjust.
23004 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23005 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23006 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23007 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23008 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23009 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23010 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23011 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23012 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23013 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23014 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23015 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23016 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23017 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23018 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23019 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23020 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23021 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23023 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23025 * config/rs6000/rs6000.md (type): Delete "insert_word",
23026 "insert_dword". Add "insert".
23027 (size): Update comment.
23028 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23029 insn_must_be_first_in_group): Adjust.
23030 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23031 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23032 *insvsi_internal6, insvdi_internal): Adjust.
23034 * config/rs6000/40x.md (ppc403-integer): Adjust.
23035 * config/rs6000/440.md (ppc440-integer): Adjust.
23036 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23037 * config/rs6000/601.md (ppc601-integer): Adjust.
23038 * config/rs6000/603.md (ppc603-integer): Adjust.
23039 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23040 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23041 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23042 * config/rs6000/8540.md (ppc8540_su): Adjust.
23043 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23044 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23045 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23046 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23047 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23048 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23049 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23050 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23051 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23052 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23053 * config/rs6000/power7.md (power7-integer): Adjust.
23054 * config/rs6000/power8.md (power8-1cyc): Adjust.
23055 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23056 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23058 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23060 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23061 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23062 (size): New attribute.
23063 (dot): New attribute.
23064 (cell_micro): Adjust.
23065 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23066 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23067 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23068 umuldi3_highpart): Adjust.
23069 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23070 rs6000_adjust_priority, is_nonpipeline_insn,
23071 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23073 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23074 ppc405-imul3): Adjust.
23075 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23076 * config/rs6000/476.md (ppc476-imul): Adjust.
23077 * config/rs6000/601.md (ppc601-imul): Adjust.
23078 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23079 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23080 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23081 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23082 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23084 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23085 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23086 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23087 cell-imul): Adjust.
23088 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23089 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23090 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23091 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23092 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23093 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23094 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23095 power4-lmul, power4-imul, power4-imul3): Adjust.
23096 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23097 power5-lmul, power5-imul, power5-imul3): Adjust.
23098 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23099 power6-lmul, power6-imul, power6-imul3): Adjust.
23100 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23101 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23103 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23104 rs64a-lmul): Adjust.
23105 * config/rs6000/titan.md (titan_imul): Adjust.
23107 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23109 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23110 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23111 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23112 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23113 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23114 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23115 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23116 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23117 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23118 * config/rs6000/titan.md: Delete nonsensical comment.
23119 (titan_imul): Add type imul3.
23120 (titan_mulhw): Remove type imul3; add type halfmul.
23122 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23124 * config/rs6000/rs6000.md (type): Reorder, reformat.
23126 2014-05-23 Martin Jambor <mjambor@suse.cz>
23128 PR tree-optimization/53787
23129 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23130 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23131 analysis_done, update all uses.
23132 * ipa-prop.c: Include domwalk.h
23133 (param_analysis_info): Removed.
23134 (param_aa_status): New type.
23135 (ipa_bb_info): Likewise.
23136 (func_body_info): Likewise.
23137 (ipa_get_bb_info): New function.
23138 (aa_overwalked): Likewise.
23139 (find_dominating_aa_status): Likewise.
23140 (parm_bb_aa_status_for_bb): Likewise.
23141 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23142 (load_from_unmodified_param): Accept func_body_info as a parameter
23143 instead of parms_ainfo.
23144 (parm_ref_data_preserved_p): Changed to use new param AA info.
23145 (parm_ref_data_pass_through_p): Likewise.
23146 (ipa_load_from_parm_agg_1): Likewise. Update callers.
23147 (compute_complex_assign_jump_func): Changed to use new param AA info.
23148 (compute_complex_ancestor_jump_func): Likewise.
23149 (ipa_compute_jump_functions_for_edge): Likewise.
23150 (ipa_compute_jump_functions): Removed.
23151 (ipa_compute_jump_functions_for_bb): New function.
23152 (ipa_analyze_indirect_call_uses): Likewise, moved variable
23154 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23155 and info, moved variable declarations down.
23156 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23158 (ipa_analyze_stmt_uses): Likewise.
23159 (ipa_analyze_params_uses): Removed.
23160 (ipa_analyze_params_uses_in_bb): New function.
23161 (ipa_analyze_controlled_uses): Likewise.
23162 (free_ipa_bb_info): Likewise.
23163 (analysis_dom_walker): New class.
23164 (ipa_analyze_node): Handle node-specific forbidden analysis,
23165 initialize and free func_body_info, use dominator walker.
23166 (ipcp_modif_dom_walker): New class.
23167 (ipcp_transform_function): Create and free func_body_info, use
23168 ipcp_modif_dom_walker, moved a lot of functionality there.
23170 2014-05-23 Marek Polacek <polacek@redhat.com>
23171 Jakub Jelinek <jakub@redhat.com>
23173 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23174 * gcc.c (sanitize_spec_function): Likewise.
23175 * convert.c (convert_to_integer): Include "ubsan.h". Add
23176 floating-point to integer instrumentation.
23177 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23178 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23179 SANITIZE_NONDEFAULT.
23180 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23181 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23182 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23183 * ubsan.c: Include "realmpfr.h" and "dfp.h".
23184 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23185 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23186 float/double/long double.
23187 (ubsan_instrument_float_cast): New function.
23188 * ubsan.h (ubsan_instrument_float_cast): Declare.
23190 2014-05-23 Jiong Wang <jiong.wang@arm.com>
23192 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23194 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
23195 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23196 Adjust for tailcalling through registers.
23197 * config/aarch64/aarch64.h (enum reg_class): New caller save
23199 (REG_CLASS_NAMES): Likewise.
23200 (REG_CLASS_CONTENTS): Likewise.
23201 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23202 Allow tailcalling without decls.
23204 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23206 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23207 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23209 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23210 gsi, and variables v_* to v*.
23212 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
23214 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23216 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23218 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23219 * omp-low.c: Update accordingly.
23221 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23222 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23223 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23224 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23225 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23226 GF_OMP_TARGET_KIND_UPDATE.
23228 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23229 Explicitly enumerate the expected region types.
23231 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
23234 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
23235 documentation; the old documentation didn't clearly state the
23236 constraints on the contents of the pointed-to storage.
23238 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23240 Fix bootstrap error on ia64
23241 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23242 Return default value.
23244 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
23246 PR tree-optimization/54733
23247 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23249 (find_bswap_or_nop_load): New.
23250 (find_bswap_1): Renamed to ...
23251 (find_bswap_or_nop_1): This. Also add support for memory source.
23252 (find_bswap): Renamed to ...
23253 (find_bswap_or_nop): This. Also add support for memory source and
23254 detection of bitwise operations equivalent to load in target
23256 (execute_optimize_bswap): Likewise. Also move its leading comment back
23257 in place and split statement transformation into ...
23258 (bswap_replace): This.
23260 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23262 PR rtl-optimization/61215
23263 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23264 simplify_gen_subreg until final substitution.
23266 2014-05-23 Alan Modra <amodra@gmail.com>
23269 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23270 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23271 Use "Y" constraint rather than "m".
23273 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23275 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23277 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23278 New function declaration.
23279 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23280 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23281 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23282 (aarch64_init_builtins) : Initialize builtins
23283 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23284 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23285 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23286 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23287 and __builtins_aarch64_set_fpsr.
23288 (aarch64_atomic_assign_expand_fenv): New function.
23289 * config/aarch64/aarch64.md (set_fpcr): New pattern.
23290 (get_fpcr) : Likewise.
23291 (set_fpsr) : Likewise.
23292 (get_fpsr) : Likewise.
23293 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23294 and UNSPECV_SET_FPSR.
23295 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23296 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23297 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23299 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23301 PR rtl-optimization/60969
23302 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23303 constraints. Set up mem cost for NO_REGS case.
23305 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
23307 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23309 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
23311 * config/darwin.c: Include "lto-section-names.h".
23312 (LTO_SEGMENT_NAME): Don't define.
23313 * config/i386/winnt.c: Include "lto-section-names.h".
23314 * lto-streamer.c: Include "lto-section-names.h".
23315 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23316 * lto-wrapper.c: Include "lto-section-names.h".
23317 (LTO_SECTION_NAME_PREFIX): Don't define.
23318 * lto-section-names.h: New file.
23319 * cgraphunit.c: Include "lto-section-names.h".
23321 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
23323 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23325 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
23328 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23330 2014-05-22 Nick Clifton <nickc@redhat.com>
23332 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23334 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
23336 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23337 -> (T)A transformation to integer types.
23339 2014-05-22 Teresa Johnson <tejohnson@google.com>
23341 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23342 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23343 (gcov_rewrite): Use gcov_nonruntime_assert.
23344 (gcov_open): Ditto.
23345 (gcov_write_words): Ditto.
23346 (gcov_write_length): Ditto.
23347 (gcov_read_words): Use gcov_nonruntime_assert, and remove
23348 gcc_assert from IN_LIBGCOV code.
23349 (gcov_read_summary): Use gcov_error to flag profile corruption.
23350 (gcov_sync): Use gcov_nonruntime_assert.
23351 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23352 (gcov_histo_index): Use gcov_nonruntime_assert.
23353 (static void gcov_histogram_merge): Ditto.
23354 (compute_working_sets): Ditto.
23355 * gcov-io.h (gcov_nonruntime_assert): Define.
23356 (gcov_error): Define for !IN_LIBGCOV
23358 2014-05-22 Richard Biener <rguenther@suse.de>
23360 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23361 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23362 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23363 and deallocation site.
23364 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23365 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23366 passing through the incoming points-to set.
23367 (handle_lhs_call): Use flags argument instead of recomputing it.
23368 (find_func_aliases_for_call): Call handle_lhs_call with proper
23371 2014-05-22 Jakub Jelinek <jakub@redhat.com>
23373 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23374 all padding bits in REAL_VALUE_TYPE are cleared.
23376 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23378 Cleanup and improve multipass_dfa_lookahead_guard
23379 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23380 (core2i7_first_cycle_multipass_begin,)
23381 (core2i7_first_cycle_multipass_issue,)
23382 (core2i7_first_cycle_multipass_backtrack): Update signature.
23383 * config/ia64/ia64.c
23384 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23385 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23386 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23388 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23389 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
23391 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23393 * doc/tm.texi: Regenerate.
23395 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23396 * haifa-sched.c (ready_try): Make signed to allow negative values.
23397 (rebug_ready_list_1): Update.
23398 (choose_ready): Simplify.
23399 (sched_extend_ready_list): Update.
23401 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23403 Remove IA64 speculation tweaking flags
23404 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23405 speculation tuning flags.
23406 (msched-prefer-non-data-spec-insns,)
23407 (msched-prefer-non-control-spec-insns): Obsolete options.
23408 * haifa-sched.c (choose_ready): Remove handling of
23409 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23410 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23411 and PREFER_NON_DATA_SPEC.
23412 * sel-sched.c (process_spec_exprs): Remove handling of
23413 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23415 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23417 Improve scheduling debug output
23418 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23419 (advance_one_cycle): Update.
23420 (schedule_insn, queue_to_ready): Add debug printouts.
23421 (debug_ready_list_1): New static function.
23422 (debug_ready_list): Update.
23423 (max_issue): Add debug printouts.
23424 (dump_insn_stream): New static function.
23425 (schedule_block): Use it. Also better indent printouts.
23427 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23429 Fix sched_insn debug counter
23430 * haifa-sched.c (schedule_insn): Update.
23431 (struct haifa_saved_data): Add nonscheduled_insns_begin.
23432 (save_backtrack_point, restore_backtrack_point): Update.
23433 (first_nonscheduled_insn): New static function.
23434 (queue_to_ready, choose_ready): Use it.
23435 (schedule_block): Init nonscheduled_insns_begin.
23436 (sched_emit_insn): Update.
23439 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23441 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
23443 (aarch64_secondary_reload) : LikeWise.
23444 (aarch64_class_max_nregs) : Remove CORE_REGS.
23445 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
23446 (REG_CLASS_NAMES) : Likewise.
23447 (REG_CLASS_CONTENTS) : LikeWise.
23448 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
23450 2014-05-21 Guozhi Wei <carrot@google.com>
23453 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
23455 (vqdmulhq_n_s16): Likewise.
23457 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23459 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
23461 2014-05-21 Marek Polacek <polacek@redhat.com>
23464 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
23466 2014-05-21 Martin Jambor <mjambor@suse.cz>
23468 * doc/invoke.texi (Optimize Options): Document parameters
23469 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
23470 ipa-cp-array-index-hint-bonus.
23472 2014-05-21 Mark Wielaard <mjw@redhat.com>
23475 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
23476 version >= 3 or not strict DWARF.
23477 * langhooks.h (struct lang_hooks_for_types): Add
23478 enum_underlying_base_type.
23479 * langhooks.c (lhd_enum_underlying_base_type): New function.
23480 * gcc/langhooks.h (struct lang_hooks_for_types): Add
23481 enum_underlying_base_type.
23482 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
23483 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
23484 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
23486 2014-05-21 Richard Biener <rguenther@suse.de>
23488 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
23490 2014-05-21 John Marino <gnugcc@marino.st>
23492 * config.gcc (*-*-dragonfly*): New target.
23493 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
23494 * configure: Regenerate.
23495 * config/dragonfly-stdint.h: New.
23496 * config/dragonfly.h: New.
23497 * config/dragonfly.opt: New.
23498 * config/i386/dragonfly.h: New.
23499 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
23501 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23503 * tree.def (VOID_CST): New.
23504 * tree-core.h (TI_VOID): New.
23505 * tree.h (void_node): New.
23506 * tree.c (tree_node_structure_for_code, tree_code_size)
23507 (iterative_hash_expr): Handle VOID_CST.
23508 (build_common_tree_nodes): Initialize void_node.
23510 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
23512 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
23514 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
23516 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
23519 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
23520 flag_reorder_blocks_and_partition.
23521 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
23523 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
23526 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
23528 (*addc_r_t): Add new insn_and_split.
23530 2014-05-21 Jakub Jelinek <jakub@redhat.com>
23532 PR middle-end/61252
23533 * omp-low.c (handle_simd_reference): New function.
23534 (lower_rec_input_clauses): Use it. Defer adding reference
23535 initialization even for reduction without placeholder if in simd,
23536 handle it properly later on.
23538 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23540 PR tree-optimization/60899
23541 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
23542 assume all static symbols will have definition wile parsing and
23543 check the do have definition later in compilation; check that
23544 variable referring symbol will be output before concluding that
23545 reference is safe; be conservative for referring local statics;
23546 be more precise about when comdat is output in other partition.
23548 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23551 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
23553 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
23554 (ipa_inline): Loop inline_to_all_callers until no more aliases
23557 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23559 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
23560 set writeonly flag only for vars actually written to.
23562 2014-05-20 Dehao Chen <dehao@google.com>
23564 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
23565 and callee count to get clone count.
23566 * tree-inline.c (expand_call_inline): Use callee count instead of bb
23567 count in copy_body.
23569 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23571 PR rtl-optimization/61243
23572 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
23574 2014-05-20 Xinliang David Li <davidxl@google.com>
23576 * cgraphunit.c (walk_polymorphic_call_targets): Add
23577 dbgcnt and fopt-info support.
23578 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
23579 * ipa-devirt.c (ipa_devirt): Ditto.
23580 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
23581 * ipa.c (walk_polymorphic_call_targets): Ditto.
23582 * gimple-fold.c (fold_gimple_assign): Ditto.
23583 (gimple_fold_call): Ditto.
23584 * dbgcnt.def: New counter.
23586 2014-05-20 DJ Delorie <dj@redhat.com>
23588 * config/msp430/msp430.md (split): Don't allow subregs when
23589 splitting SImode adds.
23590 (andneghi): Fix subtraction logic.
23591 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
23593 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23595 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
23597 * except.c (switch_to_exception_section, resolve_unique_section,
23598 get_named_text_section, default_function_rodata_section,
23599 align_variable, get_block_for_decl, default_section_type_flags):
23600 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
23601 * symtab.c (symtab_add_to_same_comdat_group,
23602 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
23603 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
23605 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
23606 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
23607 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
23608 (c6x_function_in_section_p): Likewise.
23609 * config/darwin.c (machopic_select_section): Likewise.
23610 * config/arm/arm.c (arm_function_in_section_p): Likewise.
23611 * config/mips/mips.c (mips_function_rodata_section): Likewise.
23612 * config/mep/mep.c (mep_select_section): LIkewise.
23613 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
23615 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
23617 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
23618 EH region of calls to pure functions that can throw an exception.
23619 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
23620 (copy_reference_ops_from_call): Also copy the EH region of the call if
23621 it can throw an exception.
23623 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23625 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
23626 nested VEC_SELECTs that are inverses of each other.
23628 2014-05-20 Richard Biener <rguenther@suse.de>
23630 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
23631 (extract_and_process_scc_for_name): not here.
23632 (cond_dom_walker::before_dom_children): Only process
23633 stmts that end the BB in interesting ways.
23634 (run_scc_vn): Mark param uses as visited.
23636 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23638 * config/arm/arm.md (arith_shiftsi): Do not predicate for
23641 2014-05-20 Nick Clifton <nickc@redhat.com>
23643 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
23644 (msp430_gimplify_va_arg_expr): New function.
23645 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
23647 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
23648 operand 0 in order to prevent confusion about the number of
23649 registers involved.
23651 2014-05-20 Richard Biener <rguenther@suse.de>
23653 PR tree-optimization/61221
23654 * tree-ssa-pre.c (el_to_update): Remove.
23655 (eliminate_dom_walker::before_dom_children): Handle released
23656 VDEFs by value-numbering them to the associated VUSE. Update
23657 stmt immediately for substituted call address.
23658 (eliminate): Remove delayed stmt updating code.
23659 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
23660 possibly late re-numbered vuses.
23661 (vn_reference_lookup_2): Adjust.
23662 (vn_reference_lookup_pieces): Likewise.
23663 (vn_reference_lookup): Likewise.
23665 2014-05-20 Richard Biener <rguenther@suse.de>
23667 * config.gcc: Remove need_64bit_hwint.
23668 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
23669 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
23671 * config.in: Regenerate.
23672 * configure: Likewise.
23674 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
23676 * doc/extend.texi: Create Label Attributes section,
23677 move all label attributes into it and reference it.
23679 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
23681 * arm.c (thumb1_reorg): When scanning backwards skip anything
23682 that's not a proper insn.
23684 2014-05-19 Richard Biener <rguenther@suse.de>
23686 PR tree-optimization/61221
23687 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23688 Do nothing for unreachable blocks.
23689 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
23690 Improve unreachability detection.
23692 2014-05-19 Richard Biener <rguenther@suse.de>
23694 PR tree-optimization/61209
23695 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
23697 2014-05-19 Nick Clifton <nickc@redhat.com>
23699 * except.c (init_eh): Fix computation of builtin setjmp buffer
23700 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
23702 2014-05-19 Richard Biener <rguenther@suse.de>
23704 PR tree-optimization/61184
23705 * tree-vrp.c (is_negative_overflow_infinity): Use
23706 TREE_OVERFLOW_P and do that check first.
23707 (is_positive_overflow_infinity): Likewise.
23708 (is_overflow_infinity): Likewise.
23709 (vrp_operand_equal_p): Properly treat operands with
23710 differing overflow as not equal.
23712 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
23714 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
23715 shift simplification where it was intended.
23717 2014-05-19 Christian Bruel <christian.bruel@st.com>
23720 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
23722 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
23725 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
23728 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23730 * reg-notes.def (CROSSING_JUMP): Likewise.
23731 * rtl.h (rtx_def): Update comment for jump flag.
23732 (CROSSING_JUMP_P): Define.
23733 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
23734 of a REG_CROSSING_JUMP note.
23735 * cfghooks.c (tidy_fallthru_edges): Likewise.
23736 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
23737 * emit-rtl.c (try_split): Likewise.
23738 * haifa-sched.c (sched_create_recovery_edges): Likewise.
23739 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
23740 * jump.c (redirect_jump_2): Likewise.
23741 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
23742 (relax_delay_slots): Likewise.
23743 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
23744 (bbit_di): Likewise.
23745 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
23746 * config/sh/sh.md (jump_compact): Likewise.
23747 * bb-reorder.c (rotate_loop): Likewise.
23748 (pass_duplicate_computed_gotos::execute): Likewise.
23749 (add_reg_crossing_jump_notes): Rename to...
23750 (update_crossing_jump_flags): ...this.
23751 (pass_partition_blocks::execute): Update accordingly.
23753 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23755 * tree.h: Remove extraneous template <>.
23757 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
23759 * ipa.c (symtab_remove_unreachable_nodes): Remove
23760 symbol from comdat group if its body was eliminated.
23761 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
23762 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
23763 (symtab_unregister_node): ... this one.
23764 (verify_symtab_base): More strict checking of comdats.
23765 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
23767 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
23769 * tree-pass.h (make_pass_ipa_comdats): New pass.
23770 * timevar.def (TV_IPA_COMDATS): New timevar.
23771 * passes.def (pass_ipa_comdats): Add.
23772 * Makefile.in (OBJS): Add ipa-comdats.o
23773 * ipa-comdats.c: New file.
23775 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
23777 * ipa.c (update_visibility_by_resolution_info): New function.
23778 (function_and_variable_visibility): Use it.
23780 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
23782 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
23784 (FOR_EACH_DEFINED_SYMBOL): New macro.
23785 (varpool_first_static_initializer, varpool_next_static_initializer,
23786 varpool_first_defined_variable, varpool_next_defined_variable):
23788 (symtab_in_same_comdat_p): Correctly deal with inline functions.
23790 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23792 * ggc-page.c (ggc_handle_finalizers): Add comment.
23794 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23796 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
23797 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
23798 (ggc_internal_cleared_alloc): Likewise.
23799 * ggc-page.c (finalizer): New class.
23800 (vec_finalizer): Likewise.
23801 (globals::finalizers): New member.
23802 (globals::vec_finalizers): Likewise.
23803 (ggc_internal_alloc): Record the finalizer if any for the block being
23805 (ggc_handle_finalizers): New function.
23806 (ggc_collect): Call ggc_handle_finalizers.
23807 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
23809 (ggc_internal_cleared_alloc): Likewise.
23810 (finalize): New function.
23811 (need_finalization_p): Likewise.
23812 (ggc_alloc): Install the type's destructor as the finalizer if it
23813 might do something.
23814 (ggc_cleared_alloc): Likewise.
23815 (ggc_vec_alloc): Likewise.
23816 (ggc_cleared_vec_alloc): Likewise.
23818 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23820 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
23822 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23824 * alias.c (record_alias_subset): Adjust.
23825 * bitmap.c (bitmap_element_allocate): Likewise.
23826 (bitmap_gc_alloc_stat): Likewise.
23827 * cfg.c (init_flow): Likewise.
23828 (alloc_block): Likewise.
23829 (unchecked_make_edge): Likewise.
23830 * cfgloop.c (alloc_loop): Likewise.
23831 (flow_loops_find): Likewise.
23832 (rescan_loop_exit): Likewise.
23833 * cfgrtl.c (init_rtl_bb_info): Likewise.
23834 * cgraph.c (insert_new_cgraph_node_version): Likewise.
23835 (cgraph_allocate_node): Likewise.
23836 (cgraph_create_edge_1): Likewise.
23837 (cgraph_allocate_init_indirect_info): Likewise.
23838 * cgraphclones.c (cgraph_clone_edge): Likewise.
23839 * cgraphunit.c (add_asm_node): Likewise.
23840 (init_lowered_empty_function): Likewise.
23841 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
23842 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
23843 (alpha_use_linkage): Likewise.
23844 * config/arc/arc.c (arc_init_machine_status): Likewise.
23845 * config/arm/arm.c (arm_init_machine_status): Likewise.
23846 * config/avr/avr.c (avr_init_machine_status): Likewise.
23847 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
23848 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
23849 * config/cris/cris.c (cris_init_machine_status): Likewise.
23850 * config/darwin.c (machopic_indirection_name): Likewise.
23851 (darwin_build_constant_cfstring): Likewise.
23852 (darwin_enter_string_into_cfstring_table): Likewise.
23853 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
23854 * config/frv/frv.c (frv_init_machine_status): Likewise.
23855 * config/i386/i386.c (get_dllimport_decl): Likewise.
23856 (ix86_init_machine_status): Likewise.
23857 (assign_386_stack_local): Likewise.
23858 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
23859 (i386_pe_maybe_record_exported_symbol): Likewise.
23860 (i386_pe_record_stub): Likewise.
23861 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
23862 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
23863 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
23864 (m32c_note_pragma_address): Likewise.
23865 * config/mep/mep.c (mep_init_machine_status): Likewise.
23866 (mep_note_pragma_flag): Likewise.
23867 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
23868 (mips16_local_alias): Likewise.
23869 (mips_init_machine_status): Likewise.
23870 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
23871 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
23872 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
23873 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
23874 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
23875 * config/pa/pa.c (pa_init_machine_status): Likewise.
23876 (pa_get_deferred_plabel): Likewise.
23877 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
23878 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
23879 (rs6000_init_machine_status): Likewise.
23880 (output_toc): Likewise.
23881 * config/s390/s390.c (s390_init_machine_status): Likewise.
23882 * config/score/score.c (score_output_external): Likewise.
23883 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
23884 * config/spu/spu.c (spu_init_machine_status): Likewise.
23885 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
23886 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
23887 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
23888 * coverage.c (coverage_end_function): Likewise.
23889 * dbxout.c (dbxout_init): Likewise.
23890 * doc/gty.texi: Don't mention variable_size attribute.
23891 * dwarf2cfi.c (new_cfi): Adjust.
23892 (new_cfi_row): Likewise.
23893 (copy_cfi_row): Likewise.
23894 (create_cie_data): Likewise.
23895 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
23896 (new_loc_descr): Likewise.
23897 (find_AT_string_in_table): Likewise.
23898 (add_addr_table_entry): Likewise.
23899 (new_die): Likewise.
23900 (add_var_loc_to_decl): Likewise.
23901 (clone_die): Likewise.
23902 (clone_as_declaration): Likewise.
23903 (break_out_comdat_types): Likewise.
23904 (new_loc_list): Likewise.
23905 (add_loc_descr_to_each): Likewise.
23906 (add_location_or_const_value_attribute): Likewise.
23907 (add_linkage_name): Likewise.
23908 (lookup_filename): Likewise.
23909 (dwarf2out_var_location): Likewise.
23910 (new_line_info_table): Likewise.
23911 (dwarf2out_init): Likewise.
23912 (mem_loc_descriptor): Likewise.
23913 (loc_descriptor): Likewise.
23914 (add_const_value_attribute): Likewise.
23915 (tree_add_const_value_attribute): Likewise.
23916 (comp_dir_string): Likewise.
23917 (dwarf2out_vms_debug_main_pointer): Likewise.
23918 (string_cst_pool_decl): Likewise.
23919 * emit-rtl.c (set_mem_attrs): Likewise.
23920 (get_reg_attrs): Likewise.
23921 (start_sequence): Likewise.
23922 (init_emit): Likewise.
23923 (init_emit_regs): Likewise.
23924 * except.c (init_eh_for_function): Likewise.
23925 (gen_eh_region): Likewise.
23926 (gen_eh_region_catch): Likewise.
23927 (gen_eh_landing_pad): Likewise.
23928 (add_call_site): Likewise.
23929 * function.c (add_frame_space): Likewise.
23930 (insert_temp_slot_address): Likewise.
23931 (assign_stack_temp_for_type): Likewise.
23932 (get_hard_reg_initial_val): Likewise.
23933 (allocate_struct_function): Likewise.
23934 (prepare_function_start): Likewise.
23935 (types_used_by_var_decl_insert): Likewise.
23936 * gengtype.c (variable_size_p): Remove function.
23937 (enum alloc_quantity): Remove enum.
23938 (write_typed_alloc_def): Remove function.
23939 (write_typed_struct_alloc_def): Likewise.
23940 (write_typed_typedef_alloc_def): Likewise.
23941 (write_typed_alloc_defns): Likewise.
23943 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
23944 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
23945 * ggc.h (ggc_alloc): new function.
23946 (ggc_cleared_alloc): Likewise.
23947 (ggc_vec_alloc): Template on type of vector element, and remove
23948 element size argument.
23949 (ggc_cleared_vec_alloc): Likewise.
23950 * gimple.c (gimple_build_omp_for): Adjust.
23951 (gimple_copy): Likewise.
23952 * ipa-cp.c (get_replacement_map): Likewise.
23953 (find_aggregate_values_for_callers_subset): Likewise.
23954 (known_aggs_to_agg_replacement_list): Likewise.
23955 * ipa-devirt.c (get_odr_type): Likewise.
23956 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
23957 (read_agg_replacement_chain): Likewise.
23958 * loop-iv.c (get_simple_loop_desc): Likewise.
23959 * lto-cgraph.c (input_node_opt_summary): Likewise.
23960 * lto-section-in.c (lto_new_in_decl_state): Likewise.
23961 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
23962 (input_eh_region): Likewise.
23963 (input_eh_lp): Likewise.
23964 (input_cfg): Likewise.
23965 * optabs.c (set_optab_libfunc): Likewise.
23966 (init_tree_optimization_optabs): Likewise.
23967 (set_conv_libfunc): Likewise.
23968 * passes.c (do_per_function_toporder): Likewise.
23969 * rtl.h: Don't use variable_size gty attribute.
23970 * sese.c (if_region_set_false_region): Adjust.
23971 * stringpool.c (gt_pch_save_stringpool): Likewise.
23972 * target-globals.c (save_target_globals): Likewise.
23973 * toplev.c (general_init): Likewise.
23974 * trans-mem.c (record_tm_replacement): Likewise.
23975 (split_bb_make_tm_edge): Likewise.
23976 * tree-cfg.c (move_sese_region_to_fn): Likewise.
23977 * tree-data-ref.h (lambda_vector_new): Likewise.
23978 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
23979 * tree-iterator.c (tsi_link_before): Likewise.
23980 (tsi_link_after): Likewise.
23981 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
23982 * tree-ssa-loop-niter.c (record_estimate): Likewise.
23983 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23984 * tree-ssa-operands.h: Don't use variable_size gty attribute.
23985 * tree-ssa.c (init_tree_ssa): Adjust.
23986 * tree-ssanames.c (set_range_info): Likewise.
23987 (get_ptr_info): Likewise.
23988 (duplicate_ssa_name_ptr_info): Likewise.
23989 (duplicate_ssa_name_range_info): Likewise.
23990 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
23991 (unpack_ts_fixed_cst_value_fields): Likewise.
23992 * tree.c (build_fixed): Likewise.
23993 (build_real): Likewise.
23994 (build_string): Likewise.
23995 (decl_priority_info): Likewise.
23996 (decl_debug_expr_insert): Likewise.
23997 (decl_value_expr_insert): Likewise.
23998 (decl_debug_args_insert): Likewise.
23999 (type_hash_add): Likewise.
24000 (build_omp_clause): Likewise.
24001 * ubsan.c (decl_for_type_insert): Likewise.
24002 * varasm.c (get_unnamed_section): Likewise.
24003 (get_noswitch_section): Likewise.
24004 (get_section): Likewise.
24005 (get_block_for_section): Likewise.
24006 (create_block_symbol): Likewise.
24007 (build_constant_desc): Likewise.
24008 (create_constant_pool): Likewise.
24009 (force_const_mem): Likewise.
24010 (record_tm_clone_pair): Likewise.
24011 * varpool.c (varpool_create_empty_node): Likewise.
24013 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24015 * dwarf2out.c (tree_add_const_value_attribute): Call
24016 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24017 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24018 instead of ggc_internal_<x>alloc_stat.
24019 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24020 (ggc_realloc): Likewise.
24021 * ggc-none.c (ggc_internal_alloc): Likewise.
24022 (ggc_internal_cleared_alloc): Likewise.
24023 * ggc-page.c: Likewise.
24024 * ggc.h (ggc_internal_alloc_stat): Likewise.
24025 (ggc_internal_alloc): Remove macro.
24026 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24027 (ggc_internal_cleared_alloc): Remove macro.
24028 (GGC_RESIZEVEC): Adjust.
24029 (ggc_resizevar): Remove macro.
24030 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24031 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24032 (ggc_internal_vec_cleared_alloc): Remove macro.
24033 (ggc_alloc_atomic_stat): Drop _stat suffix.
24034 (ggc_alloc_atomic): Remove macro.
24035 (ggc_alloc_cleared_atomic): Remove macro.
24036 (ggc_alloc_string_stat): Drop _stat suffix.
24037 (ggc_alloc_string): Remove macro.
24038 (ggc_alloc_rtx_def_stat): Adjust.
24039 (ggc_alloc_tree_node_stat): Likewise.
24040 (ggc_alloc_cleared_tree_node_stat): Likewise.
24041 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24042 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24043 * gimple.c (gimple_build_omp_for): Likewise.
24044 (gimple_copy): Likewise.
24045 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24046 * toplev.c (realloc_for_line_map): Adjust.
24047 * tree-data-ref.h (lambda_vector_new): Likewise.
24048 * tree-phinodes.c (allocate_phi_node): Likewise.
24049 * tree.c (grow_tree_vec_stat): Likewise.
24050 * vec.h (va_gc::reserve): Adjust.
24052 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24054 * config/microblaze/microblaze.c (break_handler): New Declaration.
24055 (microblaze_break_function_p,microblaze_is_break_handler): New.
24056 (compute_frame_size): Use microblaze_break_function_p.
24057 Add the test of break_handler.
24058 (microblaze_function_prologue) : Add the test of variable
24059 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24060 (microblaze_function_epilogue) : Add the test of break_handler.
24061 (microblaze_globalize_label) : Add the test of break_handler.
24062 Check the name by BREAK_HANDLER_NAME.
24064 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24066 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24067 microblaze_is_break_handler test.
24068 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24069 Use SYMBOL_REF_DECL.
24071 * config/microblaze/microblaze-protos.h
24072 (microblaze_break_function_p,microblaze_is_break_handler):
24075 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24076 new MicroBlaze break_handler functions.
24078 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24080 * doc/extend.texi (Size of an asm): Move node text according
24081 to its @menu entry position.
24083 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24085 PR tree-optimization/61140
24086 PR tree-optimization/61150
24087 PR tree-optimization/61197
24088 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24090 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24092 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24094 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24096 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24097 __SIZEOF_INT128__ is defined.
24099 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24101 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24102 (rs6000_delegitimize_address): Use it.
24104 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24106 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24107 inplace argument. Store the new address in the original MEM when true.
24108 * emit-rtl.c (change_address_1): Likewise.
24109 (adjust_address_1, adjust_automodify_address_1, offset_address):
24110 Update accordingly.
24111 * rtl.h (plus_constant): Add an inplace argument.
24112 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24113 when true. Avoid generating (plus X (const_int 0)).
24114 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24115 in-place. Pass true to plus_constant.
24116 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24118 2014-05-16 Dehao Chen <dehao@google.com>
24120 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24122 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24125 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24127 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24129 2014-05-16 Dehao Chen <dehao@google.com>
24131 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24132 optimize_function_for_size_p.
24133 * regs.h (REG_FREQ_FROM_BB): Likewise.
24135 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24138 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24139 negt_reg_operand cases.
24140 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24142 * config/sh/predicates.md (cbranch_treg_value): Simplify.
24144 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24146 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24149 2014-05-16 David Malcolm <dmalcolm@redhat.com>
24152 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24154 * tree-cfg.c (dump_function_to_file): Dump the return type of
24155 functions, in a line to itself before the function body, mimicking
24156 the layout of a C function.
24158 2014-05-16 Dehao Chen <dehao@google.com>
24160 * cfghooks.c (make_forwarder_block): Use direct computation to
24161 get fall-through edge's count and frequency.
24163 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
24165 * config/arc/arc.c (arc_init): Fix typo in error message.
24166 * config/i386/i386.c (ix86_expand_builtin): Likewise.
24167 (split_stack_prologue_scratch_regno): Likewise.
24168 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24169 word from error message.
24171 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24173 * ira-costs.c: Fix typo in comment.
24175 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
24177 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24179 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
24181 * varpool.c (dump_varpool_node): Dump write-only flag.
24182 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24184 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24185 write-only variables.
24186 * ipa.c (process_references): New function.
24187 (set_readonly_bit): New function.
24188 (set_writeonly_bit): New function.
24189 (clear_addressable_bit): New function.
24190 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24191 fix handling of aliases.
24192 * cgraph.h (struct varpool_node): Add writeonly flag.
24194 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
24196 PR rtl-optimization/60969
24197 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24198 Calculate costs for this case.
24200 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
24202 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24203 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24205 2014-05-16 Richard Biener <rguenther@suse.de>
24207 PR tree-optimization/61194
24208 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24209 bool patterns ending in a COND_EXPR.
24211 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24213 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24215 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24217 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24218 where we were unable to cost an RTX.
24220 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24222 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24225 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24226 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24228 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24230 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24231 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24233 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24234 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24236 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24237 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24239 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24242 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24243 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24245 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24248 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24249 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24251 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24252 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24254 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24255 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24257 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24258 rotates and shifts.
24260 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24261 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24263 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24264 ZERO_EXTEND and SIGN_EXTEND better.
24266 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24267 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24269 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24270 logical operations.
24272 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24273 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24275 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24276 costs when costing loads and stores to memory.
24278 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24279 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
24281 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24284 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24286 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24288 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24289 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24291 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24293 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24295 (aarch64_rtx_mult_cost): New.
24296 (aarch64_rtx_costs): Use it, refactor as appropriate.
24298 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24299 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24301 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24302 emit instructions, return number of instructions which would
24304 (aarch64_add_constant): Update call to aarch64_build_constant.
24305 (aarch64_output_mi_thunk): Likewise.
24306 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24309 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24311 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24312 (TARGET_RTX_COSTS): Call it.
24314 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24316 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24317 (cortexa57_vector_cost): Likewise.
24318 (cortexa57_tunings): Use them.
24320 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24322 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24323 (cpu_addrcost_table): Use it.
24324 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24325 (aarch64_address_cost): Rewrite using aarch64_classify_address,
24328 2014-05-16 Richard Biener <rguenther@suse.de>
24330 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24331 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24332 (visit_phi): Ignore edges marked as not executable.
24333 (class cond_dom_walker): New.
24334 (cond_dom_walker::before_dom_children): Value-number
24335 control statements and mark successor edges as not
24336 executable if possible.
24337 (run_scc_vn): First walk all control statements in
24338 dominator order, marking edges as not executable.
24339 * tree-inline.c (copy_edges_for_bb): Be not confused
24340 about random edge flags.
24342 2014-05-16 Richard Biener <rguenther@suse.de>
24344 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24346 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
24349 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24350 (__TM_simple_begin): Use it.
24351 (__TM_begin): Likewise.
24353 2014-05-15 Martin Jambor <mjambor@suse.cz>
24356 * ipa-prop.c (update_indirect_edges_after_inlining): Check
24357 type_preserved flag when the indirect edge is polymorphic.
24359 2014-05-15 Martin Jambor <mjambor@suse.cz>
24361 PR tree-optimization/61090
24362 * tree-sra.c (sra_modify_expr): Pass the current gsi to
24363 build_ref_for_model.
24365 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24367 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24368 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24370 2014-05-15 Jakub Jelinek <jakub@redhat.com>
24372 PR tree-optimization/61158
24373 * fold-const.c (fold_binary_loc): If X is zero-extended and
24374 shiftc >= prec, make sure zerobits is all ones instead of
24375 invoking undefined behavior.
24377 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24379 * regcprop.h: New file.
24380 * regcprop.c (skip_debug_insn_p): New decl.
24381 (replace_oldest_value_reg): Check skip_debug_insn_p.
24382 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24383 * shrink-wrap.c: Include regcprop.h.
24384 (prepare_shrink_wrap): Call
24385 copyprop_hardreg_forward_bb_without_debug_insn.
24387 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24389 * shrink-wrap.h: Update comment.
24390 * shrink-wrap.c: Update comment.
24391 (next_block_for_reg): Rename to live_edge_for_reg.
24392 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24393 (move_insn_for_shrink_wrap): Split live_edge.
24394 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24396 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24398 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24400 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24401 * config/sparc/sparc.md (fptype_ut699): New attribute.
24402 (in_branch_delay): Return false if -mfix-ut699 is specified and
24403 fptype_ut699 is set to single.
24404 (truncdfsf2): Add fptype_ut699 attribute.
24405 (fix_truncdfsi2): Likewise.
24406 (floatsisf2): Change fptype attribute.
24407 (fix_truncsfsi2): Likewise.
24408 (negtf2_notv9): Delete.
24409 (negtf2_v9): Likewise.
24410 (negtf2_hq): New instruction.
24411 (negtf2): New instruction and splitter.
24412 (negdf2_notv9): Rewrite.
24413 (abstf2_notv9): Delete.
24414 (abstf2_hq_v9): Likewise.
24415 (abstf2_v9): Likewise.
24416 (abstf2_hq): New instruction.
24417 (abstf2): New instruction and splitter.
24418 (absdf2_notv9): Rewrite.
24420 2014-05-14 Cary Coutant <ccoutant@google.com>
24423 * opts.c (common_handle_option): Don't special-case "-g".
24424 (set_debug_level): Default to at least level 2 with "-g".
24426 2014-05-14 DJ Delorie <dj@redhat.com>
24428 * config/msp430/msp430.c (msp430_builtin): Add
24429 MSP430_BUILTIN_DELAY_CYCLES.
24430 (msp430_init_builtins): Register void __delay_cycles(long long).
24431 (msp430_builtin_decl): Add it.
24432 (cg_magic_constant): New.
24433 (msp430_expand_delay_cycles): New.
24434 (msp430_expand_builtin): Call it.
24435 (msp430_print_operand_raw): Change integer printing from "int" to
24437 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24438 (delay_cycles_start): New.
24439 (delay_cycles_end): New.
24440 (delay_cycles_32): New.
24441 (delay_cycles_32x): New.
24442 (delay_cycles_16): New.
24443 (delay_cycles_16x): New.
24444 (delay_cycles_2): New.
24445 (delay_cycles_1): New.
24446 * doc/extend.texi: Document __delay_cycles().
24448 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
24450 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
24451 length attribute computation.
24453 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
24456 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
24458 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
24461 * config/sparc/sparc.md: Fix types of low and high in DI constant
24462 splitter. Use gen_int_mode in some other splitters.
24464 2014-05-14 Martin Jambor <mjambor@suse.cz>
24467 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
24469 2014-05-14 James Norris <jnorris@codesourcery.com>
24471 * omp-low.c (expand_parallel_call): Remove shadow variable.
24472 (expand_omp_taskreg): Likewise.
24474 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
24476 * common/config/i386/i386-common.c
24477 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
24478 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
24479 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
24480 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
24481 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
24482 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
24483 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
24484 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
24485 xsavecintrin.h, xsavesintrin.h.
24486 (x86_64-*-*): Ditto.
24487 * config/i386/clflushoptintrin.h: New.
24488 * config/i386/xsavecintrin.h: Ditto.
24489 * config/i386/xsavesintrin.h: Ditto.
24490 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
24491 (bit_XSAVES): Ditto.
24492 (bit_XSAVES): Ditto.
24493 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24494 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
24496 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24497 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
24498 OPTION_MASK_ISA_XSAVES.
24499 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
24500 -mxsavec, -mxsaves.
24501 (PTA_CLFLUSHOPT) Define.
24502 (PTA_XSAVEC): Ditto.
24503 (PTA_XSAVES): Ditto.
24504 (ix86_option_override_internal): Handle new options.
24505 (ix86_valid_target_attribute_inner_p): Ditto.
24506 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
24507 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
24508 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
24509 (bdesc_special_args): Add __builtin_ia32_xsaves,
24510 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
24511 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
24512 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
24513 (ix86_expand_builtin): Handle new builtins.
24514 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
24515 (TARGET_CLFLUSHOPT_P): Ditto.
24516 (TARGET_XSAVEC): Ditto.
24517 (TARGET_XSAVEC_P): Ditto.
24518 (TARGET_XSAVES): Ditto.
24519 (TARGET_XSAVES_P): Ditto.
24520 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
24521 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
24522 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
24524 (ANY_XRSTOR64): Ditto.
24526 (xrstor): Change into <xrstor>.
24527 (xrstor_rex64): Change into <xrstor>_rex64.
24528 (xrstor64): Change into <xrstor>64
24530 * config/i386/i386.opt (mclflushopt): New.
24533 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
24535 * doc/invoke.texi: Document new options.
24537 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
24539 PR rtl-optimization/60866
24540 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
24541 Default it to -1. Pass it down to init_simplejump_data.
24542 (init_simplejump_data): New parameter old_seqno. Pass it down
24543 to get_seqno_for_a_jump.
24544 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
24545 initializing new jump seqno as a last resort. Add comment.
24546 (sel_redirect_edge_and_branch): Save old seqno of the conditional
24547 jump and pass it down to sel_init_new_insn.
24548 (sel_redirect_edge_and_branch_force): Likewise.
24550 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
24552 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
24553 shifted values to avoid build warning.
24555 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24557 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
24558 * cfgrtl.c (rtl_merge_blocks): Fix comment.
24559 (cfg_layout_merge_blocks): Likewise.
24560 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
24562 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
24564 PR rtl-optimization/60901
24565 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
24566 bb predecessor belongs to the same scheduling region. Adjust comment.
24568 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
24570 * doc/sourcebuild.texi: (dfp_hw): Document.
24571 (p8vector_hw): Likewise.
24572 (powerpc_eabi_ok): Likewise.
24573 (powerpc_elfv2): Likewise.
24574 (powerpc_htm_ok): Likewise.
24575 (ppc_recip_hw): Likewise.
24576 (vsx_hw): Likewise.
24578 2014-05-13 Cary Coutant <ccoutant@google.com>
24580 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
24582 2014-05-13 David Malcolm <dmalcolm@redhat.com>
24584 * gengtype-parse.c (require3): Eliminate in favor of...
24586 (require_template_declaration): Update to support optional single *
24589 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
24590 (create_user_defined_type): Handle a single level of explicit
24591 pointerness within template arguments.
24592 (struct write_types_data): Add field "kind".
24593 (filter_type_name): Handle "*" character.
24594 (write_user_func_for_structure_ptr): Require a write_types_data
24595 rather than just a prefix string, so that we can look up the kind
24596 of the wtd and use it as an index into wrote_user_func_for_ptr,
24597 ensuring that such functions are written at most once. Support
24598 subclasses by invoking the marking function of the ultimate base class.
24599 (write_user_func_for_structure_body): Require a write_types_data
24600 rather than just a prefix string, so that we can pass this to
24601 write_user_func_for_structure_ptr.
24602 (write_func_for_structure): Likewise.
24603 (ggc_wtd): Add initializer of new "kind" field.
24604 (pch_wtd): Likewise.
24606 * gengtype.h (enum write_types_kinds): New.
24607 (struct type): Add field wrote_user_func_for_ptr to the "s"
24610 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
24612 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
24613 instead of const_binop.
24614 (fold_binary_loc): Likewise.
24616 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
24618 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
24619 calculation to match get_ref_base_and_extent.
24621 2014-05-13 Catherine Moore <clm@codesourcery.com>
24622 Sandra Loosemore <sandra@codesourcery.com>
24624 * configure.ac: Fix assembly for explicit JALR relocation check.
24625 * configure: Regenerate.
24627 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24629 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
24630 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
24631 Remove associated type declarations and initialisations.
24632 (arm_expand_neon_builtin): Likewise.
24633 (neon_emit_pair_result_insn): Delete.
24634 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
24635 * config/arm/neon.md (neon_vtrn<mode>): Delete.
24636 (neon_vzip<mode>): Likewise.
24637 (neon_vuzp<mode>): Likewise.
24639 2014-05-13 Richard Biener <rguenther@suse.de>
24642 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
24643 it needs revisiting whether the call still may be tail-called.
24645 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24647 * rtl.def (SYMBOL_REF): Remove middle "0" field.
24648 * rtl.h (block_symbol): Reduce number of fields to 2.
24649 (rtx_def): Add u2.symbol_ref_flags.
24650 (SYMBOL_REF_FLAGS): Use it.
24651 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
24652 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
24653 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
24654 Lower index of SYMBOL_REF_DATA.
24655 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
24656 Print SYMBOL_REF_FLAGS at the same time.
24657 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
24659 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24661 * rtl.def (VAR_LOCATION): Remove "i" field.
24662 * rtl.h (rtx_def): Add u2.var_location_status.
24663 (PAT_VAR_LOCATION_STATUS): Use it.
24664 (gen_rtx_VAR_LOCATION): Declare.
24665 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
24666 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
24667 * var-tracking.c (emit_note_insn_var_location): Remove casts.
24669 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24671 * rtl.def (scratch): Fix outdated comment and remove "0" field.
24672 * gengtype.c (adjust_field_rtx_def): Update accordingly.
24674 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24676 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
24677 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
24678 * rtl.h (rtx_def): Add insn_uid to u2 field.
24679 (RTX_FLAG_CHECK8): Delete in favor of...
24680 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
24681 (INSN_DELETED_P): Update accordingly.
24682 (INSN_UID): Use u2.insn_uid.
24683 (INSN_CHAIN_CODE_P): Define.
24684 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
24685 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
24686 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
24687 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
24688 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
24689 indices accordingly.
24690 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
24691 Update indices for insn-chain rtxes.
24692 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
24693 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
24694 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
24695 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
24696 * combine.c (try_combine): Likewise.
24697 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24699 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24701 * rtl.def (REG): Remove middle field.
24702 * rtl.h (rtx_def): Add orignal_regno to u2.
24703 (ORIGINAL_REGNO): Use it instead of field 1.
24704 (REG_ATTRS): Lower field index accordingly.
24705 * gengtype.c (adjust_field_rtx_def): Remove handling of
24706 ORIGINAL_REGNO. Move REG_ATTRS index down.
24707 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
24708 code that prints the REGNO.
24710 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24712 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
24715 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24717 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
24719 2014-05-13 Bin Cheng <bin.cheng@arm.com>
24721 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
24722 (alloc_iv): Lower base expressions containing ADDR_EXPR.
24724 2014-05-13 Ian Bolton <ian.bolton@arm.com>
24726 * config/aarch64/aarch64-protos.h
24727 (aarch64_hard_regno_caller_save_mode): New prototype.
24728 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
24730 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
24732 2014-05-13 Christian Bruel <christian.bruel@st.com>
24734 * target.def (mode_switching): New hook vector.
24735 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
24736 (mode_exit, modepriority_to_mode): Likewise.
24737 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
24738 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24739 * target.h: Include tm.h and hard-reg-set.h.
24740 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
24741 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
24742 * doc/tm.texi Regenerate.
24743 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
24744 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24745 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
24746 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
24747 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
24748 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24749 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
24750 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
24751 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
24752 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
24753 (ix86_emit_mode_set): Hookify.
24754 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
24756 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24757 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
24758 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
24759 (epiphany_mode_priority_to_mode): Remove declaration.
24760 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
24761 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
24762 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
24764 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
24765 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
24766 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
24768 2014-05-13 Jakub Jelinek <jakub@redhat.com>
24771 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
24772 is const0_rtx, return immediately. Don't test count == 0 when
24775 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24777 * Makefile.in: add shrink-wrap.o.
24778 * config/i386/i386.c: include "shrink-wrap.h"
24779 * function.c: Likewise.
24780 (requires_stack_frame_p, next_block_for_reg,
24781 move_insn_for_shrink_wrap, prepare_shrink_wrap,
24782 dup_block_and_redirect): Move to shrink-wrap.c
24783 (thread_prologue_and_epilogue_insns): Extract three code segments
24784 as functions in shrink-wrap.c
24785 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
24787 * shrink-wrap.c: New file.
24788 * shrink-wrap.h: New file.
24790 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
24792 * doc/extend.texi: Reflect current numbers of pragmas. Remove
24793 reference to Solaris.
24795 2014-05-12 Mike Stump <mikestump@comcast.net>
24798 * genattrtab.c (filename): Add.
24799 (convert_set_attr_alternative): Improve error message.
24800 (check_defs): Restore read_md_filename for error messages.
24801 (gen_insn): Save filename.
24803 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
24805 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
24806 -fno-local-ivars and -fivar-visibility.
24807 * c-family/c.opt: Make -Wshadow also implicitly enable
24810 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
24812 * doc/tm.texi: Remove reference to deleted macro.
24813 * doc/tm.texi.in: Likewise.
24815 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24818 * config/avr/avr.c (avr_out_store_psi): Use correct constant
24821 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
24824 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
24825 * config/arm/aout.h (License): Same.
24826 * config/arm/bpabi.h (License): Same.
24827 * config/arm/elf.h (License): Same.
24828 * config/arm/linux-elf.h (License): Same.
24829 * config/arm/linux-gas.h (License): Same.
24830 * config/arm/netbsd-elf.h (License): Same.
24831 * config/arm/uclinux-eabi.h (License): Same.
24832 * config/arm/uclinux-elf.h (License): Same.
24833 * config/arm/vxworks.h (License): Same.
24835 2014-05-11 Jakub Jelinek <jakub@redhat.com>
24837 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
24838 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
24839 number of operands to 3.
24840 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
24841 * tree-nested.c (convert_nonlocal_omp_clauses,
24842 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
24843 * gimplify.c (gimplify_scan_omp_clauses): Handle
24844 OMP_CLAUSE_LINEAR_STMT.
24845 * omp-low.c (lower_rec_input_clauses): Fix typo.
24846 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
24847 cast between Fortran boolean_type_node and C _Bool if
24850 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
24852 PR tree-optimization/61136
24853 * wide-int.h (multiple_of_p): Define a version that doesn't return
24855 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
24856 integer_zerop/const_binop pair.
24857 (multiple_of_p): Likewise, converting both operands to widest_int
24860 2014-05-09 Teresa Johnson <tejohnson@google.com>
24862 * cgraphunit.c (analyze_functions): Use correct dump file.
24864 2014-05-09 Florian Weimer <fweimer@redhat.com>
24866 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
24868 (stack_protect_return_slot_p): New function.
24869 (expand_used_vars): Call stack_protect_decl_p and
24870 stack_protect_return_slot_p for -fstack-protector-strong.
24872 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
24873 Andrew Haley <aph@redhat.com>
24874 Richard Sandiford <rdsandiford@googlemail.com>
24876 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
24879 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
24881 PR middle-end/61111
24882 * fold-const.c (fold_binary_loc): Changed width of mask.
24884 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
24886 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
24887 unsigned int initializers for regno_in, regno_out.
24889 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
24892 * config/avr/avr.md (cc): Add new attribute set_vzn.
24893 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
24894 Set cc insn attribute to set_vzn instead of set_zn for alternatives
24895 with INC, DEC or NEG.
24896 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
24897 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
24898 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
24900 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24903 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24905 * wide-int.cc (UTItype): Define.
24906 (UDWtype): Define for appropriate W_TYPE_SIZE.
24908 2014-05-09 Richard Biener <rguenther@suse.de>
24910 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
24911 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
24912 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
24913 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
24914 ssa_propagate): Adjust.
24916 2014-05-08 Jeff Law <law@redhat.com>
24918 PR tree-optimization/61009
24919 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
24920 tri-state rather than a boolean. When a block is too big to
24921 thread through, inform caller via negative return value.
24922 (thread_across_edge): If a block was too big for normal threading,
24923 then it's too big for a joiner too, so remove temporary equivalences
24924 and return immediately.
24926 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
24927 Matthias Klose <doko@ubuntu.com>
24930 * optc-gen.awk: Fix option handling for -Wunused-parameter.
24932 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
24935 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
24937 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
24940 * config/alpha/alpha.c: Include gimple-iterator.h.
24941 (alpha_gimple_fold_builtin): New function. Move
24942 ALPHA_BUILTIN_UMULH folding from ...
24943 (alpha_fold_builtin): ... here.
24944 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
24946 2014-05-08 Wei Mi <wmi@google.com>
24949 * config/i386/i386.c (ix86_compute_frame_layout): Update
24950 preferred_stack_boundary for call, expanded from tls descriptor.
24951 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
24952 to depend on SP register.
24953 (*tls_local_dynamic_base_32_gnu): Ditto.
24954 (*tls_local_dynamic_32_once): Ditto.
24955 (tls_global_dynamic_64_<mode>): Set
24956 ix86_tls_descriptor_calls_expanded_in_cfun.
24957 (tls_local_dynamic_base_64_<mode>): Ditto.
24958 (tls_global_dynamic_32): Set
24959 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
24960 to depend on SP register.
24961 (tls_local_dynamic_base_32): Ditto.
24963 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24965 * config/arm/arm_neon.h: Update comment.
24966 * config/arm/neon-docgen.ml: Delete.
24967 * config/arm/neon-gen.ml: Delete.
24968 * doc/arm-neon-intrinsics.texi: Update comment.
24970 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24972 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
24974 (vand, vorr, veor, vorn, vbic): Remove.
24975 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
24977 (neon_vsub_unspec): Likewise.
24978 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
24980 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24982 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
24983 (vadd_s16): Likewise.
24984 (vadd_s32): Likewise.
24985 (vadd_f32): Likewise.
24986 (vadd_u8): Likewise.
24987 (vadd_u16): Likewise.
24988 (vadd_u32): Likewise.
24989 (vadd_s64): Likewise.
24990 (vadd_u64): Likewise.
24991 (vaddq_s8): Likewise.
24992 (vaddq_s16): Likewise.
24993 (vaddq_s32): Likewise.
24994 (vaddq_s64): Likewise.
24995 (vaddq_f32): Likewise.
24996 (vaddq_u8): Likewise.
24997 (vaddq_u16): Likewise.
24998 (vaddq_u32): Likewise.
24999 (vaddq_u64): Likewise.
25000 (vmul_s8): Likewise.
25001 (vmul_s16): Likewise.
25002 (vmul_s32): Likewise.
25003 (vmul_f32): Likewise.
25004 (vmul_u8): Likewise.
25005 (vmul_u16): Likewise.
25006 (vmul_u32): Likewise.
25007 (vmul_p8): Likewise.
25008 (vmulq_s8): Likewise.
25009 (vmulq_s16): Likewise.
25010 (vmulq_s32): Likewise.
25011 (vmulq_f32): Likewise.
25012 (vmulq_u8): Likewise.
25013 (vmulq_u16): Likewise.
25014 (vmulq_u32): Likewise.
25015 (vsub_s8): Likewise.
25016 (vsub_s16): Likewise.
25017 (vsub_s32): Likewise.
25018 (vsub_f32): Likewise.
25019 (vsub_u8): Likewise.
25020 (vsub_u16): Likewise.
25021 (vsub_u32): Likewise.
25022 (vsub_s64): Likewise.
25023 (vsub_u64): Likewise.
25024 (vsubq_s8): Likewise.
25025 (vsubq_s16): Likewise.
25026 (vsubq_s32): Likewise.
25027 (vsubq_s64): Likewise.
25028 (vsubq_f32): Likewise.
25029 (vsubq_u8): Likewise.
25030 (vsubq_u16): Likewise.
25031 (vsubq_u32): Likewise.
25032 (vsubq_u64): Likewise.
25033 (vand_s8): Likewise.
25034 (vand_s16): Likewise.
25035 (vand_s32): Likewise.
25036 (vand_u8): Likewise.
25037 (vand_u16): Likewise.
25038 (vand_u32): Likewise.
25039 (vand_s64): Likewise.
25040 (vand_u64): Likewise.
25041 (vandq_s8): Likewise.
25042 (vandq_s16): Likewise.
25043 (vandq_s32): Likewise.
25044 (vandq_s64): Likewise.
25045 (vandq_u8): Likewise.
25046 (vandq_u16): Likewise.
25047 (vandq_u32): Likewise.
25048 (vandq_u64): Likewise.
25049 (vorr_s8): Likewise.
25050 (vorr_s16): Likewise.
25051 (vorr_s32): Likewise.
25052 (vorr_u8): Likewise.
25053 (vorr_u16): Likewise.
25054 (vorr_u32): Likewise.
25055 (vorr_s64): Likewise.
25056 (vorr_u64): Likewise.
25057 (vorrq_s8): Likewise.
25058 (vorrq_s16): Likewise.
25059 (vorrq_s32): Likewise.
25060 (vorrq_s64): Likewise.
25061 (vorrq_u8): Likewise.
25062 (vorrq_u16): Likewise.
25063 (vorrq_u32): Likewise.
25064 (vorrq_u64): Likewise.
25065 (veor_s8): Likewise.
25066 (veor_s16): Likewise.
25067 (veor_s32): Likewise.
25068 (veor_u8): Likewise.
25069 (veor_u16): Likewise.
25070 (veor_u32): Likewise.
25071 (veor_s64): Likewise.
25072 (veor_u64): Likewise.
25073 (veorq_s8): Likewise.
25074 (veorq_s16): Likewise.
25075 (veorq_s32): Likewise.
25076 (veorq_s64): Likewise.
25077 (veorq_u8): Likewise.
25078 (veorq_u16): Likewise.
25079 (veorq_u32): Likewise.
25080 (veorq_u64): Likewise.
25081 (vbic_s8): Likewise.
25082 (vbic_s16): Likewise.
25083 (vbic_s32): Likewise.
25084 (vbic_u8): Likewise.
25085 (vbic_u16): Likewise.
25086 (vbic_u32): Likewise.
25087 (vbic_s64): Likewise.
25088 (vbic_u64): Likewise.
25089 (vbicq_s8): Likewise.
25090 (vbicq_s16): Likewise.
25091 (vbicq_s32): Likewise.
25092 (vbicq_s64): Likewise.
25093 (vbicq_u8): Likewise.
25094 (vbicq_u16): Likewise.
25095 (vbicq_u32): Likewise.
25096 (vbicq_u64): Likewise.
25097 (vorn_s8): Likewise.
25098 (vorn_s16): Likewise.
25099 (vorn_s32): Likewise.
25100 (vorn_u8): Likewise.
25101 (vorn_u16): Likewise.
25102 (vorn_u32): Likewise.
25103 (vorn_s64): Likewise.
25104 (vorn_u64): Likewise.
25105 (vornq_s8): Likewise.
25106 (vornq_s16): Likewise.
25107 (vornq_s32): Likewise.
25108 (vornq_s64): Likewise.
25109 (vornq_u8): Likewise.
25110 (vornq_u16): Likewise.
25111 (vornq_u32): Likewise.
25112 (vornq_u64): Likewise.
25114 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25116 * wide-int.cc (UTItype): Define.
25117 (UDWtype): Define for appropriate W_TYPE_SIZE.
25119 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25121 PR tree-optimization/59100
25122 * tree-ssa-phiopt.c: Include tree-inline.h.
25123 (neutral_element_p, absorbing_element_p): New functions.
25124 (value_replacement): Handle conditional binary operations with a
25125 neutral or absorbing element.
25127 2014-05-08 Richard Biener <rguenther@suse.de>
25129 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25130 folding the expression.
25131 (valueize_expr): Remove.
25132 (visit_reference_op_load): Do not valueize the result of
25134 (simplify_binary_expression): Likewise.
25135 (simplify_unary_expression): Likewise.
25137 2014-05-08 Richard Biener <rguenther@suse.de>
25139 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25140 looking at TYPE_ARG_TYPES.
25142 2014-05-08 Richard Biener <rguenther@suse.de>
25144 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25145 pointer propagation special-case.
25147 2014-05-08 Bin Cheng <bin.cheng@arm.com>
25149 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25150 core part of address expressions.
25152 2014-05-08 Alan Modra <amodra@gmail.com>
25155 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25156 loads and stores when -mno-strict-align at any alignment.
25157 (expand_block_clear): Similarly. Also correct calculation of
25160 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
25162 PR middle-end/39246
25163 * tree-complex.c (expand_complex_move): Keep line info when expanding
25165 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25166 of complex expression. Use new argument to display correct location
25167 for values coming from phi statement.
25168 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25169 (warn_uninitialized_phi): Pass location of phi argument to
25171 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25172 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25174 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25176 * config/rs6000/predicates.md (indexed_address_mem): New.
25177 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25178 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25179 fpstore_ux, fpstore_u.
25180 (sign_extend, indexed, update): New.
25181 (cell_micro): Adjust.
25182 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25183 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25184 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25185 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25186 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25187 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25188 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25189 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25190 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25191 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25192 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25193 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25194 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25195 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25196 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25198 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25199 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25200 *vsx_extract_<mode>_store): Adjust.
25201 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25202 is_cracked_insn, insn_must_be_first_in_group,
25203 insn_must_be_last_in_group): Adjust.
25205 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25207 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25208 ppc440-fpstore): Adjust.
25209 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25210 ppc476-fpstore): Adjust.
25211 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25212 ppc601-fpstore): Adjust.
25213 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25215 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25217 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25218 ppc7450-fpstore): Adjust.
25219 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25220 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25221 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25223 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25224 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25225 cell-fpstore, cell-fpstore-update): Adjust.
25226 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25227 ppce300c3_store, ppce300c3_fpstore): Adjust.
25228 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25229 e500mc_fpstore): Adjust.
25230 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25231 e500mc64_store, e500mc64_fpstore): Adjust.
25232 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25233 e5500_fpstore): Adjust.
25234 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25235 e6500_fpstore): Adjust.
25236 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25238 * config/rs6000/power4.md (power4-load, power4-load-ext,
25239 power4-load-ext-update, power4-load-ext-update-indexed,
25240 power4-load-update-indexed, power4-load-update, power4-fpload,
25241 power4-fpload-update, power4-store, power4-store-update,
25242 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25244 * config/rs6000/power5.md (power5-load, power5-load-ext,
25245 power5-load-ext-update, power5-load-ext-update-indexed,
25246 power5-load-update-indexed, power5-load-update, power5-fpload,
25247 power5-fpload-update, power5-store, power5-store-update,
25248 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25250 * config/rs6000/power6.md (power6-load, power6-load-ext,
25251 power6-load-update, power6-load-update-indexed,
25252 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25253 power6-fpload-update, power6-store, power6-store-update,
25254 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25256 * config/rs6000/power7.md (power7-load, power7-load-ext,
25257 power7-load-update, power7-load-update-indexed,
25258 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25259 power7-fpload-update, power7-store, power7-store-update,
25260 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25262 * config/rs6000/power8.md (power8-load, power8-load-update,
25263 power8-load-ext, power8-load-ext-update, power8-fpload,
25264 power8-fpload-update, power8-store, power8-store-update-indexed,
25265 power8-fpstore, power8-fpstore-update): Adjust.
25266 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25268 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25269 titan_lsu_store, titan_lsu_fpstore): Adjust.
25270 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25272 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25275 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25276 unrolled byte insns. Emit address increments after move insns.
25278 2014-05-07 David Malcolm <dmalcolm@redhat.com>
25280 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25281 const_gimple, rather than a gimple.
25282 (gimple_call_builtin_p): Likewise, for the three variants.
25284 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25285 (gimple_call_builtin_p): Likewise, for the three variants.
25287 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25289 PR tree-optimization/61095
25290 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25292 2014-05-07 Richard Biener <rguenther@suse.de>
25294 PR tree-optimization/61034
25295 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25296 (maybe_skip_until): Use translate to take into account
25297 lattices when trying to do disambiguations.
25298 (get_continuation_for_phi_1): Likewise.
25299 (get_continuation_for_phi): Adjust for added translate arguments.
25300 (walk_non_aliased_vuses): Likewise.
25301 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25302 (walk_non_aliased_vuses): Likewise.
25303 (call_may_clobber_ref_p_1): Declare.
25304 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25305 calls. Stop early if we are only supposed to disambiguate.
25306 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25308 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
25310 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25311 Emit an error when the function has arguments.
25313 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25315 * cfgloop.h (unswitch_loops): Remove.
25316 * doc/passes.texi: Remove references to loop-unswitch.c
25317 * timevar.def (TV_LOOP_UNSWITCH): Remove.
25319 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
25321 * tree-vect-data-refs.c (vect_grouped_load_supported): New
25322 check for loads group of length 3.
25323 (vect_permute_load_chain): New permutations for loads group of
25325 * tree-vect-stmts.c (vect_model_load_cost): Change cost
25326 of vec_perm_shuffle for the new permutations.
25328 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
25330 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25331 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25332 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25333 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25334 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25335 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25336 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25337 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25339 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25341 * loop-unswitch.c: Delete.
25343 2014-05-07 Richard Biener <rguenther@suse.de>
25345 * config.gcc: Always set need_64bit_hwint to yes.
25347 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
25349 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25350 of using optimize_size.
25352 2014-05-06 Mike Stump <mikestump@comcast.net>
25354 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25356 2014-05-06 Joseph Myers <joseph@codesourcery.com>
25358 * config/i386/sse.md (*mov<mode>_internal)
25359 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25360 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25361 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25362 (*<code><mode>3, *andnot<mode>3<mask_name>)
25363 (<mask_codefor><code><mode>3<mask_name>): Only consider
25364 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25366 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25369 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
25371 * lra-constraints.c (valid_address_p): Move earlier in file.
25372 Add a constraint argument to the address_info version.
25373 (satisfies_memory_constraint_p): New function.
25374 (satisfies_address_constraint_p): Likewise.
25375 (process_alt_operands, curr_insn_transform): Use them.
25376 (process_address): Pass the constraint to valid_address_p when
25377 checking address operands.
25379 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
25381 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25382 to their respective blocks. Fix inadvertent use of "node".
25384 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25386 * emit-rtl.c (init_derived_machine_modes): New functionm, split
25388 (init_emit_once): ...here.
25389 * rtl.h (init_derived_machine_modes): Declare.
25390 * toplev.c (do_compile): Call it even if no_backend.
25392 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
25393 Mike Stump <mikestump@comcast.net>
25394 Richard Sandiford <rdsandiford@googlemail.com>
25395 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25397 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25398 (rtx_equal_for_memref_p): Update comment.
25399 (adjust_offset_for_component_ref): Use wide-int interfaces.
25400 * builtins.c (get_object_alignment_2): Likewise.
25401 (c_readstr): Likewise.
25402 (target_char_cast): Add comment.
25403 (determine_block_size): Use wide-int interfaces.
25404 (expand_builtin_signbit): Likewise.
25405 (fold_builtin_int_roundingfn): Likewise.
25406 (fold_builtin_bitop): Likewise.
25407 (fold_builtin_bswap): Likewise.
25408 (fold_builtin_logarithm): Use signop.
25409 (fold_builtin_pow): Likewise.
25410 (fold_builtin_memory_op): Use wide-int interfaces.
25411 (fold_builtin_object_size): Likewise.
25412 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25413 nb_iterations_estimate.
25414 (record_niter_bound): Use wide-int interfaces.
25415 (get_estimated_loop_iterations_int): Likewise.
25416 (get_estimated_loop_iterations): Likewise.
25417 (get_max_loop_iterations): Likewise.
25418 * cfgloop.h: Include wide-int.h.
25419 (struct nb_iter_bound): Change bound to widest_int.
25420 (struct loop): Change nb_iterations_upper_bound and
25421 nb_iterations_estimate to widest_int.
25422 (record_niter_bound): Switch to use widest_int.
25423 (get_estimated_loop_iterations): Likewise.
25424 (get_max_loop_iterations): Likewise.
25425 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25426 update for wide-int.
25427 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25428 * combine.c (try_combine): Likewise.
25429 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25430 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25432 (aarch64_float_const_representable_p): Likewise.
25433 * config/arc/arc.c: Include wide-int.h.
25434 (arc_can_use_doloop_p): Use wide-int interfaces.
25435 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25436 (vfp3_const_double_index): Likewise.
25437 * config/avr/avr.c (avr_out_round): Likewise.
25438 (avr_fold_builtin): Likewise.
25439 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25440 (bfin_can_use_doloop_p): Likewise.
25441 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
25442 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
25443 * config/i386/i386.c: Include wide-int.h.
25444 (ix86_data_alignment): Use wide-int interfaces.
25445 (ix86_local_alignment): Likewise.
25446 (ix86_emit_swsqrtsf): Update real_from_integer.
25447 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
25448 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
25449 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
25450 (zero_constant): Likewise.
25451 (input_operand): Likewise.
25452 (splat_input_operand): Likewise.
25453 (non_logical_cint_operand): Change const_double to const_wide_int.
25454 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
25455 (easy_altivec_constant): Remove comment.
25456 (paired_expand_vector_init): Use CONSTANT_P.
25457 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
25458 (rs6000_emit_move): Update checks.
25459 (rs6000_aggregate_candidate): Use wide-int interfaces.
25460 (rs6000_expand_ternop_builtin): Likewise.
25461 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
25462 (rs6000_assemble_integer): Likewise.
25463 (rs6000_hash_constant): Likewise.
25464 (output_toc): Likewise.
25465 (rs6000_rtx_costs): Likewise.
25466 (rs6000_emit_swrsqrt); Update call to real_from_integer.
25467 * config/rs6000/rs6000-c.c: Include wide-int.h.
25468 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
25469 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
25470 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
25471 Handle CONST_WIDE_INT.
25472 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
25473 Use tree_fits_uhwi_p.
25474 * config/sparc/sparc.c: Include wide-int.h.
25475 (sparc_fold_builtin): Use wide-int interfaces.
25476 * config/vax/vax.c: Include wide-int.h.
25477 (vax_float_literal): Use real_from_integer.
25478 * coretypes.h (struct hwivec_def): New.
25480 (const_hwivec): New.
25481 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
25482 (equiv_constant): Handle CONST_WIDE_INT.
25483 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
25484 (cselib_hash_rtx): Handle CONST_WIDE_INT.
25485 * dbxout.c (stabstr_U): Use wide-int interfaces.
25486 (dbxout_type): Update to use cst_fits_shwi_p.
25487 * defaults.h (LOG2_BITS_PER_UNIT): Define.
25488 (TARGET_SUPPORTS_WIDE_INT): Add default.
25489 * dfp.c: Include wide-int.h.
25490 (decimal_real_to_integer2): Use wide-int interfaces and rename to
25491 decimal_real_to_integer.
25492 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
25493 decimal_real_to_integer.
25494 * doc/generic.texi (Constant expressions): Update for wide_int.
25495 * doc/rtl.texi (const_double): Likewise.
25496 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
25497 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
25498 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
25499 (REAL_VALUE_FROM_INT): Remove.
25500 (TARGET_SUPPORTS_WIDE_INT): New.
25501 * doc/tm.texi: Regenerate.
25502 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
25503 * double-int.h: Include wide-int.h.
25504 (struct wi::int_traits): New.
25505 * dwarf2out.c (get_full_len): New.
25506 (dw_val_equal_p): Add case dw_val_class_wide_int.
25507 (size_of_loc_descr): Likewise.
25508 (output_loc_operands): Likewise.
25509 (insert_double): Remove.
25510 (insert_wide_int): New.
25511 (add_AT_wide): New.
25512 (print_die): Add case dw_val_class_wide_int.
25513 (attr_checksum): Likewise.
25514 (attr_checksum_ordered): Likewise.
25515 (same_dw_val_p): Likewise.
25516 (size_of_die): Likewise.
25517 (value_format): Likewise.
25518 (output_die): Likewise.
25519 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
25521 (clz_loc_descriptor): Use wide-int interfaces.
25522 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
25523 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
25524 (round_up_to_align): Use wide-int interfaces.
25525 (field_byte_offset): Likewise.
25526 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
25527 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
25528 CONST_DOUBLE handling. Use wide-int interfaces.
25529 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
25530 (gen_enumeration_type_die): Use add_AT_wide.
25531 (hash_loc_operands): Add case dw_val_class_wide_int.
25532 (compare_loc_operands): Likewise.
25533 * dwarf2out.h: Include wide-int.h.
25534 (wide_int_ptr): New.
25535 (enum dw_val_class): Add dw_val_class_wide_int.
25536 (struct dw_val_struct): Add val_wide.
25537 * emit-rtl.c (const_wide_int_htab): New.
25538 (const_wide_int_htab_hash): New.
25539 (const_wide_int_htab_eq): New.
25540 (lookup_const_wide_int): New.
25541 (const_double_htab_hash): Use wide-int interfaces.
25542 (const_double_htab_eq): Likewise.
25543 (rtx_to_double_int): Conditionally compile for wide-int.
25544 (immed_double_int_const): Rename to immed_wide_int_const and
25545 update for wide-int.
25546 (immed_double_const): Conditionally compile for wide-int.
25547 (init_emit_once): Use wide-int interfaces.
25548 * explow.c (plus_constant): Likewise.
25549 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
25550 (lshift_value): Use wide-int interfaces.
25551 (expand_mult): Likewise.
25552 (choose_multiplier): Likewise.
25553 (expand_smod_pow2): Likewise.
25554 (make_tree): Likewise.
25555 * expr.c (convert_modes): Consolidate handling of constants.
25556 Use wide-int interfaces.
25557 (emit_group_load_1): Add note.
25558 (store_expr): Update comment.
25559 (get_inner_reference): Use wide-int interfaces.
25560 (expand_constructor): Update comment.
25561 (expand_expr_real_2): Use wide-int interfaces.
25562 (expand_expr_real_1): Likewise.
25563 (reduce_to_bit_field_precision): Likewise.
25564 (const_vector_from_tree): Likewise.
25565 * final.c: Include wide-int-print.h.
25566 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
25567 * fixed-value.c: Include wide-int.h.
25568 (fixed_from_string): Use wide-int interfaces.
25569 (fixed_to_decimal): Likewise.
25570 (fixed_convert_from_real): Likewise.
25571 (real_convert_from_fixed): Likewise.
25572 * fold-const.h (mem_ref_offset): Return an offset_int.
25573 (div_if_zero_remainder): Remove code parameter.
25574 * fold-const.c (div_if_zero_remainder): Remove code parameter.
25575 Use wide-int interfaces.
25576 (may_negate_without_overflow_p): Use wide-int interfaces.
25577 (negate_expr_p): Likewise.
25578 (fold_negate_expr): Likewise.
25579 (int_const_binop_1): Likewise.
25580 (const_binop): Likewise.
25581 (fold_convert_const_int_from_int): Likewise.
25582 (fold_convert_const_int_from_real): Likewise.
25583 (fold_convert_const_int_from_fixed): Likewise.
25584 (fold_convert_const_fixed_from_int): Likewise.
25585 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
25586 (sign_bit_p): Use wide-int interfaces.
25587 (make_range_step): Likewise.
25588 (build_range_check): Likewise. Pass an integer of the correct type
25589 instead of using integer_one_node.
25590 (range_predecessor): Pass an integer of the correct type instead
25591 of using integer_one_node.
25592 (range_successor): Likewise.
25593 (merge_ranges): Likewise.
25594 (unextend): Use wide-int interfaces.
25595 (extract_muldiv_1): Likewise.
25596 (fold_div_compare): Likewise.
25597 (fold_single_bit_test): Likewise.
25598 (fold_sign_changed_comparison): Likewise.
25599 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
25600 (fold_plusminus_mult_expr): Use wide-int interfaces.
25601 (native_encode_int): Likewise.
25602 (native_interpret_int): Likewise.
25603 (fold_unary_loc): Likewise.
25604 (pointer_may_wrap_p): Likewise.
25605 (size_low_cst): Likewise.
25606 (mask_with_tz): Likewise.
25607 (fold_binary_loc): Likewise.
25608 (fold_ternary_loc): Likewise.
25609 (multiple_of_p): Likewise.
25610 (tree_call_nonnegative_warnv_p): Update calls to
25611 tree_int_cst_min_precision and real_from_integer.
25612 (fold_negate_const): Use wide-int interfaces.
25613 (fold_abs_const): Likewise.
25614 (fold_relational_const): Use tree_int_cst_lt.
25615 (round_up_loc): Use wide-int interfaces.
25616 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
25617 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
25618 * gengtype.c: Remove include of double-int.h.
25619 (do_typedef): Use wide-int interfaces.
25620 (open_base_files): Add wide-int.h.
25621 (main): Add offset_int and widest_int typedefs.
25622 * gengtype-lex.l: Handle "^".
25623 (CXX_KEYWORD): Add "static".
25624 * gengtype-parse.c (require3): New.
25625 (require_template_declaration): Handle constant template arguments
25626 and nested templates.
25627 * gengtype-state.c: Don't include "double-int.h".
25628 * genpreds.c (write_one_predicate_function): Update comment.
25629 (write_tm_constrs_h): Add check for hval and lval use in
25631 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
25632 (add_to_sequence): Likewise.
25633 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
25634 and const_double_operand.
25635 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
25637 * gimple-fold.c (get_base_constructor): Likewise.
25638 (fold_array_ctor_reference): Likewise.
25639 (fold_nonarray_ctor_reference): Likewise.
25640 (fold_const_aggregate_ref_1): Likewise.
25641 (gimple_val_nonnegative_real_p): Likewise.
25642 (gimple_fold_indirect_ref): Likewise.
25643 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
25644 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
25645 (struct slsr_cand_d): Change index to be widest_int.
25646 (struct incr_info_d): Change incr to be widest_int.
25647 (alloc_cand_and_find_basis): Use wide-int interfaces.
25648 (slsr_process_phi): Likewise.
25649 (backtrace_base_for_ref): Likewise. Return a widest_int.
25650 (restructure_reference): Take a widest_int instead of a double_int.
25651 (slsr_process_ref): Use wide-int interfaces.
25652 (create_mul_ssa_cand): Likewise.
25653 (create_mul_imm_cand): Likewise.
25654 (create_add_ssa_cand): Likewise.
25655 (create_add_imm_cand): Take a widest_int instead of a double_int.
25656 (slsr_process_add): Use wide-int interfaces.
25657 (slsr_process_cast): Likewise.
25658 (slsr_process_copy): Likewise.
25659 (dump_candidate): Likewise.
25660 (dump_incr_vec): Likewise.
25661 (replace_ref): Likewise.
25662 (cand_increment): Likewise. Return a widest_int.
25663 (cand_abs_increment): Likewise.
25664 (replace_mult_candidate): Take a widest_int instead of a double_int.
25665 (replace_unconditional_candidate): Use wide-int interfaces.
25666 (incr_vec_index): Take a widest_int instead of a double_int.
25667 (create_add_on_incoming_edge): Likewise.
25668 (create_phi_basis): Use wide-int interfaces.
25669 (replace_conditional_candidate): Likewise.
25670 (record_increment): Take a widest_int instead of a double_int.
25671 (record_phi_increments): Use wide-int interfaces.
25672 (phi_incr_cost): Take a widest_int instead of a double_int.
25673 (lowest_cost_path): Likewise.
25674 (total_savings): Likewise.
25675 (analyze_increments): Use wide-int interfaces.
25676 (ncd_with_phi): Take a widest_int instead of a double_int.
25677 (ncd_of_cand_and_phis): Likewise.
25678 (nearest_common_dominator_for_cands): Likewise.
25679 (insert_initializers): Use wide-int interfaces.
25680 (all_phi_incrs_profitable): Likewise.
25681 (replace_one_candidate): Likewise.
25682 (replace_profitable_candidates): Likewise.
25683 * godump.c: Include wide-int-print.h.
25684 (go_output_typedef): Use wide-int interfaces.
25685 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
25686 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
25687 (build_loop_iteration_domains): Likewise.
25688 * hooks.h: Include wide-int.h rather than double-int.h.
25689 (hook_bool_dint_dint_uint_bool_true): Delete.
25690 (hook_bool_wint_wint_uint_bool_true): Declare.
25691 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
25692 (hook_bool_wint_wint_uint_bool_true): New.
25693 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
25695 (ubsan_expand_si_overflow_mul_check): Likewise.
25696 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
25697 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
25698 (get_ancestor_addr_info): Likewise.
25699 (ipa_modify_call_arguments): Likewise.
25700 * loop-doloop.c (doloop_modify): Likewise.
25701 (doloop_optimize): Likewise.
25702 * loop-iv.c (iv_number_of_iterations): Likewise.
25703 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
25704 (unroll_loop_constant_iterations): Likewise.
25705 (decide_unroll_runtime_iterations): Likewise.
25706 (unroll_loop_runtime_iterations): Likewise.
25707 (decide_peel_simple): Likewise.
25708 (decide_unroll_stupid): Likewise.
25709 * lto-streamer-in.c (streamer_read_wi): Add.
25710 (input_cfg): Use wide-int interfaces.
25711 (lto_input_tree_1): Likewise.
25712 * lto-streamer-out.c (streamer_write_wi): Add.
25713 (hash_tree): Use wide-int interfaces.
25714 (output_cfg): Likewise.
25715 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
25716 (GTFILES): Add wide-int.h and signop.h.
25717 (TAGS): Look for .cc files too.
25718 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
25719 * optabs.c (expand_subword_shift): Likewise.
25720 (expand_doubleword_shift): Likewise.
25721 (expand_absneg_bit): Likewise.
25722 (expand_copysign_absneg): Likewise.
25723 (expand_copysign_bit): Likewise.
25724 * postreload.c (reload_cse_simplify_set): Likewise.
25725 * predict.c (predict_iv_comparison): Likewise.
25726 * pretty-print.h: Include wide-int-print.h.
25728 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
25729 * print-tree.c: Include wide-int-print.h.
25730 (print_node_brief): Use wide-int interfaces.
25731 (print_node): Likewise.
25732 * read-rtl.c (validate_const_wide_int): New.
25733 (read_rtx_code): Add CONST_WIDE_INT case.
25734 * real.c: Include wide-int.h.
25735 (real_to_integer2): Delete.
25736 (real_to_integer): New function, returning a wide_int.
25737 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
25738 (ten_to_ptwo): Update call to real_from_integer.
25739 (real_digit): Likewise.
25740 * real.h: Include signop.h, wide-int.h and insn-modes.h.
25741 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
25742 (REAL_VALUE_TO_INT): Delete.
25743 (real_to_integer): Declare a wide-int form.
25744 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
25745 * recog.c (const_int_operand): Improve comment.
25746 (const_scalar_int_operand): New.
25747 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
25748 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
25749 (split_double): Likewise.
25750 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
25751 (rtx_size): Likewise.
25752 (rtx_alloc_stat_v): New.
25753 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
25754 (cwi_output_hex): New.
25755 (iterative_hash_rtx): Handle CONST_WIDE_INT.
25756 (cwi_check_failed_bounds): New.
25757 * rtl.def (CONST_WIDE_INT): New.
25758 * rtl.h: Include <utility> and wide-int.h.
25759 (struct hwivec_def): New.
25760 (CWI_GET_NUM_ELEM): New.
25761 (CWI_PUT_NUM_ELEM): New.
25762 (struct rtx_def): Add num_elem and hwiv.
25763 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
25764 (CASE_CONST_UNIQUE): Likewise.
25765 (CASE_CONST_ANY): Likewise.
25766 (CONST_SCALAR_INT_P): Likewise.
25767 (CONST_WIDE_INT_P): New.
25769 (HWIVEC_CHECK): New.
25770 (cwi_check_failed_bounds): New.
25772 (HWIVEC_CHECK): New.
25773 (CONST_WIDE_INT_VEC) New.
25774 (CONST_WIDE_INT_NUNITS) New.
25775 (CONST_WIDE_INT_ELT) New.
25776 (rtx_mode_t): New type.
25777 (wi::int_traits <rtx_mode_t>): New.
25779 (wi::min_value): New.
25780 (wi::max_value): New.
25782 (const_wide_int_alloc): New.
25783 (immed_wide_int_const): New.
25784 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
25785 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
25786 * signop.h: New file.
25787 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
25788 (simplify_const_unary_operation): Use wide-int interfaces.
25789 (simplify_binary_operation_1): Likewise.
25790 (simplify_const_binary_operation): Likewise.
25791 (simplify_const_relational_operation): Likewise.
25792 (simplify_immed_subreg): Likewise.
25793 * stmt.c (expand_case): Likewise.
25794 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
25795 signop rather than a bool.
25796 * stor-layout.c (layout_type): Use wide-int interfaces.
25797 (initialize_sizetypes): Update calls to
25798 set_min_and_max_values_for_integral_type.
25799 (set_min_and_max_values_for_integral_type): Take a signop rather
25800 than a bool. Use wide-int interfaces.
25801 (fixup_signed_type): Update accordingly. Remove
25802 HOST_BITS_PER_DOUBLE_INT limit.
25803 (fixup_unsigned_type): Likewise.
25804 * system.h (STATIC_CONSTANT_P): New.
25805 (STATIC_ASSERT): New.
25806 * target.def (can_use_doloop_p): Take widest_ints rather than
25808 * target.h: Include wide-int.h rather than double-int.h.
25809 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
25811 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
25812 rather than INT_CST_LT_UNSIGNED.
25813 (can_use_doloop_if_innermost): Take widest_ints rather than
25815 * tree-affine.c: Include wide-int-print.h.
25816 (double_int_ext_for_comb): Delete.
25817 (wide_int_ext_for_comb): New.
25818 (aff_combination_zero): Use wide-int interfaces.
25819 (aff_combination_const): Take a widest_int instead of a double_int.
25820 (aff_combination_elt): Use wide-int interfaces.
25821 (aff_combination_scale): Take a widest_int instead of a double_int.
25822 (aff_combination_add_elt): Likewise.
25823 (aff_combination_add_cst): Likewise.
25824 (aff_combination_add): Use wide-int interfaces.
25825 (aff_combination_convert): Likewise.
25826 (tree_to_aff_combination): Likewise.
25827 (add_elt_to_tree): Take a widest_int instead of a double_int.
25828 (aff_combination_to_tree): Use wide-int interfaces.
25829 (aff_combination_remove_elt): Likewise.
25830 (aff_combination_add_product): Take a widest_int instead of
25832 (aff_combination_mult): Use wide-int interfaces.
25833 (aff_combination_expand): Likewise.
25834 (double_int_constant_multiple_p): Delete.
25835 (wide_int_constant_multiple_p): New.
25836 (aff_combination_constant_multiple_p): Take a widest_int pointer
25837 instead of a double_int pointer.
25838 (print_aff): Use wide-int interfaces.
25839 (get_inner_reference_aff): Take a widest_int pointer
25840 instead of a double_int pointer.
25841 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
25842 * tree-affine.h: Include wide-int.h.
25843 (struct aff_comb_elt): Change type of coef to widest_int.
25844 (struct affine_tree_combination): Change type of offset to widest_int.
25845 (double_int_ext_for_comb): Delete.
25846 (wide_int_ext_for_comb): New.
25847 (aff_combination_const): Use widest_int instead of double_int.
25848 (aff_combination_scale): Likewise.
25849 (aff_combination_add_elt): Likewise.
25850 (aff_combination_constant_multiple_p): Likewise.
25851 (get_inner_reference_aff): Likewise.
25852 (aff_comb_cannot_overlap_p): Likewise.
25853 (aff_combination_zero_p): Use wide-int interfaces.
25854 * tree.c: Include tree.h.
25855 (init_ttree): Use make_int_cst.
25856 (tree_code_size): Removed code for INTEGER_CST case.
25857 (tree_size): Add INTEGER_CST case.
25858 (make_node_stat): Update comment.
25859 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
25860 (build_int_cst_type): Use wide-int interfaces.
25861 (double_int_to_tree): Likewise.
25862 (double_int_fits_to_tree_p): Delete.
25863 (force_fit_type_double): Delete.
25864 (force_fit_type): New.
25865 (int_cst_hash_hash): Use wide-int interfaces.
25866 (int_cst_hash_eq): Likewise.
25867 (build_int_cst_wide): Delete.
25868 (wide_int_to_tree): New.
25869 (cache_integer_cst): Use wide-int interfaces.
25870 (build_low_bits_mask): Likewise.
25871 (cst_and_fits_in_hwi): Likewise.
25872 (real_value_from_int_cst): Likewise.
25873 (make_int_cst_stat): New.
25874 (integer_zerop): Use wide_int interfaces.
25875 (integer_onep): Likewise.
25876 (integer_all_onesp): Likewise.
25877 (integer_pow2p): Likewise.
25878 (integer_nonzerop): Likewise.
25879 (tree_log2): Likewise.
25880 (tree_floor_log2): Likewise.
25881 (tree_ctz): Likewise.
25882 (int_size_in_bytes): Likewise.
25883 (mem_ref_offset): Return an offset_int rather than a double_int.
25884 (build_type_attribute_qual_variant): Use wide_int interfaces.
25885 (type_hash_eq): Likewise
25886 (tree_int_cst_equal): Likewise.
25887 (tree_int_cst_lt): Delete.
25888 (tree_int_cst_compare): Likewise.
25889 (tree_fits_shwi_p): Use wide_int interfaces.
25890 (tree_fits_uhwi_p): Likewise.
25891 (tree_int_cst_sign_bit): Likewise.
25892 (tree_int_cst_sgn): Likewise.
25893 (tree_int_cst_min_precision): Take a signop rather than a bool.
25894 (simple_cst_equal): Use wide_int interfaces.
25895 (compare_tree_int): Likewise.
25896 (iterative_hash_expr): Likewise.
25897 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
25899 (get_type_static_bounds): Use wide_int interfaces.
25900 (tree_int_cst_elt_check_failed): New.
25901 (build_common_tree_nodes): Reordered to set prec before filling in
25903 (int_cst_value): Check cst_and_fits_in_hwi.
25904 (widest_int_cst_value): Use wide_int interfaces.
25905 (upper_bound_in_type): Likewise.
25906 (lower_bound_in_type): Likewise.
25907 (num_ending_zeros): Likewise.
25908 (drop_tree_overflow): Likewise.
25909 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
25910 (gen_conditions_for_pow_cst_base): Likewise.
25911 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
25912 (group_case_labels_stmt): Use wide-int interfaces.
25913 (verify_gimple_assign_binary): Likewise.
25914 (print_loop): Likewise.
25915 * tree-chrec.c (tree_fold_binomial): Likewise.
25916 * tree-core.h (struct tree_base): Add int_length.
25917 (struct tree_int_cst): Change rep of value.
25918 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
25919 (dr_may_alias_p): Likewise.
25920 (max_stmt_executions_tree): Likewise.
25921 * tree.def (INTEGER_CST): Update comment.
25922 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
25923 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
25924 * tree-dump.c: Include wide-int.h and wide-int-print.h.
25925 (dequeue_and_dump): Use wide-int interfaces.
25926 * tree.h: Include wide-int.h.
25927 (NULL_TREE): Moved to earlier loc in file.
25928 (TREE_INT_CST_ELT_CHECK): New.
25929 (tree_int_cst_elt_check_failed): New.
25931 (TREE_INT_CST): Delete.
25932 (TREE_INT_CST_LOW): Use wide-int interfaces.
25933 (TREE_INT_CST_HIGH): Delete.
25934 (TREE_INT_CST_NUNITS): New.
25935 (TREE_INT_CST_EXT_NUNITS): Likewise.
25936 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
25937 (TREE_INT_CST_ELT): Likewise.
25938 (INT_CST_LT): Delete.
25939 (tree_int_cst_elt_check): New (two forms).
25940 (type_code_size): Update comment.
25941 (make_int_cst_stat, make_int_cst): New.
25942 (tree_to_double_int): Delete.
25943 (double_int_fits_to_tree_p): Delete.
25944 (force_fit_type_double): Delete.
25945 (build_int_cstu): Replace with out-of-line function.
25946 (build_int_cst_wide): Delete.
25947 (tree_int_cst_lt): Define inline.
25948 (tree_int_cst_le): New.
25949 (tree_int_cst_compare): Define inline.
25950 (tree_int_cst_min_precision): Take a signop rather than a bool.
25951 (wi::int_traits <const_tree>): New.
25952 (wi::int_traits <tree>): New.
25953 (wi::extended_tree): New.
25954 (wi::int_traits <wi::extended_tree>): New.
25955 (wi::to_widest): New.
25956 (wi::to_offset): New.
25957 (wi::fits_to_tree_p): New.
25958 (wi::min_value): New.
25959 (wi::max_value): New.
25960 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
25961 (copy_tree_body_r): Likewise.
25962 * tree-object-size.c (compute_object_offset): Likewise.
25963 (addr_object_size): Likewise.
25964 * tree-predcom.c: Include wide-int-print.h.
25965 (struct dref_d): Change type of offset to widest_int.
25966 (dump_dref): Call wide-int printer.
25967 (aff_combination_dr_offset): Use wide-int interfaces.
25968 (determine_offset): Take a widest_int pointer rather than a
25969 double_int pointer.
25970 (split_data_refs_to_components): Use wide-int interfaces.
25971 (suitable_component_p): Likewise.
25972 (order_drefs): Likewise.
25973 (add_ref_to_chain): Likewise.
25974 (valid_initializer_p): Likewise.
25975 (determine_roots_comp): Likewise.
25976 * tree-pretty-print.c: Include wide-int-print.h.
25977 (dump_generic_node): Use wide-int interfaces.
25978 * tree-sra.c (sra_ipa_modify_expr): Likewise.
25979 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
25980 (move_fixed_address_to_symbol): Likewise.
25981 (move_hint_to_base): Likewise.
25982 (move_pointer_to_base): Likewise.
25983 (move_variant_to_index): Likewise.
25984 (most_expensive_mult_to_index): Likewise.
25985 (addr_to_parts): Likewise.
25986 (copy_ref_info): Likewise.
25987 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25988 (indirect_refs_may_alias_p): Likewise.
25989 (stmt_kills_ref_p_1): Likewise.
25990 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
25991 * tree-ssa-ccp.c: Update comment at top of file. Include
25993 (struct prop_value_d): Change type of mask to widest_int.
25994 (extend_mask): New function.
25995 (dump_lattice_value): Use wide-int interfaces.
25996 (get_default_value): Likewise.
25997 (set_constant_value): Likewise.
25998 (set_value_varying): Likewise.
25999 (valid_lattice_transition): Likewise.
26000 (set_lattice_value): Likewise.
26001 (value_to_double_int): Delete.
26002 (value_to_wide_int): New.
26003 (get_value_from_alignment): Use wide-int interfaces.
26004 (get_value_for_expr): Likewise.
26005 (do_dbg_cnt): Likewise.
26006 (ccp_finalize): Likewise.
26007 (ccp_lattice_meet): Likewise.
26008 (bit_value_unop_1): Use widest_ints rather than double_ints.
26009 (bit_value_binop_1): Likewise.
26010 (bit_value_unop): Use wide-int interfaces.
26011 (bit_value_binop): Likewise.
26012 (bit_value_assume_aligned): Likewise.
26013 (evaluate_stmt): Likewise.
26014 (ccp_fold_stmt): Likewise.
26015 (visit_cond_stmt): Likewise.
26016 (ccp_visit_stmt): Likewise.
26017 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26018 (constant_pointer_difference): Likewise.
26019 (associate_pointerplus): Likewise.
26020 (combine_conversions): Likewise.
26021 * tree-ssa-loop.h: Include wide-int.h.
26022 (struct tree_niter_desc): Change type of max to widest_int.
26023 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26024 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26025 (remove_redundant_iv_tests): Likewise.
26026 (canonicalize_loop_induction_variables): Likewise.
26027 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26028 (constant_multiple_of): Take a widest_int pointer instead of
26029 a double_int pointer.
26030 (get_computation_aff): Use wide-int interfaces.
26031 (ptr_difference_cost): Likewise.
26032 (difference_cost): Likewise.
26033 (get_loop_invariant_expr_id): Likewise.
26034 (get_computation_cost_at): Likewise.
26035 (iv_elimination_compare_lt): Likewise.
26036 (may_eliminate_iv): Likewise.
26037 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26038 instead of double_int.
26039 (max_loop_iterations): Likewise.
26040 (max_stmt_executions): Likewise.
26041 (estimated_stmt_executions): Likewise.
26042 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26043 (split_to_var_and_offset): Use wide-int interfaces.
26044 (determine_value_range): Likewise.
26045 (bound_difference_of_offsetted_base): Likewise.
26046 (bounds_add): Take a widest_int instead of a double_int.
26047 (number_of_iterations_ne_max): Use wide-int interfaces.
26048 (number_of_iterations_ne): Likewise.
26049 (number_of_iterations_lt_to_ne): Likewise.
26050 (assert_loop_rolls_lt): Likewise.
26051 (number_of_iterations_lt): Likewise.
26052 (number_of_iterations_le): Likewise.
26053 (number_of_iterations_cond): Likewise.
26054 (number_of_iterations_exit): Likewise.
26055 (finite_loop_p): Likewise.
26056 (derive_constant_upper_bound_assign): Likewise.
26057 (derive_constant_upper_bound): Return a widest_int.
26058 (derive_constant_upper_bound_ops): Likewise.
26059 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26060 (record_estimate): Take a widest_int rather than a double_int.
26061 (record_nonwrapping_iv): Use wide-int interfaces.
26062 (double_int_cmp): Delete.
26063 (wide_int_cmp): New.
26064 (bound_index): Take a widest_int rather than a double_int.
26065 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26066 (maybe_lower_iteration_bound): Likewise.
26067 (estimate_numbers_of_iterations_loop): Likewise.
26068 (estimated_loop_iterations): Take a widest_int pointer than than
26069 a double_int pointer.
26070 (estimated_loop_iterations_int): Use wide-int interfaces.
26071 (max_loop_iterations): Take a widest_int pointer than than
26072 a double_int pointer.
26073 (max_loop_iterations_int): Use wide-int interfaces.
26074 (max_stmt_executions): Take a widest_int pointer than than
26075 a double_int pointer.
26076 (estimated_stmt_executions): Likewise.
26077 (n_of_executions_at_most): Use wide-int interfaces.
26078 (scev_probably_wraps_p): Likewise.
26079 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26080 to real_to_integer.
26081 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26083 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26084 double_ints. Adjust for trailing_wide_ints <3> representation.
26085 (set_nonzero_bits): Likewise.
26086 (get_range_info): Return wide_ints rather than double_ints.
26087 Adjust for trailing_wide_ints <3> representation.
26088 (get_nonzero_bits): Likewise.
26089 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26091 * tree-ssanames.h (struct range_info_def): Replace min, max and
26092 nonzero_bits with a trailing_wide_ints <3>.
26093 (set_range_info): Use wide_int_refs rather than double_ints.
26094 (set_nonzero_bits): Likewise.
26095 (get_range_info): Return wide_ints rather than double_ints.
26096 (get_nonzero_bits): Likewise.
26097 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26098 * tree-ssa-pre.c (phi_translate_1): Likewise.
26099 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26100 (acceptable_pow_call): Likewise.
26101 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26103 (vn_reference_fold_indirect): Likewise.
26104 (vn_reference_maybe_forwprop_address): Likewise.
26105 (valueize_refs_1): Likewise.
26106 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26107 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26108 tree_int_cst_lt and tree_int_cst_le.
26109 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26111 (streamer_alloc_tree): Likewise.
26112 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26113 (streamer_write_tree_header): Likewise.
26114 (streamer_write_integer_cst): Likewise.
26115 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26116 (build_constructors): Likewise.
26117 (array_value_type): Likewise.
26118 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26119 (vect_check_gather): Likewise.
26120 * tree-vect-generic.c (build_replicated_const): Likewise.
26121 (expand_vector_divmod): Likewise.
26122 * tree-vect-loop.c (vect_transform_loop): Likewise.
26123 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26124 (vect_do_peeling_for_alignment): Likewise.
26125 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26126 * tree-vrp.c: Include wide-int.h.
26127 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26128 (extract_range_from_assert): Use wide-int interfaces.
26129 (vrp_int_const_binop): Likewise.
26130 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26131 double_int pointers.
26132 (ranges_from_anti_range): Use wide-int interfaces.
26133 (quad_int_cmp): Delete.
26134 (quad_int_pair_sort): Likewise.
26135 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26136 (extract_range_from_unary_expr_1): Likewise.
26137 (adjust_range_with_scev): Likewise.
26138 (masked_increment): Take and return wide_ints rather than double_ints.
26139 (register_edge_assert_for_2): Use wide-int interfaces.
26140 (check_array_ref): Likewise.
26141 (search_for_addr_array): Likewise.
26142 (maybe_set_nonzero_bits): Likewise.
26143 (union_ranges): Pass an integer of the correct type instead of
26144 using integer_one_node.
26145 (intersect_ranges): Likewise.
26146 (simplify_truth_ops_using_ranges): Likewise.
26147 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26148 (range_fits_type_p): Likewise.
26149 (simplify_cond_using_ranges): Likewise. Take a signop rather than
26151 (simplify_conversion_using_ranges): Use wide-int interfaces.
26152 (simplify_float_conversion_using_ranges): Likewise.
26153 (vrp_finalize): Likewise.
26154 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26155 (gimple_stringops_transform): Likewise.
26156 * varasm.c (decode_addr_const): Likewise.
26157 (const_hash_1): Likewise.
26158 (const_rtx_hash_1): Likewise
26159 (output_constant): Likewise.
26160 (array_size_for_constructor): Likewise.
26161 (output_constructor_regular_field): Likewise.
26162 (output_constructor_bitfield): Likewise.
26163 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26164 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26166 * gencheck.c: Define BITS_PER_UNIT.
26167 * wide-int.cc: New.
26169 * wide-int-print.cc: New.
26170 * wide-int-print.h: New.
26172 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26174 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26176 2014-05-06 Richard Biener <rguenther@suse.de>
26178 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26179 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26180 (TODO_verify_all): Adjust.
26181 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26182 TODO_verify_stmts and TODO_verify_rtl_sharing.
26183 * bb-reorder.c: Likewise.
26184 * cfgexpand.c: Likewise.
26185 * cprop.c: Likewise.
26187 * function.c: Likewise.
26188 * fwprop.c: Likewise.
26189 * gcse.c: Likewise.
26190 * gimple-ssa-isolate-paths.c: Likewise.
26191 * gimple-ssa-strength-reduction.c: Likewise.
26192 * ipa-split.c: Likewise.
26193 * loop-init.c: Likewise.
26194 * loop-unroll.c: Likewise.
26195 * lower-subreg.c: Likewise.
26196 * modulo-sched.c: Likewise.
26197 * postreload-gcse.c: Likewise.
26198 * predict.c: Likewise.
26199 * recog.c: Likewise.
26200 * sched-rgn.c: Likewise.
26201 * store-motion.c: Likewise.
26202 * tracer.c: Likewise.
26203 * trans-mem.c: Likewise.
26204 * tree-call-cdce.c: Likewise.
26205 * tree-cfg.c: Likewise.
26206 * tree-cfgcleanup.c: Likewise.
26207 * tree-complex.c: Likewise.
26208 * tree-eh.c: Likewise.
26209 * tree-emutls.c: Likewise.
26210 * tree-if-conv.c: Likewise.
26211 * tree-into-ssa.c: Likewise.
26212 * tree-loop-distribution.c: Likewise.
26213 * tree-object-size.c: Likewise.
26214 * tree-parloops.c: Likewise.
26215 * tree-pass.h: Likewise.
26216 * tree-sra.c: Likewise.
26217 * tree-ssa-ccp.c: Likewise.
26218 * tree-ssa-copy.c: Likewise.
26219 * tree-ssa-copyrename.c: Likewise.
26220 * tree-ssa-dce.c: Likewise.
26221 * tree-ssa-dom.c: Likewise.
26222 * tree-ssa-dse.c: Likewise.
26223 * tree-ssa-forwprop.c: Likewise.
26224 * tree-ssa-ifcombine.c: Likewise.
26225 * tree-ssa-loop-ch.c: Likewise.
26226 * tree-ssa-loop-ivcanon.c: Likewise.
26227 * tree-ssa-loop.c: Likewise.
26228 * tree-ssa-math-opts.c: Likewise.
26229 * tree-ssa-phiopt.c: Likewise.
26230 * tree-ssa-phiprop.c: Likewise.
26231 * tree-ssa-pre.c: Likewise.
26232 * tree-ssa-reassoc.c: Likewise.
26233 * tree-ssa-sink.c: Likewise.
26234 * tree-ssa-strlen.c: Likewise.
26235 * tree-ssa-tail-merge.c: Likewise.
26236 * tree-ssa-uncprop.c: Likewise.
26237 * tree-switch-conversion.c: Likewise.
26238 * tree-tailcall.c: Likewise.
26239 * tree-vect-generic.c: Likewise.
26240 * tree-vectorizer.c: Likewise.
26241 * tree-vrp.c: Likewise.
26242 * tsan.c: Likewise.
26243 * var-tracking.c: Likewise.
26244 * bt-load.c: Likewise.
26245 * cfgcleanup.c: Likewise.
26246 * combine-stack-adj.c: Likewise.
26247 * combine.c: Likewise.
26248 * compare-elim.c: Likewise.
26249 * config/epiphany/resolve-sw-modes.c: Likewise.
26250 * config/i386/i386.c: Likewise.
26251 * config/mips/mips.c: Likewise.
26252 * config/s390/s390.c: Likewise.
26253 * config/sh/sh_treg_combine.cc: Likewise.
26254 * config/sparc/sparc.c: Likewise.
26257 * final.c: Likewise.
26258 * ifcvt.c: Likewise.
26259 * mode-switching.c: Likewise.
26260 * passes.c: Likewise.
26261 * postreload.c: Likewise.
26263 * reg-stack.c: Likewise.
26264 * regcprop.c: Likewise.
26265 * regrename.c: Likewise.
26268 2014-05-06 Richard Biener <rguenther@suse.de>
26270 PR middle-end/61070
26271 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26272 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26274 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
26277 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26279 2014-05-05 Radovan Obradovic <robradovic@mips.com>
26280 Tom de Vries <tom@codesourcery.com>
26282 * target.def (call_fusage_contains_non_callee_clobbers): New
26284 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26286 (@node Miscellaneous Register Hooks): New node.
26287 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26288 * doc/tm.texi: Regenerate.
26290 2014-05-05 Marek Polacek <polacek@redhat.com>
26293 * opts.c (common_handle_option): Call error_at instead of warning_at.
26295 2014-05-05 Richard Biener <rguenther@suse.de>
26297 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26298 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
26299 under the TODO_verify_il umbrella.
26301 2014-05-05 Richard Biener <rguenther@suse.de>
26303 * passes.c (execute_function_todo): Move TODO_verify_flow under
26304 the TODO_verify_ul umbrella.
26306 2014-05-05 Richard Biener <rguenther@suse.de>
26308 PR middle-end/61010
26309 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26310 X & CST away from a CST that is the mask of a mode.
26312 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26314 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26315 int argument to enum machine_mode.
26316 (picochip_class_max_nregs): Ditto.
26317 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26318 (picochip_class_max_nregs): Ditto.
26320 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26322 * target.def: Add new target hook.
26323 * doc/tm.texi: Regenerate.
26324 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26325 * targhooks.c (default_keep_leaf_when_profiled): New function.
26327 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26328 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26330 2014-05-05 Bin Cheng <bin.cheng@arm.com>
26332 PR tree-optimization/60363
26333 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26334 (copy_phi_args): New parameters. Call get_value_locus_in_path.
26335 (update_destination_phis): New parameter.
26336 (create_edge_and_update_destination_phis): Ditto.
26337 (ssa_fix_duplicate_block_edges): Pass new arguments.
26338 (thread_single_edge): Ditto.
26340 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
26342 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26343 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26344 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26345 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26346 Use RS6000_BTM_HARD_FLOAT.
26347 (BU_MISC_2): Likewise.
26348 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26349 RS6000_BTM_HARD_FLOAT.
26350 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26351 is explicitly used.
26352 (rs6000_invalid_builtin): Add hard floating builtin support.
26353 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26354 hard float builtins.
26355 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26357 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26359 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26360 Add missing function* argument.
26362 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26364 * lra-constraints.c (valid_address_p): Move earlier in file.
26365 Add a constraint argument to the address_info version.
26366 (satisfies_memory_constraint_p): New function.
26367 (satisfies_address_constraint_p): Likewise.
26368 (process_alt_operands, curr_insn_transform): Use them.
26369 (process_address): Pass the constraint to valid_address_p when
26370 checking address operands.
26372 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26374 * config/mips/mips.c (mips_isa_rev): New variable.
26375 (mips_set_architecture): Set it.
26376 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26378 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26379 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26380 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26381 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26382 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26383 conditions in terms of mips_isa_rev.
26384 (mips_isa_rev): Declare.
26386 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26388 * config/sh/sh-mem.cc: Use tabs instead of spaces.
26389 (prob_unlikely, prob_likely): Make variables const.
26391 2014-05-03 Denis Chertykov <chertykov@gmail.com>
26393 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26395 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26397 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26399 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26401 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26402 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26403 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26405 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26406 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26408 Replace usage of ROUND_REG with sh_round_reg.
26409 Use CEIL instead of ROUND_ADVANCE.
26411 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26414 * config/sh/sh.c: Include stdlib headers before everything else.
26416 2014-05-02 Jakub Jelinek <jakub@redhat.com>
26418 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26419 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26420 (gimplify_adjust_omp_clauses): Simd region is never
26421 directly nested in combined parallel. Instead, for linear
26422 with copyin/copyout, if in combined for simd loop, make decl
26423 firstprivate/lastprivate on OMP_FOR.
26424 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26425 expand_omp_for_static_chunk): When setting endvar, also set
26426 fd->loop.v to the same value.
26428 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26430 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26432 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
26434 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26437 2014-05-02 Marek Polacek <polacek@redhat.com>
26439 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26441 2014-05-02 Kito Cheng <kito@0xlab.org>
26443 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
26444 to a C expression marco.
26445 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
26446 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
26447 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
26448 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
26449 HONOR_REG_ALLOC_ORDER.
26450 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
26452 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26454 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
26456 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26458 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
26460 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26462 * tree-if-conv.c (is_cond_scalar_reduction): New function.
26463 (convert_scalar_cond_reduction): Likewise.
26464 (predicate_scalar_phi): Add recognition and transformation
26465 of simple conditioanl reduction to be vectorizable.
26467 2014-05-01 Marek Polacek <polacek@redhat.com>
26470 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
26472 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
26474 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
26475 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
26476 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
26477 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
26478 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
26479 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
26480 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
26481 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
26483 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
26485 * config/arc/arc.opt (mlra): Move comment above option name
26486 to avoid mis-parsing as language options.
26488 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26490 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
26491 * config/sol2.h: ... here.
26492 * config/sol2-10.h: Remove.
26494 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
26495 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
26496 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
26497 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
26498 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
26499 * config/sol2.h: ... here.
26500 (SECTION_NAME_FORMAT): Don't redefine.
26501 (STARTFILE_ARCH32_SPEC): Rename to ...
26502 (STARTFILE_ARCH_SPEC): ... this.
26503 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
26504 * config/sparc/sol2.h: ... here.
26505 (SECTION_NAME_FORMAT): Don't undef.
26506 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
26507 (SUBTARGET_EXTRA_SPECS): Remove.
26508 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
26510 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
26511 (MD_STARTFILE_PREFIX): Remove.
26512 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
26513 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
26514 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
26515 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
26516 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
26517 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
26518 * config/i386/sol2.h: ... here.
26519 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
26520 * config/i386/sol2-bi.h: Remove.
26521 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
26522 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
26524 * config/i386/t-sol2-64: Rename to ...
26525 * config/i386/t-sol2: ... this.
26526 * config/sparc/t-sol2-64: Rename to ...
26527 * config/sparc/t-sol2: ... this.
26529 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
26530 sol2_tm_file_head, sol2_tm_file_tail.
26531 Include ${cpu_type}/sol2.h before sol2.h.
26533 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
26534 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
26535 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
26536 Reflect i386/t-sol2-64 renaming.
26537 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
26538 Reflect sparc/t-sol2-64 renaming.
26540 2014-04-30 Richard Biener <rguenther@suse.de>
26542 * passes.c (execute_function_todo): Move TODO_verify_stmts
26543 and TODO_verify_ssa under the TODO_verify_il umbrella.
26544 * tree-ssa.h (verify_ssa): Adjust prototype.
26545 * tree-ssa.c (verify_ssa): Add parameter to tell whether
26546 we should verify SSA operands.
26547 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
26548 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
26549 whether we should verify whether not throwing stmts have EH info.
26550 * graphite-scop-detection.c (create_sese_edges): Adjust.
26551 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
26552 * tree-eh.c (lower_try_finally_switch): Do not add the
26553 default case label twice.
26555 2014-04-30 Marek Polacek <polacek@redhat.com>
26557 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
26558 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
26559 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
26560 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
26562 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
26564 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
26565 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
26566 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
26567 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
26568 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
26569 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
26570 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
26571 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
26573 2014-04-29 David Malcolm <dmalcolm@redhat.com>
26575 * tree-cfg.c (dump_function_to_file): Dump the return type of
26576 functions, in a line to itself before the function body, mimicking
26577 the layout of a C function.
26579 2014-04-29 Jakub Jelinek <jakub@redhat.com>
26581 PR tree-optimization/60971
26582 * tree-tailcall.c (process_assignment): Reject conversions which
26585 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26587 * calls.c (initialize_argument_information): Always treat
26588 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
26589 (expand_call): Likewise.
26590 (emit_library_call_calue_1): Likewise.
26591 * expr.c (PUSH_ARGS_REVERSED): Do not define.
26592 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
26595 2014-04-29 Nick Clifton <nickc@redhat.com>
26597 * config/msp430/msp430.md (umulsidi): Fix typo.
26598 (mulhisi3): Enable even inside interrupt handlers.
26599 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
26600 bigger return address pushed in large mode.
26602 2014-04-29 Nick Clifton <nickc@redhat.com>
26604 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
26605 (arc_init_reg_tables): Use a machine_mode enum to iterate over
26607 * config/m32r/m32r.c (init_reg_tables): Likewise.
26608 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
26609 enum to hold the modes.
26611 2014-04-29 Richard Biener <rguenther@suse.de>
26613 * dominance.c (free_dominance_info): Add overload with
26614 function parameter.
26615 (dom_info_state): Likewise.
26616 (dom_info_available_p): Likewise.
26617 * basic-block.h (free_dominance_info, dom_info_state,
26618 dom_info_available_p): Declare overloads.
26619 * passes.c (execute_function_todo): Verify that verifiers
26620 don't change dominator info state. Drop dominator info
26621 for IPA pass invocations.
26622 * cgraph.c (release_function_body): Restore asserts that
26623 dominator information is released.
26625 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
26627 * doc/invoke.texi: Fix typo.
26628 * tree-vrp.c: Fix typos.
26629 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
26631 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26633 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
26635 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
26637 * config/aarch64/aarch64-builtins.c
26638 (aarch64_types_storestruct_lane_qualifiers): New.
26639 (TYPES_STORESTRUCT_LANE): Likewise.
26640 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
26641 (st3_lane): Likewise.
26642 (st4_lane): Likewise.
26643 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
26644 (vec_store_lanesci_lane<mode>): Likewise.
26645 (vec_store_lanesxi_lane<mode>): Likewise.
26646 (aarch64_st2_lane<VQ:mode>): Likewise.
26647 (aarch64_st3_lane<VQ:mode>): Likewise.
26648 (aarch64_st4_lane<VQ:mode>): Likewise.
26649 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
26650 * config/aarch64/arm_neon.h
26651 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
26652 use new macro arguments.
26653 (__ST3_LANE_FUNC): Likewise.
26654 (__ST4_LANE_FUNC): Likewise.
26655 * config/aarch64/iterators.md (V_TWO_ELEM): New.
26656 (V_THREE_ELEM): Likewise.
26657 (V_FOUR_ELEM): Likewise.
26659 2014-04-28 David Malcolm <dmalcolm@redhat.com>
26661 * doc/gimple.texi: Replace the description of the now-defunct
26662 union gimple_statement_d with a diagram showing the
26663 gimple_statement_base class hierarchy and its relationships to
26664 the GSS_ and GIMPLE_ enums.
26666 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
26668 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
26669 * config/aarch64/aarch64.c
26670 (aarch64_cannot_change_mode_class): Weaken conditions.
26671 (aarch64_modes_tieable_p): New.
26672 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
26674 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
26676 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26677 (loadsync_<mode>): Change mode.
26678 (load_quadpti, store_quadpti): New.
26679 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26680 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26682 2014-04-28 Martin Jambor <mjambor@suse.cz>
26684 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
26685 same alias type as the original statement.
26686 (subreplacement_assignment_data): New type.
26687 (handle_unscalarized_data_in_subtree): New type of parameter,
26688 generate new memory accesses with same alias type as the original
26690 (load_assign_lhs_subreplacements): Likewise.
26691 (sra_modify_constructor_assign): Generate new memory accesses with
26692 same alias type as the original statement.
26694 2014-04-28 Richard Biener <rguenther@suse.de>
26696 * tree-pass.h (TODO_verify_il): Define.
26697 (TODO_verify_all): Complete properly.
26698 * passes.c (execute_function_todo): Move existing loop-closed
26699 SSA verification under TODO_verify_il.
26700 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
26701 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
26702 Fix tree sharing issue.
26704 2014-04-28 Richard Biener <rguenther@suse.de>
26706 PR middle-end/60092
26707 * builtins.def (DEF_C11_BUILTIN): Add.
26708 (BUILT_IN_ALIGNED_ALLOC): Likewise.
26709 * coretypes.h (enum function_class): Add function_c11_misc.
26710 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26711 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
26712 (call_may_clobber_ref_p_1): Likewise.
26713 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
26714 (mark_all_reaching_defs_necessary_1): Likewise.
26715 (propagate_necessity): Likewise.
26716 (eliminate_unnecessary_stmts): Likewise.
26717 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
26719 2014-04-28 Richard Biener <rguenther@suse.de>
26721 * tree-vrp.c (vrp_var_may_overflow): Remove.
26722 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
26723 with overflow immediately bump to one before that value and
26724 let iteration figure out overflow status.
26726 2014-04-28 Richard Biener <rguenther@suse.de>
26728 * configure.ac: Do valgrind header checks unconditionally.
26729 Add --enable-valgrind-annotations.
26730 * system.h: Guard valgrind header inclusion with
26731 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
26732 * alloc-pool.c (pool_alloc, pool_free): Use
26733 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
26734 to guard possibly dead code.
26735 * config.in: Regenerated.
26736 * configure: Likewise.
26738 2014-04-28 Jeff Law <law@redhat.com>
26740 PR tree-optimization/60902
26741 * tree-ssa-threadedge.c
26742 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
26743 over real defs when invalidating outputs from statements that do not
26744 produce useful outputs for threading.
26746 2014-04-28 Richard Biener <rguenther@suse.de>
26748 PR tree-optimization/60979
26749 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
26750 SCOPs that end in a block with a successor with abnormal
26753 2014-04-28 Richard Biener <rguenther@suse.de>
26755 * tree-pass.h (execute_pass_list): Adjust prototype.
26756 * passes.c (pass_manager::execute_early_local_passes): Adjust.
26757 (do_per_function): Change callback signature, push all actual
26758 work to the callbals.
26759 (do_per_function_toporder): Likewise.
26760 (execute_function_dump): Adjust.
26761 (execute_function_todo): Likewise.
26762 (clear_last_verified): Likewise.
26763 (verify_curr_properties): Likewise.
26764 (update_properties_after_pass): Likewise.
26765 (execute_pass_list_1): Split out from ...
26766 (execute_pass_list): ... here. Adjust.
26767 (execute_ipa_pass_list): Likewise.
26768 * cgraphunit.c (cgraph_add_new_function): Adjust.
26769 (analyze_function): Likewise.
26770 (expand_function): Likewise.
26771 * cgraph.c (release_function_body): Free dominance info
26772 here instead of asserting it was magically freed elsewhere.
26774 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
26776 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
26777 * configure: Regenerate.
26778 * config/sparc/sparc.opt (muser-mode): New option.
26779 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
26781 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
26782 * doc/invoke.texi (SPARC options): Document -muser-mode.
26784 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
26786 * cselib.c (find_slot_memmode): Delete.
26787 (cselib_hasher): Change compare_type to a struct.
26788 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
26790 (preserve_constants_and_equivs): Adjust for new compare_type.
26791 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
26792 (wrap_constant): Delete.
26793 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
26795 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
26797 * doc/install.texi (Building with profile feedback): Remove
26800 2014-04-26 Tom de Vries <tom@codesourcery.com>
26802 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
26805 2014-04-25 Cary Coutant <ccoutant@google.com>
26808 * dwarf2out.c (should_move_die_to_comdat): A type definition
26809 can contain a subprogram definition, but don't move it to a
26811 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
26812 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
26814 (clone_tree_hash): Rename to...
26815 (clone_tree_partial): ...this; change callers. Copy
26816 DW_TAG_subprogram DIEs as declarations.
26817 (copy_decls_walk): Don't copy children of a declaration into a
26820 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
26823 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
26826 2014-04-25 Jiong Wang <jiong.wang@arm.com>
26828 * config/arm/predicates.md (call_insn_operand): Add long_call check.
26829 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
26831 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
26834 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26836 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
26838 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26840 PR tree-optimization/60930
26841 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
26842 creating a multiply candidate by folding two constant
26843 multiplicands when the result overflows.
26845 2014-04-25 Jakub Jelinek <jakub@redhat.com>
26847 PR tree-optimization/60960
26848 * tree-vect-generic.c (expand_vector_operation): Only call
26849 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
26851 2014-04-25 Tom de Vries <tom@codesourcery.com>
26853 * expr.c (clobber_reg_mode): New function.
26854 * expr.h (clobber_reg): New function.
26856 2014-04-25 Tom de Vries <tom@codesourcery.com>
26858 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
26861 2014-04-25 Radovan Obradovic <robradovic@mips.com>
26862 Tom de Vries <tom@codesourcery.com>
26864 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
26866 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
26867 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
26868 new argument to find_all_hard_reg_sets call.
26870 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26872 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
26873 Use HOST_WIDE_INT_C for mask literal.
26874 (aarch_rev16_shleft_mask_imm_p): Likewise.
26876 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
26879 * config/sparc/sparc.md (ashlsi3_extend): Delete.
26881 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
26883 PR preprocessor/56540
26884 * config/i386/i386-c.c (ix86_target_macros): Define
26885 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
26887 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26889 * configure.ac (tga_func): Remove.
26890 (LIB_TLS_SPEC): Remove.
26891 * configure: Regenerate.
26892 * config.in: Regenerate.
26893 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
26895 2014-04-25 Richard Biener <rguenther@suse.de>
26898 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
26899 call stmt use/clobber sets during stmt walk instead of
26900 walking the possibly incomplete set of caller edges.
26902 2014-04-25 Richard Biener <rguenther@suse.de>
26905 * passes.c (apply_ipa_transforms): Inline into only caller ...
26906 (execute_one_pass): ... here. Properly bring in function
26907 bodies for nodes we want to apply IPA transforms to.
26909 2014-04-24 Cong Hou <congh@google.com>
26911 PR tree-optimization/60896
26912 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
26913 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
26914 (vect_mark_pattern_stmts): Set the def type of all statements in
26915 PATTERN_DEF_SEQ as vect_internal_def.
26917 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26919 * doc/extend.texi (PowerPC Built-in Functions): Document new
26920 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
26921 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
26923 * config/rs6000/predicates.md (const_0_to_3_operand): New
26924 predicate to match 0..3 integer constants.
26926 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
26927 to support adding miscellaneous builtin functions.
26928 (BU_DFP_MISC_2): Likewise.
26929 (BU_P7_MISC_1): Likewise.
26930 (BU_P7_MISC_2): Likewise.
26931 (BU_P8V_MISC_3): Likewise.
26932 (BU_MISC_1): Likewise.
26933 (BU_MISC_2): Likewise.
26934 (DIVWE): Add extended divide builtin functions.
26935 (DIVWEO): Likewise.
26936 (DIVWEU): Likewise.
26937 (DIVWEUO): Likewise.
26939 (DIVDEO): Likewise.
26940 (DIVDEU): Likewise.
26941 (DIVDEUO): Likewise.
26942 (DXEX): Add decimal floating-point builtin functions.
26944 (DDEDPD): Likewise.
26945 (DDEDPDQ): Likewise.
26946 (DENBCD): Likewise.
26947 (DENBCDQ): Likewise.
26951 (DSCLIQ): Likewise.
26953 (DSCRIQ): Likewise.
26954 (CDTBCD): Add new BCD builtin functions.
26955 (CBCDTD): Likewise.
26956 (ADDG6S): Likewise.
26957 (BCDADD): Likewise.
26958 (BCDADD_LT): Likewise.
26959 (BCDADD_EQ): Likewise.
26960 (BCDADD_GT): Likewise.
26961 (BCDADD_OV): Likewise.
26962 (BCDSUB): Likewise.
26963 (BCDSUB_LT): Likewise.
26964 (BCDSUB_EQ): Likewise.
26965 (BCDSUB_GT): Likewise.
26966 (BCDSUB_OV): Likewise.
26967 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
26968 (UNPACK_TD): Likewise.
26969 (PACK_TF): Likewise.
26970 (UNPACK_TF): Likewise.
26971 (UNPACK_TF_0): Likewise.
26972 (UNPACK_TF_1): Likewise.
26973 (PACK_V1TI): Likewise.
26974 (UNPACK_V1TI): Likewise.
26976 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26977 support for decimal floating point builtin functions.
26978 (rs6000_expand_ternop_builtin): Add checks for the new builtin
26979 functions that take constant arguments.
26980 (rs6000_invalid_builtin): Add decimal floating point builtin support.
26981 (rs6000_init_builtins): Setup long double, _Decimal64, and
26982 _Decimal128 types for new builtin functions.
26983 (builtin_function_type): Set the unsigned flags appropriately for
26984 the new builtin functions.
26985 (rs6000_opt_masks): Add support for decimal floating point builtin
26988 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
26989 floating point builtin functions.
26990 (RS6000_BTM_COMMON): Likewise.
26991 (RS6000_BTI_long_double): Likewise.
26992 (RS6000_BTI_dfloat64): Likewise.
26993 (RS6000_BTI_dfloat128): Likewise.
26994 (long_double_type_internal_node): Likewise.
26995 (dfloat64_type_internal_node): Likewise.
26996 (dfloat128_type_internal_node): Likewise.
26998 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
26999 2.07 bcd arithmetic instructions.
27000 (UNSPEC_BCDSUB): Likewise.
27001 (UNSPEC_BCD_OVERFLOW): Likewise.
27002 (UNSPEC_BCD_ADD_SUB): Likewise.
27003 (bcd_add_sub): Likewise.
27004 (BCD_TEST): Likewise.
27005 (bcd<bcd_add_sub>): Likewise.
27006 (bcd<bcd_add_sub>_test): Likewise.
27007 (bcd<bcd_add_sub>_test2): Likewise.
27008 (bcd<bcd_add_sub>_<code>): Likewise.
27009 (peephole2 for combined bcd ops): Likewise.
27011 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27012 decimal floating point builtin functions.
27013 (UNSPEC_DENBCD): Likewise.
27014 (UNSPEC_DXEX): Likewise.
27015 (UNSPEC_DIEX): Likewise.
27016 (UNSPEC_DSCLI): Likewise.
27017 (UNSPEC_DSCRI): Likewise.
27018 (D64_D128): Likewise.
27019 (dfp_suffix): Likewise.
27020 (dfp_ddedpd_<mode>): Likewise.
27021 (dfp_denbcd_<mode>): Likewise.
27022 (dfp_dxex_<mode>): Likewise.
27023 (dfp_diex_<mode>): Likewise.
27024 (dfp_dscli_<mode>): Likewise.
27025 (dfp_dscri_<mode>): Likewise.
27027 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27029 (UNSPEC_CDTBCD): Likewise.
27030 (UNSPEC_CBCDTD): Likewise.
27031 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27032 (UNSPEC_DIVEO): Likewise.
27033 (UNSPEC_DIVEU): Likewise.
27034 (UNSPEC_DIVEUO): Likewise.
27035 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27036 pack/unpack 128-bit types.
27037 (UNSPEC_PACK_128BIT): Likewise.
27038 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27039 (udiv<mode>3): Use idiv_ldiv mode attribute.
27040 (div<mode>3): Likewise.
27041 (addg6s): Add new BCD builtin functions.
27042 (cdtbcd): Likewise.
27043 (cbcdtd): Likewise.
27044 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27045 (div_extend): Likewise.
27046 (div<div_extend>_<mode>"): Likewise.
27047 (FP128_64): Add support for new builtin functions to pack/unpack
27049 (unpack<mode>): Likewise.
27050 (unpacktf_0): Likewise.
27051 (unpacktf_1): Likewise.
27052 (unpack<mode>_dm): Likewise.
27053 (unpack<mode>_nodm): Likewise.
27054 (pack<mode>): Likewise.
27055 (unpackv1ti): Likewise.
27056 (packv1ti): Likewise.
27058 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27060 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27063 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27065 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27066 * gimplify.c (omp_is_private): Change last argument's type to int.
27067 Only diagnose lastprivate if the simd argument is 1, only diagnose
27068 linear if the simd argument is 2.
27069 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27070 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27071 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27072 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27073 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27074 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27075 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27076 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27077 * tree-nested.c (convert_nonlocal_omp_clauses,
27078 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27080 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27083 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27086 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27088 * flag-types.h (enum ivar_visibility): Add.
27090 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27092 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27093 function * argument.
27095 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27097 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27099 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27100 Tom de Vries <tom@codesourcery.com>
27102 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27103 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27105 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27106 * emit-rtl.c (try_split): Same.
27108 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27109 Tom de Vries <tom@codesourcery.com>
27111 * common.opt (fuse-caller-save): New option.
27113 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27115 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27116 elements for big-endian.
27118 2014-04-24 Richard Biener <rguenther@suse.de>
27120 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27121 during TER and instead use the sepops interface for expanding
27122 non-GIMPLE_SINGLE_RHS.
27124 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27126 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27127 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27129 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27131 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27132 assembler 64-bit option.
27133 * configure: Regenerate.
27135 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27137 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27138 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27139 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27140 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27141 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27143 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27145 * config/aarch64/aarch64-builtins.c
27146 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27147 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27148 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27149 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27151 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27152 (Vrevsuff): New mode attribute.
27154 2014-04-24 Terry Guo <terry.guo@arm.com>
27156 * config/arm/arm.h (machine_function): Define variable
27157 after_arm_reorg here.
27158 * config/arm/arm.c (after_arm_reorg): Remove the definition.
27159 (arm_split_constant): Update the way to access variable
27161 (arm_reorg): Ditto.
27162 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27164 2014-04-23 Tom de Vries <tom@codesourcery.com>
27166 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27168 2014-04-23 David Malcolm <dmalcolm@redhat.com>
27170 * is-a.h: Update comments to reflect the following changes to the
27171 "pointerness" of the API, making the template parameter match the
27172 return type, allowing use of is-a.h with typedefs of pointers.
27173 (is_a_helper::cast): Return a T rather then a pointer to a T, so
27174 that the return type matches the parameter to the is_a_helper.
27176 (dyn_cast): Likewise.
27178 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27179 pointer from the is-a.h API.
27181 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27182 (is_a_helper <cgraph_node *>::test): ...this, matching change to
27184 (is_a_helper <varpool_node>::test): Likewise, convert to...
27185 (is_a_helper <varpool_node *>::test): ...this.
27187 (varpool_first_variable): Update for removal of implicit pointer
27188 from the is-a.h API.
27189 (varpool_next_variable): Likewise.
27190 (varpool_first_static_initializer): Likewise.
27191 (varpool_next_static_initializer): Likewise.
27192 (varpool_first_defined_variable): Likewise.
27193 (varpool_next_defined_variable): Likewise.
27194 (cgraph_first_defined_function): Likewise.
27195 (cgraph_next_defined_function): Likewise.
27196 (cgraph_first_function): Likewise.
27197 (cgraph_next_function): Likewise.
27198 (cgraph_first_function_with_gimple_body): Likewise.
27199 (cgraph_next_function_with_gimple_body): Likewise.
27200 (cgraph_alias_target): Likewise.
27201 (varpool_alias_target): Likewise.
27202 (cgraph_function_or_thunk_node): Likewise.
27203 (varpool_variable_node): Likewise.
27204 (symtab_real_symbol_p): Likewise.
27205 * cgraphunit.c (referred_to_p): Likewise.
27206 (analyze_functions): Likewise.
27207 (handle_alias_pairs): Likewise.
27208 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27209 * gimple-ssa.h (gimple_vuse_op): Likewise.
27210 (gimple_vdef_op): Likewise.
27211 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27212 * gimple.c (gimple_build_asm_1): Likewise.
27213 (gimple_build_try): Likewise.
27214 (gimple_build_resx): Likewise.
27215 (gimple_build_eh_dispatch): Likewise.
27216 (gimple_build_omp_for): Likewise.
27217 (gimple_omp_for_set_clauses): Likewise.
27219 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27220 (is_a_helper <gimple_statement_asm *>::test): ...this.
27221 (is_a_helper <gimple_statement_bind>::test): Convert to...
27222 (is_a_helper <gimple_statement_bind *>::test): ...this.
27223 (is_a_helper <gimple_statement_call>::test): Convert to...
27224 (is_a_helper <gimple_statement_call *>::test): ...this.
27225 (is_a_helper <gimple_statement_catch>::test): Convert to...
27226 (is_a_helper <gimple_statement_catch *>::test): ...this.
27227 (is_a_helper <gimple_statement_resx>::test): Convert to...
27228 (is_a_helper <gimple_statement_resx *>::test): ...this.
27229 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27230 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27231 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27232 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27233 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27234 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27235 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27236 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27237 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27238 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27239 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27240 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27241 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27242 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27243 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27244 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27245 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27246 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27247 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27248 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27249 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27250 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27251 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27252 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27253 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27254 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27255 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27256 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27257 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27258 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27259 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27260 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27261 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27262 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27263 (is_a_helper <gimple_statement_phi>::test): Convert to...
27264 (is_a_helper <gimple_statement_phi *>::test): ...this.
27265 (is_a_helper <gimple_statement_transaction>::test): Convert to...
27266 (is_a_helper <gimple_statement_transaction *>::test): ...this.
27267 (is_a_helper <gimple_statement_try>::test): Convert to...
27268 (is_a_helper <gimple_statement_try *>::test): ...this.
27269 (is_a_helper <gimple_statement_wce>::test): Convert to...
27270 (is_a_helper <gimple_statement_wce *>::test): ...this.
27271 (is_a_helper <const gimple_statement_asm>::test): Convert to...
27272 (is_a_helper <const gimple_statement_asm *>::test): ...this.
27273 (is_a_helper <const gimple_statement_bind>::test): Convert to...
27274 (is_a_helper <const gimple_statement_bind *>::test): ...this.
27275 (is_a_helper <const gimple_statement_call>::test): Convert to...
27276 (is_a_helper <const gimple_statement_call *>::test): ...this.
27277 (is_a_helper <const gimple_statement_catch>::test): Convert to...
27278 (is_a_helper <const gimple_statement_catch *>::test): ...this.
27279 (is_a_helper <const gimple_statement_resx>::test): Convert to...
27280 (is_a_helper <const gimple_statement_resx *>::test): ...this.
27281 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27282 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27283 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27284 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27285 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27287 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27289 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27291 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27293 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27294 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27295 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27297 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27298 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27300 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27301 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27302 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27303 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27304 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27305 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27307 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27308 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27309 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27310 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27312 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27313 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27314 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27315 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27316 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27317 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27318 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27319 (is_a_helper <const gimple_statement_phi>::test): Convert to...
27320 (is_a_helper <const gimple_statement_phi *>::test): ...this.
27321 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27322 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27323 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27324 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27325 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27326 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27327 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27329 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27331 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27332 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27334 (gimple_use_ops): Update for removal of implicit pointer from the
27336 (gimple_set_use_ops): Likewise.
27337 (gimple_vuse): Likewise.
27338 (gimple_vdef): Likewise.
27339 (gimple_vuse_ptr): Likewise.
27340 (gimple_vdef_ptr): Likewise.
27341 (gimple_set_vuse): Likewise.
27342 (gimple_set_vdef): Likewise.
27343 (gimple_omp_return_set_lhs): Likewise.
27344 (gimple_omp_return_lhs): Likewise.
27345 (gimple_omp_return_lhs_ptr): Likewise.
27346 (gimple_call_fntype): Likewise.
27347 (gimple_call_set_fntype): Likewise.
27348 (gimple_call_set_internal_fn): Likewise.
27349 (gimple_call_use_set): Likewise.
27350 (gimple_call_clobber_set): Likewise.
27351 (gimple_bind_vars): Likewise.
27352 (gimple_bind_set_vars): Likewise.
27353 (gimple_bind_body_ptr): Likewise.
27354 (gimple_bind_set_body): Likewise.
27355 (gimple_bind_add_stmt): Likewise.
27356 (gimple_bind_block): Likewise.
27357 (gimple_bind_set_block): Likewise.
27358 (gimple_asm_ninputs): Likewise.
27359 (gimple_asm_noutputs): Likewise.
27360 (gimple_asm_nclobbers): Likewise.
27361 (gimple_asm_nlabels): Likewise.
27362 (gimple_asm_input_op): Likewise.
27363 (gimple_asm_input_op_ptr): Likewise.
27364 (gimple_asm_output_op): Likewise.
27365 (gimple_asm_output_op_ptr): Likewise.
27366 (gimple_asm_set_output_op): Likewise.
27367 (gimple_asm_clobber_op): Likewise.
27368 (gimple_asm_set_clobber_op): Likewise.
27369 (gimple_asm_label_op): Likewise.
27370 (gimple_asm_set_label_op): Likewise.
27371 (gimple_asm_string): Likewise.
27372 (gimple_catch_types): Likewise.
27373 (gimple_catch_types_ptr): Likewise.
27374 (gimple_catch_handler_ptr): Likewise.
27375 (gimple_catch_set_types): Likewise.
27376 (gimple_catch_set_handler): Likewise.
27377 (gimple_eh_filter_types): Likewise.
27378 (gimple_eh_filter_types_ptr): Likewise.
27379 (gimple_eh_filter_failure_ptr): Likewise.
27380 (gimple_eh_filter_set_types): Likewise.
27381 (gimple_eh_filter_set_failure): Likewise.
27382 (gimple_eh_must_not_throw_fndecl): Likewise.
27383 (gimple_eh_must_not_throw_set_fndecl): Likewise.
27384 (gimple_eh_else_n_body_ptr): Likewise.
27385 (gimple_eh_else_e_body_ptr): Likewise.
27386 (gimple_eh_else_set_n_body): Likewise.
27387 (gimple_eh_else_set_e_body): Likewise.
27388 (gimple_try_eval_ptr): Likewise.
27389 (gimple_try_cleanup_ptr): Likewise.
27390 (gimple_try_set_eval): Likewise.
27391 (gimple_try_set_cleanup): Likewise.
27392 (gimple_wce_cleanup_ptr): Likewise.
27393 (gimple_wce_set_cleanup): Likewise.
27394 (gimple_phi_capacity): Likewise.
27395 (gimple_phi_num_args): Likewise.
27396 (gimple_phi_result): Likewise.
27397 (gimple_phi_result_ptr): Likewise.
27398 (gimple_phi_set_result): Likewise.
27399 (gimple_phi_arg): Likewise.
27400 (gimple_phi_set_arg): Likewise.
27401 (gimple_resx_region): Likewise.
27402 (gimple_resx_set_region): Likewise.
27403 (gimple_eh_dispatch_region): Likewise.
27404 (gimple_eh_dispatch_set_region): Likewise.
27405 (gimple_omp_critical_name): Likewise.
27406 (gimple_omp_critical_name_ptr): Likewise.
27407 (gimple_omp_critical_set_name): Likewise.
27408 (gimple_omp_for_clauses): Likewise.
27409 (gimple_omp_for_clauses_ptr): Likewise.
27410 (gimple_omp_for_set_clauses): Likewise.
27411 (gimple_omp_for_collapse): Likewise.
27412 (gimple_omp_for_index): Likewise.
27413 (gimple_omp_for_index_ptr): Likewise.
27414 (gimple_omp_for_set_index): Likewise.
27415 (gimple_omp_for_initial): Likewise.
27416 (gimple_omp_for_initial_ptr): Likewise.
27417 (gimple_omp_for_set_initial): Likewise.
27418 (gimple_omp_for_final): Likewise.
27419 (gimple_omp_for_final_ptr): Likewise.
27420 (gimple_omp_for_set_final): Likewise.
27421 (gimple_omp_for_incr): Likewise.
27422 (gimple_omp_for_incr_ptr): Likewise.
27423 (gimple_omp_for_set_incr): Likewise.
27424 (gimple_omp_for_pre_body_ptr): Likewise.
27425 (gimple_omp_for_set_pre_body): Likewise.
27426 (gimple_omp_parallel_clauses): Likewise.
27427 (gimple_omp_parallel_clauses_ptr): Likewise.
27428 (gimple_omp_parallel_set_clauses): Likewise.
27429 (gimple_omp_parallel_child_fn): Likewise.
27430 (gimple_omp_parallel_child_fn_ptr): Likewise.
27431 (gimple_omp_parallel_set_child_fn): Likewise.
27432 (gimple_omp_parallel_data_arg): Likewise.
27433 (gimple_omp_parallel_data_arg_ptr): Likewise.
27434 (gimple_omp_parallel_set_data_arg): Likewise.
27435 (gimple_omp_task_clauses): Likewise.
27436 (gimple_omp_task_clauses_ptr): Likewise.
27437 (gimple_omp_task_set_clauses): Likewise.
27438 (gimple_omp_task_child_fn): Likewise.
27439 (gimple_omp_task_child_fn_ptr): Likewise.
27440 (gimple_omp_task_set_child_fn): Likewise.
27441 (gimple_omp_task_data_arg): Likewise.
27442 (gimple_omp_task_data_arg_ptr): Likewise.
27443 (gimple_omp_task_set_data_arg): Likewise.
27444 (gimple_omp_taskreg_clauses): Likewise.
27445 (gimple_omp_taskreg_clauses_ptr): Likewise.
27446 (gimple_omp_taskreg_set_clauses): Likewise.
27447 (gimple_omp_taskreg_child_fn): Likewise.
27448 (gimple_omp_taskreg_child_fn_ptr): Likewise.
27449 (gimple_omp_taskreg_set_child_fn): Likewise.
27450 (gimple_omp_taskreg_data_arg): Likewise.
27451 (gimple_omp_taskreg_data_arg_ptr): Likewise.
27452 (gimple_omp_taskreg_set_data_arg): Likewise.
27453 (gimple_omp_task_copy_fn): Likewise.
27454 (gimple_omp_task_copy_fn_ptr): Likewise.
27455 (gimple_omp_task_set_copy_fn): Likewise.
27456 (gimple_omp_task_arg_size): Likewise.
27457 (gimple_omp_task_arg_size_ptr): Likewise.
27458 (gimple_omp_task_set_arg_size): Likewise.
27459 (gimple_omp_task_arg_align): Likewise.
27460 (gimple_omp_task_arg_align_ptr): Likewise.
27461 (gimple_omp_task_set_arg_align): Likewise.
27462 (gimple_omp_single_clauses): Likewise.
27463 (gimple_omp_single_clauses_ptr): Likewise.
27464 (gimple_omp_single_set_clauses): Likewise.
27465 (gimple_omp_target_clauses): Likewise.
27466 (gimple_omp_target_clauses_ptr): Likewise.
27467 (gimple_omp_target_set_clauses): Likewise.
27468 (gimple_omp_target_child_fn): Likewise.
27469 (gimple_omp_target_child_fn_ptr): Likewise.
27470 (gimple_omp_target_set_child_fn): Likewise.
27471 (gimple_omp_target_data_arg): Likewise.
27472 (gimple_omp_target_data_arg_ptr): Likewise.
27473 (gimple_omp_target_set_data_arg): Likewise.
27474 (gimple_omp_teams_clauses): Likewise.
27475 (gimple_omp_teams_clauses_ptr): Likewise.
27476 (gimple_omp_teams_set_clauses): Likewise.
27477 (gimple_omp_sections_clauses): Likewise.
27478 (gimple_omp_sections_clauses_ptr): Likewise.
27479 (gimple_omp_sections_set_clauses): Likewise.
27480 (gimple_omp_sections_control): Likewise.
27481 (gimple_omp_sections_control_ptr): Likewise.
27482 (gimple_omp_sections_set_control): Likewise.
27483 (gimple_omp_for_set_cond): Likewise.
27484 (gimple_omp_for_cond): Likewise.
27485 (gimple_omp_atomic_store_set_val): Likewise.
27486 (gimple_omp_atomic_store_val): Likewise.
27487 (gimple_omp_atomic_store_val_ptr): Likewise.
27488 (gimple_omp_atomic_load_set_lhs): Likewise.
27489 (gimple_omp_atomic_load_lhs): Likewise.
27490 (gimple_omp_atomic_load_lhs_ptr): Likewise.
27491 (gimple_omp_atomic_load_set_rhs): Likewise.
27492 (gimple_omp_atomic_load_rhs): Likewise.
27493 (gimple_omp_atomic_load_rhs_ptr): Likewise.
27494 (gimple_omp_continue_control_def): Likewise.
27495 (gimple_omp_continue_control_def_ptr): Likewise.
27496 (gimple_omp_continue_set_control_def): Likewise.
27497 (gimple_omp_continue_control_use): Likewise.
27498 (gimple_omp_continue_control_use_ptr): Likewise.
27499 (gimple_omp_continue_set_control_use): Likewise.
27500 (gimple_transaction_body_ptr): Likewise.
27501 (gimple_transaction_label): Likewise.
27502 (gimple_transaction_label_ptr): Likewise.
27503 (gimple_transaction_set_body): Likewise.
27504 (gimple_transaction_set_label): Likewise.
27506 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
27507 * ipa-inline-analysis.c (inline_write_summary): Likewise.
27508 * ipa-ref.c (ipa_record_reference): Likewise.
27509 * ipa-reference.c (analyze_function): Likewise.
27510 (ipa_reference_write_optimization_summary): Likewise.
27511 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
27512 (address_taken_from_non_vtable_p): Likewise.
27513 (comdat_can_be_unshared_p_1): Likewise.
27514 * lto-cgraph.c (lto_output_ref): Likewise.
27515 (add_references): Likewise.
27516 (compute_ltrans_boundary): Likewise.
27517 (output_symtab): Likewise.
27518 (input_ref): Likewise.
27519 (input_cgraph_1): Likewise.
27520 (output_cgraph_opt_summary): Likewise.
27521 * lto-streamer-out.c (lto_output): Likewise.
27522 (output_symbol_p): Likewise.
27523 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
27524 (lsei_start_function_in_partition): Likewise.
27525 (lsei_next_variable_in_partition): Likewise.
27526 (lsei_start_variable_in_partition): Likewise.
27527 * symtab.c (insert_to_assembler_name_hash): Likewise.
27528 (unlink_from_assembler_name_hash): Likewise.
27529 (symtab_unregister_node): Likewise.
27530 (symtab_remove_node): Likewise.
27531 (dump_symtab_node): Likewise.
27532 (verify_symtab_base): Likewise.
27533 (verify_symtab_node): Likewise.
27534 (symtab_make_decl_local): Likewise.
27535 (symtab_alias_ultimate_target): Likewise.
27536 (symtab_resolve_alias): Likewise.
27537 (symtab_get_symbol_partitioning_class): Likewise.
27538 * tree-phinodes.c (allocate_phi_node): Likewise.
27539 (reserve_phi_args_for_new_edge): Likewise.
27540 (remove_phi_args): Likewise.
27541 * varpool.c (varpool_node_for_asm): Likewise.
27542 (varpool_remove_unreferenced_decls): Likewise.
27544 2014-04-23 Jeff Law <law@redhat.com>
27546 PR tree-optimization/60902
27547 * tree-ssa-threadedge.c
27548 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
27549 invalidate outputs from statements that do not produce useful
27550 outputs for threading.
27552 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
27554 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
27555 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
27556 machine descriptions for Stack Smashing Protector.
27558 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
27560 * aarch64.md (<optab>_rol<mode>3): New pattern.
27561 (<optab>_rolsi3_uxtw): Likewise.
27562 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
27564 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
27566 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
27567 (arm_cortex_a12_tune): Likewise.
27569 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27571 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
27573 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27575 * config/arm/arm.md (arm_rev16si2): New pattern.
27576 (arm_rev16si2_alt): Likewise.
27577 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
27579 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27581 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
27582 (rev16<mode>2_alt): Likewise.
27583 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
27584 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
27585 (aarch_rev16_shleft_mask_imm_p): Likewise.
27586 (aarch_rev16_p_1): Likewise.
27587 (aarch_rev16_p): Likewise.
27588 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
27589 (aarch_rev16_shright_mask_imm_p): Likewise.
27590 (aarch_rev16_shleft_mask_imm_p): Likewise.
27592 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27594 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
27595 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
27597 (cortex_a53_extra_costs): Likewise.
27598 (cortex_a57_extra_costs): Likewise.
27599 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
27600 (cortexa7_extra_costs): Likewise.
27601 (cortexa8_extra_costs): Likewise.
27602 (cortexa12_extra_costs): Likewise.
27603 (cortexa15_extra_costs): Likewise.
27604 (v7m_extra_costs): Likewise.
27605 (arm_new_rtx_costs): Handle BSWAP.
27607 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27609 * config/arm/arm.c (cortexa8_extra_costs): New table.
27610 (arm_cortex_a8_tune): New tuning struct.
27611 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
27613 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27615 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
27617 2014-04-23 Richard Biener <rguenther@suse.de>
27619 * Makefile.in (OBJS): Remove loop-unswitch.o.
27620 * tree-pass.h (make_pass_rtl_unswitch): Remove.
27621 * passes.def (pass_rtl_unswitch): Likewise.
27622 * loop-init.c (gate_rtl_unswitch): Likewise.
27623 (rtl_unswitch): Likewise.
27624 (pass_data_rtl_unswitch): Likewise.
27625 (pass_rtl_unswitch): Likewise.
27626 (make_pass_rtl_unswitch): Likewise.
27627 * rtl.h (reversed_condition): Likewise.
27628 (compare_and_jump_seq): Likewise.
27629 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
27631 * loop-unroll.c (compare_and_jump_seq): Likewise.
27633 2014-04-23 Richard Biener <rguenther@suse.de>
27635 PR tree-optimization/60903
27636 * tree-ssa-loop-im.c (analyze_memory_references): Remove
27637 commented code block.
27638 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
27639 loop flags to newly created BBs and edges.
27641 2014-04-23 Nick Clifton <nickc@redhat.com>
27643 * config/msp430/msp430.c (msp430_handle_option): Move function
27645 (msp430_option_override): Simplify mcu and mcpu option handling.
27646 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
27647 support for -mhwmult command line option.
27648 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
27649 -mhwmult command line option.
27650 (msp430_hwmult_enabled): Delete.
27651 (msp43o_output_labelref): Add support for -mhwmult command line option.
27652 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
27653 (umulsidi3): Likewise.
27654 * config/msp430/msp430.opt (mmcu): Add Report attribute.
27655 (mcpu, mlarge, msmall): Likewise.
27656 (mhwmult): New option.
27657 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
27659 (msp430_is_f5_mcu): Remove prototype.
27660 (msp430_use_f5_series_hwmult): Add prototype.
27661 * config/msp430/msp430-opts.h: New file.
27662 * common/config/msp430: New directory.
27663 * common/config/msp430/msp430-common.c: New file.
27664 * config.gcc (msp430): Remove target_has_targetm_common.
27665 * doc/invoke.texi: Document -mhwmult command line option.
27667 2014-04-23 Nick Clifton <nickc@redhat.com>
27669 * config/i386/cygwin.h (ENDFILE_SPEC): Include
27670 default-manifest.o if it can be found in the search path.
27671 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
27673 2014-04-23 Terry Guo <terry.guo@arm.com>
27675 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
27677 2014-04-23 Richard Biener <rguenther@suse.de>
27679 PR middle-end/60895
27680 * tree-inline.c (declare_return_variable): Use mark_addressable.
27682 2014-04-23 Richard Biener <rguenther@suse.de>
27684 PR middle-end/60891
27685 * loop-init.c (loop_optimizer_init): Make sure to apply
27686 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
27688 2014-04-22 Jakub Jelinek <jakub@redhat.com>
27691 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
27693 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
27694 if flag_sanitize_undefined_trap_on_error.
27695 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
27696 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
27697 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
27698 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
27699 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
27700 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
27701 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
27702 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
27703 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
27704 * ubsan.c (ubsan_instrument_unreachable): Return
27705 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
27706 (ubsan_expand_null_ifn): Emit __builtin_trap ()
27707 if flag_sanitize_undefined_trap_on_error and
27708 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
27709 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
27710 instrument_bool_enum_load): Emit __builtin_trap () if
27711 flag_sanitize_undefined_trap_on_error and
27712 __builtin_handle_*_abort () if !flag_sanitize_recover.
27713 * doc/invoke.texi (-fsanitize-recover,
27714 -fsanitize-undefined-trap-on-error): Document.
27716 2014-04-22 Christian Bruel <christian.bruel@st.com>
27718 * config/sh/sh.md (mov<mode>): Replace movQIHI.
27719 Force immediates to SImode.
27721 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
27723 * config/nios2/nios2.md (UNSPEC_ROUND): New.
27724 (lroundsfsi2): New.
27725 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
27726 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
27727 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
27728 (nios2_fpu_insn): Add entry for round.
27729 (N2FPU_NO_ERRNO_P): Define.
27730 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
27732 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
27734 2014-04-22 Richard Henderson <rth@redhat.com>
27736 * config/aarch64/aarch64 (addti3, subti3): New expanders.
27737 (add<GPI>3_compare0): Remove leading * from name.
27738 (add<GPI>3_carryin): Likewise.
27739 (sub<GPI>3_compare0): Likewise.
27740 (sub<GPI>3_carryin): Likewise.
27741 (<su_optab>mulditi3): New expander.
27742 (multi3): New expander.
27743 (madd<GPI>): Remove leading * from name.
27745 2014-04-22 Martin Jambor <mjambor@suse.cz>
27747 * cgraphclones.c (cgraph_function_versioning): Copy
27748 ipa_transforms_to_apply instead of asserting it is empty.
27750 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
27753 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
27754 on count_exp to get mode.
27756 2014-04-22 Andrew Pinski <apinski@cavium.com>
27758 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27759 Handle TLS for ILP32.
27760 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
27761 (tlsie_small_<mode>): this and handle PTR.
27762 (tlsie_small_sidi): New pattern.
27763 (tlsle_small): Change to an expand to handle ILP32.
27764 (tlsle_small_<mode>): New pattern.
27765 (tlsdesc_small): Rename to ...
27766 (tlsdesc_small_<mode>): this and handle PTR.
27768 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27770 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
27772 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
27774 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
27775 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
27776 (aarch64_types_signed_poly_qualifiers): Likewise.
27777 (aarch64_types_unsigned_signed_qualifiers): Likewise.
27778 (aarch64_types_poly_signed_qualifiers): Likewise.
27779 (TYPES_REINTERP_SS): Type macro added.
27780 (TYPES_REINTERP_SU): Likewise.
27781 (TYPES_REINTERP_SP): Likewise.
27782 (TYPES_REINTERP_US): Likewise.
27783 (TYPES_REINTERP_PS): Likewise.
27784 (aarch64_fold_builtin): New expression folding added.
27785 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
27786 Declarations removed.
27787 (REINTERP_SS): Declarations added.
27788 (REINTERP_US): Likewise.
27789 (REINTERP_PS): Likewise.
27790 (REINTERP_SU): Likewise.
27791 (REINTERP_SP): Likewise.
27792 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
27793 (vreinterpretq_p8_f64): Likewise.
27794 (vreinterpret_p16_f64): Likewise.
27795 (vreinterpretq_p16_f64): Likewise.
27796 (vreinterpret_f32_f64): Likewise.
27797 (vreinterpretq_f32_f64): Likewise.
27798 (vreinterpret_f64_f32): Likewise.
27799 (vreinterpret_f64_p8): Likewise.
27800 (vreinterpret_f64_p16): Likewise.
27801 (vreinterpret_f64_s8): Likewise.
27802 (vreinterpret_f64_s16): Likewise.
27803 (vreinterpret_f64_s32): Likewise.
27804 (vreinterpret_f64_s64): Likewise.
27805 (vreinterpret_f64_u8): Likewise.
27806 (vreinterpret_f64_u16): Likewise.
27807 (vreinterpret_f64_u32): Likewise.
27808 (vreinterpret_f64_u64): Likewise.
27809 (vreinterpretq_f64_f32): Likewise.
27810 (vreinterpretq_f64_p8): Likewise.
27811 (vreinterpretq_f64_p16): Likewise.
27812 (vreinterpretq_f64_s8): Likewise.
27813 (vreinterpretq_f64_s16): Likewise.
27814 (vreinterpretq_f64_s32): Likewise.
27815 (vreinterpretq_f64_s64): Likewise.
27816 (vreinterpretq_f64_u8): Likewise.
27817 (vreinterpretq_f64_u16): Likewise.
27818 (vreinterpretq_f64_u32): Likewise.
27819 (vreinterpretq_f64_u64): Likewise.
27820 (vreinterpret_s64_f64): Likewise.
27821 (vreinterpretq_s64_f64): Likewise.
27822 (vreinterpret_u64_f64): Likewise.
27823 (vreinterpretq_u64_f64): Likewise.
27824 (vreinterpret_s8_f64): Likewise.
27825 (vreinterpretq_s8_f64): Likewise.
27826 (vreinterpret_s16_f64): Likewise.
27827 (vreinterpretq_s16_f64): Likewise.
27828 (vreinterpret_s32_f64): Likewise.
27829 (vreinterpretq_s32_f64): Likewise.
27830 (vreinterpret_u8_f64): Likewise.
27831 (vreinterpretq_u8_f64): Likewise.
27832 (vreinterpret_u16_f64): Likewise.
27833 (vreinterpretq_u16_f64): Likewise.
27834 (vreinterpret_u32_f64): Likewise.
27835 (vreinterpretq_u32_f64): Likewise.
27837 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
27839 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
27840 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
27841 (vreinterpret_p8_s8): Likewise.
27842 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
27843 (vreinterpret_p8_s16): Likewise.
27844 (vreinterpret_p8_s32): Likewise.
27845 (vreinterpret_p8_s64): Likewise.
27846 (vreinterpret_p8_f32): Likewise.
27847 (vreinterpret_p8_u8): Likewise.
27848 (vreinterpret_p8_u16): Likewise.
27849 (vreinterpret_p8_u32): Likewise.
27850 (vreinterpret_p8_u64): Likewise.
27851 (vreinterpret_p8_p16): Likewise.
27852 (vreinterpretq_p8_s8): Likewise.
27853 (vreinterpretq_p8_s16): Likewise.
27854 (vreinterpretq_p8_s32): Likewise.
27855 (vreinterpretq_p8_s64): Likewise.
27856 (vreinterpretq_p8_f32): Likewise.
27857 (vreinterpretq_p8_u8): Likewise.
27858 (vreinterpretq_p8_u16): Likewise.
27859 (vreinterpretq_p8_u32): Likewise.
27860 (vreinterpretq_p8_u64): Likewise.
27861 (vreinterpretq_p8_p16): Likewise.
27862 (vreinterpret_p16_s8): Likewise.
27863 (vreinterpret_p16_s16): Likewise.
27864 (vreinterpret_p16_s32): Likewise.
27865 (vreinterpret_p16_s64): Likewise.
27866 (vreinterpret_p16_f32): Likewise.
27867 (vreinterpret_p16_u8): Likewise.
27868 (vreinterpret_p16_u16): Likewise.
27869 (vreinterpret_p16_u32): Likewise.
27870 (vreinterpret_p16_u64): Likewise.
27871 (vreinterpret_p16_p8): Likewise.
27872 (vreinterpretq_p16_s8): Likewise.
27873 (vreinterpretq_p16_s16): Likewise.
27874 (vreinterpretq_p16_s32): Likewise.
27875 (vreinterpretq_p16_s64): Likewise.
27876 (vreinterpretq_p16_f32): Likewise.
27877 (vreinterpretq_p16_u8): Likewise.
27878 (vreinterpretq_p16_u16): Likewise.
27879 (vreinterpretq_p16_u32): Likewise.
27880 (vreinterpretq_p16_u64): Likewise.
27881 (vreinterpretq_p16_p8): Likewise.
27882 (vreinterpret_f32_s8): Likewise.
27883 (vreinterpret_f32_s16): Likewise.
27884 (vreinterpret_f32_s32): Likewise.
27885 (vreinterpret_f32_s64): Likewise.
27886 (vreinterpret_f32_u8): Likewise.
27887 (vreinterpret_f32_u16): Likewise.
27888 (vreinterpret_f32_u32): Likewise.
27889 (vreinterpret_f32_u64): Likewise.
27890 (vreinterpret_f32_p8): Likewise.
27891 (vreinterpret_f32_p16): Likewise.
27892 (vreinterpretq_f32_s8): Likewise.
27893 (vreinterpretq_f32_s16): Likewise.
27894 (vreinterpretq_f32_s32): Likewise.
27895 (vreinterpretq_f32_s64): Likewise.
27896 (vreinterpretq_f32_u8): Likewise.
27897 (vreinterpretq_f32_u16): Likewise.
27898 (vreinterpretq_f32_u32): Likewise.
27899 (vreinterpretq_f32_u64): Likewise.
27900 (vreinterpretq_f32_p8): Likewise.
27901 (vreinterpretq_f32_p16): Likewise.
27902 (vreinterpret_s64_s8): Likewise.
27903 (vreinterpret_s64_s16): Likewise.
27904 (vreinterpret_s64_s32): Likewise.
27905 (vreinterpret_s64_f32): Likewise.
27906 (vreinterpret_s64_u8): Likewise.
27907 (vreinterpret_s64_u16): Likewise.
27908 (vreinterpret_s64_u32): Likewise.
27909 (vreinterpret_s64_u64): Likewise.
27910 (vreinterpret_s64_p8): Likewise.
27911 (vreinterpret_s64_p16): Likewise.
27912 (vreinterpretq_s64_s8): Likewise.
27913 (vreinterpretq_s64_s16): Likewise.
27914 (vreinterpretq_s64_s32): Likewise.
27915 (vreinterpretq_s64_f32): Likewise.
27916 (vreinterpretq_s64_u8): Likewise.
27917 (vreinterpretq_s64_u16): Likewise.
27918 (vreinterpretq_s64_u32): Likewise.
27919 (vreinterpretq_s64_u64): Likewise.
27920 (vreinterpretq_s64_p8): Likewise.
27921 (vreinterpretq_s64_p16): Likewise.
27922 (vreinterpret_u64_s8): Likewise.
27923 (vreinterpret_u64_s16): Likewise.
27924 (vreinterpret_u64_s32): Likewise.
27925 (vreinterpret_u64_s64): Likewise.
27926 (vreinterpret_u64_f32): Likewise.
27927 (vreinterpret_u64_u8): Likewise.
27928 (vreinterpret_u64_u16): Likewise.
27929 (vreinterpret_u64_u32): Likewise.
27930 (vreinterpret_u64_p8): Likewise.
27931 (vreinterpret_u64_p16): Likewise.
27932 (vreinterpretq_u64_s8): Likewise.
27933 (vreinterpretq_u64_s16): Likewise.
27934 (vreinterpretq_u64_s32): Likewise.
27935 (vreinterpretq_u64_s64): Likewise.
27936 (vreinterpretq_u64_f32): Likewise.
27937 (vreinterpretq_u64_u8): Likewise.
27938 (vreinterpretq_u64_u16): Likewise.
27939 (vreinterpretq_u64_u32): Likewise.
27940 (vreinterpretq_u64_p8): Likewise.
27941 (vreinterpretq_u64_p16): Likewise.
27942 (vreinterpret_s8_s16): Likewise.
27943 (vreinterpret_s8_s32): Likewise.
27944 (vreinterpret_s8_s64): Likewise.
27945 (vreinterpret_s8_f32): Likewise.
27946 (vreinterpret_s8_u8): Likewise.
27947 (vreinterpret_s8_u16): Likewise.
27948 (vreinterpret_s8_u32): Likewise.
27949 (vreinterpret_s8_u64): Likewise.
27950 (vreinterpret_s8_p8): Likewise.
27951 (vreinterpret_s8_p16): Likewise.
27952 (vreinterpretq_s8_s16): Likewise.
27953 (vreinterpretq_s8_s32): Likewise.
27954 (vreinterpretq_s8_s64): Likewise.
27955 (vreinterpretq_s8_f32): Likewise.
27956 (vreinterpretq_s8_u8): Likewise.
27957 (vreinterpretq_s8_u16): Likewise.
27958 (vreinterpretq_s8_u32): Likewise.
27959 (vreinterpretq_s8_u64): Likewise.
27960 (vreinterpretq_s8_p8): Likewise.
27961 (vreinterpretq_s8_p16): Likewise.
27962 (vreinterpret_s16_s8): Likewise.
27963 (vreinterpret_s16_s32): Likewise.
27964 (vreinterpret_s16_s64): Likewise.
27965 (vreinterpret_s16_f32): Likewise.
27966 (vreinterpret_s16_u8): Likewise.
27967 (vreinterpret_s16_u16): Likewise.
27968 (vreinterpret_s16_u32): Likewise.
27969 (vreinterpret_s16_u64): Likewise.
27970 (vreinterpret_s16_p8): Likewise.
27971 (vreinterpret_s16_p16): Likewise.
27972 (vreinterpretq_s16_s8): Likewise.
27973 (vreinterpretq_s16_s32): Likewise.
27974 (vreinterpretq_s16_s64): Likewise.
27975 (vreinterpretq_s16_f32): Likewise.
27976 (vreinterpretq_s16_u8): Likewise.
27977 (vreinterpretq_s16_u16): Likewise.
27978 (vreinterpretq_s16_u32): Likewise.
27979 (vreinterpretq_s16_u64): Likewise.
27980 (vreinterpretq_s16_p8): Likewise.
27981 (vreinterpretq_s16_p16): Likewise.
27982 (vreinterpret_s32_s8): Likewise.
27983 (vreinterpret_s32_s16): Likewise.
27984 (vreinterpret_s32_s64): Likewise.
27985 (vreinterpret_s32_f32): Likewise.
27986 (vreinterpret_s32_u8): Likewise.
27987 (vreinterpret_s32_u16): Likewise.
27988 (vreinterpret_s32_u32): Likewise.
27989 (vreinterpret_s32_u64): Likewise.
27990 (vreinterpret_s32_p8): Likewise.
27991 (vreinterpret_s32_p16): Likewise.
27992 (vreinterpretq_s32_s8): Likewise.
27993 (vreinterpretq_s32_s16): Likewise.
27994 (vreinterpretq_s32_s64): Likewise.
27995 (vreinterpretq_s32_f32): Likewise.
27996 (vreinterpretq_s32_u8): Likewise.
27997 (vreinterpretq_s32_u16): Likewise.
27998 (vreinterpretq_s32_u32): Likewise.
27999 (vreinterpretq_s32_u64): Likewise.
28000 (vreinterpretq_s32_p8): Likewise.
28001 (vreinterpretq_s32_p16): Likewise.
28002 (vreinterpret_u8_s8): Likewise.
28003 (vreinterpret_u8_s16): Likewise.
28004 (vreinterpret_u8_s32): Likewise.
28005 (vreinterpret_u8_s64): Likewise.
28006 (vreinterpret_u8_f32): Likewise.
28007 (vreinterpret_u8_u16): Likewise.
28008 (vreinterpret_u8_u32): Likewise.
28009 (vreinterpret_u8_u64): Likewise.
28010 (vreinterpret_u8_p8): Likewise.
28011 (vreinterpret_u8_p16): Likewise.
28012 (vreinterpretq_u8_s8): Likewise.
28013 (vreinterpretq_u8_s16): Likewise.
28014 (vreinterpretq_u8_s32): Likewise.
28015 (vreinterpretq_u8_s64): Likewise.
28016 (vreinterpretq_u8_f32): Likewise.
28017 (vreinterpretq_u8_u16): Likewise.
28018 (vreinterpretq_u8_u32): Likewise.
28019 (vreinterpretq_u8_u64): Likewise.
28020 (vreinterpretq_u8_p8): Likewise.
28021 (vreinterpretq_u8_p16): Likewise.
28022 (vreinterpret_u16_s8): Likewise.
28023 (vreinterpret_u16_s16): Likewise.
28024 (vreinterpret_u16_s32): Likewise.
28025 (vreinterpret_u16_s64): Likewise.
28026 (vreinterpret_u16_f32): Likewise.
28027 (vreinterpret_u16_u8): Likewise.
28028 (vreinterpret_u16_u32): Likewise.
28029 (vreinterpret_u16_u64): Likewise.
28030 (vreinterpret_u16_p8): Likewise.
28031 (vreinterpret_u16_p16): Likewise.
28032 (vreinterpretq_u16_s8): Likewise.
28033 (vreinterpretq_u16_s16): Likewise.
28034 (vreinterpretq_u16_s32): Likewise.
28035 (vreinterpretq_u16_s64): Likewise.
28036 (vreinterpretq_u16_f32): Likewise.
28037 (vreinterpretq_u16_u8): Likewise.
28038 (vreinterpretq_u16_u32): Likewise.
28039 (vreinterpretq_u16_u64): Likewise.
28040 (vreinterpretq_u16_p8): Likewise.
28041 (vreinterpretq_u16_p16): Likewise.
28042 (vreinterpret_u32_s8): Likewise.
28043 (vreinterpret_u32_s16): Likewise.
28044 (vreinterpret_u32_s32): Likewise.
28045 (vreinterpret_u32_s64): Likewise.
28046 (vreinterpret_u32_f32): Likewise.
28047 (vreinterpret_u32_u8): Likewise.
28048 (vreinterpret_u32_u16): Likewise.
28049 (vreinterpret_u32_u64): Likewise.
28050 (vreinterpret_u32_p8): Likewise.
28051 (vreinterpret_u32_p16): Likewise.
28052 (vreinterpretq_u32_s8): Likewise.
28053 (vreinterpretq_u32_s16): Likewise.
28054 (vreinterpretq_u32_s32): Likewise.
28055 (vreinterpretq_u32_s64): Likewise.
28056 (vreinterpretq_u32_f32): Likewise.
28057 (vreinterpretq_u32_u8): Likewise.
28058 (vreinterpretq_u32_u16): Likewise.
28059 (vreinterpretq_u32_u64): Likewise.
28060 (vreinterpretq_u32_p8): Likewise.
28061 (vreinterpretq_u32_p16): Likewise.
28063 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28065 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28067 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28069 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28070 (vqnegd_s64): Likewise.
28071 (vqabs_s64): Likewise.
28072 (vqabsd_s64): Likewise.
28074 2014-04-22 Richard Henderson <rth@redhat.com>
28076 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28077 computation to the top of the loop.
28079 2014-04-22 Renlin <renlin.li@arm.com>
28080 Jiong Wang <jiong.wang@arm.com>
28082 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28083 * config/aarch64/aarch64.c (aarch64_layout_frame)
28084 (aarch64_initial_elimination_offset): Likewise.
28086 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28088 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28091 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28093 * machmode.h (bitwise_mode_for_mode): Declare.
28094 * stor-layout.h (bitwise_type_for_mode): Likewise.
28095 * stor-layout.c (bitwise_mode_for_mode): New function.
28096 (bitwise_type_for_mode): Likewise.
28097 * builtins.c (fold_builtin_memory_op): Use it instead of
28098 int_mode_for_mode and build_nonstandard_integer_type.
28100 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28102 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28103 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28104 (*-*-solaris2*): Simplify.
28105 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28106 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28107 *-*-solaris2.9* handling.
28109 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28111 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28112 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28113 handling, simplify.
28114 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28115 * configure: Regenerate.
28117 * config/i386/sol2-9.h: Remove.
28119 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28120 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28121 Remove Solaris 9 references.
28123 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28125 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28126 (floatuns<GPI:mode><GPF:mode>2): Remove.
28127 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28128 and floatuns conversions.
28129 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28130 and floatuns conversions.
28131 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28132 (w1,w2): New mode attributes for inequal width conversions.
28134 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28136 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28137 the output asm format.
28139 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28141 * config/aarch64/aarch64-simd.md
28142 (aarch64_cm<optab>di): Always split.
28143 (*aarch64_cm<optab>di): New.
28144 (aarch64_cmtstdi): Always split.
28145 (*aarch64_cmtstdi): New.
28147 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28149 PR tree-optimization/60823
28150 * omp-low.c (ipa_simd_modify_function_body): Go through
28151 all SSA_NAMEs and for those refering to vector arguments
28152 which are going to be replaced adjust SSA_NAME_VAR and,
28153 if it is a default definition, change it into a non-default
28154 definition assigned at the beginning of function from new_decl.
28155 (ipa_simd_modify_stmt_ops): Rewritten.
28156 * tree-dfa.c (set_ssa_default_def): When removing default def,
28157 check for NULL loc instead of NULL *loc.
28159 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28161 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28162 restrictions on core registers for DImode values in Thumb2.
28164 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28166 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28167 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28169 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28171 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28172 (*iordi_notzesidi_di): Likewise.
28173 (*iordi_notsesidi_di): Likewise.
28175 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28177 * config/arm/arm-protos.h (tune_params): New struct members.
28178 * config/arm/arm.c: Initialise tune_params per processor.
28179 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28180 for speed, based on new tune_params.
28182 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28184 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28185 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28186 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28187 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28188 * config/aarch64/arm_neon.h (vrnd_f64): Added.
28189 (vrnda_f64): Likewise.
28190 (vrndi_f64): Likewise.
28191 (vrndm_f64): Likewise.
28192 (vrndn_f64): Likewise.
28193 (vrndp_f64): Likewise.
28194 (vrndx_f64): Likewise.
28196 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28198 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28199 GET_MODE_SIZE argument is enum machine_mode.
28201 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28204 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28205 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28207 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
28209 PR middle-end/60281
28210 * asan.c (asan_emit_stack_protection): Force the base to align to
28211 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
28212 appropriate bits if STRICT_ALIGNMENT.
28213 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28215 (expand_used_vars): Leave a space in the stack frame for alignment
28216 if STRICT_ALIGNMENT.
28218 2014-04-21 David Malcolm <dmalcolm@redhat.com>
28220 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28222 (gimple_store_p): Likewise.
28223 (gimple_assign_load_p): Likewise.
28224 (gimple_assign_cast_p): Likewise.
28225 (gimple_clobber_p): Likewise.
28227 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28228 rather than a gimple.
28229 (gimple_assign_cast_p): Likewise.
28231 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28234 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28235 If mode is DDmode and TARGET_E500_DOUBLE allow move.
28237 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28238 more debug information for E500 if -mdebug=reg.
28240 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
28243 * config/i386/i386.c (ix86_expand_builtin)
28244 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28245 register for target RTX.
28246 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28248 2014-04-18 Cong Hou <congh@google.com>
28250 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28251 the widen-mult pattern by handling two operands with different sizes,
28252 and operands whose size is smaller than half of the result type.
28254 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28256 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28257 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28258 (do_estimate_edge_time): Compute it.
28259 * ipa-inline.c (want_inline_small_function_p): Bypass
28260 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28262 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28264 * ipa-inline.c (spec_rem): New static variable.
28265 (dump_overall_stats): New function.
28266 (dump_inline_stats): New function.
28268 2014-04-18 Richard Henderson <rth@redhat.com>
28270 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28271 to GET_MODE_SIZE, not a reg_class_t.
28273 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28275 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28276 (vsx_xxmrglw_<mode>): Likewise.
28278 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
28281 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28282 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28283 (rs6000_init_hard_regno_mode_ok): Likewise.
28285 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
28287 * ipa-inline.c (inline_small_functions): Account only non-cold
28289 * doc/invoke.texi (inline-unit-growth): Update documentation.
28291 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
28293 * config/rs6000/rs6000.md (addti3, subti3): New.
28295 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
28298 * config/i386/i386.c (ix86_expand_clear): Remove outdated
28299 comment. Check optimize_insn_for_size_p instead of
28300 optimize_insn_for_speed_p.
28302 2014-04-17 Martin Jambor <mjambor@suse.cz>
28304 * gimple-iterator.c (gsi_start_edge): New function.
28305 * gimple-iterator.h (gsi_start_edge): Declare.
28306 * tree-sra.c (single_non_eh_succ): New function.
28307 (disqualify_ops_if_throwing_stmt): Renamed to
28308 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
28309 having one non-EH successor BB.
28310 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28311 generate loads into replacements.
28312 (sra_modify_assign): Likewise and and also use the simple path for
28314 (sra_modify_function_body): Commit statements on edges.
28316 2014-04-17 Richard Biener <rguenther@suse.de>
28318 PR middle-end/60849
28319 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28320 comparison results and add clarifying comment.
28322 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28324 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28325 (blank_mode): Initialize it.
28326 (emit_mode_size_inline, emit_mode_nunits_inline,
28327 emit_mode_inner_inline): New functions.
28328 (emit_insn_modes_h): Call them and surround their output with
28329 #if GCC_VERSION >= 4001 ... #endif.
28330 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28331 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28332 mode_* arrays if the argument is __builtin_constant_p.
28333 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28334 is enum machine_mode.
28336 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28338 * passes.c (opt_pass::execute): Adjust.
28339 (pass_manager::execute_pass_mode_switching): Likewise.
28340 (early_local_passes::execute): Likewise.
28341 (execute_one_pass): Pass cfun to the pass's execute method.
28342 * tree-pass.h (opt_pass::execute): Add function * argument.
28343 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28344 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28345 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28346 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28347 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28348 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28349 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28350 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28351 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28352 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28353 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28354 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28355 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28356 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28357 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28358 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28359 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28360 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28361 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28362 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28363 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28364 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28365 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28366 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28367 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28368 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28369 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28370 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28371 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28374 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28376 * passes.c (opt_pass::gate): Take function * argument.
28377 (gate_all_early_local_passes): Merge into
28378 (early_local_passes::gate): this.
28379 (gate_all_early_optimizations): Merge into
28380 (all_early_optimizations::gate): this.
28381 (gate_all_optimizations): Mege into
28382 (all_optimizations::gate): this.
28383 (gate_all_optimizations_g): Merge into
28384 (all_optimizations_g::gate): this.
28385 (gate_rest_of_compilation): Mege into
28386 (rest_of_compilation::gate): this.
28387 (gate_postreload): Merge into
28388 (postreload::gate): this.
28389 (dump_one_pass): Pass cfun to the pass's gate method.
28390 (execute_ipa_summary_passes): Likewise.
28391 (execute_one_pass): Likewise.
28392 (ipa_write_summaries_2): Likewise.
28393 (ipa_write_optimization_summaries_1): Likewise.
28394 (ipa_read_summaries_1): Likewise.
28395 (ipa_read_optimization_summaries_1): Likewise.
28396 (execute_ipa_stmt_fixups): Likewise.
28397 * tree-pass.h (opt_pass::gate): Add function * argument.
28398 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28399 combine-stack-adj.c, combine.c, compare-elim.c,
28400 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28401 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28402 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28403 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
28404 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28405 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28406 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28407 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28408 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28409 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28410 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28411 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28412 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28413 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28414 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28415 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28416 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28417 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28418 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28419 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28420 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28421 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28422 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28423 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28424 var-tracking.c, vtable-verify.c, web.c: Adjust.
28426 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28428 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28429 * configure: Regenerate.
28431 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28433 * passes.c (dump_one_pass): don't check pass->has_gate.
28434 (execute_ipa_summary_passes): Likewise.
28435 (execute_one_pass): Likewise.
28436 (ipa_write_summaries_2): Likewise.
28437 (ipa_write_optimization_summaries_1): Likewise.
28438 (ipa_read_optimization_summaries_1): Likewise.
28439 (execute_ipa_stmt_fixups): Likewise.
28440 * tree-pass.h (pass_data::has_gate): Remove.
28441 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28442 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28443 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28444 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28445 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28446 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28447 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28448 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28449 gimple-low.c, gimple-ssa-isolate-paths.c,
28450 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28451 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
28452 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28453 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
28454 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
28455 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
28456 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
28457 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
28458 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
28459 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28460 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28461 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28462 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28463 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28464 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28465 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28466 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28467 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28468 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28469 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28470 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28471 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28474 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28476 * pass_manager.h (pass_manager::register_dump_files_1): Remove
28478 * passes.c (pass_manager::register_dump_files_1): Merge into
28479 (pass_manager::register_dump_files): this, and remove its handling of
28480 properties since the pass always has the properties anyway.
28481 (pass_manager::pass_manager): Adjust.
28483 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28485 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
28486 * passes.c (pass_manager::register_dump_files_1): Remove dead code
28487 dealing with properties.
28488 (pass_manager::register_dump_files): Adjust.
28490 2014-03-20 Mark Wielaard <mjw@redhat.com>
28492 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
28493 then represent the bound as normal constant value.
28495 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28498 Forward port from 4.8 branch
28499 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
28501 * config/i386/bmiintrin.h (_blsi_u32): New.
28502 (_blsi_u64): Ditto.
28503 (_blsr_u32): Ditto.
28504 (_blsr_u64): Ditto.
28505 (_blsmsk_u32): Ditto.
28506 (_blsmsk_u64): Ditto.
28507 (_tzcnt_u32): Ditto.
28508 (_tzcnt_u64): Ditto.
28510 2014-04-17 Kito Cheng <kito@0xlab.org>
28512 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
28514 2014-04-17 Richard Biener <rguenther@suse.de>
28516 PR middle-end/60849
28517 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
28518 boolean results for comparisons.
28520 2014-04-17 Richard Biener <rguenther@suse.de>
28522 PR tree-optimization/60836
28523 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
28524 initial PHI args to be gimple values.
28526 2014-04-17 Richard Biener <rguenther@suse.de>
28528 PR tree-optimization/60841
28529 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
28530 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
28531 of stmts to SLP build.
28532 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
28533 (vect_analyze_slp): Likewise.
28534 (vect_analyze_slp_instance): Likewise.
28535 (vect_build_slp_tree): Limit overall SLP tree growth.
28536 * tree-vectorizer.h (vect_analyze_data_refs,
28537 vect_analyze_slp): Adjust prototypes.
28539 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28541 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
28544 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28546 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
28547 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
28548 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
28549 for TARGET_SLOW_PSHUFB
28551 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28553 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
28554 * config/i386/i386.c (intel_cost): Ditto.
28556 2014-04-17 Joey Ye <joey.ye@arm.com>
28558 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
28560 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28562 * opts.c (common_handle_option): Disable -fipa-reference coorectly
28563 with -fuse-profile.
28565 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28567 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
28568 (type_all_derivations_known_p): New predicate.
28569 (type_all_ctors_visible_p): New predicate.
28570 (type_possibly_instantiated_p): New predicate.
28571 (get_odr_type): Compute all_derivations_known.
28572 (dump_odr_type): Dump the flag.
28573 (maybe_record_type): Cleanup.
28574 (record_target_from_binfo): Add bases_to_consider array;
28575 record bases for types w/o instances and skip CXX destructor.
28576 (possible_polymorphic_call_targets_1): Add bases_to_consider
28577 and consider_construction parameters; check if type may have instance.
28578 (get_polymorphic_call_info): Set maybe_in_construction to true
28579 when we know nothing.
28580 (record_targets_from_bases): Skip CXX destructors; they are
28581 never called for types in construction.
28582 (possible_polymorphic_call_targets): Do not record target when
28583 type may not have instance.
28585 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28588 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
28589 external aliases alive, too.
28591 2014-04-16 Andrew Pinski <apinski@cavium.com>
28593 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
28596 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
28598 * final.c (compute_alignments): Do not apply loop alignment to a block
28599 falling through to the exit.
28601 2014-04-16 Catherine Moore <clm@codesourcery.com>
28603 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
28604 Adjust constraints for microMIPS store patterns.
28606 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
28608 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
28610 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
28612 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
28613 (append_use): Run at -O0.
28614 (append_vdef): Likewise.
28615 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
28616 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
28618 2014-04-16 Jakub Jelinek <jakub@redhat.com>
28620 PR tree-optimization/60844
28621 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
28622 (propagate_op_to_single_use, remove_visited_stmt_chain,
28623 linearize_expr, repropagate_negates, reassociate_bb): Use it
28624 instead of gsi_remove.
28626 2014-04-16 Martin Jambor <mjambor@suse.cz>
28628 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
28629 ipa_transforms_to_apply.
28630 (cgraph_function_versioning): Assert that old_node has empty
28631 ipa_transforms_to_apply.
28632 * trans-mem.c (ipa_tm_create_version): Likewise.
28633 * tree-inline.c (tree_function_versioning): Do not duplicate
28634 ipa_transforms_to_apply.
28636 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28639 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
28641 Pass necessary as flags on 64-bit Solaris/x86.
28642 Use lowercase relocs for x86_64-*-*.
28643 * configure: Regenerate.
28645 2014-04-15 Jan Hubicka <jh@suse.cz>
28647 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
28648 (maybe_record_node, likely_target_p): Use it.
28650 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28653 Revert following patch
28655 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28658 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
28659 software floating point or no floating point registers, do not
28660 allow any type in the FPRs. Eliminate a test for SPE SIMD types
28661 in GPRs that occurs after we tested for GPRs that would never be
28664 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
28665 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
28666 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
28667 specifically allow DDmode, since that does not use the SPE SIMD
28670 2014-03-21 Mark Wielaard <mjw@redhat.com>
28672 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
28673 as unsigned or int depending on type and value used.
28675 2014-04-15 Richard Biener <rguenther@suse.de>
28677 PR rtl-optimization/56965
28678 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
28679 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
28681 * alias.c (true_dependence_1): Do not call
28682 nonoverlapping_component_refs_p.
28683 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
28684 nonoverlapping_component_refs_p.
28685 (indirect_refs_may_alias_p): Likewise.
28687 2014-04-15 Teresa Johnson <tejohnson@google.com>
28689 * cfg.c (dump_bb_info): Fix flags check.
28690 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
28692 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28694 PR rtl-optimization/60663
28695 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
28698 2014-04-15 Richard Biener <rguenther@suse.de>
28700 * lto-streamer.h (LTO_major_version): Bump to 4.
28702 2014-04-15 Richard Biener <rguenther@suse.de>
28704 * common.opt (lto_partition_model): New enum.
28705 (flto-partition=): Merge separate options with a single with argument,
28706 add -flto-partition=one support.
28707 * flag-types.h (enum lto_partition_model): Declare.
28708 * opts.c (finish_options): Remove duplicate -flto-partition=
28710 * lto-wrapper.c (run_gcc): Adjust.
28712 2014-04-15 Richard Biener <rguenther@suse.de>
28714 * alias.c (ncr_compar): New function.
28715 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
28717 2014-04-15 Richard Biener <rguenther@suse.de>
28719 * alias.c (record_component_aliases): Do not walk BINFOs.
28721 2014-04-15 Richard Biener <rguenther@suse.de>
28723 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28724 Add struct function argument and adjust.
28725 (find_func_aliases_for_call): Likewise.
28726 (find_func_aliases): Likewise.
28727 (find_func_clobbers): Likewise.
28728 (intra_create_variable_infos): Likewise.
28729 (compute_points_to_sets): Likewise.
28730 (ipa_pta_execute): Adjust. Do not push/pop cfun.
28732 2014-04-15 Richard Biener <rguenther@suse.de>
28734 * tree.c (iterative_hash_expr): Use enum tree_code_class
28735 to store TREE_CODE_CLASS.
28736 (tree_block): Likewise.
28737 (tree_set_block): Likewise.
28738 * tree.h (fold_build_pointer_plus_loc): Use
28739 convert_to_ptrofftype_loc.
28741 2014-04-15 Jakub Jelinek <jakub@redhat.com>
28744 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
28747 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
28749 * cfgloop.h (struct loop): Move force_vectorize down.
28750 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
28751 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
28752 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
28753 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
28754 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
28755 * tree-core.h (enum annot_expr_kind): Add new kind values.
28756 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
28757 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
28759 * tree.def (ANNOTATE_EXPR): Tweak comment.
28761 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
28763 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
28766 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
28768 * tree.h (TYPE_IDENTIFIER): Declare.
28769 * tree.c (subrange_type_for_debug_p): Use it.
28770 * godump.c (go_format_type): Likewise.
28771 * dwarf2out.c (is_cxx_auto, modified_type_die,
28772 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
28773 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
28775 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
28778 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
28780 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
28782 * config/i386/i386.c (examine_argument): Return bool. Return true if
28783 parameter should be passed in memory.
28784 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
28785 (construct_container): Update calls to examine_argument.
28786 (function_arg_advance_64): Ditto.
28787 (return_in_memory_32): Merge with ix86_return_in_memory.
28788 (return_in_memory_64): Ditto.
28789 (return_in_memory_ms_64): Ditto.
28791 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
28793 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
28794 * coverage.c (coverage_compute_profile_id): Handle externally visible
28797 2014-04-14 Martin Jambor <mjambor@suse.cz>
28799 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
28800 DECL_DISREGARD_INLINE_LIMITS functions.
28802 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
28805 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
28807 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
28810 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
28811 optimize_insn_for_speed_p instead of
28812 optimize_function_for_speed_p.
28814 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
28816 * doc/invoke.texi (free): Document AArch64.
28818 2014-04-14 Richard Biener <rguenther@suse.de>
28820 PR tree-optimization/60042
28821 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
28822 (insert_into_preds_of_block): Do not prevent PHI insertion
28823 for REFERENCE exprs here ...
28824 (eliminate_dom_walker::before_dom_children): ... but prevent
28825 their use here under similar conditions when applied to the
28826 IL after PRE optimizations.
28828 2014-04-14 Richard Biener <rguenther@suse.de>
28830 * passes.def: Move early points-to after early SRA.
28832 2014-04-14 Richard Biener <rguenther@suse.de>
28834 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
28835 check for which sign-changes we allow when forwarding
28836 a converted value into a switch.
28838 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
28840 * stor-layout.c (place_field): Finalize non-constant offset for the
28843 2014-04-14 Richard Biener <rguenther@suse.de>
28845 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
28847 (expand_switch_using_bit_tests_p): Likewise.
28848 (process_switch): Compute and pass on speed_p based on the
28850 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
28851 optimize_bb_for_speed_p.
28853 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
28855 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
28856 * function.h (struct function): Rename has_force_vect_loops into
28857 has_force_vectorize_loops.
28858 * lto-streamer-in.c (input_cfg): Adjust for renaming.
28859 (input_struct_function_base): Likewise.
28860 * lto-streamer-out.c (output_cfg): Likewise.
28861 (output_struct_function_base): Likewise.
28862 * omp-low.c (expand_omp_simd): Likewise.
28863 * tree-cfg.c (move_sese_region_to_fn): Likewise.
28864 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
28865 (version_loop_for_if_conversion): Likewise.
28866 (tree_if_conversion): Likewise.
28867 (main_tree_if_conversion): Likewise.
28868 (gate_tree_if_conversion): Likewise.
28869 * tree-inline.c (copy_loops): Likewise.
28870 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
28871 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
28872 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
28873 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
28874 * tree-vectorizer.c (vectorize_loops): Likewise.
28875 * tree-vectorizer.h (unlimited_cost_model): Likewise.
28877 2014-04-14 Richard Biener <rguenther@suse.de>
28880 * lto-streamer-out.c (wrap_refs): New function.
28881 (lto_output): Wrap symbol references in global initializes in
28882 type-preserving MEM_REFs.
28884 2014-04-14 Christian Bruel <christian.bruel@st.com>
28886 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
28888 2014-04-14 Christian Bruel <christian.bruel@st.com>
28890 * config/sh/sh.md (setmemqi): New expand pattern.
28891 * config/sh/sh.h (CLEAR_RATIO): Define.
28892 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
28893 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
28895 2014-04-14 Richard Biener <rguenther@suse.de>
28897 PR middle-end/55022
28898 * fold-const.c (negate_expr_p): Don't negate directional rounding
28900 (fold_negate_expr): Likewise.
28902 2014-04-14 Richard Biener <rguenther@suse.de>
28904 PR tree-optimization/59817
28905 PR tree-optimization/60453
28906 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
28907 recursion to catch all CHRECs in the scalar evolution and restrict
28908 the predicate for the remains appropriately.
28910 2014-04-12 Catherine Moore <clm@codesourcery.com>
28912 * config/mips/constraints.md: Add new register constraint "kb".
28913 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
28914 (*movhi_internal): Likewise.
28915 (*movqi_internal): Likewise.
28916 * config/mips/mips.h (M16_STORE_REGS): New register class.
28917 (REG_CLASS_NAMES): Add M16_STORE_REGS.
28918 (REG_CLASS_CONTENTS): Likewise.
28919 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
28921 2014-04-11 Tobias Burnus <burnus@net-b.de>
28924 * doc/invoke.texi (-Wformat-signedness): Document it.
28925 (Wformat=2): Mention that this enables -Wformat-signedness.
28927 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
28929 * common/config/epiphany/epiphany-common.c
28930 (epiphany_option_optimization_table): Enable section anchors by
28931 default at -O1 or higher.
28932 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
28933 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
28934 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
28935 carries no extra cost.
28936 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
28937 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
28938 * config/epiphany/predicates.md (memclob_operand): New predicate.
28939 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
28940 Use memclob_operand predicate and X constraint for operand 3.
28942 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
28944 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
28945 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
28948 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
28950 PR rtl-optimization/60651
28951 * mode-switching.c (optimize_mode_switching): Make sure to emit
28952 sets of a lower numbered entity before sets of a higher numbered
28953 entity to a mode of the same or lower priority.
28954 When creating a seginfo for a basic block that starts with a code
28955 label, move the insertion point past the code label.
28956 (new_seginfo): Document and enforce requirement that
28957 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
28958 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
28959 * doc/tm.texi: Regenerate.
28961 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
28964 * config/arc/arc.c (arc_save_restore): Fix assert typo.
28966 2013-04-11 Jakub Jelinek <jakub@redhat.com>
28968 * BASE-VER: Set to 4.10.0.
28970 2014-04-11 Tobias Burnus <burnus@net-b.de>
28973 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
28974 * doc/gcc.texi (Service): Update description in the @menu
28975 * doc/invoke.texi (Option Summary): Remove misplaced and
28978 2014-04-11 Steve Ellcey <sellcey@mips.com>
28979 Jakub Jelinek <jakub@redhat.com>
28981 PR middle-end/60556
28982 * expr.c (convert_move): Use emit_store_flag_force instead of
28983 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
28986 2014-04-11 Richard Biener <rguenther@suse.de>
28988 PR middle-end/60797
28989 * varasm.c (assemble_alias): Avoid endless error reporting
28990 recursion by setting TREE_ASM_WRITTEN.
28992 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28994 * config/s390/s390.md: Add a splitter for NOT rtx.
28996 2014-04-11 Jakub Jelinek <jakub@redhat.com>
28998 PR rtl-optimization/60663
28999 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29001 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29002 Jakub Jelinek <jakub@redhat.com>
29005 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29006 flag from decl_node to node.
29008 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29011 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29012 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29013 ameliorating the cases where it can be.
29015 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29018 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29020 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29021 (loadsync_<mode>): Change mode.
29022 (load_quadpti, store_quadpti): New.
29023 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29024 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29025 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29027 2014-04-09 Cong Hou <congh@google.com>
29030 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29033 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29035 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29036 instead of vnor to exploit possible fusion opportunity in the
29038 (altivec_expand_vec_perm_const_le): Likewise.
29040 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29042 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29043 (loadsync_<mode>): Change mode.
29044 (load_quadpti, store_quadpti): New.
29045 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29046 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29048 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29051 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29052 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29053 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29055 2014-04-08 Richard Biener <rguenther@suse.de>
29057 PR middle-end/60706
29058 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29059 a 64bit widest int print double-int similar to on HWI64 hosts.
29061 2014-04-08 Richard Biener <rguenther@suse.de>
29063 PR tree-optimization/60785
29064 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29065 default defs properly.
29067 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29069 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29070 (Weffc++): Likewise.
29072 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29074 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29075 set completep to false rather than true.
29077 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29080 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29081 ARM_TARGET2_DWARF_FORMAT.
29083 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29086 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29087 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29090 2014-04-07 Richard Biener <rguenther@suse.de>
29092 PR tree-optimization/60766
29093 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29094 (may_eliminate_iv): Convert cand_value_at result to desired type.
29096 2014-04-07 Jason Merrill <jason@redhat.com>
29099 * common.opt (-fno-gnu-unique): Add.
29100 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29102 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29104 * haifa-sched.c: Fix outdated function reference and minor
29105 grammar errors in introductory comment.
29107 2014-04-07 Richard Biener <rguenther@suse.de>
29109 PR middle-end/60750
29110 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29111 for noreturn calls.
29112 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29114 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29117 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29118 size accounting for thunks.
29119 (pa_asm_output_mi_thunk): Use final_start_function() and
29120 final_end_function() to output function start and end directives.
29122 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29124 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29125 device specific ISA/ feature information. Remove short_sp and
29126 errata_skip ds. Add avr_device_specific_features enum to have device
29128 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29129 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29130 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29131 updated device specific info.
29132 * config/avr/avr-mcus.def: Merge device specific details to
29133 dev_attribute field.
29134 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29136 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29137 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29138 assembler if RMW isa supported by current device.
29139 * config/avr/genmultilib.awk: Update as device info structure changed.
29140 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29142 2014-04-04 Cong Hou <congh@google.com>
29144 PR tree-optimization/60656
29145 * tree-vect-stmts.c (supportable_widening_operation):
29146 Fix a bug that elements in a vector with vect_used_by_reduction
29147 property are incorrectly reordered when the operation on it is not
29148 consistant with the one in reduction operation.
29150 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
29152 PR rtl-optimization/60155
29153 * gcse.c (record_set_data): New function.
29154 (single_set_gcse): New function.
29155 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29156 (hoist_code): Likewise.
29157 (get_pressure_class_and_nregs): Likewise.
29159 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
29161 * explow.c (probe_stack_range): Emit a final optimization blockage.
29163 2014-04-04 Anthony Green <green@moxielogic.com>
29165 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29168 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
29171 * lto-cgraph.c (input_overwrite_node): Check that partitioning
29172 flags are set only during streaming.
29173 * ipa.c (process_references, walk_polymorphic_call_targets,
29174 symtab_remove_unreachable_nodes): Drop bodies of always inline
29175 after early inlining.
29176 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29178 2014-04-04 Jakub Jelinek <jakub@redhat.com>
29179 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29182 * dwarf2out.c (const_ok_for_output_1): Reject expressions
29185 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29188 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29190 (cortex_a53_fdivd): Likewise.
29192 2014-04-04 Martin Jambor <mjambor@suse.cz>
29195 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29196 Adjust all callers.
29197 * cgraph.c (clone_of_p): Also return true if thunks match.
29198 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29199 cgraph_function_or_thunk_node and an obsolete comment.
29200 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29202 (build_function_decl_skip_args): Likewise.
29203 (set_new_clone_decl_and_node_flags): New function.
29204 (duplicate_thunk_for_node): Likewise.
29205 (redirect_edge_duplicating_thunks): Likewise.
29206 (cgraph_clone_node): New parameter args_to_skip, pass it to
29207 redirect_edge_duplicating_thunks which is called instead of
29208 cgraph_redirect_edge_callee.
29209 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29210 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29212 2014-04-04 Jeff Law <law@redhat.com>
29215 * config/arm/predicates.md (const_int_I_operand): New predicate.
29216 (const_int_M_operand): Similarly.
29217 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29219 (insv_t2, extv_reg, extzv_t2): Likewise.
29220 (load_multiple_with_writeback): Similarly for const_int_I_operand.
29221 (pop_multiple_with_writeback_and_return): Likewise.
29222 (vfp_pop_multiple_with_writeback): Likewise
29224 2014-04-04 Richard Biener <rguenther@suse.de>
29227 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29228 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29230 * gimplify.h (gimple_add_tmp_var_fn): Declare.
29231 * gimplify.c (gimple_add_tmp_var_fn): New function.
29232 * gimple-expr.h (create_tmp_reg_fn): Declare.
29233 * gimple-expr.c (create_tmp_reg_fn): New function.
29234 * gimple-low.c (record_vars_into): Don't change cfun.
29235 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29236 code generation without cfun.
29238 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
29241 * Makefile.in (install-driver): Fix shell scripting.
29243 2014-04-03 Cong Hou <congh@google.com>
29245 PR tree-optimization/60505
29246 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29247 threshold of number of iterations below which no vectorization
29249 * tree-vect-loop.c (new_loop_vec_info):
29250 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29251 * tree-vect-loop.c (vect_analyze_loop_operations):
29252 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29253 * tree-vect-loop.c (vect_transform_loop):
29254 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29255 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29256 of iterations of the loop and see if we should build the epilogue.
29258 2014-04-03 Richard Biener <rguenther@suse.de>
29260 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29261 (streamer_tree_cache_create): Adjust.
29262 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29263 to allow optional nodes array.
29264 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29265 (streamer_tree_cache_append): Likewise.
29266 (streamer_tree_cache_create): Create nodes array optionally
29267 as specified by parameter.
29268 * lto-streamer-out.c (create_output_block): Avoid maintaining
29269 the node array in the writer cache.
29270 (DFS_write_tree): Remove assertion.
29271 (produce_asm_for_decls): Free the out decl state hash table early.
29272 * lto-streamer-in.c (lto_data_in_create): Adjust for
29273 streamer_tree_cache_create prototype change.
29275 2014-04-03 Richard Biener <rguenther@suse.de>
29277 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29278 set TREE_CHAIN to NULL_TREE.
29280 2014-04-03 Richard Biener <rguenther@suse.de>
29282 PR tree-optimization/60740
29283 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29284 over all GIMPLE_COND operands.
29286 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
29288 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29289 (Weffc++): Remove Scott's numbering, merge lists and reference
29292 2014-04-03 Nick Clifton <nickc@redhat.com>
29294 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29297 2014-04-03 Martin Jambor <mjambor@suse.cz>
29299 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29300 mention gcc_unreachable before failing.
29301 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29304 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
29307 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29308 inconsistent code and instead mark the context inconsistent.
29309 (possible_polymorphic_call_targets): For inconsistent contexts
29310 return empty complete list.
29312 2014-04-02 Anthony Green <green@moxielogic.com>
29314 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29315 (extendqisi2, extendhisi2): Define.
29316 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29317 (WCHAR_TYPE): Change to unsigned int.
29319 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29321 PR tree-optimization/60733
29322 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29323 insertion point for PHI candidates to be the end of the feeding
29324 block for the PHI argument.
29326 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
29328 PR rtl-optimization/60650
29329 * lra-constraints.c (process_alt_operands): Decrease reject for
29330 earlyclobber matching.
29332 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29334 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29336 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29338 * config/spu/spu.c (pad_bb): Do not crash when the last
29339 insn is CODE_FOR_blockage.
29341 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29343 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29344 lies outside the target mode.
29346 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29349 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29350 software floating point or no floating point registers, do not
29351 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29352 in GPRs that occurs after we tested for GPRs that would never be
29355 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29356 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29357 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29358 specifically allow DDmode, since that does not use the SPE SIMD
29361 2014-04-02 Richard Biener <rguenther@suse.de>
29363 PR middle-end/60729
29364 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29365 MODE_INTs. Properly use negv_optab.
29366 (expand_abs): Likewise.
29368 2014-04-02 Richard Biener <rguenther@suse.de>
29371 * Makefile.in (install-driver): Guard extra installs with special
29374 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29376 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29377 Document vec_vgbbd.
29379 2014-04-01 Richard Henderson <rth@redhat.com>
29382 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29383 alternative enabled before register allocation.
29385 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
29387 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29388 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29390 (nios2_large_got_address): Remove unneeded 'sym' parameter.
29391 (nios2_got_address): Update nios2_large_got_address call site.
29392 (nios2_delegitimize_address): New function.
29393 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29394 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29395 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29397 2014-04-01 Martin Husemann <martin@duskware.de>
29399 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29402 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
29404 PR rtl-optimization/60604
29405 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29406 check from register_operand.
29407 (register_operand): Redefine in terms of general_operand.
29408 (nonmemory_operand): Use register_operand for the non-constant cases.
29410 2014-04-01 Richard Biener <rguenther@suse.de>
29412 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29414 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
29416 * doc/invoke.texi (mapp-regs): Clarify.
29418 2014-03-31 Ulrich Drepper <drepper@gmail.com>
29420 * config/i386/avx512fintrin.h (__v32hi): Define type.
29421 (__v64qi): Likewise.
29422 (_mm512_set1_epi8): Define.
29423 (_mm512_set1_epi16): Define.
29424 (_mm512_set4_epi32): Define.
29425 (_mm512_set4_epi64): Define.
29426 (_mm512_set4_pd): Define.
29427 (_mm512_set4_ps): Define.
29428 (_mm512_setr4_epi64): Define.
29429 (_mm512_setr4_epi32): Define.
29430 (_mm512_setr4_pd): Define.
29431 (_mm512_setr4_ps): Define.
29432 (_mm512_setzero_epi32): Define.
29434 2014-03-31 Martin Jambor <mjambor@suse.cz>
29436 PR middle-end/60647
29437 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29438 callsite_arguments_match_p. Updated all callers. Also check types of
29439 corresponding formal parameters and actual arguments.
29440 (not_all_callers_have_enough_arguments_p) Renamed to
29441 some_callers_have_mismatched_arguments_p.
29443 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
29445 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
29447 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
29450 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
29453 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
29455 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
29456 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
29458 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
29459 Use FMAMODE_NOVF512 mode iterator.
29460 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
29461 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
29462 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
29463 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
29465 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
29466 Use VF_128_256 mode iterator.
29467 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
29470 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29472 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
29473 static chain if needed.
29475 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29478 * lra-constraints.c (index_part_to_reg): New.
29479 (process_address): Use it.
29481 2014-03-27 Jeff Law <law@redhat.com>
29482 Jakub Jelinek <jakub@redhat.com>
29485 * expr.c (do_tablejump): Use simplify_gen_binary rather than
29486 gen_rtx_{PLUS,MULT} to build up the address expression.
29488 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
29489 creating non-canonical RTL.
29491 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29494 * ipa-inline.c (want_inline_small_function_p): Short circuit large
29495 functions; reorganize to make cheap checks first.
29496 (inline_small_functions): Do not estimate growth when dumping;
29498 * ipa-inline.h (inline_summary): Add min_size.
29499 (growth_likely_positive): New function.
29500 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
29501 (set_cond_stmt_execution_predicate): Cleanup.
29502 (estimate_edge_size_and_time): Compute min_size.
29503 (estimate_calls_size_and_time): Likewise.
29504 (estimate_node_size_and_time): Likewise.
29505 (inline_update_overall_summary): Update min_size.
29506 (do_estimate_edge_time): Likewise.
29507 (do_estimate_edge_size): Update.
29508 (do_estimate_edge_hints): Update.
29509 (growth_likely_positive): New function.
29511 2014-03-28 Jakub Jelinek <jakub@redhat.com>
29514 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
29515 also if addr has VOIDmode.
29517 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29519 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
29520 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
29522 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
29523 instructions as well as AdvancedSIMD loads.
29525 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29527 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
29528 Use crypto_aese type.
29529 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
29530 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
29531 crypto_aese, crypto_aesmc. Move to types.md.
29532 * config/arm/types.md (crypto_aes): Split into crypto_aese,
29534 * config/arm/iterators.md (crypto_type): Likewise.
29536 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29538 * cgraph.c: Include expr.h and tree-dfa.h.
29539 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
29542 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29545 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
29546 regs from checking multi-reg pseudos.
29548 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29550 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
29552 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29554 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
29555 if it would clobber the stack pointer, even temporarily.
29557 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
29559 * mode-switching.c: Make small adjustments to the top comment.
29561 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
29563 * config/rs6000/constraints.md (wD constraint): New constraint to
29564 match the constant integer to get the top DImode/DFmode out of a
29565 vector in a VSX register.
29567 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
29568 match the constant integer to get the top DImode/DFmode out of a
29569 vector in a VSX register.
29571 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
29574 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29577 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29578 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
29580 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
29581 Optimize vec_extract of 64-bit values, where the value being
29582 extracted is in the top word, where we can use scalar
29583 instructions. Add direct move and store support. Combine the big
29584 endian/little endian vector select load support into a single insn.
29585 (vsx_extract_<mode>_internal1): Likewise.
29586 (vsx_extract_<mode>_internal2): Likewise.
29587 (vsx_extract_<mode>_load): Likewise.
29588 (vsx_extract_<mode>_store): Likewise.
29589 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
29590 combined into vsx_extract_<mode>_load.
29591 (vsx_extract_<mode>_one_le): Likewise.
29593 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
29594 define the top 64-bit vector element.
29596 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
29599 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29600 Document vec_vbpermq builtin.
29603 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
29604 enable use of xxsldwi and xxpermdi builtin functions.
29605 (vec_xxpermdi): Likewise.
29607 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29608 Document use of vec_xxsldwi and vec_xxpermdi builtins.
29610 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
29612 PR rtl-optimization/60650
29613 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
29615 (find_spills_for): New.
29616 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
29617 Spill all pseudos on the second iteration.
29619 2014-03-27 Marek Polacek <polacek@redhat.com>
29622 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
29625 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29627 * config/s390/s390.c (s390_can_use_return_insn): Check for
29628 call-saved FPRs on 31 bit.
29630 2014-03-27 Jakub Jelinek <jakub@redhat.com>
29632 PR middle-end/60682
29633 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
29634 if they need regimplification, just drop them instead of
29635 calling gimple_regimplify_operands on them.
29637 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
29640 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
29641 (aarch64_frame_pointer_required): Adjust logic.
29642 (aarch64_can_eliminate): Adjust logic.
29643 (aarch64_override_options_after_change): Adjust logic.
29645 2014-03-27 Dehao Chen <dehao@google.com>
29647 * ipa-inline.c (early_inliner): Update node's inline info.
29649 2014-03-26 Dehao Chen <dehao@google.com>
29651 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
29652 compiler inserted conditional jumps for NAN float check.
29654 2014-03-26 Jakub Jelinek <jakub@redhat.com>
29656 * ubsan.h (ubsan_create_data): Change second argument's type
29657 to const location_t *.
29658 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
29660 (ubsan_create_data): Change second argument to const location_t *PLOC.
29661 Create Loc field whenever PLOC is non-NULL.
29662 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
29663 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
29667 * real.c (real_to_integer2): Change type of low to UHWI.
29669 2014-03-26 Tobias Burnus <burnus@net-b.de>
29671 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
29672 (CILK_SELF_SPECS): New define.
29673 (driver_self_specs): Use it.
29675 2014-03-26 Richard Biener <rguenther@suse.de>
29677 * tree-pretty-print.c (percent_K_format): Implement special
29678 case for LTO and its stripped down BLOCK tree.
29680 2014-03-26 Jakub Jelinek <jakub@redhat.com>
29683 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
29685 * tree-vrp.c (simplify_internal_call_using_ranges): If only
29686 one range is range_int_cst_p, but not both, at least optimize
29687 addition/subtraction of 0 and multiplication by 0 or 1.
29688 * gimple-fold.c (gimple_fold_call): Fold
29689 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
29690 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
29691 INTEGER_CSTs, try to fold at least x * 0 and y - y.
29693 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
29695 PR rtl-optimization/60452
29696 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
29697 <case REG>: Return 1 for invalid offsets from the frame pointer.
29699 2014-03-26 Marek Polacek <polacek@redhat.com>
29702 * doc/extend.texi (C Extensions): Mention variable-length arrays in
29705 2014-03-26 Marek Polacek <polacek@redhat.com>
29708 * doc/extend.texi (Designated Inits): Describe what happens to omitted
29711 2014-03-26 Marek Polacek <polacek@redhat.com>
29714 * ira-color.c (update_conflict_hard_regno_costs): Perform the
29715 multiplication in unsigned type.
29717 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
29719 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
29721 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
29723 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
29725 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
29728 * cif-code.def (UNREACHABLE) New code.
29729 * ipa-inline.c (inline_small_functions): Skip edges to
29730 __builtlin_unreachable.
29731 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
29732 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
29733 predicate to __bulitin_unreachable.
29734 (set_cond_stmt_execution_predicate): Fix issue when
29735 invert_tree_comparison returns ERROR_MARK.
29736 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
29737 propagate to inline clones.
29738 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
29740 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
29741 * cgraphclones.c (cgraph_clone_node): If call destination is already
29742 ureachable, do not redirect it back.
29743 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
29746 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
29748 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
29749 Do not modify inline clones.
29751 2014-03-25 Jakub Jelinek <jakub@redhat.com>
29753 * config/i386/i386.md (general_sext_operand): New mode attr.
29754 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
29755 don't generate (sign_extend (const_int)).
29756 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
29757 operands[2]. Use We constraint instead of <i> and
29758 <general_sext_operand> predicate instead of <general_operand>.
29759 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
29760 * config/i386/constraints.md (We): New constraint.
29761 * config/i386/predicates.md (x86_64_sext_operand,
29762 sext_operand): New predicates.
29764 2014-03-25 Martin Jambor <mjambor@suse.cz>
29767 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
29768 inconsistent devirtualizations to __builtin_unreachable.
29770 2014-03-25 Marek Polacek <polacek@redhat.com>
29773 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
29775 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
29777 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
29778 order of elements for big-endian.
29780 2014-03-25 Richard Biener <rguenther@suse.de>
29782 PR middle-end/60635
29783 * gimplify-me.c (gimple_regimplify_operands): Update the
29786 2014-03-25 Martin Jambor <mjambor@suse.cz>
29789 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
29790 (lto_output_varpool_node): Likewise.
29791 (input_overwrite_node): Likewise.
29792 (input_varpool_node): Likewise.
29794 2014-03-25 Richard Biener <rguenther@suse.de>
29796 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
29797 (run_gcc): Likewise.
29799 2014-03-25 Jakub Jelinek <jakub@redhat.com>
29801 * combine.c (simplify_compare_const): Add MODE argument.
29802 Handle mode_width 0 as very large mode_width.
29803 (try_combine, simplify_comparison): Adjust callers.
29805 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
29806 type to avoid signed integer overflow.
29807 * explow.c (plus_constant): Likewise.
29809 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
29811 * doc/generic.texi: Correct typos.
29813 2014-03-24 Tobias Burnus <burnus@net-b.de>
29815 * doc/invoke.texi (-flto): Expand section about
29816 using static libraries with LTO.
29818 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29820 PR rtl-optimization/60501
29821 * optabs.def (addptr3_optab): New optab.
29822 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
29823 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
29824 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
29826 * lra.c (emit_add3_insn): Use the addptr pattern if available.
29828 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
29830 2014-03-24 Ulrich Drepper <drepper@gmail.com>
29832 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
29835 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
29836 (_mm256_undefined_ps): Define.
29837 (_mm256_undefined_pd): Define.
29838 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
29839 (_mm_undefined_pd): Define.
29840 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
29841 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
29842 (_mm512_undefined_ps): Define.
29843 (_mm512_undefined_pd): Define.
29844 Use _mm*_undefined_*.
29845 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
29847 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
29849 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
29850 (lshr_simd): DI mode added.
29851 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
29852 (aarch64_ushr_simddi): Likewise.
29853 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
29854 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
29855 (vshrd_n_u64): Likewise.
29857 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29859 * Makefile.in (s-macro_list): Depend on cc1.
29861 2014-03-23 Teresa Johnson <tejohnson@google.com>
29863 * ipa-utils.c (ipa_print_order): Use specified dump file.
29865 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
29867 PR rtl-optimization/60601
29868 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
29870 * gcc.c (eval_spec_function): Initialize save_growing_value.
29872 2014-03-22 Jakub Jelinek <jakub@redhat.com>
29875 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
29876 code == MINUS_EXPR, never swap op0 with op1.
29878 * toplev.c (init_local_tick): Avoid signed integer multiplication
29880 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
29881 shift by first operand's bitsize.
29883 2014-03-21 Jakub Jelinek <jakub@redhat.com>
29886 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
29887 redefine to 1 or 0.
29888 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
29889 TARGET_ISA_64BIT_P(x).
29891 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29893 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
29894 pattern for vector nor instead of subtract from splat(-1).
29895 (altivec_expand_vec_perm_const_le): Likewise.
29897 2014-03-21 Richard Henderson <rth@twiddle.net>
29900 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
29901 related insns after epilogue_completed.
29903 2014-03-21 Martin Jambor <mjambor@suse.cz>
29906 * cgraph.h (symtab_node): New flag body_removed.
29907 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
29908 when removing bodies.
29909 * symtab.c (dump_symtab_base): Dump body_removed flag.
29910 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
29911 had their bodies removed.
29913 2014-03-21 Martin Jambor <mjambor@suse.cz>
29916 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
29919 2014-03-21 Richard Biener <rguenther@suse.de>
29921 PR tree-optimization/60577
29922 * tree-core.h (struct tree_base): Document nothrow_flag use
29923 in DECL_NONALIASED.
29924 * tree.h (DECL_NONALIASED): New.
29925 (may_be_aliased): Adjust.
29926 * coverage.c (build_var): Set DECL_NONALIASED.
29928 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
29930 * expr.c (expand_expr_real_1): Remove outdated comment.
29932 2014-03-20 Jakub Jelinek <jakub@redhat.com>
29934 PR middle-end/60597
29935 * ira.c (adjust_cleared_regs): Call copy_rtx on
29936 *reg_equiv[REGNO (loc)].src_p before passing it to
29937 simplify_replace_fn_rtx.
29940 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
29941 into CONST, put pic register as first operand of PLUS. Use
29942 gen_const_mem for both 32-bit and 64-bit PIC got loads.
29944 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29946 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
29948 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
29950 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
29951 around for store forwarding issue in the FPU on the UT699.
29952 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
29953 loads and operations if -mfix-ut699 is specified.
29954 (divtf3_hq): Tweak attribute.
29955 (sqrttf2_hq): Likewise.
29957 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
29959 * calls.c (store_one_arg): Remove incorrect const qualification on the
29960 type of the temporary.
29961 * cfgexpand.c (expand_return): Likewise.
29962 * expr.c (expand_constructor): Likewise.
29963 (expand_expr_real_1): Likewise.
29965 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29967 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
29970 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
29973 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
29975 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
29977 * config/arm/aarch-common-protos.h
29978 (alu_cost_table): Fix spelling of "extend".
29979 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
29981 2014-03-19 Richard Biener <rguenther@suse.de>
29983 PR middle-end/60553
29984 * tree-core.h (tree_type_common): Re-order pointer members
29985 to reduce recursion depth during GC walks.
29987 2014-03-19 Marek Polacek <polacek@redhat.com>
29990 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
29991 before accessing it.
29993 2014-03-19 Richard Biener <rguenther@suse.de>
29996 * lto-streamer-in.c (input_function): In WPA stage do not drop
29999 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30001 PR tree-optimization/60559
30002 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30003 with build_zero_cst assignment.
30005 2014-03-18 Kai Tietz <ktietz@redhat.com>
30007 PR rtl-optimization/56356
30008 * sdbout.c (sdbout_parms): Verify that parms'
30009 incoming argument is valid.
30010 (sdbout_reg_parms): Likewise.
30012 2014-03-18 Richard Henderson <rth@redhat.com>
30015 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30016 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30017 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30019 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30021 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30022 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30023 Italicize plugin event names in description. Explain that
30024 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30025 Remind that no GCC functions should be called after PLUGIN_FINISH.
30026 Explain what pragmas with expansion are.
30028 2014-03-18 Martin Liska <mliska@suse.cz>
30030 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30031 gimple call statement is update.
30032 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30033 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30035 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30038 * ubsan.c (ubsan_instrument_unreachable): Call
30039 initialize_sanitizer_builtins.
30040 (ubsan_pass): Likewise.
30043 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30044 varpool_finalize_decl instead of rest_of_decl_compilation.
30046 2014-03-18 Richard Biener <rguenther@suse.de>
30048 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30049 by using bitmap_and_compl instead of bitmap_and_compl_into.
30050 (df_rd_transfer_function): Likewise.
30052 2014-03-18 Richard Biener <rguenther@suse.de>
30054 * doc/lto.texi (fresolution): Fix typo.
30056 2014-03-18 Richard Biener <rguenther@suse.de>
30058 * doc/invoke.texi (flto): Update for changes in 4.9.
30060 2014-03-18 Richard Biener <rguenther@suse.de>
30062 * doc/loop.texi: Remove section on the removed lambda framework.
30063 Update loop docs with recent changes in preserving loop structure.
30065 2014-03-18 Richard Biener <rguenther@suse.de>
30067 * doc/lto.texi (-fresolution): Document.
30069 2014-03-18 Richard Biener <rguenther@suse.de>
30071 * doc/contrib.texi: Adjust my name.
30073 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30076 * internal-fn.c: Include diagnostic-core.h.
30077 (expand_BUILTIN_EXPECT): New function.
30078 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30079 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30080 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30081 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30082 IFN_BUILTIN_EXPECT.
30083 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30084 Revert 3 argument __builtin_expect code.
30085 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30086 * gimple-fold.c (gimple_fold_call): Likewise.
30087 * tree.h (fold_builtin_expect): New prototype.
30088 * builtins.c (build_builtin_expect_predicate): Add predictor
30089 argument, if non-NULL, create 3 argument __builtin_expect.
30090 (fold_builtin_expect): No longer static. Add ARG2 argument,
30091 pass it through to build_builtin_expect_predicate.
30092 (fold_builtin_2): Adjust caller.
30093 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30094 * internal-fn.def (BUILTIN_EXPECT): New.
30096 2014-03-18 Tobias Burnus <burnus@net-b.de>
30099 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30100 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30101 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30103 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30106 * predict.c (combine_predictions_for_bb): Fix up formatting.
30107 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30108 fill what it points to if non-NULL.
30109 (tree_predict_by_opcode): Adjust caller, use the predictor.
30110 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30112 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30114 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30115 proper constant for the store mode.
30117 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30119 * symtab.c (change_decl_assembler_name): Fix transparent alias
30120 chain construction.
30122 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30124 * config/aarch64/aarch64.c: Correct the comments about the
30125 aarch64 stack layout.
30127 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30129 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30130 check for GF_OMP_FOR_KIND_FOR.
30132 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30134 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30135 ymm and zmm register names.
30137 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30140 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30141 note creation for the 2010-08-31 changes.
30143 2014-03-17 Marek Polacek <polacek@redhat.com>
30145 PR middle-end/60534
30146 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30147 as -fno-tree-loop-vectorize.
30148 (expand_omp_simd): Likewise.
30150 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
30152 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30153 (eligible_for_call_delay): New prototype.
30154 * config/sparc/sparc.c (tls_call_delay): Rename into...
30155 (eligible_for_call_delay): ...this. Return false if the instruction
30156 cannot be put in the delay slot of a branch.
30157 (eligible_for_restore_insn): Simplify.
30158 (eligible_for_return_delay): Return false if the instruction cannot be
30159 put in the delay slot of a branch and simplify.
30160 (eligible_for_sibcall_delay): Return false if the instruction cannot be
30161 put in the delay slot of a branch.
30162 * config/sparc/sparc.md (fix_ut699): New attribute.
30163 (tls_call_delay): Delete.
30164 (in_call_delay): Reimplement.
30165 (eligible_for_sibcall_delay): Rename into...
30166 (in_sibcall_delay): ...this.
30167 (eligible_for_return_delay): Rename into...
30168 (in_return_delay): ...this.
30169 (in_branch_delay): Reimplement.
30170 (in_uncond_branch_delay): Delete.
30171 (in_annul_branch_delay): Delete.
30173 2014-03-14 Richard Henderson <rth@redhat.com>
30176 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30177 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30178 (*floathi<X87MODEF>2_i387_with_temp): Remove.
30179 (floathi splitters): Remove.
30180 (float<SWI48x>xf2): New pattern.
30181 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
30182 code that tried to handle DImode for 32-bit, but which was excluded
30183 by the pattern's condition. Drop allocation of stack temporary.
30184 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30185 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30186 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30187 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30188 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30189 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30190 (*float<SWI48><MODEF>2_sse_interunit): Remove.
30191 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30192 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30193 (*float<SWI48x><X87MODEF>2_i387): Remove.
30194 (all float _with_temp splitters): Remove.
30195 (*float<SWI48x><MODEF>2_i387): New pattern.
30196 (*float<SWI48><MODEF>2_sse): New pattern.
30197 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30198 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30200 2014-03-14 Jakub Jelinek <jakub@redhat.com>
30201 Marek Polacek <polacek@redhat.com>
30203 PR middle-end/60484
30204 * common.opt (dump_base_name_prefixed): New Variable.
30205 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30206 if x_dump_base_name_prefixed is already set, set it at the end.
30208 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
30210 PR rtl-optimization/60508
30211 * lra-constraints.c (get_reload_reg): Add new parameter
30213 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30214 Pass the new parameter values.
30216 2014-03-14 Richard Biener <rguenther@suse.de>
30218 * common.opt: Revert unintented changes from r205065.
30219 * opts.c: Likewise.
30221 2014-03-14 Richard Biener <rguenther@suse.de>
30223 PR middle-end/60518
30224 * cfghooks.c (split_block): Properly adjust all loops the
30225 block was a latch of.
30227 2014-03-14 Martin Jambor <mjambor@suse.cz>
30230 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30233 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
30236 * config/avr/avr.c (avr_set_current_function): Pass function name
30237 through default_strip_name_encoding before sanity checking instead
30238 of skipping the first char of the assembler name.
30240 2014-03-13 Richard Henderson <rth@redhat.com>
30243 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30244 (ix86_force_to_memory, ix86_free_from_memory): Remove.
30245 * config/i386/i386-protos.h: Likewise.
30246 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30247 in the expander instead of a splitter.
30248 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30249 any possibility of requiring a memory.
30250 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30251 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30252 (fp branch splitters): Update for ix86_split_fp_branch.
30253 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30254 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30255 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30256 (*fop_<MODEF>_2_i387): Remove f/r alternative.
30257 (*fop_<MODEF>_3_i387): Likewise.
30258 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30259 (splitters for the fop_* register patterns): Remove.
30260 (fscalexf4_i387): Rename from *fscalexf4_i387.
30261 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30263 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30265 PR tree-optimization/59779
30266 * tree-dfa.c (get_ref_base_and_extent): Use double_int
30267 type for bitsize and maxsize instead of HOST_WIDE_INT.
30269 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
30271 PR rtl-optimization/57320
30272 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30273 the CFG after thread_prologue_and_epilogue_insns.
30275 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
30277 PR rtl-optimization/57189
30278 * lra-constraints.c (process_alt_operands): Disfavor spilling
30281 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
30283 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30285 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30287 PR tree-optimization/59025
30288 PR middle-end/60418
30289 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30290 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30292 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
30295 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30296 calls of avr_out_plus_1.
30298 2014-03-13 Bin Cheng <bin.cheng@arm.com>
30300 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30301 BB's single pred and update the father loop's latch info later.
30303 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30305 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30309 (VEC_base): Likewise.
30310 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30311 registers, we need to swap double words in little endian mode.
30313 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30314 to be a container mode for 128-bit integer operations added in ISA
30315 2.07. Unlike TImode and PTImode, the preferred register set is
30316 the Altivec/VMX registers for the 128-bit operations.
30318 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30320 (rs6000_split_128bit_ok_p): Likewise.
30322 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30323 macros for creating ISA 2.07 normal and overloaded builtin
30324 functions with 3 arguments.
30325 (BU_P8V_OVERLOAD_3): Likewise.
30326 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30327 for use as overloaded functions.
30328 (VPERM_1TI_UNS): Likewise.
30329 (VSEL_1TI): Likewise.
30330 (VSEL_1TI_UNS): Likewise.
30331 (ST_INTERNAL_1ti): Likewise.
30332 (LD_INTERNAL_1ti): Likewise.
30333 (XXSEL_1TI): Likewise.
30334 (XXSEL_1TI_UNS): Likewise.
30335 (VPERM_1TI): Likewise.
30336 (VPERM_1TI_UNS): Likewise.
30337 (XXPERMDI_1TI): Likewise.
30338 (SET_1TI): Likewise.
30339 (LXVD2X_V1TI): Likewise.
30340 (STXVD2X_V1TI): Likewise.
30341 (VEC_INIT_V1TI): Likewise.
30342 (VEC_SET_V1TI): Likewise.
30343 (VEC_EXT_V1TI): Likewise.
30344 (EQV_V1TI): Likewise.
30345 (NAND_V1TI): Likewise.
30346 (ORC_V1TI): Likewise.
30347 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30348 added in ISA 2.07. Add both normal 'altivec' builtins, and the
30349 overloaded builtin.
30350 (VADDUQM): Likewise.
30351 (VSUBCUQ): Likewise.
30352 (VADDEUQM): Likewise.
30353 (VADDECUQ): Likewise.
30354 (VSUBEUQM): Likewise.
30355 (VSUBECUQ): Likewise.
30357 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30358 __int128_t and __uint128_t types.
30359 (__uint128_type): Likewise.
30360 (altivec_categorize_keyword): Add support for vector __int128_t,
30361 vector __uint128_t, vector __int128, and vector unsigned __int128
30362 as a container type for TImode operations that need to be done in
30363 VSX/Altivec registers.
30364 (rs6000_macro_to_expand): Likewise.
30365 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30366 to support 128-bit integer instructions vaddcuq, vadduqm,
30367 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30368 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30370 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30371 for V1TImode, and set up preferences to use VSX/Altivec registers.
30372 Setup VSX reload handlers.
30373 (rs6000_debug_reg_global): Likewise.
30374 (rs6000_init_hard_regno_mode_ok): Likewise.
30375 (rs6000_preferred_simd_mode): Likewise.
30376 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30377 (easy_altivec_constant): Likewise.
30378 (output_vec_const_move): Likewise.
30379 (rs6000_expand_vector_set): Convert V1TImode set and extract to
30381 (rs6000_expand_vector_extract): Likewise.
30382 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30384 (rs6000_const_vec): Add support for V1TImode.
30385 (rs6000_emit_le_vsx_load): Swap double words when loading or
30386 storing TImode/V1TImode.
30387 (rs6000_emit_le_vsx_store): Likewise.
30388 (rs6000_emit_le_vsx_move): Likewise.
30389 (rs6000_emit_move): Add support for V1TImode.
30390 (altivec_expand_ld_builtin): Likewise.
30391 (altivec_expand_st_builtin): Likewise.
30392 (altivec_expand_vec_init_builtin): Likewise.
30393 (altivec_expand_builtin): Likewise.
30394 (rs6000_init_builtins): Add support for V1TImode type. Add
30395 support for ISA 2.07 128-bit integer builtins. Define type names
30396 for the VSX/Altivec vector types.
30397 (altivec_init_builtins): Add support for overloaded vector
30398 functions with V1TImode type.
30399 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30400 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30402 (rs6000_split_128bit_ok_p): Likewise.
30403 (rs6000_handle_altivec_attribute): Create V1TImode from vector
30404 __int128_t and vector __uint128_t.
30406 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30407 and mode attributes.
30409 (VSX_M2): Likewise.
30414 (VS_scalar): Likewise.
30415 (VS_double): Likewise.
30416 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30418 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30419 we support the ISA 2.07 128-bit integer arithmetic instructions.
30420 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30421 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30422 and TImode types for use with the builtin functions.
30423 (V1TI_type_node): Likewise.
30424 (unsigned_V1TI_type_node): Likewise.
30425 (intTI_type_internal_node): Likewise.
30426 (uintTI_type_internal_node): Likewise.
30428 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30429 128-bit builtin functions.
30430 (UNSPEC_VADDEUQM): Likewise.
30431 (UNSPEC_VADDECUQ): Likewise.
30432 (UNSPEC_VSUBCUQ): Likewise.
30433 (UNSPEC_VSUBEUQM): Likewise.
30434 (UNSPEC_VSUBECUQ): Likewise.
30435 (VM): Add V1TImode to vector mode iterators.
30437 (VI_unit): Likewise.
30438 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30439 (altivec_vaddcuq): Likewise.
30440 (altivec_vsubuqm): Likewise.
30441 (altivec_vsubcuq): Likewise.
30442 (altivec_vaddeuqm): Likewise.
30443 (altivec_vaddecuq): Likewise.
30444 (altivec_vsubeuqm): Likewise.
30445 (altivec_vsubecuq): Likewise.
30447 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
30449 (BOOL_128): Likewise.
30450 (BOOL_REGS_OUTPUT): Likewise.
30451 (BOOL_REGS_OP1): Likewise.
30452 (BOOL_REGS_OP2): Likewise.
30453 (BOOL_REGS_UNARY): Likewise.
30454 (BOOL_REGS_AND_CR0): Likewise.
30456 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
30457 128-bit integer builtin support.
30458 (vec_vadduqm): Likewise.
30459 (vec_vaddecuq): Likewise.
30460 (vec_vaddeuqm): Likewise.
30461 (vec_vsubecuq): Likewise.
30462 (vec_vsubeuqm): Likewise.
30463 (vec_vsubcuq): Likewise.
30464 (vec_vsubuqm): Likewise.
30466 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30467 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
30468 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
30469 128-bit integer add/subtract to ISA 2.07.
30471 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
30473 * config/arc/arc.c (arc_predicate_delay_insns):
30474 Fix third argument passed to conditionalize_nonjump.
30476 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
30478 * config/aarch64/aarch64-builtins.c
30479 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
30480 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
30481 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
30482 instead of __builtin_lfloor.
30483 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
30485 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30487 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
30488 (tree_ssa_ifcombine_bb_1): New function.
30489 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
30490 is an empty forwarder block to then_bb or vice versa and then_bb
30491 and else_bb are effectively swapped.
30493 2014-03-12 Christian Bruel <christian.bruel@st.com>
30496 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
30497 REG_CFA_DEF_CFA note.
30498 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
30499 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
30501 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30503 PR tree-optimization/60454
30504 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
30506 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30508 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
30509 Do not define target_cpu_default2 to generic.
30510 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
30511 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
30512 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
30514 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30515 Marc Glisse <marc.glisse@inria.fr>
30517 PR tree-optimization/60502
30518 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
30519 instead of build_low_bits_mask.
30521 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30523 PR middle-end/60482
30524 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
30525 if there are multiple uses, but op doesn't live on E edge.
30526 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
30527 clobber stmts before __builtin_unreachable.
30529 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
30531 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
30532 hard_frame_pointer_rtx.
30533 * cse.c (cse_insn): Remove volatile check.
30534 * cselib.c (cselib_process_insn): Likewise.
30535 * dse.c (scan_insn): Likewise.
30537 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
30539 * config/arc/arc.c (conditionalize_nonjump): New function,
30541 (arc_ifcvt): ... this.
30542 (arc_predicate_delay_insns): Use it.
30544 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
30546 * config/arc/predicates.md (extend_operand): During/after reload,
30547 allow const_int_operand.
30548 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
30549 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
30550 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
30552 (umulsi3_highpart_i): Likewise.
30554 2014-03-11 Richard Biener <rguenther@suse.de>
30556 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
30557 Add asserts to guard possible wrong-code bugs.
30559 2014-03-11 Richard Biener <rguenther@suse.de>
30561 PR tree-optimization/60429
30562 PR tree-optimization/60485
30563 * tree-ssa-structalias.c (set_union_with_increment): Properly
30564 take into account all fields that overlap the shifted vars.
30565 (do_sd_constraint): Likewise.
30566 (do_ds_constraint): Likewise.
30567 (get_constraint_for_ptr_offset): Likewise.
30569 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
30571 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
30572 (nios2_compute_frame_layout):
30573 Add calculation of cfun->machine->fp_save_offset.
30574 (nios2_expand_prologue): Correct setting of frame pointer register
30576 (nios2_expand_epilogue): Update recovery of stack pointer from
30577 frame pointer accordingly.
30578 (nios2_initial_elimination_offset): Update calculation of offset
30579 for eliminating to HARD_FRAME_POINTER_REGNUM.
30581 2014-03-10 Jakub Jelinek <jakub@redhat.com>
30584 * ipa.c (symtab_remove_unreachable_nodes): Don't call
30585 cgraph_get_create_node on VAR_DECLs.
30587 2014-03-10 Richard Biener <rguenther@suse.de>
30589 PR middle-end/60474
30590 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
30592 2014-03-08 Douglas B Rupp <rupp@gnat.com>
30594 * config/vms/vms.opt (vms_float_format): New variable.
30596 2014-03-08 Tobias Burnus <burnus@net-b.de>
30598 * doc/invoke.texi (-fcilkplus): Update implementation status.
30600 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
30601 Richard Biener <rguenther@suse.de>
30603 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
30604 consistently accross all TUs.
30605 (run_gcc): Enable -fshort-double automatically at link at link-time
30606 and disallow override.
30608 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
30611 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
30612 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
30613 if they can't be used.
30615 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30617 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
30618 for Solaris 11/x86 ld.
30619 * configure: Regenerate.
30621 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30623 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
30624 (LIB_TLS_SPEC): Save as ld_tls_libs.
30625 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
30626 (HAVE_AS_IX86_TLSLDM): New test.
30627 * configure, config.in: Regenerate.
30628 * config/i386/i386.c (legitimize_tls_address): Fall back to
30629 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
30630 cannot support TLS_MODEL_LOCAL_DYNAMIC.
30631 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
30632 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
30634 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
30636 * common.opt (fira-loop-pressure): Mark as optimization.
30638 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
30640 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
30641 an OpenMP mappable type.
30643 2014-03-06 Matthias Klose <doko@ubuntu.com>
30645 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
30646 MULTILIB_OSDIRNAMES is not defined.
30648 2014-03-06 Jakub Jelinek <jakub@redhat.com>
30649 Meador Inge <meadori@codesourcery.com>
30652 * config/arm/arm.c (arm_tls_symbol_p): Remove.
30653 (arm_legitimize_address): Call legitimize_tls_address for any
30654 arm_tls_referenced_p expression, handle constant addend. Call it
30655 before testing for !TARGET_ARM.
30656 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
30658 2014-03-06 Richard Biener <rguenther@suse.de>
30660 PR middle-end/60445
30664 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
30666 * tree-streamer.c (record_common_node): Assert we don't record
30667 nodes with type double.
30668 (preload_common_node): Skip type double, complex double and double
30669 pointer since it is now frontend dependent due to fshort-double option.
30671 2014-03-06 Richard Biener <rguenther@suse.de>
30673 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
30674 or -fno-lto is specified and the linker has full plugin support.
30675 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
30676 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
30677 * lto-wrapper.c (merge_and_complain): Merge compile-time
30678 optimization levels.
30679 (run_gcc): And pass it through to the link options.
30681 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
30685 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
30687 * cselib.c (remove_useless_values): Skip to avoid quadratic
30688 behavior if the condition moved from...
30689 (cselib_process_insn): ... here holds.
30691 2014-03-05 Jakub Jelinek <jakub@redhat.com>
30694 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
30695 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
30698 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
30699 (TM_H): Add x86-tune.def.
30701 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30703 * config/aarch64/aarch64.c (generic_tunings):
30704 Use cortexa57_extra_costs.
30706 2014-03-05 Jakub Jelinek <jakub@redhat.com>
30709 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
30710 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
30711 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
30714 2014-03-04 Heiher <r@hev.cc>
30716 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
30717 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
30719 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
30721 * config/i386/predicates.md (const2356_operand): Change to ...
30722 (const2367_operand): ... this.
30723 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
30725 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30726 (*avx512pf_scatterpf<mode>sf): Ditto.
30727 (avx512pf_scatterpf<mode>df): Ditto.
30728 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30729 (*avx512pf_scatterpf<mode>df): Ditto.
30730 * config/i386/i386.c (ix86_expand_builtin): Update
30731 incorrect hint operand error message.
30733 2014-03-04 Richard Biener <rguenther@suse.de>
30735 * lto-section-in.c (lto_get_section_data): Fix const cast.
30737 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
30739 * tree-streamer.c (record_common_node): Assert we don't record
30740 nodes with type double.
30741 (preload_common_node): Skip type double, complex double and double
30742 pointer since it is now frontend dependent due to fshort-double option.
30744 2014-03-04 Richard Biener <rguenther@suse.de>
30747 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
30748 (lto_input_toplevel_asms): Likewise.
30749 * lto-section-in.c (lto_get_section_data): Instead do it here
30752 2014-03-04 Richard Biener <rguenther@suse.de>
30754 PR tree-optimization/60382
30755 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
30756 dead PHIs a reduction.
30758 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
30760 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
30762 (_mm_prefetch): Move out of GCC target("sse") pragma.
30763 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
30764 GCC target("prfchw") pragma.
30765 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
30767 * config/i386/i386.c (ix86_option_override_internal): Enable
30768 -mprfchw with -mprefetchwt1.
30770 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
30772 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
30775 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
30777 * opts.h (CL_PCH_IGNORE): Define.
30778 * targhooks.c (option_affects_pch_p):
30779 Return false for options that have CL_PCH_IGNORE set.
30780 * opt-functions.awk: Process PchIgnore.
30781 * doc/options.texi: Document PchIgnore.
30783 * config/arc/arc.opt (misize): Add PchIgnore property.
30785 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30787 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
30788 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
30789 constraint on constants to permit them being loaded into
30790 GENERAL_REGS or BASE_REGS.
30792 2014-03-03 Nick Clifton <nickc@redhat.com>
30794 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
30795 anti-cacnonical alternatives.
30796 (negandhi3_real): New pattern.
30797 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
30799 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30801 * config/avr/avr-mcus.def: Remove atxmega16x1.
30802 * config/avr/avr-tables.opt: Regenerate.
30803 * config/avr/t-multilib: Regenerate.
30804 * doc/avr-mmcu.texi: Regenerate.
30806 2014-03-03 Tobias Grosser <tobias@grosser.es>
30807 Mircea Namolaru <mircea.namolaru@inria.fr>
30809 PR tree-optimization/58028
30810 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
30813 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30815 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
30816 not handled by recognizers.
30818 2014-03-03 Jakub Jelinek <jakub@redhat.com>
30820 PR middle-end/60175
30821 * function.c (expand_function_end): Don't emit
30822 clobber_return_register sequence if clobber_after is a BARRIER.
30823 * cfgexpand.c (construct_exit_block): Append instructions before
30824 return_label to prev_bb.
30826 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30828 * config/rs6000/constraints.md: Document reserved use of "wc".
30830 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
30833 * ipa.c (function_and_variable_visibility): When dissolving comdat
30834 group, also set all symbols to local.
30836 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
30841 2013-12-14 Jan Hubicka <jh@suse.cz>
30842 PR middle-end/58477
30843 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
30845 2014-03-02 Jon Beniston <jon@beniston.com>
30851 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
30852 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
30853 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
30854 (simple_return, *simple_return): New patterns
30855 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
30856 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
30858 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
30860 * dwarf2out.c (gen_subprogram_die): Tidy.
30862 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
30865 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
30866 (*mov_t_msb_neg_negc): ... this new insn.
30868 2014-02-28 Jason Merrill <jason@redhat.com>
30871 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
30874 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
30877 * dwarf2out.c (decltype_auto_die): New static.
30878 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
30879 (gen_type_die_with_usage): Handle 'decltype(auto)'.
30880 (is_cxx_auto): Likewise.
30882 2014-02-28 Ian Bolton <ian.bolton@arm.com>
30884 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
30885 we are not using general regs only.
30887 2014-02-28 Richard Biener <rguenther@suse.de>
30890 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
30891 previous fix and only allow to remove trivial pre-headers
30892 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
30893 (remove_forwarder_block): Properly update the latch of a loop.
30895 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
30898 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
30899 (cselib_preserved_hash_table): New.
30900 (preserve_constants_and_equivs): Move preserved vals to it.
30901 (cselib_find_slot): Look it up first.
30902 (cselib_init): Initialize it.
30903 (cselib_finish): Release it.
30904 (dump_cselib_table): Dump it.
30906 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
30909 * cselib.c (remove_useless_values): Skip to avoid quadratic
30910 behavior if the condition moved from...
30911 (cselib_process_insn): ... here holds.
30913 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
30916 * var-tracking.c (vt_initialize): Apply the same condition to
30917 preserve the CFA base value.
30919 2014-02-28 Joey Ye <joey.ye@arm.com>
30922 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
30923 if reload in progress or completed.
30925 2014-02-28 Tobias Burnus <burnus@net-b.de>
30927 PR middle-end/60147
30928 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
30931 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
30933 * doc/tm.texi.in (Condition Code Status): Update documention for
30934 relative locations of cc0-setter and cc0-user.
30936 2014-02-27 Jeff Law <law@redhat.com>
30938 PR rtl-optimization/52714
30939 * combine.c (try_combine): When splitting an unrecognized PARALLEL
30940 into two independent simple sets, if I3 is a jump, ensure the
30941 pattern we place into I3 is a (set (pc) ...).
30943 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
30944 Jeff Law <law@redhat.com>
30946 PR rtl-optimization/49847
30947 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
30948 are in different blocks.
30949 * doc/tm.texi (Condition Code Status): Update documention for
30950 relative locations of cc0-setter and cc0-user.
30952 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
30955 * lra.c (lra_emit_add): Check SUBREG too.
30957 2014-02-27 Andreas Schwab <schwab@suse.de>
30959 * config/m68k/m68k.c (m68k_option_override): Disable
30960 -flive-range-shrinkage for classic m68k.
30961 (m68k_override_options_after_change): Likewise.
30963 2014-02-27 Marek Polacek <polacek@redhat.com>
30965 PR middle-end/59223
30966 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
30967 -Wmaybe-uninitialized.
30969 2014-02-27 Alan Modra <amodra@gmail.com>
30972 * reload1.c (emit_input_reload_insns): When reload_override_in,
30973 set old to rl->in_reg when rl->in_reg is a subreg.
30975 2014-02-26 Richard Biener <rguenther@suse.de>
30978 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
30980 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
30982 * common/config/i386/predicates.md (const1256_operand): Remove.
30983 (const2356_operand): New.
30984 (const_1_to_2_operand): Remove.
30985 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30986 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30987 (*avx512pf_gatherpf<mode>sf): Ditto.
30988 (avx512pf_gatherpf<mode>df): Ditto.
30989 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30990 (*avx512pf_gatherpf<mode>df): Ditto.
30991 (avx512pf_scatterpf<mode>sf): Ditto.
30992 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30993 (*avx512pf_scatterpf<mode>sf): Ditto.
30994 (avx512pf_scatterpf<mode>df): Ditto.
30995 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30996 (*avx512pf_scatterpf<mode>df): Ditto.
30997 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
30999 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31001 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31002 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31003 (_mm512_mask_testn_epi64_mask): Move to ...
31004 * config/i386/avx512cdintrin.h: Here.
31005 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31006 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31007 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31008 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31009 TARGET_AVX512F from TARGET_AVX512CD.
31011 2014-02-26 Richard Biener <rguenther@suse.de>
31014 * ipa.c (walk_polymorphic_call_targets): Properly guard
31015 call to inline_update_overall_summary.
31017 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31020 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31021 and latches only if requested. Fix latch if it is removed.
31022 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31023 LOOPS_HAVE_PREHEADERS.
31025 2014-02-25 Andrew Pinski <apinski@cavium.com>
31027 * builtins.c (expand_builtin_thread_pointer): Create a new target
31028 when the target is NULL.
31030 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31032 PR rtl-optimization/60317
31033 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31034 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31035 * lra-assigns.c: Include params.h.
31036 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31037 other reload pseudos considerations.
31039 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31041 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31042 to use canonical form for nor<mode>3.
31044 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31047 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31050 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31052 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31053 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31054 (ix86_handle_option): Handle OPT_mprefetchwt1.
31055 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31056 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31058 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31059 OPTION_MASK_ISA_PREFETCHWT1.
31060 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31061 (PTA_PREFETCHWT1): New.
31062 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31063 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31064 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31065 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31066 (*prefetch_avx512pf_<mode>_: Change into ...
31067 (*prefetch_prefetchwt1_<mode>: This.
31068 * config/i386/i386.opt (mprefetchwt1): New.
31069 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31070 (_mm_prefetch): Handle intent to write.
31071 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31073 2014-02-25 Richard Biener <rguenther@suse.de>
31075 PR middle-end/60291
31076 * emit-rtl.c (mem_attrs_htab): Remove.
31077 (mem_attrs_htab_hash): Likewise.
31078 (mem_attrs_htab_eq): Likewise.
31079 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31080 (init_emit_once): Do not allocate mem_attrs_htab.
31082 2014-02-25 Richard Biener <rguenther@suse.de>
31085 * lto-opts.c (lto_write_options): Output non-explicit conservative
31086 -fwrapv, -fno-trapv and -fno-strict-overflow.
31087 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31088 (run_gcc): And pass them through.
31090 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31092 * sel-sched.c (calculate_new_fences): New parameter ptime.
31093 Calculate it as a maximum over all fence cycles.
31094 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31095 Print the final schedule timing when sched_verbose.
31097 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31099 PR rtl-optimization/60292
31100 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31101 bit fot the fence instruction.
31103 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31105 * calls.h: Fix typo in comment.
31107 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31109 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31110 adjusting offsetable addresses.
31112 2014-02-24 Guozhi Wei <carrot@google.com>
31114 * sparseset.h (sparseset_pop): Fix the wrong index.
31116 2014-02-24 Walter Lee <walt@tilera.com>
31118 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31119 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31121 * common/config/tilegx/tilegx-common.c
31122 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31123 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31124 (LINK_SPEC): Ditto.
31125 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31126 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31127 (tilegx_gimplify_va_arg_expr): Handle big endian.
31128 (tilegx_expand_unaligned_load): Ditto.
31129 (tilegx_expand_unaligned_store): Ditto.
31130 (TARGET_RETURN_IN_MSB): New.
31131 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31132 (TARGET_ENDIAN_DEFAULT): New.
31133 (TARGET_BIG_ENDIAN): Handle big endian.
31134 (BYTES_BIG_ENDIAN): Ditto.
31135 (WORDS_BIG_ENDIAN): Ditto.
31136 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31137 (ENDIAN_SPEC): New.
31138 (EXTRA_SPECS): New.
31139 * config/tilegx/tilegx.md (extv): Handle big endian.
31141 (insn_st<n>): Ditto.
31142 (insn_st<n>_add<bitsuffix>): Ditto.
31143 (insn_stnt<n>): Ditto.
31144 (insn_stnt<n>_add<bitsuffix>):Ditto.
31145 (vec_interleave_highv8qi): Handle big endian.
31146 (vec_interleave_highv8qi_be): New.
31147 (vec_interleave_highv8qi_le): New.
31148 (insn_v1int_h): Handle big endian.
31149 (vec_interleave_lowv8qi): Handle big endian.
31150 (vec_interleave_lowv8qi_be): New.
31151 (vec_interleave_lowv8qi_le): New.
31152 (insn_v1int_l): Handle big endian.
31153 (vec_interleave_highv4hi): Handle big endian.
31154 (vec_interleave_highv4hi_be): New.
31155 (vec_interleave_highv4hi_le): New.
31156 (insn_v2int_h): Handle big endian.
31157 (vec_interleave_lowv4hi): Handle big endian.
31158 (vec_interleave_lowv4hi_be): New.
31159 (vec_interleave_lowv4hi_le): New.
31160 (insn_v2int_l): Handle big endian.
31161 (vec_interleave_highv2si): Handle big endian.
31162 (vec_interleave_highv2si_be): New.
31163 (vec_interleave_highv2si_le): New.
31164 (insn_v4int_h): Handle big endian.
31165 (vec_interleave_lowv2si): Handle big endian.
31166 (vec_interleave_lowv2si_be): New.
31167 (vec_interleave_lowv2si_le): New.
31168 (insn_v4int_l): Handle big endian.
31169 * config/tilegx/tilegx.opt (mbig-endian): New option.
31170 (mlittle-endian): New option.
31171 * doc/install.texi: Document tilegxbe-linux.
31172 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31174 2014-02-24 Martin Jambor <mjambor@suse.cz>
31177 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31178 there are no parameter descriptors.
31180 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
31182 PR rtl-optimization/60268
31183 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31184 initialization to ...
31185 (sched_rgn_init): ... here.
31186 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31188 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31190 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31193 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31195 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31198 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31200 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31201 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31203 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31205 * config/microblaze/predicates.md: Add cmp_op predicate.
31206 * config/microblaze/microblaze.md: Add branch_compare instruction
31207 which uses cmp_op predicate and emits cmp insn before branch.
31208 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31209 to microblaze_expand_conditional_branch and consolidate logic.
31210 (microblaze_expand_conditional_branch): emit branch_compare
31211 insn instead of handling cmp op separate from branch insn.
31213 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31215 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31218 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31220 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31221 define_insn with define_expand and new define_insn
31222 *altivec_lve<VI_char>x_internal.
31223 (altivec_stve<VI_char>x): Replace define_insn with define_expand
31224 and new define_insn *altivec_stve<VI_char>x_internal.
31225 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31227 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31229 (altivec_expand_stvex_be): New function.
31231 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
31233 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31234 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31235 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31236 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31238 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
31241 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31242 instead of emit_move_insn.
31244 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31246 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31247 vspltw with vsldoi.
31248 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31249 gen_altivec_vsumsws.
31251 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31253 * config/rs6000/altivec.md (altivec_lvxl): Rename as
31254 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31255 (altivec_lvxl_<mode>): New define_expand incorporating
31256 -maltivec=be semantics where needed.
31257 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31258 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31259 semantics where needed.
31260 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31261 (altivec_stvx_<mode>): New define_expand incorporating
31262 -maltivec=be semantics where needed.
31263 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31264 VM2 iterator instead of V4SI.
31265 (altivec_stvxl_<mode>): New define_expand incorporating
31266 -maltivec=be semantics where needed.
31267 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31268 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31269 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31270 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31271 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31272 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31273 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31274 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31275 ALTIVEC_BUILTIN_STVXL.
31276 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31277 (altivec_expand_stvx_be): Likewise.
31278 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31279 (altivec_expand_lvx_be): Likewise.
31280 (altivec_expand_stvx_be): Likewise.
31281 (altivec_expand_builtin): Add cases for
31282 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31283 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31284 (altivec_init_builtins): Add definitions for
31285 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31286 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31288 2014-02-21 Catherine Moore <clm@codesourcery.com>
31290 * doc/invoke.texi (mvirt, mno-virt): Document.
31291 * config/mips/mips.opt (mvirt): New option.
31292 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31294 2014-02-21 Richard Biener <rguenther@suse.de>
31296 PR tree-optimization/60276
31297 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31298 (STMT_VINFO_MIN_NEG_DIST): New macro.
31299 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31300 STMT_VINFO_MIN_NEG_DIST.
31301 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31302 made for negative dependence distances still hold.
31304 2014-02-21 Richard Biener <rguenther@suse.de>
31306 PR middle-end/60291
31307 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31308 DECL_INITIAL for globals not in the current function context.
31310 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31312 PR tree-optimization/56490
31313 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31314 * tree-ssa-uninit.c: Include params.h.
31315 (compute_control_dep_chain): Add num_calls argument, return false
31316 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31317 num_calls to recursive call.
31318 (find_predicates): Change dep_chain into normal array,
31319 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31320 variable and adjust compute_control_dep_chain caller.
31321 (find_def_preds): Likewise.
31323 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
31325 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31326 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31328 2014-02-21 Nick Clifton <nickc@redhat.com>
31330 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31331 (pushhi1): Likewise.
31332 (popqi1): Add mode to pre_dec.
31333 (pophi1): Likewise.
31335 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31337 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31338 mode for mask of V8SFmode permutation.
31340 2014-02-20 Richard Henderson <rth@redhat.com>
31343 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31344 a new pseudo for OLDVAL.
31346 2014-02-20 Jakub Jelinek <jakub@redhat.com>
31349 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31350 gen_reg_rtx if d->testing_p.
31351 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31352 if d->testing_p and we will certainly return true.
31353 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
31356 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
31358 * emit-rtl.c (gen_reg_rtx): Assert that
31359 crtl->emit.regno_pointer_align_length is non-zero.
31361 2014-02-20 Richard Henderson <rth@redhat.com>
31364 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31365 on failure the store back into EXPECT.
31367 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
31368 Sandra Loosemore <sandra@codesourcery.com>
31370 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31371 * config/nios2/nios2.c (nios2_function_profiler): Add
31372 -fPIC (flag_pic == 2) support.
31373 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31374 (nios2_large_offset_p): New function.
31375 (nios2_unspec_reloc_p): Move up position, update to use
31376 nios2_large_offset_p.
31377 (nios2_unspec_address): Remove function.
31378 (nios2_unspec_offset): New function.
31379 (nios2_large_got_address): New function.
31380 (nios2_got_address): Add large offset support.
31381 (nios2_legitimize_tls_address): Update usage of removed and new
31383 (nios2_symbol_binds_local_p): New function.
31384 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31385 (nios2_legitimize_address): Update to use nios2_large_offset_p.
31386 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31387 (nios2_print_operand): Merge H/L processing, add hiadj/lo
31388 processing for (const (unspec ...)).
31389 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31391 2014-02-20 Richard Biener <rguenther@suse.de>
31393 * tree-cfg.c (replace_uses_by): Mark altered BBs before
31394 doing the substitution.
31395 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31397 2014-02-20 Martin Jambor <mjambor@suse.cz>
31400 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31401 info when checking whether lattices are bottom.
31403 2014-02-20 Richard Biener <rguenther@suse.de>
31405 PR middle-end/60221
31406 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31409 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
31412 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31413 parameter specifying the scaling.
31414 (inline_call): Update.
31415 (want_inline_recursively): Guard division by zero.
31416 (recursive_inlining): Update.
31417 * ipa-inline.h (clone_inlined_nodes): Update.
31419 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31422 * config/i386/i386.c (classify_argument): Pass structures of size
31423 64 bytes or less in register.
31425 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31426 Kirill Yukhin <kirill.yukhin@intel.com>
31428 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31429 (_mm_rcp28_round_ss): Ditto.
31430 (_mm_rsqrt28_round_sd): Ditto.
31431 (_mm_rsqrt28_round_ss): Ditto.
31432 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31433 (_mm_rcp14_round_ss): Ditto.
31434 (_mm_rsqrt14_round_sd): Ditto.
31435 (_mm_rsqrt14_round_ss): Ditto.
31436 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31437 the first input operand, get rid of match_dup.
31438 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31440 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31442 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
31443 operand as the first input operand, set type attribute.
31444 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31445 Set type attribute.
31446 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
31447 operand as the first input operand, set type attribute.
31449 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31451 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
31454 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
31457 * config/i386/i386.c (construct_container): Remove TFmode check
31458 for X86_64_INTEGER_CLASS.
31460 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
31463 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
31464 only when -Wpsabi is enabled.
31466 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
31469 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
31470 passing arrays in registers are the same as for structs, so remove the
31471 special case for them.
31473 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
31475 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
31476 destination type, extract only the valid bits if the source type is not
31477 integral and has a different mode.
31479 2014-02-19 Richard Biener <rguenther@suse.de>
31482 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
31485 2014-02-19 Richard Biener <rguenther@suse.de>
31488 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
31489 (ipa_modify_call_arguments): Emit an argument load explicitely and
31490 preserve virtual SSA form there and for the replacement call.
31491 Do not update SSA form nor free dominance info.
31493 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31495 * ipa.c (function_and_variable_visibility): Also clear WEAK
31496 flag when disolving COMDAT_GROUP.
31498 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31500 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
31501 * ipa-prop.c (ipa_set_jf_known_type): Return early when
31502 not devirtualizing.
31503 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
31504 do more sanity checks.
31505 (detect_type_change): Return true when giving up early.
31506 (compute_complex_assign_jump_func): Fix type parameter of
31507 ipa_set_ancestor_jf.
31508 (compute_complex_ancestor_jump_func): Likewise.
31509 (update_jump_functions_after_inlining): Fix updating of
31511 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
31513 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31515 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
31516 inline clones when edge disappears.
31518 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31521 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
31522 Split 64-bit moves into 2 patterns. Do not allow the use of
31523 direct move for TDmode in little endian, since the decimal value
31524 has little endian bytes within a word, but the 64-bit pieces are
31525 ordered in a big endian fashion, and normal subreg's of TDmode are
31527 (mov<mode>_64bit_dm): Likewise.
31528 (movtd_64bit_nodm): Likewise.
31530 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
31532 PR tree-optimization/60174
31533 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
31534 statement of an SSA_NAME that occurs in an abnormal PHI node.
31536 2014-02-18 Jakub Jelinek <jakub@redhat.com>
31539 * final.c (SEEN_BB): Remove.
31540 (SEEN_NOTE, SEEN_EMITTED): Renumber.
31541 (final_scan_insn): Don't force_source_line on second
31542 NOTE_INSN_BASIC_BLOCK.
31544 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
31547 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
31548 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
31549 (type_natural_mode): Warn ABI change when %zmm register is not
31550 available for AVX512F vector value passing.
31552 2014-02-18 Kai Tietz <ktietz@redhat.com>
31555 * config/i386/i386.c (ix86_expand_prologue): Use value in
31556 rax register as displacement when restoring %r10 or %rax.
31557 Fix wrong offset when restoring both registers.
31559 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
31561 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
31562 assertion with conditional return.
31564 2014-02-18 Jakub Jelinek <jakub@redhat.com>
31565 Uros Bizjak <ubizjak@gmail.com>
31568 * config/i386/driver-i386.c (host_detect_local_cpu): If
31569 YMM state is not saved by the OS, also clear has_f16c. Move
31570 CPUID 0x80000001 handling before YMM state saving checking.
31572 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
31574 PR rtl-optimization/58960
31575 * haifa-sched.c (alloc_global_sched_pressure_data): New,
31576 factored out from ...
31577 (sched_init): ... here.
31578 (free_global_sched_pressure_data): New, factored out from ...
31579 (sched_finish): ... here.
31580 * sched-int.h (free_global_sched_pressure_data): Declare.
31581 * sched-rgn.c (nr_regions_initial): New static global.
31582 (haifa_find_rgns): Initialize it.
31583 (schedule_region): Disable sched-pressure for the newly
31586 2014-02-17 Richard Biener <rguenther@suse.de>
31588 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
31589 release SSA defs of pattern stmts.
31591 2014-02-17 Richard Biener <rguenther@suse.de>
31593 * tree-inline.c (expand_call_inline): Release the virtual
31594 operand defined by the call we are about to inline.
31596 2014-02-17 Richard Biener <rguenther@suse.de>
31598 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
31600 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
31601 Ilya Tocar <ilya.tocar@intel.com>
31603 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
31604 arguments order in builtin.
31605 (_mm512_permutexvar_epi64): Ditto.
31606 (_mm512_mask_permutexvar_epi64): Ditto
31607 (_mm512_maskz_permutexvar_epi32): Ditto
31608 (_mm512_permutexvar_epi32): Ditto
31609 (_mm512_mask_permutexvar_epi32): Ditto
31611 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31613 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
31614 (p8_vmrgow): Likewise.
31616 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31618 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
31621 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
31624 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
31625 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
31626 into 64-bit and 32-bit moves. On 64-bit moves, add support for
31627 using direct move instructions on ISA 2.07. Also adjust
31628 instruction length for 64-bit.
31629 (mov<mode>_64bit, TFmode/TDmode): Likewise.
31630 (mov<mode>_32bit, TFmode/TDmode): Likewise.
31632 2014-02-15 Alan Modra <amodra@gmail.com>
31636 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31637 find_replacement on parts of insn rtl that might be reloaded.
31639 2014-02-15 Richard Biener <rguenther@suse.de>
31641 PR tree-optimization/60183
31642 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
31643 (tree_ssa_phiprop): Calculate and free post-dominators.
31645 2014-02-14 Jeff Law <law@redhat.com>
31647 PR rtl-optimization/60131
31648 * ree.c (get_extended_src_reg): New function.
31649 (combine_reaching_defs): Use it rather than assuming location of REG.
31650 (find_and_remove_re): Verify first operand of extension is
31651 a REG before adding the insns to the copy list.
31653 2014-02-14 Roland McGrath <mcgrathr@google.com>
31655 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
31656 * configure: Regenerated.
31657 * config.in: Regenerated.
31658 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
31659 instead of ASM_SHORT.
31661 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
31662 Richard Earnshaw <rearnsha@arm.com>
31664 PR rtl-optimization/59535
31665 * lra-constraints.c (process_alt_operands): Encourage alternative
31666 when unassigned pseudo class is superset of the alternative class.
31667 (inherit_reload_reg): Don't inherit when optimizing for code size.
31668 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
31669 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
31670 modes not less than 4 for Thumb1.
31672 2014-02-14 Kyle McMartin <kyle@redhat.com>
31675 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
31677 2014-02-14 Richard Biener <rguenther@suse.de>
31679 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
31680 (get_frame_arg): Drop the assert with langhook types_compatible_p.
31681 Do not strip INDIRECT_REFs.
31683 2014-02-14 Richard Biener <rguenther@suse.de>
31686 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
31687 DECL_FUNCTION_SPECIFIC_TARGET.
31688 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
31689 * tree-streamer-out.c (pack_ts_target_option): Remove.
31690 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
31691 (write_ts_function_decl_tree_pointers): Do not stream
31692 DECL_FUNCTION_SPECIFIC_TARGET.
31693 * tree-streamer-in.c (unpack_ts_target_option): Remove.
31694 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
31695 (lto_input_ts_function_decl_tree_pointers): Do not stream
31696 DECL_FUNCTION_SPECIFIC_TARGET.
31698 2014-02-14 Jakub Jelinek <jakub@redhat.com>
31700 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
31701 (get_initial_def_for_induction, vectorizable_induction): Ignore
31702 debug stmts when looking for exit_phi.
31703 (vectorizable_live_operation): Fix up condition.
31705 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
31707 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
31708 nreverse() because it changes the content of original tree list.
31710 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
31712 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
31713 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
31715 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
31717 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
31718 GNU coding standards.
31720 2014-02-13 Jakub Jelinek <jakub@redhat.com>
31723 * dwarf2out.c (gen_subprogram_die): Don't call
31724 add_calling_convention_attribute if subr_die is old_die.
31726 2014-02-13 Sharad Singhai <singhai@google.com>
31728 * doc/optinfo.texi: Fix order of nodes.
31730 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
31732 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
31733 operands[2], not operands[3].
31735 2014-02-13 Richard Biener <rguenther@suse.de>
31738 * doc/install.texi (ISL): Update recommended version to 0.12.2,
31739 mention the possibility of an in-tree build.
31740 (CLooG): Update recommended version to 0.18.1, mention the
31741 possibility of an in-tree build and clarify that the ISL
31742 bundled with CLooG does not work.
31744 2014-02-13 Jakub Jelinek <jakub@redhat.com>
31747 * expr.c (compress_float_constant): If x is a hard register,
31748 extend into a pseudo and then move to x.
31750 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
31752 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
31753 caused by bad second argument to warning_at() with -mhotpatch and
31754 nested functions (e.g. with gfortran).
31756 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
31758 * opts.c (option_name): Remove "enabled by default" rider.
31760 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
31762 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
31764 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
31765 Uros Bizjak <ubizjak@gmail.com>
31768 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
31769 * configure: Regenerated.
31771 2014-02-12 Richard Biener <rguenther@suse.de>
31773 * vec.c (vec_prefix::calculate_allocation): Move as
31774 inline variant to vec.h.
31775 (vec_prefix::calculate_allocation_1): New out-of-line version.
31776 * vec.h (vec_prefix::calculate_allocation_1): Declare.
31777 (vec_prefix::m_has_auto_buf): Rename to ...
31778 (vec_prefix::m_using_auto_storage): ... this.
31779 (vec_prefix::calculate_allocation): Inline the easy cases
31780 and dispatch to calculate_allocation_1 which doesn't need the
31782 (va_heap::reserve): Use gcc_checking_assert.
31783 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
31784 m_using_auto_storage.
31785 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
31787 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
31788 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
31789 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
31791 2014-02-12 Richard Biener <rguenther@suse.de>
31793 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
31794 when we found a dependence.
31796 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
31798 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
31800 (maybe_fold_stmt): ... into this new function.
31801 * omp-low.c (lower_omp): Update comment.
31803 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
31806 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
31809 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
31811 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
31812 identifiers in comments.
31813 (cortexa53_extra_costs): Likewise.
31814 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
31815 (cortexa7_extra_costs): Likewise.
31816 (cortexa12_extra_costs): Likewise.
31817 (cortexa15_extra_costs): Likewise.
31818 (v7m_extra_costs): Likewise.
31820 2014-02-12 Richard Biener <rguenther@suse.de>
31822 PR middle-end/60092
31823 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
31824 of posix_memalign being successful.
31825 (lower_stmt): Restrict lowering of posix_memalign to when
31826 -ftree-bit-ccp is enabled.
31828 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31830 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
31832 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
31834 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
31836 PR rtl-optimization/60116
31837 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
31838 other_insn once the combination has been validated.
31840 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
31843 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
31845 * ipa-devirt.c: Include demangle.h
31846 (odr_violation_reported): New static variable.
31847 (add_type_duplicate): Update odr_violations.
31848 (maybe_record_node): Add completep parameter; update it.
31849 (record_target_from_binfo): Add COMPLETEP parameter;
31850 update it as needed.
31851 (possible_polymorphic_call_targets_1): Likewise.
31852 (struct polymorphic_call_target_d): Add nonconstruction_targets;
31853 rename FINAL to COMPLETE.
31854 (record_targets_from_bases): Sanity check we found the binfo;
31855 fix COMPLETEP updating.
31856 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
31857 parameter, fix computing of COMPLETEP.
31858 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
31859 at LTO time do demangling.
31860 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
31861 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
31863 (gimple_get_virt_method_for_binfo): Likewise.
31864 * gimple-fold.h (gimple_get_virt_method_for_binfo,
31865 gimple_get_virt_method_for_vtable): Update prototypes.
31867 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
31870 * genautomata.c (add_presence_absence): Fix typo with
31871 {final_}presence_list.
31873 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31876 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
31877 for VSX/Altivec vectors that land in GPR registers.
31879 2014-02-11 Richard Henderson <rth@redhat.com>
31880 Jakub Jelinek <jakub@redhat.com>
31883 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
31884 around drhs if type conversion to lacc->type is not useless.
31886 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31888 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
31890 (cortex-a57.cortex-a53): Likewise.
31891 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
31893 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31895 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
31898 2014-02-11 Renlin Li <Renlin.Li@arm.com>
31900 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
31901 add_options_for_arm_vfp3.
31903 2014-02-11 Jeff Law <law@redhat.com>
31905 PR middle-end/54041
31906 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
31907 object with an undesirable mode.
31909 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31912 * config/i386/sol2-9.h: New file.
31913 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
31914 *-*-solaris2.9*): Use it.
31916 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
31918 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
31919 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
31921 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
31923 * config/microblaze/microblaze.c: Extend mcpu version format
31925 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
31927 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
31929 2014-02-10 Richard Henderson <rth@redhat.com>
31932 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
31933 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
31934 ms-abi vs -mno-accumulate-outgoing-args.
31935 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
31936 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
31939 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
31941 PR middle-end/60080
31942 * cfgexpand.c (expand_asm_operands): Attach source location to
31943 ASM_INPUT rtx objects.
31944 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
31946 2014-02-10 Nick Clifton <nickc@redhat.com>
31948 * config/mn10300/mn10300.c (popcount): New function.
31949 (mn10300_expand_prologue): Include saved registers in stack usage
31952 2014-02-10 Jeff Law <law@redhat.com>
31954 PR middle-end/52306
31955 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
31956 when changing the SET_DEST of a prior insn to avoid an input reload.
31958 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31960 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
31961 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
31962 -mcall-openbsd, or -mcall-linux.
31963 (CC1_ENDIAN_BIG_SPEC): Remove.
31964 (CC1_ENDIAN_LITTLE_SPEC): Remove.
31965 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31966 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
31967 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
31968 and %cc1_endian_default.
31969 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31971 2014-02-10 Richard Biener <rguenther@suse.de>
31973 PR tree-optimization/60115
31974 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
31975 MEM_REF handling. Properly verify that the accesses are not
31976 out of the objects bound.
31978 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31980 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
31983 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
31985 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
31986 proper constants and fix formatting.
31987 (possible_polymorphic_call_targets): Fix formatting.
31989 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
31990 Ilya Tocar <ilya.tocar@intel.com>
31992 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
31993 (_mm512_loadu_epi32): Renamed into...
31994 (_mm512_loadu_si512): This.
31995 (_mm512_storeu_epi32): Renamed into...
31996 (_mm512_storeu_si512): This.
31997 (_mm512_maskz_ceil_ps): Removed.
31998 (_mm512_maskz_ceil_pd): Ditto.
31999 (_mm512_maskz_floor_ps): Ditto.
32000 (_mm512_maskz_floor_pd): Ditto.
32001 (_mm512_floor_round_ps): Ditto.
32002 (_mm512_floor_round_pd): Ditto.
32003 (_mm512_ceil_round_ps): Ditto.
32004 (_mm512_ceil_round_pd): Ditto.
32005 (_mm512_mask_floor_round_ps): Ditto.
32006 (_mm512_mask_floor_round_pd): Ditto.
32007 (_mm512_mask_ceil_round_ps): Ditto.
32008 (_mm512_mask_ceil_round_pd): Ditto.
32009 (_mm512_maskz_floor_round_ps): Ditto.
32010 (_mm512_maskz_floor_round_pd): Ditto.
32011 (_mm512_maskz_ceil_round_ps): Ditto.
32012 (_mm512_maskz_ceil_round_pd): Ditto.
32013 (_mm512_expand_pd): Ditto.
32014 (_mm512_expand_ps): Ditto.
32015 * config/i386/i386.c (ix86_builtins): Remove
32016 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32017 (bdesc_args): Ditto.
32018 * config/i386/predicates.md (const1256_operand): New.
32019 (const_1_to_2_operand): Ditto.
32020 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32021 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32022 (*avx512pf_gatherpf<mode>sf): Ditto.
32023 (avx512pf_gatherpf<mode>df): Ditto.
32024 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32025 (*avx512pf_gatherpf<mode>df): Ditto.
32026 (avx512pf_scatterpf<mode>sf): Ditto.
32027 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32028 (*avx512pf_scatterpf<mode>sf): Ditto.
32029 (avx512pf_scatterpf<mode>df): Ditto.
32030 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32031 (*avx512pf_scatterpf<mode>df): Ditto.
32032 (avx512f_expand<mode>): Removed.
32033 (<shift_insn><mode>3<mask_name>): Change predicate type.
32035 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32037 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32038 not at the end of datarefs vector use ordered_remove to avoid
32039 reordering datarefs vector.
32042 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32043 mark local addressable non-static vars as GOVD_PRIVATE
32044 instead of GOVD_LOCAL.
32045 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32046 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32049 PR middle-end/60092
32050 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32051 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32052 assume_aligned or alloc_align attributes.
32053 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32054 arguments. Handle also assume_aligned and alloc_align attributes.
32055 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32056 calls to functions with assume_aligned or alloc_align attributes.
32057 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32059 2014-02-08 Terry Guo <terry.guo@arm.com>
32061 * doc/invoke.texi: Document ARM -march=armv7e-m.
32063 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32065 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32066 flag on __cilkrts_rethrow builtin.
32069 * ipa-cp.c (determine_versionability): Fail at -O0
32070 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32071 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32074 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32077 * tree-inline.c (copy_forbidden): Fail for
32078 __attribute__((optimize (0))) functions.
32080 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32082 * varpool.c: Include pointer-set.h.
32083 (varpool_remove_unreferenced_decls): Variables in other partitions
32084 will not be output; be however careful to not lose information
32085 about partitioning.
32087 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32089 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32090 lookup in the vtable constructor.
32092 2014-02-07 Jeff Law <law@redhat.com>
32095 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32096 define_insn_and_split.
32098 * ipa-inline.c (inline_small_functions): Fix typos.
32100 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32102 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32103 (s390_can_use_return_insn): Declare.
32104 * config/s390/s390.h (EPILOGUE_USES): Define.
32105 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32107 (s390_chunkify_start): Handle return JUMP_LABELs.
32108 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32109 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32110 (s390_can_use_return_insn): New functions.
32111 (s390_fix_long_loop_prediction): Handle conditional returns.
32112 (TARGET_SET_UP_BY_PROLOGUE): Define.
32113 * config/s390/s390.md (ANY_RETURN): New code iterator.
32114 (*creturn, *csimple_return, return, simple_return): New patterns.
32116 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32118 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32119 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32120 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32121 REG_CFA_RESTORE list when deciding not to restore a register.
32123 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32125 * config/s390/s390.c: Include tree-pass.h and context.h.
32126 (s390_early_mach): New function, split out from...
32127 (s390_emit_prologue): ...here.
32128 (pass_data_s390_early_mach): New pass structure.
32129 (pass_s390_early_mach): New class.
32130 (s390_option_override): Create and register early_mach pass.
32131 Move to end of file.
32133 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32135 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32136 to match for the exit block.
32138 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32140 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32141 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32142 Reject misaligned operands.
32144 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32146 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32148 2014-02-07 Richard Biener <rguenther@suse.de>
32150 PR middle-end/60092
32151 * gimple-low.c (lower_builtin_posix_memalign): New function.
32152 (lower_stmt): Call it to lower posix_memalign in a way
32153 to make alignment info accessible.
32155 2014-02-07 Jakub Jelinek <jakub@redhat.com>
32158 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32159 __builtin_setjmp_receiver.
32161 2014-02-07 Richard Biener <rguenther@suse.de>
32163 PR middle-end/60092
32164 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32165 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32166 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32167 Handle BUILT_IN_POSIX_MEMALIGN.
32168 (find_func_clobbers): Likewise.
32169 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32170 (call_may_clobber_ref_p_1): Likewise.
32172 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32175 * ipa-devirt.c (record_target_from_binfo): Remove overactive
32178 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32181 * lto-cgraph.c (lto_output_node): Use
32182 symtab_get_symbol_partitioning_class.
32183 (lto_output_varpool_node): likewise.
32184 (symtab_get_symbol_partitioning_class): Move here from
32185 lto/lto-partition.c
32186 * cgraph.h (symbol_partitioning_class): Likewise.
32187 (symtab_get_symbol_partitioning_class): Declare.
32189 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32191 * ggc.h (ggc_internal_cleared_alloc): New macro.
32192 * vec.h (vec_safe_copy): Handle memory stats.
32193 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32194 * target-globals.c (save_target_globals): Likewise.
32196 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32199 * expr.c (emit_move_resolve_push): Export; be bit more selective
32200 on when to clear alias set.
32201 * expr.h (emit_move_resolve_push): Declare.
32202 * function.h (struct function): Add tail_call_marked.
32203 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32204 * config/i386/i386-protos.h (ix86_expand_push): Remove.
32205 * config/i386/i386.md (TImode move expander): De not call
32207 (FP push expanders): Preserve memory attributes.
32208 * config/i386/sse.md (push<mode>1): Remove.
32209 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32210 (ix86_expand_push): Remove.
32211 * config/i386/mmx.md (push<mode>1): Remove.
32213 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32215 PR rtl-optimization/60030
32216 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32217 lopart with paradoxical subreg before shifting it up by hprec.
32219 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32221 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32222 Remove extra newline at end of file.
32223 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32224 (arm_issue_rate): Handle cortexa57.
32225 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32226 (cortex-a57.cortex-a53): Likewise.
32228 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32231 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32232 don't record in REG_FRAME_RELATED_EXPR registers not set in that
32234 (arm_expand_prologue): Adjust all callers.
32235 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32236 info, registers also at the lowest numbered registers side. Use
32237 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32241 * var-tracking.c (adjust_mems): Before adding a SET to
32242 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32244 2014-02-06 Alan Modra <amodra@gmail.com>
32247 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32248 change SDmode to DDmode when lra_in_progress.
32250 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32252 PR middle-end/59150
32253 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32254 free_data_ref on the dr first, and before goto again also set dr
32255 to the next dr. For simd_lane_access, free old datarefs[i] before
32256 overwriting it. For get_vectype_for_scalar_type failure, don't
32257 free_data_ref if simd_lane_access.
32259 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32262 * tree.h (opts_for_fn): New inline function.
32263 (opt_for_fn): Define.
32264 * config/i386/i386.c (ix86_function_regparm): Use
32265 opt_for_fn (decl, optimize) instead of optimize.
32267 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
32269 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32270 for SYMBOL_REF in large memory model.
32272 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32274 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32275 and crypto support.
32276 (cortex-a57): Likewise.
32277 (cortex-a57.cortex-a53): Likewise.
32279 2014-02-06 Yury Gribov <y.gribov@samsung.com>
32280 Kugan Vivekanandarajah <kuganv@linaro.org>
32282 * config/arm/arm.c (arm_vector_alignment_reachable): Check
32284 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32286 2014-02-06 Richard Biener <rguenther@suse.de>
32288 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32289 set_loop_copy and initialize_original_copy_tables.
32291 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
32293 * config/aarch64/aarch64-simd.md
32294 (aarch64_ashr_simddi): Change QI to SI.
32296 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32297 Jakub Jelinek <jakub@redhat.com>
32299 PR middle-end/60013
32300 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32303 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32305 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32306 CODE_FOR_altivec_vpku[hw]um to
32307 CODE_FOR_altivec_vpku[hw]um_direct.
32308 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32309 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32310 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32311 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32313 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32315 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32316 generation for -maltivec=be.
32317 (altivec_vsumsws): Simplify redundant test.
32319 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32321 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32322 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32323 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32324 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32325 gen_altivec_vpkuwum.
32326 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32328 (altivec_vpks<VI_char>ss): Likewise.
32329 (altivec_vpks<VI_char>us): Likewise.
32330 (altivec_vpku<VI_char>us): Likewise.
32331 (altivec_vpku<VI_char>um): Likewise.
32332 (altivec_vpku<VI_char>um_direct): New (copy of
32333 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32335 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32336 target is little endian and -maltivec=be is not specified.
32337 (*altivec_vupkhs<VU_char>_direct): New (copy of
32338 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32339 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32340 target is little endian and -maltivec=be is not specified.
32341 (*altivec_vupkls<VU_char>_direct): New (copy of
32342 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32343 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32344 little endian and -maltivec=be is not specified.
32345 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32346 little endian and -maltivec=be is not specified.
32348 2014-02-05 Richard Henderson <rth@redhat.com>
32351 * combine-stack-adj.c: Revert r206943.
32352 * sched-int.h (struct deps_desc): Add last_args_size.
32353 * sched-deps.c (init_deps): Initialize it.
32354 (sched_analyze_insn): Add OUTPUT dependencies between insns that
32355 contain REG_ARGS_SIZE notes.
32357 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32359 * lto-cgraph.c (asm_nodes_output): Make global.
32360 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32361 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32362 (driver_handle_option): Handle OPT_fwpa.
32364 2014-02-05 Jakub Jelinek <jakub@redhat.com>
32367 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32368 a comment typo and formatting issue. If odr_hash hasn't been
32369 created, return vNULL and set *completep to false.
32371 PR middle-end/57499
32372 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32373 bb with no successors.
32375 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
32378 * doc/invoke.texi (-march): Clarify documentation for ARM.
32379 (-mtune): Likewise.
32382 2014-02-05 Richard Biener <rguenther@suse.de>
32384 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32385 when not vectorizing because of too many alias checks.
32386 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32387 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32389 2014-02-05 Nick Clifton <nickc@redhat.com>
32391 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32392 accept extended registers in any mode when compiling for the MN10300.
32394 2014-02-05 Yury Gribov <y.gribov@samsung.com>
32396 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32397 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32398 sanitization attributes.
32399 (can_inline_edge_p): Likewise.
32400 (sanitize_attrs_match_for_inline_p): New function.
32402 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32404 * ipa-prop.c (detect_type_change): Shor circuit testing of
32405 type changes on THIS pointer.
32407 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
32410 * config/pa/pa.c (legitimize_tls_address): Return original address
32411 if not passed a SYMBOL_REF rtx.
32412 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32414 (pa_emit_move_sequence): Simplify TLS source operands.
32415 (pa_legitimate_constant_p): Reject all TLS constants.
32416 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32417 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32419 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32421 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32422 groups when we know they are controlled by LTO.
32423 * varasm.c (default_binds_local_p_1): If object is in other partition,
32424 it will be resolved locally.
32426 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32428 * config/host-linux.c (linux_gt_pch_use_address): Don't
32429 use SSIZE_MAX because it is not always defined.
32431 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
32434 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32435 threshold for pseudo splitting.
32436 (update_ebb_live_info): Process call argument hard registers and
32437 hard registers from insn definition too.
32438 (max_small_class_regs_num): New constant.
32439 (inherit_in_ebb): Update live hard regs through EBBs. Update
32440 reloads_num only for small register classes. Don't split for
32443 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
32446 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
32449 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32451 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
32452 visibility is safe.
32454 2014-02-04 Marek Polacek <polacek@redhat.com>
32456 * gdbinit.in (pel): Define.
32458 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32460 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
32463 2014-02-04 Richard Biener <rguenther@suse.de>
32466 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
32467 in function context local.
32468 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
32469 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
32470 similar to LTO_imported_decl_ref.
32472 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32474 PR tree-optimization/60002
32475 * cgraphclones.c (build_function_decl_skip_args): Clear
32476 DECL_LANG_SPECIFIC.
32478 PR tree-optimization/60023
32479 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
32480 false to gsi_replace.
32481 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
32482 has been in some EH region and vec_stmt could throw, add
32483 vec_stmt into the same EH region.
32484 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
32485 has no lhs, ignore it.
32486 * internal-fn.c (expand_MASK_LOAD): Likewise.
32489 * tree-inline.c (copy_forbidden): Fail for
32490 __attribute__((optimize (0))) functions.
32493 * omp-low.c (simd_clone_struct_copy): If from->inbranch
32494 is set, copy one less argument.
32495 (expand_simd_clones): Don't subtract clone_info->inbranch
32496 from simd_clone_struct_alloc argument.
32498 PR rtl-optimization/57915
32499 * recog.c (simplify_while_replacing): If all unary/binary/relational
32500 operation arguments are constant, attempt to simplify those.
32502 PR middle-end/59261
32503 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
32504 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
32506 2014-02-04 Richard Biener <rguenther@suse.de>
32508 PR tree-optimization/60012
32509 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
32510 TBAA disambiguation to all DDRs.
32512 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32515 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
32516 (LINK_SPEC): Use it for -shared, -shared-libgcc.
32518 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32521 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
32523 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32525 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
32526 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
32528 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32531 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
32532 to figure out targets of polymorphic calls with known decl.
32533 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32534 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
32535 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
32536 (get_polymorphic_call_info): ... here.
32537 (get_polymorphic_call_info_from_invariant): New function.
32539 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32541 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
32542 lookup via vtable pointer; check for type consistency
32543 and turn inconsitent facts into UNREACHABLE.
32544 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32545 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
32546 type inconsistent querries; return UNREACHABLE instead.
32548 2014-02-03 Richard Henderson <rth@twiddle.net>
32551 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
32552 already processed this node.
32553 (normalize_one_pred_1): Pass along mark_set.
32554 (normalize_one_pred): Create and destroy a pointer_set_t.
32555 (normalize_one_pred_chain): Likewise.
32557 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
32559 PR gcov-profile/58602
32560 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
32562 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32565 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
32566 -fno-devirtualize; try to devirtualize by the knowledge of
32567 virtual table pointer given by aggregate propagation.
32568 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32569 (ipa_print_node_jump_functions): Dump also offset that
32570 is relevant for polymorphic calls.
32571 (determine_known_aggregate_parts): Add arg_type parameter; use it
32572 instead of determining the type from pointer type.
32573 (ipa_compute_jump_functions_for_edge): Update call of
32574 determine_known_aggregate_parts.
32575 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
32576 (gimple_get_virt_method_for_binfo): ... here; simplify using
32577 vtable_pointer_value_to_vtable.
32578 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
32579 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
32580 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
32581 (vtable_pointer_value_to_vtable): Break out from ...; handle also
32583 (vtable_pointer_value_to_binfo): ... here.
32584 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
32586 2014-02-03 Teresa Johnson <tejohnson@google.com>
32588 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
32589 redef of outer loop index variable.
32591 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
32595 * doc/extend.texi (Function Attributes): Typo.
32597 2014-02-03 Cong Hou <congh@google.com>
32599 PR tree-optimization/60000
32600 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
32601 if the vectorized statement is a store. A store statement can only
32602 appear at the end of pattern statements.
32604 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
32606 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
32607 (ix86_option_override_internal): Default long double to 64-bit for
32608 32-bit Bionic and to 128-bit for 64-bit Bionic.
32610 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
32611 TARGET_LONG_DOUBLE_128 is true.
32612 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
32614 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
32615 (mlong-double-64): Negate -mlong-double-128.
32616 (mlong-double-128): New option.
32618 * config/i386/i386-c.c (ix86_target_macros): Define
32619 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
32621 * doc/invoke.texi: Document -mlong-double-128.
32623 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
32625 PR rtl-optimization/60024
32626 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
32628 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
32630 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
32632 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
32634 PR rtl-optimization/57662
32635 * sel-sched.c (code_motion_path_driver): Do not mark already not
32636 existing blocks in the visiting bitmap.
32638 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
32640 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
32641 on the insn being emitted.
32643 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
32644 Will Deacon <will.deacon@arm.com>
32646 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
32648 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32650 * config/arm/arm-tables.opt: Regenerate.
32652 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32654 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
32655 for vector types other than V16QImode.
32656 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
32657 define_expand, and call altivec_expand_vec_perm_le when producing
32658 code with little endian element order.
32659 (*altivec_vperm_<mode>_internal): New insn having previous
32660 behavior of altivec_vperm_<mode>.
32661 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
32662 altivec_expand_vec_perm_le when producing code with little endian
32664 (*altivec_vperm_<mode>_uns_internal): New insn having previous
32665 behavior of altivec_vperm_<mode>_uns.
32667 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32669 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
32670 (altivec_vsumsws): Add handling for -maltivec=be with a little
32672 (altivec_vsumsws_direct): New.
32673 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
32674 gen_altivec_vsumsws.
32676 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
32678 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
32679 vtable_pointer_value_to_binfo): New functions.
32680 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
32681 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
32683 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
32685 * config/nios2/nios2.md (load_got_register): Initialize GOT
32686 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
32687 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
32689 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
32691 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
32692 preserverd by passthrough, do not propagate the type.
32694 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
32696 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
32697 (mips_atomic_assign_expand_fenv): New function.
32698 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32700 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
32702 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
32703 (__builtin_mips_set_fcsr): Likewise.
32704 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
32705 MIPS_USI_FTYPE_VOID.
32706 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
32707 (mips16_expand_set_fcsr): Likewise.
32708 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
32709 (mips16_set_fcsr_stub): Likewise.
32710 (mips16_get_fcsr_one_only_stub): New class.
32711 (mips16_set_fcsr_one_only_stub): Likewise.
32712 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
32713 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
32714 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
32715 (hard_float): New availability predicate.
32716 (mips_builtins): Add get_fcsr and set_fcsr.
32717 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
32718 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
32719 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
32720 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
32721 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
32724 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
32726 * config/mips/mips.c (mips_one_only_stub): New class.
32727 (mips_need_mips16_rdhwr_p): Replace with...
32728 (mips16_rdhwr_stub): ...this new variable.
32729 (mips16_stub_call_address): New function.
32730 (mips16_rdhwr_one_only_stub): New class.
32731 (mips_expand_thread_pointer): Use mips16_stub_call_address.
32732 (mips_output_mips16_rdhwr): Delete.
32733 (mips_finish_stub): New function.
32734 (mips_code_end): Use it to handle rdhwr stubs.
32736 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
32739 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
32740 when calculating size of integer atomic types.
32742 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
32744 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
32746 2014-02-01 Jakub Jelinek <jakub@redhat.com>
32748 PR tree-optimization/60003
32749 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
32750 * profile.c (branch_prob): Use gimple_call_builtin_p
32751 to check for BUILT_IN_SETJMP_RECEIVER.
32752 * tree-inline.c (copy_bb): Call notice_special_calls.
32754 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
32757 * lra-constraints.c (process_alt_operands): Update reload_sum only
32760 2014-01-31 Richard Henderson <rth@redhat.com>
32762 PR middle-end/60004
32763 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
32764 until after else_eh is processed.
32766 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
32768 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
32769 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
32770 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
32771 in smmintrin.h, remove them.
32772 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
32773 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
32774 * config/i386/i386.md (ROUND_SAE): Fix value.
32775 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
32776 (const48_operand): New.
32777 * config/i386/subst.md (round), (round_expand): Use
32778 const_4_or_8_to_11_operand.
32779 (round_saeonly), (round_saeonly_expand): Use const48_operand.
32781 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
32783 * config/i386/constraints.md (Yk): Swap meaning with k.
32784 * config/i386/i386.md (movhi_internal): Change Yk to k.
32785 (movqi_internal): Ditto.
32786 (*k<logic><mode>): Ditto.
32789 (kandn<mode>): Ditto.
32790 (*<code>hi_1): Ditto.
32791 (*<code>qi_1): Ditto.
32792 (kxnor<mode>): Ditto.
32793 (kortestzhi): Ditto.
32794 (kortestchi): Ditto.
32796 (*one_cmplhi2_1): Ditto.
32797 (*one_cmplqi2_1): Ditto.
32798 * config/i386/sse.md (): Change k to Yk.
32799 (avx512f_load<mode>_mask): Ditto.
32800 (avx512f_blendm<mode>): Ditto.
32801 (avx512f_store<mode>_mask): Ditto.
32802 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
32803 (avx512f_storedqu<mode>_mask): Ditto.
32804 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
32806 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
32807 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
32808 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
32809 (avx512f_maskcmp<mode>3): Ditto.
32810 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
32811 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
32812 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
32813 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
32814 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
32815 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
32816 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
32817 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
32818 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
32819 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
32820 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
32821 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
32822 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
32823 (vec_extract_lo_<mode>_maskm): Ditto.
32824 (vec_extract_hi_<mode>_maskm): Ditto.
32825 (avx512f_vternlog<mode>_mask): Ditto.
32826 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
32827 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
32828 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
32829 (avx512f_<code>v8div16qi2_mask): Ditto.
32830 (avx512f_<code>v8div16qi2_mask_store): Ditto.
32831 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
32832 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
32833 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
32834 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
32835 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32836 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32837 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32838 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32839 (avx512cd_maskb_vec_dupv8di): Ditto.
32840 (avx512cd_maskw_vec_dupv16si): Ditto.
32841 (avx512f_vpermi2var<mode>3_maskz): Ditto.
32842 (avx512f_vpermi2var<mode>3_mask): Ditto.
32843 (avx512f_vpermi2var<mode>3_mask): Ditto.
32844 (avx512f_vpermt2var<mode>3_maskz): Ditto.
32845 (*avx512f_gathersi<mode>): Ditto.
32846 (*avx512f_gathersi<mode>_2): Ditto.
32847 (*avx512f_gatherdi<mode>): Ditto.
32848 (*avx512f_gatherdi<mode>_2): Ditto.
32849 (*avx512f_scattersi<mode>): Ditto.
32850 (*avx512f_scatterdi<mode>): Ditto.
32851 (avx512f_compress<mode>_mask): Ditto.
32852 (avx512f_compressstore<mode>_mask): Ditto.
32853 (avx512f_expand<mode>_mask): Ditto.
32854 * config/i386/subst.md (mask): Change k to Yk.
32855 (mask_scalar_merge): Ditto.
32858 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
32860 * doc/extend.texi (Vector Extensions): Document ?: in C++.
32862 2014-01-31 Richard Biener <rguenther@suse.de>
32864 PR middle-end/59990
32865 * builtins.c (fold_builtin_memory_op): Make sure to not
32866 use a floating-point mode or a boolean or enumeral type for
32867 the copy operation.
32869 2014-01-30 DJ Delorie <dj@redhat.com>
32871 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
32872 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
32873 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
32874 whenever main() has an epilogue.
32876 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32878 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
32879 unused variable "field".
32880 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
32881 (vsx_mergeh_<mode>): Likewise.
32882 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
32883 (altivec_vmrghh): Likewise.
32884 (altivec_vmrghw): Likewise.
32885 (altivec_vmrglb): Likewise.
32886 (altivec_vmrglh): Likewise.
32887 (altivec_vmrglw): Likewise.
32888 (altivec_vspltb): Add missing uses.
32889 (altivec_vsplth): Likewise.
32890 (altivec_vspltw): Likewise.
32891 (altivec_vspltsf): Likewise.
32893 2014-01-30 Jakub Jelinek <jakub@redhat.com>
32896 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
32897 frame related instructions.
32899 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
32901 PR rtl-optimization/59959
32902 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
32903 any reload of register whose subreg is invalid.
32905 2014-01-30 Jakub Jelinek <jakub@redhat.com>
32907 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
32908 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
32909 Add missing return type - void.
32911 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32913 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
32914 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
32915 remove element index adjustment for endian (now handled in vsx.md
32917 (altivec_expand_vec_perm_const): Use
32918 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
32919 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
32920 (vsx_xxspltw_<mode>): Adjust element index for little endian.
32921 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
32922 define_expand and a new define_insn *altivec_vspltb_internal;
32923 adjust for -maltivec=be on a little endian target.
32924 (altivec_vspltb_direct): New.
32925 (altivec_vsplth): Divide into a define_expand and a new
32926 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
32927 little endian target.
32928 (altivec_vsplth_direct): New.
32929 (altivec_vspltw): Divide into a define_expand and a new
32930 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
32931 little endian target.
32932 (altivec_vspltw_direct): New.
32933 (altivec_vspltsf): Divide into a define_expand and a new
32934 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
32935 a little endian target.
32937 2014-01-30 Richard Biener <rguenther@suse.de>
32939 PR tree-optimization/59993
32940 * tree-ssa-forwprop.c (associate_pointerplus): Check we
32941 can propagate form the earlier stmt and avoid the transform
32942 when the intermediate result is needed.
32944 2014-01-30 Alangi Derick <alangiderick@gmail.com>
32946 * README.Portability: Fix typo.
32948 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
32950 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
32951 comparison_operator with ordered_comparison_operator.
32953 2014-01-30 Nick Clifton <nickc@redhat.com>
32955 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
32956 Rename to mn10300_store_multiple_regs.
32957 * config/mn10300/mn10300.c: Likewise.
32958 * config/mn10300/mn10300.md (store_movm): Fix typo: call
32959 store_multiple_regs.
32960 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
32961 Call mn10300_store_multiple_regs.
32963 2014-01-30 Nick Clifton <nickc@redhat.com>
32964 DJ Delorie <dj@redhat.com>
32966 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
32967 %fp 2 to keep registers after it properly word-aligned.
32968 (rl78_alloc_physical_registers_umul): Handle the case where both
32969 input operands are the same.
32971 2014-01-30 Richard Biener <rguenther@suse.de>
32973 PR tree-optimization/59903
32974 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
32977 2014-01-30 Jason Merrill <jason@redhat.com>
32980 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
32983 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
32985 2014-01-30 Richard Biener <rguenther@suse.de>
32987 PR tree-optimization/59951
32988 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
32990 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
32993 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
32994 SFmode to DFmode case.
32996 2014-01-29 DJ Delorie <dj@redhat.com>
32998 * config/msp430/msp430.opt (-minrt): New.
32999 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33001 (ENDFILE_SPEC): Likewise.
33003 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33005 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33006 (estimate_function_body_sizes): Use it.
33008 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33011 * dwarf2out.c (is_cxx_auto): New.
33012 (is_base_type): Use it.
33013 (gen_type_die_with_usage): Likewise.
33015 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33017 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33018 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33019 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33020 -maltivec=be with LE targets.
33021 (vsx_mergeh_<mode>): Likewise.
33022 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33023 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33024 (altivec_vmrghb): Replace with define_expand and new
33025 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33026 (altivec_vmrghb_direct): New define_insn.
33027 (altivec_vmrghh): Replace with define_expand and new
33028 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33029 (altivec_vmrghh_direct): New define_insn.
33030 (altivec_vmrghw): Replace with define_expand and new
33031 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33032 (altivec_vmrghw_direct): New define_insn.
33033 (*altivec_vmrghsf): Adjust for endianness.
33034 (altivec_vmrglb): Replace with define_expand and new
33035 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33036 (altivec_vmrglb_direct): New define_insn.
33037 (altivec_vmrglh): Replace with define_expand and new
33038 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33039 (altivec_vmrglh_direct): New define_insn.
33040 (altivec_vmrglw): Replace with define_expand and new
33041 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33042 (altivec_vmrglw_direct): New define_insn.
33043 (*altivec_vmrglsf): Adjust for endianness.
33044 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33045 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33046 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33047 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33048 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33049 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33050 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33051 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33053 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33055 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33056 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33059 2014-01-29 Richard Biener <rguenther@suse.de>
33061 PR tree-optimization/58742
33062 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33063 associate_pointerplus_align.
33064 (associate_pointerplus_diff): New function.
33065 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33066 and associate_pointerplus_diff.
33068 2014-01-29 Richard Biener <rguenther@suse.de>
33070 * lto-streamer.h (LTO_major_version): Bump to 3.
33071 (LTO_minor_version): Reset to 0.
33073 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33075 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33076 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33077 (arm_file_start): Generate correct asm header for armv7ve.
33078 * config/arm/bpabi.h: Add multilib support for armv7ve.
33079 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33080 and cortex-a15 to armv7ve.
33081 * config/arm/t-aprofile: Add multilib support for armv7ve.
33082 * doc/invoke.texi: Document -march=armv7ve.
33084 2014-01-29 Richard Biener <rguenther@suse.de>
33086 PR tree-optimization/58742
33087 * tree-ssa-forwprop.c (associate_plusminus): Return true
33088 if we changed sth, defer EH cleanup to ...
33089 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33090 (simplify_mult): New function.
33092 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33094 PR middle-end/59917
33095 PR tree-optimization/59920
33096 * tree.c (build_common_builtin_nodes): Remove
33097 __builtin_setjmp_dispatcher initialization.
33098 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33099 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33100 instead of gsi_after_labels + manually skipping debug stmts.
33101 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33102 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33103 * tree-inline.c (copy_edges_for_bb): Remove
33104 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33105 argument. Ignore computed_goto_p stmts. Don't call
33106 make_abnormal_goto_edges. If a call might need abnormal edges
33107 for non-local gotos, see if it already has an edge to
33108 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33109 with true argument, don't do anything then, otherwise add
33110 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33111 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33113 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33114 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33115 (lower_stmt): Don't set data->calls_builtin_setjmp.
33116 (lower_builtin_setjmp): Adjust comment.
33117 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33118 * tree-cfg.c (found_computed_goto): Remove.
33119 (factor_computed_gotos): Remove.
33120 (make_goto_expr_edges): Return bool, true for computed gotos.
33121 Don't call make_abnormal_goto_edges.
33122 (build_gimple_cfg): Don't set found_computed_goto, don't call
33123 factor_computed_gotos.
33124 (computed_goto_p): No longer static.
33125 (make_blocks): Don't set found_computed_goto.
33126 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33127 (make_edges): If make_goto_expr_edges returns true, push bb
33128 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33129 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33130 vector. Record mapping between bbs and OpenMP regions if there
33131 are any, adjust make_gimple_omp_edges caller. Call
33132 handle_abnormal_edges.
33133 (make_abnormal_goto_edges): Remove.
33134 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33135 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33136 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33137 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33138 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33139 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33140 filling *region also set *region_idx to (*region)->entry->index.
33143 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33144 For REGs set ORIGINAL_REGNO.
33146 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
33148 * doc/md.texi: Mention that a target shouldn't implement
33149 vec_widen_(s|u)mul_even/odd pair if it is less efficient
33152 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33154 PR tree-optimization/59594
33155 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33156 a copy of the datarefs vector rather than the vector itself.
33158 2014-01-28 Jason Merrill <jason@redhat.com>
33161 * dwarf2out.c (auto_die): New static.
33162 (gen_type_die_with_usage): Handle C++1y 'auto'.
33163 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33166 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
33169 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33170 (SPEC_X32): Likewise.
33171 (SPEC_64): Likewise.
33172 * config/i386/i386.c (ix86_option_override_internal): Turn off
33173 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33175 (x86_file_start): Output .code16gcc for TARGET_16BIT.
33176 * config/i386/i386.h (TARGET_16BIT): New macro.
33177 (TARGET_16BIT_P): Likewise.
33178 * config/i386/i386.opt: Add m16.
33179 * doc/invoke.texi: Document -m16.
33181 2014-01-28 Jakub Jelinek <jakub@redhat.com>
33183 PR preprocessor/59935
33184 * input.c (location_get_source_line): Bail out on when line number
33185 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33187 2014-01-28 Richard Biener <rguenther@suse.de>
33189 PR tree-optimization/58742
33190 * tree-ssa-forwprop.c (associate_plusminus): Handle
33191 pointer subtraction of the form (T)(P + A) - (T)P.
33193 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33195 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33198 2014-01-28 Richard Biener <rguenther@suse.de>
33201 2014-01-28 Richard Biener <rguenther@suse.de>
33203 PR rtl-optimization/45364
33204 PR rtl-optimization/59890
33205 * var-tracking.c (local_get_addr_clear_given_value): Handle
33206 already cleared slot.
33207 (val_reset): Handle not allocated local_get_addr_cache.
33208 (vt_find_locations): Use post-order on the inverted CFG.
33210 2014-01-28 Richard Biener <rguenther@suse.de>
33212 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33214 2014-01-28 Richard Biener <rguenther@suse.de>
33216 PR rtl-optimization/45364
33217 PR rtl-optimization/59890
33218 * var-tracking.c (local_get_addr_clear_given_value): Handle
33219 already cleared slot.
33220 (val_reset): Handle not allocated local_get_addr_cache.
33221 (vt_find_locations): Use post-order on the inverted CFG.
33223 2014-01-28 Alan Modra <amodra@gmail.com>
33225 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33226 * configure.ac <recursive call for build != host>: Define
33227 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33228 and LD_FOR_BUILD too.
33229 * configure: Regenerate.
33231 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
33233 * config/i386/i386.c (get_builtin_code_for_version): Separate
33234 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33235 Broadwell from Haswell.
33237 2014-01-27 Steve Ellcey <sellcey@mips.com>
33239 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33240 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33241 * config/mips/mips.c (mips_option_override): Change setting
33243 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33244 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33245 Change from Mask to Var.
33247 2014-01-27 Jeff Law <law@redhat.com>
33249 * ipa-inline.c (inline_small_functions): Fix typo.
33251 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
33253 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33254 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33255 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33256 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33257 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33258 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33259 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33260 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33261 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33262 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33263 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33264 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33265 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33266 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33267 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33268 (_mm512_storeu_epi64): Ditto.
33269 (_mm512_cmpge_epi32_mask): Ditto.
33270 (_mm512_cmpge_epu32_mask): Ditto.
33271 (_mm512_cmpge_epi64_mask): Ditto.
33272 (_mm512_cmpge_epu64_mask): Ditto.
33273 (_mm512_cmple_epi32_mask): Ditto.
33274 (_mm512_cmple_epu32_mask): Ditto.
33275 (_mm512_cmple_epi64_mask): Ditto.
33276 (_mm512_cmple_epu64_mask): Ditto.
33277 (_mm512_cmplt_epi32_mask): Ditto.
33278 (_mm512_cmplt_epu32_mask): Ditto.
33279 (_mm512_cmplt_epi64_mask): Ditto.
33280 (_mm512_cmplt_epu64_mask): Ditto.
33281 (_mm512_cmpneq_epi32_mask): Ditto.
33282 (_mm512_cmpneq_epu32_mask): Ditto.
33283 (_mm512_cmpneq_epi64_mask): Ditto.
33284 (_mm512_cmpneq_epu64_mask): Ditto.
33285 (_mm512_expand_pd): Ditto.
33286 (_mm512_expand_ps): Ditto.
33287 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33288 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33289 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33290 * config/i386/i386.c (ix86_builtins): Add
33291 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33292 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33293 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33294 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33295 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33296 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33297 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33298 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33299 IX86_BUILTIN_PMOVUSQW512_MEM.
33300 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33301 __builtin_ia32_pmovsqd512mem_mask,
33302 __builtin_ia32_pmovqd512mem_mask,
33303 __builtin_ia32_pmovusqw512mem_mask,
33304 __builtin_ia32_pmovsqw512mem_mask,
33305 __builtin_ia32_pmovqw512mem_mask,
33306 __builtin_ia32_pmovusdw512mem_mask,
33307 __builtin_ia32_pmovsdw512mem_mask,
33308 __builtin_ia32_pmovdw512mem_mask,
33309 __builtin_ia32_pmovqb512mem_mask,
33310 __builtin_ia32_pmovusqb512mem_mask,
33311 __builtin_ia32_pmovsqb512mem_mask,
33312 __builtin_ia32_pmovusdb512mem_mask,
33313 __builtin_ia32_pmovsdb512mem_mask,
33314 __builtin_ia32_pmovdb512mem_mask.
33315 (bdesc_args): Add __builtin_ia32_expanddf512,
33316 __builtin_ia32_expandsf512.
33317 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33318 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33319 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33320 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33321 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33322 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33323 (avx512f_<code>v8div16qi2_mask_store): This.
33324 (avx512f_expand<mode>): New.
33326 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
33328 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33330 (_mm512_mask_prefetch_i64gather_pd): Ditto.
33331 (_mm512_prefetch_i32scatter_pd): Ditto.
33332 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33333 (_mm512_prefetch_i64scatter_pd): Ditto.
33334 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33335 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33336 (_mm512_mask_prefetch_i64gather_ps): Ditto.
33337 (_mm512_prefetch_i32scatter_ps): Ditto.
33338 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33339 (_mm512_prefetch_i64scatter_ps): Ditto.
33340 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33341 * config/i386/i386-builtin-types.def: Define
33342 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33343 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33344 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33345 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33346 IX86_BUILTIN_SCATTERPFQPD.
33347 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33348 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33349 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33350 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33351 __builtin_ia32_scatterpfqps.
33352 (ix86_expand_builtin): Expand new built-ins.
33353 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33354 fix memory access data type.
33355 (*avx512pf_gatherpf<mode>_mask): Ditto.
33356 (*avx512pf_gatherpf<mode>): Ditto.
33357 (avx512pf_scatterpf<mode>): Ditto.
33358 (*avx512pf_scatterpf<mode>_mask): Ditto.
33359 (*avx512pf_scatterpf<mode>): Ditto.
33360 (GATHER_SCATTER_SF_MEM_MODE): New.
33361 (avx512pf_gatherpf<mode>df): Ditto.
33362 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33363 (*avx512pf_scatterpf<mode>df): Ditto.
33365 2014-01-27 Jakub Jelinek <jakub@redhat.com>
33368 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33369 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33372 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33374 * common/config/arm/arm-common.c
33375 (arm_rewrite_mcpu): Handle multiple names.
33377 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33379 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33381 * gimple-builder.h (create_gimple_tmp): Delete.
33383 2014-01-27 Christian Bruel <christian.bruel@st.com>
33385 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33388 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
33390 * config/pa/pa.md (call): Generate indirect long calls to non-local
33391 functions when outputing 32-bit code.
33392 (call_value): Likewise except for special call to buggy powf function.
33394 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33395 portable runtime and PIC indirect calls.
33396 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33397 and PIC call sequences. Use ldo instead of blr to set return register
33398 in PIC call sequence.
33400 2014-01-25 Walter Lee <walt@tilera.com>
33402 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33403 avoid clobbering a live register.
33405 2014-01-25 Walter Lee <walt@tilera.com>
33407 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33408 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33409 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33410 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33412 2014-01-25 Walter Lee <walt@tilera.com>
33414 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33415 arguments on even registers.
33416 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33418 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33419 (BIGGEST_ALIGNMENT): Ditto.
33420 (BIGGEST_FIELD_ALIGNMENT): Ditto.
33422 2014-01-25 Walter Lee <walt@tilera.com>
33424 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33425 insns before bundling.
33426 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33428 2014-01-25 Walter Lee <walt@tilera.com>
33430 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33431 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33432 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33434 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33436 * config/mips/constraints.md (kl): Delete.
33437 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33438 define expands, using...
33439 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33440 instructions for MIPS16.
33441 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
33442 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
33444 2014-01-25 Walter Lee <walt@tilera.com>
33446 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
33450 2014-01-25 Walter Lee <walt@tilera.com>
33452 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
33453 (TARGET_EXPAND_TO_RTL_HOOK): Define.
33455 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33457 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
33460 2014-01-25 Jakub Jelinek <jakub@redhat.com>
33462 * print-rtl.c (in_call_function_usage): New var.
33463 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
33464 EXPR_LIST mode as mode and not as reg note name.
33466 PR middle-end/59561
33467 * cfgloopmanip.c (copy_loop_info): If
33468 loop->warned_aggressive_loop_optimizations, make sure
33469 the flag is set in target loop too.
33471 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
33473 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
33475 * builtins.def: Likewise.
33476 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
33477 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
33478 * ira.c (ira_setup_eliminable_regset): Likewise.
33479 * omp-low.c (gate_expand_omp): Likewise.
33480 (execute_lower_omp): Likewise.
33481 (diagnose_sb_0): Likewise.
33482 (gate_diagnose_omp_blocks): Likewise.
33483 (simd_clone_clauses_extract): Likewise.
33486 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33488 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
33489 correction for little endian...
33490 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
33493 2014-01-24 Jeff Law <law@redhat.com>
33495 PR tree-optimization/59919
33496 * tree-vrp.c (find_assert_locations_1): Do not register asserts
33497 for non-returning calls.
33499 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
33501 * common/config/aarch64/aarch64-common.c
33502 (aarch64_rewrite_mcpu): Handle multiple names.
33503 * config/aarch64/aarch64.h
33504 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33506 2014-01-24 Dodji Seketeli <dodji@redhat.com>
33508 * input.c (add_file_to_cache_tab): Handle the case where fopen
33511 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
33514 * config/i386/i386.md (pushsf splitter): Get stack adjustment
33515 from push operand if code of push isn't PRE_DEC.
33517 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
33520 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
33521 -mquad-memory-atomic. Update -mquad-memory documentation to say
33522 it is only used for non-atomic loads/stores.
33524 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
33525 -mquad-memory or -mquad-memory-atomic switches.
33527 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
33528 -mquad-memory-atomic to ISA 2.07 support.
33530 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
33531 to separate support of normal quad word memory operations (ldq, stq)
33532 from the atomic quad word memory operations.
33534 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
33535 support to separate non-atomic quad word operations from atomic
33536 quad word operations. Disable non-atomic quad word operations in
33537 little endian mode so that we don't have to swap words after the
33538 load and before the store.
33539 (quad_load_store_p): Add comment about atomic quad word support.
33540 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
33541 options printed with -mdebug=reg.
33543 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
33544 -mquad-memory-atomic as the test for whether we have quad word
33545 atomic instructions.
33546 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
33547 or -mp8-vector are used, allow byte/half-word atomic operations.
33549 * config/rs6000/sync.md (load_lockedti): Insure that the address
33550 is a proper indexed or indirect address for the lqarx instruction.
33551 On little endian systems, swap the hi/lo registers after the lqarx
33553 (load_lockedpti): Use indexed_or_indirect_operand predicate to
33554 insure the address is valid for the lqarx instruction.
33555 (store_conditionalti): Insure that the address is a proper indexed
33556 or indirect address for the stqcrx. instruction. On little endian
33557 systems, swap the hi/lo registers before doing the stqcrx.
33559 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
33560 insure the address is valid for the stqcrx. instruction.
33562 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
33563 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
33564 type of quad memory support is available.
33566 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
33568 PR regression/59915
33569 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
33570 there is a danger of looping.
33572 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
33574 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
33575 force flag_ira_loop_pressure if set via command line.
33577 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
33579 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
33580 (ashr_simd): New builtin handling DI mode.
33581 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
33582 (aarch64_sshr_simddi): New match pattern.
33583 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
33584 (vshrd_n_s64): Likewise.
33585 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
33587 2014-01-23 Nick Clifton <nickc@redhat.com>
33589 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
33590 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
33591 favour of mcu specific scripts.
33592 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
33595 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
33596 Alex Velenko <Alex.Velenko@arm.com>
33598 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
33599 (vaddv_s16): Likewise.
33600 (vaddv_s32): Likewise.
33601 (vaddv_u8): Likewise.
33602 (vaddv_u16): Likewise.
33603 (vaddv_u32): Likewise.
33604 (vaddvq_s8): Likewise.
33605 (vaddvq_s16): Likewise.
33606 (vaddvq_s32): Likewise.
33607 (vaddvq_s64): Likewise.
33608 (vaddvq_u8): Likewise.
33609 (vaddvq_u16): Likewise.
33610 (vaddvq_u32): Likewise.
33611 (vaddvq_u64): Likewise.
33612 (vaddv_f32): Likewise.
33613 (vaddvq_f32): Likewise.
33614 (vaddvq_f64): Likewise.
33615 (vmaxv_f32): Likewise.
33616 (vmaxv_s8): Likewise.
33617 (vmaxv_s16): Likewise.
33618 (vmaxv_s32): Likewise.
33619 (vmaxv_u8): Likewise.
33620 (vmaxv_u16): Likewise.
33621 (vmaxv_u32): Likewise.
33622 (vmaxvq_f32): Likewise.
33623 (vmaxvq_f64): Likewise.
33624 (vmaxvq_s8): Likewise.
33625 (vmaxvq_s16): Likewise.
33626 (vmaxvq_s32): Likewise.
33627 (vmaxvq_u8): Likewise.
33628 (vmaxvq_u16): Likewise.
33629 (vmaxvq_u32): Likewise.
33630 (vmaxnmv_f32): Likewise.
33631 (vmaxnmvq_f32): Likewise.
33632 (vmaxnmvq_f64): Likewise.
33633 (vminv_f32): Likewise.
33634 (vminv_s8): Likewise.
33635 (vminv_s16): Likewise.
33636 (vminv_s32): Likewise.
33637 (vminv_u8): Likewise.
33638 (vminv_u16): Likewise.
33639 (vminv_u32): Likewise.
33640 (vminvq_f32): Likewise.
33641 (vminvq_f64): Likewise.
33642 (vminvq_s8): Likewise.
33643 (vminvq_s16): Likewise.
33644 (vminvq_s32): Likewise.
33645 (vminvq_u8): Likewise.
33646 (vminvq_u16): Likewise.
33647 (vminvq_u32): Likewise.
33648 (vminnmv_f32): Likewise.
33649 (vminnmvq_f32): Likewise.
33650 (vminnmvq_f64): Likewise.
33652 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
33654 * config/aarch64/aarch64-simd.md
33655 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
33656 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
33657 (*aarch64_mul3_elt<mode>): Likewise.
33658 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
33659 (*aarch64_mul3_elt_to_64v2df): Likewise.
33660 (*aarch64_mla_elt<mode>): Likewise.
33661 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
33662 (*aarch64_mls_elt<mode>): Likewise.
33663 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
33664 (*aarch64_fma4_elt<mode>): Likewise.
33665 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
33666 (*aarch64_fma4_elt_to_64v2df): Likewise.
33667 (*aarch64_fnma4_elt<mode>): Likewise.
33668 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
33669 (*aarch64_fnma4_elt_to_64v2df): Likewise.
33670 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
33671 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
33672 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
33673 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
33674 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33675 (aarch64_sqdmull_lane<mode>_internal): Likewise.
33676 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33678 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
33680 * config/aarch64/aarch64-simd.md
33681 (aarch64_be_checked_get_lane<mode>): New define_expand.
33682 * config/aarch64/aarch64-simd-builtins.def
33683 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
33684 New builtin definition.
33685 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
33686 Use new safe be builtin.
33688 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
33690 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
33692 (aarch64_be_st1<mode>): Likewise.
33693 (aarch_ld1<VALL:mode>): Define_expand modified.
33694 (aarch_st1<VALL:mode>): Likewise.
33695 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
33696 (UNSPEC_ST1): Likewise.
33698 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
33700 * config/microblaze/microblaze.md: Add trap insn and attribute
33702 2014-01-23 Dodji Seketeli <dodji@redhat.com>
33704 PR preprocessor/58580
33705 * input.h (location_get_source_line): Take an additional line_size
33707 (void diagnostics_file_cache_fini): Declare new function.
33708 * input.c (struct fcache): New type.
33709 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
33710 New static constants.
33711 (diagnostic_file_cache_init, total_lines_num)
33712 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
33713 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
33714 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
33715 (get_next_line, read_next_line, goto_next_line, read_line_num):
33716 New static function definitions.
33717 (diagnostic_file_cache_fini): New function.
33718 (location_get_source_line): Take an additional output line_len
33719 parameter. Re-write using lookup_or_add_file_to_cache_tab and
33721 * diagnostic.c (diagnostic_finish): Call
33722 diagnostic_file_cache_fini.
33723 (adjust_line): Take an additional input parameter for the length
33724 of the line, rather than calculating it with strlen.
33725 (diagnostic_show_locus): Adjust the use of
33726 location_get_source_line and adjust_line with respect to their new
33727 signature. While displaying a line now, do not stop at the first
33728 null byte. Rather, display the zero byte as a space and keep
33729 going until we reach the size of the line.
33730 * Makefile.in: Add vec.o to OBJS-libcommon
33732 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
33733 Ilya Tocar <ilya.tocar@intel.com>
33735 * config/i386/avx512fintrin.h (_mm512_kmov): New.
33736 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
33737 (__builtin_ia32_kmov16): Ditto.
33738 * config/i386/i386.md (UNSPEC_KMOV): New.
33741 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
33743 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
33744 (_mm512_storeu_si512): Ditto.
33746 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
33749 * rtl.h (get_referenced_operands): Declare.
33750 * recog.c (get_referenced_operands): New function.
33751 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
33752 operands have been referenced when recording LO_SUM references.
33754 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
33756 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
33758 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
33760 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
33761 Enable for generic and recent AMD targets.
33763 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
33765 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
33766 ARG_SIZE note when adjustment was eliminated.
33768 2014-01-22 Jeff Law <law@redhat.com>
33770 PR tree-optimization/59597
33771 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
33772 in file. Accept new argument REGISTERING and use it to modify
33773 dump output appropriately.
33774 (register_jump_thread): Corresponding changes.
33775 (mark_threaded_blocks): Reinstate code to cancel unprofitable
33776 thread paths involving joiner blocks. Add code to dump cancelled
33777 jump threading paths.
33779 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
33781 PR rtl-optimization/59477
33782 * lra-constraints.c (inherit_in_ebb): Process call for living hard
33783 regs. Update reloads_num and potential_reload_hard_regs for all insns.
33785 2014-01-22 Tom Tromey <tromey@redhat.com>
33787 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
33789 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
33791 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
33793 PR rtl-optimization/59896
33794 * lra-constraints.c (process_alt_operands): Check unused note for
33795 matched operands of insn with no output reloads.
33797 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
33799 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
33800 (mips_move_from_gpr_cost): Likewise.
33802 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
33804 PR rtl-optimization/59858
33805 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
33806 ira_class_hard_regs_num.
33807 (process_alt_operands): Increase reject for dying matched operand.
33809 2014-01-21 Jakub Jelinek <jakub@redhat.com>
33812 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
33813 smaller than size, perform several stores or loads and stores
33814 at dst + count - size to store or copy all of size bytes, rather
33815 than just last modesize bytes.
33817 2014-01-20 DJ Delorie <dj@redhat.com>
33819 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
33820 that CLOBBERs are REGs before propogating their values.
33822 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
33824 PR middle-end/59789
33825 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
33826 (cgraph_inline_failed_type): New function.
33827 * cgraph.h (DEFCIFCODE): Add type.
33828 (cgraph_inline_failed_type_t): New enum.
33829 (cgraph_inline_failed_type): New prototype.
33830 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
33831 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33832 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
33833 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
33834 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
33835 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
33836 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
33837 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
33838 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
33839 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
33840 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
33841 OPTIMIZATION_MISMATCH.
33842 * tree-inline.c (expand_call_inline): Emit errors during
33843 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
33845 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
33848 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
33849 mode attribute in insn output.
33851 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
33853 * output.h (output_constant): Delete.
33854 * varasm.c (output_constant): Make private.
33856 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
33858 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
33860 2014-01-20 Jakub Jelinek <jakub@redhat.com>
33862 PR middle-end/59860
33863 * tree.h (fold_builtin_strcat): New prototype.
33864 * builtins.c (fold_builtin_strcat): No longer static. Add len
33865 argument, if non-NULL, don't call c_strlen. Optimize
33866 directly into __builtin_memcpy instead of __builtin_strcpy.
33867 (fold_builtin_2): Adjust fold_builtin_strcat caller.
33868 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
33870 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
33872 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33873 for SImode_address_operand operands, having only a REG argument.
33875 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
33877 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
33878 loader name using mbig-endian.
33879 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
33881 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
33883 * doc/invoke.texi (-march): Clarify documentation for AArch64.
33884 (-mtune): Likewise.
33887 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
33889 * config/aarch64/aarch64-protos.h
33890 (aarch64_cannot_change_mode_class_ptr): Declare.
33891 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
33892 aarch64_cannot_change_mode_class_ptr): New.
33893 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
33894 backend hook aarch64_cannot_change_mode_class.
33896 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
33898 * common/config/aarch64/aarch64-common.c
33899 (aarch64_handle_option): Don't handle any option order logic here.
33900 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
33901 selected_cpu, warn on architecture version mismatch.
33902 (aarch64_override_options): Fix parsing order for option strings.
33904 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33905 Iain Sandoe <iain@codesourcery.com>
33908 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
33909 warning. Amend comment to reflect current functionality.
33911 2014-01-20 Richard Biener <rguenther@suse.de>
33913 PR middle-end/59860
33914 * builtins.c (fold_builtin_strcat): Remove case better handled
33915 by tree-ssa-strlen.c.
33917 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
33919 * config/aarch64/aarch64.opt
33920 (mcpu, march, mtune): Make case-insensitive.
33922 2014-01-20 Jakub Jelinek <jakub@redhat.com>
33925 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33926 if operands[1] is a REG or ZERO_EXTEND of a REG.
33928 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
33930 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
33932 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
33934 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
33935 long non-pic millicode calls.
33937 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33939 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
33941 2014-01-19 Kito Cheng <kito@0xlab.org>
33943 * builtins.c (expand_movstr): Check movstr expand done or fail.
33945 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
33946 H.J. Lu <hongjiu.lu@intel.com>
33949 * config/i386/i386.md (*lea<mode>): Zero-extend return register
33950 to DImode for zero-extended addresses.
33952 2014-01-19 Jakub Jelinek <jakub@redhat.com>
33954 PR rtl-optimization/57763
33955 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
33956 on the new indirect jump_insn and increment LABEL_NUSES (label).
33958 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
33962 * config.gcc (x86_archs): New variable.
33963 (x86_64_archs): Likewise.
33964 (x86_cpus): Likewise.
33965 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
33966 --with-arch/--with-cpu= options.
33967 Support --with-arch=/--with-cpu={nehalem,westmere,
33968 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
33970 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
33972 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
33973 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
33975 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
33977 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
33979 2014-01-18 Jakub Jelinek <jakub@redhat.com>
33982 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
33983 clear cpp_get_options (parse_in)->warn_unused_macros for
33984 ix86_target_macros_internal with cpp_define.
33986 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
33988 * jump.c (delete_related_insns): Keep (use (insn))s.
33989 * reorg.c (redundant_insn): Check for barriers too.
33991 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
33993 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
33995 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
33997 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
33998 call to $$dyncall when TARGET_LONG_CALLS is true.
34000 2014-01-17 Jeff Law <law@redhat.com>
34002 * ree.c (combine_set_extension): Temporarily disable test for
34003 changing number of hard registers.
34005 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34007 PR middle-end/58125
34008 * ipa-inline-analysis.c (inline_free_summary):
34009 Do not free summary of aliases.
34011 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34013 PR middle-end/59706
34014 * gimplify.c (gimplify_expr): Use create_tmp_var
34015 instead of create_tmp_var_raw. If cond doesn't have
34016 integral type, don't add the IFN_ANNOTATE builtin at all.
34018 2014-01-17 Martin Jambor <mjambor@suse.cz>
34021 * ipa-cp.c (prev_edge_clone): New variable.
34022 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34023 Also resize prev_edge_clone vector.
34024 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34025 (ipcp_edge_removal_hook): New function.
34026 (ipcp_driver): Register ipcp_edge_removal_hook.
34028 2014-01-17 Andrew Pinski <apinski@cavium.com>
34029 Steve Ellcey <sellcey@mips.com>
34032 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34035 2014-01-17 Jeff Law <law@redhat.com>
34037 PR middle-end/57904
34038 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34039 so that pass_ccp runs first.
34041 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34043 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34044 (ix86_adjust_cost): Use !TARGET_XXX.
34045 (do_reorder_for_imul): Likewise.
34046 (swap_top_of_ready_list): Likewise.
34047 (ix86_sched_reorder): Likewise.
34049 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34051 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34052 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34053 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34054 (intel_memset): New. Duplicate slm_memset.
34055 (intel_cost): New. Duplicate slm_cost.
34056 (m_INTEL): New macro.
34057 (processor_target_table): Add "intel".
34058 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34059 with PROCESSOR_INTEL for "intel".
34060 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34061 PROCESSOR_SILVERMONT.
34062 (ix86_issue_rate): Likewise.
34063 (ix86_adjust_cost): Likewise.
34064 (ia32_multipass_dfa_lookahead): Likewise.
34065 (swap_top_of_ready_list): Likewise.
34066 (ix86_sched_reorder): Likewise.
34067 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34068 instead of TARGET_OPT_AGU.
34069 * config/i386/i386.h (TARGET_INTEL): New.
34070 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34071 (processor_type): Add PROCESSOR_INTEL.
34072 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34073 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34075 2014-01-17 Marek Polacek <polacek@redhat.com>
34078 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34081 2014-01-17 Richard Biener <rguenther@suse.de>
34083 PR tree-optimization/46590
34084 * opts.c (default_options_table): Add entries for
34085 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34086 all enabled at -O1 but not for -Og.
34087 * common.opt (fbranch-count-reg): Remove Init(1).
34088 (fmove-loop-invariants): Likewise.
34089 (ftree-pta): Likewise.
34091 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34093 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34094 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34095 decls to at least the GCC 4.8 used alignments.
34098 * tree-nested.c (convert_nonlocal_reference_stmt,
34099 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34100 of GIMPLE_BIND stmts, adjust associated decls.
34102 2014-01-17 Richard Biener <rguenther@suse.de>
34104 PR tree-optimization/46590
34105 * vec.h (vec<>::bseach): New member function implementing
34106 binary search according to C89 bsearch.
34107 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34108 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34109 bitmap pointer again. Make accesses_in_loop a flat array.
34110 (mem_ref_obstack): New global.
34111 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34112 (mark_ref_stored): Likewise.
34113 (ref_indep_loop_p_2): Likewise.
34114 (set_ref_stored_in_loop): New helper function.
34115 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34116 (memref_free): Adjust.
34117 (record_mem_ref_loc): Simplify.
34118 (gather_mem_refs_stmt): Adjust.
34119 (sort_locs_in_loop_postorder_cmp): New function.
34120 (analyze_memory_references): Sort accesses_in_loop after
34121 loop postorder number.
34122 (find_ref_loc_in_loop_cmp): New function.
34123 (for_all_locs_in_loop): Find relevant cluster of locs in
34124 accesses_in_loop and iterate without recursion.
34125 (execute_sm): Avoid uninit warning.
34126 (struct ref_always_accessed): Simplify.
34127 (ref_always_accessed::operator ()): Likewise.
34128 (ref_always_accessed_p): Likewise.
34129 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34130 loop postorder numbers here.
34131 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34134 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34137 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34138 on decls for which assemble_alias has been called.
34140 2014-01-17 Nick Clifton <nickc@redhat.com>
34142 * config/msp430/msp430.opt: (mcpu): New option.
34143 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34144 (msp430_option_override): Parse target_cpu. If the MCU name
34145 matches a generic string, clear target_mcu.
34146 (msp430_attr): Allow numeric interrupt values up to 63.
34147 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34148 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34150 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34152 * config/msp430/msp430.md (popm): Use %J rather than %I.
34153 (addsi3): Use msp430_nonimmediate_operand for operand 2.
34154 (addhi_cy_i): Use immediate_operand for operand 2.
34155 * doc/invoke.texi: Document -mcpu option.
34157 2014-01-17 Richard Biener <rguenther@suse.de>
34159 PR rtl-optimization/38518
34160 * df.h (df_analyze_loop): Declare.
34161 * df-core.c: Include cfgloop.h.
34162 (df_analyze_1): Split out main part of df_analyze.
34163 (df_analyze): Adjust.
34164 (loop_inverted_post_order_compute): New function.
34165 (loop_post_order_compute): Likewise.
34166 (df_analyze_loop): New function avoiding whole-function
34167 postorder computes.
34168 * loop-invariant.c (find_defs): Use df_analyze_loop.
34169 (find_invariants): Adjust.
34170 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34172 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
34174 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34175 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34177 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34179 * ipa-ref.c (ipa_remove_stmt_references): Fix references
34180 traversal when removing references.
34182 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
34185 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34187 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
34189 PR middle-end/56791
34190 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34191 pushing a reload for an autoinc when we had previously reloaded an
34192 inner part of the address.
34194 2014-01-16 Jakub Jelinek <jakub@redhat.com>
34196 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34198 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34199 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34200 when not giving up or versioning for alias only because of
34202 (vect_analyze_data_ref_dependences): Set to true.
34203 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34205 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34206 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34209 PR middle-end/58344
34210 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34213 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34214 operand 0 predicate for gathers, use a new pseudo as subtarget.
34216 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34218 PR middle-end/59609
34219 * lra-constraints.c (process_alt_operands): Add printing debug info.
34220 Check absence of input/output reloads for matched operands too.
34222 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34224 PR rtl-optimization/59835
34225 * ira.c (ira_init_register_move_cost): Increase cost for
34228 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
34230 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34232 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
34235 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34236 non-register objects. Use gen_(high/low)part more consistently.
34239 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
34242 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34243 endian support, remove tests for WORDS_BIG_ENDIAN.
34244 (p8_mfvsrd_3_<mode>): Likewise.
34245 (reload_gpr_from_vsx<mode>): Likewise.
34246 (reload_gpr_from_vsxsf): Likewise.
34247 (p8_mfvsrd_4_disf): Likewise.
34249 2014-01-16 Richard Biener <rguenther@suse.de>
34251 PR rtl-optimization/46590
34252 * lcm.c (compute_antinout_edge): Use postorder iteration.
34253 (compute_laterin): Use inverted postorder iteration.
34255 2014-01-16 Nick Clifton <nickc@redhat.com>
34257 PR middle-end/28865
34258 * varasm.c (output_constant): Return the number of bytes actually
34260 (output_constructor_array_range): Update the field size with the
34261 number of bytes emitted by output_constant.
34262 (output_constructor_regular_field): Likewise. Also do not
34263 complain if the total number of bytes emitted is now greater
34264 than the expected fieldpos.
34265 * output.h (output_constant): Update prototype and descriptive comment.
34267 2014-01-16 Marek Polacek <polacek@redhat.com>
34269 PR middle-end/59827
34270 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34271 it is error_mark_node.
34273 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
34275 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34276 VALID_AVX256_REG_OR_OI_MODE.
34278 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
34280 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34281 current procedure should be profiled.
34283 2014-01-15 Andrew Pinski <apinski@cavium.com>
34285 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34286 of moving from/to the STACK_REG register class.
34288 2014-01-15 Richard Henderson <rth@redhat.com>
34291 * reginfo.c (global_regs_decl): Globalize.
34292 * rtl.h (global_regs_decl): Declare.
34293 * ira.c (do_reload): Diagnose frame_pointer_needed and it
34294 reserved via global_regs.
34296 2014-01-15 Teresa Johnson <tejohnson@google.com>
34298 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34300 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
34302 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34303 and vmulosh rather than call gen_vec_widen_smult_*.
34304 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34305 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34306 (vec_widen_smult_even_v16qi): Likewise.
34307 (vec_widen_umult_even_v8hi): Likewise.
34308 (vec_widen_smult_even_v8hi): Likewise.
34309 (vec_widen_umult_odd_v16qi): Likewise.
34310 (vec_widen_smult_odd_v16qi): Likewise.
34311 (vec_widen_umult_odd_v8hi): Likewise.
34312 (vec_widen_smult_odd_v8hi): Likewise.
34313 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34314 vmuloub rather than call gen_vec_widen_umult_*.
34315 (vec_widen_umult_lo_v16qi): Likewise.
34316 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34317 vmulosb rather than call gen_vec_widen_smult_*.
34318 (vec_widen_smult_lo_v16qi): Likewise.
34319 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34320 rather than call gen_vec_widen_umult_*.
34321 (vec_widen_umult_lo_v8hi): Likewise.
34322 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34323 rather than call gen_vec_widen_smult_*.
34324 (vec_widen_smult_lo_v8hi): Likewise.
34326 2014-01-15 Jeff Law <law@redhat.com>
34328 PR tree-optimization/59747
34329 * ree.c (find_and_remove_re): Properly handle case where a second
34330 eliminated extension requires widening a copy created for elimination
34331 of a prior extension.
34332 (combine_set_extension): Ensure that the number of hard regs needed
34333 for a destination register does not change when we widen it.
34335 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34337 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34338 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34339 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34340 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34341 (avr-*-rtems*): Likewise.
34342 (bfin*-rtems*): Likewise.
34343 (moxie-*-rtems*): Likewise.
34344 (h8300-*-rtems*): Likewise.
34345 (i[34567]86-*-rtems*): Likewise.
34346 (lm32-*-rtems*): Likewise.
34347 (m32r-*-rtems*): Likewise.
34348 (m68k-*-rtems*): Likewise.
34349 (microblaze*-*-rtems*): Likewise.
34350 (mips*-*-rtems*): Likewise.
34351 (powerpc-*-rtems*): Likewise.
34352 (sh-*-rtems*): Likewise.
34353 (sparc-*-rtems*): Likewise.
34354 (sparc64-*-rtems*): Likewise.
34355 (v850-*-rtems*): Likewise.
34356 (m32c-*-rtems*): Likewise.
34358 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
34360 PR rtl-optimization/59511
34361 * ira.c (ira_init_register_move_cost): Use memory costs for some
34362 cases of register move cost calculations.
34363 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34364 instead of BB frequency.
34365 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34366 * lra-assigns.c (find_hard_regno_for): Ditto.
34368 2014-01-15 Richard Biener <rguenther@suse.de>
34370 PR tree-optimization/59822
34371 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34372 (vectorizable_load): Use it to hoist defs of uses of invariant
34373 loads out of the loop.
34375 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34376 Kugan Vivekanandarajah <kuganv@linaro.org>
34379 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34382 2014-01-15 Richard Biener <rguenther@suse.de>
34384 PR rtl-optimization/59802
34385 * lcm.c (compute_available): Use inverted postorder to seed
34386 the initial worklist.
34388 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34391 * config/s390/s390.c (s390_preferred_reload_class): Don't return
34392 ADDR_REGS for invalid symrefs in non-PIC code.
34394 2014-01-15 Jakub Jelinek <jakub@redhat.com>
34397 * builtins.c (determine_block_size): Initialize *probable_max_size
34398 even if len_rtx is CONST_INT.
34400 2014-01-14 Andrew Pinski <apinski@cavium.com>
34402 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34403 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34404 (cortexa53_tunings): Likewise.
34405 (aarch64_sched_issue_rate): New function.
34406 (TARGET_SCHED_ISSUE_RATE): Define.
34408 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34410 * ira-costs.c (find_costs_and_classes): Add missed
34411 ira_init_register_move_cost_if_necessary.
34413 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34416 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34418 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
34421 * config/i386/i386.c (type_natural_mode): Add a bool parameter
34422 to indicate if type is used for function return value. Warn ABI
34423 change if the vector mode isn't available for function return value.
34424 (ix86_function_arg_advance): Pass false to type_natural_mode.
34425 (ix86_function_arg): Likewise.
34426 (ix86_gimplify_va_arg): Likewise.
34427 (function_arg_32): Don't warn ABI change.
34428 (ix86_function_value): Pass true to type_natural_mode.
34429 (ix86_return_in_memory): Likewise.
34430 (ix86_struct_value_rtx): Removed.
34431 (TARGET_STRUCT_VALUE_RTX): Likewise.
34433 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34435 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34436 converting a conditional jump into a conditional return.
34438 2014-01-14 Richard Biener <rguenther@suse.de>
34440 PR tree-optimization/58921
34441 PR tree-optimization/59006
34442 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
34443 hoisting invariant stmts.
34444 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
34445 invariant loads on the preheader edge if possible.
34447 2014-01-14 Joey Ye <joey.ye@arm.com>
34449 * doc/plugin.texi (Building GCC plugins): Update to C++.
34451 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
34453 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
34454 (_mm_rcp28_round_ss): Ditto.
34455 (_mm_rsqrt28_round_sd): Ditto.
34456 (_mm_rsqrt28_round_ss): Ditto.
34457 (_mm_rcp28_sd): Ditto.
34458 (_mm_rcp28_ss): Ditto.
34459 (_mm_rsqrt28_sd): Ditto.
34460 (_mm_rsqrt28_ss): Ditto.
34461 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
34462 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
34463 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
34464 (IX86_BUILTIN_RCP28SD): Ditto.
34465 (IX86_BUILTIN_RCP28SS): Ditto.
34466 (IX86_BUILTIN_RSQRT28SD): Ditto.
34467 (IX86_BUILTIN_RSQRT28SS): Ditto.
34468 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
34469 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
34470 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
34471 (ix86_expand_special_args_builtin): Expand new FTYPE.
34472 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
34473 (srcp14<mode>): Make insn unary.
34474 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
34475 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
34476 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
34477 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
34478 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
34479 Fix rounding: make it SAE only.
34480 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
34482 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
34484 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
34485 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
34486 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
34487 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
34488 (round_saeonly_mask_scalar_operand4): Ditto.
34489 (round_saeonly_mask_scalar_op3): Ditto.
34490 (round_saeonly_mask_scalar_op4): Ditto.
34492 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34494 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
34495 Implement -maltivec=be for vec_insert and vec_extract.
34497 2014-01-10 DJ Delorie <dj@redhat.com>
34499 * config/msp430/msp430.md (call_internal): Don't allow memory
34500 references with SP as the base register.
34501 (call_value_internal): Likewise.
34502 * config/msp430/constraints.md (Yc): New. For memory references
34503 that don't use SP as a base register.
34505 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
34506 "an integer without a # prefix"
34507 * config/msp430/msp430.md (epilogue_helper): Use it.
34509 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34512 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
34513 AVX512F gather builtins.
34514 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
34515 on gather decls with INTEGER_TYPE masktype.
34516 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
34517 directly into the builtin rather than hoisting it before loop.
34519 PR tree-optimization/59387
34520 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
34521 (scev_const_prop): If folded_casts and type has undefined overflow,
34522 use force_gimple_operand instead of force_gimple_operand_gsi and
34523 for each added stmt if it is assign with
34524 arith_code_with_undefined_signed_overflow, call
34525 rewrite_to_defined_overflow.
34526 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
34527 gimple-fold.h instead.
34528 (arith_code_with_undefined_signed_overflow,
34529 rewrite_to_defined_overflow): Moved to ...
34530 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
34531 rewrite_to_defined_overflow): ... here. No longer static.
34532 Include gimplify-me.h.
34533 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
34534 rewrite_to_defined_overflow): New prototypes.
34536 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34538 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
34540 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
34542 * builtins.c (get_object_alignment_2): Minor tweak.
34543 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
34545 2014-01-13 Christian Bruel <christian.bruel@st.com>
34547 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
34548 optimized non constant lengths.
34550 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34553 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
34554 load as __atomic_load_N if possible.
34556 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
34558 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
34560 (rs6000_expand_builtin): Adjust call.
34562 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
34565 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
34566 * config/rs6000/rs6000.c: Include target-globals.h.
34567 (rs6000_set_current_function): Instead of doing target_reinit
34568 unconditionally, use save_target_globals_default_opts and
34569 restore_target_globals.
34571 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
34573 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
34574 (rs6000_expand_builtin): Handle mffs and mtfsf.
34575 (rs6000_init_builtins): Define mffs and mtfsf.
34576 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
34577 (rs6000_mffs): New pattern.
34578 (rs6000_mtfsf): New pattern.
34580 2014-01-11 Bin Cheng <bin.cheng@arm.com>
34582 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
34583 Start narrowing with START. Apply candidate-use pair
34584 and check overall cost in narrowing.
34585 (iv_ca_prune): Pass new argument.
34587 2014-01-10 Jeff Law <law@redhat.com>
34589 PR middle-end/59743
34590 * ree.c (combine_reaching_defs): Ensure the defining statement
34591 occurs before the extension when optimizing extensions with
34592 different source and destination hard registers.
34594 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
34597 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
34598 vtables into the type inheritance graph.
34600 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34602 PR rtl-optimization/59754
34603 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
34604 modes in the REGNO != REGNO case.
34606 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34608 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
34610 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34612 PR tree-optimization/59745
34613 * tree-predcom.c (tree_predictive_commoning_loop): Call
34614 free_affine_expand_cache if giving up because components is NULL.
34616 * target-globals.c (save_target_globals): Allocate < 4KB structs using
34617 GC in payload of target_globals struct instead of allocating them on
34618 the heap and the larger structs separately using GC.
34619 * target-globals.h (struct target_globals): Make regs, hard_regs,
34620 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
34621 of GTY((skip)) and change type to void *.
34622 (reset_target_globals): Cast loads from those fields to corresponding
34625 2014-01-10 Steve Ellcey <sellcey@mips.com>
34628 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
34629 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
34630 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
34632 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
34635 * aarch64-modes.def (CC_Zmode): New flags mode.
34636 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
34637 represents an equality.
34638 (aarch64_get_condition_code): Handle CC_Zmode.
34639 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
34641 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34643 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
34644 extraction in good case.
34646 2014-01-10 Richard Biener <rguenther@suse.de>
34648 PR tree-optimization/59374
34649 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
34650 checking after SLP discovery. Mark stmts not participating
34651 in any SLP instance properly.
34653 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34655 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
34656 when handling a SET rtx.
34658 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34660 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
34661 (cortex-a57): Likewise.
34662 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
34664 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34666 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
34667 non-iwmmxt builtins.
34669 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
34673 * ipa-devirt.c record_target_from_binfo): Take as argument
34674 stack of binfos and lookup matching one for virtual inheritance.
34675 (possible_polymorphic_call_targets_1): Update.
34677 2014-01-10 Huacai Chen <chenhc@lemote.com>
34679 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
34680 kernel strings for Loongson-2E/2F/3A.
34682 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34684 PR middle-end/59670
34685 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
34686 is_gimple_call before calling gimple_call_internal_p.
34688 2014-01-09 Steve Ellcey <sellcey@mips.com>
34690 * Makefile.in (TREE_FLOW_H): Remove.
34691 (TREE_SSA_H): Add file names from tree-flow.h.
34692 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
34693 * tree.h: Remove tree-flow.h reference.
34694 * hash-table.h: Remove tree-flow.h reference.
34695 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
34696 reference with tree-ssa-loop.h.
34698 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34700 * doc/invoke.texi: Add -maltivec={be,le} options, and document
34701 default element-order behavior for -maltivec.
34702 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
34703 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
34704 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
34705 when targeting big endian, at least for now.
34706 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
34708 2014-01-09 Jakub Jelinek <jakub@redhat.com>
34710 PR middle-end/47735
34711 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
34712 var satisfies use_register_for_decl, just take into account type
34713 alignment, rather than decl alignment.
34715 PR tree-optimization/59622
34716 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
34717 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
34718 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
34719 Don't devirtualize for inplace at all. For targets.length () == 1,
34720 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
34722 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
34724 * config/i386/i386.md (cpu): Remove the unused btver1.
34726 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
34728 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
34730 2014-01-09 Jakub Jelinek <jakub@redhat.com>
34733 * tree-core.h (struct target_globals): New forward declaration.
34734 (struct tree_target_option): Add globals field.
34735 * tree.h (TREE_TARGET_GLOBALS): Define.
34736 (prepare_target_option_nodes_for_pch): New prototype.
34737 * target-globals.h (struct target_globals): Define even if
34738 !SWITCHABLE_TARGET.
34739 * tree.c (prepare_target_option_node_for_pch,
34740 prepare_target_option_nodes_for_pch): New functions.
34741 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
34742 * config/i386/i386.c: Include target-globals.h.
34743 (ix86_set_current_function): Instead of doing target_reinit
34744 unconditionally, use save_target_globals_default_opts and
34745 restore_target_globals.
34747 2014-01-09 Richard Biener <rguenther@suse.de>
34749 PR tree-optimization/59715
34750 * tree-cfg.h (split_critical_edges): Declare.
34751 * tree-cfg.c (split_critical_edges): Export.
34752 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
34754 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
34756 * cfgexpand.c (expand_stack_vars): Optionally disable
34757 asan stack protection.
34758 (expand_used_vars): Likewise.
34759 (partition_stack_vars): Likewise.
34760 * asan.c (asan_emit_stack_protection): Optionally disable
34761 after return stack usage.
34762 (instrument_derefs): Optionally disable memory access instrumentation.
34763 (instrument_builtin_call): Likewise.
34764 (instrument_strlen_call): Likewise.
34765 (asan_protect_global): Optionally disable global variables protection.
34766 * doc/invoke.texi: Added doc for new options.
34767 * params.def: Added new options.
34768 * params.h: Likewise.
34770 2014-01-09 Jakub Jelinek <jakub@redhat.com>
34772 PR rtl-optimization/59724
34773 * ifcvt.c (cond_exec_process_if_block): Don't call
34774 flow_find_head_matching_sequence with 0 longest_match.
34775 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
34776 non-active insns if !stop_after.
34777 (try_head_merge_bb): Revert 2014-01-07 changes.
34779 2014-01-08 Jeff Law <law@redhat.com>
34781 * ree.c (get_sub_rtx): New function, extracted from...
34782 (merge_def_and_ext): Here.
34783 (combine_reaching_defs): Use get_sub_rtx.
34785 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
34787 * cgraph.h (varpool_variable_node): Do not choke on null node.
34789 2014-01-08 Catherine Moore <clm@codesourcery.com>
34791 * config/mips/mips.md (simple_return): Attempt to use JRC
34793 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
34795 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
34797 PR rtl-optimization/59137
34798 * reorg.c (steal_delay_list_from_target): Call update_block for
34800 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
34802 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34804 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
34805 two duplicate entries.
34807 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
34810 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
34812 * config/mips/mips.c (mips_truncated_op_cost): New function.
34813 (mips_rtx_costs): Adjust test for BADDU.
34814 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
34816 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
34818 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
34819 (*baddu_si): ...this new pattern.
34821 2014-01-08 Jakub Jelinek <jakub@redhat.com>
34824 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
34826 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
34828 PR middle-end/57748
34829 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
34831 (expand_expr, expand_normal): Adjust.
34832 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
34833 inner_reference_p. Use inner_reference_p to expand inner references.
34834 (store_expr): Adjust.
34835 * cfgexpand.c (expand_call_stmt): Adjust.
34837 2014-01-08 Rong Xu <xur@google.com>
34839 * gcov-io.c (gcov_var): Move from gcov-io.h.
34840 (gcov_position): Ditto.
34841 (gcov_is_error): Ditto.
34842 (gcov_rewrite): Ditto.
34843 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
34844 only part to libgcc/libgcov.h.
34846 2014-01-08 Marek Polacek <polacek@redhat.com>
34848 PR middle-end/59669
34849 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
34851 2014-01-08 Marek Polacek <polacek@redhat.com>
34854 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
34856 2014-01-08 Jakub Jelinek <jakub@redhat.com>
34858 PR rtl-optimization/59649
34859 * stor-layout.c (get_mode_bounds): For BImode return
34860 0 and STORE_FLAG_VALUE.
34862 2014-01-08 Richard Biener <rguenther@suse.de>
34864 PR middle-end/59630
34865 * gimple.h (is_gimple_builtin_call): Remove.
34866 (gimple_builtin_call_types_compatible_p): New.
34867 (gimple_call_builtin_p): New overload.
34868 * gimple.c (is_gimple_builtin_call): Remove.
34869 (validate_call): Rename to ...
34870 (gimple_builtin_call_types_compatible_p): ... this and export. Also
34871 check return types.
34872 (validate_type): New static function.
34873 (gimple_call_builtin_p): New overload and adjust.
34874 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
34875 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
34876 (gimple_fold_stmt_to_constant_1): Likewise.
34877 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
34879 2014-01-08 Richard Biener <rguenther@suse.de>
34881 PR middle-end/59471
34882 * gimplify.c (gimplify_expr): Gimplify register-register type
34883 VIEW_CONVERT_EXPRs to separate stmts.
34885 2014-01-07 Jeff Law <law@redhat.com>
34887 PR middle-end/53623
34888 * ree.c (combine_set_extension): Handle case where source
34889 and destination registers in an extension insn are different.
34890 (combine_reaching_defs): Allow source and destination registers
34891 in extension to be different under limited circumstances.
34892 (add_removable_extension): Remove restriction that the
34893 source and destination registers in the extension are the same.
34894 (find_and_remove_re): Emit a copy from the extension's
34895 destination to its source after the defining insn if
34896 the source and destination registers are different.
34898 PR middle-end/59285
34899 * ifcvt.c (merge_if_block): If we are merging a block with more than
34900 one successor with a block with no successors, remove any BARRIER
34901 after the second block.
34903 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
34905 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
34907 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
34910 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
34911 for 14-bit register offsets when INT14_OK_STRICT is false.
34913 2014-01-07 Roland Stigge <stigge@antcom.de>
34914 Michael Meissner <meissner@linux.vnet.ibm.com>
34917 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
34918 Only check TFmode for SPE constants. Don't check TImode or TDmode.
34920 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34922 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
34925 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
34927 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
34928 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
34929 rtx is const0_rtx or not.
34931 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
34934 * target-globals.c (save_target_globals): Remove this_fn_optab
34936 * toplev.c: Include optabs.h.
34937 (target_reinit): Temporarily restore the global options if another
34938 set of options are in force.
34940 2014-01-07 Jakub Jelinek <jakub@redhat.com>
34942 PR rtl-optimization/58668
34943 * cfgcleanup.c (flow_find_cross_jump): Don't count
34944 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
34945 to determine what is counted.
34946 (flow_find_head_matching_sequence): Use active_insn_p to determine
34948 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
34950 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
34951 determine what is counted.
34953 PR tree-optimization/59643
34954 * tree-predcom.c (split_data_refs_to_components): If one dr is
34955 read and one write, determine_offset fails and the write isn't
34956 in the bad component, just put the read into the bad component.
34958 2014-01-07 Mike Stump <mikestump@comcast.net>
34959 Jakub Jelinek <jakub@redhat.com>
34962 * tree-core.h (struct tree_optimization_option): Change optabs
34963 type from unsigned char * to void *.
34964 * optabs.c (init_tree_optimization_optabs): Adjust
34965 TREE_OPTIMIZATION_OPTABS initialization.
34967 2014-01-06 Jakub Jelinek <jakub@redhat.com>
34970 * config/i386/i386.h (struct machine_function): Add
34971 no_drap_save_restore field.
34972 * config/i386/i386.c (ix86_save_reg): Use
34973 !cfun->machine->no_drap_save_restore instead of
34974 crtl->stack_realign_needed.
34975 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
34976 this function clears frame_pointer_needed. Set
34977 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
34978 and DRAP reg is needed.
34980 2014-01-06 Marek Polacek <polacek@redhat.com>
34983 * doc/implement-c.texi: Mention that other integer types are
34984 permitted as bit-field types in strictly conforming mode.
34986 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
34988 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
34989 is newly allocated.
34991 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
34993 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
34995 2014-01-06 Martin Jambor <mjambor@suse.cz>
34998 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35000 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35002 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35006 * var-tracking.c (add_stores): Preserve the value of the source even if
35007 we don't record the store.
35009 2014-01-06 Terry Guo <terry.guo@arm.com>
35011 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35013 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35016 * config/darwin.c (darwin_function_section): Adjust return values to
35017 correspond to optimisation changes made in r206070.
35019 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35021 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35022 from prefetch_block tune setting.
35023 (nocona_cost): Correct size of prefetch block to 64.
35025 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35027 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35028 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35029 used to save the static chain register in the computation of the offset
35030 from which the FP registers need to be restored.
35032 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35034 PR tree-optimization/59519
35035 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35036 ICE if get_current_def (current_new_name) is already non-NULL, as long
35037 as it is a phi result of some other phi in *new_exit_bb that has
35040 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35041 or vmovdqu* for misaligned_operand.
35042 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35043 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35044 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35045 aligned_mem for AVX512F masked aligned load and store builtins and for
35046 non-temporal moves.
35048 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35050 PR tree-optimization/59651
35051 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35052 Address range for negative step should be added by TYPE_SIZE_UNIT.
35054 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35056 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35057 overlapping registers also for registers other than the stack pointer.
35059 2014-01-03 Marek Polacek <polacek@redhat.com>
35062 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35065 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35068 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35071 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35072 (push splitter): Use <P:MODE_SIZE> instead of
35073 GET_MODE_SIZE (<P:MODE>mode).
35074 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35075 (mov -1, reg peephole2): Likewise.
35076 * config/i386/sse.md (*mov<mode>_internal,
35077 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35078 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35079 *<code><mode>3, *andnot<mode>3<mask_name>,
35080 <mask_codefor><code><mode>3<mask_name>): Likewise.
35081 * config/i386/subst.md (mask_mode512bit_condition,
35082 sd_mask_mode512bit_condition): Likewise.
35084 2014-01-02 Xinliang David Li <davidxl@google.com>
35086 PR tree-optimization/59303
35087 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35088 (dump_predicates): Better output format.
35089 (pred_equal_p): New function.
35090 (is_neq_relop_p): Ditto.
35091 (is_neq_zero_form_p): Ditto.
35092 (pred_expr_equal_p): Ditto.
35093 (pred_neg_p): Ditto.
35094 (simplify_pred): Ditto.
35095 (simplify_preds_2): Ditto.
35096 (simplify_preds_3): Ditto.
35097 (simplify_preds_4): Ditto.
35098 (simplify_preds): Ditto.
35099 (push_pred): Ditto.
35100 (push_to_worklist): Ditto.
35101 (get_pred_info_from_cmp): Ditto.
35102 (is_degenerated_phi): Ditto.
35103 (normalize_one_pred_1): Ditto.
35104 (normalize_one_pred): Ditto.
35105 (normalize_one_pred_chain): Ditto.
35106 (normalize_preds): Ditto.
35107 (normalize_cond_1): Remove function.
35108 (normalize_cond): Ditto.
35109 (is_gcond_subset_of): Ditto.
35110 (is_subset_of_any): Ditto.
35111 (is_or_set_subset_of): Ditto.
35112 (is_and_set_subset_of): Ditto.
35113 (is_norm_cond_subset_of): Ditto.
35114 (pred_chain_length_cmp): Ditto.
35115 (convert_control_dep_chain_into_preds): Type change.
35116 (find_predicates): Ditto.
35117 (find_def_preds): Ditto.
35118 (destroy_predicates_vecs): Ditto.
35119 (find_matching_predicates_in_rest_chains): Ditto.
35120 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35121 (is_pred_expr_subset): Ditto.
35122 (is_pred_chain_subset_of): Ditto.
35123 (is_included_in): Ditto.
35124 (is_superset_of): Ditto.
35126 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35128 Update copyright years.
35130 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35132 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35133 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35134 config/arc/arc.md, config/arc/arc.opt,
35135 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35136 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35137 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35138 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35139 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35140 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35141 vtable-verify.c, vtable-verify.h: Use the standard form for the
35144 2014-01-02 Tobias Burnus <burnus@net-b.de>
35146 * gcc.c (process_command): Update copyright notice dates.
35147 * gcov-dump.c: Ditto.
35149 * doc/cpp.texi: Bump @copying's copyright year.
35150 * doc/cppinternals.texi: Ditto.
35151 * doc/gcc.texi: Ditto.
35152 * doc/gccint.texi: Ditto.
35153 * doc/gcov.texi: Ditto.
35154 * doc/install.texi: Ditto.
35155 * doc/invoke.texi: Ditto.
35157 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35159 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35161 2014-01-01 Jakub Jelinek <jakub@redhat.com>
35163 * config/i386/sse.md (*mov<mode>_internal): Guard
35164 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35166 PR rtl-optimization/59647
35167 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35168 new_rtx into UNSIGNED_FLOAT rtxes.
35170 Copyright (C) 2014 Free Software Foundation, Inc.
35172 Copying and distribution of this file, with or without modification,
35173 are permitted in any medium without royalty provided the copyright
35174 notice and this notice are preserved.