1 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
3 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
5 2014-10-17 Tom de Vries <tom@codesourcery.com>
7 PR rtl-optimization/61605
8 * regcprop.c (copyprop_hardreg_forward_1): Use
9 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
11 2014-10-17 Tom de Vries <tom@codesourcery.com>
13 PR rtl-optimization/61605
14 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
15 notice stores for noops. Don't regard noops as copies.
17 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
19 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
20 register in a special way.
21 (__cpuid_count): Ditto.
22 * config/i386/driver-i386.h: Protect with
23 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
24 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
25 is required to compile the function.
27 2014-10-16 DJ Delorie <dj@redhat.com>
29 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
32 * config/rs6000/rs6000-c.c (rid_int128): New.
33 (rs6000_macro_to_expand): Use instead of RID_INT128.
35 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
37 * function.h: Flatten file. Remove includes, adjust prototypes to
38 reflect only what is in function.h.
39 (enum direction, struct args_size, struct locate_and_pad_arg_data,
40 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
42 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
43 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
44 prototypes to predict.h.
45 (init_varasm_status): Move prototype to varasm.h.
46 * expr.h: Adjust include files.
47 (enum direction, struct args_size, struct locate_and_pad_arg_data,
48 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
50 (locate_and_pad_parm): Move prototype to function.h.
51 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
52 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
53 assign_temp, reposition_prologue_and_epilogue_notes,
54 prologue_epilogue_contains, sibcall_epilogue_contains,
55 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
56 set_return_jump_label): Move prototypes to function.h.
57 * predict.h (optimize_function_for_size_p,
58 optimize_function_for_speed_p): Relocate prototypes from function.h.
59 * shrink-wrap.h (emit_return_into_block, active_insn_between,
60 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
62 * varasm.h (init_varasm_status): Relocate prototype from function.h.
63 * genattrtab.c (write_header): Add predict.h to include list.
64 * genconditions.c (write_header): Add predict.h to include list.
65 * genemit.c (main): Adjust header file includes.
66 * gengtype.c (ifiles): Add flattened function.h header files.
67 * genoutput.c (output_prologue): Add predict.h to include list.
68 * genpreds.c (write_insn_preds_c): Adjust header file includes.
69 * genrecog.c (write_header): Add flattened function.h header files.
70 * alias.c: Adjust include files.
71 * auto-inc-dec.c: Likewise.
72 * basic-block.h: Likewise.
73 * bb-reorder.c: Likewise.
74 * bt-load.c: Likewise.
75 * builtins.c: Likewise.
76 * caller-save.c: Likewise.
78 * cfgbuild.c: Likewise.
79 * cfgcleanup.c: Likewise.
80 * cfgexpand.c: Likewise.
81 * cfgloop.c: Likewise.
82 * cfgloop.h: Likewise.
85 * cgraphclones.c: Likewise.
86 * cgraphunit.c: Likewise.
87 * combine-stack-adj.c: Likewise.
88 * combine.c: Likewise.
89 * coverage.c: Likewise.
95 * df-core.c: Likewise.
96 * df-problems.c: Likewise.
97 * df-scan.c: Likewise.
99 * dwarf2cfi.c: Likewise.
100 * dwarf2out.c: Likewise.
101 * emit-rtl.c: Likewise.
102 * except.c: Likewise.
103 * explow.c: Likewise.
106 * function.c: Likewise.
108 * gimple-fold.c: Likewise.
109 * gimple-low.c: Likewise.
110 * gimple-streamer.h: Likewise.
111 * haifa-sched.c: Likewise.
116 * loop-invariant.c: Likewise.
117 * lra-assigns.c: Likewise.
118 * lra-coalesce.c: Likewise.
119 * lra-constraints.c: Likewise.
120 * lra-eliminations.c: Likewise.
121 * lra-lives.c: Likewise.
122 * lra-spills.c: Likewise.
124 * lto-cgraph.c: Likewise.
125 * lto-section-in.c: Likewise.
126 * lto-section-out.c: Likewise.
127 * lto-streamer-in.c: Likewise.
128 * lto-streamer-out.c: Likewise.
129 * mode-switching.c: Likewise.
130 * modulo-sched.c: Likewise.
131 * omp-low.c: Likewise.
132 * optabs.c: Likewise.
133 * passes.c: Likewise.
134 * postreload-gcse.c: Likewise.
135 * postreload.c: Likewise.
136 * predict.c: Likewise.
137 * profile.c: Likewise.
140 * reg-stack.c: Likewise.
141 * regcprop.c: Likewise.
142 * reginfo.c: Likewise.
143 * regrename.c: Likewise.
144 * reload.c: Likewise.
145 * reload1.c: Likewise.
147 * resource.c: Likewise.
148 * rtlanal.c: Likewise.
149 * sched-deps.c: Likewise.
150 * sched-ebb.c: Likewise.
151 * sched-rgn.c: Likewise.
152 * sel-sched-dump.c: Likewise.
153 * sel-sched-ir.c: Likewise.
154 * sel-sched.c: Likewise.
155 * shrink-wrap.c: Likewise.
156 * simplify-rtx.c: Likewise.
157 * statistics.c: Likewise.
159 * stor-layout.c: Likewise.
160 * store-motion.c: Likewise.
161 * symtab.c: Likewise.
162 * targhooks.c: Likewise.
163 * toplev.c: Likewise.
164 * trans-mem.c: Likewise.
165 * tree-cfg.c: Likewise.
166 * tree-cfgcleanup.c: Likewise.
167 * tree-dfa.c: Likewise.
168 * tree-eh.c: Likewise.
169 * tree-inline.c: Likewise.
170 * tree-into-ssa.c: Likewise.
171 * tree-nested.c: Likewise.
172 * tree-nrv.c: Likewise.
173 * tree-profile.c: Likewise.
174 * tree-ssa-alias.c: Likewise.
175 * tree-ssa-ccp.c: Likewise.
176 * tree-ssa-copy.c: Likewise.
177 * tree-ssa-copyrename.c: Likewise.
178 * tree-ssa-dom.c: Likewise.
179 * tree-ssa-operands.c: Likewise.
180 * tree-ssa-propagate.c: Likewise.
181 * tree-ssa-structalias.c: Likewise.
182 * tree-ssa-tail-merge.c: Likewise.
183 * tree-ssa-threadedge.c: Likewise.
184 * tree-ssa-threadupdate.c: Likewise.
185 * tree-ssa-uncprop.c: Likewise.
186 * tree-ssa-uninit.c: Likewise.
187 * tree-ssa.c: Likewise.
188 * tree-stdarg.c: Likewise.
189 * tree-tailcall.c: Likewise.
192 * valtrack.c: Likewise.
193 * varasm.c: Likewise.
194 * vmsdbgout.c: Likewise.
196 * config/aarch64/aarch64.c: Add flattened includes from function.h.
197 * config/alpha/alpha.c: Likewise.
198 * config/arc/arc.c: Likewise.
199 * config/arm/arm.c: Likewise.
200 * config/avr/avr-log.c: Likewise.
201 * config/avr/avr.c: Likewise.
202 * config/bfin/bfin.c: Likewise.
203 * config/c6x/c6x.c: Likewise.
204 * config/cr16/cr16.c: Likewise.
205 * config/cris/cris.c: Likewise.
206 * config/darwin.c: Likewise.
207 * config/epiphany/epiphany.c: Likewise.
208 * config/epiphany/mode-switch-use.c: Likewise.
209 * config/epiphany/resolve-sw-modes.c: Likewise.
210 * config/fr30/fr30.c: Likewise.
211 * config/frv/frv.c: Likewise.
212 * config/h8300/h8300.c: Likewise.
213 * config/i386/i386.c: Likewise.
214 * config/ia64/ia64.c: Likewise.
215 * config/iq2000/iq2000.c: Likewise.
216 * config/lm32/lm32.c: Likewise.
217 * config/m32c/m32c.c: Likewise.
218 * config/m32r/m32r.c: Likewise.
219 * config/m68k/m68k.c: Likewise.
220 * config/mcore/mcore.c: Likewise.
221 * config/mep/mep-pragma.c: Likewise.
222 * config/mep/mep.c: Likewise.
223 * config/microblaze/microblaze.c: Likewise.
224 * config/mips/mips.c: Likewise.
225 * config/mmix/mmix.c: Likewise.
226 * config/mn10300/mn10300.c: Likewise.
227 * config/moxie/moxie.c: Likewise.
228 * config/msp430/msp430.c: Likewise.
229 * config/nds32/nds32-cost.c: Likewise.
230 * config/nds32/nds32-fp-as-gp.c: Likewise.
231 * config/nds32/nds32-intrinsic.c: Likewise.
232 * config/nds32/nds32-isr.c: Likewise.
233 * config/nds32/nds32-md-auxiliary.c: Likewise.
234 * config/nds32/nds32-memory-manipulation.c: Likewise.
235 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
236 * config/nds32/nds32-predicates.c: Likewise.
237 * config/nds32/nds32.c: Likewise.
238 * config/nios2/nios2.c: Likewise.
239 * config/pa/pa.c: Likewise.
240 * config/pdp11/pdp11.c: Likewise.
241 * config/rl78/rl78.c: Likewise.
242 * config/rs6000/rs6000.c: Likewise.
243 * config/rx/rx.c: Likewise.
244 * config/s390/s390.c: Likewise.
245 * config/score/score.c: Likewise.
246 * config/sh/sh.c: Likewise.
247 * config/sparc/sparc.c: Likewise.
248 * config/spu/spu.c: Likewise.
249 * config/stormy16/stormy16.c: Likewise.
250 * config/tilegx/tilegx.c: Likewise.
251 * config/tilepro/tilepro.c: Likewise.
252 * config/v850/v850.c: Likewise.
253 * config/vax/vax.c: Likewise.
254 * config/xtensa/xtensa.c: Likewise.
256 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
258 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
259 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
261 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
263 * config/sh/sh-protos.h (fldi_ok): Remove.
264 * config/sh/sh.c (fldi_ok): Likewise.
265 (sh_secondary_reload): Don't use fldi_ok.
266 * config/sh/constraints.md (G constraint, H constraint): Don't use
269 2014-10-16 Martin Liska <mliska@suse.cz>
271 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
272 Cast to unsigned long.
273 (sem_item_optimizer::dump_cong_classes): Likewise.
275 2014-10-16 Tom de Vries <tom@codesourcery.com>
277 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
278 with SSA_NAME_IN_FREELIST.
280 2014-10-16 Richard Biener <rguenther@suse.de>
283 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
284 (fold_builtin_strncat_chk): Move ...
285 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
286 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
288 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
291 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
294 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
295 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
296 Anna Tikhonova <anna.tikhonova@intel.com>
297 Ilya Tocar <ilya.tocar@intel.com>
298 Andrey Turetskiy <andrey.turetskiy@intel.com>
299 Ilya Verbin <ilya.verbin@intel.com>
300 Kirill Yukhin <kirill.yukhin@intel.com>
301 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
303 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
306 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
307 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
308 Anna Tikhonova <anna.tikhonova@intel.com>
309 Ilya Tocar <ilya.tocar@intel.com>
310 Andrey Turetskiy <andrey.turetskiy@intel.com>
311 Ilya Verbin <ilya.verbin@intel.com>
312 Kirill Yukhin <kirill.yukhin@intel.com>
313 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
315 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
316 V16SI, V32HI, V64QI modes.
318 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
321 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
322 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
324 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
325 to match fp insn patterns.
326 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
328 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
329 expand_df_unop, expand_df_binop): Remove.
330 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
331 FPSCR_STAT_REG as not call clobbered.
332 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
333 invoking fpscr_set_from_mem.
335 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
336 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
338 (REGISTER_NAMES): Adjust.
339 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
340 (FIRST_PSEUDO_REGISTER): Increase to 156.
341 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
342 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
344 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
345 FPSCR_MODES_REG and FPSCR_STAT_REG.
346 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
348 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
349 FPSCR_SZ): Add new constants.
350 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
352 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
353 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
354 Use TARGET_FPU_ANY condition.
355 (fpu_switch peephole2): Remove.
356 (fpu_switch split): Use simple_mem_operand to capture the mem and
357 adjust split implementation.
358 (extend_psi_si, truncate_si_psi): New insns.
359 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
360 set of FPSCR_MODES_REG.
362 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
363 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
364 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
365 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
366 call_value_compact, call_value_compact_rettramp, call,
367 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
368 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
369 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
370 sibcall_value_compact, sibcall_value, call_value_pop_compact,
371 call_value_pop_compact_rettramp, various unnamed splits):
372 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
375 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
376 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
377 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
378 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
379 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
381 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
382 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
383 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
384 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
385 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
386 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
387 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
389 2014-10-16 Martin Liska <mliska@suse.cz>
390 Jan Hubicka <hubicka@ucw.cz>
392 * Makefile.in: New object files included.
393 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
395 (verify_edge_corresponds_to_fndecl): More sensitive verification
396 of nodes that are merged by IPA ICF.
397 * cgraph.h (cgraph_node::num_references): New function.
398 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
399 * common.opt: New options ipa-icf, ipa-icf-functions and
400 ipa-icf-variables introduced.
401 * doc/invoke.texi: Documentation of new options introduced.
402 * ipa-icf-gimple.c: New file.
403 * ipa-icf-gimple.h: New file.
404 * ipa-icf.c: New file.
405 * ipa-icf.h: New file.
406 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
407 (input_overwrite_node): Likewise.
408 * lto-section-in.c: New icf section added.
409 * lto-streamer.h (enum lto_section_type): Likewise.
410 * opts.c (common_handle_option): New option added.
411 * passes.def: New pass included.
412 * timevar.def: Time variable for IPA ICF added.
413 * tree-pass.h: New IPA ICF pass entry point added.
415 2014-10-16 Richard Biener <rguenther@suse.de>
417 PR tree-optimization/63168
418 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
419 latches if after merging they are no longer simple.
420 * cfghooks.c (merge_blocks): Handle merging a latch block
423 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
425 Anna Tikhonova <anna.tikhonova@intel.com>
426 Ilya Tocar <ilya.tocar@intel.com>
427 Andrey Turetskiy <andrey.turetskiy@intel.com>
428 Ilya Verbin <ilya.verbin@intel.com>
429 Kirill Yukhin <kirill.yukhin@intel.com>
430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
433 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
434 support AVX-512VL instructions.
436 2014-10-16 DJ Delorie <dj@redhat.com>
438 * tree-core.h: Fix comment to not assume pointers are multiples of
441 2014-10-15 Tom Tromey <tromey@redhat.com>
443 * timevar.h (class auto_timevar): New class.
445 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
448 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
449 Remove the second alternative.
450 (regprefix): Remove mode attribute.
451 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
452 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
455 2013-11-05 Ian Lance Taylor <iant@google.com>
457 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
458 If possible, add .cfi directives to record change to bx.
459 * config/i386/i386.c (ix86_emit_cfi): New function.
460 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
462 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
465 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
467 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
470 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
472 PR rtl-optimization/63448
473 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
474 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
475 (LRA_MAX_INHERITANCE_PASSES): Use it.
476 (lra_constraint_iter_after_spill): Remove.
477 (lra_assignment_iter): New.
478 (lra_assignment_iter_after_spill): New.
479 * lra-assigns.c (lra_assignment_iter): New.
480 (lra_assignment_iter_after_spill): New.
481 (former_reload_pseudo_spill_p): New.
482 (spill_for): Set up former_reload_pseudo_spill_p.
483 (setup_live_pseudos_and_spill_after_risky): Ditto.
484 (assign_by_spills): Ditto.
485 (lra_assign): Increment lra_assignment_iter. Print the iteration
486 number. Reset former_reload_pseudo_spill_p. Check
487 lra_assignment_iter_after_spill.
488 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
489 lra_assignment_iter and lra_assignment_iter_after_spill.
490 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
491 (lra_constraints): Remove code with
492 lra_assignment_iter_after_spill.
494 2014-10-15 Teresa Johnson <tejohnson@google.com>
497 * tree-ssa-threadupdate.c (recompute_probabilities): Better
500 2014-10-15 Renlin Li <renlin.li@arm.com>
502 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
503 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
504 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
505 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
507 2014-10-15 Richard Biener <rguenther@suse.de>
509 * gimple-fold.c (gimple_fold_call): Properly keep virtual
510 SSA form up-to-date when devirtualizing a call to
511 __builtin_unreachable and avoid fixing up EH info here.
513 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
514 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
515 Anna Tikhonova <anna.tikhonova@intel.com>
516 Ilya Tocar <ilya.tocar@intel.com>
517 Andrey Turetskiy <andrey.turetskiy@intel.com>
518 Ilya Verbin <ilya.verbin@intel.com>
519 Kirill Yukhin <kirill.yukhin@intel.com>
520 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
522 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
523 to support AVX-512BW.
524 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
525 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
526 (define_insn "*<plusminus_insn><mode>3"): Ditto.
527 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
528 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
529 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
530 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
531 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
532 (define_insn "*andnot<mode>3"): Ditto.
533 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
534 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
535 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
536 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
537 (define_insn "*abs<mode>2"): Remove masking support.
538 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
539 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
540 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
542 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
543 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
544 Anna Tikhonova <anna.tikhonova@intel.com>
545 Ilya Tocar <ilya.tocar@intel.com>
546 Andrey Turetskiy <andrey.turetskiy@intel.com>
547 Ilya Verbin <ilya.verbin@intel.com>
548 Kirill Yukhin <kirill.yukhin@intel.com>
549 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
551 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
553 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
554 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
555 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
556 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
557 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
558 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
559 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
561 2014-10-15 Renlin Li <renlin.li@arm.com>
563 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
565 2014-10-15 Jakub Jelinek <jakub@redhat.com>
567 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
568 MINUS_EXPR in unsigned type to avoid undefined behavior.
570 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
572 * stor-layout.c (self_referential_size): Do not promote arguments.
574 2014-10-15 Marek Polacek <polacek@redhat.com>
576 * doc/invoke.texi: Update to reflect that GNU11 is the default
578 * c-common.h (c_language_kind): Update comment.
580 2014-10-15 Richard Biener <rguenther@suse.de>
582 * hash-table.c: Include bconfig.h if building for the host.
583 * hash-table.h: Do not include ggc.h on the host but just declare
584 a few ggc allocation templates.
586 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
587 Jeff Law <law@redhat.com>
589 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
590 multiple hard registers, use smaller mode derived from MODE.
592 2014-10-15 Andreas Schwab <schwab@suse.de>
594 * explow.c (convert_memory_address_addr_space_1): Mark in_const
597 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
599 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
600 (decide_unrolling): ... this one.
601 (peel_loops_completely): Remove.
602 (decide_peel_simple): Remove.
603 (decide_peel_once_rolling): Remove.
604 (decide_peel_completely): Remove.
605 (peel_loop_simple): Remove.
606 (peel_loop_completely): Remove.
607 (unroll_and_peel_loops): Rename to ...
608 (unroll_loops): ... this one; handle only unrolling.
609 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
612 (unroll_and_peel_loops): Remove.
614 * passes.def: Replace
615 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
616 * loop-init.c (gate_rtl_unroll_and_peel_loops,
617 rtl_unroll_and_peel_loops): Rename to ...
618 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
619 (pass_rtl_unroll_and_peel_loops): Rename to ...
620 (pass_rtl_unroll_loops): ... this one.
621 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
622 (make_pass_rtl_unroll_loops): New.
623 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
624 (canonicalize_loop_induction_variables): Update.
626 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
628 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
629 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
630 !TARGET_HARD_FLOAT_POSTINC.
631 (*lsip, *ssip): new instructions.
633 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
635 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
638 2014-10-14 Andrew Pinski <apinski@cavium.com>
640 * explow.c (convert_memory_address_addr_space): Rename to ...
641 (convert_memory_address_addr_space_1): This. Add in_const argument.
642 Inside a CONST RTL, permute the conversion and addition of constant
643 for zero and sign extended pointers.
644 (convert_memory_address_addr_space): New function.
646 2014-10-14 Andrew Pinski <apinski@cavium.com>
649 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
652 * explow.c (convert_memory_address_addr_space): Also permute the
653 conversion and addition of constant for zero-extend.
655 2014-10-14 DJ Delorie <dj@redhat.com>
657 * config/msp430/msp430-modes.def (PSI): Add.
659 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
660 (msp430_hard_regno_nregs_with_padding): New.
661 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
662 (msp430_hard_regno_nregs_has_padding): New.
663 (msp430_hard_regno_nregs_with_padding): New.
664 (msp430_unwind_word_mode): Use PSImode instead of SImode.
665 (msp430_addr_space_legitimate_address_p): New.
666 (msp430_asm_integer): New.
667 (msp430_init_dwarf_reg_sizes_extra): New.
668 (msp430_print_operand): Use X suffix for PSImode even in small model.
669 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
670 (PTR_SIZE): ...but 4 bytes for EH.
671 (SIZE_TYPE): Use __int20.
672 (PTRDIFF_TYPE): Likewise.
673 (INCOMING_FRAME_SP_OFFSET): Adjust.
674 * config/msp430/msp430.md (movqi_topbyte): New.
675 (movpsi): Use fixed suffixes.
676 (movsipsi2): Enable for 430X, not large model.
677 (extendhipsi2): Likewise.
678 (zero_extendhisi2): Likewise.
679 (zero_extendhisipsi2): Likewise.
680 (extend_and_shift1_hipsi2): Likewise.
681 (extendpsisi2): Likewise.
682 (*bitbranch<mode>4_z): Fix suffix logic.
684 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
687 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
688 do not choke on null node.
689 <VAR_DECL>: Likewise.
691 2014-10-14 DJ Delorie <dj@redhat.com>
693 * machmode.h (int_n_data_t): New.
694 (int_n_enabled_p): New.
696 * tree.c (int_n_enabled_p): New.
698 (make_or_reuse_type): Check for all __intN types, not just
700 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
702 * tree.h (int128_integer_type_node): Remove.
703 (int128_unsigned_type_node): Remove.
704 (int_n_trees_t): New.
705 (int_n_enabled_p): New.
707 * toplev.c (standard_type_bitsize): New.
708 (do_compile): Check which __intN types are enabled for the current
710 * builtin-types.def (BT_INT128): Remove.
711 (BT_UINT128): Remove.
712 * machmode.def: Add macro to create __int128 for all targets.
713 * stor-layout.c (mode_for_size): Support __intN types.
714 (smallest_mode_for_size): Likewise.
715 (initialize_sizetypes): Support __intN types.
716 * genmodes.c (struct mode_data): Add int_n field.
717 (blank_mode): Likewise.
720 (emit_insn_modes_h): Count __intN entries and define
722 (emit_mode_int_n): New.
723 (emit_insn_modes_c): Call it.
724 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
725 types, not just __int128.
726 * tree-core.h (integer_type_kind): Remove __int128-specific
727 entries, reserve spots for __intN entries.
729 * config/msp430/msp430-modes.def (PSI): Add.
731 2014-10-14 Kito Cheng <kito@0xlab.org>
733 * ira.c: Fix typo in comment.
735 * ira-build.c: Ditto.
736 * ira-color.c: Ditto.
739 * ira-lives.c: Ditto.
741 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
743 PR rtl-optimization/63475
744 * alias.c (true_dependence_1): Always use get_addr to extract
745 true address operands from x_addr and mem_addr. Use extracted
746 address operands to check for references with alignment ANDs.
747 Use extracted address operands with find_base_term and
748 base_alias_check. For noncanonicalized operands call canon_rtx with
749 extracted address operand.
750 (write_dependence_1): Ditto.
751 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
753 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
756 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
759 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
760 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
761 Anna Tikhonova <anna.tikhonova@intel.com>
762 Ilya Tocar <ilya.tocar@intel.com>
763 Andrey Turetskiy <andrey.turetskiy@intel.com>
764 Ilya Verbin <ilya.verbin@intel.com>
765 Kirill Yukhin <kirill.yukhin@intel.com>
766 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
769 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
770 (ix86_expand_int_vcond): Ditto.
772 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
774 Anna Tikhonova <anna.tikhonova@intel.com>
775 Ilya Tocar <ilya.tocar@intel.com>
776 Andrey Turetskiy <andrey.turetskiy@intel.com>
777 Ilya Verbin <ilya.verbin@intel.com>
778 Kirill Yukhin <kirill.yukhin@intel.com>
779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
782 (emit_reduc_half): Handle V64QI and V32HI mode.
784 (define_mode_iterator VI_AVX512BW): New.
785 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
787 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
788 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
789 Anna Tikhonova <anna.tikhonova@intel.com>
790 Ilya Tocar <ilya.tocar@intel.com>
791 Andrey Turetskiy <andrey.turetskiy@intel.com>
792 Ilya Verbin <ilya.verbin@intel.com>
793 Kirill Yukhin <kirill.yukhin@intel.com>
794 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
797 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
799 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
800 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
801 Anna Tikhonova <anna.tikhonova@intel.com>
802 Ilya Tocar <ilya.tocar@intel.com>
803 Andrey Turetskiy <andrey.turetskiy@intel.com>
804 Ilya Verbin <ilya.verbin@intel.com>
805 Kirill Yukhin <kirill.yukhin@intel.com>
806 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
809 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
811 (define_mode_iterator VI): Add V64QI and V32HI modes.
813 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
814 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
815 Anna Tikhonova <anna.tikhonova@intel.com>
816 Ilya Tocar <ilya.tocar@intel.com>
817 Andrey Turetskiy <andrey.turetskiy@intel.com>
818 Ilya Verbin <ilya.verbin@intel.com>
819 Kirill Yukhin <kirill.yukhin@intel.com>
820 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
822 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
824 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
826 Anna Tikhonova <anna.tikhonova@intel.com>
827 Ilya Tocar <ilya.tocar@intel.com>
828 Andrey Turetskiy <andrey.turetskiy@intel.com>
829 Ilya Verbin <ilya.verbin@intel.com>
830 Kirill Yukhin <kirill.yukhin@intel.com>
831 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
834 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
835 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
837 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
838 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
839 Anna Tikhonova <anna.tikhonova@intel.com>
840 Ilya Tocar <ilya.tocar@intel.com>
841 Andrey Turetskiy <andrey.turetskiy@intel.com>
842 Ilya Verbin <ilya.verbin@intel.com>
843 Kirill Yukhin <kirill.yukhin@intel.com>
844 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
847 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
848 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
850 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
851 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
852 Anna Tikhonova <anna.tikhonova@intel.com>
853 Ilya Tocar <ilya.tocar@intel.com>
854 Andrey Turetskiy <andrey.turetskiy@intel.com>
855 Ilya Verbin <ilya.verbin@intel.com>
856 Kirill Yukhin <kirill.yukhin@intel.com>
857 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
860 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
861 (define_mode_iterator VI2_AVX2): Add V32HI mode.
862 (define_expand "mul<mode>3<mask_name>"): Add masking.
863 (define_insn "*mul<mode>3<mask_name>"): Ditto.
864 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
865 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
866 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
867 (define_mode_attr SDOT_PMADD_SUF): Ditto.
868 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
869 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
870 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
871 (define_insn "avx2_packusdw"): Delete.
872 (define_insn "sse4_1_packusdw"): Ditto.
873 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
875 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
876 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
877 Anna Tikhonova <anna.tikhonova@intel.com>
878 Ilya Tocar <ilya.tocar@intel.com>
879 Andrey Turetskiy <andrey.turetskiy@intel.com>
880 Ilya Verbin <ilya.verbin@intel.com>
881 Kirill Yukhin <kirill.yukhin@intel.com>
882 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
885 (define_insn "vec_dup<mode>"): Update constraints.
887 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
889 Anna Tikhonova <anna.tikhonova@intel.com>
890 Ilya Tocar <ilya.tocar@intel.com>
891 Andrey Turetskiy <andrey.turetskiy@intel.com>
892 Ilya Verbin <ilya.verbin@intel.com>
893 Kirill Yukhin <kirill.yukhin@intel.com>
894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
897 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
898 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
899 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
901 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
902 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
903 Anna Tikhonova <anna.tikhonova@intel.com>
904 Ilya Tocar <ilya.tocar@intel.com>
905 Andrey Turetskiy <andrey.turetskiy@intel.com>
906 Ilya Verbin <ilya.verbin@intel.com>
907 Kirill Yukhin <kirill.yukhin@intel.com>
908 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
911 (define_expand "mul<mode>3<mask_name>"): Add masking.
913 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
915 Anna Tikhonova <anna.tikhonova@intel.com>
916 Ilya Tocar <ilya.tocar@intel.com>
917 Andrey Turetskiy <andrey.turetskiy@intel.com>
918 Ilya Verbin <ilya.verbin@intel.com>
919 Kirill Yukhin <kirill.yukhin@intel.com>
920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
923 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
924 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
926 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
928 Anna Tikhonova <anna.tikhonova@intel.com>
929 Ilya Tocar <ilya.tocar@intel.com>
930 Andrey Turetskiy <andrey.turetskiy@intel.com>
931 Ilya Verbin <ilya.verbin@intel.com>
932 Kirill Yukhin <kirill.yukhin@intel.com>
933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
936 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
937 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
938 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
941 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
943 Anna Tikhonova <anna.tikhonova@intel.com>
944 Ilya Tocar <ilya.tocar@intel.com>
945 Andrey Turetskiy <andrey.turetskiy@intel.com>
946 Ilya Verbin <ilya.verbin@intel.com>
947 Kirill Yukhin <kirill.yukhin@intel.com>
948 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
951 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
952 use VF_128_256 mode iterator and update assembler emit code.
953 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
954 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
955 Add masking, use VF_128_256 mode iterator.
956 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
957 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
958 Add masking, use VF_128_256 mode iterator and update assembler emit
960 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
961 (define_mode_attr avx512flogicsuff): Delete.
962 (define_insn "avx512f_<logic><mode>"): Ditto.
963 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
965 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
967 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
968 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
969 Anna Tikhonova <anna.tikhonova@intel.com>
970 Ilya Tocar <ilya.tocar@intel.com>
971 Andrey Turetskiy <andrey.turetskiy@intel.com>
972 Ilya Verbin <ilya.verbin@intel.com>
973 Kirill Yukhin <kirill.yukhin@intel.com>
974 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
977 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
978 (define_expand "vashr<mode>3<mask_name>"): Add masking,
979 use VI12_128 mode iterator.
980 (define_expand "ashrv2di3<mask_name>"): New.
982 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
983 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
984 Anna Tikhonova <anna.tikhonova@intel.com>
985 Ilya Tocar <ilya.tocar@intel.com>
986 Andrey Turetskiy <andrey.turetskiy@intel.com>
987 Ilya Verbin <ilya.verbin@intel.com>
988 Kirill Yukhin <kirill.yukhin@intel.com>
989 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
992 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
993 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
994 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
995 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
996 CODE_FOR_avx512vl_ucmpv4si3_mask.
998 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
999 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1001 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1002 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1003 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1004 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1005 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1006 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1008 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1009 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1010 Anna Tikhonova <anna.tikhonova@intel.com>
1011 Ilya Tocar <ilya.tocar@intel.com>
1012 Andrey Turetskiy <andrey.turetskiy@intel.com>
1013 Ilya Verbin <ilya.verbin@intel.com>
1014 Kirill Yukhin <kirill.yukhin@intel.com>
1015 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1017 * config/i386/sse.md
1018 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1019 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1020 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1021 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1022 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1023 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1024 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1025 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1026 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1028 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1029 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1030 Anna Tikhonova <anna.tikhonova@intel.com>
1031 Ilya Tocar <ilya.tocar@intel.com>
1032 Andrey Turetskiy <andrey.turetskiy@intel.com>
1033 Ilya Verbin <ilya.verbin@intel.com>
1034 Kirill Yukhin <kirill.yukhin@intel.com>
1035 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1037 * config/i386/sse.md
1038 (define_insn "avx512f_blendm<mode>"): Delete.
1039 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1040 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1041 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1042 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1044 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1047 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1050 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1052 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1053 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1054 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1055 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1058 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1061 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1063 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1066 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1069 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1072 2014-10-14 Richard Biener <rguenther@suse.de>
1074 PR tree-optimization/63512
1075 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1078 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
1081 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1082 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
1084 (negsf2_i): Rename to *negsf2_i.
1085 (abssf2_i): Rename to *abssf2_i.
1086 (negdf2_i): Rename to *negdf2_i.
1087 (absdf2_i): Rename to *absdf2_i.
1089 2014-10-14 Felix Yang <felix.yang@huawei.com>
1090 Jeff Law <law@redhat.com>
1092 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1093 "replace" into boolean bitfields; turn member "loop_depth" into a short
1094 integer; add new member "no_equiv" and "reserved".
1095 (no_equiv): Set no_equiv of struct equivalence if register is marked
1096 as having no known equivalence.
1097 (update_equiv_regs): Check all definitions for a multiple-set
1098 register to make sure that the RHS have the same value.
1100 2014-10-13 Richard Henderson <rth@redhat.com>
1102 * combine-stack-adj.c (no_unhandled_cfa): New.
1103 (maybe_merge_cfa_adjust): New.
1104 (combine_stack_adjustments_for_block): Use them.
1106 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
1108 * Makefile.in (TAGS): Tag ../include files.
1110 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1112 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1113 to rs6000_dbx_register_number.
1114 (DWARF_FRAME_REGNUM): Redefine as identity map.
1115 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1116 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1117 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1118 argument to handle .debug_frame and .eh_frame directly. Always
1119 translate SPE high register numbers. Add special treatment for CR,
1120 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
1122 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1123 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1124 (RS6000_USE_DWARF_NUMBERING): Define.
1125 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1126 (RS6000_USE_DWARF_NUMBERING): Define.
1127 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1128 (RS6000_USE_DWARF_NUMBERING): Define.
1129 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1130 (RS6000_USE_DWARF_NUMBERING): Define.
1131 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1132 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1134 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1136 * config/i386/i386.c (ix86_address_cost): Lower cost for
1137 when address contains GOT register.
1139 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
1140 Vladimir Makarov <vmakarov@redhat.com>
1144 PR rtl-optimization/55458
1145 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1146 (ix86_init_pic_reg): New.
1147 (ix86_select_alt_pic_regnum): Add check on pseudo register.
1148 (ix86_save_reg): Likewise.
1149 (ix86_expand_prologue): Remove PIC register initialization
1150 now performed in ix86_init_pic_reg.
1151 (ix86_output_function_epilogue): Add check on pseudo register.
1152 (set_pic_reg_ever_alive): New.
1153 (legitimize_pic_address): Replace df_set_regs_ever_live with new
1154 set_pic_reg_ever_alive.
1155 (legitimize_tls_address): Likewise.
1156 (ix86_pic_register_p): New check.
1157 (ix86_delegitimize_address): Add check on pseudo register.
1158 (ix86_expand_call): Insert move from pseudo PIC register to ABI
1159 defined REAL_PIC_OFFSET_TABLE_REGNUM.
1160 (TARGET_INIT_PIC_REG): New.
1161 (TARGET_USE_PSEUDO_PIC_REG): New.
1162 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
1163 if pic_offset_table_rtx exists.
1164 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
1166 * doc/tm.texi: Regenerate.
1167 * function.c (assign_parms): Generate pseudo register for PIC.
1168 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
1170 * ira-color.c (color_pass): Add check on pseudo register.
1171 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
1173 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
1175 (ira): Add target specific PIC register initialization.
1176 (do_reload): Keep PIC pseudo register.
1177 * lra-assigns.c (spill_for): Add checks on pseudo register.
1178 * lra-constraints.c (contains_symbol_ref_p): New.
1179 (lra_constraints): Enable lra risky transformations when PIC is pseudo
1181 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
1182 * target.def (use_pseudo_pic_reg): New.
1183 (init_pic_reg): New.
1185 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1187 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
1188 Remove m_SILVERMONT and m_INTEL from the tune.
1190 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1193 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
1194 when _HPUX_SOURCE is defined.
1196 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1198 PR tree-optimization/62127
1199 * tree.c (remap_type_1): When remapping array, remap
1202 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
1204 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
1205 longer impact parallelization.
1207 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1210 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
1212 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
1214 * asan.c (instrument_derefs): BIT_FIELD_REF added.
1216 2014-10-13 Richard Biener <rguenther@suse.de>
1218 PR tree-optimization/63419
1219 * gimple-fold.h (gimple_convert): New function.
1220 * gimple-fold.c (gimple_convert): Likewise.
1221 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
1222 to split out required conversions early.
1224 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
1226 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
1227 Add the parts of an insn in reverse order, with the pattern at
1228 the top of the queue. Detect when we're iterating over a SEQUENCE
1229 pattern and in that case just consider patterns of subinstructions.
1231 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
1234 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
1236 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
1238 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
1239 address. Use def chains to handle GBR clobbering call insns.
1241 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1243 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
1244 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
1245 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
1246 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
1247 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
1248 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
1249 * doc/gty.texi (for_user): Document new option.
1250 * gengtype.c (create_user_defined_type): Don't try to get a struct for
1252 (walk_type): Don't error out on for_user option.
1253 (write_func_for_structure): Emit user marking routines if requested by
1255 (write_local_func_for_structure): Likewise.
1256 (main): Mark types with for_user option as used.
1257 * ggc.h (gt_pch_nx): Add overload for unsigned int.
1258 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
1259 * hash-table.h (ggc_hasher): New struct.
1260 (hash_table::create_ggc): New function.
1261 (gt_pch_nx): New overload for hash_table.
1263 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
1265 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
1266 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
1267 * config/sh/sh.c: Likewise.
1268 * config/sh/sh-mem.cc: Likewise.
1269 * config/sh/sh.md: Likewise.
1270 * config/sh/predicates.md: Likewise.
1271 * config/sh/sync.md: Likewise.
1273 2014-10-11 Martin Liska <mliska@suse.cz>
1276 * cgraphunit.c (symbol_table::process_new_functions): Missing call
1277 for call_cgraph_insertion_hooks added.
1279 2014-10-10 Jakub Jelinek <jakub@redhat.com>
1282 * stor-layout.c (min_align_of_type): Don't decrease alignment
1283 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
1284 TYPE_USER_ALIGN is set.
1286 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
1288 PR rtl-optimization/63483
1289 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
1290 references when alignment ANDs are involved.
1291 (write_dependence_p): Ditto.
1292 (may_alias_p): Ditto.
1294 2014-10-10 Marek Polacek <polacek@redhat.com>
1296 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
1297 * doc/invoke.texi: Document -fsanitize=object-size.
1298 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
1299 or it into SANITIZE_UNDEFINED.
1300 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
1301 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
1302 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
1303 * opts.c (common_handle_option): Handle -fsanitize=object-size.
1304 * ubsan.c: Include tree-object-size.h.
1305 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
1306 (ubsan_expand_bounds_ifn): Use false instead of 0.
1307 (ubsan_expand_objsize_ifn): New function.
1308 (instrument_object_size): New function.
1309 (pass_ubsan::execute): Add object size instrumentation.
1310 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
1312 2014-10-10 Richard Henderson <rth@redhat.com>
1315 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
1316 Restrict the set of expressions we're willing to move.
1318 2014-10-10 Jeff Law <law@redhat.com>
1320 * ira.c (struct equivalence): Promote INIT_INSNs field to
1321 an rtx_insn_list. Add comments.
1322 (no_equiv): Promote LIST to an rtx_insn_list. Update
1323 testing for and creating the special marker. Use methods
1324 to extract the insn and next pointers. Promote INSN to an
1326 (update_equiv_regs): Update test for special marker in the
1329 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1331 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
1332 * configure: Regenerate.
1333 * config/aarch64/aarch64.c (aarch64_override_options): Handle
1334 TARGET_FIX_ERR_A53_835769_DEFAULT.
1335 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
1337 * doc/install.texi (aarch64*-*-*): Document
1338 new --enable-fix-cortex-a53-835769 option.
1340 2014-10-10 Kyrylo Tkachov<kyrylo.tkachov@arm.com>
1341 Ramana Radhakrishnan<ramana.radhakrishnan@arm.com>
1343 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
1344 (ADJUST_INSN_LENGTH): Define.
1345 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
1346 * config/aarch64/aarch64.c (is_mem_p): New function.
1347 (is_memory_op): Likewise.
1348 (aarch64_prev_real_insn): Likewise.
1349 (is_madd_op): Likewise.
1350 (dep_between_memop_and_curr): Likewise.
1351 (aarch64_madd_needs_nop): Likewise.
1352 (aarch64_final_prescan_insn): Likewise.
1353 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
1354 and -mno-fix-cortex-a53-835769 options.
1356 2014-10-10 Jakub Jelinek <jakub@redhat.com>
1358 PR tree-optimization/63464
1359 * tree-switch-conversion.c (struct case_bit_test): Remove
1360 hi and lo fields, add wide_int mask field.
1361 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
1362 hi/lo fields into wide_int mask operations, optimize by pretending
1363 minval to be 0 if maxval is small enough.
1364 (process_switch): Adjust caller.
1366 2014-10-10 Richard Biener <rguenther@suse.de>
1368 PR tree-optimization/63379
1369 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
1370 a neutral operand for min/max when it is not a reduction chain.
1372 2014-10-10 Richard Biener <rguenther@suse.de>
1374 PR tree-optimization/63476
1375 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
1376 (BB_LIVE_VOP_ON_EXIT): New define.
1377 (create_expression_by_pieces): Assign VUSEs to stmts.
1378 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
1379 (pass_pre::execute): Assert virtual SSA form is up-to-date
1382 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
1384 * lra-assigns.c (assign_by_spills): Error out on spill failure.
1386 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
1388 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
1391 2014-10-09 Richard Biener <rguenther@suse.de>
1393 PR tree-optimization/63380
1394 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
1397 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
1399 * config/avr/avr.opt (mmcu=): Change to have a string value.
1400 (mn-flash=, mskip-bug, march=, mrmw): New options.
1401 (HeaderInclude): New.
1402 (mmcu=): Remove Var / Init clauses.
1403 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
1405 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
1406 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
1407 (SYMBOL_FLAG_IO_LOW): Define.
1408 (avr_device_to_as, avr_device_to_ld): Don't declare.
1409 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
1410 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
1411 (EXTRA_SPEC_FUNCTIONS): Don't define.
1412 (ASM_SPEC): Translate -arch= option to -mmcu= option.
1413 (LINK_SPEC): Translate -arch= option to -m= option.
1414 Don't use device_to_ld / device_to_data_start.
1415 (STARTFILE_SPEC): Now empty.
1416 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
1417 * config/avr/gen-avr-mmcu-specs.c: New file.
1418 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
1419 (s-device-specs): Likewise.
1420 (GCC_PASSES): Add s-device-specs.
1421 (install-driver): Depend on install-device-specs.
1422 (install-device-specs): New rule.
1423 * config/avr/avr.c (avr_option_override): Look up mcu arch by
1424 avr_arch_index and provide fallback initialization for avr_n_flash.
1425 (varasm.h): #include.
1426 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
1427 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
1428 (avr_attribute_table): Add "io", "address" and "io_low".
1429 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
1430 Add special handling for symbols with "io" and/or "address" attributes.
1431 (avr_asm_asm_output_aligned_bss): New function.
1432 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
1433 as appropriate. Handle io_low attribute.
1434 (avr_out_sbxx_branch): Handle symbolic io addresses.
1435 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
1436 avr_n_flash instead of avr_current_device->n_flash.
1437 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
1438 (avr_emit_movmemhi): Likewise.
1439 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
1440 Use TARGET_RMW instead of avr_current_device->dev_attributes.
1441 Don't define avr_current_device->macro (that's the specfile's job).
1442 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
1443 * config/avr/avr.c (avr_2word_insn_p): Likewise.
1444 * config/avr/avr.md (*cpse.ne): Likewise.
1445 (mov<mode>): Use avr_eval_addr_attrib.
1446 (cbi): Change constraint for low_io_address_operand operand to "i".
1447 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
1448 * config/avr/predicates.md (io_address_operand):
1449 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
1450 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
1451 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
1453 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
1454 * config/avr/genmultilib.awk: Use -march=.
1455 Remove Multilib matches processing.
1456 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
1457 * config/avr/avr-arch.h: Add double include guard.
1458 (avr_mcu_t) <library_name>: Update comment.
1459 * config/avr/driver-avr.c (avr_device_to_as): Delete.
1460 (avr_device_to_ld, avr_device_to_data_start): Likewise.
1461 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
1462 (avr_device_to_sp8): Likewise.
1463 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
1465 * doc/extend.texi (io, address): Document new AVR variable attributes.
1468 2014-10-09 Marek Polacek <polacek@redhat.com>
1470 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
1472 2014-10-08 Richard Biener <rguenther@suse.de>
1474 PR tree-optimization/61969
1475 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
1478 2014-10-09 Richard Biener <rguenther@suse.de>
1480 PR tree-optimization/63445
1481 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
1482 overflow for non-equality compares.
1484 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
1486 PR rtl-optimization/57003
1487 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1488 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
1489 killing regs_invalidated_by_call.
1491 2014-10-08 Teresa Johnson <tejohnson@google.com>
1494 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
1495 (ssa_fix_duplicate_block_edges): Invoke it.
1496 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
1498 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
1501 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1502 atomic_fetch_<fetchop_name>si_hard,
1503 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
1504 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
1505 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
1506 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
1508 2014-10-08 Rong Xu <xur@google.com>
1510 * gcov-tool.c (profile_overlap): New driver function
1511 to compute profile overlap.
1512 (print_overlap_usage_message): New.
1513 (overlap_usage): New.
1515 (print_usage): Add calls to overlap function.
1517 * doc/gcov-tool.texi: Add documentation.
1519 2014-10-08 Steve Ellcey <sellcey@mips.com>
1521 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
1522 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
1524 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
1526 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
1527 pattern matching of MEM_REF.
1528 (check_stmt_for_type_change): Update.
1530 2014-10-08 Steve Ellcey <sellcey@mips.com>
1532 * config/mips/linux64.h: Remove.
1533 * config/mips/gnu-user64.h: Remove.
1534 * gcc.config (mips*-*-*): Remove references to linux64.h and
1536 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
1537 with modified version from gnu-user64.h.
1538 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
1539 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
1540 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
1542 (GNU_USER_LINK_EMULATION64): Ditto.
1543 (GNU_USER_LINK_EMULATIONN32): Ditto.
1544 (GLIBC_DYNAMIC_LINKER32): Ditto.
1545 (GLIBC_DYNAMIC_LINKER64): Ditto.
1546 (GLIBC_DYNAMIC_LINKERN32): Ditto.
1547 (UCLIBC_DYNAMIC_LINKER32): Ditto.
1548 (UCLIBC_DYNAMIC_LINKER64): Ditto.
1549 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
1550 (BIONIC_DYNAMIC_LINKERN32): Ditto.
1551 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
1552 (GLIBC_DYNAMIC_LINKER): Delete.
1553 (UCLIBC_DYNAMIC_LINKER): Delete.
1555 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
1556 Richard Biener <rguenther@suse.de>
1558 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
1559 Get address space from operand 0 (BASE).
1561 2014-10-07 Iain Sandoe <iain@codesourcery.com>
1564 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
1566 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
1568 * dwarf2out.c: Remove current_function_has_inlines.
1569 (gen_subprogram_die): Same.
1570 (gen_inlined_subroutine_die): Same.
1572 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
1574 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
1576 (_addcarry_u64): Ditto.
1577 (_addcarryx_u64): Ditto.
1579 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
1581 * cgraph.h (cgraph_node::get_fun): Declare.
1582 * cgraph.c (cgraph_node::get_fun): New method.
1583 * ipa-inline.c (can_inline_edge_p): Use it.
1585 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
1587 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
1588 and -ftrapping-math.
1589 * lto-wrapper.c (merge_and_complain): Likewise.
1590 (run_gcc): Likewise.
1592 2014-10-06 Rong Xu <xur@google.com>
1594 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
1595 * tree-profile.c: (params.h): New include.
1596 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
1597 and __gcov_indirect_call_topn_counters for
1598 indirect_call_topn_profile.
1599 (gimple_init_edge_profiler): New decls for
1600 __gcov_indirect_call_topn_profiler.
1601 (gimple_gen_ic_profiler): Generate the correct profiler call.
1602 (gimple_gen_ic_func_profiler): Fix format.
1603 * value-prof.c (params.h): New include.
1604 (dump_histogram_value): Hanlde indirect_call_topn counters.
1605 (stream_in_histogram_value): Ditto.
1606 (gimple_indirect_call_to_profile): Use indirect_call_topn
1607 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
1608 (gimple_find_values_to_profile): Hanlde indirect_call_topn
1610 * value-prof.h (enum hist_type): Histrogram type for
1611 indirect_call_topn counters.
1612 * profile.c (instrument_values): Instrument
1613 indirect_call_topn counters.
1615 2014-10-06 Rong Xu <xur@google.com>
1617 * Makefile.in: Fix dependence.
1618 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
1619 indirect call topn profiler.
1622 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
1624 * calls.c (expand_call): Do not use the target as the return slot if
1625 it is not sufficiently aligned.
1627 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1629 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
1630 discussion of permutes and why we don't handle them.
1632 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
1634 * config/sparc/predicates.md (int_register_operand): Delete.
1636 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
1638 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
1640 2014-10-06 Jakub Jelinek <jakub@redhat.com>
1642 * ubsan.h (ubsan_get_source_location): New prototype.
1643 * ubsan.c (ubsan_source_location_type): New variable.
1644 Function renamed to ...
1645 (ubsan_get_source_location_type): ... this. Cache
1646 return value in ubsan_source_location_type variable.
1647 (ubsan_source_location, ubsan_create_data): Use
1648 ubsan_get_source_location_type instead of
1649 ubsan_source_location_type.
1650 * asan.c (asan_protect_global): Don't protect globals
1651 with ubsan_get_source_location_type () type.
1652 (asan_add_global): Provide global decl location info
1655 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
1657 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
1660 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
1662 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
1664 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
1666 (ipa_polymorphic_call_context::dump): Fix formating.
1667 (walk_ssa_copies): Add logic avoiding loops; update uses.
1668 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
1670 2014-10-02 Mark Wielaard <mjw@redhat.com>
1673 * dwarf2out.c (gen_subprogram_die): When a member function is
1674 explicitly deleted then add a DW_AT_GNU_deleted attribute.
1675 * langhooks.h (struct lang_hooks_for_decls): Add
1676 function_decl_deleted_p langhook.
1677 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
1678 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
1680 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
1682 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
1683 NULL pointer checks.
1684 (ipa_polymorphic_call_context::get_dynamic_type): Return true
1685 if type doesn't change.
1686 * cgraph.h (cgraph_indirect_call_info): New flag.
1687 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
1688 (cgraph_node::dump): Dump it.
1689 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
1690 of context.get_dynamic_type.
1691 (ipa_make_edge_direct_to_target): Do not speculate
1692 edge that is already speuclative.
1693 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
1694 speculate to __builtin_unreachable
1695 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
1697 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
1699 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
1701 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
1702 get_dynamic_type; drop TODO.
1703 * ipa-polymorphic-call.c
1704 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
1705 for otr_type to be unknown.
1707 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
1709 * common/config/score/score-common.c: Remove.
1710 * config.gcc: Remove support for score-*.
1711 * config/score/constraints.md: Remove.
1712 * config/score/elf.h: Remove.
1713 * config/score/predicates.md: Remove.
1714 * config/score/score-conv.h: Remove.
1715 * config/score/score-generic.md: Remove.
1716 * config/score/score-modes.def: Remove.
1717 * config/score/score-protos.h: Remove.
1718 * config/score/score.c: Remove.
1719 * config/score/score.h: Remove.
1720 * config/score/score.md: Remove.
1721 * config/score/score.opt: Remove.
1722 * doc/md.texi: Don't document score-*.
1724 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
1727 * genconditions.c: Directly include ggc.h before rtl.h.
1729 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
1731 * ipa-polymorphic-call.c
1732 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
1733 code determining speculative type.
1734 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
1736 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1738 * altivec.md (altivec_lvsl): New define_expand.
1739 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
1740 (altivec_lvsr): New define_expand.
1741 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
1742 * rs6000.c (rs6000_expand_builtin): Change to use
1743 altivec_lvs[lr]_direct; remove commented-out code.
1745 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1747 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1748 Issue a warning message when vec_lvsl or vec_lvsr is used with a
1749 little endian target.
1751 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1753 * tree-pretty-print.c (dump_location): Make it extern. Dump also
1755 * tree-pretty-print.h (dump_location): Declare.
1756 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
1757 (pp_gimple_stmt_1): Likewise.
1758 (dump_implicit_edges): Likewise.
1759 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
1763 2014-10-03 David Malcolm <dmalcolm@redhat.com>
1765 * gcc.c (driver::global_initializations): Remove "const" so
1766 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
1767 and decoded_options_count.
1769 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1771 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
1773 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
1774 TARGET_E500_DOUBLE case here.
1776 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
1781 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
1783 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
1785 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
1786 * lto-cgraph.c (lto_output_edge, input_edge): Stream
1787 in_polymorphic_cdtor
1788 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
1789 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
1790 * cgraphclones.c (cgraph_edge::clone): Likewise.
1791 * ipa-prop.c (update_jump_functions_after_inlining,
1792 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
1793 to possible_dynamic_type_change.
1794 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
1795 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
1796 IN_POLY_CDOTR argument.
1798 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
1799 for BASE and OUTER_TYPE being NULL.
1800 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
1801 in_poly_cdtor parameter.
1803 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1805 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
1806 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
1808 (expand_vec_perm_1): Likewise.
1810 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1811 Uros Bizjak <ubizjak@gmail.com>
1813 PR tree-optimization/61403
1814 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
1815 error in comment. Also optimize 256-bit vectors for AVX2
1816 or AVX (floating vectors only), provided the first permutation
1817 can be performed in one insn.
1819 2014-10-03 David Malcolm <dmalcolm@redhat.com>
1821 * gcc.c (class driver): New class.
1822 (main): Reimplement in terms of driver::main, moving most of the
1823 locals to be locals within individual methods of class driver.
1824 The remaining locals "explicit_link_files", "decoded_options" and
1825 "decoded_options_count" are used by multiple driver:: methods, and
1826 so become member data. Doing so isolates the argc/argv reads and
1827 writes. Replace "goto out" with a special exit code from
1828 new method driver::prepare_infiles. Split out the old
1829 implementation of main into the following...
1830 (driver::main): New function, corresponding to the old "main"
1832 (driver::set_progname): New function, taken from the old
1833 "main" implementation.
1834 (driver::expand_at_files): Likewise.
1835 (driver::decode_argv): Likewise.
1836 (driver::global_initializations): Likewise.
1837 (driver::build_multilib_strings): Likewise.
1838 (driver::set_up_specs): Likewise.
1839 (driver::putenv_COLLECT_GCC): Likewise.
1840 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
1841 (driver::handle_unrecognized_options): Likewise.
1842 (driver::maybe_print_and_exit): Likewise.
1843 (driver::prepare_infiles): Likewise.
1844 (driver::do_spec_on_infiles): Likewise.
1845 (driver::maybe_run_linker): Likewise.
1846 (driver::final_actions): Likewise.
1847 (driver::get_exit_code): Likewise.
1849 2014-10-03 Yury Gribov <y.gribov@samsung.com>
1851 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
1852 don't emit empty ctors.
1854 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
1856 * convert.c (convert_to_integer): Do not introduce useless conversions
1857 between integral types.
1859 2014-10-03 David Sherwood <david.sherwood@arm.com>
1861 * ira-int.h (ira_allocno): Mark hard_regno as signed.
1863 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
1865 * lra-constraints.c (inherit_in_ebb): Handle calls with
1866 multiple return values.
1867 * caller-save.c (save_call_clobbered_regs): Likewise.
1869 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1871 * tree-vect-data-refs.c (vect_permute_load_chain,
1872 vect_shift_permute_load_chain): Fix a typo in temporary var names,
1873 suffle3 to shuffle3.
1876 * omp-low.c (taskreg_contexts): New variable.
1877 (scan_omp_parallel): Push newly created context into taskreg_contexts
1878 vector and move record layout code to finish_taskreg_scan.
1879 (scan_omp_task): Likewise.
1880 (finish_taskreg_scan): New function.
1881 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
1882 vector elements and release it.
1885 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
1886 of palignr arguments can't be used due to min 0 or max - min
1887 too high, try also op0, op1 order of palignr arguments.
1889 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
1891 * cgraph.h (ipa_polymorphic_call_context):
1892 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
1893 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
1894 * ipa-polymorphic-call.c
1895 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
1896 past end of dynamic types.
1897 (ipa_polymorphic_call_context::stream_out,
1898 speculative_outer_type): Stream dynamic flag.
1899 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
1900 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
1902 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
1904 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
1905 * ipa-prop.c (update_jump_functions_after_inlining,
1906 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
1908 2014-10-02 Teresa Johnson <tejohnson@google.com>
1910 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
1911 up when synthesizing counts to avoid rounding errors.
1913 2014-10-02 Teresa Johnson <tejohnson@google.com>
1916 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
1917 asserts to handle incoming insanities.
1919 2014-10-02 Martin Jambor <mjambor@suse.cz>
1921 PR tree-optimization/63375
1922 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
1925 2014-10-02 Olivier Hainque <hainque@adacore.com>
1927 * Makefile.in (CROSS): Define, to @CROSS.
1929 2014-10-02 Jakub Jelinek <jakub@redhat.com>
1932 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
1933 if it expands to a single insn only.
1934 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
1935 fail unless in_order is true. Add forward declaration.
1936 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
1937 is useful for one_operand_p.
1938 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
1940 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
1942 * cgraphclones.c (build_function_type_skip_args): Do not make new
1943 type variant of old.
1945 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
1947 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
1948 when speculation is added.
1949 (ipa_edge_args): Add polymorphic_call_contexts.
1950 (ipa_get_ith_polymorhic_call_context): New accesor.
1951 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
1952 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
1953 (ipa_compute_jump_functions_for_edge): Compute contexts.
1954 (update_jump_functions_after_inlining): Update contexts.
1955 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
1956 update dumping; add speculative edge creation.
1957 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
1959 (update_indirect_edges_after_inlining): Pass down context.
1960 (ipa_edge_duplication_hook): Duplicate contexts.
1961 (ipa_write_node_info): Stream out contexts.
1962 (ipa_read_node_info): Stream in contexts.
1963 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
1965 (try_speculative_devirtualization): New function.
1966 * ipa-utils.h (try_speculative_devirtualization): Declare.
1968 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
1970 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
1973 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
1975 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
1978 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
1980 * ipa-polymorphic-call.c
1981 (ipa_polymorphic_call_context::restrict_to_inner_class):
1982 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
1983 use speculation_consistent_p to do so; Add CONSDER_BASES
1984 and CONSIDER_PLACEMENT_NEW parameters.
1985 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
1986 short circuit obvious cases.
1987 (ipa_polymorphic_call_context::dump): Improve formatting.
1988 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
1989 combine_speculation_with to record speculations; Do not ICE when
1990 object is located in pointer type decl; do not ICE for methods
1991 of UNION_TYPE; do not record nonpolymorphic types.
1992 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
1993 (ipa_polymorphic_call_context::combine_speculation_with): New method.
1994 (ipa_polymorphic_call_context::combine_with): New method.
1995 (ipa_polymorphic_call_context::make_speculative): Move here; use
1996 combine speculation.
1997 * cgraph.h (ipa_polymorphic_call_context): Update
1998 restrict_to_inner_class prototype; add offset_by, make_speculative,
1999 combine_with, useless_p, combine_speculation_with and
2000 speculation_consistent_p methods.
2001 (ipa_polymorphic_call_context::offset_by): New method.
2002 (ipa_polymorphic_call_context::useless_p): New method.
2004 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2006 PR rtl-optimization/62151
2007 * combine.c (can_combine_p): Allow the destination register of INSN
2008 to be clobbered in I3.
2009 (subst): Do not substitute into clobbers of registers.
2011 2014-10-01 Jakub Jelinek <jakub@redhat.com>
2014 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2015 offset, TARGET_MEM_REF and SSA_NAME.
2017 * config/i386/i386.c (expand_vec_perm_palignr): Handle
2018 256-bit vectors for TARGET_AVX2.
2020 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2024 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2025 argument to avx2_permv2ti.
2027 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2029 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2031 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
2033 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2034 (fmod<mode>3): Ditto.
2035 (fpremxf4_i387): Ditto.
2036 (reminderxf3): Ditto.
2037 (reminder<mode>3): Ditto.
2038 (fprem1xf4_i387): Ditto.
2040 2014-09-30 Teresa Johnson <tejohnson@google.com>
2042 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2043 duplicate_blocks bitmap.
2044 (remove_ctrl_stmt_and_useless_edges): Ditto.
2045 (create_block_for_threading): Ditto.
2046 (compute_path_counts): New function.
2047 (update_profile): Ditto.
2048 (recompute_probabilities): Ditto.
2049 (update_joiner_offpath_counts): Ditto.
2050 (freqs_to_counts_path): Ditto.
2051 (clear_counts_path): Ditto.
2052 (ssa_fix_duplicate_block_edges): Update profile info.
2053 (ssa_create_duplicates): Pass new parameter.
2054 (ssa_redirect_edges): Remove old profile update.
2055 (thread_block_1): New duplicate_blocks bitmap,
2056 remove old profile update.
2057 (thread_single_edge): Pass new parameter.
2059 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
2062 * varasm.c (decode_reg_name_and_count): Check availability for
2063 registers from ADDITIONAL_REGISTER_NAMES.
2065 2014-09-30 David Malcolm <dmalcolm@redhat.com>
2068 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2069 (PLUGIN_HEADERS): Add pass-instances.def.
2071 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
2073 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2075 * config/aarch64/aarch64-simd.md
2076 (aarch64_sqdmull_laneq<mode>): Expand iterator.
2077 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2078 (vqdmulls_lane_s32): Fix return type.
2079 (vqdmulls_laneq_s32): New.
2081 2014-09-30 Jakub Jelinek <jakub@redhat.com>
2084 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2085 or invert_jump_1 if jump isn't any_condjump_p.
2087 2014-09-30 Terry Guo <terry.guo@arm.com>
2089 * config/arm/arm-cores.def (cortex-m7): New core name.
2090 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2092 * config/arm/arm-tables.opt: Regenerated.
2093 * config/arm/arm-tune.md: Regenerated.
2094 * config/arm/arm.h (TARGET_VFP5): New macro.
2095 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2096 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2097 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2098 * doc/invoke.texi: Document new cpu and fpu names.
2100 2014-09-30 Jiong Wang <jiong.wang@arm.com>
2102 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2103 before sinking insn.
2105 2014-09-30 David Sherwood <david.sherwood@arm.com>
2107 * ira-int.h (ira_allocno): Add "wmode" field.
2108 * ira-build.c (create_insn_allocnos): Add new "parent" function
2110 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2111 that cannot be accessed in wmode.
2113 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2115 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2118 2014-09-29 Andi Kleen <ak@linux.intel.com>
2120 * opts.c (print_filtered_help): Print --param min/max/default
2123 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2125 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2127 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
2129 * tree-vrp.c (get_single_symbol): New function.
2130 (build_symbolic_expr): Likewise.
2131 (symbolic_range_based_on_p): New predicate.
2132 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2133 for PLUS and MINUS. Do not drop symbolic ranges at the end.
2134 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2135 operand is symbolic and based on the other operand.
2137 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
2139 * config/microblaze/microblaze.md (call_internal1): Use VOID
2140 instead of SI to fix "((void (*)(void)) 0)()" issue
2142 2014-09-29 Nick Clifton <nickc@redhat.com>
2144 * config/msp430/msp430.c (msp430_expand_prologue): Return a
2145 CLOBBER rtx for naked functions.
2146 (msp430_expand_epilogue): Likewise.
2147 (msp430_use_f5_series_hwmult): Cache result.
2148 (use_32bit_hwmult): Cache result.
2149 (msp430_no_hwmult): New function.
2150 (msp430_output_labelref): Use it.
2152 2014-09-29 Jakub Jelinek <jakub@redhat.com>
2155 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2156 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2157 use the alignment of avar rather than ovar.
2159 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
2161 * config/pa/pa.c (pa_output_function_epilogue): Only update
2162 last_address when a nonnote insn is found.
2164 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2167 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2169 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2172 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
2173 fix pasto in checking array size.
2175 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2178 * passes.def (pass_tracer): Move before last dominator pass.
2180 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
2182 * gcc.c (try_generate_repro): Remove argument "prog". Change all
2184 (run_attempt): Handle errors of "pex_run" invocation.
2186 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
2188 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
2190 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
2191 (TARGET_ASAN_SHADOW_OFFSET): Define.
2193 2014-09-26 Martin Liska <mliska@suse.cz>
2195 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
2197 * cgraph.h: Likewise.
2198 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
2199 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
2200 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
2201 * tree-ssa-alias.h: Likewise.
2203 2014-09-26 Jakub Jelinek <jakub@redhat.com>
2204 Max Ostapenko <m.ostapenko@partner.samsung.com>
2206 * common.opt: New option.
2207 * doc/invoke.texi: Describe new option.
2208 * gcc.c (execute): Don't free first string early, but at the end
2209 of the function. Call retry_ice if compiler exited with
2211 (main): Factor out common code.
2212 (print_configuration): New function.
2213 (files_equal_p): Likewise.
2214 (check_repro): Likewise.
2215 (run_attempt): Likewise.
2216 (do_report_bug): Likewise.
2217 (append_text): Likewise.
2218 (try_generate_repro): Likewise
2220 2014-09-25 Andi Kleen <ak@linux.intel.com>
2222 * config/i386/i386.c (x86_print_call_or_nop): New function.
2223 (x86_function_profiler): Support -mnop-mcount and
2225 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
2226 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
2228 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2230 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
2231 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
2232 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
2235 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2237 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
2238 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
2239 types_odr_comparable): Declare.
2240 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
2241 * ipa-polymorphic-call.c: New file.
2242 (contains_polymorphic_type_p, possible_placement_new,
2243 ipa_polymorphic_call_context::restrict_to_inner_class,
2244 contains_type_p, decl_maybe_in_construction_p,
2245 ipa_polymorphic_call_context::stream_out,
2246 ipa_polymorphic_call_context::debug,
2247 ipa_polymorphic_call_context::stream_in,
2248 ipa_polymorphic_call_context::set_by_decl,
2249 ipa_polymorphic_call_context::set_by_invariant,
2251 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2252 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2253 extr_type_from_vtbl_ptr_store, record_known_type
2254 check_stmt_for_type_change,
2255 ipa_polymorphic_call_context::get_dynamic_type): Move here from
2257 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
2258 and streamer-hooks.h
2259 (contains_polymorphic_type_p, possible_placement_new,
2260 ipa_polymorphic_call_context::restrict_to_inner_class,
2261 contains_type_p, decl_maybe_in_construction_p,
2262 ipa_polymorphic_call_context::stream_out,
2263 ipa_polymorphic_call_context::debug,
2264 ipa_polymorphic_call_context::stream_in,
2265 ipa_polymorphic_call_context::set_by_decl,
2266 ipa_polymorphic_call_context::set_by_invariant,
2268 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2269 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2270 extr_type_from_vtbl_ptr_store, record_known_type
2271 check_stmt_for_type_change,
2272 ipa_polymorphic_call_context::get_dynamic_type): Move to
2273 ipa-polymorphic-call.c
2274 (type_all_derivations_known_p, types_odr_comparable,
2275 types_must_be_same_for_odr): Export.
2276 (type_known_to_have_no_deriavations_p): New function.
2277 * Makefile.in: Add ipa-polymorphic-call.c
2279 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2281 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
2283 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
2284 (possible_polymorphic_call_targets): Instead of computing both
2285 speculative and non-speculative answers, do just one at a time.
2286 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
2287 (dump_targets): Break out from ...
2288 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
2289 and non-speculative lists.
2290 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
2291 * ipa-utils.h (possible_polymorphic_call_targets): Update.
2293 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
2295 PR rtl-optimization/63348
2296 * emit-rtl.c (try_split): Do not emit extra barrier.
2298 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
2300 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
2301 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
2303 (aarch64_<sur>shll2_n<mode>): Likewise.
2304 (aarch64_<sur>shr_n<mode>): Likewise.
2305 (aarch64_<sur>sra_n<mode>: Likewise.
2306 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
2307 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
2308 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
2309 * config/aarch64/iterators.md (ve_mode): New.
2310 (offsetlr): Remap to infix text for use in new predicates.
2311 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
2312 (aarch64_simd_shift_imm_hi): Likewise.
2313 (aarch64_simd_shift_imm_si): Likewise.
2314 (aarch64_simd_shift_imm_di): Likewise.
2315 (aarch64_simd_shift_imm_offset_qi): Likewise.
2316 (aarch64_simd_shift_imm_offset_hi): Likewise.
2317 (aarch64_simd_shift_imm_offset_si): Likewise.
2318 (aarch64_simd_shift_imm_offset_di): Likewise.
2319 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
2320 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
2321 (aarch64_simd_shift_imm_bitsize_si): Likewise.
2322 (aarch64_simd_shift_imm_bitsize_di): Likewise.
2324 2014-09-25 Jiong Wang <jiong.wang@arm.com>
2326 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
2327 new created BB as the intersection of live-in from "old_dest" and
2330 2014-09-25 Felix Yang <felix.yang@huawei.com>
2332 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
2333 * genautomata.c (merge_states): Ditto.
2335 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
2338 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
2339 in instruction sequence.
2341 2014-09-25 Nick Clifton <nickc@redhat.com>
2344 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
2345 in instruction sequence.
2347 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2350 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
2351 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
2353 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2354 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2355 Anna Tikhonova <anna.tikhonova@intel.com>
2356 Ilya Tocar <ilya.tocar@intel.com>
2357 Andrey Turetskiy <andrey.turetskiy@intel.com>
2358 Ilya Verbin <ilya.verbin@intel.com>
2359 Kirill Yukhin <kirill.yukhin@intel.com>
2360 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2362 * config/i386/sse.md
2363 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
2364 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
2365 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
2366 (define_expand "<avx512>_perm<mode>_mask"): ... this.
2367 Use VI8F_256_512 mode iterator.
2368 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
2369 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
2371 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2372 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2373 Anna Tikhonova <anna.tikhonova@intel.com>
2374 Ilya Tocar <ilya.tocar@intel.com>
2375 Andrey Turetskiy <andrey.turetskiy@intel.com>
2376 Ilya Verbin <ilya.verbin@intel.com>
2377 Kirill Yukhin <kirill.yukhin@intel.com>
2378 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2380 * config/i386/sse.md
2381 (define_insn "avx_movshdup256<mask_name>"): Add masking.
2382 (define_insn "sse3_movshdup<mask_name>"): Ditto.
2383 (define_insn "avx_movsldup256<mask_name>"): Ditto.
2384 (define_insn "sse3_movsldup<mask_name>"): Ditto.
2385 (define_insn "vec_dupv2df<mask_name>"): Ditto.
2386 (define_insn "*vec_concatv2df"): Add EVEX version.
2388 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2389 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2390 Anna Tikhonova <anna.tikhonova@intel.com>
2391 Ilya Tocar <ilya.tocar@intel.com>
2392 Andrey Turetskiy <andrey.turetskiy@intel.com>
2393 Ilya Verbin <ilya.verbin@intel.com>
2394 Kirill Yukhin <kirill.yukhin@intel.com>
2395 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2397 * config/i386/sse.md
2398 (define_insn "vec_set<mode>_0"): Add EVEX version.
2400 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2401 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2402 Anna Tikhonova <anna.tikhonova@intel.com>
2403 Ilya Tocar <ilya.tocar@intel.com>
2404 Andrey Turetskiy <andrey.turetskiy@intel.com>
2405 Ilya Verbin <ilya.verbin@intel.com>
2406 Kirill Yukhin <kirill.yukhin@intel.com>
2407 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2409 * config/i386/sse.md
2411 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
2413 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
2414 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
2415 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
2416 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
2417 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
2418 (define_expand "sse2_cvtpd2ps_mask): New.
2419 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
2420 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
2422 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2423 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2424 Anna Tikhonova <anna.tikhonova@intel.com>
2425 Ilya Tocar <ilya.tocar@intel.com>
2426 Andrey Turetskiy <andrey.turetskiy@intel.com>
2427 Ilya Verbin <ilya.verbin@intel.com>
2428 Kirill Yukhin <kirill.yukhin@intel.com>
2429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2431 * config/i386/i386.c
2432 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
2433 (ufix_notruncv8dfv8si2_mask_round): ... this.
2434 * config/i386/sse.md
2435 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
2436 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
2437 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
2438 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
2439 (define_expand "sse2_cvtpd2dq"): Delete.
2440 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
2441 make 2nd operand const0 vector.
2442 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
2444 (define_mode_attr pd2udqsuff): New.
2446 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
2447 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
2448 (define_insn "*avx_cvttpd2dq256_2"): Delete.
2449 (define_expand "sse2_cvttpd2dq"): Ditto.
2450 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
2451 make 2nd operand const0 vector.
2453 2014-09-25 Jakub Jelinek <jakub@redhat.com>
2455 PR tree-optimization/63341
2456 * tree-vectorizer.h (vect_create_data_ref_ptr,
2457 vect_create_addr_base_for_vector_ref): Add another tree argument
2458 defaulting to NULL_TREE.
2459 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
2460 argument, pass it down to vect_create_addr_base_for_vector_ref.
2461 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
2462 add that to base_offset too if non-NULL.
2463 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
2464 for dr_explicit_realign_optimized set it to vector byte size
2465 - 1 instead of setting offset, pass byte_offset down to
2466 vect_create_data_ref_ptr.
2468 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
2470 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
2471 forgotten debug output; canonicalize querries more wtih LTO.
2473 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
2475 * cgraph.h (class ipa_polymorphic_call_context): Move here from
2476 ipa-utils.h; add stream_int and stream_out methods.
2477 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
2478 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
2479 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
2481 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2482 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2483 ipa_polymorphic_call_context::clear_speculation,
2484 ipa_polymorphic_call_context::clear_outer_type): Move here from
2486 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
2487 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2488 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2489 ipa_polymorphic_call_context::clear_speculation,
2490 ipa_polymorphic_call_context::clear_outer_type): Likewise.
2491 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
2493 (ipa_polymorphic_call_context::stream_out): New method.
2494 (ipa_polymorphic_call_context::stream_in): New method.
2495 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
2496 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
2498 (ipa_analyze_call_uses): Simplify.
2499 (update_indirect_edges_after_inlining): Do not care about outer_type.
2500 (ipa_write_indirect_edge_info): Update.
2501 (ipa_write_indirect_edge_info): Likewise.
2502 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
2503 (dump_edge_flags): Break out from ...
2504 (cgraph_node::dump): ... here; dump indirect edges.
2506 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
2508 * ipa-utils.h (polymorphic_call_context): Add
2509 metdhos dump, debug and clear_outer_type.
2510 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
2511 (ipa_polymorphic_call_context::clear_outer_type): New method.
2512 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
2513 * ipa-devirt.c (types_odr_comparable): New function.
2514 (types_must_be_same_for_odr): New function.
2515 (odr_subtypes_equivalent_p): Simplify.
2516 (possible_placement_new): Break out from ...
2517 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
2518 be more cuatious about returning false in cases the context may be
2519 valid in derived type or via placement new.
2520 (contains_type_p): Clear maybe_derived_type
2521 (ipa_polymorphic_call_context::dump): New method.
2522 (ipa_polymorphic_call_context::debug): New method.
2523 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
2524 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
2525 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
2526 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
2527 to suceed on all valid cases; remove confused sanity check.
2528 (dump_possible_polymorphic_call_targets): Simplify.
2530 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
2532 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
2533 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
2534 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
2535 varpool.c: Rename all instances of DECL_ABSTRACT to
2538 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2540 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
2541 special handling for stores whose SET_SRC is an UNSPEC (such as
2544 2014-09-24 Jiong Wang <jiong.wang@arm.com>
2546 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
2547 !REG_P (src) to release more instruction sink opportunities.
2549 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
2551 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
2552 move costs for 128-bit types.
2554 2014-09-24 Martin Jambor <mjambor@suse.cz>
2556 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
2557 when duplicating a PASS_THROUGH jump function when creating a
2560 2014-09-24 Marek Polacek <polacek@redhat.com>
2564 * asan.c (maybe_instrument_call): Add default case.
2565 * ipa-pure-const.c (special_builtin_state): Likewise.
2566 * predict.c (expr_expected_value_1): Likewise.
2567 * lto-streamer-out.c (write_symbol): Initialize variable.
2569 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2571 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
2573 (vmuld_laneq_f64): Likewise.
2574 (vmuls_lane_f32): Likewise.
2575 (vmuls_laneq_f32): Likewise.
2577 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
2580 * varpool.c (varpool_node::add): Pass decl attributes
2581 to lookup_attribute.
2583 2014-09-24 Jakub Jelinek <jakub@redhat.com>
2586 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
2588 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
2590 PR tree-optimization/63266
2591 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
2592 marker for unknown byte value.
2593 (MARKER_MASK): New macro.
2594 (MARKER_BYTE_UNKNOWN): New macro.
2595 (HEAD_MARKER): New macro.
2596 (do_shift_rotate): Mark bytes with unknown values due to sign
2597 extension when doing an arithmetic right shift. Replace hardcoded
2598 mask for marker by new MARKER_MASK macro.
2599 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
2600 numbers accordingly.
2602 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2603 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2604 Anna Tikhonova <anna.tikhonova@intel.com>
2605 Ilya Tocar <ilya.tocar@intel.com>
2606 Andrey Turetskiy <andrey.turetskiy@intel.com>
2607 Ilya Verbin <ilya.verbin@intel.com>
2608 Kirill Yukhin <kirill.yukhin@intel.com>
2609 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2611 * config/i386/sse.md
2613 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
2615 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
2616 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
2618 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2619 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2620 Anna Tikhonova <anna.tikhonova@intel.com>
2621 Ilya Tocar <ilya.tocar@intel.com>
2622 Andrey Turetskiy <andrey.turetskiy@intel.com>
2623 Ilya Verbin <ilya.verbin@intel.com>
2624 Kirill Yukhin <kirill.yukhin@intel.com>
2625 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2627 * config/i386/sse.md
2628 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
2629 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
2630 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
2631 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
2632 (define_expand "avx512vl_pshuflw_mask"): New.
2633 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
2634 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
2635 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
2636 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
2637 (define_expand "avx512vl_pshufhw_mask"): New.
2638 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
2640 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2641 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2642 Anna Tikhonova <anna.tikhonova@intel.com>
2643 Ilya Tocar <ilya.tocar@intel.com>
2644 Andrey Turetskiy <andrey.turetskiy@intel.com>
2645 Ilya Verbin <ilya.verbin@intel.com>
2646 Kirill Yukhin <kirill.yukhin@intel.com>
2647 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2649 * config/i386/i386.c
2650 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
2651 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
2652 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
2653 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
2654 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
2655 * config/i386/sse.md
2656 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
2658 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
2659 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
2661 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
2662 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
2663 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
2664 (define_expand "avx512vl_pshufd_mask"): New.
2665 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
2667 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2668 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2669 Anna Tikhonova <anna.tikhonova@intel.com>
2670 Ilya Tocar <ilya.tocar@intel.com>
2671 Andrey Turetskiy <andrey.turetskiy@intel.com>
2672 Ilya Verbin <ilya.verbin@intel.com>
2673 Kirill Yukhin <kirill.yukhin@intel.com>
2674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2676 * config/i386/i386.c
2677 (CODE_FOR_avx2_extracti128): Rename to ...
2678 (CODE_FOR_avx_vextractf128v4di): this.
2679 (CODE_FOR_avx2_inserti128): Rename to ...
2680 (CODE_FOR_avx_vinsertf128v4di): this.
2681 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
2682 CODE_FOR_avx_vextractf128v4di.
2683 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
2684 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
2685 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
2686 CODE_FOR_avx512vl_vinsertv8si.
2687 * config/i386/sse.md
2689 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
2690 AVX512_VEC mode iterator.
2692 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
2695 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
2696 AVX512_VEC_2 mode iterator.
2697 (define_insn "vec_set_lo_<mode><mask_name>"): New.
2698 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2699 (define_expand "avx512vl_vinsert<mode>"): Ditto.
2700 (define_insn "avx2_vec_set_lo_v4di"): Delete.
2701 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
2702 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
2703 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2704 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
2705 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2706 (define_expand "avx2_extracti128"): Delete.
2707 (define_expand "avx2_inserti128"): Ditto.
2709 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2710 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2711 Anna Tikhonova <anna.tikhonova@intel.com>
2712 Ilya Tocar <ilya.tocar@intel.com>
2713 Andrey Turetskiy <andrey.turetskiy@intel.com>
2714 Ilya Verbin <ilya.verbin@intel.com>
2715 Kirill Yukhin <kirill.yukhin@intel.com>
2716 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2718 * config/i386/sse.md
2719 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
2720 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
2721 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
2722 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
2723 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
2724 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
2725 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
2726 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
2727 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
2728 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
2729 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
2730 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
2731 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
2733 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
2735 PR rtl-optimization/63210
2736 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
2737 HARD_REGNO is not available for CONFLICT_A.
2739 2014-09-23 Andi Kleen <ak@linux.intel.com>
2741 * cgraph.h (symtab_node): Add no_reorder attribute.
2742 (symbol_table::output_asm_statements): Remove.
2743 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
2744 (cgraph_node::create_version_clone): Dito.
2745 (symbol_table::output_asm_statements): Remove.
2746 * trans-mem.c (ipa_tm_create_version_alias): Dito.
2747 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
2748 (output_in_order): Add no_reorder flag. Only handle no_reorder
2750 (symbol_table::compile): Add separate pass for no_reorder nodes.
2751 (process_common_attributes): Set no_reorder flag in symtab node.
2753 (process_function_and_variable_attributes): Pass symtab nodes to
2754 process_common_attributes.
2755 * doc/extend.texi (no_reorder): Document no_reorder attribute.
2756 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
2757 (lto_output_varpool_node): Dito.
2758 (input_overwrite_node): Dito.
2759 (input_varpool_node): Dito.
2760 * varpool.c (varpool_node::add): Set no_reorder attribute.
2761 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
2762 (symbol_table::output_variables): Dito.
2763 * symtab.c (symtab_node::dump_base): Print no_reorder.
2765 2014-09-23 Jiong Wang <jiong.wang@arm.com>
2767 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
2770 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
2772 * configure: Regenerate.
2774 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
2776 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
2777 when result_mode == shift_mode.
2779 2014-09-23 Kostya Serebryany <kcc@google.com>
2781 Update to match the changed asan API.
2782 * asan.c (asan_global_struct): Update the __asan_global definition
2783 to match the new API.
2784 (asan_add_global): Ditto.
2785 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
2788 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2790 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
2791 refine the constraints used on 32/64-bit floating point moves.
2793 (f64_vsx): Likewise.
2796 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
2797 (BOOL_REGS_OP1): Likewise.
2798 (BOOL_REGS_OP2): Likewise.
2799 (BOOL_REGS_UNARY): Likewise.
2800 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
2801 32/64-bit floating point moves. Do not use wa, instead use ww/ws
2802 for moves involving VSX registers. Do not use constraints that
2803 target VSX registers for decimal types.
2804 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
2805 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
2807 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
2809 * tree.h (int_bit_position): Turn into inline function;
2810 implement using wide int.
2811 * tree.c (int_bit_position): Remove.
2813 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
2816 * target-globals.c (target_globals::~target_globals): Fix location
2817 of ira_int destruction.
2819 2014-09-23 Renlin Li <renlin.li@arm.com>
2821 * config/aarch64/aarch64.md (return): New.
2822 (simple_return): Likewise.
2823 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
2824 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
2826 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
2828 * common/config/aarch64/aarch64-common.c:
2829 (default_options aarch_option_optimization_table):
2830 Default to -fsched-pressure.
2832 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
2834 * cfgcleanup.c (try_optimize_cfg): Do not remove label
2835 with LABEL_PRESERVE_P flag set.
2837 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
2838 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2839 Anna Tikhonova <anna.tikhonova@intel.com>
2840 Ilya Tocar <ilya.tocar@intel.com>
2841 Andrey Turetskiy <andrey.turetskiy@intel.com>
2842 Ilya Verbin <ilya.verbin@intel.com>
2843 Kirill Yukhin <kirill.yukhin@intel.com>
2844 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2846 * config/i386/sse.md
2847 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
2848 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
2849 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
2850 (define_insn "sse2_shufpd_v2df_mask"): New.
2852 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
2853 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2854 Anna Tikhonova <anna.tikhonova@intel.com>
2855 Ilya Tocar <ilya.tocar@intel.com>
2856 Andrey Turetskiy <andrey.turetskiy@intel.com>
2857 Ilya Verbin <ilya.verbin@intel.com>
2858 Kirill Yukhin <kirill.yukhin@intel.com>
2859 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2861 * config/i386/sse.md
2862 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
2863 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
2864 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
2865 (define_insn "sse_shufps_v4sf_mask"): New.
2867 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
2868 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2869 Anna Tikhonova <anna.tikhonova@intel.com>
2870 Ilya Tocar <ilya.tocar@intel.com>
2871 Andrey Turetskiy <andrey.turetskiy@intel.com>
2872 Ilya Verbin <ilya.verbin@intel.com>
2873 Kirill Yukhin <kirill.yukhin@intel.com>
2874 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2876 * config/i386/sse.md
2877 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
2878 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
2879 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
2880 (define_insn "unpcklps128_mask"): New.
2882 2014-09-23 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
2892 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
2893 (define_insn "avx512vl_unpckhpd128_mask"): New.
2894 (define_expand "avx_movddup256<mask_name>"): Add masking.
2895 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
2896 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
2897 (define_insn "avx512vl_unpcklpd128_mask"): New.
2899 2014-09-22 Joseph Myers <joseph@codesourcery.com>
2901 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2902 * doc/tm.texi: Regenerate.
2903 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
2904 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2905 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2907 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2908 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2909 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2910 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2911 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2913 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2914 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2915 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2916 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2917 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2918 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2919 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2920 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2921 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2922 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2923 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2926 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
2928 * tree-ssa-ccp.c (prop_value_d): Rename to ...
2929 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
2930 * ipa-prop.c (struct type_change_info): Rename to ...
2931 (prop_type_change_info): ... this; update uses.
2932 * ggc-page.c (globals): Rename to ...
2933 (static struct ggc_globals): ... this; update uses.
2934 * tree-ssa-loop-im.c (mem_ref): Rename to ...
2935 (im_mem_ref): ... this; update uses.
2936 * ggc-common.c (loc_descriptor): Rename to ...
2937 (ggc_loc_descriptor): ... this; update uses.
2938 * lra-eliminations.c (elim_table): Rename to ...
2939 (lra_elim_table): ... this; update uses.
2940 * bitmap.c (output_info): Rename to ...
2941 (bitmap_output_info): ... this; update uses.
2942 * gcse.c (expr): Rename to ...
2943 (gcse_expr) ... this; update uses.
2944 (occr): Rename to ...
2945 (gcse_occr): .. this; update uses.
2946 * tree-ssa-copy.c (prop_value_d): Rename to ...
2947 (prop_value_t): ... this.
2948 * predict.c (block_info_def): Rename to ...
2949 (block_info): ... this; update uses.
2950 (edge_info_def): Rename to ...
2951 (edge_info): ... this; update uses.
2952 * profile.c (bb_info): Rename to ...
2953 (bb_profile_info): ... this; update uses.
2954 * alloc-pool.c (output_info): Rename to ...
2955 (pool_output_info): ... this; update uses.
2956 * ipa-cp.c (topo_info): Rename to ..
2957 (ipa_topo_info): ... this; update uses.
2958 * tree-nrv.c (nrv_data): Rename to ...
2959 (nrv_data_t): ... this; update uses.
2960 * ipa-split.c (bb_info): Rename to ...
2961 (split_bb_info): ... this one.
2962 * profile.h (edge_info): Rename to ...
2963 (edge_profile_info): ... this one; update uses.
2964 * dse.c (bb_info): Rename to ...
2965 (dse_bb_info): ... this one; update uses.
2966 * cprop.c (occr): Rename to ...
2967 (cprop_occr): ... this one; update uses.
2968 (expr): Rename to ...
2969 (cprop_expr): ... this one; update uses.
2971 2014-09-22 Jason Merrill <jason@redhat.com>
2973 * Makefile.in (check-parallel-%): Add @.
2975 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
2977 * config/aarch64/geniterators.sh: New.
2978 * config/aarch64/iterators.md (VDQF_DF): New.
2979 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
2980 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
2982 2014-09-22 Peter A. Bigot <pab@pabigot.com>
2984 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
2985 -lnosys when -msim absent.
2987 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
2989 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
2991 2014-09-22 Richard Biener <rguenther@suse.de>
2993 * gimplify.c (gimplify_init_constructor): Do not leave
2994 non-GIMPLE vector constructors around.
2995 * tree-cfg.c (verify_gimple_assign_single): Verify that
2996 CONSTRUCTORs have gimple elements.
2998 2014-09-22 Jakub Jelinek <jakub@redhat.com>
3001 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3002 insert a debug source bind stmt setting DEBUG_EXPR_DECL
3003 instead of a normal gimple assignment stmt.
3005 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3007 * config/bfin/bfin.md: Fix use of constraints in define_split.
3009 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3011 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3012 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3014 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3016 * hard-reg-set.h: Include hash-table.h.
3017 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3019 * target-globals.c (target_globals::~target_globals): Call
3020 hard_regs->finalize.
3021 * rtl.h (subreg_shape): New structure.
3022 (shape_of_subreg): New function.
3023 (simplifiable_subregs): Declare.
3024 * reginfo.c (simplifiable_subreg): New structure.
3025 (simplifiable_subregs_hasher): Likewise.
3026 (simplifiable_subregs): New function.
3027 (invalid_mode_changes): Delete.
3028 (alid_mode_changes, valid_mode_changes_obstack): New variables.
3029 (record_subregs_of_mode): Remove subregs_of_mode parameter.
3030 Record valid mode changes in valid_mode_changes.
3031 (find_subregs_of_mode): Remove subregs_of_mode parameter.
3032 Update calls to record_subregs_of_mode.
3033 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3034 handling. Initialize new variables. Update call to
3035 find_subregs_of_mode.
3036 (invalid_mode_change_p): Check new variables instead of
3037 invalid_mode_changes.
3038 (finish_subregs_of_mode): Finalize new variables instead of
3039 invalid_mode_changes.
3040 (target_hard_regs::finalize): New function.
3041 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3042 even when CLASS_CANNOT_CHANGE_MODE is undefined.
3044 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3046 * combine.c (subst): Use simplify_subreg_regno rather than
3047 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3049 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3051 * rtl.h (subreg_info): Expand commentary
3052 * rtlanal.c (subreg_get_info): Likewise.
3054 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3056 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3057 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3058 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3060 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
3062 * config/arm/arm.c: #include "tm-constrs.h"
3063 (thumb1_size_rtx_costs): Adjust rtx costs.
3065 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
3067 * configure.ac (target_header_dir): Move block defining
3068 this to before the block setting inhibit_libc.
3069 (inhibit_libc): When considering $with_headers, just
3070 check it it's explicitly "no". If not, also check if
3071 $target_header_dir/stdio.h is present. If not, set
3073 * configure: Regenerate.
3075 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
3077 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3079 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3081 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
3082 insn for divides by integer powers of two.
3083 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3084 (mod<mode>3): Fix formatting.
3085 (three anonymous define_insn and two define_split): Delete.
3087 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3089 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3090 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3091 (floatdisf2_internal2): Ditto.
3092 (ashrdi3_no_power): Ditto. Fix formatting.
3094 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3096 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3097 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3100 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3102 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3103 constant, use addsi3 directly.
3104 (three anonymous define_insn, two define_split): Delete.
3105 (sub<mode>3): Move. Do not allow constant second operand.
3106 Generate different insn for constant first operand.
3107 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3108 (subf<mode>3_imm): New.
3109 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3110 (*plus_ltu<mode>): Only handle registers.
3111 (*plus_ltu<mode>_1): New. Handle integer third operand.
3112 (*plus_gtu<mode>): Only handle registers.
3113 (*plus_gtu<mode>_1): New. Handle integer third operand.
3115 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3117 * config/rs6000/rs6000.md (iorxor): New code_iterator.
3118 (iorxor): New code_attr.
3119 (IORXOR): New code_attr.
3120 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3121 (ior<mode>3, xor<mode>3): Delete.
3122 (<iorxor><mode>3): New.
3123 (splitter for "big" integer ior, xor): New.
3124 (*bool<mode>3): Move. Also handle AND.
3125 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3126 (splitter for "big" integer ior, xor): Delete.
3128 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3130 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3131 (two anonymous define_insn and two define_split): Delete.
3132 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3134 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3136 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3137 (two anonymous define_insn and two define_split): Delete.
3138 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3140 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3142 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3144 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3146 * config/rs6000/predicates.md (ca_operand): Allow subregs.
3147 (input_operand): Do not allow ca_operand.
3148 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3149 carry bit, allow SImode and Pmode.
3150 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3152 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
3154 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3155 clobbered registers using clobber_reg. Remove UNSPEC decoration.
3156 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3157 (*call_rex64_ms_sysv): Remove.
3158 (*call_value_rex64_ms_sysv): Ditto.
3159 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3161 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
3163 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
3166 2014-09-20 Andreas Schwab <schwab@suse.de>
3168 * config/ia64/ia64.md: Remove constraints from define_split
3171 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3173 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3174 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3175 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3176 (get_dynamic_type): Remove.
3177 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3178 (clear_speculation): Bring to ipa-deivrt.h
3179 (get_class_context): Rename to ...
3180 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3181 (contains_type_p): Update.
3182 (get_dynamic_type): Rename to ...
3183 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3184 (possible_polymorphic_call_targets): UPdate.
3185 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3186 * ipa-prop.c (ipa_analyze_call_uses): Update.
3188 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3190 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
3191 privatize dynamic TLS variables.
3193 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3195 * diagnostic.c (warning_n): New function.
3196 * diagnostic-core.h (warning_n): Declare.
3197 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
3198 output dynamic counts when available.
3200 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3202 PR tree-optimization/63255
3203 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
3204 issue in setting body_removed flag.
3206 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3209 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
3210 that visibility change is possible
3211 (handle_weakref_attribute): Likewise.
3212 * cgraph.h (symtab_node): Add method get_create and
3213 field refuse_visibility_changes.
3214 (symtab_node::get_create): New method.
3215 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
3216 * varasm.c (mark_weak): Verify that visibility change is
3219 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3221 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
3222 for base_reg_operand to be common between LO_SUM and PLUS.
3223 (fusion_gpr_mem_combo): New predicate to match a fused address
3224 that combines the addis and memory offset address.
3226 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
3228 (emit_fusion_gpr_load): Likewise.
3230 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
3231 signature to pass each argument separately, rather than
3232 using an operands array. Rewrite the insns found by peephole2 to
3233 be a single insn, rather than hoping the insns will still be
3234 together when the peephole pass is done. Drop being called via a
3236 (emit_fusion_gpr_load): Change calling signature to be called from
3237 the fusion_gpr_load_<mode> insns with a combined memory address
3238 instead of the peephole pass passing the addis and offset
3241 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
3243 (power8 fusion peephole): Drop support for doing power8 via a
3244 normal peephole that was created by the peephole2 pass.
3245 (power8 fusion peephole2): Create a new insn with the fused
3246 address, so that the fused operation is kept together after
3247 register allocation is done.
3248 (fusion_gpr_load_<mode>): Likewise.
3250 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3253 * tree.c (need_assembler_name_p): Do not mangle variadic types.
3255 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
3257 * recog.c (scratch_operand): Do not simply allow all hard registers:
3258 only allow those that are allocatable.
3260 2014-09-19 Felix Yang <felix.yang@huawei.com>
3262 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
3263 comments and fix spacing to conform to coding style.
3265 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3267 * genrecog.c (validate_pattern): Allow empty constraints in
3270 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
3272 * dwarf2out.c (decl_ultimate_origin): Update comment.
3273 * tree.c (block_ultimate_origin): Same.
3275 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3277 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
3278 Update GCC version name to GCC 5.
3279 (rs6000_function_arg_boundary): Likewise.
3280 (rs6000_function_arg): Likewise.
3282 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3284 * config/sh/sh.md: Fix use of constraints in define_split.
3286 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
3289 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
3291 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3293 * doc/md.texi (Modifiers): Consistently use "read/write"
3294 nomenclature rather than "input/output".
3295 * genrecog.c (constraints_supported_in_insn_p): New.
3296 (validate_pattern): If needed, also check constraints on
3297 MATCH_SCRATCH operands.
3298 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
3299 operands with no '=' or '+' modifier.
3301 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3303 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
3304 scratch register as written.
3306 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3308 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
3311 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3313 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
3316 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3319 * config/s390/s390.c (s390_emit_epilogue): When doing the return
3320 address load optimization force s390_optimize_prologue to leave it
3321 that way. Only do the optimization if we already decided to push
3322 r14 into a stack slot.
3324 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
3326 * asan.c (build_check_stmt): Alignment arg was added.
3327 (asan_expand_check_ifn): Optimization for alignment >= 8.
3329 2014-09-19 Olivier Hainque <hainque@adacore.com>
3331 * config/i386/vxworksae.h: Remove obsolete definitions.
3332 (STACK_CHECK_PROTECT): Define.
3333 * config/i386/vx-common.h: Remove. Merge contents within
3334 config/i386/vxworks.h.
3335 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
3338 2014-09-19 Olivier Hainque <hainque@adacore.com>
3340 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
3341 * config/rs6000/t-vxworksmils: New file.
3342 * config/rs6000/vxworksmils.h: New file.
3344 2014-09-19 Olivier Hainque <hainque@adacore.com>
3346 * varasm.c (default_section_type_flags): Flag .persistent.bss
3347 sections as SECTION_BSS.
3349 2014-09-19 Nick Clifton <nickc@redhat.com>
3351 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
3352 pop'ed registers so that DCE does not eliminate them.
3354 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
3357 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
3359 2014-09-18 Joseph Myers <joseph@codesourcery.com>
3361 * system.h (LIBGCC2_TF_CEXT): Poison.
3362 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
3363 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
3364 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
3365 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
3366 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
3367 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
3368 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
3369 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
3370 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
3372 2014-09-19 Kito Cheng <kito@0xlab.org>
3374 * except.h: Fix header guard.
3375 * addresses.h: Add missing header guard.
3376 * cfghooks.h: Likewise.
3377 * collect-utils.h: Likewise.
3378 * collect2-aix.h: Likewise.
3379 * conditions.h: Likewise.
3380 * cselib.h: Likewise.
3381 * dwarf2asm.h: Likewise.
3382 * graphds.h: Likewise.
3383 * graphite-scop-detection.h: Likewise.
3384 * gsyms.h: Likewise.
3385 * hw-doloop.h: Likewise.
3386 * incpath.h: Likewise.
3387 * ipa-inline.h: Likewise.
3388 * ipa-ref.h: Likewise.
3389 * ira-int.h: Likewise.
3391 * lra-int.h: Likewise.
3393 * lto-section-names.h: Likewise.
3394 * read-md.h: Likewise.
3395 * reload.h: Likewise.
3396 * rtl-error.h: Likewise.
3397 * sdbout.h: Likewise.
3398 * targhooks.h: Likewise.
3399 * tree-affine.h: Likewise.
3400 * xcoff.h: Likewise.
3401 * xcoffout.h: Likewise.
3403 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
3406 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
3409 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
3412 * lra.c (lra): Call recog_init.
3414 2014-09-18 Jakub Jelinek <jakub@redhat.com>
3417 * asan.c (transform_statements): Don't instrument clobber statements.
3419 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3421 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
3422 to neon_load1_1reg<q>.
3424 2014-09-17 Jakub Jelinek <jakub@redhat.com>
3427 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
3428 if there are only debug stmts after the noreturn call, instead
3429 remove the debug stmts.
3431 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
3433 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
3434 (odr_types_equivalent_p): Use pair hash.
3435 (odr_subtypes_equivalent_p): Likewise, do structural compare
3436 on ODR types that may be mismatched.
3437 (warn_odr): Support warning when only one field is given.
3438 (odr_types_equivalent_p): Strenghten comparsions made;
3440 (add_type_duplicate): Update VISITED hash set.
3442 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
3444 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
3445 Enable selection of 'posix' or no thread model.
3447 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
3449 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
3450 when architecture is older than ARMv7.
3452 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
3455 * config/pa/pa.c (pa_function_value): Directly handle aggregates
3456 that fit exactly in a word or double word.
3458 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
3460 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
3463 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
3464 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3465 Anna Tikhonova <anna.tikhonova@intel.com>
3466 Ilya Tocar <ilya.tocar@intel.com>
3467 Andrey Turetskiy <andrey.turetskiy@intel.com>
3468 Ilya Verbin <ilya.verbin@intel.com>
3469 Kirill Yukhin <kirill.yukhin@intel.com>
3470 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3472 * config/i386/i386.c
3473 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
3474 * config/i386/sse.md
3475 (define_mode_iterator VI48F_256): New.
3476 (define_mode_attr extract_type): Ditto.
3477 (define_mode_attr extract_suf): Ditto.
3478 (define_mode_iterator AVX512_VEC): Ditto.
3480 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
3482 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
3484 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
3486 (define_mode_attr extract_type_2): Ditto.
3487 (define_mode_attr extract_suf_2): Ditto.
3488 (define_mode_iterator AVX512_VEC_2): Ditto.
3490 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
3491 AVX512_VEC_2 mode iterator.
3492 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
3493 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
3494 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3495 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3496 (define_split for V16FI mode): Ditto.
3497 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3498 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3499 (define_split for VI8F_256 mode): Ditto.
3500 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
3501 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3502 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3503 (define_split for VI4F_256 mode): Ditto.
3504 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
3505 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
3506 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
3507 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
3508 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
3509 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
3510 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
3511 Update `type' attribute, remove explicit `memory' attribute calculation.
3513 2014-09-16 Kito Cheng <kito@0xlab.org>
3515 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
3516 ira_spilled_reg_stack_slots_num if using lra.
3517 (do_reload): Remove release ira_spilled_reg_stack_slots part.
3518 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
3519 make sure not using lra.
3520 (ira_reuse_stack_slot): Likewise.
3521 (ira_mark_new_stack_slot): Likewise.
3523 2014-09-15 Andi Kleen <ak@linux.intel.com>
3525 * function.c (allocate_struct_function): Force
3526 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
3527 profiling is disabled.
3529 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
3531 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
3532 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
3533 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
3534 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
3535 macro with statically checked member functions.
3536 * rtl.h (rtx_insn::deleted): New method.
3537 (rtx_insn::set_deleted): Likewise.
3538 (rtx_insn::set_undeleted): Likewise.
3539 (INSN_DELETED_P): Remove.
3541 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
3543 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
3544 result of emit_jump_insn_before to a new variable.
3545 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
3546 (mark_jump_label_1): Likewise.
3547 (mark_jump_label_asm): Likewise.
3548 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
3549 * rtl.h (mark_jump_label): Adjust.
3551 2014-09-15 Jakub Jelinek <jakub@redhat.com>
3553 * Makefile.in (dg_target_exps): Remove.
3554 (check_gcc_parallelize): Change to just an upper bound number.
3555 (check-%-subtargets): Always print the non-parallelized goals.
3556 (check_p_vars, check_p_comma, check_p_subwork): Remove.
3557 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
3558 check_p_numbers3, check_p_numbers4, check_p_numbers5,
3559 check_p_numbers6): New variables.
3560 (check_p_numbers): Set to sequence from 1 to 9999.
3561 (check_p_subdirs): Set to sequence from 1 to minimum of
3562 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
3564 (check-%, check-parallel-%): Rewritten so that for parallelized
3565 testing each job runs all the *.exp files, with
3566 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
3568 2014-09-15 David Malcolm <dmalcolm@redhat.com>
3570 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
3572 (arc_sets_cc_p): Likewise.
3573 * config/arc/arc.c (arc_print_operand): Use methods of
3574 "final_sequence" for clarity, and to enable strengthening of
3575 locals "jump" and "delay" from rtx to rtx_insn *.
3576 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
3577 rtx_insn *; use method of rtx_sequence for typesafety.
3578 (arc_get_insn_variants): Use insn method of rtx_sequence for
3580 (arc_pad_return): Likewise.
3581 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
3582 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
3583 dyn_cast to rtx_sequence *, using insn method for typesafety.
3584 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
3585 rtx_sequence * and use insn method when invoking get_attr_length.
3586 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
3587 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
3588 rtx_sequence *, introducing a local "seq", using its insn method
3589 from typesafety and clarity.
3590 (add_sched_insns_for_speculation): Strengthen local "next" from
3592 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
3593 (predicate_insn): Likewise.
3594 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
3596 * config/cris/cris.c (cris_notice_update_cc): Likewise.
3597 * config/epiphany/epiphany-protos.h
3598 (extern void epiphany_insert_mode_switch_use): Likewise for param
3600 (get_attr_sched_use_fpu): Likewise for param.
3601 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
3602 Likewise for param "insn".
3603 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
3604 param "insn" of "target_insert_mode_switch_use" callback.
3605 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
3606 (frv_issues_to_branch_unit_p): Likewise.
3607 (frv_pack_insn_p): Likewise.
3608 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
3609 const rtx * (i.e. mutable rtx_def * const *) to
3611 * config/i386/i386-protos.h (standard_sse_constant_opcode):
3612 Strengthen first param from rtx to rtx_insn *.
3613 (output_fix_trunc): Likewise.
3614 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
3615 (output_fix_trunc): Likewise.
3616 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
3618 (min_insn_size): Likewise for param "insn".
3619 (get_mem_group): Likewise.
3621 (get_insn_path): Likewise.
3622 (get_insn_group): Likewise.
3623 (count_num_restricted): Likewise.
3624 (fits_dispatch_window): Likewise.
3625 (add_insn_window): Likewise.
3626 (add_to_dispatch_window): Likewise.
3627 (debug_insn_dispatch_info_file): Likewise.
3628 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
3630 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
3631 "cmp" and local "prev".
3632 (m32c_output_compare): Likewise for param "insn".
3633 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
3634 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
3635 (define_predicate "large_insn_p"): Likewise.
3636 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
3637 param from rtx to rtx_insn *.
3638 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
3639 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
3640 (m68k_sched_attr_size): Likewise.
3641 (sched_get_opxy_mem_type): Likewise for param "insn".
3642 (m68k_sched_attr_op_mem): Likewise.
3643 (sched_mem_operand_p): Likewise.
3644 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
3645 * config/mep/mep.c (mep_multi_slot): Likewise.
3646 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
3648 (mips_sync_loop_insns): Likewise.
3649 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
3650 method of "final_sequence" for typesafety.
3651 (mips_process_sync_loop): Strengthen param "insn" from rtx to
3653 (mips_output_sync_loop): Likewise.
3654 (mips_sync_loop_insns): Likewise.
3655 (mips_74k_agen_init): Likewise.
3656 (mips_sched_init): Use NULL rather than NULL_RTX when working with
3658 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
3659 Strengthen param "insn" from rtx to rtx_insn *.
3660 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
3662 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
3664 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
3665 "insn". Use method of rtx_sequence for typesafety.
3666 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
3668 (branch_needs_nop_p): Likewise.
3669 (use_skip_p): Likewise.
3670 (pa_insn_refs_are_delayed): Likewise.
3671 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
3672 for locals "insn", "ninsn".
3673 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
3675 (is_cracked_insn): Likewise.
3676 (is_branch_slot_insn): Likewise.
3677 (is_nonpipeline_insn): Likewise.
3678 (insn_terminates_group_p): Likewise.
3679 (insn_must_be_first_in_group): Likewise.
3680 (insn_must_be_last_in_group): Likewise.
3681 (force_new_group): Likewise for param "next_insn".
3682 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
3684 (s390_sched_score): Likewise.
3685 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
3686 (rtx sfunc_uses_reg): Likewise for sole param.
3687 * config/sh/sh.c (sh_print_operand): Use insn method of
3688 final_sequence for typesafety.
3689 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
3690 Use insn method of final_sequence for typesafety.
3691 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
3692 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
3694 (eligible_for_return_delay): Likewise.
3695 (eligible_for_sibcall_delay): Likewise.
3696 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
3697 (eligible_for_return_delay): Likewise.
3698 (eligible_for_sibcall_delay): Likewise.
3699 * config/stormy16/stormy16-protos.h
3700 (xstormy16_output_cbranch_hi): Likewise for final param.
3701 (xstormy16_output_cbranch_si): Likewise.
3702 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
3703 (xstormy16_output_cbranch_si): Likewise.
3704 * config/v850/v850-protos.h (notice_update_cc): Likewise.
3705 * config/v850/v850.c (notice_update_cc): Likewise.
3707 * final.c (get_attr_length_1): Strengthen param "insn" and param
3708 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
3709 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
3710 (get_attr_min_length): Likewise.
3711 (shorten_branches): Likewise for signature of locals "length_fun"
3712 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
3713 from a checked cast and use its methods for clarity and to enable
3714 strengthening local "inner_insn" from rtx to rtx_insn *.
3715 * genattr.c (gen_attr): When writing out the prototypes of the
3716 various generated "get_attr_" functions, strengthen the params of
3717 the non-const functions from rtx to rtx_insn *.
3718 Similarly, strengthen the params of insn_default_length,
3719 insn_min_length, insn_variable_length_p, insn_current_length.
3720 (main): Similarly, strengthen the param of num_delay_slots,
3721 internal_dfa_insn_code, insn_default_latency, bypass_p,
3722 insn_latency, min_issue_delay, print_reservation,
3723 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
3724 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
3725 to hook_int_rtx_insn_unreachable.
3726 * genattrtab.c (write_attr_get): When writing out the generated
3727 "get_attr_" functions, strengthen the param "insn" from rtx to
3728 rtx_insn *, eliminating a checked cast.
3729 (make_automaton_attrs): When writing out prototypes of
3730 "internal_dfa_insn_code_", "insn_default_latency_" functions
3731 and the "internal_dfa_insn_code" and "insn_default_latency"
3732 callbacks, strengthen their params from rtx to rtx_insn *
3733 * genautomata.c (output_internal_insn_code_evaluation): When
3734 writing out code, add a checked cast from rtx to rtx_insn * when
3735 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
3736 (output_dfa_insn_code_func): Strengthen param of generated
3737 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
3738 (output_trans_func): Likewise for generated function
3740 (output_internal_insn_latency_func): When writing out generated
3741 function "internal_insn_latency", rename params from "insn" and
3742 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
3743 locals "insn" and "insn2" as rtx_insn * with checked casts once
3744 we've proven that we're not dealing with const0_rtx.
3745 (output_insn_latency_func): Strengthen param of generated
3746 function "insn_latency" from rtx to rtx_insn *.
3747 (output_print_reservation_func): Likewise for generated function
3748 "print_reservation".
3749 (output_insn_has_dfa_reservation_p): Likewise for generated
3750 function "insn_has_dfa_reservation_p".
3751 * hooks.c (hook_int_rtx_unreachable): Rename to...
3752 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
3753 from rtx to rtx_insn *.
3754 * hooks.h (hook_int_rtx_unreachable): Likewise.
3755 (extern int hook_int_rtx_insn_unreachable): Likewise.
3756 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
3757 (get_attr_min_length): Likewise.
3758 * recog.c (get_enabled_alternatives): Likewise.
3759 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
3760 * reorg.c (find_end_label): Introduce local rtx "pat" and
3761 strengthen local "insn" from rtx to rtx_insn *.
3762 (redundant_insn): Use insn method of "seq" rather than element for
3763 typesafety; strengthen local "control" from rtx to rtx_insn *.
3764 * resource.c (mark_referenced_resources): Add checked cast to
3765 rtx_insn * within INSN/JUMP_INSN case.
3766 (mark_set_resources): Likewise.
3767 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
3770 2014-09-15 David Malcolm <dmalcolm@redhat.com>
3772 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
3773 param "label" from rtx to rtx_insn *.
3774 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
3776 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
3777 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
3778 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
3779 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
3780 * final.c (default_label_align_after_barrier_max_skip): Strengthen
3781 param from rtx to rtx_insn *.
3782 (default_loop_align_max_skip): Likewise.
3783 (default_label_align_max_skip): Likewise.
3784 (default_jump_align_max_skip): Likewise.
3785 * target.def (label_align_after_barrier_max_skip): Likewise.
3786 (loop_align_max_skip): Likewise.
3787 (label_align_max_skip): Likewise.
3788 (jump_align_max_skip): Likewise.
3789 * targhooks.h (default_label_align_after_barrier_max_skip):
3791 (default_loop_align_max_skip): Likewise.
3792 (default_label_align_max_skip): Likewise.
3793 (default_jump_align_max_skip): Likewise.
3795 2014-09-15 David Malcolm <dmalcolm@redhat.com>
3797 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
3798 from const_rtx to const rtx_insn *. Update union members from rtx
3800 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
3801 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
3802 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
3803 strengthen both params from const_rtx to const rtx_insn *.
3804 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
3805 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
3806 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
3808 * target.def (can_follow_jump): Strengthen both params from
3809 const_rtx to const rtx_insn *, and update default implementation
3810 from hook_bool_const_rtx_const_rtx_true to
3811 hook_bool_const_rtx_insn_const_rtx_insn_true.
3813 2014-09-15 David Malcolm <dmalcolm@redhat.com>
3815 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
3816 "insn" from rtx to rtx_insn *.
3817 * sched-int.h (deps_start_bb): Likewise for 2nd param.
3819 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
3820 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3821 Anna Tikhonova <anna.tikhonova@intel.com>
3822 Ilya Tocar <ilya.tocar@intel.com>
3823 Andrey Turetskiy <andrey.turetskiy@intel.com>
3824 Ilya Verbin <ilya.verbin@intel.com>
3825 Kirill Yukhin <kirill.yukhin@intel.com>
3826 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3828 * config/i386/sse.md
3829 (define_insn "vcvtph2ps<mask_name>"): Add masking.
3830 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
3831 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
3832 (define_expand "vcvtps2ph_mask"): New.
3833 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
3834 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
3835 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
3837 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
3838 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3839 Anna Tikhonova <anna.tikhonova@intel.com>
3840 Ilya Tocar <ilya.tocar@intel.com>
3841 Andrey Turetskiy <andrey.turetskiy@intel.com>
3842 Ilya Verbin <ilya.verbin@intel.com>
3843 Kirill Yukhin <kirill.yukhin@intel.com>
3844 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3846 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
3848 (define_mode_iterator VI24_AVX512BW_1): Ditto.
3849 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
3850 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
3851 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
3852 also for TARGET_AVX512VL.
3853 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
3855 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
3857 * doc/install.texi (Options specification): add
3858 --disable-libsanitizer item.
3860 2014-09-14 James Clarke <jrtc27@jrtc27.com>
3861 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3864 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
3866 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
3867 kernel version check to avoid incrementing it after every major OS X
3869 (darwin_default_min_version): Avoid static memory buffer.
3871 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
3873 * tree.c (need_assembler_name_p): Store C++ type mangling only
3876 2014-09-13 Marek Polacek <polacek@redhat.com>
3878 * tree.c (protected_set_expr_location): Don't check whether T is
3881 2014-09-12 DJ Delorie <dj@redhat.com>
3883 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
3884 (extend_and_shift1_hipsi2): Likewise.
3885 (extend_and_shift2_hipsi2): Likewise.
3887 2014-09-12 David Malcolm <dmalcolm@redhat.com>
3889 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
3890 with NULL when dealing with an insn.
3891 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
3892 from rtx to rtx_insn *.
3893 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
3894 const_rtx to const rtx_insn *.
3895 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
3897 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
3899 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
3902 2014-09-12 Joseph Myers <joseph@codesourcery.com>
3904 * target.def (libgcc_floating_mode_supported_p): New hook.
3905 * targhooks.c (default_libgcc_floating_mode_supported_p): New
3907 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
3908 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
3909 (LIBGCC2_HAS_TF_MODE): Remove.
3910 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
3911 * doc/tm.texi: Regenerate.
3912 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
3914 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
3915 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
3916 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
3917 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
3918 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3919 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
3920 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
3921 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
3922 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
3923 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
3925 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3926 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3927 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3928 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3929 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3930 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3931 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3932 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
3933 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
3934 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
3935 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3936 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
3937 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
3938 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
3940 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
3942 (ia64_libgcc_floating_mode_supported_p): New function.
3943 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
3944 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
3945 (IA64_NO_LIBGCC_TFMODE): Define.
3946 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
3947 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
3949 (pdp11_scalar_mode_supported_p): New function.
3950 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
3951 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
3953 2014-09-12 Richard Biener <rguenther@suse.de>
3956 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
3958 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
3960 * tree.c (integer_each_onep): New function.
3961 * tree.h (integer_each_onep): Declare it.
3962 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
3963 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
3964 (X & 1) == 0 for vector and complex.
3966 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
3968 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
3970 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
3971 cost to spilling from integer to FP registers.
3973 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
3975 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
3977 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
3978 are now handled correctly.
3980 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
3982 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
3983 handling of CALLER_SAVE_REGS and POINTER_REGS.
3985 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
3987 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
3988 the number of hard registers.
3990 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
3991 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3992 Anna Tikhonova <anna.tikhonova@intel.com>
3993 Ilya Tocar <ilya.tocar@intel.com>
3994 Andrey Turetskiy <andrey.turetskiy@intel.com>
3995 Ilya Verbin <ilya.verbin@intel.com>
3996 Kirill Yukhin <kirill.yukhin@intel.com>
3997 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3999 * config/i386/sse.md
4000 (define_mode_iterator VI48_AVX512VL): New.
4001 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4002 "avx512f_vternlog<mode>_maskz" and update mode iterator.
4003 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4004 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4005 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4006 "avx512f_vternlog<mode>_mask" and update mode iterator.
4007 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4008 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4010 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4011 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4012 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4013 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4014 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4015 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4017 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4018 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4019 Anna Tikhonova <anna.tikhonova@intel.com>
4020 Ilya Tocar <ilya.tocar@intel.com>
4021 Andrey Turetskiy <andrey.turetskiy@intel.com>
4022 Ilya Verbin <ilya.verbin@intel.com>
4023 Kirill Yukhin <kirill.yukhin@intel.com>
4024 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4026 * config/i386/sse.md (VI128_256): Delete.
4027 (define_mode_iterator VI124_256): New.
4028 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4029 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4030 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4031 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4032 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4033 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4034 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4035 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4037 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4038 in presence of AVX-512.
4040 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4041 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4042 Anna Tikhonova <anna.tikhonova@intel.com>
4043 Ilya Tocar <ilya.tocar@intel.com>
4044 Andrey Turetskiy <andrey.turetskiy@intel.com>
4045 Ilya Verbin <ilya.verbin@intel.com>
4046 Kirill Yukhin <kirill.yukhin@intel.com>
4047 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4049 * config/i386/sse.md
4050 (define_expand "<avx512>_gathersi<mode>"): Rename from
4051 "avx512f_gathersi<mode>".
4052 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4053 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4054 (define_expand "<avx512>_gatherdi<mode>"): Rename from
4055 "avx512f_gatherdi<mode>".
4056 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4057 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4059 (define_expand "<avx512>_scattersi<mode>"): Rename from
4060 "avx512f_scattersi<mode>".
4061 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4062 (define_expand "<avx512>_scatterdi<mode>"): Rename from
4063 "avx512f_scatterdi<mode>".
4064 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4066 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
4068 * ira.h (ira_finish_once): Delete.
4069 * ira-int.h (target_ira_int::~target_ira_int): Declare.
4070 (target_ira_int::free_ira_costs): Likewise.
4071 (target_ira_int::free_register_move_costs): Likewise.
4072 (ira_finish_costs_once): Delete.
4073 * ira.c (free_register_move_costs): Replace with...
4074 (target_ira_int::free_register_move_costs): ...this new function.
4075 (target_ira_int::~target_ira_int): Define.
4076 (ira_init): Call free_register_move_costs as a member function rather
4077 than a global function.
4078 (ira_finish_once): Delete.
4079 * ira-costs.c (free_ira_costs): Replace with...
4080 (target_ira_int::free_ira_costs): ...this new function.
4081 (ira_init_costs): Call free_ira_costs as a member function rather
4082 than a global function.
4083 (ira_finish_costs_once): Delete.
4084 * target-globals.c (target_globals::~target_globals): Call the
4085 target_ira_int destructor.
4086 * toplev.c: Include lra.h.
4087 (finalize): Call lra_finish_once rather than ira_finish_once.
4089 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
4091 * common.opt (flto-odr-type-merging): New flag.
4092 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4093 (types_same_for_odr): Likewise.
4094 (odr_subtypes_equivalent_p): Likewise.
4095 (add_type_duplicate): Do not walk type variants.
4096 (register_odr_type): New function.
4097 * ipa-utils.h (register_odr_type): Declare.
4098 (odr_type_p): New function.
4099 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4101 * doc/invoke.texi (-flto-odr-type-merging): Document.
4102 * tree.c (need_assembler_name_p): Compute ODR names when asked
4104 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4106 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
4109 * config/i386/i386.c (ix86_option_override_internal): Also turn
4110 off OPTION_MASK_ABI_X32 for -m16.
4112 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4114 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4117 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4120 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4121 Directly forward to __*_DENORM_MIN__.
4123 2014-09-11 David Malcolm <dmalcolm@redhat.com>
4125 * rtl.h (LABEL_REF_LABEL): New macro.
4127 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4128 of XEXP (, 0), where we know that we have a LABEL_REF.
4129 * cfgbuild.c (make_edges): Likewise.
4130 (purge_dead_tablejump_edges): Likewise.
4131 * cfgexpand.c (convert_debug_memory_address): Likewise.
4132 * cfgrtl.c (patch_jump_insn): Likewise.
4133 * combine.c (distribute_notes): Likewise.
4134 * cse.c (hash_rtx_cb): Likewise.
4135 (exp_equiv_p): Likewise.
4136 (fold_rtx): Likewise.
4137 (check_for_label_ref): Likewise.
4138 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4139 (cselib_hash_rtx): Likewise.
4140 * emit-rtl.c (mark_label_nuses): Likewise.
4141 * explow.c (convert_memory_address_addr_space): Likewise.
4142 * final.c (output_asm_label): Likewise.
4143 (output_addr_const): Likewise.
4144 * gcse.c (add_label_notes): Likewise.
4145 * genconfig.c (walk_insn_part): Likewise.
4146 * genrecog.c (validate_pattern): Likewise.
4147 * ifcvt.c (cond_exec_get_condition): Likewise.
4148 (noce_emit_store_flag): Likewise.
4149 (noce_get_alt_condition): Likewise.
4150 (noce_get_condition): Likewise.
4151 * jump.c (maybe_propagate_label_ref): Likewise.
4152 (mark_jump_label_1): Likewise.
4153 (redirect_exp_1): Likewise.
4154 (rtx_renumbered_equal_p): Likewise.
4155 * lra-constraints.c (operands_match_p): Likewise.
4156 * reload.c (operands_match_p): Likewise.
4157 (find_reloads): Likewise.
4158 * reload1.c (set_label_offsets): Likewise.
4159 * reorg.c (get_branch_condition): Likewise.
4160 * rtl.c (rtx_equal_p_cb): Likewise.
4161 (rtx_equal_p): Likewise.
4162 * rtlanal.c (reg_mentioned_p): Likewise.
4163 (rtx_referenced_p): Likewise.
4164 (get_condition): Likewise.
4165 * sched-vis.c (print_value): Likewise.
4166 * varasm.c (const_hash_1): Likewise.
4167 (compare_constant): Likewise.
4168 (const_rtx_hash_1): Likewise.
4169 (output_constant_pool_1): Likewise.
4171 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4173 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
4174 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
4176 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
4177 cr6_test_for_lt_reverse): Ditto.
4179 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
4182 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
4184 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4186 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
4187 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
4188 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
4189 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
4192 (aarch64_fold_builtin): Remove all reinterpret cases.
4194 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
4196 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
4198 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
4199 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
4200 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
4201 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
4202 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
4203 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
4204 aarch64_reinterpretv2df<mode>): Delete.
4206 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
4208 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
4209 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
4210 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
4211 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
4212 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
4213 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
4214 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
4215 vreinterpret_u32_f64): Use cast.
4217 * config/aarch64/iterators.md (VD_RE): Delete.
4219 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4221 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
4222 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
4223 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
4224 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
4225 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
4226 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
4227 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
4228 Replace inline assembler with __aarch64_vset_lane_any.
4230 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
4232 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
4234 (vmull_high_lane_s32): Likewise.
4235 (vmull_high_lane_u16): Likewise.
4236 (vmull_high_lane_u32): Likewise.
4238 2014-09-11 Jason Merrill <jason@redhat.com>
4241 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
4243 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
4246 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
4247 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
4248 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
4250 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4251 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4252 Anna Tikhonova <anna.tikhonova@intel.com>
4253 Ilya Tocar <ilya.tocar@intel.com>
4254 Andrey Turetskiy <andrey.turetskiy@intel.com>
4255 Ilya Verbin <ilya.verbin@intel.com>
4256 Kirill Yukhin <kirill.yukhin@intel.com>
4257 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4259 * config/i386/sse.md
4260 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
4261 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
4262 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
4264 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
4265 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
4267 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4269 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
4270 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
4271 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
4272 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
4273 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
4274 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
4275 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
4276 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
4278 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4280 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
4281 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
4282 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
4284 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4286 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
4287 to access removed nodes.
4289 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4291 PR tree-optimization/63186
4292 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
4293 (mark_nonssa_use): Likewise.
4294 (verify_non_ssa_vars): Verify all header blocks for label
4297 2014-09-11 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
4307 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
4308 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
4309 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
4310 "<avx2_avx512f>_permvar<mode><mask_name>".
4311 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
4312 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
4313 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
4314 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
4316 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
4317 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4318 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
4319 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4321 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4323 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
4324 V2DF, V4SF, DF, and DI modes.
4325 (vsx_fmav2df2): Likewise.
4326 (vsx_float_fix_<mode>2): Likewise.
4327 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
4329 2014-09-10 Xinliang David Li <davidxl@google.com>
4332 * config/arm/arm.md (movcond_addsi): Handle case where source
4333 and target operands are the same.
4335 2014-09-10 David Malcolm <dmalcolm@redhat.com>
4337 * final.c (this_is_asm_operands): Strengthen this variable from
4338 rtx to const rtx_insn *.
4339 * output.h (this_is_asm_operands): Likewise.
4340 * rtl-error.c (location_for_asm): Strengthen param "insn" from
4341 const_rtx to const rtx_insn *.
4342 (diagnostic_for_asm): Likewise.
4343 * rtl-error.h (error_for_asm): Likewise.
4344 (warning_for_asm): Likewise.
4346 2014-09-10 David Malcolm <dmalcolm@redhat.com>
4348 * genextract.c (print_header): When writing out insn_extract to
4349 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
4350 * recog.h (insn_extract): Strengthen the param from rtx to
4353 2014-09-10 Mike Stump <mikestump@comcast.net>
4355 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
4358 2014-09-10 Martin Jambor <mjambor@suse.cz>
4360 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
4361 (analyze): Do not set analyze flag if expand_thunk returns false;.
4362 (create_wrapper): Likewise.
4363 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
4365 2014-09-10 Martin Jambor <mjambor@suse.cz>
4368 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
4369 new decl properly. Analyze the new thunk if it is expanded.
4371 2014-09-10 Andreas Schwab <schwab@suse.de>
4373 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
4374 [USED_FOR_TARGET]: Define.
4376 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
4378 * config/mips/mips.c (mips_secondary_reload_class): Handle
4381 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
4383 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
4386 2014-09-10 Jakub Jelinek <jakub@redhat.com>
4388 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
4389 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
4390 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
4391 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
4392 flag_delete_null_pointer_checks for them.
4393 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
4394 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
4395 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
4396 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
4397 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
4399 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
4400 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
4401 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
4402 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
4403 * doc/invoke.texi (-fsanitize=nonnull-attribute,
4404 -fsanitize=returns-nonnull-attribute): Document.
4406 * ubsan.h (struct ubsan_mismatch_data): Removed.
4407 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
4408 * ubsan.c (ubsan_source_location): For unknown locations,
4409 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
4410 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
4411 Allow more than one location and arbitrary extra arguments passed
4412 in ... instead of through MISMATCH pointer.
4413 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
4414 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
4415 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
4418 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4419 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4420 Anna Tikhonova <anna.tikhonova@intel.com>
4421 Ilya Tocar <ilya.tocar@intel.com>
4422 Andrey Turetskiy <andrey.turetskiy@intel.com>
4423 Ilya Verbin <ilya.verbin@intel.com>
4424 Kirill Yukhin <kirill.yukhin@intel.com>
4425 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4427 * config/i386/sse.md
4428 (define_mode_iterator VI48F): New.
4429 (define_insn "<avx512>_compress<mode>_mask"): Rename from
4430 "avx512f_compress<mode>_mask" and update mode iterator.
4431 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
4432 "avx512f_compressstore<mode>_mask" and update mode iterator.
4433 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
4434 "avx512f_expand<mode>_maskz" and update mode iterator.
4435 (define_insn "<avx512>_expand<mode>_mask"): Rename from
4436 "avx512f_expand<mode>_mask" and update mode iterator.
4438 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4439 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4440 Anna Tikhonova <anna.tikhonova@intel.com>
4441 Ilya Tocar <ilya.tocar@intel.com>
4442 Andrey Turetskiy <andrey.turetskiy@intel.com>
4443 Ilya Verbin <ilya.verbin@intel.com>
4444 Kirill Yukhin <kirill.yukhin@intel.com>
4445 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4447 * config/i386/i386.c
4448 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
4449 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
4450 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
4451 avx512dq_rangepv4sf_mask.
4452 * config/i386/sse.md
4453 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
4455 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
4456 (define_insn "reduces<mode>"): Ditto.
4457 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4459 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
4460 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
4461 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
4463 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4464 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4465 Anna Tikhonova <anna.tikhonova@intel.com>
4466 Ilya Tocar <ilya.tocar@intel.com>
4467 Andrey Turetskiy <andrey.turetskiy@intel.com>
4468 Ilya Verbin <ilya.verbin@intel.com>
4469 Kirill Yukhin <kirill.yukhin@intel.com>
4470 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4472 * config/i386/i386.c
4473 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
4474 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
4475 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
4476 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
4477 avx512vl_getmantv2df_mask.
4478 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
4479 avx512f_vgetmantv4sf_round.
4480 * config/i386/sse.md
4481 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
4482 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
4484 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
4485 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
4486 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
4487 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
4489 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
4490 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
4491 update mode iterator.
4493 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
4494 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
4497 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
4498 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
4499 update mode iterator.
4500 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
4501 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
4504 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
4505 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
4507 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
4508 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
4509 update mode iterator.
4510 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
4511 "avx512f_getmant<mode><round_saeonly_name>".
4513 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4516 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
4518 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4520 Anna Tikhonova <anna.tikhonova@intel.com>
4521 Ilya Tocar <ilya.tocar@intel.com>
4522 Andrey Turetskiy <andrey.turetskiy@intel.com>
4523 Ilya Verbin <ilya.verbin@intel.com>
4524 Kirill Yukhin <kirill.yukhin@intel.com>
4525 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4527 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
4528 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
4529 (define_mode_iterator FMAMODE_AVX512): New.
4530 (define_mode_iterator FMAMODE): Remove conditions.
4531 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
4532 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
4533 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
4535 (define_mode_iterator FMAMODE_NOVF512): Remove.
4536 (define_insn "*fma_fmadd_<mode>"): Rename from
4537 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
4538 FMAMODE mode iterator.
4539 (define_mode_iterator VF_SF_AVX512VL): New.
4540 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
4541 Use VF_SF_AVX512VL mode iterator.
4542 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
4543 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4545 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
4546 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4548 (define_insn "*fma_fmsub_<mode>"): Rename from
4549 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
4550 FMAMODE mode iterator.
4551 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
4552 Use VF_SF_AVX512VL mode iterator.
4553 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
4554 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4556 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
4557 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4559 (define_insn "*fma_fnmadd_<mode>"): Rename from
4560 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
4561 use FMAMODE mode iterator.
4562 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
4563 Use VF_SF_AVX512VL mode iterator.
4564 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
4565 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4567 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
4568 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4570 (define_insn "*fma_fnmsub_<mode>"): Rename from
4571 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
4572 FMAMODE mode iterator.
4573 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
4574 Use VF_SF_AVX512VL mode iterator.
4575 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
4576 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4578 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
4579 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4581 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
4582 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
4583 use VF_AVX512VL mode iterator.
4584 (define_insn "*fma_fmaddsub_<mode>"): Rename from
4585 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
4587 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
4588 Use VF_SF_AVX512VL mode iterator.
4589 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
4590 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4592 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
4593 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4595 (define_insn "*fma_fmsubadd_<mode>"): Rename from
4596 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
4597 remove usage of subst.
4598 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
4599 Use VF_SF_AVX512VL mode iterator.
4600 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
4601 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4603 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
4604 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4607 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
4610 * calls.c (precompute_arguments): Check
4611 promoted_for_signed_and_unsigned_p and set the promoted mode.
4612 (promoted_for_signed_and_unsigned_p): New function.
4613 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
4614 and set the promoted mode.
4615 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
4616 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
4617 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
4619 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4621 * opth-gen.awk: Generate mapping from cpp message reasons to the
4622 options that enable them.
4623 * doc/options.texi (CppReason): Document.
4625 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4627 * doc/invoke.texi (Wnormalized=): Update.
4629 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4632 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
4633 operands. Split off the constant operand alternative to ...
4634 (*bool<mode>3_imm): New.
4636 2014-09-09 David Malcolm <dmalcolm@redhat.com>
4638 * rtl.h (single_set_2): Strengthen first param from const_rtx to
4639 const rtx_insn *, and move prototype to above...
4640 (single_set): ...this. Convert this from a macro to an inline
4641 function, enforcing the requirement that the param is a const
4643 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
4645 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
4646 Strengthen both params from rtx to rtx_insn *.
4647 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
4648 Likewise; introduce locals "producer_set", "consumer_set", using
4649 them in place of "producer" and "consumer" when dealing with SET
4651 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
4652 when invoking single_set in region guarded by INSN_P.
4653 (avr_out_bitop): Likewise.
4654 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
4655 region guarded by GET_CODE check, using methods to strengthen
4656 local "this_insn" from rtx to rtx_insn *, and for clarity.
4657 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
4658 Strengthen local "insn" from rtx to rtx_insn *.
4659 (define_insn_and_split "xload<mode>_A"): Likewise.
4660 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
4662 (find_load): Likewise for return type.
4663 (workaround_speculation): Likewise for both locals named
4665 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
4667 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
4669 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
4671 * config/h8300/h8300.c (notice_update_cc): Likewise.
4672 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
4673 "insn" and "dep_insn".
4674 (exact_store_load_dependency): Likewise for both params.
4675 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
4676 since this now clashes with inline function. Instead, delay
4677 calling single_set until the point where its needed, and then
4678 assign the result to "compare_set" and rework the conditional that
4680 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
4681 local "last" from rtx to rtx_insn *.
4682 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
4684 (mips_store_data_bypass_p): Likewise for both params.
4685 * config/mips/mips.c (mips_load_store_insns): Likewise for second
4687 (mips_store_data_bypass_p): Likewise for both params.
4688 (mips_orphaned_high_part_p): Likewise for param "insn".
4689 * config/mn10300/mn10300.c (extract_bundle): Likewise.
4690 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
4691 Introduce local rtx "insn2_pat".
4692 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
4694 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
4695 Introduce local rtx "set", using it in place of "insn" for the
4696 result of single_set. This appears to fix a bug, since the call
4697 to find_regno_note on a SET does nothing.
4698 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
4699 params from rtx to rtx_insn *.
4700 (set_to_load_agen): Likewise.
4701 * config/s390/s390.c (s390_label_align): Likewise for local
4702 "prev_insn". Introduce new rtx locals "set" and "src", using
4703 them in place of "prev_insn" for the results of single_set
4704 and SET_SRC respectively.
4705 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
4706 Introduce new rtx local "set" using in place of "jump" for the
4707 result of single_set. Use SET_SRC (set) rather than plain
4709 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
4711 (noncall_uses_reg): Likewise.
4712 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
4713 guarded by GET_CODE check, using its methods for clarity, and to
4714 enable strengthening local "this_insn" from rtx to rtx_insn *.
4715 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
4716 "insn" from rtx to rtx_insn *.
4717 (define_expand "umulhisi3"): Likewise.
4718 (define_expand "smulsi3_highpart"): Likewise.
4719 (define_expand "umulsi3_highpart"): Likewise.
4720 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
4721 local "after". Replace GET_CODE check with a dyn_cast,
4722 introducing new local rtx_sequence * "seq", using insn method for
4725 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
4726 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
4727 place of "insn" once we're dealing with patterns rather than the
4729 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
4730 (scan_trace): Likewise for local "elt", updating lookups within
4731 sequence to use insn method rather than element method.
4732 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
4734 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
4735 * ifcvt.c (noce_try_abs): Likewise for local "insn".
4736 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
4737 invoking single_set.
4738 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
4739 "insn" from rtx to rtx_insn *.
4740 (skip_usage_debug_insns): Likewise for return type, adding a
4742 (check_secondary_memory_needed_p): Likewise for local "insn".
4743 (inherit_reload_reg): Likewise.
4744 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
4745 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
4747 (store_data_bypass_p): Likewise for both params.
4748 (if_test_bypass_p): Likewise.
4749 * recog.h (store_data_bypass_p): Likewise for both params.
4750 (if_test_bypass_p): Likewise.
4751 * reload.c (find_equiv_reg): Likewise for local "where".
4752 * reorg.c (delete_jump): Likewise for param "insn".
4753 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
4754 to const rtx_insn *.
4755 * store-motion.c (replace_store_insn): Likewise for param "del".
4756 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
4757 and use its methods for clarity, and to strengthen local "del"
4758 from rtx to rtx_insn *.
4759 (build_store_vectors): Use insn method of "st" when calling
4760 replace_store_insn for typesafety and clarity.
4762 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4764 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
4765 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
4766 on how to make it legal in future.
4768 2014-09-09 David Malcolm <dmalcolm@redhat.com>
4770 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
4772 (restinsn): Likewise.
4773 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4775 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
4777 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
4779 (arc_hazard): Likewise for both params.
4780 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
4781 checked casts to rtx_sequence * and uses of the insn method for
4783 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
4784 (arc_adjust_insn_length): Likewise for param "insn".
4785 (struct insn_length_parameters_s): Likewise for first param of
4786 "get_variants" callback field.
4787 (arc_get_insn_variants): Likewise for first param and local
4788 "inner". Replace a check of GET_CODE with a dyn_cast to
4789 rtx_sequence *, using methods for type-safety and clarity.
4790 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
4791 rtx_sequence * and uses of the insn method for type-safety when
4792 invoking arc_adjust_insn_length.
4793 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
4795 (arm_address_offset_is_imm): Likewise.
4796 (struct tune_params): Likewise for params 1 and 3 of the
4797 "sched_adjust_cost" callback field.
4798 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
4799 params 1 and 3 ("insn" and "dep").
4800 (xscale_sched_adjust_cost): Likewise.
4801 (fa726te_sched_adjust_cost): Likewise.
4802 (cortexa7_older_only): Likewise for param "insn".
4803 (cortexa7_younger): Likewise.
4804 (arm_attr_length_move_neon): Likewise.
4805 (arm_address_offset_is_imm): Likewise.
4806 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
4807 * config/avr/avr.c (avr_notice_update_cc): Likewise.
4808 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
4809 (workaround_speculation): Likewise for local "last_condjump".
4810 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
4811 (shadow_or_blockage_p): Likewise.
4812 (get_unit_reqs): Likewise.
4813 (get_unit_operand_masks): Likewise.
4814 (c6x_registers_update): Likewise.
4815 (returning_call_p): Likewise.
4816 (can_use_callp): Likewise.
4817 (convert_to_callp): Likewise.
4818 (find_last_same_clock): Likwise for local "t".
4819 (reorg_split_calls): Likewise for local "shadow".
4820 (hwloop_pattern_reg): Likewise for param "insn".
4821 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
4822 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
4823 (frv_extract_membar): Likewise.
4824 (frv_optimize_membar_local): Strengthen param "last_membar" from
4825 rtx * to rtx_insn **.
4826 (frv_optimize_membar_global): Strengthen param "membar" from rtx
4828 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
4830 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
4831 both params from rtx to rtx_insn *.
4832 (ia64_ld_address_bypass_p): Likewise.
4833 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
4835 (ia64_safe_type): Likewise.
4836 (group_barrier_needed): Likewise.
4837 (safe_group_barrier_needed): Likewise.
4838 (ia64_single_set): Likewise.
4839 (is_load_p): Likewise.
4840 (record_memory_reference): Likewise.
4841 (get_mode_no_for_insn): Likewise.
4842 (important_for_bundling_p): Likewise.
4843 (unknown_for_bundling_p): Likewise.
4844 (ia64_st_address_bypass_p): Likewise for both params.
4845 (ia64_ld_address_bypass_p): Likewise.
4846 (expand_vselect): Introduce new local rtx_insn * "insn", using it
4847 in place of rtx "x" after the emit_insn call.
4848 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
4849 Strengthen param from rtx to rtx_insn *.
4850 (ix86_agi_dependent): Likewise for both params.
4851 (ix86_attr_length_immediate_default): Likewise for param 1.
4852 (ix86_attr_length_address_default): Likewise for param.
4853 (ix86_attr_length_vex_default): Likewise for param 1.
4854 * config/i386/i386.c (ix86_attr_length_immediate_default):
4855 Likewise for param "insn".
4856 (ix86_attr_length_address_default): Likewise.
4857 (ix86_attr_length_vex_default): Likewise.
4858 (ix86_agi_dependent): Likewise for both params.
4859 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
4860 (vselect_insn): Likewise for this variable.
4861 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
4863 (m68k_sched_attr_opy_type): Likewise.
4864 * config/m68k/m68k.c (sched_get_operand): Likewise.
4865 (sched_attr_op_type): Likewise.
4866 (m68k_sched_attr_opx_type): Likewise.
4867 (m68k_sched_attr_opy_type): Likewise.
4868 (sched_get_reg_operand): Likewise.
4869 (sched_get_mem_operand): Likewise.
4870 (m68k_sched_address_bypass_p): Likewise for both params.
4871 (sched_get_indexed_address_scale): Likewise.
4872 (m68k_sched_indexed_address_bypass_p): Likewise.
4873 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
4874 (m68k_sched_indexed_address_bypass_p): Likewise.
4875 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
4876 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
4878 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
4879 params from rtx to rtx_insn *.
4880 (mips_fmadd_bypass): Likewise.
4881 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
4882 (mips_linked_madd_p): Likewise.
4883 (mips_macc_chains_last_hilo): Likewise for this variable.
4884 (mips_macc_chains_record): Likewise for param.
4885 (vr4130_last_insn): Likewise for this variable.
4886 (vr4130_swap_insns_p): Likewise for both params.
4887 (mips_ls2_variable_issue): Likewise for param.
4888 (mips_need_noat_wrapper_p): Likewise for param "insn".
4889 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
4890 in place of "x" after the emit_insn.
4891 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
4892 params from rtx to rtx_insn *.
4893 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
4894 (pa_combine_instructions): Introduce local "par" for result of
4895 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
4897 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
4898 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
4899 (rl78_alloc_physical_registers_op1): Likewise.
4900 (rl78_alloc_physical_registers_op2): Likewise.
4901 (rl78_alloc_physical_registers_ro1): Likewise.
4902 (rl78_alloc_physical_registers_cmp): Likewise.
4903 (rl78_alloc_physical_registers_umul): Likewise.
4904 (rl78_alloc_address_registers_macax): Likewise.
4905 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
4906 * config/s390/predicates.md (execute_operation): Likewise for
4908 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
4910 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
4911 (addr_generation_dependency_p): Likewise for param "insn".
4912 (s390_agen_dep_p): Likewise for both params.
4913 (s390_fpload_toreg): Likewise for param "insn".
4914 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
4915 * config/sh/sh.c (sh_loop_align): Likewise for param and local
4917 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
4918 * config/sh/sh_treg_combine.cc
4919 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
4921 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
4922 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
4923 "and_insn", "load", "shift".
4924 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
4926 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
4927 for XEXP (note, 0) of the REG_CC_SETTER note.
4928 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
4929 rtx_insn *, eliminating a checked cast made redundant by this.
4930 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
4932 * genattr.c (main): When writing out the prototype to
4933 const_num_delay_slots, strengthen the param from rtx to
4935 * genattrtab.c (write_const_num_delay_slots): Likewise when
4936 writing out the implementation of const_num_delay_slots.
4937 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
4938 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
4939 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
4940 favor of new rtx locals "src" and "set" and new local rtx_insn *
4942 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
4944 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
4945 locals "cond", "if_then_else", "set" and new rtx_insn * locals
4947 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
4948 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
4949 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
4950 the top-level scope, replacing with new more tightly-scoped rtx
4951 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
4952 "new_insn", "copy_of_insn_b", and make local rtx "set" more
4954 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
4956 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
4958 (ira_setup_alts): Likewise for param "insn".
4959 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
4960 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
4962 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
4963 new more-tightly scoped rtx locals "add3_insn", "insn",
4964 "add2_insn" and rtx_insn * "move_insn".
4965 * postreload-gcse.c (eliminate_partially_redundant_load): Add
4966 checked cast on result of gen_move_insn when invoking
4968 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
4970 (verify_changes): Add a checked cast on "object" when invoking
4972 (extract_insn_cached): Strengthen param "insn" from rtx to
4974 (extract_constrain_insn_cached): Likewise.
4975 (extract_insn): Likewise.
4976 * recog.h (insn_invalid_p): Likewise for param 1.
4977 (recog_memoized): Likewise for param.
4978 (extract_insn): Likewise.
4979 (extract_constrain_insn_cached): Likewise.
4980 (extract_insn_cached): Likewise.
4981 * reload.c (can_reload_into): Likewise for local "test_insn".
4982 * reload.h (cleanup_subreg_operands): Likewise for param.
4983 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
4984 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
4985 result of emit_insn. Remove a checked cast made redundant by this
4987 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
4989 * sel-sched.c (get_reg_class): Likewise.
4991 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
4992 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4994 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
4995 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
4997 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
4999 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5001 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5002 const rtx_insn *, and from rtx to rtx_insn * for the other
5004 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5005 INSN_LOCATION, since we know INSN_P holds.
5006 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5007 (insn_file): Likewise.
5008 (insn_scope): Likewise.
5009 (insn_location): Likewise.
5011 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5012 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5013 for the result of gen_load_const_gp.
5014 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5015 param from rtx to rtx_insn *.
5016 * config/rs6000/rs6000.c (output_call): Likewise.
5017 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5018 introducing a checked cast to rtx_sequence * and use of the insn
5020 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5021 from rtx to rtx_insn *.
5022 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5023 (insn_line): Likewise.
5024 (insn_file): Likewise.
5025 (insn_location): Likewise.
5026 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5027 from rtx to rtx_insn *.
5028 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5029 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5030 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5032 * reorg.c (relax_delay_slots): Strengthen locals named "after"
5033 from rtx to rtx_insn *; use methods of "pat" for type-safety.
5035 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5037 * combine.c (try_combine): Eliminate checked cast on result of
5039 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5040 autogenerated one by strengthening the return type and params 2 and 3
5041 from rtx to rtx_insn *, and by naming the params.
5042 * gengenrtl.c (special_rtx): Add INSN to those that are
5044 * rtl.h (gen_rtx_INSN): New prototype.
5046 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5048 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5050 (no_equiv): Likewise.
5051 (update_equiv_regs): Likewise.
5052 (setup_reg_equiv): Likewise. Strengthen locals "elem",
5053 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5054 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
5056 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5057 from rtx to rtx_insn_list *.
5058 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5059 rtx_insn_list * and use methods for clarity and typesafety.
5060 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5062 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
5063 redundant check on INSN_P (insns): this cannot hold, as "insns" is
5064 an INSN_LIST, not an insn.
5065 (reverse_equiv_p): Strengthen local "insns" from rtx to
5066 rtx_insn_list * and use methods for clarity and typesafety.
5067 (contains_reloaded_insn_p): Likewise for local "list".
5069 2014-09-09 Jiong Wang <jiong.wang@arm.com>
5071 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5072 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5073 (arm_builtin_vectorized_function): Likewise.
5074 * config/arm/arm_neon_builtins.def: New macro for copysignf.
5075 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5077 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
5079 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5080 * builtins.h (default_target_builtins): Likewise.
5081 * gcse.h (default_target_gcse): Likewise.
5082 * target-globals.h (target_globals): Add a destructor. Convert
5083 void-pointer fields back to their real type and change from
5084 GTY((atomic)) to GTY((skip)).
5085 (restore_target_globals): Remove casts accordingly.
5086 * target-globals.c (save_target_globals): Use XCNEW rather than
5087 ggc_internal_cleared_alloc to allocate non-GC structures.
5088 Use ggc_cleared_alloc to allocate the target_globals structure
5090 (target_globals::~target_globals): Define.
5092 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5094 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5095 mnemonic instead of fldmfdd.
5096 * config/arm/arm.c (vfp_output_fstmd): Rename to...
5097 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
5098 Output vpush when address register is SP.
5099 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5100 (vfp_output_vstmd): ... This.
5101 * config/arm/vfp.md (push_multi_vfp): Update call to
5104 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5106 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5108 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5110 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5111 (*sqrtdf2_vfp): Likewise.
5112 (*cmpsf_vfp): Likewise.
5113 (*cmpsf_trap_vfp): Likewise.
5114 (*cmpdf_vfp): Likewise.
5115 (*cmpdf_trap_vfp): Likewise.
5117 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5119 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5120 (*truncdfsf2_vfp): Likewise.
5121 (*truncsisf2_vfp): Likewise.
5122 (*truncsidf2_vfp): Likewise.
5123 (fixuns_truncsfsi2): Likewise.
5124 (fixuns_truncdfsi2): Likewise.
5125 (*floatsisf2_vfp): Likewise.
5126 (*floatsidf2_vfp): Likewise.
5127 (floatunssisf2): Likewise.
5128 (floatunssidf2): Likewise.
5130 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5132 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5133 (*muldf3_vfp): Likewise.
5134 (*mulsf3negsf_vfp): Likewise.
5135 (*muldf3negdf_vfp): Likewise.
5136 (*mulsf3addsf_vfp): Likewise.
5137 (*muldf3adddf_vfp): Likewise.
5138 (*mulsf3subsf_vfp): Likewise.
5139 (*muldf3subdf_vfp): Likewise.
5140 (*mulsf3negsfaddsf_vfp): Likewise.
5141 (*fmuldf3negdfadddf_vfp): Likewise.
5142 (*mulsf3negsfsubsf_vfp): Likewise.
5143 (*muldf3negdfsubdf_vfp): Likewise.
5145 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5147 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5148 (*absdf2_vfp): Likewise.
5149 (*negsf2_vfp): Likewise.
5150 (*negdf2_vfp): Likewise.
5151 (*addsf3_vfp): Likewise.
5152 (*adddf3_vfp): Likewise.
5153 (*subsf3_vfp): Likewise.
5154 (*subdf3_vfp): Likewise.
5155 (*divsf3_vfp): Likewise.
5156 (*divdf3_vfp): Likewise.
5158 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5160 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
5162 (arm_print_operand): Don't convert real values to decimal
5163 representation in default case.
5164 (fp_immediate_constant): Delete.
5165 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
5166 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
5168 (*thumb2_movsi_vfp): Likewise.
5169 (*movdi_vfp): Likewise.
5170 (*movdi_vfp_cortexa8): Likewise.
5171 (*movhf_vfp_neon): Likewise.
5172 (*movhf_vfp): Likewise.
5173 (*movsf_vfp): Likewise.
5174 (*thumb2_movsf_vfp): Likewise.
5175 (*movdf_vfp): Likewise.
5176 (*thumb2_movdf_vfp): Likewise.
5177 (*movsfcc_vfp): Likewise.
5178 (*thumb2_movsfcc_vfp): Likewise.
5179 (*movdfcc_vfp): Likewise.
5180 (*thumb2_movdfcc_vfp): Likewise.
5182 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
5184 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
5188 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5191 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
5192 Use qualifier_immediate for last operand. Rename to...
5193 (aarch64_types_ternop_lane_qualifiers): ... This.
5194 (TYPES_QUADOP): Rename to...
5195 (TYPES_TERNOP_LANE): ... This.
5196 (aarch64_simd_expand_args): Return const0_rtx when encountering user
5197 error. Change return of 0 to return of NULL_RTX.
5198 (aarch64_crc32_expand_builtin): Likewise.
5199 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
5200 ICE when expanding unknown builtin.
5201 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
5202 TERNOP_LANE qualifiers.
5203 (sqdmlsl_lane): Likewise.
5204 (sqdmlal_laneq): Likewise.
5205 (sqdmlsl_laneq): Likewise.
5206 (sqdmlal2_lane): Likewise.
5207 (sqdmlsl2_lane): Likewise.
5208 (sqdmlal2_laneq): Likewise.
5209 (sqdmlsl2_laneq): Likewise.
5211 2014-09-09 Nick Clifton <nickc@redhat.com>
5213 * doc/invoke.texi (Optimization Options): Add missing @gol to the
5215 (S/390 and zSeries Options): Remove superfluous word from the
5216 description of the -mhotpatch option.
5218 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
5220 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
5221 * ira.c: #include "shrink-wrap.h"
5222 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
5223 * ifcvt.c: #include "shrink-wrap.h"
5224 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
5226 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
5228 * common/config/picochip/picochip-common.c: Remove.
5229 * config.gcc: Remove support for picochip.
5230 * config/picochip/constraints.md: Remove.
5231 * config/picochip/dfa_space.md: Remove.
5232 * config/picochip/dfa_speed.md: Remove.
5233 * config/picochip/picochip-protos.h: Remove.
5234 * config/picochip/picochip.c: Remove.
5235 * config/picochip/picochip.h: Remove.
5236 * config/picochip/picochip.md: Remove.
5237 * config/picochip/picochip.opt: Remove.
5238 * config/picochip/predicates.md: Remove.
5239 * config/picochip/t-picochip: Remove.
5240 * doc/md.texi: Don't document picochi.
5242 2014-09-08 David Malcolm <dmalcolm@redhat.com>
5244 * basic-block.h (control_flow_insn_p): Strengthen param from
5245 const_rtx to const rtx_insn *.
5246 * cfgbuild.c (control_flow_insn_p): Likewise.
5248 2014-09-08 David Malcolm <dmalcolm@redhat.com>
5250 * gcse.c (modify_mem_list): Strengthen this variable from
5251 vec<rtx> * to vec<rtx_insn *> *.
5252 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
5254 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
5255 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
5256 (record_last_mem_set_info): Strengthen param "insn" from rtx to
5258 (record_last_set_info): Likewise for local "last_set_insn".
5260 2014-09-08 DJ Delorie <dj@redhat.com>
5262 * doc/invoke.texi (MSP430 Options): Add -minrt.
5264 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5266 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
5267 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
5268 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
5270 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
5272 (adjust_splat): New function.
5273 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
5274 (dump_swap_insn_table): Add case for SH_SPLAT.
5276 2014-09-08 Richard Biener <rguenther@suse.de>
5279 * tree-inline.c (copy_loops): The source loop header should
5281 (tree_function_versioning): If loops need fixup after removing
5282 unreachable blocks fix them.
5283 * omp-low.c (simd_clone_adjust): Do not add incr block to
5284 loop under construction.
5286 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
5288 * config/aarch64/aarch64-builtins.c
5289 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
5291 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5293 * config/i386/cygming.h (TF_SIZE): Remove.
5294 * config/i386/darwin.h (TF_SIZE): Remove.
5295 * config/i386/dragonfly.h (TF_SIZE): Remove.
5296 * config/i386/freebsd.h (TF_SIZE): Remove.
5297 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
5298 * config/i386/openbsdelf.h (TF_SIZE): Remove.
5299 * config/i386/sol2.h (TF_SIZE): Remove.
5300 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
5301 * config/ia64/linux.h (TF_SIZE): Remove.
5302 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
5303 * doc/tm.texi: Regenerate.
5304 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
5306 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5308 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5310 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
5312 * doc/tm.texi: Regenerate.
5313 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5315 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
5316 * config/cris/cris.h (__make_dp): Remove.
5318 2014-09-08 Richard Biener <rguenther@suse.de>
5321 * cfgloop.c (mark_loop_for_removal): Track former header
5323 * cfgloop.h (struct loop): Add former_header member unconditionally.
5324 * loop-init.c (fix_loop_structure): Enable bogus loop removal
5325 diagnostic unconditionally.
5327 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
5330 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
5331 constraint for operand0 and remove write only modifier from operand3.
5333 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
5335 PR rtl-optimization/62208
5336 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
5337 rather than const0_rtx in eq/ne-xor simplifications.
5339 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
5341 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
5342 (arc_output_mi_thunk): Likewise.
5344 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
5345 arguments to silence bogus warning.
5347 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
5350 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
5352 2014-09-06 Tom de Vries <tom@codesourcery.com>
5354 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
5355 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
5356 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
5358 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
5361 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
5362 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
5364 2014-09-05 Easwaran Raman <eraman@google.com>
5366 PR rtl-optimization/62146
5367 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
5368 hoisted instruction unconditional.
5370 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
5373 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
5374 Do not allow any_mask_operand for operands[2].
5375 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
5377 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5379 * config/arc/arc.c (arc_print_operand): Use insn method of
5380 final_sequence for type-safety.
5381 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
5382 "insn" from rtx to rtx_insn *.
5383 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
5384 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5385 Likewise for locals "branch", "label".
5386 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
5387 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
5388 (same_cmp_following_p): Likewise for locals "i2", "i3".
5389 * config/sh/sh_optimize_sett_clrt.cc
5390 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
5391 param "cbranch_insn".
5392 * function.c (convert_jumps_to_returns): Likewis for local "jump".
5393 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
5394 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
5396 (condjump_p): Likewise.
5397 (condjump_in_parallel_p): Likewise.
5399 (any_uncondjump_p): Likewise.
5400 (any_condjump_p): Likewise.
5401 (condjump_label): Likewise.
5402 (returnjump_p): Strengthen param "insn" from rtx to
5404 (onlyjump_p): Strengthen param "insn" from const_rtx to
5406 (jump_to_label_p): Likewise.
5407 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
5408 (invert_jump): Likewise.
5409 * reorg.c (simplejump_or_return_p): Add checked cast when calling
5411 (get_jump_flags): Strengthen param "insn" from rtx to
5413 (get_branch_condition): Likewise.
5414 (condition_dominates_p): Likewise.
5415 (make_return_insns): Move declaration of local "pat" earlier, to
5416 after we've handled NONJUMP_INSN_P and non-sequences, using its
5417 methods to simplify the code and for type-safety.
5418 * rtl.h (find_constant_src): Strengthen param from const_rtx to
5420 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
5421 (condjump_p): Strengthen param from const_rtx to
5423 (any_condjump_p): Likewise.
5424 (any_uncondjump_p): Likewise.
5426 (condjump_label): Likewise.
5427 (simplejump_p): Likewise.
5428 (returnjump_p): Likewise.
5429 (onlyjump_p): Likewise.
5430 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
5431 (invert_jump): Likewise.
5432 (condjump_in_parallel_p): Strengthen param from const_rtx to
5434 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
5435 to const rtx_insn *.
5436 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
5437 to const rtx_insn *.
5438 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
5440 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5442 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
5443 above the conditional, and convert the check on GET_CODE to a
5444 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
5445 the conditional. Simplify the conditional by using methods of
5448 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5450 * haifa-sched.c (check_clobbered_conditions): Strengthen local
5451 "link" from rtx to rtx_insn_list *, and use its methods for
5452 clarity and type-safety.
5453 (toggle_cancelled_flags): Likewise.
5454 (restore_last_backtrack_point): Likewise.
5455 (queue_to_ready): Use insn method of "link" in one place.
5456 (schedule_block): Strengthen local "link" from rtx to
5457 rtx_insn_list *, and use its methods for clarity and type-safety.
5459 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5461 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
5462 param "insn" from const_rtx to const rtx_insn *.
5463 (sched_get_reverse_condition_uncached): Likewise.
5464 (sched_get_condition_with_rev): Likewise.
5465 (sched_has_condition_p): Likewise.
5466 (sched_insns_conditions_mutex_p): Likewise for both params.
5467 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
5468 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
5469 (setup_insn_reg_uses): Move local "list" to be more tightly
5470 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
5471 its methods for clarity and type-safety.
5472 (sched_analyze_1): Strengthen local "pending" from rtx to
5473 rtx_insn_list *, and local "pending_mem" from rtx to
5474 rtx_expr_list *. Use methods of each for clarity and type-safety.
5475 (sched_analyze_2): Likewise.
5476 (sched_analyze_insn): Likewise.
5478 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
5479 param from const_rtx to const rtx_insn *.
5480 (sched_insns_conditions_mutex_p): Likewise for both params.
5481 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
5484 * system.h (CONST_CAST_RTX_INSN): New macro.
5486 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5488 * recog.c (peep2_attempt): Strengthen return type from rtx to
5490 (peep2_update_life): Likewise for params "last", "prev", removing
5491 a checked cast made redundant by this.
5492 (peephole2_optimize): Likewise for local "last".
5494 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5496 * basic-block.h (set_block_for_insn): Eliminate this macro in
5498 * rtl.h (set_block_for_insn): New inline function, imposing the
5499 requirement that the "insn" param is an rtx_insn *.
5501 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5503 * caller-save.c (setup_save_areas): Strengthen local "insn" from
5505 * final.c (get_call_reg_set_usage): Likewise for first param,
5506 eliminating a checked cast.
5507 * regs.h (get_call_reg_set_usage): Likewise for first param.
5508 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
5509 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
5510 cast, replacing references to "x" with "call_insn" where
5512 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
5513 rtx_insn *, adding a checked cast.
5515 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5517 * output.h (final_scan_insn): Strengthen first param from rtx to
5520 * final.c (final_scan_insn): Likewise, renaming it back from
5521 "uncast_insn" to "insn", eliminating the checked cast.
5523 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
5524 "vec" with an rtx_sequence * "seq", taking a copy of
5525 "final_sequence", and using methods of "seq" for clarity, and for
5526 type-safety in the calls to final_scan_insn.
5527 * config/mips/mips.c (mips_output_conditional_branch): Use methods
5528 of "final_sequence" for clarity, and for type-safety in the call to
5530 * config/sh/sh.c (print_slot): Strengthen param from rtx to
5531 rtx_sequence * and rename from "insn" to "seq".
5533 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5535 * jump.c (delete_related_insns): Introduce a new local "table" by
5536 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
5537 get_labels method of "table" to simplify access to the labels in
5540 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5542 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
5543 f_minmaxs, f_minmaxd types.
5545 2014-09-05 Richard Biener <rguenther@suse.de>
5547 * cfgloop.c (mark_loop_for_removal): Record former header
5548 when ENABLE_CHECKING.
5549 * cfgloop.h (strut loop): Add former_header member when
5551 * loop-init.c (fix_loop_structure): Sanity check loops
5552 marked for removal if they re-appeared.
5554 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5556 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
5557 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
5559 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
5560 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
5561 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
5562 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
5563 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
5564 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
5565 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
5566 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
5567 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
5568 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
5569 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
5570 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
5571 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
5572 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
5573 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
5574 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
5575 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
5576 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
5577 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
5578 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
5579 with int{32,16,8}_t.
5581 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5583 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
5584 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
5585 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
5586 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
5587 Remove temporary __asm__ and reimplement.
5589 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5591 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
5592 handling cmge, cmgt, cmeq, cmtst.
5594 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
5595 cmlt, cmgeu, cmgtu, cmtst): Remove.
5597 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
5598 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
5599 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
5600 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
5602 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5604 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
5606 (aarch64_fold_builtin): Update pattern for cmtst.
5608 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
5611 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
5613 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
5614 Switch operands, separate out more cases, refactor.
5616 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
5618 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
5619 argument; rename old version to...
5620 (aarch64_const_vec_all_same_in_range_p): ...this.
5621 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
5623 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
5625 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5627 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5628 Remove qualifier_const_pointer, update comment.
5630 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5632 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
5634 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5636 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
5637 varargs with pointer parameter.
5638 (aarch64_simd_expand_builtin): pass pointer into previous.
5640 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5642 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
5645 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
5647 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
5648 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
5649 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
5650 Replace temporary asm with call to builtin.
5651 (vrbit_p8, vrbitq_p8): New functions.
5653 2014-09-05 Richard Biener <rguenther@suse.de>
5655 * cfgloop.c (mark_loop_for_removal): New function.
5656 * cfgloop.h (mark_loop_for_removal): Declare.
5657 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
5658 (merge_blocks): Likewise.
5659 (duplicate_block): Likewise.
5660 * except.c (sjlj_emit_dispatch_table): Likewise.
5661 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
5662 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
5663 (thread_through_loop_header): Likewise.
5665 2014-09-05 Richard Biener <rguenther@suse.de>
5668 * fold-const.c (try_move_mult_to_index): Remove.
5669 (fold_binary_loc): Do not call it.
5670 * tree-data-ref.c (dr_analyze_indices): Strip conversions
5671 from the base object again.
5673 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
5675 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
5678 2014-09-05 Bin Cheng <bin.cheng@arm.com>
5681 * config/arm/arm.md (setmem): New pattern.
5682 * config/arm/arm-protos.h (struct tune_params): New fields.
5683 (arm_gen_setmem): New prototype.
5684 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
5685 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5686 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5687 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
5688 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
5689 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
5690 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
5691 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5692 (arm_const_inline_cost): New function.
5693 (arm_block_set_max_insns): New function.
5694 (arm_block_set_non_vect_profit_p): New function.
5695 (arm_block_set_vect_profit_p): New function.
5696 (arm_block_set_unaligned_vect): New function.
5697 (arm_block_set_aligned_vect): New function.
5698 (arm_block_set_unaligned_non_vect): New function.
5699 (arm_block_set_aligned_non_vect): New function.
5700 (arm_block_set_vect, arm_gen_setmem): New functions.
5702 2014-09-05 Bin Cheng <bin.cheng@arm.com>
5704 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
5706 2014-09-05 Bin Cheng <bin.cheng@arm.com>
5708 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
5710 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
5712 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
5714 * valtrack.h: Adjust.
5716 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
5718 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
5720 (emit_jump_insn_before_noloc): Likewise.
5721 (emit_call_insn_before_noloc): Likewise.
5722 (emit_label_before): Likewise.
5723 (emit_label_after): Likewise.
5724 (emit_insn_before_setloc): Likewise.
5725 (emit_jump_insn_before_setloc): Likewise.
5726 (emit_call_insn_before_setloc): Likewise.
5727 (emit_call_insn_before): Likewise.
5730 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5732 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
5733 rtx_insn *, eliminating a checked cast.
5735 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5737 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
5738 const_rtx to const rtx_insn *.
5739 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
5742 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5744 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
5745 fixup_args_size_notes.
5746 * expr.c (fixup_args_size_notes): Strengthen first two params from
5747 rtx to rtx_insn *, eliminating a checked cast.
5748 * rtl.h (fixup_args_size_notes): Strengthen first two params from
5751 2014-09-05 David Malcolm <dmalcolm@redhat.com>
5753 * haifa-sched.c (get_ready_element): Strengthen return type from
5755 * sched-int.h (get_ready_element): Likewise.
5757 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
5760 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
5761 indexed_or_indirect_operand instead of memory_operand.
5762 (floatsi<mode>2_lfiwzx_mem): Ditto.
5764 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
5766 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
5767 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
5768 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
5770 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
5772 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
5774 (get_last_nonnote_insn): Likewise.
5775 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
5776 * resource.c (find_basic_block): Likewise.
5778 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
5781 2014-09-04 David Malcolm <dmalcolm@redhat.com>
5783 * genattr.c (main): Within the prototype of insn_latency written
5784 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
5785 * genautomata.c (output_internal_maximal_insn_latency_func):
5786 Within the implementation of insn_latency written out to
5787 insn-automata.c, strengthen both params from rtx to rtx_insn *,
5788 eliminating a pair of checked casts.
5790 2014-09-04 David Malcolm <dmalcolm@redhat.com>
5792 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
5795 * rtl.h (eh_returnjump_p): Likewise.
5797 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
5799 * Makefile.in (TAGS): Handle constructs in timevar.def.
5801 2014-09-04 Guozhi Wei <carrot@google.com>
5804 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
5805 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
5806 it into two patterns.
5807 (move_lo_quad_internal_be_<mode>): Likewise.
5809 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5811 * doc/options.texi: Document that Var and Init are required if CPP
5813 * optc-gen.awk: Require Var and Init if CPP is given.
5814 * common.opt (Wpedantic): Use Init.
5816 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5818 * config/rs6000/rs6000.c (special_handling_values): Add
5820 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
5821 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
5822 as swappable with special handling SH_EXTRACT. Remove
5823 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
5825 (adjust_extract): New function.
5826 (handle_special_swappables): Add default to case statement; add
5827 case for SH_EXTRACT that calls adjust_extract.
5828 (dump_swap_insn_table): Handle SH_EXTRACT.
5830 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5832 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
5833 selection of 0th memory doubleword, regardless of endianness.
5835 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5837 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
5839 2014-09-04 Alan Modra <amodra@gmail.com>
5842 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
5845 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
5847 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
5848 * targhooks.c (default_dwarf_frame_reg_mode): New function.
5849 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
5850 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
5851 * doc/tm.texi: Regenerate.
5852 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
5853 selection logic to default_dwarf_frame_reg_mode.
5855 2014-09-03 Marek Polacek <polacek@redhat.com>
5857 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
5860 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
5862 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
5863 the automodified register.
5865 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
5867 * output.h (get_some_local_dynamic_name): Declare.
5868 * final.c (some_local_dynamic_name): New variable.
5869 (get_some_local_dynamic_name): New function.
5870 (final_end_function): Clear some_local_dynamic_name.
5871 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
5872 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5873 (print_operand): Report an error if '%&' is used inappropriately.
5874 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
5875 (get_some_local_dynamic_name_1): Delete.
5876 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
5877 (rs6000_get_some_local_dynamic_name): Delete.
5878 (rs6000_get_some_local_dynamic_name_1): Delete.
5879 (print_operand): Report an error if '%&' is used inappropriately.
5880 * config/s390/s390.c (machine_function): Remove some_ld_name.
5881 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5882 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
5883 * config/sparc/sparc.c: Include rtl-iter.h.
5884 (machine_function): Remove some_ld_name.
5885 (sparc_print_operand): Report an error if '%&' is used inappropriately.
5886 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5888 2014-09-03 Richard Henderson <rth@redhat.com>
5890 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
5891 (aarch64_popwb_pair_reg): Remove.
5892 (aarch64_set_frame_expr): Remove.
5893 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
5894 the restore ops performed by the insns generated.
5895 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
5896 insn. Perform the calls_eh_return addition later; do not attempt to
5897 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
5898 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
5899 special markup at all. Load cfun->machine->frame.hard_fp_offset
5900 into a local variable.
5901 (aarch64_frame_pointer_required): Don't check calls_alloca.
5903 2014-09-03 Richard Biener <rguenther@suse.de>
5905 * opts.c (default_options_optimization): Adjust
5906 max-combine-insns to 2 for -Og.
5908 2014-09-03 Martin Jambor <mjambor@suse.cz>
5911 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
5912 pass-trough jump functions correctly.
5914 2014-09-03 Martin Jambor <mjambor@suse.cz>
5917 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
5918 created replacements in ascending order of offsets.
5919 (known_aggs_to_agg_replacement_list): Likewise.
5921 2014-09-03 Martin Liska <mliska@suse.cz>
5923 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
5924 is set to set uninitialized value for vnresult.
5926 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5928 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
5929 for TARGET_MUST_PASS_IN_STACK.
5931 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5933 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
5934 for TARGET_ARG_PARTIAL_BYTES.
5936 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5938 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
5939 instructions for varargs implementation.
5940 (nds32_expand_epilogue): Emit stack adjustment instructions for
5941 varargs implementation.
5943 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5945 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
5946 optimization detection.
5948 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5950 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
5952 (nds32_function_arg_advance): Deal with nameless arguments.
5953 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
5954 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
5955 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
5957 2014-09-03 Richard Biener <rguenther@suse.de>
5959 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
5960 (struct bb_bitmap_sets): Remove deferred member.
5961 (BB_DEFERRED): Remove.
5962 (defer_or_phi_translate_block): Remove.
5963 (compute_antic_aux): Remove deferring of blocks, assert
5964 proper iteration order.
5965 (compute_antic): Do not set BB_DEFERRED.
5966 (eliminate): Allocate el_avail of proper size initially.
5968 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5970 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
5971 according to the value of crtl->args.pretend_args_size.
5973 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5975 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
5976 varargs information.
5978 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5980 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
5981 implementation for TARGET_SETUP_INCOMING_VARARGS.
5982 (nds32_strict_argument_naming): Refine comment.
5983 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
5984 Define for future implementation.
5986 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
5988 * config/i386/adxintrin.h (_subborrow_u32): New.
5989 (_addcarry_u32): Ditto.
5990 (_subborrow_u64): Ditto.
5991 (_addcarry_u64): Ditto.
5992 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
5994 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
5995 __builtin_ia32_sbb_u64
5997 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
5999 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6001 (nds32_function_arg_advance): Likewise.
6002 (nds32_init_cumulative_args): Likewise.
6003 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6004 (NDS32_FIRST_GPR_REGNUM): Define.
6005 (NDS32_LAST_GPR_REGNUM): Define.
6006 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6007 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6008 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6009 (machine_function): Use GRP-specific stuff.
6011 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6013 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6014 (nds32_expand_epilogue): Likewise.
6015 (nds32_expand_prologue_v3push): Likewise.
6016 (nds32_expand_epilogue_v3pop): Likewise.
6018 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6020 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6021 v3push/v3pop for variadic function.
6022 * config/nds32/nds32.md (prologue, epilogue): Likewise.
6024 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6026 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6027 Check rtx for varargs implementation.
6028 (nds32_output_stack_pop): Likewise.
6029 * config/nds32/nds32-protos.h: Have a rtx argument for
6030 nds32_output_stack_push and nds32_output_stack_pop.
6031 * config/nds32/nds32.md: Likewise.
6033 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6035 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6036 to check if FUNC is an interrupt service routine.
6037 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6039 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6041 * config/nds32/nds32.h (machine_function): Add some fields for variadic
6042 arguments implementation.
6044 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6046 * config/nds32/nds32-predicates.c
6047 (nds32_valid_stack_push_pop): Rename to ...
6048 (nds32_valid_stack_push_pop_p): ... this.
6049 * config/nds32/nds32-protos.h: Likewise.
6050 * config/nds32/predicates.md: Likewise.
6052 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6054 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6055 (nds32_emit_stack_v3push): ... this.
6056 (nds32_gen_stack_v3pop): Rename to ...
6057 (nds32_emit_stack_v3pop): ... this and consider CFA restore
6060 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6062 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6063 (nds32_emit_stack_push_multiple): ... this.
6064 (nds32_gen_stack_pop_multiple): Rename to ...
6065 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6068 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6071 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6072 and add a second splitter to handle the remaining cases.
6074 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6076 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6078 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6080 * cfgexpand.c (label_rtx_for_bb): Change type to
6081 hash_map<basic_block, rtx_code_label *> *.
6082 (expand_gimple_basic_block): Adjust.
6083 (pass_expand::execute): Likewise.
6085 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6087 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6088 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6089 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6090 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6091 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6092 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6093 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6096 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6098 * alloc-pool.c: Include coretypes.h.
6099 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6100 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6101 hash_set instead of htab.
6102 * ggc-page.c (in_gc): New variable.
6103 (ggc_free): Do nothing if a collection is taking place.
6104 (ggc_collect): Set in_gc appropriately.
6105 * ggc.h (gt_ggc_mx(const char *)): New function.
6106 (gt_pch_nx(const char *)): Likewise.
6107 (gt_ggc_mx(int)): Likewise.
6108 (gt_pch_nx(int)): Likewise.
6109 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6110 (hash_map::hash_entry::pch_nx): Likewise.
6111 (hash_map::hash_entry::pch_nx_helper): Likewise.
6112 (hash_map::hash_map): Adjust.
6113 (hash_map::create_ggc): New function.
6114 (gt_ggc_mx): Likewise.
6115 (gt_pch_nx): Likewise.
6116 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6117 (default_hashset_traits::pch_nx): Likewise.
6118 (hash_set::hash_entry::ggc_mx): Likewise.
6119 (hash_set::hash_entry::pch_nx): Likewise.
6120 (hash_set::hash_entry::pch_nx_helper): Likewise.
6121 (hash_set::hash_set): Adjust.
6122 (hash_set::create_ggc): New function.
6123 (hash_set::elements): Likewise.
6124 (gt_ggc_mx): Likewise.
6125 (gt_pch_nx): Likewise.
6126 * hash-table.h (hash_table::hash_table): Adjust.
6127 (hash_table::m_ggc): New member.
6128 (hash_table::~hash_table): Adjust.
6129 (hash_table::expand): Likewise.
6130 (hash_table::empty): Likewise.
6131 (gt_ggc_mx): New function.
6132 (hashtab_entry_note_pointers): Likewise.
6133 (gt_pch_nx): Likewise.
6135 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6137 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
6138 built-in definition.
6139 (XVCVUXDDP_SCALE): Likewise.
6140 (XVCVDPSXDS_SCALE): Likewise.
6141 (XVCVDPUXDS_SCALE): Likewise.
6142 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6143 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6144 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6145 VSX_BUILTIN_XVCVDPUXDS_SCALE.
6146 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6148 * config/rs6000/rs6000.c (real.h): New include.
6149 (rs6000_scale_v2df): New function.
6150 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6151 (UNSPEC_VSX_XVCVUXDDP): Likewise.
6152 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6153 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6154 (vsx_xvcvsxddp_scale): New define_expand.
6155 (vsx_xvcvsxddp): New define_insn.
6156 (vsx_xvcvuxddp_scale): New define_expand.
6157 (vsx_xvcvuxddp): New define_insn.
6158 (vsx_xvcvdpsxds_scale): New define_expand.
6159 (vsx_xvcvdpsxds): New define_insn.
6160 (vsx_xvcvdpuxds_scale): New define_expand.
6161 (vsx_xvcvdpuxds): New define_insn.
6162 * doc/extend.texi (vec_ctf): Add new prototypes.
6163 (vec_cts): Likewise.
6164 (vec_ctu): Likewise.
6165 (vec_splat): Likewise.
6166 (vec_div): Likewise.
6167 (vec_mul): Likewise.
6169 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6172 * config/arm/neon.md
6173 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
6174 <v_cmp_result>): New pattern.
6175 * config/arm/iterators.md (NEON_VCVT): New int iterator.
6176 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
6177 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
6178 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
6179 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
6180 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
6182 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6185 * config/arm/iterators.md (FIXUORS): New code iterator.
6186 (VCVT): New int iterator.
6187 (su_optab): New code attribute.
6189 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
6191 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6193 * config/aarch64/predicates.md (aarch64_comparison_operation):
6194 New special predicate.
6195 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
6196 aarch64_comparison_operation instead of matching an operator.
6197 Update operand numbers.
6198 (csinc3<mode>_insn): Likewise.
6199 (*csinv3<mode>_insn): Likewise.
6200 (*csneg3<mode>_insn): Likewise.
6201 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
6202 * config/aarch64/aarch64.c (aarch64_get_condition_code):
6203 Return -1 instead of aborting on invalid condition codes.
6204 (aarch64_print_operand): Update aarch64_get_condition_code callsites
6205 to assert that the returned condition code is valid.
6206 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
6208 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
6210 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
6211 tree.def, and gimple.def
6213 2014-09-02 Jakub Jelinek <jakub@redhat.com>
6214 Balaji V. Iyer <balaji.v.iyer@intel.com>
6215 Igor Zamyatin <igor.zamyatin@intel.com>
6217 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
6218 (__cilkrts_cilk_for_64): Likewise.
6219 * cilk-common.c (declare_cilk_for_builtin): New function.
6220 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
6221 __cilkrts_cilk_for_64 bultins.
6222 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
6224 (cilk_for_32_fndecl): New define.
6225 (cilk_for_64_fndecl): Likewise.
6226 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
6227 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
6228 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
6229 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
6230 GF_OMP_FOR_COMBINED_INTO.
6231 * gimplify.c (gimplify_scan_omp_clauses): Added
6232 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6233 (gimplify_adjust_omp_clauses): Ditto.
6234 (gimplify_omp_for): Added CILK_FOR case.
6235 (gimplify_expr): Ditto.
6236 * omp-low.c: Include cilk.h.
6237 (extract_omp_for_data): Set appropriate kind for
6238 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
6239 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
6240 (create_omp_child_function_name): Added second argument to handle
6242 (cilk_for_check_loop_diff_type): New function.
6243 (expand_cilk_for_call): Likewise.
6244 (expand_cilk_for): Likewise.
6245 (create_omp_child_function): Set cilk_for_count; handle the cases when
6246 it is true; call create_omp_child_function_name with second argument.
6247 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
6248 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
6249 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
6250 * tree-nested.c (convert_nonlocal_omp_clauses): Added
6251 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6252 (convert_local_omp_clauses): Ditto.
6253 * tree-pretty-print.c (dump_omp_clause): Added
6254 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
6255 (dump_generic_node): Added CILK_FOR case.
6256 * tree.c (omp_clause_num_ops): New element
6257 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
6258 (omp_clause_code_name): New element _Cilk_for_count_.
6259 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
6260 * tree.def: Add tree code for CILK_FOR.
6262 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6264 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
6265 (ppc403-compare): Add "exts with dot" case.
6266 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
6267 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
6268 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
6269 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
6270 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
6271 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
6272 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
6273 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
6274 cell-cmp-microcoded): Similarly.
6275 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
6276 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
6277 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
6278 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
6279 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
6280 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
6281 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
6282 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
6283 (power6-compare): Add "exts with dot" case.
6284 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
6285 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
6286 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
6288 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
6289 if avoiding Cell microcode.
6290 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
6291 (is_cracked_insn): Ditto.
6292 (insn_must_be_first_in_group): Ditto.
6293 * config/rs6000/rs6000.md (dot): Adjust comment.
6294 (cell_micro): Handle exts+dot.
6295 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
6296 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
6297 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
6298 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
6299 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
6300 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
6301 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
6303 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6305 * config/rs6000/rs6000.md (QHSI): Delete.
6306 (EXTQI, EXTHI, EXTSI): New mode iterators.
6307 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
6308 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
6309 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
6310 9 anonymous instructions, and 8 splitters): Delete.
6311 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
6312 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
6313 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
6314 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
6315 *zero_extendsi<mode>2_dot2): New.
6317 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6319 * config/rs6000/rs6000.md (any_extend): New code iterator.
6320 (u, su): New code attributes.
6321 (dmode, DMODE): New mode attributes.
6322 (<su>mul<mode>3_highpart): New.
6323 (*<su>mul<mode>3_highpart): New.
6324 (<su>mulsi3_highpart_le): New.
6325 (<su>muldi3_highpart_le): New.
6326 (<su>mulsi3_highpart_64): New.
6327 (<u>mul<mode><dmode>3): New.
6328 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
6330 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
6333 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6335 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
6336 *mulsi3_internal2, and two splitters): Delete.
6337 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
6339 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
6341 2014-09-02 Richard Biener <rguenther@suse.de>
6343 PR tree-optimization/62695
6344 * tree-ssa-structalias.c (find_func_clobbers): Add missing
6347 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
6350 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
6352 2014-09-01 Andi Kleen <ak@linux.intel.com>
6354 * file-find.c (add_prefix_begin): Add.
6355 (do_add_prefix): Rename from add_prefix with first argument.
6356 (add_prefix): Add new wrapper.
6357 * file-find.h (add_prefix_begin): Add.
6358 * gcc-ar.c (main): Support -B option.
6360 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6362 * genemit.c: Include dumpfile.h.
6363 (gen_split): Print name of splitter function to dump file.
6365 2014-09-01 Richard Biener <rguenther@suse.de>
6367 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
6368 Use stack auto_vecs for constraint expressions.
6369 (find_func_aliases_for_call): Likewise.
6370 (find_func_aliases): Likewise.
6371 (find_func_clobbers): Likewise.
6373 2014-09-01 Richard Biener <rguenther@suse.de>
6375 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
6376 operands vector in most cases. Remove redundant code.
6378 2014-09-01 Olivier Hainque <hainque@adacore.com>
6380 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
6381 $WIND_BASE instead of designating a harcoded arbitrary home dir.
6382 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
6384 2014-09-01 Richard Biener <rguenther@suse.de>
6386 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
6387 copy_reference_ops_from_call, vn_nary_op_compute_hash,
6388 vn_reference_compute_hash, vn_reference_insert): Remove.
6389 (vn_reference_lookup_call): New function.
6390 * tree-ssa-sccvn.c (vn_reference_compute_hash,
6391 copy_reference_ops_from_ref, copy_reference_ops_from_call,
6392 vn_reference_insert, vn_nary_op_compute_hash): Make static.
6393 (create_reference_ops_from_call): Remove.
6394 (vn_reference_lookup_3): Properly update shared_lookup_references.
6395 (vn_reference_lookup_pieces): Assert that we updated
6396 shared_lookup_references properly.
6397 (vn_reference_lookup): Likewise.
6398 (vn_reference_lookup_call): New function.
6399 (visit_reference_op_call): Use it. Avoid re-building the
6401 (visit_reference_op_load): Remove redundant lookup.
6402 (visit_reference_op_store): Perform special tail-merging work
6403 only when possibly doing tail-merging.
6404 (visit_use): Likewise.
6405 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
6407 2014-09-01 Jakub Jelinek <jakub@redhat.com>
6410 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
6411 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
6412 (find_inc): Revert 2014-08-13 change.
6414 2014-09-01 Marek Polacek <polacek@redhat.com>
6417 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
6418 Change the type of V to unsigned HOST_WIDE_INT.
6420 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
6422 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
6423 the size of byte markers.
6424 (do_shift_rotate): Fix confusion between host, target and marker byte
6426 (verify_symbolic_number_p): Likewise.
6427 (find_bswap_or_nop_1): Likewise.
6428 (find_bswap_or_nop): Likewise.
6430 2014-09-01 Olivier Hainque <hainque@adacore.com>
6432 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
6433 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
6435 2014-09-01 Jakub Jelinek <jakub@redhat.com>
6437 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
6438 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
6439 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
6441 2014-09-01 Yury Gribov <y.gribov@samsung.com>
6445 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
6446 (build_check_stmt): Likewise.
6447 (instrument_strlen_call): Likewise.
6448 (asan_expand_check_ifn): Likewise and fix types.
6449 (maybe_cast_to_ptrmode): New function.
6451 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6453 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
6455 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
6457 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
6459 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
6461 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
6462 prefix to function labels when generating fast indirect calls.
6464 2014-08-30 David Malcolm <dmalcolm@redhat.com>
6468 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
6469 param back from rtx_insn * to rtx. Rename param from "label" to
6470 "label_or_return", reintroducing "label" as an rtx_insn * after
6471 we've ensured it's not a RETURN.
6472 (first_active_target_insn): Likewise for return type and param;
6473 add a checked cast to rtx_insn * once we've ensured "insn" is not
6475 (steal_delay_list_from_target): Convert param "pnew_thread" back
6476 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
6478 (own_thread_p): Convert param "thread" back from an rtx_insn * to
6479 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
6480 cast once we've established we're not dealing with a RETURN,
6481 renaming subsequent uses of "thread" to "thread_insn".
6482 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
6484 (follow_jumps): Convert return type and param "label" from
6485 rtx_insn * back to rtx. Move initialization of "value" to after
6486 the handling for ANY_RETURN_P, adding a checked cast there to
6487 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
6488 rename to "this_label_or_return", reintroducing "this_label" as
6489 an rtx_insn * once we've handled the case where it could be an
6491 (fill_slots_from_thread): Rename param "thread" to
6492 "thread_or_return", converting from an rtx_insn * back to an rtx.
6493 Reintroduce name "thread" as an rtx_insn * local with a checked
6494 cast once we've handled the case of it being an ANY_RETURN_P.
6495 Convert local "new_thread" from an rtx_insn * back to an rtx.
6496 Add a checked cast when assigning to "trial" from "new_thread".
6497 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
6498 checked cast to rtx_insn * from "new_thread" when invoking
6500 (fill_eager_delay_slots): Convert locals "target_label",
6501 "insn_at_target" from rtx_insn * back to rtx.
6502 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
6503 (relax_delay_slots): Convert locals "trial", "target_label" from
6504 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
6505 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
6506 invoking update_block.
6507 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
6508 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
6510 * resource.h (mark_target_live_regs): Undo erroneous conversion
6511 of second param of r214693, converting it back from rtx_insn * to
6512 rtx, since it could be a RETURN.
6514 * resource.c (find_dead_or_set_registers): Similarly, convert
6515 param "jump_target" back from an rtx_insn ** to an rtx *, as we
6516 could be writing back a RETURN. Rename local rtx_insn * "next" to
6517 "next_insn", and introduce "lab_or_return" as a local rtx,
6518 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
6519 (mark_target_live_regs): Undo erroneous conversion
6520 of second param of r214693, converting it back from rtx_insn * to
6521 rtx, since it could be a RETURN. Rename it from "target" to
6522 "target_maybe_return", reintroducing the name "target" as a local
6523 rtx_insn * with a checked cast, after we've handled the case of
6526 2014-08-29 DJ Delorie <dj@redhat.com>
6528 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
6529 pointer size up to a power of two.
6530 * defaults.h (DWARF2_ADDR_SIZE): Round up.
6531 (POINTER_SIZE_UNITS): New, rounded up value.
6532 * dwarf2asm.c (size_of_encoded_value): Use it.
6533 (dw2_output_indirect_constant_1): Likewise.
6534 * expmed.c (init_expmed_one_conv): We now know the sizes of
6536 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
6537 * optabs.c (expand_float): Use precision, not size.
6538 (expand_fix): Likewise.
6539 * simplify-rtx (simplify_unary_operation_1): Likewise.
6540 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6541 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
6542 (default_assemble_integer) Likewise.
6543 (dump_tm_clone_pairs): Likewise.
6544 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
6545 * var-tracking.c (adjust_mems): Allow partial-int modes also.
6546 (prepare_call_arguments): Likewise.
6547 * stor-layout.c (finalize_type_size): Preserve precision.
6548 (layout_type): Use precision, not size.
6550 * expr.c (convert_move): If the target has an explicit converter,
6553 2014-08-29 David Malcolm <dmalcolm@redhat.com>
6555 * gdbinit.in: Skip various inline functions in rtl.h when
6558 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
6561 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
6563 2014-08-29 Richard Biener <rguenther@suse.de>
6565 PR tree-optimization/62291
6566 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
6567 exactly the vector size needed and use quick_push.
6568 (phi_translate_1): Adjust comment.
6569 (valid_in_sets): Remove block argument and remove pointless
6571 (dependent_clean): Adjust for removal of block argument.
6573 (compute_antic_aux): Likewise.
6574 (compute_partial_antic_aux): Likewise.
6576 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
6577 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6578 Anna Tikhonova <anna.tikhonova@intel.com>
6579 Ilya Tocar <ilya.tocar@intel.com>
6580 Andrey Turetskiy <andrey.turetskiy@intel.com>
6581 Ilya Verbin <ilya.verbin@intel.com>
6582 Kirill Yukhin <kirill.yukhin@intel.com>
6583 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6585 * config/i386/sse.md
6586 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
6587 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
6588 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
6589 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
6591 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
6592 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6593 Anna Tikhonova <anna.tikhonova@intel.com>
6594 Ilya Tocar <ilya.tocar@intel.com>
6595 Andrey Turetskiy <andrey.turetskiy@intel.com>
6596 Ilya Verbin <ilya.verbin@intel.com>
6597 Kirill Yukhin <kirill.yukhin@intel.com>
6598 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6600 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
6601 * config/i386/sse.md
6602 (define_mode_iterator VI4_128_8_256): New.
6603 (define_mode_iterator VI2_128_4_256): Ditto.
6604 (define_mode_iterator PMOV_DST_MODE): Rename into
6605 (define_mode_iterator PMOV_DST_MODE_1): this.
6606 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
6607 Use PMOV_DST_MODE_1 mode iterator.
6608 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6610 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6612 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
6613 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
6614 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
6615 (define_mode_iterator PMOV_DST_MODE_2): New.
6616 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
6617 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
6618 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
6620 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
6621 (define_mode_attr pmov_dst_3): Ditto.
6622 (define_mode_attr pmov_dst_zeroed_3): Ditto.
6623 (define_mode_attr pmov_suff_3): Ditto.
6624 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
6625 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
6626 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
6627 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
6628 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
6629 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
6630 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
6631 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
6632 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
6633 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
6634 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
6635 (define_mode_attr pmov_dst_4): Ditto.
6636 (define_mode_attr pmov_dst_zeroed_4): Ditto.
6637 (define_mode_attr pmov_suff_4): Ditto.
6638 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
6639 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
6640 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
6641 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
6642 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
6643 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
6644 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
6645 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
6646 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
6647 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
6648 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
6650 2014-08-29 Richard Biener <rguenther@suse.de>
6652 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
6653 NON_LVALUE_EXPR in gimple.
6655 2014-08-29 Richard Biener <rguenther@suse.de>
6658 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
6659 from previous refactoring.
6660 (gimple_fold_builtin_strncpy): Likewise.
6662 2014-08-29 David Malcolm <dmalcolm@redhat.com>
6665 * function.c (assign_parm_setup_reg): Remove erroneous checked
6666 cast to rtx_insn * on result of gen_extend_insn in favor of
6667 introducing a new local rtx "pat".
6669 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6671 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
6673 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
6675 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6677 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
6678 (next_insn): Likewise.
6679 * emit-rtl.c (next_insn): Likewise.
6680 (previous_insn): Likewise.
6681 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
6682 "insn" and "next" from rtx to rtx_insn *.
6683 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
6684 "insn", "insn1", "vliw_start", "prologue_end_note",
6685 "last_insn_in_packet".
6687 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6689 * shrink-wrap.h (active_insn_between): Strengthen both params from
6691 * function.c (active_insn_between): Likewise.
6693 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6695 * genattr.c (main): When writing out insn-attr.h, strengthen param
6696 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
6697 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
6698 writing out the definition of dfa_clear_single_insn_cache to the
6699 generated insn-automata.c
6701 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6703 * resource.h (clear_hashed_info_for_insn): Strengthen param from
6705 (incr_ticks_for_insn): Likewise.
6706 (init_resource_info): Likewise.
6708 * resource.c (init_resource_info): Likewise.
6709 (clear_hashed_info_for_insn): Likewise.
6710 (incr_ticks_for_insn): Likewise.
6712 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
6714 (steal_delay_list_from_target): Use methods of "seq".
6715 (try_merge_delay_insns): Use methods of "merged_insns".
6716 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
6717 (reorg_redirect_jump): Likewise for param "jump".
6719 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6721 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
6723 * config/s390/s390.c (s390_split_branches): Eliminate top-level
6724 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
6726 (s390_mainpool_finish): In three places, split out a local rtx
6727 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
6728 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
6729 and split another local rtx "insn" out into rtx "pat" and
6731 * config/sh/sh.c (output_branchy_insn): Rather than working
6732 directly on operands[9], introduce local rtx_code_label *
6733 variables named "lab" in two places, working on them, and then
6734 assigning them to operands[9], so that the intervening operations
6735 are known by the type system to be on insns.
6737 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6739 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
6742 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
6743 in invocation of INSN_HAS_LOCATION.
6745 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6747 * config/rs6000/altivec.h (vec_xl): New #define.
6748 (vec_xst): Likewise.
6749 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
6750 (XXSPLTD_V2DI): Likewise.
6751 (DIV_V2DI): Likewise.
6752 (UDIV_V2DI): Likewise.
6753 (MUL_V2DI): Likewise.
6754 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6755 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
6756 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
6757 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
6758 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
6759 (UNSPEC_VSX_DIVSD): Likewise.
6760 (UNSPEC_VSX_DIVUD): Likewise.
6761 (UNSPEC_VSX_MULSD): Likewise.
6762 (vsx_mul_v2di): New insn-and-split.
6763 (vsx_div_v2di): Likewise.
6764 (vsx_udiv_v2di): Likewise.
6765 (vsx_xxspltd_<mode>): New insn.
6767 2014-08-28 David Malcolm <dmalcolm@redhat.com>
6769 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
6771 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
6772 (NEXT_INSN): Likewise.
6773 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
6774 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
6776 (no_labels_between_p): Likewise for both params.
6778 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
6779 cast when using NEXT_INSN on operands[2].
6780 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
6781 "insn" from rtx to rtx_insn *, adding a checked cast.
6782 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
6784 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
6786 (arc_text_label): Likewise for param "insn".
6787 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
6789 (arc_ccfsm_record_condition): Likewise for param "jump".
6790 (arc_text_label): Likewise for local "label".
6791 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
6792 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
6793 a method for typesafety. Add a checked cast.
6794 * config/arc/constraints.md (Clb): Add a checked cast when getting
6795 the CODE_LABEL from a LABEL_REF.
6796 * config/arm/arm.c (require_pic_register): Strengthen locals
6797 "seq", "insn" from rtx to rtx_insn *.
6798 (create_fix_barrier): Likewise for locals "selected", "next".
6799 (thumb1_reorg): Likewise for locals "prev", "insn".
6800 (arm_expand_prologue): Likewise for local "last".
6801 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
6803 (thumb2_output_casesi): Likewise for operands[2].
6804 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
6805 strengthen local "insn" from rtx to rtx_insn *.
6806 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
6807 type and param "insn".
6808 (find_prev_insn_start): Likewise.
6809 (hwloop_optimize): Likewise for locals "insn", "last_insn",
6811 (gen_one_bundle): Likewise for loal "t".
6812 (find_load): Likewise for param "insn".
6813 (workaround_speculation): Likewise for locals "insn", "next",
6814 "target", "next_tgt".
6815 * config/c6x/c6x.c (assign_reservations): Likewise for both params
6816 and for locals "insn", "within", "last".
6817 (count_unit_reqs): Likewise for params "head", "tail" and local
6819 (try_rename_operands): Likewise for params "head", "tail".
6820 (reshuffle_units): Likewise for locals "head", "tail", "insn".
6821 (struct c6x_sched_context): Likewise for fields
6822 "last_scheduled_insn", "last_scheduled_iter0".
6823 (init_sched_state): Replace NULL_RTX with NULL.
6824 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
6826 (undo_split_delayed_nonbranch): Likewise for param and for local
6828 (conditionalize_after_sched): Likewise for local "insn".
6829 (bb_earliest_end_cycle): Likewise.
6830 (filter_insns_above): Likewise for locals "insn", "next".
6831 (hwloop_optimize): Remove redundant checked cast.
6832 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
6833 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
6835 (cris_simple_epilogue): Likewise.
6836 (cris_expand_prologue): Likewise.
6837 (cris_expand_epilogue): Likewise.
6838 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
6839 local "insn" from rtx to rtx_insn *.
6840 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
6841 (struct frv_packet_group): Likewise for the elements within array
6842 fields "insns", "sorted", and for field "nop".
6843 (frv_packet): Likewise for the elements within array field
6845 (frv_add_insn_to_packet): Likewise for param "insn".
6846 (frv_insert_nop_in_packet): Likewise for param "insn" and local
6848 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
6849 (frv_sort_insn_group_1): Likewise for local "insn".
6850 (frv_optimize_membar_local): Likewise.
6851 (frv_align_label): Likewise for locals "x", "last", "barrier",
6853 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
6855 (ia64_sched_init): Likewise for local "insn".
6856 (scheduled_good_insn): Likewise for param "last".
6857 (struct _ia64_sched_context): Likewise for field
6858 "last_scheduled_insn".
6859 (ia64_init_sched_context): Replace NULL_RTX with NULL.
6860 (struct bundle_state): Likewise for field "insn".
6861 (issue_nops_and_insn): Likewise for param "insn".
6862 (get_next_important_insn): Likewise for return type and both
6864 (ia64_add_bundle_selector_before): Likewise for param "insn".
6865 (bundling): Likewise for params "prev_head_insn", "tail" and
6866 locals "insn", "next_insn", "b". Eliminate top-level local rtx
6867 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
6868 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
6869 Strengthen final param from rtx to rtx_insn *.
6870 (iq2000_move_1word): Likewise for second param.
6871 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
6872 param "cur_insn" and local "next_insn".
6873 (iq2000_move_1word): Likewise for param "insn".
6874 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
6875 casts when using NEXT_INSN on operands[1].
6876 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
6877 "insn" from rtx to rtx_insn *.
6878 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
6879 "x", introducing local rtx_insn * "insn" for when working with the
6880 CODE_LABEL of the LABEL_REF.
6881 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
6883 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
6885 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
6887 (conditionalize_block): Likewise for return type and param.
6888 (mcore_is_dead): Likewise for param "first" and local "insn".
6889 (emit_new_cond_insn): Likewise for return type.
6890 (conditionalize_block): Likewise for return type, param, and
6891 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
6893 (conditionalize_optimization): Likewise for local "insn".
6894 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
6896 * config/microblaze/microblaze.md: Add checked casts when using
6898 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
6899 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
6900 and rtx_insn * "insn".
6901 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
6902 checked cast when using NEXT_INSN on operands[2].
6903 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
6904 local "insn" from rtx to rtx_insn *.
6905 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
6907 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
6908 Add a checked cast when using NEXT_INSN on operands[1].
6909 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
6911 (pa_output_cbranch): Likewise for final param.
6912 (pa_output_lbranch): Likewise for second param.
6913 (pa_output_bb): Likewise for third param.
6914 (pa_output_bvb): Likewise.
6915 (pa_output_dbra): Likewise for second param.
6916 (pa_output_movb): Likewise.
6917 (pa_output_parallel_movb): Likewise.
6918 (pa_output_parallel_addb): Likewise.
6919 (pa_output_millicode_call): Likewise for first param.
6920 (pa_output_mul_insn): Likewise for second param.
6921 (pa_output_div_insn): Likewise for third param.
6922 (pa_output_mod_insn): Likewise for second param.
6923 (pa_jump_in_call_delay): Likewise for param.
6924 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
6925 (pa_output_div_insn): Likewise.
6926 (pa_output_mod_insn): Likewise.
6927 (pa_output_cbranch): Likewise.
6928 (pa_output_lbranch): Likewise.
6929 (pa_output_bb): Likewise.
6930 (pa_output_bvb): Likewise.
6931 (pa_output_dbra): Likewise.
6932 (pa_output_movb): Likewise.
6933 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
6934 to simplify and for typesafety.
6935 (pa_output_call): Use method of rtx_sequence *.
6936 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
6937 (pa_jump_in_call_delay): Likewise.
6938 (pa_output_parallel_movb): Likewise.
6939 (pa_output_parallel_addb): Likewise.
6940 (pa_following_call): Likewise.
6941 (pa_combine_instructions): Likewise for locals "anchor",
6943 (pa_can_combine_p): Likewise for params "anchor", "floater" and
6944 locals "start", "end".
6945 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
6946 param "insn" and local "local_insn".
6947 (picochip_final_prescan_insn): Likewise for local "local_insn".
6948 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
6950 (uses_TOC): Likewise.
6951 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
6952 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
6953 splitting out to more tightly-scoped locals, 3 as rtx and one as
6955 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
6957 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
6959 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
6961 (fixup_addr_diff_vecs): Likewise.
6962 (reg_unused_after): Likewise for param 2.
6963 (sh_can_redirect_branch): Likewise for both params.
6964 (check_use_sfunc_addr): Likewise for param 1.
6965 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
6966 (find_barrier): Likewise for local "last_got".
6967 (gen_block_redirect): Likewise for return type, param "jump" and
6968 locals "prev", "scan", "next", "insn".
6969 (struct far_branch): Likewise for fields "near_label",
6970 "insert_place", "far_label".
6971 (gen_far_branch): Likewise for local "jump".
6972 (fixup_addr_diff_vecs): Likewise for param "first" and locals
6974 (barrier_align): Likewise for param and for locals "prev", "x".
6975 Introduce local rtx_sequence * "prev_seq" and use insn method for
6976 typesafety and clarity.
6977 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
6978 (get_dest_uid): Likewise for local "dest".
6979 (split_branches): Likewise for locals "next", "beyond", "label",
6980 "block", "far_label". Add checked casts when assigning to
6981 bp->far_label and "far_label".
6982 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
6983 (sequence_insn_p): Likewise.
6984 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
6985 more loop-scoped rtx "insn" when walking LABEL_REFS.
6986 (sh_can_redirect_branch): Strengthen both params from rtx to
6988 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
6989 new local rtx_sequence * "seq" via a dyn_cast, and use a method
6990 for clarity and typesafety.
6991 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
6992 "insn" from rtx to rtx_insn *.
6993 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
6994 when using NEXT_INSN on the CODE_LABEL in operands[2].
6995 (define_insn "casesi_worker_2"): Likewise.
6996 (define_insn "casesi_shift_media"): Likewise.
6997 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
6999 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7000 Strengthen field "insn" from rtx to rtx_insn *.
7001 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7002 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7003 param "start_insn" and local "start_insn".
7004 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7006 (find_set_of_reg_bb): Likewise for param "insn".
7007 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7008 (trace_reg_uses): Likewise for param "start_insn".
7009 (sh_treg_combine::cbranch_trace): Likewise for field
7011 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7013 (sh_treg_combine::record_set_of_reg): Likewise for param
7014 "start_insn" and local "i".
7015 (sh_treg_combine::can_remove_cstore): Likewise for local
7017 (sh_treg_combine::try_optimize_cbranch): Likewise for param
7019 (sh_treg_combine::execute): Likewise for local "i".
7020 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7022 (sparc_check_64): Likewise for second param.
7023 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7024 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
7025 dyn_cast, using its insn method for typesafety and clarity.
7026 (empty_delay_slot): Strengthen param "insn" from rtx to
7028 (set_extends): Likewise.
7029 (sparc_check_64): Likewise.
7030 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7031 for locals "seq", "last_insn".
7032 (combine_bnp): Likewise for param "insn".
7033 (xstormy16_reorg): Likewise for local "insn".
7034 * config/v850/v850.c (substitute_ep_register): Likewise for params
7035 "first_insn", "last_insn" and local "insn".
7036 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7037 elements of "regs" array, and local "insn".
7038 * except.c (emit_note_eh_region_end): Likewise for param "insn".
7039 * final.c (final_sequence): Strengthen this global from rtx to
7041 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7043 (final_scan_insn): Update assignment to "final_sequence" to be
7044 from "seq", the cast version of "body", for type-safety.
7045 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7046 "insns" from rtx to rtx_insn *.
7047 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7048 * genattr.c (main): When writing out generated insn-attr.h,
7049 strengthen params 1 and 3 of eligible_for_delay,
7050 eligible_for_annul_true, eligible_for_annul_false from rtx to
7052 * genattrtab.c (write_eligible_delay): Likewise when writing out
7053 generated insn-attrtab.c; also local "insn" the generated
7055 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7057 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7058 "start_label" from rtx to rtx_insn *.
7059 * ira.c (decrease_live_ranges_number): Likewise for local "p".
7060 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7061 "insns" and local "insn".
7062 (validate_equiv_mem): Likewise for param "start" and local "insn".
7063 (memref_used_between_p): Likewise for params "start", "end" and
7065 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7067 * loop-doloop.c (doloop_optimize): Within region guarded by
7068 INSN_P (doloop_pat), introduce a new local rtx_insn *
7069 "doloop_insn" via a checked cast, and use it for typesafety,
7070 eventually writing the value back into doloop_pat.
7071 * output.h (final_sequence): Strengthen this global from rtx to
7073 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7074 reintroducing "insn" as an rtx_insn * via a checked cast.
7075 Strengthen param "attempt" and local "new_insn"from rtx to
7077 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7079 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7080 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7081 "p" in favor of more tightly-scoped replacements, sometimes rtx
7082 and sometimes rtx_insn *, as appropriate.
7083 (delete_output_reload): Eliminate top-level rtx "i1", splitting
7084 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7085 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
7086 local "trial" from rtx to rtx_insn *.
7087 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7088 rtx to rtx_insn *. Strenghten local "pat" from rtx to
7089 rtx_sequence * and use methods for clarity and typesafety.
7090 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7091 rtx to rtx_insn *. Strenghten local "li" from rtx to
7092 rtx_insn_list * and use its methods for clarity and typesafety.
7093 (steal_delay_list_from_target): Strengthen param "insn" from rtx
7095 (steal_delay_list_from_fallthrough): Likewise.
7096 (try_merge_delay_insns): Likewise for param "thread" and locals
7097 "trial", "next_trial", "delay_insn".
7098 (redundant_insn): Likewise for param "target" and local "trial".
7099 (own_thread_p): Likewise for param "thread" and locals
7100 "active_insn", "insn".
7101 (get_label_before): Likewise for param "insn".
7102 (fill_simple_delay_slots): Likewise for local "new_label"; use
7103 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7104 (label_before_next_insn): Strengthen return type and local "insn"
7105 from rtx to rtx_insn *.
7106 (relax_delay_slots): Likewise for locals "other", "tmp".
7107 (make_return_insns): Likewise for param "first" and locals "insn",
7108 "jump_insn", "prev". Move declaration of "pat" to its assignment
7109 and strengthen from rtx to rtx_sequence *. Use its methods for
7110 clarity and typesafety.
7111 * rtlanal.c (no_labels_between_p): Strengthen params from
7112 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
7114 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7115 from const_rtx to const rtx_insn *.
7116 (reg_set_between_p): Rename param "from_insn" to
7117 "uncast_from_insn", and reintroduce "from_insn" as a
7118 const rtx_insn * via a checked cast.
7119 (modified_between_p): Likewise for param "start" as "uncast_start".
7120 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7121 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7122 "tmp", head" from rtx to rtx_insn *.
7123 (recompute_rev_top_order): Likewise for local "insn".
7124 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7125 * store-motion.c (build_store_vectors): Likewise for local "insn".
7126 Strengthen local "st" from rtx to rtx_insn_list * and use methods
7127 for clarity and typesafety.
7128 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7130 (computation_cost): Likewise for local "seq".
7131 (get_address_cost): Likewise.
7133 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7135 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7137 (label_is_jump_target_p): Likewise for second param.
7139 * rtlanal.c (tablejump_p): Likewise for param "insn".
7140 (label_is_jump_target_p): Likewise for param "jump_insn".
7142 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7144 * rtl.h (find_first_parameter_load): Strengthen return type and
7145 both params from rtx to rtx_insn *.
7146 * rtlanal.c (find_first_parameter_load): Strengthen return type,
7147 both params and locals "before", "first_set" from rtx to
7148 rtx_insn *. Remove now-redundant cast.
7149 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7151 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7153 * rtl.h (find_last_value): Delete.
7154 * rtlanal.c (find_last_value): Delete.
7156 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7158 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7159 from rtx to rtx_insn *.
7160 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
7161 rtx "note" with new local rtx_insn * "new_head" when calculating
7162 head insn of new basic block.
7163 * combine.c (combine_split_insns): Strengthen return type and local
7164 "ret" from rtx to rtx_insn *.
7165 (likely_spilled_retval_p): Likewise for locals "use" and "p".
7166 (try_combine): Eliminate local "m_split", splitting into new
7167 locals "m_split_insn" and "m_split_pat".
7168 (find_split_point): Strengthen local "seq" from rtx into
7170 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
7171 locals "label", "branch".
7172 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
7174 (define_expand "umulsi3_highpart"): Likewise for local "insn".
7175 * dse.c (note_add_store_info): Likewise for fields "first",
7177 (note_add_store): Likewise for local "insn".
7178 (emit_inc_dec_insn_before): Likewise for locals "insn",
7180 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
7181 (replace_read): Likewise for locals "insns", "this_insn".
7182 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
7183 (notice_eh_throw): Likewise for param "insn".
7184 (before_next_cfi_note): Likewise for return type, param, and local
7186 (connect_traces): Likewise for local "note".
7187 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
7188 (verify_rtl_sharing): Likewise.
7189 (unshare_all_rtl_in_chain): Likewise for param "insn".
7190 (get_first_nonnote_insn): Likewise for local "insn".
7191 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
7192 "seq" and use its methods to clarify things.
7193 (next_insn): Strengthen return type from rtx to rtx_insn *.
7194 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
7195 local rtx_insn * using a checked cast, dropping a checked cast
7196 made redundant by this change. Use a cast to and method of
7197 rtx_sequence to clarify the code.
7198 (previous_insn): Rename param "insn" to "uncast_insn" and
7199 reintroduce "insn" as a local rtx_insn * using a checked cast,
7200 dropping a checked cast made redundant by this change. Use a cast
7201 to and method of rtx_sequence to clarify the code.
7202 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
7203 reintroduce "insn" as a local rtx_insn * using a checked cast,
7204 dropping a checked cast made redundant by this change.
7205 (next_nonnote_insn_bb): Likewise.
7206 (prev_nonnote_insn): Likewise.
7207 (prev_nonnote_insn_bb): Likewise.
7208 (next_nondebug_insn): Likewise.
7209 (prev_nondebug_insn): Likewise.
7210 (next_nonnote_nondebug_insn): Likewise.
7211 (prev_nonnote_nondebug_insn): Likewise.
7212 (next_real_insn): Likewise.
7213 (prev_real_insn): Likewise.
7214 (next_active_insn): Likewise.
7215 (prev_active_insn): Likewise.
7216 (next_cc0_user): Likewise. Use rtx_sequence and a method for
7218 (prev_cc0_setter): Likewise.
7219 (try_split): Rename param "trial" to "uncast_trial" and
7220 reintroduce "insn" as a local rtx_insn * using a checked cast,
7221 dropping checked casts made redundant by this change.
7222 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
7224 (remove_insn): Rename param "insn" to "uncast_insn" and
7225 reintroduce "insn" as a local rtx_insn * using a checked cast.
7226 (emit_pattern_after_setloc): Likewise for param "after", as
7228 (emit_pattern_after): Likewise. Strengthen local "prev" from
7230 (emit_pattern_before_setloc): Rename param "before" to
7231 "uncast_before" and reintroduce "before" as a local rtx_insn *
7232 using a checked cast. Strengthen locals "first", "last" from
7234 (emit_pattern_before): Likewise rename/cast param "before" to
7235 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
7236 * except.c (copy_reg_eh_region_note_forward): Strengthen param
7237 "first" and local "insn" from rtx to rtx_insn *.
7238 (copy_reg_eh_region_note_backward): Likewise for param "last"
7240 * expr.c (fixup_args_size_notes): Rename param "last" to
7241 "uncast_last" and reintroduce "last" as a local rtx_insn *
7242 using a checked cast. Strengthen local "insn" from rtx to
7244 * function.c (set_insn_locations): Strengthen param "insn" from
7246 (record_insns): Likewise for param "insns" and local "tmp".
7247 (active_insn_between): Rename param "tail" to
7248 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
7249 using a checked cast.
7250 (thread_prologue_and_epilogue_insns): Split out top-level local
7251 rtx "seq" into three different rtx_insn * locals. Strengthen
7252 local "prologue_seq" from rtx to rtx_insn *.
7253 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
7254 from rtx to rtx_insn *.
7255 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
7256 (priority): Likewise for locals "prev_first", "twin".
7257 (setup_insn_max_reg_pressure): Likewise for param "after".
7258 (sched_setup_bb_reg_pressure_info): Likewise.
7259 (no_real_insns_p): Strengthen params from const_rtx to
7261 (schedule_block): Strengthen local "next_tail" from rtx to
7263 * ifcvt.c (find_active_insn_before): Strengthen return type and
7264 param "insn" from rtx to rtx_insn *.
7265 (find_active_insn_after): Likewise.
7266 (cond_exec_process_insns): Likewise for param "start" and local "insn".
7267 (cond_exec_process_if_block): Likewise for locals "then_start",
7268 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
7269 (noce_process_if_block): Likewise for local "jump".
7270 (merge_if_block): Likewise for two locals named "end".
7271 (cond_exec_find_if_block): Likewise for local "last_insn".
7272 * jump.c (delete_related_insns): Rename param "insn" to
7273 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
7274 checked cast. Strengthen local "p" from rtx to rtx_insn *.
7275 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
7277 (split_reg): Likewise.
7278 * lra.c (lra_process_new_insns): Likewise.
7279 * modulo-sched.c (permute_partial_schedule): Strengthen param
7280 "last" from rtx to rtx_insn *.
7281 * optabs.c (add_equal_note): Likewise for param "insns" and local
7283 (expand_binop_directly): Add checked casts to rtx_insn * within
7284 NEXT_INSN (pat) uses.
7285 (expand_unop_direct): Likewise.
7286 (maybe_emit_unop_insn): Likewise.
7287 * recog.c (peep2_attempt): Strengthen locals "last",
7288 "before_try", "x" from rtx to rtx_insn *.
7289 * reorg.c (optimize_skip): Strengthen return type and local
7290 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
7291 and locals "trial", "next_trial" from rtx to rtx_insn *.
7292 * resource.c (next_insn_no_annul): Strengthen return type and
7293 param "insn" from rtx to rtx_insn *. Use a cast to and method of
7294 rtx_sequence to clarify the code.
7295 (mark_referenced_resources): Add a checked cast to rtx_insn *
7296 within PREV_INSN (x).
7297 (find_dead_or_set_registers): Strengthen return type, param
7298 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
7299 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
7301 (mark_target_live_regs): Strengthen params "insns" and "target",
7302 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
7303 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
7305 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
7306 from rtx to rtx_insn *.
7307 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
7308 from rtx to rtx_insn *.
7309 (copy_reg_eh_region_note_backward): Likewise.
7310 (unshare_all_rtl_in_chain): Likewise for sole param.
7311 (dump_rtl_slim): Strengthen second and third params from const_rtx
7312 to const rtx_insn *.
7313 * sched-deps.c (sched_free_deps): Strengthen params "head" and
7314 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
7315 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
7316 "next_tail" from rtx to rtx_insn *.
7317 (begin_move_insn): Likewise for local "next".
7318 * sched-int.h (sched_free_deps): Likewise for first and second
7320 (no_real_insns_p): Strengthen both params from const_rtx to
7322 (sched_setup_bb_reg_pressure_info): Strengthen second params from
7324 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
7326 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
7327 and locals "insn", "tail" from const_rtx to const rtx_insn *.
7328 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
7330 (debug_rtl_slim): Strengthen params "first" and "last" from
7331 const_rtx to const rtx_insn *.
7332 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
7333 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
7334 (convert_to_simple_return): Likewise for param "returnjump".
7335 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
7337 (convert_to_simple_return): Likewise for param "returnjump".
7338 * valtrack.c (propagate_for_debug): Likewise for params
7340 * valtrack.h (propagate_for_debug): Likewise for second param.
7342 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7344 * output.h (insn_current_reference_address): Strengthen param
7345 from rtx to rtx_insn *.
7346 * final.c (insn_current_reference_address): Likewise.
7348 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7350 * basic-block.h (inside_basic_block_p): Strengthen param from
7351 const_rtx to const rtx_insn *.
7352 * cfgbuild.c (inside_basic_block_p): Likewise.
7354 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7356 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
7358 (get_trace_info): Likewise for param "insn".
7359 (save_point_p): Likewise.
7360 (maybe_record_trace_start): Likewise for both params.
7361 (maybe_record_trace_start_abnormal): Likewise.
7362 (create_trace_edges): Likewise for sole param and for three of the
7364 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
7365 to rtx_insn *, and update a call to pat->element to pat->insn.
7367 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7369 * function.h (struct expr_status): Convert field "x_forced_labels"
7370 from rtx_expr_list * to rtx_insn_list *.
7372 * cfgbuild.c (make_edges): Convert local "x" from an
7373 rtx_expr_list * to an rtx_insn_list *, replacing use of
7374 "element" method with "insn" method.
7375 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7376 * except.c (sjlj_emit_dispatch_table): Replace use of
7377 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
7379 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
7380 rtx_expr_list * to an rtx_insn_list *, replacing use of
7381 "element" method with "insn" method.
7382 * reload1.c (set_initial_label_offsets): Likewise for local "x".
7383 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
7384 rtx_insn *, adding a checked cast. Replace use of
7385 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
7387 (expand_label): Likewise for local "label_r".
7389 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7391 * function.h (struct rtl_data): Convert field
7392 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
7394 * rtl.h (remove_node_from_insn_list): New prototype.
7396 * builtins.c (expand_builtin): When prepending to
7397 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
7399 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
7400 to rtx_insn_list *, and use its "insn" method rather than
7402 * cfgrtl.c (delete_insn): Use new function
7403 remove_node_from_insn_list rather than
7404 remove_node_from_expr_list.
7405 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
7406 to rtx_insn_list *, and use its "insn" method rather than
7408 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7409 * reload1.c (set_initial_label_offsets): Likewise for local "x".
7410 * rtlanal.c (remove_node_from_insn_list): New function, adapted
7411 from remove_node_from_expr_list.
7412 * stmt.c (expand_label): When prepending to
7413 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
7416 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7418 * function.h (struct rtl_data): Strengthen fields "x_return_label"
7419 and "x_naked_return_label" from rtx to rtx_code_label *.
7421 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7423 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
7424 (SET_NEXT_INSN): Likewise.
7425 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
7427 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
7428 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
7429 to split out the SEQUENCE from local "bundle", strengthening the
7430 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
7431 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
7432 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
7433 and the type of the elements of the "slot" array from rtx to
7435 (reorg_split_calls): Likewise for locals "insn" and "next", and
7436 the type of the elements of the "slot" array.
7438 * config/frv/frv.c (frv_nops): Likewise for the elements of this
7440 (frv_function_prologue): Likewise for locals "insn", "next",
7442 (frv_register_nop): Introduce a local "nop_insn" to be the
7443 rtx_insn * containing rtx "nop".
7445 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
7446 used as an insn and sometimes as a pattern, so rename it to
7447 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
7448 using it where dealing with the core insn.
7450 * config/picochip/picochip.c (reorder_var_tracking_notes):
7451 Strengthen locals "insn", "next", "last_insn", "queue",
7452 "next_queue", "prev" from rtx to rtx_insn *.
7454 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
7455 the second param is an rtx_insn ** rather than an rtx **.
7456 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
7457 from rtx to rtx_sequence *, and introduce local named "sequence",
7458 using methods of rtx_sequence to clarify the code.
7459 (remove_insn): Introduce local rtx_sequence * named "sequence" and
7461 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
7462 Rename param "after" to "uncast_after", reintroducing "after" as a
7463 local rtx_insn * with a checked cast.
7464 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
7465 reintroducing "after" as a local rtx_insn * with a checked cast.
7466 Strengthen local "last" from rtx to rtx_insn * and remove the
7467 now-redundant checked casts.
7468 (copy_delay_slot_insn): Strengthen return type and param from rtx
7471 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
7472 "last" from rtx to rtx_insn *.
7474 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7476 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
7477 param from rtx to rtx_insn *.
7479 * emit-rtl.c (copy_delay_slot_insn): Likewise.
7481 * reorg.c (skip_consecutive_labels): Strengthen return type, param
7482 and local "insn" from rtx to rtx_insn *.
7483 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
7484 (unfilled_slots_next): Likewise.
7485 (function_return_label): Strengthen from rtx to rtx_code_label *.
7486 (function_simple_return_label): Likewise.
7487 (first_active_target_insn): Strengthen return type and param from
7489 (find_end_label): Strengthen return type from rtx to
7490 rtx_code_label *; strengthen locals as appropriate.
7491 (emit_delay_sequence): Strengthen return type, param "insn" and
7492 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
7493 and local "li" from rtx to rtx_insn_list *, using methods of
7494 rtx_insn_list for clarity and typesafety.
7495 (add_to_delay_list): Strengthen return type and param "insn" from
7496 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
7497 rtx_insn_list * and use methods of rtx_insn_list.
7498 (delete_from_delay_slot): Strengthen return type, param "insn",
7499 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
7500 Strengthen local "seq" from rtx to rtx_sequence *, and local
7501 "delay_list" from rtx to rtx_insn_list *, using methods of
7502 rtx_sequence for clarity and type-safety.
7503 (delete_scheduled_jump): Add checked cast when invoking
7504 delete_from_delay_slot. Strengthen local "trial" from rtx to
7506 (optimize_skip): Strengthen return type and local "delay_list"
7507 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
7509 (steal_delay_list_from_target): Strengthen return type, param
7510 "delay_list" and local "new_delay_list" from rtx to
7511 rtx_insn_list *. Strengthen param "seq" from rtx to
7512 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
7514 Split out local "temp" into multiple more-tightly scoped locals:
7515 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
7516 of rtx_insn_list and rtx_sequence for clarity and typesafety.
7517 Strengthen locals named "trial" from rtx to rtx_insn *.
7518 (steal_delay_list_from_fallthrough): Strengthen return type and
7519 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
7520 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
7521 Strengthen local "trial" from rtx to rtx_insn *.
7522 (try_merge_delay_insns): Strength local "merged_insns" from rtx
7523 to rtx_insn_list * and use its methods. Strengthen local "pat"
7524 from rtx to rtx_sequence * and use its methods. Strengthen locals
7525 "dtrial" and "new_rtx" from rtx to rtx_insn *.
7526 (get_label_before): Strengthen return type and local "label" from
7528 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
7529 "next_trial", "next", prev". Strengthen local "delay_list" from
7530 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
7532 (follow_jumps): Strengthen return type, param "label" and locals
7533 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
7534 (fill_slots_from_thread): Strengthen return type, param
7535 "delay_list" from rtx to rtx_insn_list *. Strengthen params
7536 "insn", "thread", "opposite_thread" and locals "new_thread",
7537 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
7538 "sequence" from a checked cast to rtx_sequence so that we can call
7539 steal_delay_list_from_target and steal_delay_list_from_fallthrough
7540 with an rtx_sequence *.
7541 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
7542 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
7543 Strengthen local "delay_list" from rtx to rtx_insn_list *.
7544 (relax_delay_slots): Strengthen param "first" and locals "insn",
7545 "next", "trial", "delay_insn", "target_label" from rtx to
7546 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
7547 Introduce a local "trial_seq" for PATTERN (trial) of type
7548 rtx_sequence *, in both cases using methods of rtx_sequence.
7549 (dbr_schedule): Strengthen param "first" and locals "insn",
7550 "next", "epilogue_insn" from rtx to rtx_insn *.
7552 2014-08-28 Richard Biener <rguenther@suse.de>
7554 PR tree-optimization/62283
7555 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7556 Do not peel loops for alignment where the vector loop likely
7557 doesn't run at least VF times.
7559 2014-08-28 Bin Cheng <bin.cheng@arm.com>
7561 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
7562 important_candidates. Consider all important candidates if
7563 IVS doesn't give any result. Remove check on ivs->upto.
7564 (try_add_cand_for): Call iv_ca_add_use only once.
7566 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7567 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7568 Anna Tikhonova <anna.tikhonova@intel.com>
7569 Ilya Tocar <ilya.tocar@intel.com>
7570 Andrey Turetskiy <andrey.turetskiy@intel.com>
7571 Ilya Verbin <ilya.verbin@intel.com>
7572 Kirill Yukhin <kirill.yukhin@intel.com>
7573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7575 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
7576 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
7578 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
7579 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
7580 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
7581 (define_insn "*mul<mode>3"): Add EVEX version.
7583 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7584 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7585 Anna Tikhonova <anna.tikhonova@intel.com>
7586 Ilya Tocar <ilya.tocar@intel.com>
7587 Andrey Turetskiy <andrey.turetskiy@intel.com>
7588 Ilya Verbin <ilya.verbin@intel.com>
7589 Kirill Yukhin <kirill.yukhin@intel.com>
7590 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7592 * config/i386/sse.md
7593 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
7594 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
7595 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
7596 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
7597 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
7598 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
7599 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
7600 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
7601 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
7602 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
7603 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
7604 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
7605 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
7606 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
7607 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
7608 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
7610 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7611 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7612 Anna Tikhonova <anna.tikhonova@intel.com>
7613 Ilya Tocar <ilya.tocar@intel.com>
7614 Andrey Turetskiy <andrey.turetskiy@intel.com>
7615 Ilya Verbin <ilya.verbin@intel.com>
7616 Kirill Yukhin <kirill.yukhin@intel.com>
7617 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7619 * config/i386/sse.md
7620 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
7621 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
7622 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
7624 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7625 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7626 Anna Tikhonova <anna.tikhonova@intel.com>
7627 Ilya Tocar <ilya.tocar@intel.com>
7628 Andrey Turetskiy <andrey.turetskiy@intel.com>
7629 Ilya Verbin <ilya.verbin@intel.com>
7630 Kirill Yukhin <kirill.yukhin@intel.com>
7631 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7633 * config/i386/sse.md
7634 (define_mode_iterator VI128_256): New.
7635 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
7637 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7638 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7639 Anna Tikhonova <anna.tikhonova@intel.com>
7640 Ilya Tocar <ilya.tocar@intel.com>
7641 Andrey Turetskiy <andrey.turetskiy@intel.com>
7642 Ilya Verbin <ilya.verbin@intel.com>
7643 Kirill Yukhin <kirill.yukhin@intel.com>
7644 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7646 * config/i386/sse.md
7647 (define_mode_iterator VI8_256_512): New.
7648 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
7650 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7651 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
7653 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
7655 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7657 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
7658 pointer to the cumulative reloc value and return the value for
7660 (compute_reloc_for_rtx): Take a const_rtx. Call
7661 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
7662 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
7663 for_each_rtx for the CONST case.
7665 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7667 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
7668 (mark_constants_in_pattern): ...this new function to iterate over
7670 (mark_constants): Update accordingly.
7672 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7674 * varasm.c: Include rtl-iter.h.
7675 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
7676 Remove the pointer to the cumulative hashval_t and just return
7677 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
7678 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7679 Accumulate the hashval_ts here instead of const_rtx_hash_1.
7681 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7683 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
7684 Give real type of data parameter. Remove return value.
7685 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
7686 to iterate over subrtxes.
7688 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7690 * var-tracking.c (use_narrower_mode_test): Turn from being a
7691 for_each_rtx callback to being a function that examines each
7693 (adjust_mems): Update accordingly.
7695 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7697 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
7698 callback to being a function that examines each subrtx itself.
7699 Remove handling of null rtxes.
7700 (add_uses): Update accordingly.
7702 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7704 * var-tracking.c: Include rtl-iter.h.
7705 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
7706 to being a function that examines each subrtx itself.
7707 (use_type): Update accordingly.
7709 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7711 * store-motion.c: Include rtl-iter.h.
7712 (extract_mentioned_regs_1): Delete.
7713 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
7714 for_each_rtx to iterate over subrtxes.
7716 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7718 * sel-sched.c: Include rtl-iter.h
7719 (count_occurrences_1): Delete.
7720 (count_occurrences_equiv): Turn rtxes into const_rtxes.
7721 Use FOR_EACH_SUBRTX rather than for_each_rtx.
7723 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7725 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
7726 * rtlanal.c (tls_referenced_p_1): Delete.
7727 (tls_referenced_p): Take a const_rtx rather than an rtx.
7728 Use FOR_EACH_SUBRTX rather than for_each_rtx.
7730 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7732 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
7733 (for_each_inc_dec): Take an rtx rather than an rtx *.
7734 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
7735 (cselib_record_sets): Likewise.
7736 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
7737 (check_for_inc_dec): Likewise.
7738 * rtlanal.c (for_each_inc_dec_ops): Delete.
7739 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
7740 rather than a pointer to the memory address. Replace
7741 for_each_inc_dec_ops argument with separate function and data
7742 arguments. Abort on non-autoinc addresses.
7743 (for_each_inc_dec_find_mem): Delete.
7744 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
7745 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
7747 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7749 * rtl.h (find_all_hard_regs): Declare.
7750 * rtlanal.c (find_all_hard_regs): New function.
7751 (record_hard_reg_uses_1): Delete.
7752 (record_hard_reg_uses): Use find_all_hard_regs.
7754 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7756 * rtl.h (replace_label_data): Delete.
7757 (replace_label): Take the old label, new label and update-nuses flag
7758 as direct arguments. Return void.
7759 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
7760 * rtlanal.c (replace_label): Update interface as above. Handle
7761 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
7762 iterator. Use FOR_EACH_SUBRTX_PTR.
7764 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7766 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
7767 with const_rtx parameters.
7768 * varasm.c (get_pool_constant): Likewise.
7769 * rtlanal.c (rtx_referenced_p_1): Delete.
7770 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7771 Assert that the rtx we're looking for is nonnull. Allow searches
7772 for constant pool SYMBOL_REFs.
7774 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7776 * reload1.c: Include rtl-iter.h.
7777 (note_reg_elim_costly): Turn from being a for_each_rtx callback
7778 to being a function that examines each subrtx itself.
7779 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
7781 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7783 * regcprop.c (cprop_find_used_regs_1): Delete.
7784 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7786 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7788 * regcprop.c: Include rtl-iter.h.
7789 (kill_value): Take a const_rtx.
7790 (kill_autoinc_value): Turn from being a for_each_rtx callback
7791 to being a function that examines each subrtx itself.
7792 (copyprop_hardreg_forward_1): Update accordingly.
7794 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7796 * reg-stack.c: Include rtl-iter.h.
7797 (subst_stack_regs_in_debug_insn): Delete.
7798 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
7799 instead of for_each_rtx.
7801 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7803 * lower-subreg.c (find_decomposable_subregs): Turn from being
7804 a for_each_rtx callback to being a function that examines each
7805 subrtx itself. Remove handling of null rtxes.
7806 (decompose_multiword_subregs): Update accordingly.
7808 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7810 * lower-subreg.c (adjust_decomposed_uses): Delete.
7811 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
7812 Remove handling of null rtxes.
7814 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7816 * lower-subreg.c: Include rtl-iter.h.
7817 (resolve_subreg_use): Turn from being a for_each_rtx callback
7818 to being a function that examines each subrtx itself. Remove
7819 handling of null rtxes.
7820 (resolve_reg_notes, resolve_simple_move): Update accordingly.
7821 (decompose_multiword_subregs): Likewise.
7823 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7825 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
7826 to being a function that examines each subrtx itself.
7827 (simplify_using_condition, simplify_using_initial_values): Update
7830 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7832 * loop-iv.c: Include rtl-iter.h.
7833 (find_single_def_src): New function.
7834 (replace_single_def_regs): Turn from being a for_each_rtx callback
7835 to being a function that examines each subrtx itself.
7836 (replace_in_expr, simplify_using_initial_values): Update accordingly.
7838 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7840 * jump.c (eh_returnjump_p_1): Delete.
7841 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
7842 Remove handling of null rtxes.
7844 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7846 * jump.c: Include rtl-iter.h.
7847 (returnjump_p_1): Delete.
7848 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
7849 Remove handling of null rtxes.
7851 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7853 * ira.c: Include rtl-iter.h.
7854 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
7855 to being a function that examines each subrtx itself. Remove
7856 handling of null rtxes.
7857 (update_equiv_regs): Update call accordingly.
7859 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7861 * fwprop.c: Include rtl-iter.h.
7862 (varying_mem_p): Turn from being a for_each_rtx callback to being
7863 a function that examines each subrtx itself.
7864 (propagate_rtx): Update accordingly.
7866 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7868 * function.c: Include rtl-iter.h
7869 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
7870 callback to being a function that examines each subrtx itself.
7871 Return the changed flag.
7872 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
7873 (instantiate_virtual_regs): Update calls accordingly.
7875 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7877 * final.c: Include rtl-iter.h.
7878 (mark_symbol_ref_as_used): Delete.
7879 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
7882 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7884 * emit-rtl.c: Include rtl-iter.h.
7885 (find_auto_inc): Turn from being a for_each_rtx callback to being
7886 a function that examines each subrtx itself. Assume the first operand
7887 to an RTX_AUTOINC is the automodified register.
7888 (try_split): Update call accordingly.
7890 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7892 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
7893 Return a bool, inverting the result so that 0/false means "not ok".
7894 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
7895 subrtxes of a CONST.
7896 (mem_loc_descriptor, add_const_value_attribute)
7897 (resolve_addr_in_expr): Update calls accordingly.
7899 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7901 * dwarf2out.c: Include rtl-iter.h.
7902 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
7903 Remove unused data parameter. Return a bool, inverting the result
7904 so that 0/false means "not ok".
7905 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
7906 instead of for_each_rtx.
7908 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7910 * dse.c: Include rtl-iter.h.
7911 (check_mem_read_rtx): Change void * parameter to real type.
7912 Remove return value.
7913 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
7914 for_each_rtx. Don't handle null rtxes.
7916 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7918 * df-problems.c: Include rtl-iter.h.
7919 (find_memory): Turn from being a for_each_rtx callback to being
7920 a function that examines each subrtx itself. Continue to look for
7921 volatile references even after a nonvolatile one has been found.
7922 (can_move_insns_across): Update calls accordingly.
7924 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7926 * ddg.c (walk_mems_2, walk_mems_1): Delete.
7927 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
7928 to iterate over subrtxes. Return a bool rather than an int.
7930 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7932 * ddg.c: Include rtl-iter.h.
7933 (mark_mem_use_1): Rename to...
7934 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
7935 instead of for_each_rtx.
7936 (mem_read_insn_p): Update accordingly.
7938 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7940 * cse.c (change_cc_mode_args): Delete.
7941 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
7942 a function that examines each subrtx itself. Take the fields of
7943 change_cc_mode_args as argument and return void.
7944 (cse_change_cc_mode_insn): Update calls accordingly.
7946 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7948 * cse.c (is_dead_reg): Change argument to const_rtx.
7949 (dead_debug_insn_data): Delete.
7950 (is_dead_debug_insn): Expand commentary. Turn from being a
7951 for_each_rtx callback to being a function that examines
7952 each subrtx itself. Take the fields of dead_debug_insn_data
7954 (delete_trivially_dead_insns): Update call accordingly.
7956 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7958 * cse.c (check_for_label_ref): Move earlier in file. Turn from
7959 being a for_each_rtx callback to being a function that examines
7961 (cse_extended_basic_block): Update call accordingly.
7963 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7965 * cse.c (check_dependence_data): Delete.
7966 (check_dependence): Change from being a for_each_rtx callback to being
7967 a function that examines all subrtxes itself. Don't handle null rtxes.
7968 (invalidate): Update call accordingly.
7970 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7972 * cse.c: Include rtl-iter.h.
7973 (approx_reg_cost_1): Delete.
7974 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7975 Don't handle null rtxes.
7977 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7979 * cfgcleanup.c: Include rtl-iter.h.
7980 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
7981 to being a function that examines each subrtx itself.
7982 (thread_jump): Update accordingly.
7984 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7986 * combine-stack-adj.c: Include rtl-iter.h.
7987 (record_stack_refs_data): Delete.
7988 (record_stack_refs): Turn from being a for_each_rtx callback
7989 to being a function that examines each subrtx itself.
7990 Take a pointer to the reflist. Invert sense of return value
7991 so that true means success and false means failure. Don't
7993 (combine_stack_adjustments_for_block): Update accordingly.
7995 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7997 * combine.c (record_truncated_value): Turn from being a for_each_rtx
7998 callback to a function that takes an rtx and returns a bool
7999 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8002 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8004 * combine.c: Include rtl-iter.h.
8005 (unmentioned_reg_p_1): Delete.
8006 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8007 Don't handle null rtxes.
8009 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8011 * calls.c: Include rtl-iter.h.
8012 (internal_arg_pointer_based_exp_1): Delete.
8013 (internal_arg_pointer_based_exp): Take a const_rtx.
8014 Use FOR_EACH_SUBRTX to iterate over subrtxes.
8016 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8018 * caller-save.c: Include rtl-iter.h.
8019 (add_used_regs_1): Delete.
8020 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8021 to iterate over subrtxes. Assert that any remaining pseudos
8024 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8026 * bt-load.c: Include rtl-iter.h.
8027 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8028 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
8029 to iterate over subrtxes.
8030 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8031 find_btr_use rather than btr_referenced_p.
8033 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8035 * alias.c: Include rtl-iter.h.
8036 (refs_newer_value_cb): Delete.
8037 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8039 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8041 * rtl-iter.h: New file.
8042 * rtlanal.c: Include it.
8043 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8044 (generic_subrtx_iterator <T>::add_single_to_queue)
8045 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8046 (generic_subrtx_iterator <T>::free_array): New functions.
8047 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8048 (generic_subrtx_iterator <const_rtx_accessor>)
8049 (generic_subrtx_iterator <rtx_var_accessor>
8050 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8051 (setup_reg_subrtx_bounds): New function.
8052 (init_rtlanal): Call it.
8054 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8057 * config/sh/sh.md (ashlsi3): Handle negative shift count for
8059 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8061 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
8063 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8065 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8067 * rtl.h (JUMP_LABEL_AS_INSN): New.
8069 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8071 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8073 (alloc_EXPR_LIST): Strengthen return type from rtx to
8075 (remove_free_EXPR_LIST_node): Likewise for param.
8076 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8077 from rtx to rtx_expr_list *.
8078 * sched-int.h (struct deps_desc): Strengthen fields
8079 "pending_read_mems" and "pending_write_mems" from rtx to
8082 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8083 rtx to rtx_expr_list *.
8084 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8085 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8087 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
8088 from rtx to rtx_expr_list *.
8089 * loop-iv.c (simplify_using_initial_values): Strengthen local
8090 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8091 "pnote_next" from rtx * to rtx_expr_list **.
8092 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
8093 param "exprp" from rtx * to rtx_expr_list **.
8094 (add_insn_mem_dependence): Strengthen local "mem_list" from
8095 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
8097 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8098 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
8099 param "old_mems_p" from rtx * to rtx_expr_list **.
8100 * var-tracking.c (struct adjust_mem_data): Strengthen field
8101 "side_effects" from rtx to rtx_expr_list *.
8102 (adjust_insn): Replace NULL_RTX with NULL when assigning to
8104 (prepare_call_arguments): Likewise.
8106 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8108 * function.h (struct rtl_data): Strengthen field
8109 "x_stack_slot_list" from rtx to rtx_expr_list *.
8111 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8112 when assigning to stack_slot_list.
8114 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8116 * function.h (struct rtl_data): Strengthen field
8117 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8118 * rtl.h (remove_node_from_expr_list): Strengthen second param from
8119 rtx * to rtx_expr_list **.
8121 * cfgbuild.c (make_edges): In loop over
8122 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8123 rtx_expr_list *, and use methods of the latter class to clarify
8125 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8126 rtx_expr_list *, and use methods of the latter class to clarify
8128 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8129 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8130 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8131 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
8132 to rtx_expr_list *. Use methods of the latter class to clarify
8135 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8137 * function.h (struct expr_status): Strengthen field
8138 "x_forced_labels" from rtx to rtx_expr_list *.
8140 * cfgbuild.c (make_edges): Split local "x" into two locals,
8141 strengthening one from rtx to rtx_expr_list *, and using methods
8143 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8144 loop over forced_labels, introduce strengthen it from rtx to
8145 rtx_expr_list *, using methods to clarify the code.
8146 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8147 to rtx_expr_list *, using methods of said class to clarify the
8149 * reload1.c (set_initial_label_offsets): Split local "x" into two
8150 per-loop variables, strengthening the first from rtx to
8151 rtx_expr_list * and using methods.
8153 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8155 * coretypes.h (class rtx_expr_list): Add forward declaration.
8156 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8157 * gengenrtl.c (special_rtx): Add EXPR_LIST.
8158 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8159 invariant: GET_CODE (X) == EXPR_LIST.
8160 (is_a_helper <rtx_expr_list *>::test): New.
8161 (rtx_expr_list::next): New.
8162 (rtx_expr_list::element): New.
8163 (gen_rtx_EXPR_LIST): New.
8165 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8167 * varasm.c (mark_constants): Convert a GET_CODE check into a
8168 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8169 Use methods of rtx_sequence to clarify the code.
8171 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8173 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
8174 local "seq" via a checked cast, and use methods of rtx_sequence
8175 to simplify the code.
8177 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8179 * resource.c (mark_referenced_resources): Strengthen local
8180 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
8181 using methods of rtx_sequence to clarify the code.
8182 (find_dead_or_set_registers): Within the switch statement, convert
8183 a GET_CODE check to a dyn_cast, introducing local "seq". Within
8184 the JUMP_P handling, introduce another local "seq", adding a
8185 checked cast to rtx_sequence *. In both cases, use methods of
8186 rtx_sequence to clarify the code.
8187 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
8188 via a checked cast, and use methods of rtx_sequence to simplify
8191 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8193 * reorg.c (redundant_insn): In two places in the function, replace
8194 a check of GET_CODE with a dyn_cast, introducing local "seq", and
8195 usings methods of rtx_sequence to clarify the code.
8197 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8199 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
8200 local "seq" with a checked cast, and use methods of rtx_sequence
8201 to clarify the code.
8203 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8205 * function.c (contains): Introduce local "seq" for PATTERN (insn),
8206 with a checked cast, in the region for where we know it's a
8207 SEQUENCE. Use methods of rtx_sequence.
8209 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8211 * final.c (get_attr_length_1): Replace GET_CODE check with a
8212 dyn_cast, introducing local "seq" and the use of methods of
8214 (shorten_branches): Likewise, introducing local "body_seq".
8215 Strengthen local "inner_insn" from rtx to rtx_insn *.
8216 (reemit_insn_block_notes): Replace GET_CODE check with a
8217 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
8218 Use methods of rtx_sequence.
8219 (final_scan_insn): Likewise, introducing local "seq" for when
8220 "body" is known to be a SEQUENCE, using its methods.
8222 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8224 * except.c (can_throw_external): Strengthen local "seq" from rtx
8225 to rtx_sequence *. Use methods of rtx_sequence.
8226 (insn_nothrow_p): Likewise.
8228 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8230 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
8231 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8232 Use methods of rtx_sequence.
8233 (scan_trace): Likewise for local "pat".
8235 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8237 * coretypes.h (class rtx_sequence): Add forward declaration.
8238 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
8239 invariant: GET_CODE (X) == SEQUENCE.
8240 (is_a_helper <rtx_sequence *>::test): New.
8241 (is_a_helper <const rtx_sequence *>::test): New.
8242 (rtx_sequence::len): New.
8243 (rtx_sequence::element): New.
8244 (rtx_sequence::insn): New.
8246 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8248 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
8250 (alloc_INSN_LIST): Strengthen return type from rtx to
8252 (copy_INSN_LIST): Likewise for return type and param.
8253 (concat_INSN_LIST): Likewise for both params and return type.
8254 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
8255 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
8256 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
8257 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
8259 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
8260 "implicit_sets", "control_uses", "clobbers" from rtx to
8262 (struct deps_desc): Likewise for fields "pending_read_insns",
8263 "pending_write_insns", "pending_jump_insns",
8264 "last_pending_memory_flush", "last_function_call",
8265 "last_function_call_may_noreturn", "sched_before_next_call",
8266 "sched_before_next_jump".
8267 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
8268 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
8270 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
8271 from rtx to rtx_insn_list *.
8272 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
8275 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
8276 to rtx_insn_list **.
8277 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
8279 (queue_insn): Likewise for local "link".
8280 (struct haifa_saved_data): Strengthen field "insn_queue" from
8281 rtx * to rtx_insn_list **.
8282 (save_backtrack_point): Update allocation of save->insn_queue to
8283 reflect the strengthening of elements from rtx to rtx_insn_list *.
8284 (queue_to_ready): Strengthen local "link" from rtx to
8285 rtx_insn_list *; use methods "next" and "insn" when traversing the
8287 (early_queue_to_ready): Likewise for locals "link", "next_link",
8289 (schedule_block): Update allocation of insn_queue to reflect the
8290 strengthening of elements from rtx to rtx_insn_list *. Strengthen
8291 local "link" from rtx to rtx_insn_list *, and use methods when
8293 (add_to_speculative_block): Strengthen locals "twins" and
8294 "next_node" from rtx to rtx_insn_list *, and use methods when
8295 working with them. Strengthen local "twin" from rtx to
8296 rtx_insn *, eliminating a checked cast.
8297 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
8298 from rtx to rtx_insn_list *, and use methods when working with
8301 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
8302 from rtx to rtx_insn_list *, adding a checked cast.
8303 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
8305 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
8306 "newlink" from rtx to rtx_insn_list *. Strengthen local
8307 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
8308 from rtx to rtx_insn *.
8309 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
8310 from rtx to rtx_insn_list *. Use methods of the latter class.
8311 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
8312 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
8313 (remove_free_INSN_LIST_node): Strengthen return type and local
8314 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
8315 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
8316 rtx_insn_list *, using "insn" method.
8318 * sched-deps.c (add_dependence_list): Strengthen param "list"
8319 from rtx to rtx_insn_list *, and use methods when working with it.
8320 (add_dependence_list_and_free): Strengthen param "listp" from
8321 rtx * to rtx_insn_list **.
8322 (remove_from_dependence_list): Strenghten param "listp" from rtx *
8323 to rtx_insn_list **, and use methods when working with *listp.
8324 (remove_from_both_dependence_lists): Strengthen param "listp" from
8325 rtx * to rtx_insn_list **
8326 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
8327 to rtx_insn_list **. Eliminate local "link", in favor of two new
8328 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
8330 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
8331 by introducing local "cond_deps".
8332 (remove_from_deps): Strengthen param "insn" from rtx to
8335 * sched-rgn.c (concat_insn_mem_list): Strengthen param
8336 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
8337 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
8338 Use methods of rtx_insn_list.
8340 * store-motion.c (struct st_expr): Strengthen fields
8341 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
8342 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
8344 (find_moveable_store): Split out "tmp" into multiple more-tightly
8345 scoped locals. Use methods of rtx_insn_list *.
8346 (compute_store_table): Strengthen local "tmp" from rtx to
8347 rtx_insn *. Use methods of rtx_insn_list *.
8349 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8351 * coretypes.h (class rtx_insn_list): Add forward declaration.
8352 * rtl.h (class rtx_insn_list): New subclass of rtx_def
8353 (is_a_helper <rtx_insn_list *>::test): New.
8354 (rtx_insn_list::next): New.
8355 (rtx_insn_list::insn): New.
8356 (gen_rtx_INSN_LIST): Add prototype.
8357 * emit-rtl.c (gen_rtx_INSN_LIST): New.
8358 * gengenrtl.c (special_rtx): Add INSN_LIST.
8360 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8362 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
8363 "prev" from rtx to rtx_insn *.
8365 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8367 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
8368 functions. Require merely an rtx for now, not an rtx_insn *.
8369 (BLOCK_FOR_INSN): Likewise.
8370 (INSN_LOCATION): Likewise.
8371 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
8373 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8375 * rtl.h (PATTERN): Convert this macro into a pair of inline
8376 functions, for now, requiring const_rtx and rtx.
8378 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8380 * target.def (unwind_emit): Strengthen param "insn" from rtx to
8382 (final_postscan_insn): Likewise.
8383 (adjust_cost): Likewise.
8384 (adjust_priority): Likewise.
8385 (variable_issue): Likewise.
8386 (macro_fusion_pair_p): Likewise.
8387 (dfa_post_cycle_insn): Likewise.
8388 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
8389 (first_cycle_multipass_issue): Likewise.
8390 (dfa_new_cycle): Likewise.
8391 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
8392 (speculate_insn): Likewise for param "insn".
8393 (gen_spec_check): Likewise for params "insn" and "label".
8394 (get_insn_spec_ds): Likewise for param "insn".
8395 (get_insn_checked_ds): Likewise.
8396 (dispatch_do): Likewise.
8397 (dispatch): Likewise.
8398 (cannot_copy_insn_p): Likewise.
8399 (invalid_within_doloop): Likewise.
8400 (legitimate_combined_insn): Likewise.
8404 * doc/tm.texi: Automatically updated to reflect changes to
8407 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
8409 (schedule_block): Likewise.
8410 (sched_init): Likewise.
8411 (sched_speculate_insn): Strengthen param "insn" from rtx to
8413 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
8415 * hooks.c (hook_bool_rtx_true): Rename to...
8416 hook_bool_rtx_insn_true): ...this, and strengthen first param from
8418 (hook_constcharptr_const_rtx_null): Rename to...
8419 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
8420 first param from const_rtx to const rtx_insn *.
8421 (hook_bool_rtx_int_false): Rename to...
8422 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
8423 param from rtx to rtx_insn *.
8424 (hook_void_rtx_int): Rename to...
8425 (hook_void_rtx_insn_int): ...this, and strengthen first param from
8428 * hooks.h (hook_bool_rtx_true): Rename to...
8429 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
8431 (hook_bool_rtx_int_false): Rename to...
8432 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
8433 param from rtx to rtx_insn *.
8434 (hook_void_rtx_int): Rename to...
8435 (hook_void_rtx_insn_int): ...this, and strengthen first param from
8437 (hook_constcharptr_const_rtx_null): Rename to...
8438 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
8439 first param from const_rtx to const rtx_insn *.
8441 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
8442 and local "prev" from rtx to rtx_insn *.
8444 * sched-int.h (sched_speculate_insn): Strengthen first param from
8447 * sel-sched.c (create_speculation_check): Likewise for local "label".
8448 * targhooks.c (default_invalid_within_doloop): Strengthen param
8449 "insn" from const_rtx to const rtx_insn *.
8450 * targhooks.h (default_invalid_within_doloop): Strengthen param
8451 from const_rtx to const rtx_insn *.
8453 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
8454 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
8456 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
8458 (arc_invalid_within_doloop): Likewise, with const.
8460 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
8461 (arm_cannot_copy_insn_p): Likewise for param "insn".
8462 (arm_unwind_emit): Likewise.
8464 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
8467 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
8468 (c6x_variable_issue): Likewise. Removed now-redundant checked
8470 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
8472 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
8473 Likewise for param "insn".
8474 (epiphany_mode_after): Likewise.
8475 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
8476 params "insn", "dep_insn".
8477 (epiphany_mode_needed): Likewise for param "insn".
8478 (epiphany_mode_after): Likewise.
8480 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
8481 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8482 (ix86_avx_u128_mode_needed): Likewise.
8483 (ix86_i387_mode_needed): Likewise.
8484 (ix86_mode_needed): Likewise.
8485 (ix86_avx_u128_mode_after): Likewise.
8486 (ix86_mode_after): Likewise.
8487 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
8488 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
8489 (ix86_adjust_priority): Likewise for param "insn".
8490 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
8491 (do_dispatch): Likewise.
8492 (has_dispatch): Likewise.
8493 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
8495 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
8496 reflect renaming of default hook implementation from
8497 hook_constcharptr_const_rtx_null to
8498 hook_constcharptr_const_rtx_insn_null.
8499 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
8501 (ia64_variable_issue): Likewise for param "insn".
8502 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
8503 (ia64_dfa_new_cycle): Likewise.
8504 (ia64_get_insn_spec_ds): Likewise.
8505 (ia64_get_insn_checked_ds): Likewise.
8506 (ia64_speculate_insn): Likewise.
8507 (ia64_gen_spec_check): Likewise for params "insn", "label".
8508 (ia64_asm_unwind_emit): Likewise for param "insn".
8510 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
8512 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
8514 (m68k_sched_variable_issue): Likewise for param "insn".
8516 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
8519 * config/microblaze/microblaze.c (microblaze_adjust_cost):
8520 Likewise for params "insn", "dep".
8522 * config/mips/mips.c (mips_adjust_cost): Likewise.
8523 (mips_variable_issue): Likewise for param "insn".
8524 (mips_final_postscan_insn): Likewise.
8526 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
8527 for params "insn", "dep".
8529 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
8531 (pa_adjust_priority): Likewise for param "insn".
8533 * config/picochip/picochip.c (picochip_sched_adjust_cost):
8534 Likewise for params "insn", "dep_insn".
8536 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
8538 (rs6000_variable_issue): Likewise.
8539 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
8540 (rs6000_debug_adjust_cost): Likewise.
8541 (rs6000_adjust_priority): Likewise for param "insn".
8542 (rs6000_use_sched_lookahead_guard): Likewise.
8543 (get_next_active_insn): Likewise for return type and both params.
8544 (redefine_groups): Likewise for params "prev_head_insn", "tail"
8545 and locals "insn", "next_insn".
8546 (pad_groups): Likewise.
8548 * config/s390/s390.c (s390_adjust_priority): Likewise for param
8550 (s390_cannot_copy_insn_p): Likewise.
8551 (s390_sched_variable_issue): Likewise for third param, eliminating
8553 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
8554 default hook implementation from hook_constcharptr_const_rtx_null
8555 to hook_constcharptr_const_rtx_insn_null.
8557 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
8558 from rtx to rtx_insn *.
8559 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
8560 (sh_variable_issue): Likewise for param "insn".
8561 (sh_dfa_new_cycle): Likewise.
8562 (sh_mode_needed): Likewise.
8563 (sh_mode_after): Likewise.
8565 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
8566 params "insn", "dep_insn".
8567 (hypersparc_adjust_cost): Likewise.
8568 (sparc_adjust_cost): Likewise.
8570 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
8571 param, eliminated checked cast.
8572 (spu_sched_adjust_cost): Likewise for first and third params.
8574 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
8575 params "insn" and "dep_insn" from rtx to rtx_insn *.
8577 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
8579 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8581 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
8582 (set_is_load_p): ...this, updating to work on a SET pattern rather
8584 (is_store_insn): Rename to...
8585 (set_is_store_p): ...this, updating to work on a SET pattern
8586 rather than an insn.
8587 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
8588 top of function to where it is needed. Rewrite the bogus
8589 condition that checks for "insn" and "dep" being PARALLEL to
8590 instead use single_set, introducing locals "insn_set" and
8591 "dep_set". Given that we only ever returned "cost" for a non-pair
8592 of SETs, bail out early if we don't have a pair of SET.
8593 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
8594 use the new locals "insn_set" and "dep_set", and update calls to
8595 is_load_insn and is_store_insn to be calls to set_is_load_p and
8598 2014-08-27 Guozhi Wei <carrot@google.com>
8601 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
8602 amount before using it.
8604 2014-08-27 Richard Biener <rguenther@suse.de>
8606 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
8607 get_maxval_strlen inside a more useful API.
8608 (gimple_fold_builtin_with_strlen): Remove and fold into ...
8609 (gimple_fold_builtin): ... caller.
8610 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
8611 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
8612 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
8613 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
8614 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
8615 gimple_fold_builtin_sprintf): Adjust to compute maxval
8618 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
8621 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
8623 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8625 Anna Tikhonova <anna.tikhonova@intel.com>
8626 Ilya Tocar <ilya.tocar@intel.com>
8627 Andrey Turetskiy <andrey.turetskiy@intel.com>
8628 Ilya Verbin <ilya.verbin@intel.com>
8629 Kirill Yukhin <kirill.yukhin@intel.com>
8630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8632 * config/i386/sse.md
8633 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
8634 Use `concat_tg_mode' attribute to determine asm register size.
8636 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8637 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8638 Anna Tikhonova <anna.tikhonova@intel.com>
8639 Ilya Tocar <ilya.tocar@intel.com>
8640 Andrey Turetskiy <andrey.turetskiy@intel.com>
8641 Ilya Verbin <ilya.verbin@intel.com>
8642 Kirill Yukhin <kirill.yukhin@intel.com>
8643 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8645 * config/i386/sse.md
8646 (define_mode_iterator VI48_AVX512VL): New.
8647 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
8648 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
8649 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
8650 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8651 with VI1): Change mode iterator.
8652 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8653 with VI_ULOADSTORE_BW_AVX512VL): New.
8654 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8655 with VI_ULOADSTORE_F_AVX512VL): Ditto.
8656 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8657 with VI1): Change mode iterator.
8658 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8659 with VI_ULOADSTORE_BW_AVX512VL): New.
8660 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8661 with VI_ULOADSTORE_F_AVX512VL): Ditto.
8662 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8663 with VI1): Change mode iterator.
8664 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8665 with VI_ULOADSTORE_BW_AVX512VL): New.
8666 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8667 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
8668 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
8669 (define_insn "<avx512>_storedqu<mode>_mask" with
8670 VI48_AVX512VL): New.
8671 (define_insn "<avx512>_storedqu<mode>_mask" with
8672 VI12_AVX512VL): Ditto.
8674 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8675 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8676 Anna Tikhonova <anna.tikhonova@intel.com>
8677 Ilya Tocar <ilya.tocar@intel.com>
8678 Andrey Turetskiy <andrey.turetskiy@intel.com>
8679 Ilya Verbin <ilya.verbin@intel.com>
8680 Kirill Yukhin <kirill.yukhin@intel.com>
8681 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8683 * config/i386/sse.md
8684 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
8685 (define_mode_iterator VI48_AVX512BW): New.
8686 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
8687 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8688 with VI48_AVX2_48_AVX512F): New.
8689 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8690 with VI2_AVX512VL): Ditto.
8692 2014-08-27 Richard Biener <rguenther@suse.de>
8695 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
8696 (fold_builtin_3): Do not fold strcat_chk here.
8697 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
8699 (gimple_fold_builtin): Fold strcat_chk here.
8701 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
8703 * dwarf2out.h (dwarf2out_decl): Remove prototype.
8704 * dwarf2out.c (dwarf2out_decl): Make static.
8706 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
8708 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
8710 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8712 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
8713 from rtx to rtx_insn *.
8714 (cselib_lookup_from_insn): Likewise for final param.
8715 (cselib_subst_to_values_from_insn): Likewise.
8716 (cselib_add_permanent_equiv): Likewise.
8718 * cselib.c (cselib_current_insn): Likewise for this variable.
8719 (cselib_subst_to_values_from_insn): Likewise for param "insn".
8720 (cselib_lookup_from_insn): Likewise.
8721 (cselib_add_permanent_equiv): Likewise for param "insn" and local
8722 "save_cselib_current_insn".
8723 (cselib_process_insn): Replace use of NULL_RTX with NULL.
8725 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
8726 from rtx to rtx_insn *.
8728 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8730 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
8733 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8735 * df.h (df_dump_insn_problem_function): Strengthen first param of
8736 this callback from const_rtx to const rtx_insn *.
8737 (struct df_insn_info): Strengthen field "insn" from rtx to
8739 (DF_REF_INSN): Eliminate this function, reinstating the older
8741 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
8742 (df_reg_defined): Likewise.
8743 (df_find_use): Likewise.
8744 (df_reg_used): Likewise.
8745 (df_dump_insn_top): Strengthen param 1 from const_rtx to
8747 (df_dump_insn_bottom): Likewise.
8748 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
8749 (df_insn_debug_regno): Likewise.
8750 (debug_df_insn): Likewise.
8751 (df_rd_simulate_one_insn): Likewise for param 2.
8752 (df_word_lr_simulate_defs): Likewise for param 1.
8753 (df_word_lr_simulate_uses): Likewise.
8754 (df_md_simulate_one_insn): Likewise for param 2.
8755 (df_simulate_find_noclobber_defs): Likewise for param 1.
8756 (df_simulate_find_defs): Likewise.
8757 (df_simulate_defs): Likewise.
8758 (df_simulate_uses): Likewise.
8759 (df_simulate_one_insn_backwards): Likewise for param 2.
8760 (df_simulate_one_insn_forwards): Likewise.
8761 (df_uses_create): Likewise for param 2.
8762 (df_insn_create_insn_record): Likewise for param 1.
8763 (df_insn_delete): Likewise.
8764 (df_insn_rescan): Likewise.
8765 (df_insn_rescan_debug_internal): Likewise.
8766 (df_insn_change_bb): Likewise.
8767 (df_notes_rescan): Likewise.
8768 * rtl.h (remove_death): Likewise for param 2.
8769 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
8771 * sched-int.h (reemit_notes): Strengthen param from rtx to
8773 * valtrack.h (propagate_for_debug): Likewise for param 1.
8775 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
8776 local "tmp_rtx" from const_rtx to const rtx_insn *.
8777 * combine.c (remove_death): Strengthen param "insn" from rtx to
8779 (move_deaths): Likewise for local "where_dead".
8780 * cse.c (delete_trivially_dead_insns): Introduce local
8781 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
8782 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
8784 (df_reg_defined): Likewise.
8785 (df_find_use): Likewise.
8786 (df_reg_used): Likewise.
8787 (df_dump_insn_problem_data): Strengthen param "insn" from
8788 const_rtx to const rtx_insn *.
8789 (df_dump_insn_top): Likewise.
8790 (df_dump_insn_bottom): Likewise.
8791 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
8792 (df_insn_debug_regno): Likewise.
8793 (debug_df_insn): Likewise.
8794 (DF_REF_INSN): Delete.
8795 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
8796 from rtx to rtx_insn *.
8797 (df_chain_insn_top_dump): Strengthen param "insn" from
8798 const_rtx to const rtx_insn *.
8799 (df_chain_insn_bottom_dump): Likewise.
8800 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
8802 (df_word_lr_simulate_uses): Likewise.
8803 (df_print_note): Likewise.
8804 (df_remove_dead_and_unused_notes): Likewise.
8805 (df_set_unused_notes_for_mw): Likewise.
8806 (df_set_dead_notes_for_mw): Likewise.
8807 (df_create_unused_note): Likewise.
8808 (df_simulate_find_defs): Likewise.
8809 (df_simulate_find_uses): Likewise.
8810 (df_simulate_find_noclobber_defs): Likewise.
8811 (df_simulate_defs): Likewise.
8812 (df_simulate_uses): Likewise.
8813 (df_simulate_one_insn_backwards): Likewise.
8814 (df_simulate_one_insn_forwards): Likewise.
8815 (df_md_simulate_one_insn): Likewise.
8816 * df-scan.c (df_uses_create): Likewise.
8817 (df_insn_create_insn_record): Likewise.
8818 (df_insn_delete): Likewise.
8819 (df_insn_rescan): Likewise.
8820 (df_insn_rescan_debug_internal): Likewise.
8821 (df_insn_change_bb): Likewise.
8822 (df_notes_rescan): Likewise.
8823 (df_refs_add_to_chains): Likewise.
8824 (df_insn_refs_verify): Likewise.
8825 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
8826 when invoking df_insn_delete.
8827 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
8828 (set_unique_reg_note): Add checked cast.
8829 * final.c (cleanup_subreg_operands): Likewise.
8830 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
8831 "insn" from rtx to rtx_insn *.
8832 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
8833 "last" from rtx to rtx_insn *.
8834 * ira-emit.c (change_regs_in_insn): New function.
8835 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
8836 Invoke change_regs_in_insn rather than change_regs.
8837 * ira.c (update_equiv_regs): Strengthen locals "insn",
8838 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
8839 for_each_rtx_in_insn rather than for_each_rtx.
8840 * recog.c (confirm_change_group): Add checked casts.
8841 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
8843 (peep2_fill_buffer): Add checked cast.
8844 * rtlanal.c (remove_note): Likewise.
8845 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
8846 locals "next" "end" from rtx to rtx_insn *.
8848 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8850 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
8852 (struct reg_use_data): Likewise for field "insn".
8853 (insn_cost): Likewise for param.
8854 (real_insn_for_shadow): Likewise for return type and param.
8855 (increase_insn_priority): Likewise for param 1.
8856 (debug_dependencies): Likewise for both params.
8858 * haifa-sched.c (insn_delay): Likewise for param "insn".
8859 (real_insn_for_shadow): Likewise for return type and param "insn".
8860 (update_insn_after_change): Likewise for param "insn".
8861 (recompute_todo_spec): Likewise for param "next" and locals "pro",
8863 (insn_cost): Likewise for param "insn".
8864 (increase_insn_priority): Likewise.
8865 (calculate_reg_deaths): Likewise.
8866 (setup_insn_reg_pressure_info): Likewise.
8867 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
8868 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
8869 (model_recompute): Likewise.
8870 (must_restore_pattern_p): Likewise for param "next".
8871 (model_excess_cost): Likewise for param "insn".
8872 (queue_remove): Likewise.
8873 (adjust_priority): Likewise for param "prev".
8874 (update_register_pressure): Likewise for param "insn".
8875 (setup_insn_max_reg_pressure): Likewise for local "insn".
8876 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
8877 (model_add_to_schedule): Likewise.
8878 (model_reset_queue_indices): Likewise for local "insn".
8879 (unschedule_insns_until): Strengthen local "recompute_vec" from
8880 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
8881 "con" from rtx to rtx_insn *.
8882 (restore_last_backtrack_point): Likewise for both locals "x". Add
8884 (estimate_insn_tick): Likewise for param "insn".
8885 (commit_schedule): Likewise for params "prev_head", "tail" and
8887 (verify_shadows): Likewise for locals "i1", "i2".
8888 (dump_insn_stream): Likewise for params "head", "tail" and locals
8889 "next_tail", "insn".
8890 (schedule_block): Likewise for locals "insn", "x". Add a checked
8892 (fix_inter_tick): Likewise for params "head", "tail".
8893 (create_check_block_twin): Likewise for local "jump".
8894 (haifa_change_pattern): Likewise for param "insn".
8895 (haifa_speculate_insn): Likewise.
8896 (dump_new_block_header): Likewise for params "head", "tail".
8897 (fix_jump_move): Likewise for param "jump".
8898 (move_block_after_check): Likewise.
8899 (sched_init_insn_luid): Likewise for param "insn".
8900 (sched_init_luids): Likewise for local "insn".
8901 (insn_luid): Likewise for param "insn".
8902 (init_h_i_d): Likewise.
8903 (haifa_init_h_i_d): Likewise for local "insn".
8904 (haifa_init_insn): Likewise for param "insn".
8905 * sched-deps.c (add_dependence): Likewise for local "real_pro",
8907 (create_insn_reg_use): Likewise for param "insn".
8908 (setup_insn_reg_uses): Likewise. Add a checked cast.
8909 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
8910 "tail" from rtx to rtx_insn *.
8911 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
8912 "insn", "next_tail".
8914 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8916 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
8917 from rtx to rtx_insn *.
8918 (model_add_to_schedule): Likewise for locals "start", "end",
8921 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8923 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
8925 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
8926 "to" and locals "insn", "next", "copy". Remove now-redundant
8929 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8931 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
8932 rtx_insn * and param 4 from rtx * to rtx_insn **.
8933 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
8934 param 2 from rtx * to rtx_insn **.
8936 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
8937 rtx_insn * and final param from rtx * to rtx_insn **.
8939 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
8940 from rtx to rtx_insn *.
8941 (try_head_merge_bb): Likewise for both locals named "move_upto".
8942 * df-problems.c (can_move_insns_across): Likewise for params
8943 "from", "to", "across_from", "across_to" and locals "insn",
8944 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
8946 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
8947 from rtx to rtx_insn *.
8948 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
8949 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
8950 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
8952 (noce_try_abs): Likewise.
8953 (noce_get_condition): Likewise for param "jump". Strengthen param
8954 "earliest" from rtx * to rtx_insn **.
8955 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
8957 (find_cond_trap): Likewise.
8958 (dead_or_predicable): Likewise for local "earliest".
8959 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
8961 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
8962 and local "prev". Strengthen param "earliest" from rtx * to
8964 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
8965 Strengthen param "earliest" from rtx * to rtx_insn **.
8967 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8969 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
8970 "to" and local "insn" from rtx to rtx_insn *.
8972 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8974 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
8975 from rtx to rtx_insn *.
8976 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
8977 (code_motion_path_driver): Likewise for local "last_insn".
8978 (simplify_changed_insns): Likewise for local "insn".
8980 2014-08-26 David Malcolm <dmalcolm@redhat.com>
8982 * rtl.h (push_to_sequence): Strengthen param from rtx to
8984 (push_to_sequence2): Likewise for both params.
8985 (delete_insns_since): Likewise for param.
8986 (reorder_insns_nobb): Likewise for all three params.
8987 (set_new_first_and_last_insn): Likewise for both params.
8989 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
8990 rtx_insn *. Remove now-redundant cast.
8991 (set_last_insn): Likewise.
8993 * builtins.c (expand_builtin_return): Strengthen local
8994 "call_fusage" from rtx to rtx_insn *.
8995 * cfgrtl.c (create_basic_block_structure): Likewise for local
8997 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
8998 "first", "last" and local "insn".
8999 (delete_insns_since): Likewise for param "from".
9000 (reorder_insns_nobb): Likewise for params "from", "to", "after"
9002 (push_to_sequence): Likewise for param "first" and local "last".
9003 (push_to_sequence2): Likewise for params "first" and "last".
9004 * lra.c (emit_add3_insn): Likewise for local "last".
9005 (lra_emit_add): Likewise.
9006 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9008 (process_address_1): Likewise for locals "insn", last".
9009 * modulo-sched.c (ps_first_note): Likewise for return type.
9010 * optabs.c (expand_binop_directly): Likewise for param "last".
9012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9014 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9016 * emit-rtl.c (get_last_insn_anywhere): Likewise.
9018 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9020 * function.h (struct sequence_stack): Strengthen fields "first"
9021 and "last" from rtx to rtx_insn *.
9022 (struct emit_status): Likewise for fields "x_first_insn" and
9025 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9026 (set_first_insn): Add checked cast.
9027 (get_last_insn): Remove now-redundant checked cast.
9028 (set_last_insn): Add checked cast.
9030 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9031 "saved_first" and "saved_last" from rtx to rtx_insn *.
9033 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9035 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9036 (unlink_insn_chain): Strengthen both params from rtx to
9039 * cfgrtl.c (cfg_layout_function_header): Likewise for this
9041 (unlink_insn_chain): Likewise for params "first" and "last".
9042 Remove now-redundant checked cast.
9043 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9044 (fixup_reorder_chain): Strengthen local "insn" from rtx to
9046 * emit-rtl.c (link_insn_into_chain): Likewise for all three
9048 (add_insn): Likewise for param "insn" and local "prev".
9049 (add_insn_after_nobb): Likewise for both params and local "next".
9050 (add_insn_before_nobb): Likewise for both params and local "prev".
9051 (add_insn_after): Rename param "after" to "uncast_after",
9052 introducing local "after" with another checked cast.
9053 (add_insn_before): Rename params "insn" and "before", giving them
9054 "uncast_" prefixes, adding the old names back using checked casts.
9055 (emit_note_after): Likewise for param "after".
9056 (emit_note_before): Likewise for param "before".
9057 (emit_label): Add a checked cast.
9059 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9061 * cselib.h (cselib_record_sets_hook): Strengthen initial param
9062 "insn" from rtx to rtx_insn *.
9064 * cselib.c (cselib_record_sets_hook): Likewise.
9066 * var-tracking.c (add_with_sets): Likewise, renaming back from
9067 "uncast_insn" to "insn" and eliminating the checked cast from rtx
9070 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9072 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9073 and "header_" from rtx to rtx_insn *.
9074 (struct basic_block_d): Likewise for field "head_" within "x"
9075 field of union basic_block_il_dependent.
9076 (BB_HEAD): Drop function...
9077 (SET_BB_HEAD): ...and this function in favor of...
9078 (BB_HEAD): ...reinstate macro.
9079 (BB_END): Drop function...
9080 (SET_BB_END): ...and this function in favor of...
9081 (BB_END): ...reinstate macro.
9082 (BB_HEADER): Drop function...
9083 (SET_BB_HEADER): ...and this function in favor of...
9084 (BB_HEADER): ...reinstate macro.
9086 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9087 (fix_crossing_unconditional_branches): Likewise.
9088 * caller-save.c (save_call_clobbered_regs): Likewise.
9089 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9090 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9091 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9092 (merge_blocks_move_successor_nojumps): Likewise.
9093 (outgoing_edges_match): Update use of for_each_rtx to
9094 for_each_rtx_in_insn.
9095 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9096 (expand_gimple_cond): Likewise.
9097 (expand_gimple_tailcall): Likewise.
9098 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9100 (construct_exit_block): Drop use of SET_BB_END.
9101 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9103 (delete_insn): Rename param "insn" to "uncast_insn", introducing
9104 a new local "insn" with a checked cast to rtx_insn *. Drop use of
9105 SET_BB_HEAD and SET_BB_END.
9106 (create_basic_block_structure): Drop use of SET_BB_HEAD and
9108 (rtl_delete_block): Drop use of SET_BB_HEAD.
9109 (rtl_split_block): Drop use of SET_BB_END.
9110 (emit_nop_for_unique_locus_between): Likewise.
9111 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9112 (block_label): Drop use of SET_BB_HEAD.
9113 (fixup_abnormal_edges): Drop use of SET_BB_END.
9114 (record_effective_endpoints): Drop use of SET_BB_HEADER.
9115 (relink_block_chain): Likewise.
9116 (fixup_reorder_chain): Drop use of SET_BB_END.
9117 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9118 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9119 rtx_insn **. Drop use of SET_BB_HEADER.
9120 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9122 (BB_HEAD): Delete this function.
9123 (SET_BB_HEAD): Likewise.
9125 (SET_BB_END): Likewise.
9126 (BB_HEADER): Likewise.
9127 (SET_BB_HEADER): Likewise.
9128 * emit-rtl.c (add_insn_after): Rename param "insn" to
9129 "uncast_insn", adding a new local "insn" and a checked cast to
9130 rtx_insn *. Drop use of SET_BB_END.
9131 (remove_insn): Strengthen locals "next" and "prev" from rtx to
9132 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
9133 (reorder_insns): Drop use of SET_BB_END.
9134 (emit_insn_after_1): Strengthen param "first" and locals "last",
9135 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
9136 (emit_pattern_after_noloc): Add checked cast.
9137 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9138 (restore_other_notes): Likewise.
9139 (move_insn): Likewise.
9140 (sched_extend_bb): Likewise.
9141 (fix_jump_move): Likewise.
9142 * ifcvt.c (noce_process_if_block): Likewise.
9143 (dead_or_predicable): Likewise.
9144 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9145 * reg-stack.c (change_stack): Drop use of SET_BB_END.
9146 * sel-sched-ir.c (sel_move_insn): Likewise.
9147 * sel-sched.c (move_nop_to_previous_block): Likewise.
9149 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9151 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9153 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9155 * basic-block.h (create_basic_block_structure): Strengthen params
9156 1 "head" and 2 "end" from rtx to rtx_insn *.
9157 * cfgrtl.c (create_basic_block_structure): Likewise.
9158 (rtl_create_basic_block): Update casts from void * to rtx to
9159 rtx_insn *, so that we can pass them as rtx_insn * to
9160 create_basic_block_structure.
9161 * sel-sched-ir.c (sel_create_basic_block): Likewise.
9163 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9165 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
9167 (check_for_inc_dec): Strengthen param "insn" from rtx to
9170 * cselib.h (cselib_process_insn): Likewise.
9172 * cselib.c (cselib_record_sets): Likewise.
9173 (cselib_process_insn): Likewise.
9175 * dse.c (struct insn_info): Likewise for field "insn".
9176 (check_for_inc_dec_1): Likewise for local "insn".
9177 (check_for_inc_dec): Likewise for param "insn".
9178 (scan_insn): Likewise.
9179 (dse_step1): Likewise for local "insn".
9181 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
9182 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
9184 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9186 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
9187 from rtx to rtx_insn *.
9188 (DEP_PRO): Delete this function and...
9189 (SET_DEP_PRO): ...this function in favor of...
9190 (DEP_PRO): ...reinstate this macro.
9191 (DEP_CON): Delete this function and...
9192 (SET_DEP_CON): ...this function in favor of...
9193 (DEP_CON): ...reinstate this old macro.
9194 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
9195 (init_dep): Likewise.
9196 (set_priorities): Likewise for both params.
9197 (sd_copy_back_deps): Likewise for params 1 and 2.
9199 * haifa-sched.c (priority): Likewise for param "insn" and local
9201 (set_priorities): Likewise for params "head" and "tail" and local
9203 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
9205 (add_to_speculative_block): Add a checked cast.
9206 (create_check_block_twin): Drop use of SET_DEP_CON.
9207 (add_jump_dependencies): Strengthen params "insn" and "jump" from
9210 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
9211 Drop use of SET_DEP_PRO
9212 (init_dep): Strengthen params "pro" and "con" from rtx to
9214 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
9218 (SET_DEP_PRO): Delete.
9219 (SET_DEP_CON): Delete.
9221 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9223 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
9224 from rtx to rtx_insn *.
9225 (VINSN_INSN_RTX): Eliminate rvalue function and...
9226 (SET_VINSN_INSN): ...lvalue function in favor of...
9227 (VINSN_INSN_RTX): reinstate this old macro.
9229 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
9230 in favor of VINSN_INSN_RTX.
9231 (VINSN_INSN_RTX): Delete this function.
9232 (SET_VINSN_INSN_RTX): Likewise.
9234 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9236 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
9237 (BND_TO): Delete this function and...
9238 (SET_BND_TO): ...this functions in favor of...
9239 (BND_TO): ...reinstating this macro.
9240 (struct _fence): Strengthen field "executing_insns" from
9241 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
9242 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
9243 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
9244 and param "insn" from rtx to insn_t.
9245 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
9248 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
9250 (rtx_vec_t): Likewise.
9251 (struct sched_deps_info_def): Strengthen param of "start_insn"
9252 callback from rtx to rtx_insn *. Likewise for param "insn2" of
9253 "note_mem_dep" callback and first param of "note_dep" callback.
9255 * haifa-sched.c (add_to_speculative_block): Strengthen param
9256 "insn" from rtx to rtx_insn *.
9257 (clear_priorities): Likewise.
9258 (calc_priorities): Likewise for local "insn".
9260 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
9261 Remove redundant checked cast.
9262 (haifa_note_mem_dep): Likewise for param "pending_insn".
9263 (haifa_note_dep): Likewise for param "elem".
9264 (note_mem_dep): Likewise for param "e".
9265 (sched_analyze_1): Add checked casts.
9266 (sched_analyze_2): Likewise.
9268 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
9269 from rtx to rtx_insn *.
9270 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
9271 from vec<rtx> * to vec<rtx_insn *> *.
9273 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
9275 (flist_add): Strengthen param "executing_insns" from
9276 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9277 (advance_deps_context): Remove now-redundant checked cast.
9278 (init_fences): Replace uses of NULL_RTX with NULL.
9279 (merge_fences): Strengthen params "last_scheduled_insn" and
9280 "sched_next" from rtx to rtx_insn * and "executing_insns" from
9281 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9282 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
9283 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
9284 an instruction, rather than doing double-duty as a pattern.
9285 (return_nop_to_pool): Update for change of insn_t.
9286 (deps_init_id): Remove now-redundant checked cast.
9287 (struct sched_scan_info_def): Strengthen param of "init_insn"
9288 callback from rtx to insn_t.
9289 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
9290 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
9292 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
9293 "end" from rtx to rtx_insn *.
9294 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
9295 (rtx insn_rtx, bool force_unique_p)
9296 (BND_TO): Delete function.
9297 (SET_BND_TO): Delete function.
9299 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
9301 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
9302 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
9304 (undo_transformations): Likewise for param "insn".
9305 (update_liveness_on_insn): Likewise.
9306 (compute_live_below_insn): Likewise for param "insn" and local
9308 (update_data_sets): Likewise for param "insn".
9309 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
9310 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
9311 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
9313 (move_cond_jump): Likewise for param "insn".
9314 (move_cond_jump): Drop use of SET_BND_TO.
9315 (compute_av_set_on_boundaries): Likewise.
9316 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
9317 (update_and_record_unavailable_insns): Strengthen local "bb_end"
9318 from rtx to rtx_insn *.
9319 (maybe_emit_renaming_copy): Likewise for param "insn".
9320 (maybe_emit_speculative_check): Likewise.
9321 (handle_emitting_transformations): Likewise.
9322 (remove_insn_from_stream): Likewise.
9323 (code_motion_process_successors): Strengthen local "succ" from rtx
9326 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9328 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
9329 ilist_t, not _xlist_t;
9330 (ILIST_INSN): Define in terms of new union field "insn".
9331 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
9333 (struct _list_node): Add new field "insn" to the union, of type
9335 (ilist_add): Replace macro with an inline function, requiring an
9337 (ilist_remove): Define this macro directly in terms of
9338 _list_remove, rather than indirectly via _xlist_remove.
9339 (ilist_clear): Likewise, in terms of _list_clear rather than
9341 (ilist_is_in_p): Replace macro with an inline function, requiring
9343 (_list_iter_cond_insn): New function.
9344 (ilist_iter_remove): Define this macro directly in terms of
9345 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
9346 (ilist_iterator): Define directly in terms of _list_iterator
9347 rather than indirectly through _xlist_iterator.
9348 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
9349 than in terms of _FOR_EACH_X.
9350 (FOR_EACH_INSN_1): Likewise.
9352 2014-08-26 Joseph Myers <joseph@codesourcery.com>
9356 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
9357 DECL_HARD_REGISTER and return for invalid register specifications.
9358 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
9359 DECL_HARD_REGISTER, call expand_one_error_var.
9360 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
9361 CC_REGNUM with non-MODE_CC modes.
9362 (arm_regno_class): Return NO_REGS for PC_REGNUM.
9364 2014-08-26 Marek Polacek <polacek@redhat.com>
9367 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
9369 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
9371 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
9372 qi cost; add di cost.
9373 (cortexa57_addrcost_table): Likewise.
9375 2014-08-26 Marek Polacek <polacek@redhat.com>
9378 * expr.c (is_aligning_offset): Remove logical not.
9380 2014-08-26 Marek Polacek <polacek@redhat.com>
9383 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
9384 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
9386 2014-08-26 Richard Biener <rguenther@suse.de>
9388 PR tree-optimization/62175
9389 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9390 expand possibly trapping operations.
9392 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9394 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
9395 "insn" from rtx to rtx_insn *.
9396 (permute_load): Likewise for param "insn".
9397 (permute_store): Likewise.
9398 (handle_special_swappables): Likewise for local "insn".
9399 (replace_swap_with_copy): Likewise for locals "insn" and
9401 (rs6000_analyze_swaps): Likewise for local "insn".
9403 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9405 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
9408 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9410 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
9411 "note_list" from rtx to rtx_insn *.
9412 (BB_NOTE_LIST): Replace this function and...
9413 (SET_BB_NOTE_LIST): ...this function with...
9414 (BB_NOTE_LIST): ...the former macro implementation.
9416 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
9417 local "from_start" from rtx to rtx_insn *. Strengthen param
9418 "to_endp" from rtx * to rtx_insn **.
9420 * haifa-sched.c (concat_note_lists): Likewise.
9421 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
9423 (sel_restore_notes): Likewise.
9424 (move_bb_info): Likewise.
9425 (BB_NOTE_LIST): Delete this function.
9426 (SET_BB_NOTE_LIST): Delete this function.
9427 * sel-sched.c (create_block_for_bookkeeping): Eliminate
9428 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
9430 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9432 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
9433 from rtx * to rtx_insn **.
9434 (reorder2): Likewise.
9435 (dependencies_evaluation_hook): Strengthen params "head", "tail"
9436 from rtx to rtx_insn *.
9438 * doc/tm.texi: Update mechanically for above change to target.def.
9440 * sched-int.h (note_list): Strengthen this variable from rtx to
9442 (remove_notes): Likewise for both params.
9443 (restore_other_notes): Likewise for return type and first param.
9444 (struct ready_list): Strengthen field "vec" from rtx * to
9446 (struct dep_replacement): Strenghten field "insn" from rtx to
9448 (struct deps_desc): Likewise for fields "last_debug_insn",
9450 (struct haifa_sched_info): Likewise for callback field
9451 "can_schedule_ready_p"'s param, for first param of "new_ready"
9452 callback field, for both params of "rank" callback field, for
9453 first field of "print_insn" callback field (with a const), for
9454 both params of "contributes_to_priority" callback, for param
9455 of "insn_finishes_block_p" callback, for fields "prev_head",
9456 "next_tail", "head", "tail", for first param of "add_remove_insn"
9457 callback, for first param of "begin_schedule_ready" callback, for
9458 both params of "begin_move_insn" callback, and for second param
9459 of "advance_target_bb" callback.
9460 (add_dependence): Likewise for params 1 and 2.
9461 (sched_analyze): Likewise for params 2 and 3.
9462 (deps_analyze_insn): Likewise for param 2.
9463 (ready_element): Likewise for return type.
9464 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9465 (try_ready): Strenghten param from rtx to rtx_insn *.
9466 (sched_emit_insn): Likewise for return type.
9467 (record_delay_slot_pair): Likewise for params 1 and 2.
9468 (add_delay_dependencies): Likewise for param.
9469 (contributes_to_priority): Likewise for both params.
9470 (find_modifiable_mems): Likewise.
9472 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
9473 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
9474 "first_older_only_insn" from rtx to rtx_insn *.
9475 (arm_sched_reorder): Strengthen param "ready" from rtx * to
9478 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
9479 "last_scheduled_iter0" from rtx to rtx_insn *.
9480 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
9481 (c6x_sched_reorder_1): Strengthen param "ready" and locals
9482 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
9483 "insn" from rtx to rtx_insn *.
9484 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
9486 (c6x_sched_reorder2): Strengthen param "ready" and locals
9487 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
9488 "insn" from rtx to rtx_insn *.
9489 (c6x_variable_issue): Add a checked cast when assigning from insn
9490 to ss.last_scheduled_iter0.
9491 (split_delayed_branch): Strengthen param "insn" and local "i1"
9492 from rtx to rtx_insn *.
9493 (split_delayed_nonbranch): Likewise.
9494 (undo_split_delayed_nonbranch): Likewise for local "insn".
9495 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
9496 "entry_after", "end_packet", "head_insn", "tail_insn",
9497 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
9498 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
9499 to rtx_insn **. Remove now-redundant checked cast on last_insn,
9500 but add a checked cast on loop->start_label. Consolidate calls to
9501 avoid assigning result of gen_spkernel to "insn", now an
9504 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
9505 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
9507 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
9508 rtx_insn **. Strengthen locals "top", "next" from rtx to
9510 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
9511 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9512 (add_parameter_dependencies): Strengthen params "call", "head" and
9513 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
9514 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
9515 (add_dependee_for_func_arg): Likewise for param "arg" and local
9517 (ix86_dependencies_evaluation_hook): Likewise for params "head",
9518 "tail" and locals "insn", "first_arg".
9520 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
9521 for params "head", "tail" and locals "insn", "next", "next_tail".
9522 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
9523 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
9524 "insn", "lowest", "highest" from rtx to rtx_insn *.
9525 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
9527 (ia64_sched_reorder2): Likewise.
9529 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
9530 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
9531 from rtx * to rtx_insn **.
9532 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
9534 (mep_print_sched_insn): Strengthen param "insn" from rtx to
9536 (mep_sched_reorder): Strengthen param "ready" from rtx * to
9537 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
9540 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
9541 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
9543 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
9544 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
9545 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
9547 (vr4130_reorder): Likewise.
9548 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
9550 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
9552 (mips_sched_reorder): Likewise.
9553 (mips_sched_reorder2): Likewise.
9555 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
9557 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
9558 Strengthen local "tmp" from rtx to rtx_insn *.
9559 (rs6000_sched_reorder2): Likewise.
9561 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
9562 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
9563 (s390_sched_reorder): Strengthen param "ready" from rtx * to
9564 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
9566 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
9567 "tmp2" from rtx to rtx_insn *.
9568 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
9569 Strengthen local "insn" from rtx to rtx_insn *.
9570 (ready_reorder): Strengthen param "ready" from rtx * to
9571 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
9572 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
9573 (sh_reorder2): Likewise.
9575 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
9576 local "insn" from rtx to rtx_insn *.
9578 * haifa-sched.c (note_list): Strengthen this variable from rtx to
9580 (scheduled_insns): Strengthen this variable from vec<rtx> to
9582 (set_modulo_params): Likewise for locals "i1", "i2".
9583 (record_delay_slot_pair): Likewise for params "i1", "i2".
9584 (add_delay_dependencies): Likewise for param "insn".
9585 (cond_clobbered_p): Likewise.
9586 (recompute_todo_spec): Likewise for local "prev".
9587 (last_scheduled_insn): Likewise for this variable.
9588 (nonscheduled_insns_begin): Likewise.
9589 (model_set_excess_costs): Strengthen param "insns" from rtx * to
9591 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
9593 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
9594 Strengthen local "insn" from rtx to rtx_insn *.
9595 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
9596 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9597 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
9598 (ready_remove_first): Likewise for return type and local "t".
9599 (ready_element): Likewise for return type.
9600 (ready_remove): Likewise for return type and local "t".
9601 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
9602 (check_clobbered_conditions): Strengthen local "x" from rtx to
9603 rtx_insn *, adding a checked cast.
9604 (schedule_insn): Likewise for param "insn".
9605 (remove_notes): Likewise for params "head", "tail" and locals
9606 "next_tail", "insn", "next".
9607 (struct haifa_saved_data): Likewise for fields
9608 "last_scheduled_insn", "nonscheduled_insns_begin".
9609 (save_backtrack_point): Update for change to field "vec" of
9611 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
9613 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
9614 from rtx to rtx_insn *
9615 (resolve_dependencies): Strengthen param "insn" from rtx to
9617 (restore_other_notes): Likewise for return type, for param "head"
9618 and local "note_head".
9619 (undo_all_replacements): Likewise for local "insn".
9620 (first_nonscheduled_insn): Likewise for return type and local "insn".
9621 (queue_to_ready): Likewise for local "insn", adding checked casts.
9622 (early_queue_to_ready): Likewise for local "insn".
9623 (debug_ready_list_1): Strengthen local "p" from rtx * to
9625 (move_insn): Strengthen param "insn" and local "note" from rtx to
9627 (insn_finishes_cycle_p): Likewise for param "insn".
9628 (max_issue): Likewise for local "insn".
9629 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
9631 (commit_schedule): Strengthen param "prev_head" and local "insn"
9632 from rtx to rtx_insn *
9633 (prune_ready_list): Likewise for local "insn".
9634 (schedule_block): Likewise for locals "prev_head", "head", "tail",
9635 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
9636 (set_priorities): Likewise for local "prev_head".
9637 (try_ready): Likewise for param "next".
9638 (fix_tick_ready): Likewise.
9639 (change_queue_index): Likewise.
9640 (sched_extend_ready_list): Update for change to field "vec" of
9642 (generate_recovery_code): Strengthen param "insn" from rtx to
9644 (begin_speculative_block): Likewise.
9645 (create_check_block_twin): Likewise for param "insn" and locals
9646 "label", "check", "twin". Introduce local "check_pat" to avoid
9647 "check" being used as a plain rtx before being used as an insn.
9648 (fix_recovery_deps): Add a checked cast to rtx_insn * when
9649 extracting elements from ready_list.
9650 (sched_remove_insn): Strengthen param "insn" from rtx to
9652 (sched_emit_insn): Likewise for return type.
9653 (ready_remove_first_dispatch): Likewise for return type and local
9656 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
9658 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
9661 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
9662 from rtx to rtx_insn *.
9663 (add_dependence_list): Likewise for param "insn". Add a checked
9665 (add_dependence_list_and_free): Strengthen param "insn" from rtx
9666 to rtx_insn *. Strengthen param "list_p" from rtx * to
9668 (chain_to_prev_insn): Strengthen param "insn" and locals
9669 "prec_nonnote", "i" from rtx to rtx_insn *.
9670 (flush_pending_lists): Likewise for param "insn".
9671 (cur_insn): Likewise for this variable.
9672 (haifa_start_insn): Add a checked cast.
9673 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
9674 (sched_analyze_reg): Likewise for param "insn".
9675 (sched_analyze_1): Likewise.
9676 (sched_analyze_2): Likewise. Add checked casts.
9677 (sched_analyze_insn): Likewise. Also for local "prev".
9678 (deps_analyze_insn): Likewise for param "insn".
9679 (sched_analyze): Likewise for params "head", "tail" and local "insn".
9680 (add_dependence_1): Likewise for params "insn", "elem".
9681 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
9682 (parse_add_or_inc): Likewise for param "insn".
9683 (find_inc): Likewise for local "inc_cand".
9684 (find_modifiable_mems): Likewise for params "head", "tail" and
9685 locals "insn", "next_tail".
9687 * sched-ebb.c (init_ready_list): Likewise for local "insn".
9688 (begin_schedule_ready): Likewise for param "insn".
9689 (begin_move_insn): Likewise for params "insn" and "last".
9690 (ebb_print_insn): Strengthen param "insn" from const_rtx to
9692 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
9693 (ebb_contributes_to_priority): Likewise for params "next", "insn".
9694 (ebb_add_remove_insn): Likewise for param "insn".
9695 (advance_target_bb): Likewise.
9697 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
9699 (check_live): Likewise for param "insn".
9700 (init_ready_list): Likewise for local "insn".
9701 (can_schedule_ready_p): Likewise for param "insn".
9702 (begin_schedule_ready): Likewise.
9703 (new_ready): Likewise for param "next".
9704 (rgn_print_insn): Likewise for param "insn".
9705 (rgn_rank): Likewise for params "insn1", "insn2".
9706 (contributes_to_priority): Likewise for params "next", "insn".
9707 (rgn_insn_finishes_block_p): Likewise for param "insn".
9708 (add_branch_dependences): Likewise for params "head", "tail" and
9709 locals "insn", "last".
9710 (rgn_add_remove_insn): Likewise for param "insn".
9711 (advance_target_bb): Likewise.
9713 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
9714 const_rtx to const rtx_insn *.
9716 * sel-sched-dump.h (sel_print_insn): Likewise.
9718 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
9719 (deps_init_id): Likewise.
9721 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
9722 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
9725 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9727 * output.h (final_start_function): Strengthen param 1 from rtx to
9730 * final.c (final_start_function): Likewise, renaming back from
9731 "uncast_first" to "first", and dropping the checked cast from rtx
9734 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9736 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
9737 * final.c (final): Likewise. Rename param back from
9738 "uncast_first" to "first" and eliminate the checked cast from rtx
9741 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9743 * output.h (shorten_branches): Strengthen param from rtx to
9746 * final.c (shorten_branches): Likewise, renaming param back from
9747 "uncast_first" to "first", and dropping the checked cast from rtx
9750 * genattr.c (gen_attr): Likewise when writing out the prototype of
9753 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9755 * sched-int.h (struct haifa_sched_info): Strengthen fields
9756 "prev_head" and "next_tail" from rtx to rtx_insn *.
9758 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9760 * rtl.h (rtx_jump_table_data::get_labels): New method.
9761 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
9762 with use of the new rtx_jump_table_data::get_labels method.
9763 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
9764 to rtx_jump_table_data *. Simplify by using get_labels method.
9765 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
9766 a dyn_cast, introducing local "table", using it to replace
9767 label-lookup logic with a get_labels method call.
9768 (patch_jump_insn): Simplify using get_labels method.
9769 * dwarf2cfi.c (create_trace_edges): Likewise.
9770 * rtlanal.c (label_is_jump_target_p): Likewise.
9772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9774 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
9777 * emit-rtl.c (unshare_all_rtl_1): Likewise.
9778 (unshare_all_rtl_again): Likewise, also for local "p".
9780 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9782 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
9784 * cfgrtl.c (delete_insn_and_edges): Likewise.
9786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9788 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
9789 from rtx to rtx_insn *.
9791 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
9793 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9795 * function.c (thread_prologue_and_epilogue_insns): Likewise for
9796 locals "returnjump", "epilogue_end", "insn", "next".
9798 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
9799 "returnjump" from rtx * to rtx_insn **.
9800 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
9802 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9804 * basic-block.h (struct edge_def). Strengthen "r" within
9805 union edge_def_insns from rtx to rtx_insn *.
9807 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
9808 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
9810 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
9811 from rtx to rtx_insn *.
9812 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
9814 * postreload-gcse.c (reg_killed_on_edge): Likewise.
9815 (reg_used_on_edge): Likewise.
9816 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
9817 (gt_pch_nx): New overload for rtx_insn *&.
9818 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
9819 from rtx to rtx_insn *.
9821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9823 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
9824 from rtx to rtx_insn *.
9825 (BB_FOOTER): Replace function with access macro.
9826 (SET_BB_FOOTER): Delete.
9828 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
9830 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9831 (emit_barrier_after_bb): Likewise.
9832 (record_effective_endpoints): Likewise.
9833 (relink_block_chain): Likewise.
9834 (fixup_fallthru_exit_predecessor): Likewise.
9835 (cfg_layout_duplicate_bb): Likewise.
9836 (cfg_layout_split_block): Likewise.
9837 (cfg_layout_delete_block): Likewise.
9838 (cfg_layout_merge_blocks): Likewise.
9839 (BB_FOOTER): Delete function.
9840 (SET_BB_FOOTER): Delete function.
9841 * combine.c (update_cfg_for_uncondjump): Replace uses of
9842 SET_BB_FOOTER with BB_FOOTER.
9844 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9846 * except.h (struct eh_landing_pad_d): Strengthen field
9847 "landing_pad" from rtx to rtx_code_label *.
9849 * except.c (sjlj_emit_dispatch_table): Likewise for param
9851 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
9853 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9855 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
9856 first param from rtx to rtx_insn *.
9857 * config/xtensa/xtensa.c (struct machine_function): Likewise for
9858 field "set_frame_ptr_insn".
9859 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
9860 "csend" from rtx to rtx_code_label *.
9861 (xtensa_expand_atomic): Likewise for local "csloop".
9862 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
9864 (xtensa_call_tls_desc): Likewise for return type and locals
9865 "call_insn", "insns".
9866 (xtensa_legitimize_tls_address): Likewise for local "insns".
9867 (xtensa_expand_prologue): Likewise for locals "insn", "first".
9869 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9871 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
9872 first param from rtx to rtx_insn *.
9873 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
9876 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9878 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
9879 Strengthen param 1 from rtx to rtx_insn *.
9880 (tilepro_output_cbranch): Likewise.
9881 (tilepro_adjust_insn_length): Likewise.
9882 (tilepro_final_prescan_insn): Likewise for sole param.
9884 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
9885 Likewise for local "last".
9886 (cbranch_predicted_p): Likewise for param "insn".
9887 (tilepro_output_simple_cbranch_with_opcode): Likewise.
9888 (tilepro_output_cbranch_with_opcode): Likewise.
9889 (tilepro_output_cbranch): Likewise.
9890 (frame_emit_load): Likewise for return type and locals "seq",
9892 (emit_sp_adjust): Likewise for return type and local "insn".
9893 (tilepro_expand_epilogue): Likewise for locals "last_insn",
9895 (tilepro_adjust_insn_length): Likewise for param "insn".
9896 (next_insn_to_bundle): Likewise for return type and params
9898 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
9899 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
9901 (match_addli_pcrel): Likewise for param "insn".
9902 (replace_addli_pcrel): Likewise.
9903 (match_auli_pcrel): Likewise.
9904 (replace_auli_pcrel): Likewise.
9905 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
9907 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9908 "queue", "next_queue", "prev".
9909 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
9910 (tilepro_final_prescan_insn): Likewise for param "insn".
9912 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9914 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
9915 Strengthen param 1 from rtx to rtx_insn *.
9916 (tilegx_output_cbranch): Likewise.
9917 (tilegx_adjust_insn_length): Likewise.
9918 (tilegx_final_prescan_insn): Likewise for sole param.
9920 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
9922 (cbranch_predicted_p): Likewise for param "insn".
9923 (tilegx_output_simple_cbranch_with_opcode): Likewise.
9924 (tilegx_output_cbranch_with_opcode): Likewise.
9925 (tilegx_output_cbranch): Likewise.
9926 (frame_emit_load): Likewise for return type.
9927 (set_frame_related_p): Likewise for locals "seq", "insn".
9928 (emit_sp_adjust): Likewise for return type, and for local "insn".
9929 Introduce local "pat" for use in place of "insn" where the latter
9930 isn't an instruction.
9931 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
9932 from rtx to rtx_insn *.
9933 (tilegx_adjust_insn_length): Likewise for param "insn".
9934 (next_insn_to_bundle): Likewise for return type and params "r" and
9936 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
9938 (replace_insns): Likewise for params "old_insn", "new_insns".
9939 (replace_mov_pcrel_step1): Likewise for param "insn" and local
9941 (replace_mov_pcrel_step2): Likewise.
9942 (replace_mov_pcrel_step3): Likewise.
9943 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
9945 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9946 "queue", "next_queue", "prev".
9947 (tilegx_output_mi_thunk): Likewise for local "insn".
9948 (tilegx_final_prescan_insn): Likewise for param "insn".
9950 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9952 * config/spu/spu.c (frame_emit_store): Strengthen return type from
9954 (frame_emit_load): Likewise.
9955 (frame_emit_add_imm): Likewise, also for local "insn".
9956 (spu_expand_prologue): Likewise for local "insn".
9957 (struct spu_bb_info): Likewise for field "prop_jump".
9958 (emit_nop_for_insn): Likewise for param "insn" and local
9960 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
9962 (spu_emit_branch_hint): Likewise for params "before", "branch" and
9963 locals "hint", "insn".
9964 (get_branch_target): Likewise for param "branch".
9965 (insn_clobbers_hbr): Likewise for param "insn".
9966 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
9967 locals "insn", "before_4", "before_16".
9968 (insert_hbrp): Likewise for local "insn".
9969 (spu_machine_dependent_reorg): Likewise for locals "branch",
9970 "insn", "next", "bbend".
9971 (uses_ls_unit): Likewise for param "insn".
9972 (get_pipe): Likewise.
9973 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
9974 introducing a checked cast.
9975 (spu_sched_adjust_cost): Likewise for params "insn" and
9977 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
9978 (spu_sms_res_mii): Likewise.
9980 2014-08-25 David Malcolm <dmalcolm@redhat.com>
9982 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
9983 from rtx to rtx_insn *.
9984 (output_cbranch): Likewise for param 6.
9985 (output_return): Likewise for param 1.
9986 (output_sibcall): Likewise.
9987 (output_v8plus_shift): Likewise.
9988 (output_v8plus_mult): Likewise.
9989 (output_v9branch): Likewise for param 7.
9990 (output_cbcond): Likewise for param 3.
9992 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
9994 (sparc_legitimize_pic_address): Likewise.
9995 (sparc_emit_call_insn): Likewise.
9996 (emit_save_or_restore_regs): Likewise.
9997 (emit_window_save): Likewise for return type and local "insn".
9998 (sparc_expand_prologue): Likewise for local "insn".
9999 (sparc_flat_expand_prologue): Likewise.
10000 (output_return): Likewise for param "insn".
10001 (output_sibcall): Likewise for param "insn" and local "delay".
10002 (output_ubranch): Likewise for param "insn".
10003 (output_cbranch): Likewise.
10004 (output_cbcond): Likewise.
10005 (output_v9branch): Likewise.
10006 (output_v8plus_shift): Likewise.
10007 (sparc_output_mi_thunk): Likewise for local "insn".
10008 (get_some_local_dynamic_name): Likewise.
10009 (output_v8plus_mult): Likewise for param "insn".
10011 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10013 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10014 from rtx to rtx_insn *.
10015 (output_branchy_insn): Likewise for param 3.
10016 (output_far_jump): Likewise for param 1.
10017 (final_prescan_insn): Likewise.
10018 (sh_insn_length_adjustment): Likewise for sole param.
10020 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10021 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10023 (sh_emit_compare_and_set): Likewise for local "lab".
10024 (output_far_jump): Strengthen param "insn" and local "prev" from
10026 (output_branchy_insn): Likewise for param "insn" and local
10028 (output_ieee_ccmpeq): Likewise for param "insn".
10029 (struct label_ref_list_d): Strengthen field "label" from rtx to
10031 (pool_node): Likewise.
10032 (pool_window_label): Likewise for this global.
10033 (add_constant): Likewise for return type and locals "lab", "new_rtx".
10034 (dump_table): Strengthen params "start", "barrier" and local
10035 "scan" from rtx to rtx_insn *.
10036 (broken_move): Likewise for param "insn".
10037 (untangle_mova): Likewise for params "first_mova" and "new_mova".
10038 Strengthen param "first_mova" from rtx * to rtx_insn **.
10039 (mova_p): Likewise for param "insn".
10040 (fixup_mova): Likewise for param "mova".
10041 (find_barrier): Likewise for return type, params "mova" and
10042 "from", and locals "barrier_before_mova", "found_barrier",
10043 "good_barrier", "orig", "last_symoff", "next". Strengthen local
10044 "label" from rtx to rtx_code_label *.
10045 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10047 (sh_reorg): Likewise for locals "link", "scan", "barrier".
10048 (split_branches): Likewise for param "first" and local "insn".
10049 (final_prescan_insn): Likewise for param "insn".
10050 (sequence_insn_p): Likewise for locals "prev", "next".
10051 (sh_insn_length_adjustment): Likewise for param "insn".
10052 (sh_can_redirect_branch): Likewise for local "insn".
10053 (find_r0_life_regions): Likewise for locals "end", "insn".
10054 (sh_output_mi_thunk): Likewise for local "insns".
10056 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10058 * config/score/score.c (score_output_mi_thunk): Strengthen local
10059 "insn" from rtx to rtx_insn *.
10060 (score_prologue): Likewise.
10062 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10064 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10065 1 from rtx to rtx_insn *.
10066 (s390_emit_jump): Likewise for return type.
10067 (s390_emit_call): Likewise.
10068 (s390_load_got): Likewise.
10070 * config/s390/s390.c (last_scheduled_insn): Likewise for this
10072 (s390_match_ccmode): Likewise for param "insn".
10073 (s390_emit_jump): Likewise for return type.
10074 (s390_split_branches): Likewise for local "label".
10075 (struct constant): Strengthen field "label" from rtx to
10077 (struct constant_pool): Likewise for field "label". Strengthen
10078 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10080 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10082 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10083 (s390_end_pool): Likewise.
10084 (s390_dump_pool): Likewise for local "insn".
10085 (s390_mainpool_start): Likewise.
10086 (s390_chunkify_start): Likewise.
10087 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10088 with insns. Strengthen locals "label", "jump", "barrier", "next",
10089 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10090 (s390_chunkify_finish): Strengthen local "insn" from rtx to
10092 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10093 "jump", "label", "next_insn".
10094 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10095 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10097 (s390_load_got): Likewise for return type and local "insns".
10098 (s390_save_gprs_to_fprs): Likewise for local "insn".
10099 (s390_restore_gprs_from_fprs): Likewise.
10100 (pass_s390_early_mach::execute): Likewise.
10101 (s390_emit_prologue): Likewise for local "insns".
10102 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10104 (s390_emit_call): Strengthen return type and local "insn" from
10106 (s390_emit_tpf_eh_return): Likewise for local "insn".
10107 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10108 "next_insn", introducing locals "s_pat", "rpat" to allow this.
10109 (s390_fix_long_loop_prediction): Likewise for param "insn" and
10111 (s390_non_addr_reg_read_p): Likewise for param "insn".
10112 (find_cond_jump): Likewise for return type and param "insn".
10113 (s390_swap_cmp): Likewise for param "insn".
10114 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10115 "prev_insn", "next_insn".
10116 (s390_reorg): Likewise for locals "insn", "target".
10117 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10118 (s390_sched_variable_issue): For now, rename param "insn" to
10119 "uncast_insn", introducing a checked cast.
10120 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10122 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10123 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
10125 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10127 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10128 param from rtx to rtx_insn *.
10129 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10131 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10133 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10134 4 from rtx to rtx_insn *.
10135 (rs6000_final_prescan_insn): Likewise for first param.
10136 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10138 (rs6000_get_some_local_dynamic_name): Likewise.
10139 (output_cbranch): Likewise for param "insn".
10140 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10141 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10142 (rs6000_emit_allocate_stack): Likewise for local "insn".
10143 (load_cr_save): Likewise.
10144 (restore_saved_cr): Likewise.
10145 (restore_saved_lr): Likewise.
10146 (emit_cfa_restores): Likewise.
10147 (rs6000_output_function_epilogue): Likewise for locals "insn" and
10148 "deleted_debug_label".
10149 (rs6000_output_mi_thunk): Likewise for local "insn".
10150 (rs6000_final_prescan_insn): Likewise for param "insn".
10152 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10154 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10155 Strengthen param "insn" from rtx to rtx_insn *.
10156 * config/picochip/picochip.c (picochip_current_prescan_insn):
10157 Likewise for this variable.
10158 (picochip_final_prescan_insn): Likewise for param "insn".
10160 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10162 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
10163 from rtx to rtx_insn *.
10164 (pa_output_indirect_call): Likewise.
10165 (pa_adjust_insn_length): Likewise.
10166 (pa_attr_length_millicode_call): Likewise.
10167 (pa_attr_length_call): Likewise.
10168 (pa_attr_length_indirect_call): Likewise.
10170 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
10172 (pa_attr_length_millicode_call): Likewise.
10173 (pa_attr_length_call): Likewise.
10174 (pa_output_call): Likewise.
10175 (pa_attr_length_indirect_call): Likewise.
10176 (pa_output_indirect_call): Likewise.
10178 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10180 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
10181 Strengthen first param from rtx to rtx_insn *.
10182 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
10185 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10187 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
10188 type from rtx to rtx_insn *.
10189 (mips_expand_call): Likewise.
10190 (mips_adjust_insn_length): Likewise for first param.
10191 (mips_output_conditional_branch): Likewise.
10192 (mips_output_order_conditional_branch): Likewise.
10193 (mips_final_prescan_insn): Likewise.
10195 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
10196 rtx_insn * for the SEQUENCE case.
10197 (SEQ_END): Likewise.
10198 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
10199 (mips_emit_call_insn): Likewise, also for local "insn".
10200 (mips16_gp_pseudo_reg): Likewise for local "scan".
10201 (mips16_build_call_stub): Likewise for return type and for local
10202 "insn". Introduce a new local "pattern" so that "insn" can indeed
10204 (mips_expand_call): Strengthen return type and local "insn" from
10206 (mips_block_move_loop): Strengthen local "label" from rtx to
10208 (mips_expand_synci_loop): Likewise for locals "label",
10210 (mips_set_frame_expr): Strengthen local "insn" from rtx to
10212 (mips16e_collect_argument_saves): Likewise for locals "insn",
10214 (mips_find_gp_ref): Likewise for param of callback for "pred"
10215 param, and for local "insn".
10216 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
10217 (mips_insn_has_flexible_gp_ref_p): Likewise.
10218 (mips_epilogue_emit_cfa_restores): Likewise for return type and
10220 (mips_epilogue_set_cfa): Likewise for local "insn".
10221 (mips_expand_epilogue): Likewise.
10222 (mips_adjust_insn_length): Likewise for param "insn".
10223 (mips_output_conditional_branch): Likewise.
10224 (mips_output_order_conditional_branch): Likewise.
10225 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
10226 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
10227 "falu2_turn_enabled_insn".
10228 (mips_builtin_branch_and_move): Strengthen locals "true_label",
10229 "done_label" from rtx to rtx_code_label *.
10230 (struct mips16_constant): Likewise for field "label".
10231 (mips16_add_constant): Likewise for return type.
10232 (mips16_emit_constants_1): Strengthen return type and param "insn"
10233 from rtx to rtx_insn *.
10234 (mips16_emit_constants): Likewise for param "insn".
10235 (mips16_insn_length): Likewise.
10236 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
10237 to rtx_code_label *.
10238 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
10239 from rtx to rtx_insn *.
10240 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
10241 "jump". Strengthen local "label" from rtx to rtx_code_label *.
10242 (r10k_simplify_address): Strengthen param "insn" and local
10243 "def_insn" from rtx to rtx_insn *.
10244 (r10k_safe_address_p): Strengthen param "insn" from rtx to
10246 (r10k_needs_protection_p_1): Update target type of cast of data
10247 from to rtx to rtx_insn *.
10248 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
10249 rtx * to rtx_insn **.
10250 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
10252 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
10253 (mips_call_expr_from_insn): Likewise for param "insn".
10254 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
10255 (mips_find_pic_call_symbol): Likewise for param "insn".
10256 (mips_annotate_pic_calls): Likewise for local "insn".
10257 (mips_sim_insn): Likewise for this variable.
10258 (struct mips_sim): Likewise for field "insn" within elements of
10260 (mips_sim_wait_reg): Likewise for param "insn".
10261 (mips_sim_wait_regs): Likewise.
10262 (mips_sim_wait_units): Likewise.
10263 (mips_sim_wait_insn): Likewise.
10264 (mips_sim_issue_insn): Likewise.
10265 (mips_sim_finish_insn): Likewise.
10266 (mips_seq_time): Likewise for param "seq" and local "insn".
10267 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
10268 locals "first", "second".
10269 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
10270 "last", "last2", "next".
10271 (mips_avoid_hazard): Likewise for params "after", "insn".
10272 (mips_reorg_process_insns): Likewise for locals "insn",
10273 "last_insn", "subinsn", "next_insn".
10274 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
10275 (mips16_split_long_branches): Likewise for locals "insn" "jump",
10277 (mips_output_mi_thunk): Likewise for local "insn".
10278 (mips_final_prescan_insn): Likewise for param "insn".
10280 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10282 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
10283 Strengthen return type and local "insns" from rtx to rtx_insn *.
10284 (microblaze_legitimize_tls_address): Likewise for local "insns".
10285 (microblaze_block_move_loop): Strengthen local "label" from rtx
10286 to rtx_code_label *.
10287 (microblaze_expand_prologue): Strengthen two locals named "insn"
10288 from rtx to rtx_insn *.
10289 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
10290 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
10291 "insn". Strengthen locals "div_label", "div_end_label" from rtx
10292 to rtx_code_label *.
10294 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10296 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
10297 param from rtx to rtx_insn *.
10298 (mep_reuse_lo): Likewise for third param.
10299 (mep_use_post_modify_p): Likewise for first param.
10300 (mep_core_address_length): Likewise.
10301 (mep_cop_address_length): Likewise.
10302 (mep_final_prescan_insn): Likewise.
10303 (mep_store_data_bypass_p): Likewise for both params.
10304 (mep_mul_hilo_bypass_p): Likewise.
10305 (mep_ipipe_ldc_p): Likewise for param.
10307 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
10308 (mep_rewrite_mult): Likewise.
10309 (mep_rewrite_mulsi3): Likewise.
10310 (mep_rewrite_maddsi3): Likewise.
10311 (mep_reuse_lo_p_1): Likewise.
10312 (mep_reuse_lo_p): Likewise.
10313 (mep_frame_expr): Likewise.
10314 (mep_make_parallel): Likewise for both params.
10315 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
10317 (mep_use_post_modify_p): Likewise for param "insn".
10318 (mep_core_address_length): Likewise.
10319 (mep_cop_address_length): Likewise.
10320 (mep_reg_set_in_function): Likewise for local "insn".
10321 (mep_asm_without_operands_p): Likewise.
10322 (F): Likewise for return type and param "x".
10323 (add_constant): Likewise for local "insn".
10324 (maybe_dead_move): Likewise for return type and local "insn".
10325 (mep_expand_prologue): Likewise for local "insn".
10326 (mep_final_prescan_insn): Likewise for param "insn".
10327 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
10328 "next", "follow", "x".
10329 (mep_insert_repeat_label_last): Likewise for return type, param
10330 "last_insn", and locals "next", "prev". Strengthen param "label"
10331 from rtx to rtx_code_label *.
10332 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
10334 (struct mep_doloop_end): Likewise for fields "insn" and
10336 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
10337 Strengthen local "repeat_label" from rtx to rtx_code_label *.
10338 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
10340 (mep_invert_branch): Likewise for params "insn" and "after".
10341 (mep_reorg_erepeat): Likewise for param "insns" and locals
10342 "insn", "prev", "new_last", "barrier", "user". Strengthen local
10343 "l" from rtx to rtx_code_label *.
10344 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
10345 from rtx to rtx_insn *.
10346 (mep_reorg_addcombine): Likewise for param "insns" and locals
10348 (add_sp_insn_p): Likewise for param "insn".
10349 (mep_reorg_noframe): Likewise for param "insns" and locals
10350 "start_frame_insn", "end_frame_insn", "next".
10351 (mep_reorg): Likewise for local "insns".
10352 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
10354 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
10355 (mep_mul_hilo_bypass_p): Likewise.
10356 (mep_ipipe_ldc_p): Likewise for param "insn".
10357 (mep_make_bundle): Likewise for return type, param "cop" and local
10358 "insn", splitting out the latter into a new local "seq" for when it
10359 is a SEQUENCE rather than an insn.
10360 (core_insn_p): Likewise for param "insn".
10361 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
10362 "last", "first", "note", "prev", "core_insn".
10364 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10366 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
10368 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
10369 (m68k_final_prescan_insn): Likewise for first param.
10371 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
10372 (m68k_set_frame_related): Likewise for param "insn".
10373 (output_btst): Likewise for param "insn".
10374 (m68k_final_prescan_insn): Likewise.
10375 (m68k_move_to_reg): Likewise for local "insn".
10376 (m68k_call_tls_get_addr): Likewise for local "insns".
10377 (m68k_call_m68k_read_tp): Likewise.
10378 (strict_low_part_peephole_ok): Likewise for param "first_insn".
10379 (m68k_output_mi_thunk): Likewise for local "insn".
10381 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10383 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
10384 first param from rtx to rtx_insn *.
10385 (iq2000_adjust_insn_length): Likewise.
10386 (iq2000_output_conditional_branch): Likewise.
10387 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
10388 "insn" and local "nop_insn".
10389 (iq2000_annotate_frame_insn): Likewise for param "insn".
10390 (iq2000_expand_prologue): Likewise for both locals "insn".
10391 (iq2000_adjust_insn_length): Likewise for param "insn".
10392 (iq2000_output_conditional_branch): Likewise.
10394 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10396 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
10397 "insns" from rtx to rtx_insn *.
10398 (ia64_emit_cond_move): Likewise for locals "insn", "first".
10399 (struct spill_fill_data): Likewise for field "init_after" and for
10400 elements of array field "prev_insn".
10401 (spill_restore_mem): Likewise for locals "insn", "first".
10402 (do_spill): Likewise for local "insn".
10403 (do_restore): Likewise.
10404 (ia64_expand_prologue): Likewise.
10405 (ia64_expand_epilogue): Likewise.
10406 (emit_insn_group_barriers): Likewise for locals "insn",
10408 (emit_all_insn_group_barriers): Likewise for locals "insn",
10410 (dfa_stop_insn): Likewise for this global.
10411 (dfa_pre_cycle_insn): Likewise.
10412 (ia64_nop): Likewise.
10413 (final_emit_insn_group_barriers): Likewise for locals "insn",
10415 (emit_predicate_relation_info): Likewise for locals "head", "n",
10417 (ia64_reorg): Likewise for local "insn".
10418 (ia64_output_mi_thunk): Likewise.
10419 (expand_vec_perm_interleave_2): Likewise for local "seq".
10421 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10423 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
10424 param 1 "insn" from rtx to rtx_insn *.
10425 (ix86_use_lea_for_mov): Likewise.
10426 (ix86_avoid_lea_for_addr): Likewise.
10427 (ix86_split_lea_for_addr): Likewise.
10428 (ix86_lea_for_add_ok): Likewise.
10429 (ix86_output_call_insn): Likewise.
10431 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
10432 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
10433 (ix86_output_function_epilogue): Likewise for locals "insn",
10434 "deleted_debug_label".
10435 (legitimize_tls_address): Likewise for local "insn".
10436 (get_some_local_dynamic_name): Likewise.
10437 (increase_distance): Likewise for params "prev", "next".
10438 (distance_non_agu_define_in_bb): Likewise for params "insn",
10439 "start" and locals "prev", "next".
10440 (distance_non_agu_define): Likewise for param "insn".
10441 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
10442 locals "next", "prev".
10443 (distance_agu_use): Likewise for param "insn".
10444 (ix86_lea_outperforms): Likewise.
10445 (ix86_ok_to_clobber_flags): Likewise.
10446 (ix86_avoid_lea_for_add): Likewise.
10447 (ix86_use_lea_for_mov): Likewise.
10448 (ix86_avoid_lea_for_addr): Likewise.
10449 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
10450 (ix86_split_lea_for_addr): Likewise for param "insn".
10451 (ix86_lea_for_add_ok): Likewise for param "insn".
10452 (ix86_expand_carry_flag_compare): Likewise for local
10454 (ix86_expand_int_movcc): Likewise.
10455 (ix86_output_call_insn): Likewise for param "insn".
10456 (ix86_output_call_insn): Likewise for local "i".
10457 (x86_output_mi_thunk): Introduce local "insn", using it in place
10458 of "tmp" when dealing with insns.
10459 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
10461 (ix86_pad_returns): Likewise for locals "ret", "prev".
10462 (ix86_count_insn_bb): Likewise for local "insn".
10463 (ix86_pad_short_function): Likewise for locals "ret", "insn".
10464 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
10465 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
10466 (expand_vec_perm_interleave2): Likewise for local "seq".
10467 (expand_vec_perm_vperm2f128_vblend): Likewise.
10468 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
10469 call to for_each_rtx with for_each_rtx_in_insn.
10471 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10473 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
10474 "label" from rtx to rtx_code_label *.
10475 (ix86_expand_prologue): Likewise.
10476 (ix86_expand_split_stack_prologue): Likewise for locals "label",
10478 (ix86_split_idivmod): Likewise for locals "end_label" and
10480 (ix86_expand_branch): Likewise for local "label2".
10481 (ix86_expand_aligntest): Likewise for return type and local "label".
10482 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
10484 (expand_movmem_epilogue): Likewise for the various locals named
10486 (expand_setmem_epilogue): Likewise.
10487 (expand_small_movmem_or_setmem): Likewise for local "label".
10488 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
10489 Strengthen param "done_label" from rtx * to rtx_code_label **.
10490 Strengthen locals "loop_label" and "label" from rtx to
10492 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
10493 Likewise for locals "loop_label", "label".
10494 (ix86_expand_set_or_movmem): Likewise for locals "label",
10495 "jump_around_label", "hot_label".
10496 (ix86_expand_strlensi_unroll_1): Likewise for locals
10497 "align_2_label", align_3_label", "align_4_label", "end_0_label",
10499 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
10500 (void ix86_emit_i387_log1p): Likewise for locals "label1",
10501 "label2", "jump_label".
10502 (ix86_expand_sse_compare_and_jump): Likewise for return type and
10504 (ix86_expand_lfloorceil): Likewise for local "label".
10505 (ix86_expand_rint): Likewise.
10506 (ix86_expand_floorceildf_32): Likewise.
10507 (ix86_expand_floorceil): Likewise.
10508 (ix86_expand_rounddf_32): Likewise.
10509 (ix86_expand_trunc): Likewise.
10510 (ix86_expand_truncdf_32): Likewise.
10511 (ix86_expand_round): Likewise.
10513 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10515 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
10516 first param from rtx to rtx_insn *.
10517 (h8300_insn_length_from_table): Likewise.
10518 * config/h8300/h8300.c (F): Likewise for return type and param
10520 (Fpa): Add a checked cast to rtx_insn *.
10521 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
10523 (final_prescan_insn): Likewise for param "insn".
10524 (h8300_binary_length): Likewise.
10525 (h8300_insn_length_from_table): Likewise.
10527 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10529 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
10530 Strengthen first param "insn" from rtx to rtx_insn *.
10532 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
10534 (frame_insn): Likewise for return type. Introduce local "insn"
10535 for use in place of local "x" for use as an rtx_insn *.
10536 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
10537 (epiphany_expand_prologue): Likewise for local "insn".
10538 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
10539 * config/epiphany/resolve-sw-modes.c
10540 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
10543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10545 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
10546 param from rtx to rtx_insn *.
10547 (c6x_final_prescan_insn): Likewise for first param.
10549 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
10550 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
10551 (c6x_expand_compare): Strengthen local "insns" from rtx to
10553 (c6x_get_unit_specifier): Likewise for param "insn".
10554 (c6x_print_unit_specifier_field): Likewise.
10555 (c6x_final_prescan_insn): Likewise.
10556 (emit_add_sp_const): Likewise for local "insn".
10557 (c6x_expand_prologue): Likewise.
10559 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10561 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
10562 param 1 from rtx to rtx_insn *.
10563 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
10564 the various locals named "insn".
10565 (expand_epilogue_reg_restore): Likewise.
10566 (frame_related_constant_load): Likewise.
10567 (add_to_reg): Likewise.
10568 (emit_link_insn): Likewise.
10569 (do_link): Likewise.
10570 (expand_interrupt_handler_prologue): Likewise.
10571 (branch_dest): Likewise for param "branch".
10572 (asm_conditional_branch): Likewise for param "insn".
10573 (gen_one_bundle): Likewise for elements of param "slot" and local
10575 (bfin_gen_bundles): Likewise for locals "insn", "next" and
10576 elements of local "slot".
10577 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10578 "queue", "next_queue", "prev".
10579 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
10580 (add_sched_insns_for_speculation): Likewise for local "insn".
10582 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10584 * config/avr/avr-protos.h (output_movqi): Strengthen first param
10585 from rtx to rtx_insn *.
10586 (output_movhi): Likewise.
10587 (output_movsisf): Likewise.
10588 (avr_out_tstsi): Likewise.
10589 (avr_out_tsthi): Likewise.
10590 (avr_out_tstpsi): Likewise.
10591 (avr_out_compare): Likewise.
10592 (avr_out_compare64): Likewise.
10593 (avr_out_movpsi): Likewise.
10594 (ashlqi3_out): Likewise.
10595 (ashlhi3_out): Likewise.
10596 (ashlsi3_out): Likewise.
10597 (ashrqi3_out): Likewise.
10598 (ashrhi3_out): Likewise.
10599 (ashrsi3_out): Likewise.
10600 (lshrqi3_out): Likewise.
10601 (lshrhi3_out): Likewise.
10602 (lshrsi3_out): Likewise.
10603 (avr_out_ashlpsi3): Likewise.
10604 (avr_out_ashrpsi3): Likewise.
10605 (avr_out_lshrpsi3): Likewise.
10606 (avr_out_fract): Likewise.
10607 (avr_out_sbxx_branch): Likewise.
10608 (avr_out_round): Likewise.
10609 (avr_out_xload): Likewise.
10610 (avr_out_movmem): Likewise.
10611 (adjust_insn_length): Likewise.
10612 (avr_out_lpm): Likewise.
10613 (reg_unused_after): Likewise.
10614 (_reg_unused_after): Likewise.
10615 (avr_jump_mode): Likewise for second param.
10616 (jump_over_one_insn): Likewise for first param.
10617 (avr_final_prescan_insn): Likewise.
10618 (out_shift_with_cnt): Likewise for second param.
10620 * config/avr/avr.c (get_sequence_length): Likewise for param
10621 "insns" and local "insn".
10622 (emit_push_byte): Likewise for local "insn".
10623 (emit_push_sfr): Likewise.
10624 (avr_prologue_setup_frame): Likewise for locals "insn",
10625 "fp_plus_insns", "sp_plus_insns".
10626 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
10628 (avr_jump_mode): Likewise for param "insn".
10629 (avr_final_prescan_insn): Likewise.
10630 (avr_find_unused_d_reg): Likewise.
10631 (avr_out_lpm_no_lpmx): Likewise.
10632 (avr_out_lpm): Likewise.
10633 (avr_out_xload): Likewise.
10634 (output_movqi): Likewise.
10635 (output_movhi): Likewise.
10636 (out_movqi_r_mr): Likewise.
10637 (out_movhi_r_mr): Likewise.
10638 (out_movsi_r_mr): Likewise.
10639 (out_movsi_mr_r): Likewise.
10640 (output_movsisf): Likewise.
10641 (avr_out_load_psi): Likewise.
10642 (avr_out_store_psi): Likewise.
10643 (avr_out_movpsi): Likewise.
10644 (out_movqi_mr_r): Likewise.
10645 (avr_out_movhi_mr_r_xmega): Likewise.
10646 (out_movhi_mr_r): Likewise.
10647 (compare_condition): Likewise for param "insn" and local "next".
10648 (compare_sign_p): Likewise for param "insn".
10649 (compare_diff_p): Likewise.
10650 (compare_eq_p): Likewise.
10651 (avr_out_compare): Likewise.
10652 (avr_out_compare64): Likewise.
10653 (avr_out_tsthi): Likewise.
10654 (avr_out_tstpsi): Likewise.
10655 (avr_out_tstsi): Likewise.
10656 (out_shift_with_cnt): Likewise.
10657 (ashlqi3_out): Likewise.
10658 (ashlhi3_out): Likewise.
10659 (avr_out_ashlpsi3): Likewise.
10660 (ashlsi3_out): Likewise.
10661 (ashrqi3_out): Likewise.
10662 (ashrhi3_out): Likewise.
10663 (avr_out_ashrpsi3): Likewise.
10664 (ashrsi3_out): Likewise.
10665 (lshrqi3_out): Likewise.
10666 (lshrhi3_out): Likewise.
10667 (avr_out_lshrpsi3): Likewise.
10668 (lshrsi3_out): Likewise.
10669 (avr_out_fract): Likewise.
10670 (avr_out_round): Likewise.
10671 (avr_adjust_insn_length): Likewise.
10672 (reg_unused_after): Likewise.
10673 (_reg_unused_after): Likewise.
10674 (avr_compare_pattern): Likewise.
10675 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
10676 and locals "branch1", "branch2", "insn2", "jump".
10677 (avr_reorg): Likewise for local "insn".
10678 (avr_2word_insn_p): Likewise for param "insn".
10679 (jump_over_one_insn_p): Likewise.
10680 (avr_out_sbxx_branch): Likewise.
10681 (avr_out_movmem): Likewise.
10683 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10685 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
10686 param from rtx to rtx_insn *.
10687 (thumb1_final_prescan_insn): Likewise.
10688 (thumb2_final_prescan_insn): Likewise.
10690 * config/arm/arm.c (emit_set_insn): Strengthen return type from
10692 (struct minipool_node): Likewise for field "insn".
10693 (dump_minipool): Likewise for param "scan".
10694 (create_fix_barrier): Likewise for local "from". Strengthen local
10695 "label" from rtx to rtx_code_label *.
10696 (push_minipool_barrier): Strengthen param "insn" from rtx to
10698 (push_minipool_fix): Likewise.
10699 (note_invalid_constants): Likewise.
10700 (thumb2_reorg): Likewise for local "insn".
10701 (arm_reorg): Likewise.
10702 (thumb2_final_prescan_insn): Likewise for param
10703 "insn" and local "first_insn".
10704 (arm_final_prescan_insn): Likewise for param "insn" and locals
10705 "start_insn", "this_insn".
10706 (arm_debugger_arg_offset): Likewise for param "insn".
10707 (thumb1_emit_multi_reg_push): Likewise for return type and local
10709 (thumb1_final_prescan_insn): Likewise for param "insn".
10710 (thumb_far_jump_used_p): Likewise for local "insn".
10711 (thumb1_expand_prologue): Likewise.
10712 (arm_expand_epilogue_apcs_frame): Likewise.
10713 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
10714 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
10715 from rtx to rtx_code_label *.
10716 (arm_split_atomic_op): Likewise for local "label".
10717 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
10719 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10721 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
10722 first param from rtx to rtx_insn *.
10723 (arc_verify_short): Likewise.
10724 (arc_short_long): Likewise.
10725 (arc_need_delay): Likewise.
10727 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
10729 (arc_ccfsm_advance): Likewise for param "insn" and locals
10730 "start_insn", "this_insn".
10731 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
10732 (arc_ccfsm_post_advance): Likewise for param "insn".
10733 (arc_next_active_insn): Likewise for return type and param "insn".
10734 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
10735 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
10736 (output_short_suffix): Likewise for local "insn".
10737 (arc_final_prescan_insn): Likewise for param "insn". Remove
10738 now-redundant checked cast.
10739 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
10740 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
10741 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
10742 for use where lc_set became an insn.
10743 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
10745 (arc_get_insn_variants): Likewise for local "prev".
10746 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
10748 (arc_predicate_delay_insns): Likewise for local "insn".
10749 (arc_pad_return): Likewise for local "prev". For now, add a
10750 checked cast when extracting the insn from "final_sequence".
10751 (arc_short_long): Likewise for param "insn".
10752 (arc_need_delay): Likewise for param "insn" and local "next".
10753 (arc_label_align): Likewise for locals "prev", "next".
10755 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10757 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
10758 "insn" from rtx to rtx_insn *.
10759 (alpha_gp_save_rtx): Likewise for local "seq".
10760 (alpha_instantiate_decls): Likewise for local "top".
10761 (get_some_local_dynamic_name): Likewise for local "insn".
10762 (alpha_does_function_need_gp): Likewise.
10763 (set_frame_related_p): Likewise for return type and for locals
10765 (emit_frame_store_1): Likewise for local "insn".
10766 (alpha_expand_prologue): Likewise for locals "insn", "seq".
10767 (alpha_end_function): Likewise for local "insn".
10768 (alpha_output_mi_thunk_osf): Likewise.
10769 (alphaev4_insn_pipe): Likewise for param "insn".
10770 (alphaev5_insn_pipe): Likewise.
10771 (alphaev4_next_group): Likewise for return type and param 1
10773 (alphaev5_next_group): Likewise.
10774 (alpha_align_insns_1): Likewise for return type and param 1 of
10775 callback param "next_group", and for locals "i", "next", "prev",
10776 "where", "where2", "insn".
10778 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
10780 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
10781 rather than modifying the stmt.
10783 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10785 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
10786 cgraph_state conversion.
10788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10790 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10791 Strengthen local "insns" from rtx to rtx_insn *.
10792 (aarch64_set_frame_expr): Likewise for local "insn".
10793 (aarch64_save_or_restore_fprs): Likewise.
10794 (aarch64_save_or_restore_callee_save_registers): Likewise.
10795 (aarch64_expand_prologue): Likewise.
10796 (aarch64_expand_epilogue): Likewise.
10797 (aarch64_output_mi_thunk): Likewise.
10798 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
10799 "label2" from rtx to rtx_code_label *.
10800 (aarch64_split_atomic_op): Likewise for local "label".
10802 2014-08-25 Martin Liska <mliska@suse.cz>
10804 * cgraph.h (symtab_node):
10805 (bool needed_p (void)): created from decide_is_symbol_needed
10806 (bool referred_to_p (void)): created from referred_to_p
10807 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
10808 * cgraph.h (cgraph_node):
10809 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
10810 (void expand (void)): created from expand_function
10811 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
10812 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
10813 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
10814 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
10815 * cgraph.h (varpool_node):
10816 (static void add (tree decl): created from varpool_add_new_variable
10817 * cgraph.h (cgraph_edge):
10818 void remove (void);
10819 (void remove_caller (void)): created from cgraph_edge_remove_caller
10820 (void remove_callee (void)): created from cgraph_edge_remove_callee
10821 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
10822 created from cgraph_set_call_stmt
10823 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
10824 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
10825 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
10826 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
10827 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
10828 created from cgraph_speculative_call_info
10829 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
10830 int freq_scale, bool update_original)): created from cgraph_clone_edge
10831 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
10832 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
10833 (bool recursive_p (void)): created from cgraph_edge_recursive_p
10834 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
10835 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
10836 (static void rebuild_references (void)): created from cgraph_rebuild_references
10837 * cgraph.h (symbol_table):
10838 (create_reference): renamed from add_reference
10839 (maybe_create_reference): renamed from maybe_add_reference
10840 (void register_symbol (symtab_node *node)): new function
10841 (void clear_asm_symbols (void)): new function
10842 (void unregister (symtab_node *node)): new function
10843 (void release_symbol (cgraph_node *node, int uid)): new function
10844 (cgraph_node * allocate_cgraph_symbol (void)): new function
10845 (void initialize (void)): created from cgraph_init
10846 (symtab_node *first_symbol (void)):new function
10847 (asm_node *first_asm_symbol (void)):new function
10848 (symtab_node *first_defined_symbol (void)):new function
10849 (varpool_node *first_variable (void)):new function
10850 (varpool_node *next_variable (varpool_node *node)):new function
10851 (varpool_node *first_static_initializer (void)):new function
10852 (varpool_node *next_static_initializer (varpool_node *node)):new function
10853 (varpool_node *first_defined_variable (void)):new function
10854 (varpool_node *next_defined_variable (varpool_node *node)):new function
10855 (cgraph_node *first_defined_function (void)):new function
10856 (cgraph_node *next_defined_function (cgraph_node *node)):new function
10857 (cgraph_node *first_function (void)):new function
10858 (cgraph_node *next_function (cgraph_node *node)):new function
10859 (cgraph_node *first_function_with_gimple_body (void)):new function
10860 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
10861 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
10862 created from symtab_remove_unreachable_nodes
10863 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
10864 (void process_new_functions (void)): created from cgraph_process_new_functions
10865 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
10866 (bool output_variables (void)): created from varpool_node::output_variables
10867 (void output_asm_statements (void)): created from output_asm_statements
10868 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
10869 (void compile (void)): created from compile
10870 (void output_weakrefs (void)): created from output_weakrefs
10871 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
10872 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
10873 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
10874 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
10875 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
10876 created from cgraph_next_function_with_gimple_body
10877 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
10878 created from cgraph_remove_edge_removal_hook
10879 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
10880 created from cgraph_add_node_removal_hook
10881 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
10882 created from cgraph_remove_node_removal_hook
10883 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
10884 created from varpool_add_node_removal_hook
10885 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
10886 created from varpool_remove_node_removal_hook
10887 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
10888 created from cgraph_add_function_insertion_hook
10889 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
10890 created from cgraph_remove_function_insertion_hook
10891 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
10892 created from varpool_add_variable_insertion_hook
10893 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
10894 created from varpool_remove_variable_insertion_hook
10895 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
10896 created from cgraph_add_edge_duplication_hook
10897 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
10898 created from cgraph_remove_edge_duplication_hook
10899 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
10900 created from cgraph_add_node_duplication_hook
10901 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
10902 created from cgraph_remove_node_duplication_hook
10903 (void call_edge_removal_hooks (cgraph_edge *e)):
10904 created from cgraph_call_edge_removal_hooks
10905 (void call_cgraph_insertion_hooks (cgraph_node *node)):
10906 created from call_function_insertion_hooks
10907 (void call_cgraph_removal_hooks (cgraph_node *node)):
10908 created from cgraph_call_node_removal_hooks
10909 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
10910 created from cgraph_node::call_duplication_hooks
10911 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
10912 created from cgraph_call_edge_duplication_hooks
10913 (void call_varpool_removal_hooks (varpool_node *node)):
10914 created from varpool_call_node_removal_hooks
10915 (void call_varpool_insertion_hooks (varpool_node *node)):
10916 created from varpool_call_variable_insertion_hooks
10917 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
10918 created from insert_to_assembler_name_hash
10919 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
10920 created from unlink_from_assembler_name_hash
10921 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
10922 created from symtab_prevail_in_asm_name_hash
10923 (void symtab_initialize_asm_name_hash (void)):
10924 created from symtab_initialize_asm_name_hash
10925 (void change_decl_assembler_name (tree decl, tree name)):
10926 created from change_decl_assembler_name
10927 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
10928 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
10929 created from decl_assembler_name_hash
10930 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
10931 created from decl_assembler_name_equal
10932 (static hashval_t hash_node_by_assembler_name (const void *p)):
10933 created from hash_node_by_assembler_name
10934 (static int eq_assembler_name (const void *p1, const void *p2)):
10935 created from eq_assembler_name
10937 2014-08-25 Marek Polacek <polacek@redhat.com>
10939 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
10941 2014-08-25 Petr Murzin <petr.murzin@intel.com>
10943 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
10944 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
10945 SWI1248_AVX512BW mode iterator.
10947 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
10950 * config/sh/predicates.md (general_extend_operand): Disable
10951 TRUNCATE before reload completes.
10953 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
10955 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
10957 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
10960 * config/sh/sh.opt (musermode): Allow negative form.
10961 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
10962 targets that don't support it.
10963 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
10964 Document -mno-usermode option.
10966 2014-08-24 Kito Cheng <kito@0xlab.org>
10968 * system.h (CALLER_SAVE_PROFITABLE): Poison.
10969 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
10970 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
10971 * doc/tm.texi: Regenerate.
10973 2014-08-24 Kito Cheng <kito@0xlab.org>
10975 * ira.c: Fix typo in comment.
10977 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
10979 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
10980 Deprecate c++1y. Change language to reflect greater confidence in C++14.
10982 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
10985 * config/pa/pa.c (pa_output_function_epilogue): Don't set
10986 last_address when the current function is a thunk.
10987 (pa_asm_output_mi_thunk): When we don't have named sections or they
10988 are not being used, check that thunk can reach the stub table with a
10991 2014-08-23 David Malcolm <dmalcolm@redhat.com>
10993 * web.c (union_match_dups): Strengthen param "insn" from rtx to
10995 (pass_web::execute): Likewise for local "insn".
10997 2014-08-23 David Malcolm <dmalcolm@redhat.com>
10999 * var-tracking.c (struct micro_operation_def): Strengthen field
11000 "insn" from rtx to rtx_insn *.
11001 (struct emit_note_data_def): Likewise.
11002 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11003 (vt_stack_adjustments): Likewise for local "insn".
11004 (adjust_insn): Likewise for param "insn".
11005 (val_store): Likewise.
11006 (val_resolve): Likewise.
11007 (struct count_use_info): Likewise for field "insn".
11008 (log_op_type): Likewise for param "insn".
11009 (reverse_op): Likewise.
11010 (prepare_call_arguments): Likewise.
11011 (add_with_sets): The initial param takes an insn, but we can't
11012 yet strengthen it from rtx to rtx_insn * since it's used as a
11013 cselib_record_sets_hook callback. For now rename initial param
11014 from "insn" to "uncast_insn", and introduce a local "insn" of
11015 the stronger rtx_insn * type, with a checked cast.
11016 (compute_bb_dataflow): Strengthen local "insn" from rtx to
11018 (emit_note_insn_var_location): Likewise.
11019 (emit_notes_for_changes): Likewise.
11020 (emit_notes_for_differences): Likewise.
11021 (next_non_note_insn_var_location): Likewise for return type and
11023 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11024 (vt_initialize): Likewise for local "insn".
11025 (delete_debug_insns): Likewise for locals "insn" and "next".
11027 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11029 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11031 (mark_constant_pool): Likewise for local "insn".
11033 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11035 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11037 (dead_debug_promote_uses): Likewise.
11038 (dead_debug_insert_temp): Likewise.
11040 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11042 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11043 from const_rtx to const rtx_insn *.
11044 (store_killed_after): Likewise. Strengthen locals "last", "act"
11045 from rtx to rtx_insn *.
11046 (store_killed_before): Strengthen param "insn" from const_rtx to
11047 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
11048 (find_moveable_store): Strengthen param "insn" from rtx to
11050 (compute_store_table): Likewise for local "insn".
11051 (insert_insn_start_basic_block): Likewise for param "insn" and
11052 locals "prev", "before", "insn".
11053 (insert_store): For now, add a checked cast to rtx_insn * on the
11054 result of gen_move_insn.
11055 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11057 (replace_store_insn): Likewise. For now, add a checked cast to
11058 rtx_insn * on the result of gen_move_insn.
11060 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11062 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11064 (expand_sjlj_dispatch_table): Likewise.
11066 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11068 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11069 "insn" from rtx to rtx_insn *.
11071 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11073 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11074 "insn" from rtx to rtx_insn *.
11075 (dup_block_and_redirect): Likewise for param 3 "before".
11077 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11078 from rtx to rtx_insn *.
11079 (move_insn_for_shrink_wrap): Likewise.
11080 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11081 (dup_block_and_redirect): Likewise for param "before" and local
11083 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11085 (convert_to_simple_return): Likewise for local "start".
11087 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11088 Strengthen local "insn" from rtx to rtx_insn *, for use when
11089 invoking requires_stack_frame_p.
11091 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11093 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11095 (speculate_expr): Likewise for locals "orig_insn_rtx",
11097 (eq_transformed_insns): Likewise for locals "i1", "i2".
11098 (check_for_new_jump): Likewise for return type and local "end".
11099 (find_new_jump): Likewise for return type and local "jump".
11100 (sel_split_edge): Likewise for local "jump".
11101 (sel_create_recovery_block): Likewise.
11102 (sel_redirect_edge_and_branch_force): Likewise.
11103 (sel_redirect_edge_and_branch): Likewise.
11105 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11107 * sel-sched.c (substitute_reg_in_expr): Strengthen local
11108 "new_insn" from rtx to rtx_insn *.
11109 (create_insn_rtx_with_rhs): Likewise for return type and for local
11111 (create_insn_rtx_with_lhs): Likewise.
11112 (create_speculation_check): Likewise for local "insn_rtx".
11113 (implicit_clobber_conflict_p): Likewise for local "insn".
11114 (get_expr_cost): Likewise.
11115 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11116 (move_cond_jump): Likewise for locals "next", "prev", "link",
11117 "head", "from", "to".
11119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11121 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11122 "next" from rtx to rtx_insn *.
11123 (find_conditional_protection): Likewise for local "next".
11124 (is_conditionally_protected): Likewise for local "insn1".
11125 (is_pfree): Likewise for locals "insn1", "insn2".
11127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11129 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11130 from rtx to rtx_insn *.
11132 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11133 locals "insn1", "insn2" from rtx to rtx_insn *.
11134 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11135 locals "insn", "prev", "last_jump", "next_tail".
11136 (schedule_ebb): Likewise for params "head", "tail".
11137 (schedule_ebbs): Likewise for locals "tail", "head".
11139 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11140 to rtx_insn on "last_insn" in one of the invocations of
11143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11145 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11146 "elem", "insn" from rtx to rtx_insn *.
11147 (change_spec_dep_to_hard): Likewise.
11148 (get_back_and_forw_lists): Likewise for local "con".
11149 (sd_add_dep): Likewise for locals "elem", "insn".
11150 (sd_resolve_dep): Likewise for locals "pro", "con".
11151 (sd_unresolve_dep): Likewise.
11152 (sd_delete_dep): Likewise.
11153 (chain_to_prev_insn): Likewise for local "pro".
11154 (find_inc): Likewise for locals "pro", "con".
11156 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11158 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11160 (reg_set_between_p): Strengthen local "insn" from const_rtx to
11162 (modified_between_p): Strengthen local "insn" from rtx to
11164 (remove_reg_equal_equiv_notes_for_regno): Likewise.
11165 (keep_with_call_p): Strengthen local "i2" from const_rtx to
11168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11170 * resource.c (next_insn_no_annul): Strengthen local "next" from
11172 (mark_referenced_resources): Likewise for local "insn".
11174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11176 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
11178 (find_reloads): Likewise for param 1.
11179 (subst_reloads): Likewise for sole param.
11180 (find_equiv_reg): Likwise for param 2.
11181 (regno_clobbered_p): Likwise for param 2.
11182 (reload): Likewise for param 1.
11184 * caller-save.c (save_call_clobbered_regs): Strengthen local
11185 "insn" from rtx to rtx_insn *.
11186 (insert_one_insn): Likewise for local "insn".
11188 * reload.c (this_insn): Likewise for this global.
11189 (find_reloads): Likewise for param "insn".
11190 (find_reloads_toplev): Likewise.
11191 (find_reloads_address): Likewise.
11192 (subst_reg_equivs): Likewise.
11193 (update_auto_inc_notes): Likewise.
11194 (find_reloads_address_1): Likewise.
11195 (find_reloads_subreg_address): Likewise.
11196 (subst_reloads): Likewise.
11197 (find_equiv_reg): Likewise, also for local "p".
11198 (regno_clobbered_p): Likewise for param "insn".
11200 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
11202 (spill_reg_store): Likewise for the elements of this array.
11203 (remove_init_insns): Likewise for local "equiv_insn".
11204 (will_delete_init_insn_p): Likewise for param "insn".
11205 (reload): Likewise for param ""first" and local "insn".
11206 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
11208 (calculate_elim_costs_all_insns): Likewise.
11209 (delete_caller_save_insns): Likewise.
11210 (spill_failure): Likewise for param "insn".
11211 (delete_dead_insn): Likewise.
11212 (set_label_offsets): Likewise.
11213 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
11215 (elimination_costs_in_insn): Likewise for param "insn".
11216 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
11217 when referring to an insn.
11218 (set_initial_label_offsets): Likewise.
11219 (set_offsets_for_label): Strengthen param "insn" from rtx to
11221 (init_eliminable_invariants): Likewise for param "first" and local
11223 (fixup_eh_region_note): Likewise for param "insn".
11224 (reload_as_needed): Likewise for locals "prev", "insn",
11225 "old_next", "old_prev", "next".
11226 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
11228 (reload_inheritance_insn): Strengthen elements of this array from
11230 (failed_reload): Likewise for param "insn".
11231 (choose_reload_regs): Likewise for local "insn". Replace use of
11232 NULL_RTX with NULL when referring to an insn.
11233 (input_reload_insns): Strengthen elements of this array from rtx
11235 (other_input_address_reload_insns): Likewise for this global.
11236 (other_input_reload_insns): Likewise for this global.
11237 (input_address_reload_insns): Likwise for the elements of this
11239 (inpaddr_address_reload_insns): Likwise for the elements of this
11241 (output_reload_insns): Likewise for the elements of this array.
11242 (output_address_reload_insns): Likewise for the elements of this
11244 (outaddr_address_reload_insns): Likewise for the elements of this
11246 (operand_reload_insns): Likewise for this global.
11247 (other_operand_reload_insns): Likewise for this global.
11248 (other_output_reload_insns): Likewise for the elements of this
11250 (new_spill_reg_store): Likewise for the elements of this
11252 (emit_input_reload_insns): Likewise for locals "insn", "temp".
11253 Strengthen local "where" from rtx * to rtx_insn **.
11254 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
11255 from rtx to rtx_insn *.
11256 (do_input_reload): Likewise for local "insn".
11257 (do_output_reload): Likewise for local "insn".
11258 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
11259 (emit_insn_if_valid_for_reload): Likewise for return type and local
11260 "last". Add checked cast to rtx_insn when returning "insn" since
11261 this has been through emit_insn.
11262 (gen_reload): Strengthen return type and locals "last", "insn", "set"
11263 from rtx to rtx_insn *. Add checked cast to rtx_insn when
11264 returning "insn" since it's been through
11265 emit_insn_if_valid_for_reload at this point.
11266 (delete_output_reload): Strengthen param "insn" and locals
11267 "output_reload_insn", "i2" from rtx to rtx_insn *.
11268 (delete_address_reloads): Likewise for params "dead_insn",
11269 "current_insn" and locals "prev", "next".
11270 (delete_address_reloads_1): Likewise for params "dead_insn",
11271 "current_insn" and locals "prev", "i2".
11272 (inc_for_reload): Likewise for locals "last", "add_insn".
11273 (add_auto_inc_notes): Strengthen param "insn" from rtx to
11276 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
11277 param of this duplicate of the prototype from reload.h
11279 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11281 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
11283 (regstat_bb_compute_calls_crossed): Likewise.
11285 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11287 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
11289 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
11291 (regrename_analyze): Strengthen local "insn" from rtx to
11293 (scan_rtx_reg): Likewise for param "insn".
11294 (scan_rtx_address): Likewise.
11295 (scan_rtx): Likewise.
11296 (restore_operands): Likewise.
11297 (record_out_operands): Likewise.
11298 (build_def_use): Likewise for local "insn". Replace use of
11299 NULL_RTX with NULL when dealing with an insn.
11301 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11303 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
11304 * reginfo.c (reg_scan): Likewise, also for local "insn".
11305 (reg_scan_mark_refs): Likewise for param "insn".
11306 (init_subregs_of_mode): Likewise for local "insn".
11308 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11310 * regcprop.c (struct queued_debug_insn_change): Strengthen field
11311 "insn" from rtx to rtx_insn *.
11312 (replace_oldest_value_reg): Likewise for param "insn".
11313 (replace_oldest_value_addr): Likewise.
11314 (replace_oldest_value_mem): Likewise.
11315 (apply_debug_insn_changes): Likewise for local "last_insn".
11316 (copyprop_hardreg_forward_1): Likewise for local "insn".
11318 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11320 * reg-stack.c (next_flags_user): Strengthen return type and param
11321 "insn" from rtx to rtx_insn *.
11322 (straighten_stack): Likewise for param "insn".
11323 (check_asm_stack_operands): Likewise.
11324 (remove_regno_note): Likewise.
11325 (emit_pop_insn): Likewise for return type, param "insn", local
11327 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
11328 "limit" from rtx to rtx_insn *.
11329 (swap_to_top): Likewise for param "insn".
11330 (move_for_stack_reg): Likewise.
11331 (move_nan_for_stack_reg): Likewise.
11332 (swap_rtx_condition): Likewise.
11333 (compare_for_stack_reg): Likewise.
11334 (subst_all_stack_regs_in_debug_insn): Likewise.
11335 (subst_stack_regs_pat): Likewise, and local "insn2".
11336 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
11338 (subst_stack_regs): Likewise.
11339 (change_stack): Likewise.
11340 (convert_regs_1): Likewise for locals "insn", "next".
11342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11344 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
11346 (combine_set_extension): Likewise for param "curr_insn".
11347 (transform_ifelse): Likewise for param "def_insn".
11348 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
11349 from vec<rtx> * to vec<rtx_insn *> *.
11350 (is_cond_copy_insn): Likewise for param "insn".
11351 (struct ext_state): Strengthen the four vec fields from vec<rtx>
11352 to vec<rtx_insn *>.
11353 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
11354 local "def_insn" from rtx to rtx_insn *.
11355 (get_sub_rtx): Likewise for param "def_insn".
11356 (merge_def_and_ext): Likewise.
11357 (combine_reaching_defs): Likewise.
11358 (add_removable_extension): Likewise for param "insn".
11359 (find_removable_extensions): Likewise for local "insn".
11360 (find_and_remove_re): Likewise for locals "curr_insn" and
11361 "def_insn". Strengthen locals "reinsn_del_list" and
11362 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
11364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11366 * recog.c (split_insn): Strengthen param "insn" and locals
11367 "first", "last" from rtx to rtx_insn *.
11368 (split_all_insns): Likewise for locals "insn", "next".
11369 (split_all_insns_noflow): Likewise.
11371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11373 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
11375 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
11376 (debug_rtx_find): Likewise for param 1 "x".
11378 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
11379 const_rtx to const rtx_insn *. Likewise for local "insn".
11380 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
11381 (debug_rtx_find): Likewise for param 1 "x".
11382 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
11383 from const_rtx to const rtx_insn * within the appropriate cases of
11384 the switch statement.
11386 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
11387 Strengthen local "insns" from rtx to rtx_insn * since this is
11388 passed to a call to debug_rtx_list.
11390 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11392 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
11395 * function.c (stack_protect_epilogue): Add checked cast to
11396 rtx_insn for now when invoking predict_insn_def.
11398 * predict.c (predict_insn): Strengthen param "insn" from rtx to
11400 (predict_insn_def): Likewise.
11401 (rtl_predict_edge): Likewise for local "last_insn".
11402 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
11404 (combine_predictions_for_insn): Strengthen param "insn" from rtx
11406 (bb_estimate_probability_locally): Likewise for local "last_insn".
11407 (expensive_function_p): Likewise for local "insn".
11409 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
11410 local "jmp", since this is used when invoking predict_insn_def.
11412 2014-08-22 Marek Polacek <polacek@redhat.com>
11415 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
11417 2014-08-22 Marek Polacek <polacek@redhat.com>
11420 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
11421 a comparison in parens.
11422 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
11425 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11427 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
11430 * cprop.c (fis_get_condition): Likewise.
11432 * postreload.c (reload_cse_regs): Likewise for param "first".
11433 (reload_cse_simplify): Likewise for param "insn".
11434 (reload_cse_regs_1): Likewise for local "insn".
11435 (reload_cse_simplify_set): Likewise for param "insn".
11436 (reload_cse_simplify_operands): Likewise.
11437 (struct reg_use): Likewise for field "insn".
11438 (reload_combine_purge_insn_uses): Likewise for param "insn".
11439 (fixup_debug_insns): Likewise for params "from", "to" and local
11441 (try_replace_in_use): Likewise for local "use_insn".
11442 (reload_combine_recognize_const_pattern): Likewise for param
11443 "insn" and locals "add_moved_after_insn", "use_insn".
11444 (reload_combine_recognize_pattern): Likewise for param "insn" and
11446 (reload_combine): Likewise for locals "insn", "prev".
11447 (reload_combine_note_use): Likewise for param "insn".
11448 (move2add_use_add2_insn): Likewise.
11449 (move2add_use_add3_insn): Likewise.
11450 (reload_cse_move2add): Likewise, also for local "next".
11451 (move2add_note_store): Likewise for local "insn".
11453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11455 * postreload-gcse.c (struct occr): Strengthen field "insn" from
11457 (struct unoccr): Likewise.
11458 (struct modifies_mem): Likewise.
11459 (alloc_mem): Likewise for local "insn".
11460 (insert_expr_in_table): Likewise for param "insn".
11461 (dump_expr_hash_table_entry): Likewise for local "insn".
11462 (oprs_unchanged_p): Likewise for param "insn".
11463 (load_killed_in_block_p): Likewise for local "setter".
11464 (record_last_reg_set_info): Likewise for param "insn".
11465 (record_last_reg_set_info_regno): Likewise.
11466 (record_last_mem_set_info): Likewise.
11467 (record_last_set_info): Likewise for local "last_set_insn".
11468 (record_opr_changes): Likewise for param "insn".
11469 (hash_scan_set): Likewise.
11470 (compute_hash_table): Likewise for local "insn".
11471 (get_avail_load_store_reg): Likewise for param "insn".
11472 (eliminate_partially_redundant_load): Likewise, also for locals
11473 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
11475 (eliminate_partially_redundant_loads): Likewise for local "insn".
11477 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11479 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
11481 (expand_binop): Likewise for locals "entry_last", "last", "insns"
11482 (expand_twoval_unop): Likewise for locals entry_last", "last".
11483 (expand_twoval_binop): Likewise.
11484 (expand_twoval_binop_libfunc): Likewise for local "insns".
11485 (widen_leading): Likewise for local "last".
11486 (expand_doubleword_clz): Likewise for local "seq". Strengthen
11487 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
11488 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
11489 (expand_parity): Likewise for locals "last" and "seq".
11490 (expand_ffs): Likewise for local "seq". Strengthen local
11491 "nonzero_label" from rtx to rtx_code_label *.
11492 (expand_absneg_bit): Strengthen local "insns" from rtx to
11494 (expand_unop_direct): Likewise for local "last".
11495 (expand_unop): Likewise for locals "last", "insns".
11496 (expand_abs_nojump): Likewise for local "last".
11497 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
11498 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
11500 (expand_copysign_absneg): Strengthen local "label" from rtx to
11502 (expand_copysign_bit): Strengthen local "insns" from rtx to
11504 (struct no_conflict_data): Likewise for fields "first", "insn".
11505 (emit_libcall_block_1): Likewise for param "insns" and locals
11506 "next", "last", "insn".
11507 (emit_libcall_block): For now, add a checked cast to rtx_insn *
11508 on "insns" when invoking emit_libcall_block_1. Ultimately we
11509 want to strengthen insns itself.
11510 (prepare_cmp_insn): Strengthen local "last" from rtx to
11512 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
11513 (prepare_float_lib_cmp): Likewise for local "insns".
11514 (emit_conditional_move): Likewise for local "last".
11515 (emit_conditional_add): Likewise.
11516 (have_sub2_insn): Likewise for local "seq".
11517 (expand_float): Likewise for local "insns". Strengthen locals
11518 "label", "neglabel" from rtx to rtx_code_label *.
11519 (expand_fix): Likewise for locals "last", "insn", "insns" (to
11520 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
11521 (expand_fixed_convert): Likewise for local "insns" (to
11523 (expand_sfix_optab): Likewise for local "last".
11524 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
11525 to rtx_code_label *.
11526 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
11527 from rtx to rtx_insn *.
11528 (expand_atomic_fetch_op): Likewise for local "insn".
11529 (maybe_legitimize_operand_same_code): Likewise for local "last".
11530 (maybe_legitimize_operands): Likewise.
11532 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11534 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
11535 "insn" from rtx to rtx_insn *.
11536 (ps_rtl_insn): Likewise for return type.
11537 (doloop_register_get): Likewise for params "head", "tail" and
11538 locals "insn", "first_insn_not_to_check".
11539 (schedule_reg_move): Likewise for local "this_insn".
11540 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
11541 of gen_move_insn for now.
11542 (reset_sched_times): Strengthen local "insn" from rtx to
11544 (permute_partial_schedule): Likewise.
11545 (duplicate_insns_of_cycles): Likewise for local "u_insn".
11546 (dump_insn_location): Likewise for param "insn".
11547 (loop_canon_p): Likewise for local "insn".
11548 (sms_schedule): Likewise.
11549 (print_partial_schedule): Likewise.
11550 (ps_has_conflicts): Likewise.
11552 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11554 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
11555 "tailp" from rtx * to rtx_insn **.
11557 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
11558 from rtx to rtx_insn *.
11559 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
11560 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
11561 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
11563 * modulo-sched.c (const_iteration_count): Strengthen return type
11564 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
11565 use of NULL_RTX with NULL when working with insns.
11566 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
11568 (sms_schedule): Likewise.
11569 * sched-rgn.c (init_ready_list): Likewise, also for locals
11570 "src_head" and "src_next_tail".
11571 (compute_block_dependences): Likewise.
11572 (free_block_dependencies): Likewise.
11573 (debug_rgn_dependencies): Likewise.
11574 (free_rgn_deps): Likewise.
11575 (compute_priorities): Likewise.
11576 (schedule_region): Likewise.
11577 * sel-sched.c (find_ebb_boundaries): Likewise.
11579 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
11580 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
11582 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11584 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
11585 from rtx to rtx_insn *.
11586 (new_seginfo): Likewise for param "insn".
11587 (create_pre_exit): Likewise for locals "last_insn",
11588 "before_return_copy", "return_copy".
11589 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
11592 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11594 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
11595 from rtx to rtx_insn *.
11596 (lra_push_insn): Likewise for 1st param.
11597 (lra_push_insn_and_update_insn_regno_info): Likewise.
11598 (lra_pop_insn): Likewise for return type.
11599 (lra_invalidate_insn_data): Likewise for 1st param.
11600 (lra_set_insn_deleted): Likewise.
11601 (lra_delete_dead_insn): Likewise.
11602 (lra_process_new_insns): Likewise for first 3 params.
11603 (lra_set_insn_recog_data): Likewise for 1st param.
11604 (lra_update_insn_recog_data): Likewise.
11605 (lra_set_used_insn_alternative): Likewise.
11606 (lra_invalidate_insn_regno_info): Likewise.
11607 (lra_update_insn_regno_info): Likewise.
11608 (lra_former_scratch_operand_p): Likewise.
11609 (lra_eliminate_regs_1): Likewise.
11610 (lra_get_insn_recog_data): Likewise.
11612 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
11615 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
11617 (substitute_within_insn): New.
11618 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
11619 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
11620 Replace call to "substitute" with call to substitute_within_insn.
11622 * lra-constraints.c (curr_insn): Strengthen from rtx to
11624 (get_equiv_with_elimination): Likewise for param "insn".
11625 (match_reload): Strengthen params "before" and "after" from rtx *
11627 (emit_spill_move): Likewise for return type. Add a checked cast
11628 to rtx_insn * on result of gen_move_insn for now.
11629 (check_and_process_move): Likewise for local "before". Replace
11630 NULL_RTX with NULL when referring to insns.
11631 (process_addr_reg): Strengthen params "before" and "after" from
11632 rtx * to rtx_insn **.
11633 (insert_move_for_subreg): Likewise.
11634 (simplify_operand_subreg): Strengthen locals "before" and "after"
11635 from rtx to rtx_insn *.
11636 (process_address_1): Strengthen params "before" and "after" from
11637 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
11639 (process_address): Strengthen params "before" and "after" from
11640 rtx * to rtx_insn **.
11641 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
11642 (curr_insn_transform): Strengthen locals "before" and "after"
11643 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
11645 (loc_equivalence_callback): Update cast of "data", changing
11646 resulting type from rtx to rtx_insn *.
11647 (substitute_pseudo_within_insn): New.
11648 (inherit_reload_reg): Strengthen param "insn" from rtx to
11649 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
11650 NULL when referring to insns. Add a checked cast to rtx_insn *
11651 when using usage_insn to invoke lra_update_insn_regno_info.
11652 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
11653 likewise for locals "restore", "save". Add checked casts to
11654 rtx_insn * when using usage_insn to invoke
11655 lra_update_insn_regno_info and lra_process_new_insns. Replace
11656 NULL_RTX with NULL when referring to insns.
11657 (split_if_necessary): Strengthen param "insn" from rtx to
11659 (update_ebb_live_info): Likewise for params "head", "tail" and local
11661 (get_last_insertion_point): Likewise for return type and local "insn".
11662 (get_live_on_other_edges): Likewise for local "last".
11663 (inherit_in_ebb): Likewise for params "head", "tail" and locals
11664 "prev_insn", "next_insn", "restore".
11665 (remove_inheritance_pseudos): Likewise for local "prev_insn".
11666 (undo_optional_reloads): Likewise for local "insn".
11668 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
11670 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
11672 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
11674 (spill_pseudos): Likewise for local "insn".
11675 (init_elimination): Likewise.
11676 (process_insn_for_elimination): Likewise for param "insn".
11678 * lra-lives.c (curr_insn): Likewise.;
11680 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
11681 (remove_pseudos): Likewise for param "insn".
11682 (spill_pseudos): Likewise for local "insn".
11683 (lra_final_code_change): Likewise for locals "insn", "curr".
11685 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
11686 (lra_set_insn_deleted): Likewise.
11687 (lra_delete_dead_insn): Likewise, and for local "prev".
11688 (new_insn_reg): Likewise for param "insn".
11689 (lra_set_insn_recog_data): Likewise.
11690 (lra_update_insn_recog_data): Likewise.
11691 (lra_set_used_insn_alternative): Likewise.
11692 (get_insn_freq): Likewise.
11693 (invalidate_insn_data_regno_info): Likewise.
11694 (lra_invalidate_insn_regno_info): Likewise.
11695 (lra_update_insn_regno_info): Likewise.
11696 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
11698 (lra_push_insn_1): Strengthen param "insn" from rtx to
11700 (lra_push_insn): Likewise.
11701 (lra_push_insn_and_update_insn_regno_info): Likewise.
11702 (lra_pop_insn): Likewise for return type and local "insn".
11703 (push_insns): Likewise for params "from", "to", and local "insn".
11704 (setup_sp_offset): Likewise for params "from", "last" and locals
11706 (lra_process_new_insns): Likewise for params "insn", "before",
11707 "after" and local "last".
11708 (struct sloc): Likewise for field "insn".
11709 (lra_former_scratch_operand_p): Likewise for param "insn".
11710 (remove_scratches): Likewise for locals "insn", "last".
11711 (check_rtl): Likewise for local "insn".
11712 (add_auto_inc_notes): Likewise for param "insn".
11713 (update_inc_notes): Likewise for local "insn".
11714 (lra): Replace NULL_RTX with NULL when referring to insn.
11716 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11718 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
11720 (resolve_reg_notes): Likewise.
11721 (resolve_simple_move): Likewise for return type, param "insn", and
11722 locals "insns", "minsn".
11723 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
11724 (resolve_use): Likewise.
11725 (resolve_debug): Likewise.
11726 (find_decomposable_shift_zext): Likewise.
11727 (resolve_shift_zext): Likewise for return type, param "insn", and
11728 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
11729 (decompose_multiword_subregs): Likewise for local "insn",
11730 "orig_insn", "decomposed_shift", "end".
11732 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11734 * basic-block.h (basic_block split_edge_and_insert): Strengthen
11735 param "insns" from rtx to rtx_insn *.
11737 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
11739 (struct iv_to_split): Likewise.
11740 (loop_exit_at_end_p): Likewise for local "insn".
11741 (split_edge_and_insert): Likewise for param "insns".
11742 (compare_and_jump_seq): Likewise for return type, param "cinsn",
11743 and locals "seq", "jump".
11744 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
11745 "branch_code"; update invocations of compare_and_jump_seq to
11746 eliminate NULL_RTX in favor of NULL.
11747 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
11749 (reset_debug_uses_in_loop): Likewise.
11750 (analyze_insn_to_expand_var): Likewise for param "insn".
11751 (analyze_iv_to_split_insn): Likewise.
11752 (analyze_insns_in_loop): Likewise for local "insn".
11753 (insert_base_initialization): Likewise for param
11754 "insn" and local "seq".
11755 (split_iv): Likewise for param "insn" and local "seq".
11756 (expand_var_during_unrolling): Likewise for param "insn".
11757 (insert_var_expansion_initialization): Likewise for local "seq".
11758 (combine_var_copies_in_loop_exit): Likewise.
11759 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
11761 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
11762 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
11765 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11767 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
11769 (iv_analyze_result): Likewise.
11770 (iv_analyze_expr): Likewise.
11773 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
11774 local "def_insn" from rtx to rtx_insn *.
11775 (get_biv_step_1): Likewise for local "insn".
11776 (iv_analyze_expr): Likewise for param "insn".
11777 (iv_analyze_def): Likewise for local "insn".
11778 (iv_analyze_op): Likewise for param "insn".
11779 (iv_analyze): Likewise.
11780 (iv_analyze_result): Likewise.
11782 (suitable_set_for_replacement): Likewise.
11783 (simplify_using_initial_values): Likewise for local "insn".
11784 (iv_number_of_iterations): Likewise for param "insn".
11785 (check_simple_exit): Add checked cast to rtx_insn when invoking
11786 iv_number_of_iterations for now (until get_condition is
11789 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
11790 "insn" from rtx to rtx_insn *.
11791 (analyze_insns_in_loop): Likewise for local "insn".
11793 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11795 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
11797 (struct invariant): Likewise.
11798 (hash_invariant_expr_1): Likewise for param "insn".
11799 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
11800 (find_exits): Likewise for local "insn".
11801 (create_new_invariant): Likewise for param "insn".
11802 (check_dependencies): Likewise.
11803 (find_invariant_insn): Likewise.
11804 (record_uses): Likewise.
11805 (find_invariants_insn): Likewise.
11806 (find_invariants_bb): Likewise for local "insn".
11807 (get_pressure_class_and_nregs): Likewise for param "insn".
11808 (calculate_loop_reg_pressure): Likewise for local "insn".
11810 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11812 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
11814 (add_test): Likewise for locals "seq", "jump".
11815 (doloop_modify): Likewise for locals "sequence", "jump_insn".
11817 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11819 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
11821 (rebuild_jump_labels_chain): Likewise for param "chain".
11823 * cfgexpand.c (pass_expand::execute): Add checked cast to
11824 rtx_insn * when calling rebuild_jump_labels_chain in region where
11825 we know e->insns.r is non-NULL.
11827 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
11829 (rebuild_jump_labels): Likewise.
11830 (rebuild_jump_labels_chain): Likewise for param "chain".
11831 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
11832 (init_label_info): Likewise for param "f".
11833 (maybe_propagate_label_ref): Likewise for params "jump_insn",
11834 "prev_nonjump_insn".
11835 (mark_all_labels): Likewise for param "f" and locals "insn",
11836 "prev_nonjump_insn".
11838 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11840 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
11841 from rtx to rtx_insn *insn.
11842 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
11843 (ira_add_allocno_copy): Likewise.
11844 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
11846 (ira_create_copy): Likewise.
11847 (ira_add_allocno_copy): Likewise.
11848 (create_bb_allocnos): Likewise for local "insn".
11849 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
11850 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
11851 process_regs_for_copy for rtx_insn * param.
11852 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
11853 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
11854 process_regs_for_copy for rtx_insn * param.
11855 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
11856 * ira-costs.c (record_reg_classes): Likewise for param "insn".
11857 (record_operand_costs): Likewise.
11858 (scan_one_insn): Likewise for return type, and for param "insn".
11859 (process_bb_for_costs): Likewise for local "insn".
11860 (process_bb_node_for_hard_reg_moves): Likewise.
11861 * ira-emit.c (struct move): Likewise for field "insn".
11862 (create_move): Eliminate use of NULL_RTX when dealing with an
11864 (emit_move_list): Strengthen return type and locals "result",
11865 "insn" from rtx to rtx_insn *insn.
11866 (emit_moves): Likewise for locals "insns", "tmp".
11867 (ira_emit): Likewise for local "insn".
11868 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
11870 (find_call_crossed_cheap_reg): Likewise.
11871 (process_bb_node_lives): Likewise for local "insn".
11872 * ira.c (decrease_live_ranges_number): Likewise.
11873 (compute_regs_asm_clobbered): Likewise.
11874 (build_insn_chain): Likewise.
11875 (find_moveable_pseudos): Likewise, also locals "def_insn",
11876 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
11877 to rtx_insn **. Add a checked cast when assigning from
11878 "closest_use" into closest_uses array in a region where we know
11879 it's a non-NULL insn.
11880 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
11882 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
11883 "last_interesting_insn", "uin".
11884 (move_unallocated_pseudos): Likewise for locals "def_insn",
11885 "move_insn", "newinsn".
11887 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11889 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
11890 Strengthen locals "done_label", "do_error" from rtx to
11892 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
11893 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
11895 (ubsan_expand_si_overflow_neg_check): Likewise for locals
11896 "done_label", "do_error" to rtx_code_label * and local "last" to
11898 (ubsan_expand_si_overflow_mul_check): Likewise for locals
11899 "done_label", "do_error", "large_op0", "small_op0_large_op1",
11900 "one_small_one_large", "both_ops_large", "after_hipart_neg",
11901 "after_lopart_neg", "do_overflow", "hipart_different" to
11902 rtx_code_label * and local "last" to rtx_insn *.
11904 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11906 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
11907 "insn" and "move_insn" from rtx to rtx_insn *.
11909 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11911 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
11913 (cheap_bb_rtx_cost_p): Likewise.
11914 (first_active_insn): Likewise for return type and local "insn".
11915 (last_active_insn): Likewise for return type and locals "insn",
11917 (struct noce_if_info): Likewise for fields "jump", "insn_a",
11919 (end_ifcvt_sequence): Likewise for return type and locals "insn",
11921 (noce_try_move): Likewise for local "seq".
11922 (noce_try_store_flag): Likewise.
11923 (noce_try_store_flag_constants): Likewise.
11924 (noce_try_addcc): Likewise.
11925 (noce_try_store_flag_mask): Likewise.
11926 (noce_try_cmove): Likewise.
11927 (noce_try_minmax): Likewise.
11928 (noce_try_abs): Likewise.
11929 (noce_try_sign_mask): Likewise.
11930 (noce_try_bitop): Likewise.
11931 (noce_can_store_speculate_p): Likewise for local "insn".
11932 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
11934 (check_cond_move_block): Likewise for local "insn".
11935 (cond_move_convert_if_block): Likewise.
11936 (cond_move_process_if_block): Likewise for locals "seq",
11938 (noce_find_if_block): Likewise for local "jump".
11939 (merge_if_block): Likewise for local "last".
11940 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
11941 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
11942 (block_has_only_trap): Likewise for return type and local "trap".
11943 (find_if_case_1): Likewise for local "jump".
11944 (dead_or_predicable): Likewise for locals "head", "end", "jump",
11947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11949 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
11950 "last_insn", "loop_end" from rtx to rtx_insn *.
11952 * hw-doloop.c (scan_loop): Likewise for local "insn".
11953 (discover_loop): Likewise for param "tail_insn".
11954 (discover_loops): Likewise for local "tail".
11956 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
11957 cast to rtx_insn * when assigning from an rtx local to a
11958 hwloop_info's "last_insn" field.
11960 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11962 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
11963 (add_delay_dependencies): Strengthen local "pro" from rtx to
11965 (recompute_todo_spec): Likewise.
11966 (dep_cost_1): Likewise for locals "insn", "used".
11967 (schedule_insn): Likewise for local "dbg".
11968 (schedule_insn): Likewise for locals "pro", "next".
11969 (unschedule_insns_until): Likewise for local "con".
11970 (restore_pattern): Likewise for local "next".
11971 (estimate_insn_tick): Likewise for local "pro".
11972 (resolve_dependencies): Likewise for local "next".
11973 (fix_inter_tick): Likewise.
11974 (fix_tick_ready): Likewise for local "pro".
11975 (add_to_speculative_block): Likewise for locals "check", "twin",
11977 (sched_extend_bb): Likewise for locals "end", "insn".
11978 (init_before_recovery): Likewise for local "x".
11979 (sched_create_recovery_block): Likewise for local "barrier".
11980 (create_check_block_twin): Likewise for local "pro".
11981 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
11983 (unlink_bb_notes): Update for change to type of bb_header.
11984 Strengthen locals "prev", "label", "note", "next" from rtx to
11986 (clear_priorities): Likewise for local "pro".
11988 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11990 * gcse.c (struct occr): Strengthen field "insn" from rtx to
11992 (test_insn): Likewise for this global.
11993 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
11995 (oprs_anticipatable_p): Likewise.
11996 (oprs_available_p): Likewise.
11997 (insert_expr_in_table): Strengthen param "insn" from rtx to
11999 (hash_scan_set): Likewise.
12000 (hash_scan_clobber): Likewise.
12001 (hash_scan_call): Likewise.
12002 (hash_scan_insn): Likewise.
12003 (compute_hash_table_work): Likewise for local "insn".
12004 (process_insert_insn): Likewise for return type and local "pat".
12005 (insert_insn_end_basic_block): Likewise for locals "new_insn",
12006 "pat", "pat_end", "maybe_cc0_setter".
12007 (pre_edge_insert): Likewise for local "insn".
12008 (pre_insert_copy_insn): Likewise for param "insn".
12009 (pre_insert_copies): Likewise for local "insn".
12010 (struct set_data): Likewise for field "insn".
12011 (single_set_gcse): Likewise for param "insn".
12012 (gcse_emit_move_after): Likewise.
12013 (pre_delete): Likewise for local "insn".
12014 (update_bb_reg_pressure): Likewise for param "from" and local
12016 (should_hoist_expr_to_dom): Likewise for param "from".
12017 (hoist_code): Likewise for local "insn".
12018 (get_pressure_class_and_nregs): Likewise for param "insn".
12019 (calculate_bb_reg_pressure): Likewise for local "insn".
12020 (compute_ld_motion_mems): Likewise.
12022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12024 * genpeep.c (main): Rename param back from "uncast_ins1" to
12025 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
12028 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12030 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12033 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12034 documentation to state it is only for VSX operations.
12036 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12037 constraint only active if VSX.
12039 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12040 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12041 (lfiwzx): Likewise.
12043 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12045 * fwprop.c (single_def_use_dom_walker::before_dom_children):
12046 Strengthen local "insn" from rtx to rtx_insn *.
12047 (use_killed_between): Likewise for param "target_insn".
12048 (all_uses_available_at): Likewise for param "target_insn" and
12050 (update_df_init): Likewise for params "def_insn", "insn".
12051 (update_df): Likewise for param "insn".
12052 (try_fwprop_subst): Likewise for param "def_insn" and local
12054 (free_load_extend): Likewise for param "insn".
12055 (forward_propagate_subreg): Likewise for param "def_insn" and
12057 (forward_propagate_asm): Likewise for param "def_insn" and local
12059 (forward_propagate_and_simplify): Likewise for param "def_insn"
12060 and local "use_insn".
12061 (forward_propagate_into): Likewise for locals "def_insn" and
12064 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12066 * function.c (emit_initial_value_sets): Strengthen local "seq"
12067 from rtx to rtx_insn *.
12068 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12070 (instantiate_virtual_regs): Likewise for local "insn".
12071 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12072 (reorder_blocks_1): Likewise for param "insns" and local "insn".
12073 (expand_function_end): Likewise for locals "insn" and "seq".
12074 (epilogue_done): Likewise for local "insn".
12075 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12077 (reposition_prologue_and_epilogue_notes): Likewise for locals
12078 "insn", "last", "note", "first".
12079 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12080 (pass_match_asm_constraints::execute): Likewise for local "insn".
12082 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12084 * output.h (final_scan_insn): Strengthen return type from rtx to
12086 (final_forward_branch_p): Likewise for param.
12087 (current_output_insn): Likewise for this global.
12089 * final.c (rtx debug_insn): Likewise for this variable.
12090 (current_output_insn): Likewise.
12091 (get_attr_length_1): Rename param "insn" to "uncast_insn",
12092 adding "insn" back in as an rtx_insn * with a checked cast, so
12093 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12095 (compute_alignments): Strengthen local "label" from rtx to
12097 (shorten_branches): Rename param from "first" to "uncast_first",
12098 introducing a new local rtx_insn * "first" using a checked cast to
12099 effectively strengthen "first" from rtx to rtx_insn * without
12100 affecting the type signature. Strengthen locals "insn", "seq",
12101 "next", "label" from rtx to rtx_insn *.
12102 (change_scope): Strengthen param "orig_insn" and local "insn" from
12104 (final_start_function): Rename param from "first" to "uncast_first",
12105 introducing a new local rtx_insn * "first" using a checked cast to
12106 effectively strengthen "first" from rtx to rtx_insn * without
12107 affecting the type signature. Strengthen local "insn" from rtx to
12109 (dump_basic_block_info): Strengthen param "insn" from rtx to
12111 (final): Rename param from "first" to "uncast_first",
12112 introducing a new local rtx_insn * "first" using a checked cast to
12113 effectively strengthen "first" from rtx to rtx_insn * without
12114 affecting the type signature. Strengthen locals "insn", "next"
12115 from rtx to rtx_insn *.
12116 (output_alternate_entry_point): Strengthen param "insn" from rtx to
12118 (call_from_call_insn): Strengthen param "insn" from rtx to
12120 (final_scan_insn): Rename param from "insn" to "uncast_insn",
12121 introducing a new local rtx_insn * "insn" using a checked cast to
12122 effectively strengthen "insn" from rtx to rtx_insn * without
12123 affecting the type signature. Strengthen return type and locals
12124 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
12125 now-redundant checked cast to rtx_insn * from both invocations of
12126 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
12127 introducing a local "call_insn" for use when invoking
12128 call_from_call_insn.
12129 (notice_source_line): Strengthen param "insn" from rtx to
12131 (leaf_function_p): Likewise for local "insn".
12132 (final_forward_branch_p): Likewise.
12133 (leaf_renumber_regs): Likewise for param "first".
12134 (rest_of_clean_state): Likewise for locals "insn" and "next".
12135 (self_recursive_call_p): Likewise for param "insn".
12136 (collect_fn_hard_reg_usage): Likewise for local "insn".
12137 (get_call_fndecl): Likewise for param "insn".
12138 (get_call_cgraph_rtl_info): Likewise.
12139 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12140 introducing a new local rtx_insn * "insn" using a checked cast to
12141 effectively strengthen "insn" from rtx to rtx_insn * without
12142 affecting the type signature.
12144 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12145 cast when assigning from param "insn" to current_output_insn.
12146 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12147 so that we can assign it back to current_output_insn.
12149 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12151 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12152 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12153 atmxt540s and atmxt540sreva devices.
12154 * config/avr/avr-tables.opt: Regenerate.
12155 * config/avr/t-multilib: Regenerate.
12156 * doc/avr-mmcu.texi: Regenerate.
12158 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12160 * expr.c (convert_move): Strengthen local "insns" from rtx to
12162 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
12163 "top_label" from rtx to rtx_code_label *.
12164 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
12166 (emit_single_push_insn): Likewise for locals "prev", "last".
12167 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
12168 to rtx_code_label *.
12169 (store_constructor): Likewise for locals "loop_start", "loop_end".
12170 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
12172 (expand_expr_real_2): Likewise.
12173 (expand_expr_real_1): Strengthen local "label" from rtx to
12176 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12178 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
12179 from rtx to rtx_insn *.
12180 (store_bit_field_1): Likewise.
12181 (extract_bit_field_1): Likewise.
12182 (expand_mult_const): Likewise for local "insns".
12183 (expmed_mult_highpart): Strengthen local "label" from rtx to
12185 (expand_smod_pow2): Likewise.
12186 (expand_sdiv_pow2): Likewise.
12187 (expand_divmod): Strengthen locals "last", "insn" from rtx to
12188 rtx_insn *. Strengthen locals "label", "label1", "label2",
12189 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
12190 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
12191 (emit_store_flag): Likewise.
12192 (emit_store_flag_force): Strengthen local "label" from rtx to
12194 (do_cmp_and_jump): Likewise for param "label".
12196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12198 * explow.c (force_reg): Strengthen local "insn" from rtx to
12200 (adjust_stack_1): Likewise.
12201 (allocate_dynamic_stack_space): Likewise. Strengthen locals
12202 "final_label", "available_label", "space_available" from rtx to
12204 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
12205 (anti_adjust_stack_and_probe): Likewise.
12207 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12209 * except.h (sjlj_emit_function_exit_after): Strengthen param
12210 "after" from rtx to rtx_insn *. This is only called with
12211 result of get_last_insn (in function.c) so type-change should be
12214 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
12215 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
12216 to rtx_insn *. These fields are only used from except.c so this
12217 type-change should be self-contained to this patch.
12219 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
12220 local "last" from rtx to rtx_insn *.
12221 (dw2_build_landing_pads): Likewise for local "seq".
12222 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
12223 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
12224 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
12226 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
12228 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
12229 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
12230 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
12231 referring to an insn. Strengthen local "dispatch_label" from
12232 rtx to rtx_code_label *.
12233 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
12235 (expand_eh_return): Strengthen local "around_label" from
12236 rtx to rtx_code_label *.
12237 (convert_to_eh_region_ranges): Strengthen locals "iter",
12238 "last_action_insn", "first_no_action_insn",
12239 "first_no_action_insn_before_switch",
12240 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
12242 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12244 * dwarf2out.c (last_var_location_insn): Strengthen this variable
12245 from rtx to rtx_insn *.
12246 (cached_next_real_insn): Likewise.
12247 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
12248 working with insns.
12249 (dwarf2out_var_location): Strengthen locals "next_real",
12250 "next_note", "expected_next_loc_note", "last_start", "insn" from
12253 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12255 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
12256 from rtx to rtx_insn *.
12257 (create_pseudo_cfg): Likewise for local "insn".
12259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12261 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
12262 from rtx to rtx_insn *.
12263 (df_bb_regno_last_def_find): Likewise.
12265 * df-problems.c (df_rd_bb_local_compute): Likewise.
12266 (df_lr_bb_local_compute): Likewise.
12267 (df_live_bb_local_compute): Likewise.
12268 (df_chain_remove_problem): Likewise.
12269 (df_chain_create_bb): Likewise.
12270 (df_word_lr_bb_local_compute): Likewise.
12271 (df_remove_dead_eq_notes): Likewise for param "insn".
12272 (df_note_bb_compute): Likewise for local "insn".
12273 (simulate_backwards_to_point): Likewise.
12274 (df_md_bb_local_compute): Likewise.
12276 * df-scan.c (df_scan_free_bb_info): Likewise.
12277 (df_scan_start_dump): Likewise.
12278 (df_scan_start_block): Likewise.
12279 (df_install_ref_incremental): Likewise for local "insn".
12280 (df_insn_rescan_all): Likewise.
12281 (df_reorganize_refs_by_reg_by_insn): Likewise.
12282 (df_reorganize_refs_by_insn_bb): Likewise.
12283 (df_recompute_luids): Likewise.
12284 (df_bb_refs_record): Likewise.
12285 (df_update_entry_exit_and_calls): Likewise.
12286 (df_bb_verify): Likewise.
12288 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12290 * ddg.h (struct ddg_node): Strengthen fields "insn" and
12291 "first_note" from rtx to rtx_insn *.
12292 (get_node_of_insn): Likewise for param 2 "insn".
12293 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12295 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
12297 (mem_write_insn_p): Likewise.
12298 (mem_access_insn_p): Likewise.
12299 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12300 (def_has_ccmode_p): Likewise for param "insn".
12301 (add_cross_iteration_register_deps): Likewise for locals
12302 "def_insn" and "use_insn".
12303 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
12304 (build_intra_loop_deps): Likewise for local "src_insn".
12305 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
12307 (get_node_of_insn): Likewise for param "insn".
12309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12311 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
12312 (deletable_insn_p): Strengthen param "insn" from rtx to
12313 rtx_insn *. Add checked cast to rtx_call_insn when invoking
12314 find_call_stack_args, since this is guarded by CALL_P (insn).
12315 (marked_insn_p): Strengthen param "insn" from rtx to
12317 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
12318 invoking find_call_stack_args, since this is guarded by
12320 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
12321 rtx_insn *; we know this is an insn since this was called by
12322 mark_nonreg_stores.
12323 (mark_nonreg_stores_2): Likewise.
12324 (mark_nonreg_stores): Strengthen param "insn" from rtx to
12326 (find_call_stack_args): Strengthen param "call_insn" from rtx to
12327 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
12329 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
12330 from rtx to rtx_insn *.
12331 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
12332 "next", "ref_insn".
12333 (delete_unmarked_insns): Likewise for locals "insn", "next".
12334 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
12335 (mark_reg_dependencies): Likewise for param "insn".
12336 (rest_of_handle_ud_dce): Likewise for local "insn".
12337 (word_dce_process_block): Likewise.
12338 (dce_process_block): Likewise.
12340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12342 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
12343 from rtx to rtx_insn *.
12344 (struct change_cc_mode_args): Likewise for field "insn".
12345 (this_insn): Strengthen from rtx to rtx_insn *.
12346 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
12348 (validate_canon_reg): Strengthen param "insn" from rtx to
12350 (canon_reg): Likewise.
12351 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
12353 (record_jump_equiv): Strengthen param "insn" from rtx to
12355 (try_back_substitute_reg): Likewise, also for locals "prev",
12357 (find_sets_in_insn): Likewise for param "insn".
12358 (canonicalize_insn): Likewise.
12359 (cse_insn): Likewise. Add a checked cast.
12360 (invalidate_from_clobbers): Likewise for param "insn".
12361 (invalidate_from_sets_and_clobbers): Likewise.
12362 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
12364 (cse_prescan_path): Strengthen local "insn" from rtx to
12366 (cse_extended_basic_block): Likewise for locals "insn" and
12368 (cse_main): Likewise for param "f".
12369 (check_for_label_ref): Likewise for local "insn".
12370 (set_live_p): Likewise for second param ("insn").
12371 (insn_live_p): Likewise for first param ("insn") and for local
12373 (cse_change_cc_mode_insn): Likewise for first param "insn".
12374 (cse_change_cc_mode_insns): Likewise for first and second params
12376 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
12378 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
12381 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
12382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12383 Anna Tikhonova <anna.tikhonova@intel.com>
12384 Ilya Tocar <ilya.tocar@intel.com>
12385 Andrey Turetskiy <andrey.turetskiy@intel.com>
12386 Ilya Verbin <ilya.verbin@intel.com>
12387 Kirill Yukhin <kirill.yukhin@intel.com>
12388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12390 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
12392 * config/i386/sse.md
12393 (define_mode_iterator VI248_AVX2): Delete.
12394 (define_mode_iterator VI2_AVX2_AVX512BW): New.
12395 (define_mode_iterator VI48_AVX2): Ditto.
12396 (define_insn <shift_insn><mode>3): Delete.
12397 (define_insn "<shift_insn><mode>3<mask_name>" with
12398 VI2_AVX2_AVX512BW): New.
12399 (define_insn "<shift_insn><mode>3<mask_name>" with
12402 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
12403 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12404 Anna Tikhonova <anna.tikhonova@intel.com>
12405 Ilya Tocar <ilya.tocar@intel.com>
12406 Andrey Turetskiy <andrey.turetskiy@intel.com>
12407 Ilya Verbin <ilya.verbin@intel.com>
12408 Kirill Yukhin <kirill.yukhin@intel.com>
12409 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12411 * config/i386/sse.md
12412 (define_mode_iterator VI4F_BRCST32x2): New.
12413 (define_mode_attr 64x2_mode): Ditto.
12414 (define_mode_attr 32x2mode): Ditto.
12415 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
12416 with VI4F_BRCST32x2): Ditto.
12417 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
12418 with V16FI mode iterator): Ditto.
12419 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
12420 with V16FI): Ditto.
12421 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
12422 with VI8F_BRCST64x2): Ditto.
12424 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
12425 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12426 Anna Tikhonova <anna.tikhonova@intel.com>
12427 Ilya Tocar <ilya.tocar@intel.com>
12428 Andrey Turetskiy <andrey.turetskiy@intel.com>
12429 Ilya Verbin <ilya.verbin@intel.com>
12430 Kirill Yukhin <kirill.yukhin@intel.com>
12431 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12433 * config/i386/sse.md
12434 (define_mode_iterator VI8_AVX512VL): New.
12435 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
12437 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
12439 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
12440 (define_mode_iterator V48_AVX512VL): New.
12441 (define_mode_iterator V12_AVX512VL): Ditto.
12442 (define_insn <avx512>_load<mode>_mask): Split into two similar
12443 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
12444 Refactor output template.
12445 (define_insn "<avx512>_store<mode>_mask"): Ditto.
12447 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12449 * cprop.c (struct occr): Strengthen field "insn" from rtx to
12451 (reg_available_p): Likewise for param "insn".
12452 (insert_set_in_table): Likewise.
12453 (hash_scan_set): Likewise.
12454 (hash_scan_insn): Likewise.
12455 (make_set_regs_unavailable): Likewise.
12456 (compute_hash_table_work): Likewise for local "insn".
12457 (reg_not_set_p): Strengthen param "insn" from const_rtx to
12459 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
12460 (try_replace_reg): Likewise.
12461 (find_avail_set): Likewise.
12462 (cprop_jump): Likewise for params "setcc", "jump".
12463 (constprop_register): Likewise for param "insn".
12464 (cprop_insn): Likewise.
12465 (do_local_cprop): Likewise.
12466 (local_cprop_pass): Likewise for local "insn".
12467 (bypass_block): Likewise for params "setcc" and "jump".
12468 (bypass_conditional_jumps): Likewise for locals "setcc" and
12470 (one_cprop_pass): Likewise for local "insn".
12472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12474 * compare-elim.c (struct comparison_use): Strengthen field "insn"
12475 from rtx to rtx_insn *.
12476 (struct comparison): Likewise, also for field "prev_clobber".
12477 (conforming_compare): Likewise for param "insn".
12478 (arithmetic_flags_clobber_p): Likewise.
12479 (find_flags_uses_in_insn): Likewise.
12480 (find_comparison_dom_walker::before_dom_children): Likewise for
12481 locals "insn", "next", "last_clobber".
12482 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
12484 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12486 * combine-stack-adj.c (struct csa_reflist): Strengthen field
12487 "insn" from rtx to rtx_insn *.
12488 (single_set_for_csa): Likewise for param "insn".
12489 (record_one_stack_ref): Likewise.
12490 (try_apply_stack_adjustment): Likewise.
12491 (struct record_stack_refs_data): Likewise for field "insn".
12492 (maybe_move_args_size_note): Likewise for params "last" and "insn".
12493 (prev_active_insn_bb): Likewise for return type and param "insn".
12494 (next_active_insn_bb): Likewise.
12495 (force_move_args_size_note): Likewise for params "prev" and "last"
12496 and locals "test", "next_candidate", "prev_candidate".
12497 (combine_stack_adjustments_for_block): Strengthen locals
12498 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
12501 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12503 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
12504 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
12505 (subst_insn): Likewise for this variable.
12506 (added_links_insn): Likewise.
12507 (struct insn_link): Likewise for field "insn".
12508 (alloc_insn_link): Likewise for param "insn".
12509 (struct undobuf): Likewise for field "other_insn".
12510 (find_single_use): Likewise for param "insn" and local "next".
12511 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
12512 (delete_noop_moves): Likewise for locals "insn", "next".
12513 (create_log_links): Likewise for locals "insn", "use_insn".
12514 Strengthen local "next_use" from rtx * to rtx_insn **.
12515 (insn_a_feeds_b): Likewise for params "a", "b".
12516 (combine_instructions): Likewise for param "f" and locals "insn",
12517 "next", "prev", "first", "last_combined_insn", "link", "link1",
12518 "temp". Replace use of NULL_RTX with NULL when referring to
12520 (setup_incoming_promotions): Likewise for param "first"
12521 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
12522 (can_combine_p): Likewise for params "insn", "i3", "pred",
12523 "pred2", "succ", "succ2" and for local "p".
12524 (combinable_i3pat): Likewise for param "i3".
12525 (cant_combine_insn_p): Likewise for param "insn".
12526 (likely_spilled_retval_p): Likewise.
12527 (adjust_for_new_dest): Likewise.
12528 (update_cfg_for_uncondjump): Likewise, also for local "insn".
12529 (try_combine): Likewise for return type and for params "i3", "i2",
12530 "i1", "i0", "last_combined_insn", and for locals "insn",
12531 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
12532 "i0_insn". Eliminate local "tem" in favor of new locals
12533 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
12534 checked cast for now to rtx_insn * on the return type of
12535 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
12537 (find_split_point): Strengthen param "insn" from rtx to
12539 (simplify_set): Likewise for local "other_insn".
12540 (recog_for_combine): Likewise for param "insn".
12541 (record_value_for_reg): Likewise.
12542 (record_dead_and_set_regs_1): Likewise for local
12543 "record_dead_insn".
12544 (record_dead_and_set_regs): Likewise for param "insn".
12545 (record_promoted_value): Likewise.
12546 (check_promoted_subreg): Likewise.
12547 (get_last_value_validate): Likewise.
12548 (reg_dead_at_p): Likewise.
12549 (move_deaths): Likewise for param "to_insn".
12550 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
12551 and locals "place", "place2", "cc0_setter". Eliminate local "tem
12552 in favor of new locals "tem_note" and "tem_insn", the latter being
12554 (distribute_links): Strengthen locals "place", "insn" from rtx to
12557 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12559 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
12561 (can_delete_label_p): Require a const rtx_code_label * rather than
12563 (delete_insn): Add checked cast to rtx_code_label * when we know
12564 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
12566 (delete_insn_chain): Strengthen locals "prev" and "current" from
12567 rtx to rtx_insn *. Add a checked cast when assigning from
12568 "finish" (strengthening the params will come later). Add a
12569 checked cast to rtx_note * in region where we know
12571 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
12573 (compute_bb_for_insn): Likewise.
12574 (free_bb_for_insn): Likewise for local "insn".
12575 (compute_bb_for_insn): Likewise.
12576 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
12577 local "insn" from rtx to rtx_insn *
12578 (flow_active_insn_p): Require a const rtx_insn * rather than a
12580 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
12582 (can_fallthru): Likewise for locals "insn" and "insn2".
12583 (bb_note): Likewise for local "note".
12584 (first_insn_after_basic_block_note): Likewise for local "note" and
12586 (rtl_split_block): Likewise for locals "insn" and "next".
12587 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
12589 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
12590 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
12592 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
12593 them), "kill_from", "barrier", "new_insn".
12594 (patch_jump_insn): Likewise for params "insn", "old_label".
12595 (redirect_branch_edge): Likewise for locals "old_label", "insn".
12596 (force_nonfallthru_and_redirect): Likewise for locals "insn",
12597 "old_label", "new_label".
12598 (rtl_tidy_fallthru_edge): Likewise for local "q".
12599 (rtl_split_edge): Likewise for locals "before", "last".
12600 (commit_one_edge_insertion): Likewise for locals "before",
12601 "after", "insns", "tmp", "last", adding a checked cast where
12602 currently necessary.
12603 (commit_edge_insertions): Likewise.
12604 (rtl_dump_bb): Likewise for locals "insn", "last".
12605 (print_rtl_with_bb): Likewise for local "x".
12606 (rtl_verify_bb_insns): Likewise for local "x".
12607 (rtl_verify_bb_pointers): Likewise for local "insn".
12608 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
12610 (rtl_verify_fallthru): Likewise for local "insn".
12611 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
12612 (purge_dead_edges): Likewise for local "insn".
12613 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
12614 (skip_insns_after_block): Likewise for return type and for locals
12615 "insn", "last_insn", "next_head", "prev".
12616 (record_effective_endpoints): Likewise for locals "next_insn",
12618 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
12619 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
12620 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
12621 (duplicate_insn_chain): For now, add checked cast from rtx to
12622 rtx_insn * when returning insn.
12623 (cfg_layout_duplicate_bb): Likewise for local "insn".
12624 (cfg_layout_delete_block): Likewise for locals "insn", "next",
12625 "prev", "remaints".
12626 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
12627 (rtl_block_empty_p): Likewise.
12628 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
12629 "split_point", "last".
12630 (rtl_block_ends_with_call_p): Likewise for local "insn".
12631 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
12633 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
12634 "split_at_insn" from rtx to rtx_insn *.
12635 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
12636 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
12637 to const rtx_insn *.
12638 (rtl_account_profile_record): Likewise.
12640 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12642 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
12644 (average_num_loop_insns): Likewise.
12645 (init_set_costs): Likewise for local "seq".
12646 (seq_cost): Likewise for param "seq", from const_rtx to const
12649 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12651 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
12654 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12656 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
12657 "f1" and "f2" from rtx * to rtx_insn **.
12658 (flow_find_head_matching_sequence): Likewise.
12660 * cfgcleanup.c (try_simplify_condjump): Strengthen local
12661 "cbranch_insn" from rtx to rtx_insn *.
12662 (thread_jump): Likewise for local "insn".
12663 (try_forward_edges): Likewise for local "last".
12664 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
12665 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
12667 (can_replace_by): Likewise for params "i1", "i2".
12668 (old_insns_match_p): Likewise.
12669 (merge_notes): Likewise.
12670 (walk_to_nondebug_insn): Likewise for param "i1".
12671 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
12672 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
12673 "afterlast1", "afterlast2" from rtx to rtx_insn *.
12674 (flow_find_head_matching_sequence): Strengthen params "f1" and
12675 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
12676 "last1", "last2", "beforelast1", "beforelast2" from rtx to
12678 (outgoing_edges_match): Likewise for locals "last1", "last2".
12679 (try_crossjump_to_edge): Likewise for local "insn".
12680 Replace call to for_each_rtx with for_each_rtx_in_insn.
12682 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
12683 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
12684 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
12685 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
12686 (try_optimize_cfg): Strengthen local "last" from rtx to
12688 (delete_dead_jumptables): Likewise for locals "insn", "next",
12691 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
12692 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
12693 "rtx else_first_tail", to reflect the basic-block.h changes above.
12695 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12697 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
12699 (purge_dead_tablejump_edges): Likewise.
12700 (find_bb_boundaries): Likewise for locals "insn", "end",
12701 "flow_transfer_insn".
12703 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12705 * caller-save.c (save_call_clobbered_regs): Strengthen locals
12706 "ins" and "prev" from rtx to rtx_insn *.
12708 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12710 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
12712 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
12713 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
12715 (load_register_parameters): Likewise for local "before_arg".
12716 (check_sibcall_argument_overlap): Likewise for param "insn".
12717 (expand_call): Likewise for locals "normal_call_insns",
12718 "tail_call_insns", "insns", "before_call", "after_args",
12719 "before_arg", "last", "prev". Strengthen one of the "last" from
12720 rtx to rtx_call_insn *.
12721 (fixup_tail_calls): Strengthen local "insn" from rtx to
12723 (emit_library_call_value_1): Likewise for locals "before_call" and
12726 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12728 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
12729 and "last" from rtx to rtx_insn *.
12730 (expand_builtin_nonlocal_goto): Likewise for local "insn".
12731 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
12733 (expand_errno_check): Strengthen local "lab" from rtx to
12735 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
12737 (expand_builtin_mathfn_2): Likewise.
12738 (expand_builtin_mathfn_ternary): Likewise.
12739 (expand_builtin_mathfn_3): Likewise.
12740 (expand_builtin_interclass_mathfn): Likewise for local "last".
12741 (expand_builtin_int_roundingfn): Likewise for local "insns".
12742 (expand_builtin_int_roundingfn_2): Likewise.
12743 (expand_builtin_strlen): Likewise for local "before_strlen".
12744 (expand_builtin_strncmp): Likewise for local "seq".
12745 (expand_builtin_signbit): Likewise for local "last".
12746 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
12747 from rtx to rtx_code_label *.
12748 (expand_stack_restore): Strengthen local "prev" from rtx to
12751 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12753 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
12755 (struct btr_def_s): Likewise.
12756 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
12758 (add_btr_def): Likewise.
12759 (new_btr_user): Likewise.
12760 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
12762 (link_btr_uses): Likewise.
12763 (move_btr_def): Likewise for locals "insp", "old_insn",
12764 "new_insn". Add checked cast to rtx_insn * for now on result of
12766 (can_move_up): Strengthen param "insn" from const_rtx to
12769 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12771 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
12773 (get_uncond_jump_length): Likewise for locals "label", "jump".
12774 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
12776 (add_labels_and_missing_jumps): Likewise for local "new_jump".
12777 (fix_up_fall_thru_edges): Likewise for local "old_jump".
12778 (find_jump_block): Likewise for local "insn".
12779 (fix_crossing_conditional_branches): Likewise for locals
12780 "old_jump", "new_jump".
12781 (fix_crossing_unconditional_branches): Likewise for locals
12782 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
12783 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
12785 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12787 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
12789 (struct mem_insn): Likewise for field "insn".
12790 (reg_next_use): Strengthen from rtx * to rtx_insn **.
12791 (reg_next_inc_use): Likewise.
12792 (reg_next_def): Likewise.
12793 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
12794 from rtx to rtx_insn *.
12795 (move_insn_before): Likewise for param "next_insn" and local "insns".
12796 (attempt_change): Likewise for local "mov_insn".
12797 (try_merge): Likewise for param "last_insn".
12798 (get_next_ref): Likewise for return type and local "insn".
12799 Strengthen param "next_array" from rtx * to rtx_insn **.
12800 (parse_add_or_inc): Strengthen param "insn" from rtx to
12802 (find_inc): Likewise for locals "insn" and "other_insn" (three of
12804 (merge_in_block): Likewise for locals "insn", "curr",
12806 (pass_inc_dec::execute): Update allocations of the arrays to
12807 reflect the stronger types.
12809 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12811 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
12812 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
12813 from rtx to rtx_code_label *.
12815 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12817 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
12820 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12822 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
12823 generated a warning and prevented bootstrapping the compiler.
12825 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12827 * rtl.h (delete_related_insns): Strengthen return type from rtx to
12830 * jump.c (delete_related_insns): Likewise, also for locals "next"
12833 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12835 * genautomata.c (output_internal_insn_latency_func): When writing
12836 the function "internal_insn_latency" to insn-automata.c,
12837 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
12838 allowing the optional guard function of (define_bypass) clauses to
12839 expect a pair of rtx_insn *, rather than a pair of rtx.
12840 (output_insn_latency_func): When writing the function
12841 "insn_latency", add an "uncast_" prefix to params "insn" and
12842 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
12843 using checked casts from the params, thus enabling the above
12844 change to the generated "internal_insn_latency" function.
12846 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
12848 PR tree-optimization/62091
12849 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
12850 handle correctly arrays.
12851 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
12852 inheritance binfos.
12853 (record_known_type): Walk into inner type.
12854 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
12855 condition on no type changes.
12857 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12859 * genattrtab.c (write_attr_get): Within the generated get_attr_
12860 functions, rename param "insn" to "uncast_insn" and reintroduce
12861 "insn" as an local rtx_insn * using a checked cast, so that "insn"
12862 is an rtx_insn * within insn-attrtab.c
12864 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12866 * output.h (peephole): Strengthen return type from rtx to
12868 * rtl.h (delete_for_peephole): Likewise for both params.
12869 * genpeep.c (main): In generated "peephole" function, strengthen
12870 return type and local "insn" from rtx to rtx_insn *. For now,
12871 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
12872 rtx_insn *, with a checked cast.
12873 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
12874 locals "insn", "next", "prev" from rtx to rtx_insn *.
12876 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
12878 PR tree-optimization/62112
12879 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
12880 * gimple-iterator.h (gsi_replace): Return bool.
12881 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
12882 moved from ref_may_alias_global_p.
12883 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
12885 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
12886 (stmt_kills_ref_p_1): Rename...
12887 (stmt_kills_ref_p): ... to this.
12888 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
12889 stmt_kills_ref_p): Declare.
12890 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
12891 Move the self-assignment case...
12892 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
12894 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12896 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
12898 * emit-rtl.c (try_split): Likewise, also for locals "before" and
12899 "after". For now, don't strengthen param "trial", which requires
12900 adding checked casts when returning it.
12902 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12904 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
12905 "label" from rtx to rtx_code_label *. Strengthen param 1 of
12906 "var_location" hook from rtx to rtx_insn *.
12907 (debug_nothing_rtx): Delete in favor of...
12908 (debug_nothing_rtx_code_label): New prototype.
12909 (debug_nothing_rtx_rtx): Delete unused prototype.
12910 (debug_nothing_rtx_insn): New prototype.
12912 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
12913 invoking debug_hooks->var_location (in two places, one in a NOTE
12914 case of a switch statement, the other guarded by a CALL_P
12915 conditional. Add checked cast to rtx_code_label * when invoking
12916 debug_hooks->label (within CODE_LABEL case of switch statement).
12918 * dbxout.c (dbx_debug_hooks): Update "label" hook from
12919 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
12920 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
12921 (xcoff_debug_hooks): Likewise.
12922 * debug.c (do_nothing_debug_hooks): Likewise.
12923 (debug_nothing_rtx): Delete in favor of...
12924 (debug_nothing_rtx_insn): New function.
12925 (debug_nothing_rtx_rtx): Delete unused function.
12926 (debug_nothing_rtx_code_label): New function.
12927 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
12928 debug_nothing_rtx to debug_nothing_rtx_code_label.
12929 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
12931 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
12932 debug_nothing_rtx to debug_nothing_rtx_insn.
12933 (sdbout_label): Strengthen param "insn" from rtx to
12935 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
12936 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
12937 "var_location" hook from debug_nothing_rtx to
12938 debug_nothing_rtx_insn.
12940 2014-08-21 David Malcolm <dmalcolm@redhat.com>
12942 * recog.h (insn_output_fn): Update this function typedef to match
12943 the changes below to the generated output functions, strengthening
12944 the 2nd param from rtx to rtx_insn *.
12946 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
12947 insn when invoking an output function, to match the new signature
12948 of insn_output_fn with a stronger second param.
12950 * genconditions.c (write_header): In the generated code for
12951 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
12952 to match the other changes in this patch.
12954 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
12955 the generated "gen_" functions from rtx to rtx_insn * within their
12958 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
12959 the subfunctions within the generated "recog_", "split", "peephole2"
12960 function trees from rtx to rtx_insn *. For now, the top-level
12961 generated functions ("recog", "split", "peephole2") continue to
12962 take a plain rtx for "insn", to avoid introducing dependencies on
12963 other patches. Rename this 2nd param from "insn" to
12964 "uncast_insn", and reintroduce "insn" as a local variable of type
12965 rtx_insn *, initialized at the top of the generated function with
12966 a checked cast on "uncast_insn".
12967 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
12968 the generated "gen_" functions from rtx to rtx_insn * within their
12971 * genoutput.c (process_template): Strengthen the 2nd param within
12972 the generated "output_" functions "insn" from rtx to rtx_insn *.
12974 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
12976 * tree-profile.c (tree_profiling): Skip external functions
12977 when doing coverage instrumentation.
12978 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
12980 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12982 * config/rs6000/altivec.h (vec_cpsgn): New #define.
12983 (vec_mergee): Likewise.
12984 (vec_mergeo): Likewise.
12985 (vec_cntlz): Likewise.
12986 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
12987 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
12988 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
12989 VMRGEW, and VMRGOW.
12990 * doc/extend.texi: Document various forms of vec_cpsgn,
12991 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
12992 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
12993 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
12994 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
12995 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
12997 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12999 * config/rs6000/rs6000.c (context.h): New include.
13000 (tree-pass.h): Likewise.
13001 (make_pass_analyze_swaps): New decl.
13002 (rs6000_option_override): Register pass_analyze_swaps.
13003 (swap_web_entry): New subsclass of web_entry_base (df.h).
13004 (special_handling_values): New enum.
13005 (union_defs): New function.
13006 (union_uses): Likewise.
13007 (insn_is_load_p): Likewise.
13008 (insn_is_store_p): Likewise.
13009 (insn_is_swap_p): Likewise.
13010 (rtx_is_swappable_p): Likewise.
13011 (insn_is_swappable_p): Likewise.
13012 (chain_purpose): New enum.
13013 (chain_contains_only_swaps): New function.
13014 (mark_swaps_for_removal): Likewise.
13015 (swap_const_vector_halves): Likewise.
13016 (adjust_subreg_index): Likewise.
13017 (permute_load): Likewise.
13018 (permute_store): Likewise.
13019 (handle_special_swappables): Likewise.
13020 (replace_swap_with_copy): Likewise.
13021 (dump_swap_insn_table): Likewise.
13022 (rs6000_analyze_swaps): Likewise.
13023 (pass_data_analyze_swaps): New pass_data.
13024 (pass_analyze_swaps): New rtl_opt_pass.
13025 (make_pass_analyze_swaps): New function.
13026 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13028 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13030 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13031 type from rtx to rtx_insn *.
13032 (create_copy_of_insn_rtx): Likewise.
13033 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13034 (create_copy_of_insn_rtx): Likewise, also for local "res".
13036 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13038 * rtl.h (find_first_parameter_load): Strengthen return type from
13040 * rtlanal.c (find_first_parameter_load): Strengthen return type
13041 from rtx to rtx_insn *. Add checked cast for now, to postpone
13042 strengthening the params.
13044 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13047 * diagnostic.c: Set default caret.
13048 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13050 * diagnostic.h (struct diagnostic_context):
13052 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13054 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13055 (sel_bb_head): Strengthen return type insn_t (currently just an
13056 rtx) to rtx_insn *.
13057 (sel_bb_end): Likewise.
13059 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13060 (sel_bb_head): Strengthen return type and local "head" from
13061 insn_t (currently just an rtx) to rtx_insn *.
13062 (sel_bb_end): Likewise for return type.
13063 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13066 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13068 * basic-block.h (get_last_bb_insn): Strengthen return type from
13070 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13073 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13076 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13078 (diagnostic_report_diagnostic): ... from here.
13079 * toplev.c (general_init): Move code to c-family.
13081 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13083 * df.h (web_entry_base): Replace existing struct web_entry with a
13084 new class web_entry_base with only the predecessor member.
13085 (unionfind_root): Remove declaration and move to class member.
13086 (unionfind_union): Remove declaration and move to friend
13088 (union_defs): Remove declaration.
13089 * web.c (web_entry_base::unionfind_root): Modify to be member
13090 function and adjust accessors.
13091 (unionfind_union): Modify to be friend function and adjust
13093 (web_entry): New subclass of web_entry_base containing the reg
13095 (union_match_dups): Modify for struct -> class changes.
13096 (union_defs): Likewise.
13097 (entry_register): Likewise.
13098 (pass_web::execute): Likewise.
13100 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
13102 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13103 builtin define __VEC_ELEMENT_REG_ORDER__.
13105 2014-08-20 Martin Jambor <mjambor@suse.cz>
13106 Wei Mi <wmi@google.com>
13109 PR middle-end/61776
13110 * tree-ssa-operands.c (update_stmt_operands): Remove
13111 MODIFIED_NORETURN_CALLS.
13112 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13113 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13114 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13115 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13116 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13117 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13118 (gimple_call_set_ctrl_altering): New func.
13119 (gimple_call_ctrl_altering_p): Ditto.
13120 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13121 (make_blocks): Use gimple_call_initialize_ctrl_altering.
13122 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13123 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13124 remove MODIFIED_NORETURN_CALLS.
13126 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13128 * coverage.c (coverage_compute_profile_id): Return non-0;
13129 also handle symbols with unique name.
13130 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13132 2014-08-20 Steve Ellcey <sellcey@mips.com>
13134 PR middle-end/49191
13135 * doc/sourcebuild.texi (non_strict_align): New.
13137 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13139 * cgraphunit.c (ipa_passes, compile): Reshedule
13140 symtab_remove_unreachable_nodes passes; update comments.
13141 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13142 TODO_remove_functions before the pass; the functions ought to be
13144 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13145 TODO_remove_functions.
13146 * passes.c (pass_data_early_local_passes): Do not schedule function
13148 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13150 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13153 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13154 before setting the option.
13155 * diagnostic.c (diagnostic_classify_diagnostic): Record
13156 command-line status.
13158 2014-08-20 Richard Biener <rguenther@suse.de>
13161 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
13162 to build uint{16,32,64}_type_node.
13164 2014-08-20 Terry Guo <terry.guo@arm.com>
13166 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
13167 with immediate_operand.
13169 2014-08-20 David Malcolm <dmalcolm@redhat.com>
13171 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
13172 "insn" from an as_a to a safe_as_a, for the case when "insn" is
13175 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13177 PR preprocessor/51303
13178 * incpath.c (remove_duplicates): Use cpp_warning.
13180 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13184 * doc/options.texi (CPP): Document it.
13185 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
13186 * optc-gen.awk: Handle CPP.
13187 * opth-gen.awk: Likewise.
13189 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13191 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
13193 (duplicate_insn_chain): Likewise.
13194 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
13195 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
13196 checked cast for now (until we can strengthen the params in the
13198 (duplicate_insn_chain): Likewise.
13200 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13202 * rtl.h (next_cc0_user): Strengthen return type from rtx to
13204 (prev_cc0_setter): Likewise.
13206 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
13207 rtx_insn *, adding checked casts for now as necessary.
13208 (prev_cc0_setter): Likewise.
13210 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13212 * expr.h (emit_move_insn): Strengthen return type from rtx to
13214 (emit_move_insn_1): Likewise.
13215 (emit_move_complex_push): Likewise.
13216 (emit_move_complex_parts): Likewise.
13218 * expr.c (emit_move_via_integer): Strengthen return type from rtx
13219 to rtx_insn *. Replace use of NULL_RTX with NULL when working
13221 (emit_move_complex_push): Strengthen return type from rtx to
13223 (emit_move_complex): Likewise, also for local "ret".
13224 (emit_move_ccmode): Likewise.
13225 (emit_move_multi_word): Likewise for return type and locals
13226 "last_insn", "seq".
13227 (emit_move_insn_1): Likewise for return type and locals "result",
13229 (emit_move_insn): Likewise for return type and local "last_insn".
13230 (compress_float_constant): Likewise.
13232 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13234 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
13235 from rtx to rtx_insn *.
13237 * rtl.h (emit_insn_before): Likewise.
13238 (emit_insn_before_noloc): Likewise.
13239 (emit_insn_before_setloc): Likewise.
13240 (emit_jump_insn_before): Likewise.
13241 (emit_jump_insn_before_noloc): Likewise.
13242 (emit_jump_insn_before_setloc): Likewise.
13243 (emit_call_insn_before): Likewise.
13244 (emit_call_insn_before_noloc): Likewise.
13245 (emit_call_insn_before_setloc): Likewise.
13246 (emit_debug_insn_before): Likewise.
13247 (emit_debug_insn_before_noloc): Likewise.
13248 (emit_debug_insn_before_setloc): Likewise.
13249 (emit_label_before): Likewise.
13250 (emit_insn_after): Likewise.
13251 (emit_insn_after_noloc): Likewise.
13252 (emit_insn_after_setloc): Likewise.
13253 (emit_jump_insn_after): Likewise.
13254 (emit_jump_insn_after_noloc): Likewise.
13255 (emit_jump_insn_after_setloc): Likewise.
13256 (emit_call_insn_after): Likewise.
13257 (emit_call_insn_after_noloc): Likewise.
13258 (emit_call_insn_after_setloc): Likewise.
13259 (emit_debug_insn_after): Likewise.
13260 (emit_debug_insn_after_noloc): Likewise.
13261 (emit_debug_insn_after_setloc): Likewise.
13262 (emit_label_after): Likewise.
13263 (emit_insn): Likewise.
13264 (emit_debug_insn): Likewise.
13265 (emit_jump_insn): Likewise.
13266 (emit_call_insn): Likewise.
13267 (emit_label): Likewise.
13268 (gen_clobber): Likewise.
13269 (emit_clobber): Likewise.
13270 (gen_use): Likewise.
13271 (emit_use): Likewise.
13274 (emit_barrier_before): Strengthen return type from rtx to
13276 (emit_barrier_after): Likewise.
13277 (emit_barrier): Likewise.
13279 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
13280 from rtx to rtx_insn *. Add checked casts for now when converting
13281 "last" from rtx to rtx_insn *.
13282 (emit_insn_before_noloc): Likewise for return type.
13283 (emit_jump_insn_before_noloc): Likewise.
13284 (emit_call_insn_before_noloc): Likewise.
13285 (emit_debug_insn_before_noloc): Likewise.
13286 (emit_barrier_before): Strengthen return type and local "insn"
13287 from rtx to rtx_barrier *.
13288 (emit_label_before): Strengthen return type from rtx to
13289 rtx_insn *. Add checked cast for now when returning param
13290 (emit_pattern_after_noloc): Strengthen return type from rtx to
13291 rtx_insn *. Add checked casts for now when converting "last" from
13293 (emit_insn_after_noloc): Strengthen return type from rtx to
13295 (emit_jump_insn_after_noloc): Likewise.
13296 (emit_call_insn_after_noloc): Likewise.
13297 (emit_debug_insn_after_noloc): Likewise.
13298 (emit_barrier_after): Strengthen return type from rtx to
13300 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
13301 Add checked cast for now when converting "label" from rtx to
13303 (emit_pattern_after_setloc): Strengthen return type from rtx to
13304 rtx_insn *. Add checked casts for now when converting "last" from
13306 (emit_pattern_after): Strengthen return type from rtx to
13308 (emit_insn_after_setloc): Likewise.
13309 (emit_insn_after): Likewise.
13310 (emit_jump_insn_after_setloc): Likewise.
13311 (emit_jump_insn_after): Likewise.
13312 (emit_call_insn_after_setloc): Likewise.
13313 (emit_call_insn_after): Likewise.
13314 (emit_debug_insn_after_setloc): Likewise.
13315 (emit_debug_insn_after): Likewise.
13316 (emit_pattern_before_setloc): Likewise. Add checked casts for now
13317 when converting "last" from rtx to rtx_insn *.
13318 (emit_pattern_before): Strengthen return type from rtx to
13320 (emit_insn_before_setloc): Likewise.
13321 (emit_insn_before): Likewise.
13322 (emit_jump_insn_before_setloc): Likewise.
13323 (emit_jump_insn_before): Likewise.
13324 (emit_call_insn_before_setloc): Likewise.
13325 (emit_call_insn_before): Likewise.
13326 (emit_debug_insn_before_setloc): Likewise.
13327 (emit_debug_insn_before): Likewise.
13328 (emit_insn): Strengthen return type and locals "last", "insn",
13329 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
13330 within cases where we know we have an insn.
13331 (emit_debug_insn): Likewise.
13332 (emit_jump_insn): Likewise.
13333 (emit_call_insn): Strengthen return type and local "insn" from rtx
13335 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
13336 a checked cast to rtx_insn * for now on "label".
13337 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
13338 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
13339 (emit_use): Likewise.
13340 (gen_use): Likewise, also for local "seq".
13341 (emit): Likewise for return type and local "insn".
13342 (rtx_insn): Likewise for return type and local "new_rtx".
13344 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
13345 from rtx to rtx_barrier *.
13347 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
13348 changed return type from rtx to rtx_insn *, we must update
13349 "emit_fn" type, and this in turn means updating...
13350 (frame_insn): ...this. Strengthen return type from rtx to
13351 rtx_insn *. Introduce a new local "insn" of the appropriate type.
13353 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13355 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
13356 rtx to rtx_jump_table_data *. Also for local.
13357 * rtl.h (emit_jump_table_data): Likewise.
13359 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13361 * basic-block.h (create_basic_block_structure): Strengthen third
13362 param "bb_note" from rtx to rtx_note *.
13363 * rtl.h (emit_note_before): Strengthen return type from rtx to
13365 (emit_note_after): Likewise.
13366 (emit_note): Likewise.
13367 (emit_note_copy): Likewise. Also, strengthen param similarly.
13368 * function.h (struct rtl_data): Strengthen field
13369 "x_stack_check_probe_note" from rtx to rtx_note *.
13371 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
13372 from rtx to rtx_note *.
13373 * cfgrtl.c (create_basic_block_structure): Strengthen third param
13374 "bb_note" from rtx to rtx_note *.
13375 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
13376 when calling emit_note_copy.
13377 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
13379 (emit_note_after): Likewise.
13380 (emit_note_before): Likewise.
13381 (emit_note_copy): Likewise. Also, strengthen param similarly.
13382 (emit_note): Likewise.
13383 * except.c (emit_note_eh_region_end): Likewise for return type.
13384 Strengthen local "next" from rtx to rtx_insn *.
13385 (convert_to_eh_region_ranges): Strengthen local "note"
13386 from rtx to rtx_note *.
13387 * final.c (change_scope): Likewise.
13388 (reemit_insn_block_notes): Likewise, for both locals named "note".
13389 Also, strengthen local "insn" from rtx to rtx_insn *.
13390 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
13392 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
13393 strengthen local "seq" from rtx to rtx_insn *.
13394 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
13396 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
13398 (get_bb_note_from_pool): Strengthen return type from rtx to
13400 (sel_create_basic_block): Strengthen local "new_bb_note" from
13401 insn_t to rtx_note *.
13402 * var-tracking.c (emit_note_insn_var_location): Strengthen local
13403 "note" from rtx to rtx_note *.
13404 (emit_notes_in_bb): Likewise.
13406 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13408 * function.h (struct rtl_data): Strengthen field
13409 "x_parm_birth_insn" from rtx to rtx_insn *.
13410 * function.c (struct assign_parm_data_all): Strengthen fields
13411 "first_conversion_insn" and "last_conversion_insn" from rtx to
13414 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13416 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
13417 to rtx_insn *; also for local "var_end_seq".
13418 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
13419 (maybe_cleanup_end_of_block): Likewise for param "last" and local
13421 (expand_gimple_cond): Likewise for locals "last2" and "last".
13422 (mark_transaction_restart_calls): Likewise for local "insn".
13423 (expand_gimple_stmt): Likewise for return type and locals "last"
13425 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
13426 (avoid_complex_debug_insns): Likewise for param "insn".
13427 (expand_debug_locations): Likewise for locals "insn", "last",
13428 "prev_insn" and "insn2".
13429 (expand_gimple_basic_block): Likewise for local "last".
13430 (construct_exit_block): Likewise for locals "head", "end",
13432 (pass_expand::execute): Likewise for locals "var_seq",
13433 "var_ret_seq", "next".
13435 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13437 * asan.h (asan_emit_stack_protection): Strengthen return type from
13439 * asan.c (asan_emit_stack_protection): Likewise. Add local
13440 "insns" to hold the return value.
13442 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13444 * basic-block.h (bb_note): Strengthen return type from rtx to
13446 * sched-int.h (bb_note): Likewise.
13447 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
13449 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13451 * rtl.h (make_insn_raw): Strengthen return type from rtx to
13454 * emit-rtl.c (make_insn_raw): Strengthen return type and local
13455 "insn" from rtx to rtx_insn *.
13456 (make_debug_insn_raw): Strengthen return type from rtx to
13457 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
13458 (make_jump_insn_raw): Strengthen return type from rtx to
13459 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
13460 (make_call_insn_raw): Strengthen return type from rtx to
13461 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
13462 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
13463 callback from rtx to rtx_insn *; likewise for local "insn" and
13464 "next", adding a checked cast to rtx_insn in the relevant cases of
13465 the switch statement.
13466 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
13467 callback from rtx to rtx_insn *.
13468 (emit_pattern_after_setloc): Likewise.
13469 (emit_pattern_after): Likewise.
13470 (emit_pattern_before_setloc): Likewise.
13471 (emit_pattern_before): Likewise.
13473 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13475 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
13477 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
13478 accepting an rtx_insn *.
13479 (last_call_insn): Strengthen return type from rtx to
13482 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13484 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
13485 "insns" from rtx to rtx_insn *.
13486 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
13487 locals "insn" and "prev".
13489 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13491 * rtl.h (tablejump_p): Strengthen third param from rtx * to
13492 rtx_jump_table_data **.
13494 * cfgbuild.c (make_edges): Introduce local "table", using it in
13495 place of "tmp" for jump table data.
13496 (find_bb_boundaries): Strengthen local "table" from rtx to
13497 rtx_jump_table_data *.
13498 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
13499 (outgoing_edges_match): Likewise for locals "table1" and "table2".
13500 (try_crossjump_to_edge): Likewise.
13501 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
13503 (patch_jump_insn): Introduce local "table", using it in place of
13504 "tmp" for jump table data.
13505 (force_nonfallthru_and_redirect): Introduce local "table", so that
13506 call to tablejump_p can receive an rtx_jump_table_data **. Update
13507 logic around the call to overwrite "note" appropriately if
13508 tablejump_p returns non-zero.
13509 (get_last_bb_insn): Introduce local "table", using it in place of
13510 "tmp" for jump table data.
13511 * dwarf2cfi.c (create_trace_edges): Likewise.
13513 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
13514 from rtx to rtx_jump_table_data *.
13515 (create_fix_barrier): Strengthen local "tmp" from rtx to
13516 rtx_jump_table_data *.
13517 (arm_reorg): Likewise for local "table".
13519 * config/s390/s390.c (s390_chunkify_start): Likewise.
13521 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
13523 * jump.c (delete_related_insns): Strengthen local "lab_next" from
13524 rtx to rtx_jump_table_data *.
13526 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
13527 rtx_jump_table_data **. Add a checked cast when writing through
13528 the pointer: we know there that local "table" is non-NULL and that
13529 JUMP_TABLE_DATA_P (table) holds.
13530 (label_is_jump_target_p): Introduce local "table", using it in
13531 place of "tmp" for jump table data.
13533 2014-08-19 Marek Polacek <polacek@redhat.com>
13536 * doc/invoke.texi: Document -Wbool-compare.
13538 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13540 * rtl.h (entry_of_function): Strengthen return type from rtx to
13542 * cfgrtl.c (entry_of_function): Likewise.
13544 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13546 * emit-rtl.h (get_insns): Strengthen return type from rtx to
13547 rtx_insn *, adding a checked cast for now.
13548 (get_last_insn): Likewise.
13550 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13552 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
13555 * emit-rtl.c (gen_label_rtx): Likewise.
13557 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13559 * rtl.h (previous_insn): Strengthen return type from rtx to
13561 (next_insn): Likewise.
13562 (prev_nonnote_insn): Likewise.
13563 (prev_nonnote_insn_bb): Likewise.
13564 (next_nonnote_insn): Likewise.
13565 (next_nonnote_insn_bb): Likewise.
13566 (prev_nondebug_insn): Likewise.
13567 (next_nondebug_insn): Likewise.
13568 (prev_nonnote_nondebug_insn): Likewise.
13569 (next_nonnote_nondebug_insn): Likewise.
13570 (prev_real_insn): Likewise.
13571 (next_real_insn): Likewise.
13572 (prev_active_insn): Likewise.
13573 (next_active_insn): Likewise.
13575 * emit-rtl.c (next_insn): Strengthen return type from rtx to
13576 rtx_insn *, adding a checked cast.
13577 (previous_insn): Likewise.
13578 (next_nonnote_insn): Likewise.
13579 (next_nonnote_insn_bb): Likewise.
13580 (prev_nonnote_insn): Likewise.
13581 (prev_nonnote_insn_bb): Likewise.
13582 (next_nondebug_insn): Likewise.
13583 (prev_nondebug_insn): Likewise.
13584 (next_nonnote_nondebug_insn): Likewise.
13585 (prev_nonnote_nondebug_insn): Likewise.
13586 (next_real_insn): Likewise.
13587 (prev_real_insn): Likewise.
13588 (next_active_insn): Likewise.
13589 (prev_active_insn): Likewise.
13591 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
13592 param "stepfunc" so that it returns an rtx_insn * rather than an
13593 rtx, to track the change to prev_nonnote_insn_bb, which is the
13594 only function this is called with.
13595 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
13597 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
13599 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
13602 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13604 * coretypes.h (class rtx_debug_insn): Add forward declaration.
13605 (class rtx_nonjump_insn): Likewise.
13606 (class rtx_jump_insn): Likewise.
13607 (class rtx_call_insn): Likewise.
13608 (class rtx_jump_table_data): Likewise.
13609 (class rtx_barrier): Likewise.
13610 (class rtx_code_label): Likewise.
13611 (class rtx_note): Likewise.
13613 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
13614 adding the invariant DEBUG_INSN_P (X).
13615 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
13616 the invariant NONJUMP_INSN_P (X).
13617 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
13618 the invariant JUMP_P (X).
13619 (class rtx_call_insn): New, a subclass of rtx_insn, adding
13620 the invariant CALL_P (X).
13621 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
13622 invariant JUMP_TABLE_DATA_P (X).
13623 (class rtx_barrier): New, a subclass of rtx_insn, adding the
13624 invariant BARRIER_P (X).
13625 (class rtx_code_label): New, a subclass of rtx_insn, adding
13626 the invariant LABEL_P (X).
13627 (class rtx_note): New, a subclass of rtx_insn, adding
13628 the invariant NOTE_P(X).
13629 (is_a_helper <rtx_debug_insn *>::test): New.
13630 (is_a_helper <rtx_nonjump_insn *>::test): New.
13631 (is_a_helper <rtx_jump_insn *>::test): New.
13632 (is_a_helper <rtx_call_insn *>::test): New.
13633 (is_a_helper <rtx_jump_table_data *>::test): New functions,
13634 overloaded for both rtx and rtx_insn *.
13635 (is_a_helper <rtx_barrier *>::test): New.
13636 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
13637 for both rtx and rtx_insn *.
13638 (is_a_helper <rtx_note *>::test): New.
13640 2014-08-19 Marek Polacek <polacek@redhat.com>
13642 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
13643 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13644 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
13645 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13647 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13649 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
13650 rtx_insn *. To help with transition, for now, convert from an
13651 access macro into a pair of functions: BND_TO, returning an
13653 (SET_BND_TO): New function, for use where BND_TO is used as an
13656 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
13658 (BND_TO): New function, adding a checked cast.
13659 (SET_BND_TO): New function.
13661 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
13663 (compute_av_set_on_boundaries): Likewise.
13665 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
13667 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
13668 destination if it is used in source.
13669 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
13670 (*popcount<mode>2_falsedep_1): Likewise.
13672 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
13675 * configure.ac: Set install_gold_as_default to no first.
13676 * configure: Regenerated.
13678 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13680 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
13681 "note_list" field will eventually be an rtx_insn *. To help with
13682 transition, for now, convert from an access macro into a pair of
13683 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
13684 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
13687 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
13688 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
13690 * sel-sched-ir.c (init_bb): Likewise.
13691 (sel_restore_notes): Likewise.
13692 (move_bb_info): Likewise.
13693 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
13694 (SET_BB_NOTE_LIST): New function.
13696 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13698 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
13699 field will eventually be an rtx_insn *. To help with transition,
13700 for now, convert from an access macro into a pair of functions:
13701 VINSN_INSN_RTX, returning an rtx_insn *, and...
13702 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
13703 is used as an lvalue.
13705 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
13706 SET_VINSN_INSN_RTX where it's used as an lvalue.
13707 (VINSN_INSN_RTX): New function.
13708 (SET_VINSN_INSN_RTX): New function.
13710 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13712 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
13713 eventually be rtx_insn *, but to help with transition, for now,
13714 convert from an access macro into a pair of functions: DEP_PRO
13715 returning an rtx_insn * and...
13716 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
13717 lvalue, returning an rtx&.
13718 (DEP_CON): Analogous changes to DEP_PRO above.
13719 (SET_DEP_CON): Likewise.
13721 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
13722 an lvalue to SET_DEP_CON.
13723 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
13724 (sd_copy_back_deps): Likewise for DEP_CON.
13725 (DEP_PRO): New function, adding a checked cast for now.
13726 (DEP_CON): Likewise.
13727 (SET_DEP_PRO): New function.
13728 (SET_DEP_CON): Likewise.
13730 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
13732 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
13733 (extra_options): Add i386/cygwin.opt.
13734 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
13735 (CPP_SPEC): Accept -pthread.
13736 (LINK_SPEC): Ditto.
13737 (GOMP_SELF_SPECS): Update comment.
13738 * config/i386/cygwin.opt: New file for -pthread flag.
13740 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13742 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
13743 * df.h (DF_REF_INSN): Convert from a macro to a function, so
13744 that we can return an rtx_insn *.
13746 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
13748 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
13749 when building executables, not DLLs. Add --large-address-aware
13750 under the same conditions.
13751 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
13752 when building executables, not DLLs. Add --large-address-aware
13753 under the same conditions when using -m32.
13755 * config/i386/cygwin-stdint.h: Throughout, make type
13756 definitions dependent on target architecture, not host.
13758 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13760 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
13761 the return type from rtx to rtx_insn *, which will enable various
13762 conversions in followup patches. For now this is is done by a
13764 (NEXT_INSN): Likewise.
13765 (SET_PREV_INSN): Convert to an inline function. This is intended
13766 for use as an lvalue, and so returns an rtx& to allow in-place
13768 (SET_NEXT_INSN): Likewise.
13770 2014-07-08 Mark Wielaard <mjw@redhat.com>
13773 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
13775 2014-08-19 Marek Polacek <polacek@redhat.com>
13778 * cgraphunit.c (handle_alias_pairs): Fix condition.
13780 2014-08-19 Richard Biener <rguenther@suse.de>
13782 * gimple-fold.c (fold_gimple_assign): Properly build a
13783 null-pointer constant when devirtualizing addresses.
13785 2014-07-07 Mark Wielaard <mjw@redhat.com>
13787 * dwarf2out.c (decl_quals): New function.
13788 (modified_type_die): Take one cv_quals argument instead of two,
13789 one for const and one for volatile.
13790 (add_type_attribute): Likewise.
13791 (generic_parameter_die): Call add_type_attribute with one modifier
13793 (base_type_for_mode): Likewise.
13794 (add_bounds_info): Likewise.
13795 (add_subscript_info): Likewise.
13796 (gen_array_type_die): Likewise.
13797 (gen_descr_array_type_die): Likewise.
13798 (gen_entry_point_die): Likewise.
13799 (gen_enumeration_type_die): Likewise.
13800 (gen_formal_parameter_die): Likewise.
13801 (gen_subprogram_die): Likewise.
13802 (gen_variable_die): Likewise.
13803 (gen_const_die): Likewise.
13804 (gen_field_die): Likewise.
13805 (gen_pointer_type_die): Likewise.
13806 (gen_reference_type_die): Likewise.
13807 (gen_ptr_to_mbr_type_die): Likewise.
13808 (gen_inheritance_die): Likewise.
13809 (gen_subroutine_type_die): Likewise.
13810 (gen_typedef_die): Likewise.
13811 (force_type_die): Likewise.
13813 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13815 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
13817 * configure: Regenerate.
13819 2014-08-19 Richard Biener <rguenther@suse.de>
13821 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
13822 DECL_EXTERNALs in BLOCKs as non-references.
13823 * tree-streamer-out.c (streamer_write_chain): Likewise.
13825 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
13826 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13827 Anna Tikhonova <anna.tikhonova@intel.com>
13828 Ilya Tocar <ilya.tocar@intel.com>
13829 Andrey Turetskiy <andrey.turetskiy@intel.com>
13830 Ilya Verbin <ilya.verbin@intel.com>
13831 Kirill Yukhin <kirill.yukhin@intel.com>
13832 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13834 * config/i386/sse.md
13835 (define_mode_iterator VI48_AVX512F): Delete.
13836 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
13837 (define_mode_iterator VI2_AVX512VL): Ditto.
13838 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
13841 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
13843 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
13844 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
13845 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
13846 with VI48_AVX512F_AVX512VL): New.
13847 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
13848 with VI2_AVX512VL): Ditto.
13850 2014-08-19 Marek Polacek <polacek@redhat.com>
13852 * doc/invoke.texi: Document -Wc99-c11-compat.
13854 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13856 * rtl.h (PREV_INSN): Split macro in two: the existing one,
13857 for rvalues, and...
13858 (SET_PREV_INSN): New macro, for use as an lvalue.
13859 (NEXT_INSN, SET_NEXT_INSN): Likewise.
13861 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
13862 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
13863 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13864 (fixup_abnormal_edges): Likewise.
13865 (unlink_insn_chain): Likewise.
13866 (fixup_reorder_chain): Likewise.
13867 (cfg_layout_delete_block): Likewise.
13868 (cfg_layout_merge_blocks): Likewise.
13869 * combine.c (update_cfg_for_uncondjump): Likewise.
13870 * emit-rtl.c (link_insn_into_chain): Likewise.
13871 (remove_insn): Likewise.
13872 (delete_insns_since): Likewise.
13873 (reorder_insns_nobb): Likewise.
13874 (emit_insn_after_1): Likewise.
13875 * final.c (rest_of_clean_state): Likewise.
13876 (final_scan_insn): Likewise.
13877 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
13878 * haifa-sched.c (concat_note_lists): Likewise.
13879 (remove_notes): Likewise.
13880 (restore_other_notes): Likewise.
13881 (move_insn): Likewise.
13882 (unlink_bb_notes): Likewise.
13883 (restore_bb_notes): Likewise.
13884 * jump.c (delete_for_peephole): Likewise.
13885 * optabs.c (emit_libcall_block_1): Likewise.
13886 * reorg.c (emit_delay_sequence): Likewise.
13887 (fill_simple_delay_slots): Likewise.
13888 * sel-sched-ir.c (sel_move_insn): Likewise.
13889 (sel_remove_insn): Likewise.
13890 (get_bb_note_from_pool): Likewise.
13891 * sel-sched.c (move_nop_to_previous_block): Likewise.
13893 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
13894 * config/c6x/c6x.c (gen_one_bundle): Likewise.
13895 (c6x_gen_bundles): Likewise.
13896 (hwloop_optimize): Likewise.
13897 * config/frv/frv.c (frv_function_prologue): Likewise.
13898 (frv_register_nop): Likewise.
13899 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
13900 (ia64_reorg): Likewise.
13901 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
13902 (mep_make_bundle): Likewise.
13903 (mep_bundle_insns): Likewise.
13904 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
13905 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
13906 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
13908 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13910 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
13911 return type from rtx to rtx_insn *.
13912 (BB_END): Likewise.
13913 (BB_HEADER): Likewise.
13914 (BB_FOOTER): Likewise.
13915 (SET_BB_HEAD): Convert to a function.
13916 (SET_BB_END): Likewise.
13917 (SET_BB_HEADER): Likewise.
13918 (SET_BB_FOOTER): Likewise.
13920 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
13921 Strengthen the return type from rtx to rtx_insn *. For now, this
13922 is done by adding a checked cast, but this will eventually
13923 become a field lookup.
13924 (BB_END): Likewise.
13925 (BB_HEADER): Likewise.
13926 (BB_FOOTER): Likewise.
13927 (SET_BB_HEAD): New function, from macro of same name. This is
13928 intended for use as an lvalue, and so returns an rtx& to allow
13929 in-place modification.
13930 (SET_BB_END): Likewise.
13931 (SET_BB_HEADER): Likewise.
13932 (SET_BB_FOOTER): Likewise.
13934 2014-08-18 David Malcolm <dmalcolm@redhat.com>
13936 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
13937 for rvalues, and...
13938 (SET_BB_HEAD): New macro, for use as a lvalue.
13939 (BB_END, SET_BB_END): Likewise.
13940 (BB_HEADER, SET_BB_HEADER): Likewise.
13941 (BB_FOOTER, SET_BB_FOOTER): Likewise.
13943 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
13944 of BB_* macros into SET_BB_* macros.
13945 (fix_crossing_unconditional_branches): Likewise.
13946 * caller-save.c (save_call_clobbered_regs): Likewise.
13947 (insert_one_insn): Likewise.
13948 * cfgbuild.c (find_bb_boundaries): Likewise.
13949 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
13950 (outgoing_edges_match): Likewise.
13951 (try_optimize_cfg): Likewise.
13952 * cfgexpand.c (expand_gimple_cond): Likewise.
13953 (expand_gimple_tailcall): Likewise.
13954 (expand_gimple_basic_block): Likewise.
13955 (construct_exit_block): Likewise.
13956 * cfgrtl.c (delete_insn): Likewise.
13957 (create_basic_block_structure): Likewise.
13958 (rtl_delete_block): Likewise.
13959 (rtl_split_block): Likewise.
13960 (emit_nop_for_unique_locus_between): Likewise.
13961 (rtl_merge_blocks): Likewise.
13962 (block_label): Likewise.
13963 (try_redirect_by_replacing_jump): Likewise.
13964 (emit_barrier_after_bb): Likewise.
13965 (fixup_abnormal_edges): Likewise.
13966 (record_effective_endpoints): Likewise.
13967 (relink_block_chain): Likewise.
13968 (fixup_reorder_chain): Likewise.
13969 (fixup_fallthru_exit_predecessor): Likewise.
13970 (cfg_layout_duplicate_bb): Likewise.
13971 (cfg_layout_split_block): Likewise.
13972 (cfg_layout_delete_block): Likewise.
13973 (cfg_layout_merge_blocks): Likewise.
13974 * combine.c (update_cfg_for_uncondjump): Likewise.
13975 * emit-rtl.c (add_insn_after): Likewise.
13976 (remove_insn): Likewise.
13977 (reorder_insns): Likewise.
13978 (emit_insn_after_1): Likewise.
13979 * haifa-sched.c (get_ebb_head_tail): Likewise.
13980 (restore_other_notes): Likewise.
13981 (move_insn): Likewise.
13982 (sched_extend_bb): Likewise.
13983 (fix_jump_move): Likewise.
13984 * ifcvt.c (noce_process_if_block): Likewise.
13985 (dead_or_predicable): Likewise.
13986 * ira.c (update_equiv_regs): Likewise.
13987 * reg-stack.c (change_stack): Likewise.
13988 * sel-sched-ir.c (sel_move_insn): Likewise.
13989 * sel-sched.c (move_nop_to_previous_block): Likewise.
13991 * config/c6x/c6x.c (hwloop_optimize): Likewise.
13992 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
13994 2014-08-18 David Malcolm <dmalcolm@redhat.com>
13996 * rtl.h (for_each_rtx_in_insn): New function.
13997 * rtlanal.c (for_each_rtx_in_insn): Likewise.
13999 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14001 * coretypes.h (class rtx_insn): Add forward declaration.
14003 * rtl.h: Include is-a.h.
14004 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14005 workaround to ensure gengtype knows inheritance is occurring,
14006 whilst continuing to use the pre-existing special-casing for
14008 (class rtx_insn): New subclass of rtx_def, adding the
14009 invariant that we're dealing with something we can sanely use
14010 INSN_UID, NEXT_INSN, PREV_INSN on.
14011 (is_a_helper <rtx_insn *>::test): New.
14012 (is_a_helper <const rtx_insn *>::test): New.
14014 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14016 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14018 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14020 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14023 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14025 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14026 to BUILT_IN_UNREACHABLE.
14028 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
14031 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14033 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14034 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14035 (ffs<mode>2): Do not expand with tzcnt for
14036 TARGET_AVOID_FALSE_DEP_FOR_BMI.
14037 (ffssi2_no_cmove): Ditto.
14038 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14039 (ctz<mode>2): New expander.
14040 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14041 (*ctz<mode>2_falsedep): New insn.
14042 (*ctz<mode>2): Rename from ctz<mode>2.
14043 (clz<mode>2_lzcnt): New expander.
14044 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14045 (*clz<mode>2_lzcnt_falsedep): New insn.
14046 (*clz<mode>2): Rename from ctz<mode>2.
14047 (popcount<mode>2): New expander.
14048 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14049 (*popcount<mode>2_falsedep): New insn.
14050 (*popcount<mode>2): Rename from ctz<mode>2.
14051 (*popcount<mode>2_cmp): Remove.
14052 (*popcountsi2_cmp_zext): Ditto.
14054 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
14056 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14057 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14058 * config/microblaze/microblaze.h
14059 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14061 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
14064 * configure.ac: Set install_gold_as_default to no for
14066 * configure: Regenerated.
14068 2014-08-18 Roman Gareev <gareevroman@gmail.com>
14070 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14071 * config.in: Add undef of HAVE_isl.
14072 * configure: Regenerate.
14073 * configure.ac: Add definition of HAVE_isl.
14074 * graphite-blocking.c: Add checking of HAVE_isl.
14075 * graphite-dependences.c: Likewise.
14076 * graphite-interchange.c: Likewise.
14077 * graphite-isl-ast-to-gimple.c: Likewise.
14078 * graphite-optimize-isl.c: Likewise.
14079 * graphite-poly.c: Likewise.
14080 * graphite-scop-detection.c: Likewise.
14081 * graphite-sese-to-poly.c: Likewise.
14082 * graphite.c: Likewise.
14083 * toplev.c: Replace the checking of HAVE_cloog with the checking
14086 2014-08-18 Richard Biener <rguenther@suse.de>
14088 PR tree-optimization/62090
14089 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14090 (fold_builtin_3): Do not fold snprintf.
14091 (fold_builtin_4): Likewise.
14092 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14093 moved from builtins.c.
14094 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14095 (gimple_fold_builtin): Do not fold sprintf here.
14097 2014-08-18 Richard Biener <rguenther@suse.de>
14099 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14101 (maybe_canonicalize_mem_ref_addr): ... this function.
14102 (fold_stmt_1): Apply it here before all simplification.
14104 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
14107 * cgraph.h (cgraph_node::create_indirect_edge): Add
14108 compute_indirect_info param.
14109 * cgraph.c (cgraph_node::create_indirect_edge): Compute
14110 indirect_info only when it is required.
14111 * cgraphclones.c (cgraph_clone_edge): Do not recompute
14112 indirect_info fore cloned indirect edge.
14114 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14115 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14116 Anna Tikhonova <anna.tikhonova@intel.com>
14117 Ilya Tocar <ilya.tocar@intel.com>
14118 Andrey Turetskiy <andrey.turetskiy@intel.com>
14119 Ilya Verbin <ilya.verbin@intel.com>
14120 Kirill Yukhin <kirill.yukhin@intel.com>
14121 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14123 * config/i386/sse.md
14124 (define_mode_iterator VI8_AVX2_AVX512BW): New.
14125 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14127 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14128 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14129 Anna Tikhonova <anna.tikhonova@intel.com>
14130 Ilya Tocar <ilya.tocar@intel.com>
14131 Andrey Turetskiy <andrey.turetskiy@intel.com>
14132 Ilya Verbin <ilya.verbin@intel.com>
14133 Kirill Yukhin <kirill.yukhin@intel.com>
14134 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14136 * config/i386/sse.md
14137 (define_mode_iterator VF1_AVX512VL): New.
14138 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14139 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14142 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14143 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14144 Anna Tikhonova <anna.tikhonova@intel.com>
14145 Ilya Tocar <ilya.tocar@intel.com>
14146 Andrey Turetskiy <andrey.turetskiy@intel.com>
14147 Ilya Verbin <ilya.verbin@intel.com>
14148 Kirill Yukhin <kirill.yukhin@intel.com>
14149 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14151 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14152 * config/i386/i386.md
14153 (define_code_iterator any_float): New.
14154 (define_code_attr floatsuffix): New.
14155 * config/i386/sse.md
14156 (define_mode_iterator VF1_128_256VL): New.
14157 (define_mode_iterator VF2_512_256VL): New.
14158 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14160 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
14161 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
14163 (define_mode_attr qq2pssuff): New.
14164 (define_mode_attr sselongvecmode): New.
14165 (define_mode_attr sselongvecmodelower): New.
14166 (define_mode_attr sseintvecmode3): New.
14167 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
14169 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
14170 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
14171 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
14172 (define_insn "ufloatv2siv2df2<mask_name>"): New.
14174 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14175 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14176 Anna Tikhonova <anna.tikhonova@intel.com>
14177 Ilya Tocar <ilya.tocar@intel.com>
14178 Andrey Turetskiy <andrey.turetskiy@intel.com>
14179 Ilya Verbin <ilya.verbin@intel.com>
14180 Kirill Yukhin <kirill.yukhin@intel.com>
14181 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14183 * config/i386/sse.md
14184 (define_mode_iterator VF2_AVX512VL): New.
14185 (define_mode_attr sseintvecmode2): New.
14186 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
14187 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
14188 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
14190 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
14192 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14194 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14197 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14198 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14199 Anna Tikhonova <anna.tikhonova@intel.com>
14200 Ilya Tocar <ilya.tocar@intel.com>
14201 Andrey Turetskiy <andrey.turetskiy@intel.com>
14202 Ilya Verbin <ilya.verbin@intel.com>
14203 Kirill Yukhin <kirill.yukhin@intel.com>
14204 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14206 * config/i386/i386.md
14207 (define_insn "*movoi_internal_avx"): Add evex version.
14208 (define_insn "*movti_internal"): Ditto.
14210 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14211 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14212 Anna Tikhonova <anna.tikhonova@intel.com>
14213 Ilya Tocar <ilya.tocar@intel.com>
14214 Andrey Turetskiy <andrey.turetskiy@intel.com>
14215 Ilya Verbin <ilya.verbin@intel.com>
14216 Kirill Yukhin <kirill.yukhin@intel.com>
14217 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14219 * config/i386/i386.md
14220 (define_attr "isa"): Add avx512dq, noavx512dq.
14221 (define_attr "enabled"): Ditto.
14222 * config/i386/sse.md
14223 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
14225 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14226 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14227 Anna Tikhonova <anna.tikhonova@intel.com>
14228 Ilya Tocar <ilya.tocar@intel.com>
14229 Andrey Turetskiy <andrey.turetskiy@intel.com>
14230 Ilya Verbin <ilya.verbin@intel.com>
14231 Kirill Yukhin <kirill.yukhin@intel.com>
14232 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14234 * config/i386/i386.c
14235 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
14236 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
14237 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
14238 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
14239 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
14240 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
14241 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
14242 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
14243 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
14244 * config/i386/sse.md
14245 (define_mode_iterator VMOVE): Allow V4TI mode.
14246 (define_mode_iterator V_AVX512VL): New.
14247 (define_mode_iterator V): New handling for AVX512VL.
14248 (define_insn "avx512f_load<mode>_mask"): Delete.
14249 (define_insn "<avx512>_load<mode>_mask"): New.
14250 (define_insn "avx512f_store<mode>_mask"): Delete.
14251 (define_insn "<avx512>_store<mode>_mask"): New.
14254 2014-08-18 Yury Gribov <y.gribov@samsung.com>
14257 * asan.c (instrument_derefs): Fix bitfield check.
14259 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14261 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
14262 * config/rs6000/htm.md (ttest): Remove clobber.
14263 * config/rs6000/predicates.md (any_mask_operand): New predicate.
14264 (and_operand): Reformat.
14265 (and_2rld_operand): New predicate.
14266 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
14268 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
14269 parameter. Handle AND directly.
14270 (rs6000_split_logical_di): Remove last parameter.
14271 (rs6000_split_logical): Remove last parameter. Remove obsolete
14273 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
14274 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
14275 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
14276 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
14277 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
14278 and 5 anonymous splitters): Delete.
14279 (and<mode>3): New expander.
14280 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
14281 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
14282 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
14283 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
14284 (floatdisf2_internal1): Remove clobbers.
14285 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
14286 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
14287 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
14288 (and<mode>3 for BOOL_128): Remove clobber.
14289 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
14290 rs6000_split_logical.
14291 (*bool<mode>3_internal for BOOL_128): Adjust call of
14292 rs6000_split_logical.
14293 (*boolc<mode>3_internal1 for BOOL_128,
14294 *boolc<mode>3_internal2 for BOOL_128,
14295 *boolcc<mode>3_internal1 for BOOL_128,
14296 *boolcc<mode>3_internal2 for BOOL_128,
14297 *eqv<mode>3_internal1 for BOOL_128,
14298 *eqv<mode>3_internal2 for BOOL_128,
14299 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
14300 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
14302 (*vec_reload_and_reg_<mptrsize>): Delete.
14304 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14306 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
14307 and split, *boolccsi3_internal3 and split): Delete.
14308 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
14309 *boolccdi3_internal3 and split): Delete.
14310 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
14311 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
14313 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14315 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
14316 and split, *boolcsi3_internal3 and split): Delete.
14317 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
14318 *boolcdi3_internal3 and split): Delete.
14319 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
14321 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14323 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
14324 <'u'>: Also support printing the low-order 16 bits.
14325 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
14326 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
14327 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
14328 *booldi3_internal3 and split): Delete.
14329 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
14330 *bool<mode>3_dot2): New.
14331 (two anonymous define_splits for non_logical_cint_operand): Merge.
14333 2014-08-17 Marek Polacek <polacek@redhat.com>
14334 Manuel López-Ibáñez <manu@gcc.gnu.org>
14337 * diagnostic.c (adjust_line): Add gcc_checking_assert.
14338 (diagnostic_show_locus): Don't print caret diagnostic
14339 if a column is larger than the line_width.
14341 2014-08-17 Roman Gareev <gareevroman@gmail.com>
14343 * common.opt: Make the ISL AST generator to be the main code generator
14346 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
14348 * wide-int.h (generic_wide_int): Declare as class instead of struct.
14350 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
14353 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
14355 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
14356 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
14357 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
14359 * config/pa/pa.md (begin_brtab): Delete insn.
14360 (end_brtab): Likewise.
14362 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14364 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
14366 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
14368 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
14369 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
14370 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
14371 (get_dynamic_type): Remove.
14372 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
14373 (clear_speculation): Bring to ipa-deivrt.h
14374 (get_class_context): Rename to ...
14375 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
14376 (contains_type_p): Update.
14377 (get_dynamic_type): Rename to ...
14378 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
14379 (possible_polymorphic_call_targets): UPdate.
14380 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
14381 * ipa-prop.c (ipa_analyze_call_uses): Update.
14383 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
14385 * doc/invoke.texi (SH options): Document missing processor variant
14386 options. Remove references to Hitachi. Undocument deprecated mspace
14389 2014-08-15 Jason Merrill <jason@redhat.com>
14391 * tree.c (type_hash_canon): Uncomment assert.
14393 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14395 * input.h (in_system_header_at): Add comment.
14397 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14400 * diagnostic.c (build_message_string): Make it extern.
14401 * diagnostic.h (build_message_string): Make it extern.
14403 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
14405 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
14406 load/store from/to non-floating class pseudo.
14408 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
14410 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
14412 2014-08-15 Richard Biener <rguenther@suse.de>
14414 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
14415 (get_constraint_for_ssa_var): Remove dead code.
14416 (get_constraint_for_1): Adjust.
14417 (find_what_var_points_to): Likewise.
14418 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
14420 2014-08-15 Ilya Tocar <tocarip@gmail.com>
14423 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
14424 (_mm512_mask_cmpge_epu32_mask): Ditto.
14425 (_mm512_cmpge_epu32_mask): Ditto.
14426 (_mm512_mask_cmpge_epi64_mask): Ditto.
14427 (_mm512_cmpge_epi64_mask): Ditto.
14428 (_mm512_mask_cmpge_epu64_mask): Ditto.
14429 (_mm512_cmpge_epu64_mask): Ditto.
14430 (_mm512_mask_cmple_epi32_mask): Ditto.
14431 (_mm512_cmple_epi32_mask): Ditto.
14432 (_mm512_mask_cmple_epu32_mask): Ditto.
14433 (_mm512_cmple_epu32_mask): Ditto.
14434 (_mm512_mask_cmple_epi64_mask): Ditto.
14435 (_mm512_cmple_epi64_mask): Ditto.
14436 (_mm512_mask_cmple_epu64_mask): Ditto.
14437 (_mm512_cmple_epu64_mask): Ditto.
14438 (_mm512_mask_cmplt_epi32_mask): Ditto.
14439 (_mm512_cmplt_epi32_mask): Ditto.
14440 (_mm512_mask_cmplt_epu32_mask): Ditto.
14441 (_mm512_cmplt_epu32_mask): Ditto.
14442 (_mm512_mask_cmplt_epi64_mask): Ditto.
14443 (_mm512_cmplt_epi64_mask): Ditto.
14444 (_mm512_mask_cmplt_epu64_mask): Ditto.
14445 (_mm512_cmplt_epu64_mask): Ditto.
14446 (_mm512_mask_cmpneq_epi32_mask): Ditto.
14447 (_mm512_mask_cmpneq_epu32_mask): Ditto.
14448 (_mm512_cmpneq_epu32_mask): Ditto.
14449 (_mm512_mask_cmpneq_epi64_mask): Ditto.
14450 (_mm512_cmpneq_epi64_mask): Ditto.
14451 (_mm512_mask_cmpneq_epu64_mask): Ditto.
14452 (_mm512_cmpneq_epu64_mask): Ditto.
14453 (_mm512_castpd_ps): Ditto.
14454 (_mm512_castpd_si512): Ditto.
14455 (_mm512_castps_pd): Ditto.
14456 (_mm512_castps_si512): Ditto.
14457 (_mm512_castsi512_ps): Ditto.
14458 (_mm512_castsi512_pd): Ditto.
14459 (_mm512_castpd512_pd128): Ditto.
14460 (_mm512_castps512_ps128): Ditto.
14461 (_mm512_castsi512_si128): Ditto.
14462 (_mm512_castpd512_pd256): Ditto.
14463 (_mm512_castps512_ps256): Ditto.
14464 (_mm512_castsi512_si256): Ditto.
14465 (_mm512_castpd128_pd512): Ditto.
14466 (_mm512_castps128_ps512): Ditto.
14467 (_mm512_castsi128_si512): Ditto.
14468 (_mm512_castpd256_pd512): Ditto.
14469 (_mm512_castps256_ps512): Ditto.
14470 (_mm512_castsi256_si512): Ditto.
14471 (_mm512_cmpeq_epu32_mask): Ditto.
14472 (_mm512_mask_cmpeq_epu32_mask): Ditto.
14473 (_mm512_mask_cmpeq_epu64_mask): Ditto.
14474 (_mm512_cmpeq_epu64_mask): Ditto.
14475 (_mm512_cmpgt_epu32_mask): Ditto.
14476 (_mm512_mask_cmpgt_epu32_mask): Ditto.
14477 (_mm512_mask_cmpgt_epu64_mask): Ditto.
14478 (_mm512_cmpgt_epu64_mask): Ditto.
14479 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
14480 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
14481 * config/i386/i386.c (enum ix86_builtins): Add
14482 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
14483 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
14484 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
14485 (bdesc_args): Add __builtin_ia32_si512_256si,
14486 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
14487 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
14488 __builtin_ia32_pd512_pd.
14489 (ix86_expand_args_builtin): Handle new FTYPEs.
14490 * config/i386/sse.md (castmode): Add 512-bit modes.
14491 (AVX512MODE2P): New.
14492 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
14493 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
14495 2014-08-15 Richard Biener <rguenther@suse.de>
14497 * fold-const.c (tree_swap_operands_p): Put all constants
14498 last, also strip sign-changing NOPs when considering further
14499 canonicalization. Canonicalize also when optimizing for size.
14501 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14503 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
14504 one_match > zero_match case to just before simple_sequence.
14506 2014-08-15 Richard Biener <rguenther@suse.de>
14508 * data-streamer.h (streamer_string_index, string_for_index):
14510 * data-streamer-out.c (streamer_string_index): Make static.
14511 * data-streamer-in.c (string_for_index): Likewise.
14512 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
14513 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
14515 2014-08-15 Richard Biener <rguenther@suse.de>
14517 PR tree-optimization/62031
14518 * tree-data-ref.c (dr_analyze_indices): Do not set
14519 DR_UNCONSTRAINED_BASE.
14520 (dr_may_alias_p): All indirect accesses have to go the
14521 formerly DR_UNCONSTRAINED_BASE path.
14522 * tree-data-ref.h (struct indices): Remove
14523 unconstrained_base member.
14524 (DR_UNCONSTRAINED_BASE): Remove.
14526 2014-08-15 Jakub Jelinek <jakub@redhat.com>
14528 PR middle-end/62092
14529 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
14530 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
14531 in OMP_CLAUSE_MAP in some outer target region.
14533 2014-08-15 Bin Cheng <bin.cheng@arm.com>
14535 * tree-ssa-loop-ivopts.c (ivopts_data): New field
14536 name_expansion_cache.
14537 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
14538 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
14539 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
14540 (difference_cannot_overflow_p): New parameter. Use affine
14541 expansion for equality check.
14542 (iv_elimination_compare_lt): Pass new argument.
14544 2014-08-14 DJ Delorie <dj@redhat.com>
14546 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
14547 variables to the accumulator.
14549 * config/rl78/predicates.md (rl78_near_mem_operand): New.
14550 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
14551 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
14552 with far-far moves.
14554 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
14555 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
14556 (umulqihi3_virt): Likewise.
14557 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
14558 (umulqihi3_real): Likewise.
14560 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
14562 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
14564 PR tree-optimization/62091
14565 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
14566 function_entry_reached.
14567 (walk_aliased_vdefs): Clear it here.
14568 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
14570 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
14572 * ipa-utils.h (compare_virtual_tables): Declare.
14573 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
14575 2014-08-14 Marek Polacek <polacek@redhat.com>
14578 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
14579 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
14581 2014-08-14 Tom de Vries <tom@codesourcery.com>
14583 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
14585 2014-08-14 Tom de Vries <tom@codesourcery.com>
14587 PR rtl-optimization/62004
14588 PR rtl-optimization/62030
14589 * ifcvt.c (rtx_interchangeable_p): New function.
14590 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
14591 * emit-rtl.h (mem_attrs_eq_p): Declare.
14593 2014-08-14 Roman Gareev <gareevroman@gmail.com>
14595 * graphite-scop-detection.c:
14596 Add inclusion of cp-tree.h.
14597 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
14598 in case they are pointers to object types
14600 2014-08-14 Richard Biener <rguenther@suse.de>
14602 * BASE-VER: Change to 5.0.0
14604 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14605 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14606 Anna Tikhonova <anna.tikhonova@intel.com>
14607 Ilya Tocar <ilya.tocar@intel.com>
14608 Andrey Turetskiy <andrey.turetskiy@intel.com>
14609 Ilya Verbin <ilya.verbin@intel.com>
14610 Kirill Yukhin <kirill.yukhin@intel.com>
14611 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14613 * config/i386/sse.md (define_mode_attr avx512): New.
14614 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
14616 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
14617 (define_mode_attr ssse3_avx2): Ditto.
14618 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
14619 (define_mode_attr avx2_avx512bw): New.
14620 (define_mode_attr ssedoublemodelower): New.
14621 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
14622 V32HI, V64QI modes.
14623 (define_mode_attr ssebytemode): Allow V8DI modes.
14624 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
14625 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
14626 (define_mode_attr ssePSmode2): New.
14627 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
14628 V16HI, V32HI modes.
14629 (define_mode_attr dbpsadbwmode): New.
14630 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
14631 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
14632 (vi8_sse4_1_avx2_avx512): New.
14633 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
14635 (define_mode_attr blendbits): Move before its immediate use.
14637 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14638 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14639 Anna Tikhonova <anna.tikhonova@intel.com>
14640 Ilya Tocar <ilya.tocar@intel.com>
14641 Andrey Turetskiy <andrey.turetskiy@intel.com>
14642 Ilya Verbin <ilya.verbin@intel.com>
14643 Kirill Yukhin <kirill.yukhin@intel.com>
14644 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14646 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
14647 * config/i386/subst.md
14648 (define_mode_iterator SUBST_V): Update.
14649 (define_mode_iterator SUBST_A): Ditto.
14650 (define_subst_attr "mask_operand7"): New.
14651 (define_subst_attr "mask_operand10"): New.
14652 (define_subst_attr "mask_operand_arg34") : New.
14653 (define_subst_attr "mask_expand_op3"): New.
14654 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
14655 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
14656 (define_subst_attr "mask_avx512vl_condition"): New.
14657 (define_subst_attr "round_mask_operand4"): Ditto.
14658 (define_subst_attr "round_mask_scalar_op3"): Delete.
14659 (define_subst_attr "round_mask_op4"): New.
14660 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
14662 (define_subst_attr "round_modev8sf_condition"): New.
14663 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
14665 (define_subst_attr "round_saeonly_mask_operand4"): New.
14666 (define_subst_attr "round_saeonly_mask_op4"): New.
14667 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
14668 V8DImode, V16SImode.
14669 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
14670 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
14671 (define_subst_attr "mask_expand4_args"): New.
14672 (define_subst "mask_expand4"): New.
14674 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14675 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14676 Anna Tikhonova <anna.tikhonova@intel.com>
14677 Ilya Tocar <ilya.tocar@intel.com>
14678 Andrey Turetskiy <andrey.turetskiy@intel.com>
14679 Ilya Verbin <ilya.verbin@intel.com>
14680 Kirill Yukhin <kirill.yukhin@intel.com>
14681 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14683 * config/i386/i386.md
14684 (define_attr "isa"): Add avx512bw,noavx512bw.
14685 (define_attr "enabled"): Ditto.
14686 (define_split): Add 32/64-bit mask logic.
14687 (define_insn "*k<logic>qi"): New.
14688 (define_insn "*k<logic>hi"): New.
14689 (define_insn "*anddi_1"): Add mask version.
14690 (define_insn "*andsi_1"): Ditto.
14691 (define_insn "*<code><mode>_1"): Ditto.
14692 (define_insn "*<code>hi_1"): Ditto.
14693 (define_insn "kxnor<mode>"): New.
14694 (define_insn "kunpcksi"): New.
14695 (define_insn "kunpckdi"): New.
14696 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
14697 (define_insn "*one_cmplhi2_1"): Ditto.
14699 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14700 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14701 Anna Tikhonova <anna.tikhonova@intel.com>
14702 Ilya Tocar <ilya.tocar@intel.com>
14703 Andrey Turetskiy <andrey.turetskiy@intel.com>
14704 Ilya Verbin <ilya.verbin@intel.com>
14705 Kirill Yukhin <kirill.yukhin@intel.com>
14706 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14708 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
14711 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
14712 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14713 Anna Tikhonova <anna.tikhonova@intel.com>
14714 Ilya Tocar <ilya.tocar@intel.com>
14715 Andrey Turetskiy <andrey.turetskiy@intel.com>
14716 Ilya Verbin <ilya.verbin@intel.com>
14717 Kirill Yukhin <kirill.yukhin@intel.com>
14718 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14720 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
14722 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
14723 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
14724 xmm/ymm16+ when availble.
14725 * config/i386/i386.h
14726 (HARD_REGNO_NREGS): Add mask regs.
14727 (VALID_AVX512F_REG_MODE): Ditto.
14728 (VALID_AVX512F_REG_MODE) : Define.
14729 (VALID_MASK_AVX512BW_MODE): Ditto.
14730 (reg_class) (MASK_REG_P(X)): Define.
14731 * config/i386/i386.md: Do not split long moves with mask register,
14732 use kmovb if avx512bw is availible.
14733 (movdi_internal): Handle mask registers.
14735 2014-08-14 Richard Biener <rguenther@suse.de>
14737 PR tree-optimization/62081
14738 * tree-ssa-loop.c (pass_fix_loops): New pass.
14739 (pass_tree_loop::gate): Do not fixup loops here.
14740 * tree-pass.h (make_pass_fix_loops): Declare.
14741 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
14743 2014-08-14 Richard Biener <rguenther@suse.de>
14745 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
14746 (type_hash_canon): ... this and avoid 2nd lookup for the add.
14748 2014-08-14 Richard Biener <rguenther@suse.de>
14750 PR tree-optimization/62090
14751 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
14752 (fold_builtin_2): Do not fold sprintf.
14753 (fold_builtin_3): Likewise.
14754 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
14755 moved from builtins.c.
14756 (gimple_fold_builtin): Fold sprintf.
14758 2014-08-14 Richard Biener <rguenther@suse.de>
14760 PR rtl-optimization/62079
14761 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
14764 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
14766 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
14767 current_function_decl.
14769 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
14771 * cgraph.c (cgraph_node::function_symbol): Fix wrong
14772 cgraph_function_node to cgraph_node::function_symbol
14775 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
14777 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
14778 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
14780 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
14782 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
14785 2014-08-13 Roman Gareev <gareevroman@gmail.com>
14787 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
14790 2014-08-12 Jakub Jelinek <jakub@redhat.com>
14793 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
14794 any registers that are used in mem_insn.
14796 2014-08-12 Steve Ellcey <sellcey@mips.com>
14798 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
14800 2014-08-12 Steve Ellcey <sellcey@mips.com>
14802 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
14803 (MULTILIB_DIRNAMES): Ditto.
14804 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
14805 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
14806 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
14807 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
14808 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
14809 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
14811 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14814 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
14815 of __ARM_SIZEOF_WCHAR_T.
14817 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14820 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
14821 Remove unnecessary attributes.
14823 2014-08-12 Yury Gribov <y.gribov@samsung.com>
14825 * internal-fn.c (init_internal_fns): Fix off-by-one.
14827 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
14828 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14829 Anna Tikhonova <anna.tikhonova@intel.com>
14830 Ilya Tocar <ilya.tocar@intel.com>
14831 Andrey Turetskiy <andrey.turetskiy@intel.com>
14832 Ilya Verbin <ilya.verbin@intel.com>
14833 Kirill Yukhin <kirill.yukhin@intel.com>
14834 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14836 * config/i386/i386.c (standard_sse_constant_opcode): Use
14837 vpxord/vpternlog if avx512 is availible.
14839 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
14841 PR middle-end/62103
14842 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
14843 bitfields, that is when size doesn't match the size of type or the
14844 size of the constructor.
14846 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14848 * config/rs6000/constraints.md (wh constraint): New constraint,
14849 for FP registers if direct move is available.
14850 (wi constraint): New constraint, for VSX/FP registers that can
14851 handle 64-bit integers.
14852 (wj constraint): New constraint for VSX/FP registers that can
14853 handle 64-bit integers for direct moves.
14854 (wk constraint): New constraint for VSX/FP registers that can
14855 handle 64-bit doubles for direct moves.
14856 (wy constraint): Make documentation match implementation.
14858 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
14859 scalar_in_vmx_p field to simplify tests of whether SFmode or
14860 DFmode can go in the Altivec registers.
14861 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
14862 (rs6000_setup_reg_addr_masks): Likewise.
14863 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
14864 field, and wh/wi/wj/wk constraints.
14865 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
14866 the wh/wi/wj/wk constraints.
14867 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
14868 upper registers, prefer VSX registers unless the operation is a
14869 memory operation with REG+OFFSET addressing.
14871 * config/rs6000/vsx.md (VSr mode attribute): Add support for
14872 DImode. Change SFmode to use ww constraint instead of d to allow
14873 SF registers in the upper registers.
14876 (VSr5): Fix thinko in comment.
14877 (VSa): New mode attribute that is an alternative to wa, that
14878 returns the VSX register class that a mode can go in, but may not
14879 be the preferred register class.
14880 (VS_64dm): New mode attribute for appropriate register classes for
14881 referencing 64-bit elements of vectors for direct moves and normal
14883 (VS_64reg): Likewise.
14884 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
14885 register allocator to only registers the data type can handle.
14886 (vsx_le_perm_load_<mode>): Likewise.
14887 (vsx_le_perm_store_<mode>): Likewise.
14888 (vsx_xxpermdi2_le_<mode>): Likewise.
14889 (vsx_xxpermdi4_le_<mode>): Likewise.
14890 (vsx_lxvd2x2_le_<mode>): Likewise.
14891 (vsx_lxvd2x4_le_<mode>): Likewise.
14892 (vsx_stxvd2x2_le_<mode>): Likewise.
14893 (vsx_add<mode>3): Likewise.
14894 (vsx_sub<mode>3): Likewise.
14895 (vsx_mul<mode>3): Likewise.
14896 (vsx_div<mode>3): Likewise.
14897 (vsx_tdiv<mode>3_internal): Likewise.
14898 (vsx_fre<mode>2): Likewise.
14899 (vsx_neg<mode>2): Likewise.
14900 (vsx_abs<mode>2): Likewise.
14901 (vsx_nabs<mode>2): Likewise.
14902 (vsx_smax<mode>3): Likewise.
14903 (vsx_smin<mode>3): Likewise.
14904 (vsx_sqrt<mode>2): Likewise.
14905 (vsx_rsqrte<mode>2): Likewise.
14906 (vsx_tsqrt<mode>2_internal): Likewise.
14907 (vsx_fms<mode>4): Likewise.
14908 (vsx_nfma<mode>4): Likewise.
14909 (vsx_eq<mode>): Likewise.
14910 (vsx_gt<mode>): Likewise.
14911 (vsx_ge<mode>): Likewise.
14912 (vsx_eq<mode>_p): Likewise.
14913 (vsx_gt<mode>_p): Likewise.
14914 (vsx_ge<mode>_p): Likewise.
14915 (vsx_xxsel<mode>): Likewise.
14916 (vsx_xxsel<mode>_uns): Likewise.
14917 (vsx_copysign<mode>3): Likewise.
14918 (vsx_float<VSi><mode>2): Likewise.
14919 (vsx_floatuns<VSi><mode>2): Likewise.
14920 (vsx_fix_trunc<mode><VSi>2): Likewise.
14921 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
14922 (vsx_x<VSv>r<VSs>i): Likewise.
14923 (vsx_x<VSv>r<VSs>ic): Likewise.
14924 (vsx_btrunc<mode>2): Likewise.
14925 (vsx_b2trunc<mode>2): Likewise.
14926 (vsx_floor<mode>2): Likewise.
14927 (vsx_ceil<mode>2): Likewise.
14928 (vsx_<VS_spdp_insn>): Likewise.
14929 (vsx_xscvspdp): Likewise.
14930 (vsx_xvcvspuxds): Likewise.
14931 (vsx_float_fix_<mode>2): Likewise.
14932 (vsx_set_<mode>): Likewise.
14933 (vsx_extract_<mode>_internal1): Likewise.
14934 (vsx_extract_<mode>_internal2): Likewise.
14935 (vsx_extract_<mode>_load): Likewise.
14936 (vsx_extract_<mode>_store): Likewise.
14937 (vsx_splat_<mode>): Likewise.
14938 (vsx_xxspltw_<mode>): Likewise.
14939 (vsx_xxspltw_<mode>_direct): Likewise.
14940 (vsx_xxmrghw_<mode>): Likewise.
14941 (vsx_xxmrglw_<mode>): Likewise.
14942 (vsx_xxsldwi_<mode>): Likewise.
14943 (vsx_xscvdpspn): Tighten constraints to only use register classes
14945 (vsx_xscvspdpn): Likewise.
14946 (vsx_xscvdpspn_scalar): Likewise.
14948 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
14949 wj, and wk constraints.
14950 (GPR_REG_CLASS_P): New helper macro for register classes targeting
14951 general purpose registers.
14953 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
14955 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
14956 DImode instead of wm. Use wk constraint for direct move of DFmode
14958 (extendsidi2_lfiwax): Likewise.
14959 (lfiwax): Likewise.
14960 (lfiwzx): Likewise.
14961 (movdi_internal64): Likewise.
14963 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
14964 wk constraints. Make the wy constraint documentation match them
14967 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
14969 Replacement of isl_int by isl_val
14970 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
14971 (compute_bounds_for_param): use isl_val instead of isl_int
14972 (compute_bounds_for_loop): likewise
14973 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
14974 (build_linearized_memory_access): use isl_val instead of isl_int
14975 (pdr_stride_in_loop): likewise
14976 * graphite-optimize-isl.c:
14977 (getPrevectorMap): use isl_val instead of isl_int
14979 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
14980 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
14981 (extern the_isl_ctx): declare
14982 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
14983 (extract_affine_gmp): likewise
14985 (build_loop_iteration_domains): likewise
14986 (add_param_constraints): likewise
14988 2014-08-11 Richard Biener <rguenther@suse.de>
14990 PR tree-optimization/62075
14991 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
14992 handle uses in patterns.
14994 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14995 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14996 Anna Tikhonova <anna.tikhonova@intel.com>
14997 Ilya Tocar <ilya.tocar@intel.com>
14998 Andrey Turetskiy <andrey.turetskiy@intel.com>
14999 Ilya Verbin <ilya.verbin@intel.com>
15000 Kirill Yukhin <kirill.yukhin@intel.com>
15001 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15003 * common/config/i386/i386-common.c
15004 (OPTION_MASK_ISA_AVX512VL_SET): Define.
15005 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15006 (ix86_handle_option): Handle OPT_mavx512vl.
15007 * config/i386/cpuid.h (bit_AVX512VL): Define.
15008 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15009 set -mavx512vl accordingly.
15010 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15011 OPTION_MASK_ISA_AVX512VL.
15012 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15013 (ix86_option_override_internal): Define PTA_AVX512VL, handle
15014 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15015 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15016 * config/i386/i386.h (TARGET_AVX512VL): Define.
15017 (TARGET_AVX512VL_P(x)): Ditto.
15018 * config/i386/i386.opt: Add mavx512vl.
15020 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
15022 PR tree-optimization/62073
15023 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15026 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15027 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15028 Anna Tikhonova <anna.tikhonova@intel.com>
15029 Ilya Tocar <ilya.tocar@intel.com>
15030 Andrey Turetskiy <andrey.turetskiy@intel.com>
15031 Ilya Verbin <ilya.verbin@intel.com>
15032 Kirill Yukhin <kirill.yukhin@intel.com>
15033 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15035 * common/config/i386/i386-common.c
15036 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15037 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15038 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15039 (ix86_handle_option): Handle OPT_mavx512bw.
15040 * config/i386/cpuid.h (bit_AVX512BW): Define.
15041 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15042 set -mavx512bw accordingly.
15043 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15044 OPTION_MASK_ISA_AVX512BW.
15045 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15046 (ix86_option_override_internal): Define PTA_AVX512BW, handle
15047 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15048 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15049 * config/i386/i386.h (TARGET_AVX512BW): Define.
15050 (TARGET_AVX512BW_P(x)): Ditto.
15051 * config/i386/i386.opt: Add mavx512bw.
15053 2014-08-11 Richard Biener <rguenther@suse.de>
15055 PR tree-optimization/62070
15056 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15057 Remove SSA checking.
15059 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15061 * asan.c (asan_check_flags): New enum.
15062 (build_check_stmt_with_calls): Removed function.
15063 (build_check_stmt): Split inlining logic to
15064 asan_expand_check_ifn.
15065 (instrument_derefs): Rename parameter.
15066 (instrument_mem_region_access): Rename parameter.
15067 (instrument_strlen_call): Likewise.
15068 (asan_expand_check_ifn): New function.
15069 (asan_instrument): Remove old code.
15070 (pass_sanopt::execute): Change handling of
15071 asan-instrumentation-with-call-threshold.
15072 (asan_clear_shadow): Fix formatting.
15073 (asan_function_start): Likewise.
15074 (asan_emit_stack_protection): Likewise.
15075 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15076 Update description.
15077 * internal-fn.c (expand_ASAN_CHECK): New function.
15078 * internal-fn.def (ASAN_CHECK): New internal function.
15079 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15080 Update description.
15081 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15082 * tree.c: Small comment fix.
15084 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15086 * gimple.c (gimple_call_fnspec): Support internal functions.
15087 (gimple_call_return_flags): Use const.
15088 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15089 * internal-fn.def: Add fnspec information.
15090 * internal-fn.h (internal_fn_fnspec): New function.
15091 (init_internal_fns): Declare new function.
15092 * internal-fn.c (internal_fn_fnspec_array): New global variable.
15093 (init_internal_fns): New function.
15094 * tree-core.h: Update macro call.
15095 * tree.c (build_common_builtin_nodes): Initialize internal fns.
15097 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
15099 * lto-streamer.h (struct output_block::symbol): Change from
15100 struct symtab_node to plain symtab_node.
15101 (referenced_from_this_partition_p): Change first parameter
15102 from struct symtab_node to plain symtab_node.
15104 2014-08-10 Marek Polacek <polacek@redhat.com>
15107 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15109 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
15111 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15112 DECL correctly; do not give up on types in static storage.
15114 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
15116 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15118 2014-08-09 Roman Gareev <gareevroman@gmail.com>
15120 * graphite-isl-ast-to-gimple.c:
15121 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15123 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15125 2014-08-08 Guozhi Wei <carrot@google.com>
15127 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15129 2014-08-08 Cary Coutant <ccoutant@google.com>
15131 * dwarf2out.c (get_skeleton_type_unit): Remove.
15132 (output_skeleton_debug_sections): Remove skeleton type units.
15133 (output_comdat_type_unit): Likewise.
15134 (dwarf2out_finish): Likewise.
15136 2014-08-07 Yi Yang <ahyangyi@google.com>
15138 * predict.c (expr_expected_value_1): Remove the redundant assignment.
15140 2014-08-08 Richard Biener <rguenther@suse.de>
15142 * lto-streamer.h (struct lto_input_block): Make it a class
15143 with a constructor.
15144 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15145 (struct lto_function_header, struct lto_simple_header,
15146 struct lto_simple_header_with_strings,
15147 struct lto_decl_header, struct lto_function_header): Make
15148 a simple inheritance hieararchy. Remove unused fields.
15149 (struct lto_asm_header): Remove.
15150 * lto-streamer-out.c (produce_asm): Adjust.
15151 (lto_output_toplevel_asms): Likewise.
15152 (produce_asm_for_decls): Likewise.
15153 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15154 * data-streamer-in.c (string_for_index): Likewise.
15155 * ipa-inline-analysis.c (inline_read_section): Likewise.
15156 * ipa-prop.c (ipa_prop_read_section): Likewise.
15157 (read_replacements_section): Likewise.
15158 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15159 * lto-section-in.c (lto_create_simple_input_block): Likewise.
15160 (lto_destroy_simple_input_block): Likewise.
15161 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
15162 (lto_input_toplevel_asms): Likewise.
15164 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
15165 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15166 Anna Tikhonova <anna.tikhonova@intel.com>
15167 Ilya Tocar <ilya.tocar@intel.com>
15168 Andrey Turetskiy <andrey.turetskiy@intel.com>
15169 Ilya Verbin <ilya.verbin@intel.com>
15170 Kirill Yukhin <kirill.yukhin@intel.com>
15171 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15173 * common/config/i386/i386-common.c
15174 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
15175 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
15176 (ix86_handle_option): Handle OPT_mavx512dq.
15177 * config/i386/cpuid.h (bit_AVX512DQ): Define.
15178 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
15179 set -mavx512dq accordingly.
15180 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15181 OPTION_MASK_ISA_AVX512DQ.
15182 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
15183 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
15184 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
15185 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
15186 * config/i386/i386.h (TARGET_AVX512DQ): Define.
15187 (TARGET_AVX512DQ_P(x)): Ditto.
15188 * config/i386/i386.opt: Add mavx512dq.
15190 2014-08-08 Richard Biener <rguenther@suse.de>
15192 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
15193 target_percent, target_percent_s): Export.
15194 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
15195 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
15196 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
15197 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
15198 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
15199 Move to gimple-fold.c.
15200 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
15202 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
15203 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
15204 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
15205 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
15206 (rewrite_call_expr_array): Remove.
15207 (fold_builtin_sprintf_chk): Likewise.
15208 (fold_builtin_snprintf_chk): Likewise.
15209 (fold_builtin_varargs): Remove handling of sprintf_chk,
15210 vsprintf_chk, snprintf_chk and vsnprintf_chk.
15211 (gimple_fold_builtin_sprintf_chk): Remove.
15212 (gimple_fold_builtin_snprintf_chk): Likewise.
15213 (gimple_fold_builtin_varargs): Likewise.
15214 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
15215 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
15216 * gimple.c (gimple_seq_add_seq_without_update): New function.
15217 * gimple.h (gimple_seq_add_seq_without_update): Declare.
15218 * gimple-fold.c: Include output.h.
15219 (gsi_replace_with_seq_vops): New function, split out from ...
15220 (gimplify_and_update_call_from_tree): ... here.
15221 (replace_call_with_value): New function.
15222 (replace_call_with_call_and_fold): Likewise.
15223 (var_decl_component_p): Moved from builtins.c.
15224 (gimple_fold_builtin_memory_op): Moved from builtins.c
15225 fold_builtin_memory_op and rewritten to GIMPLE.
15226 (gimple_fold_builtin_memset): Likewise.
15227 (gimple_fold_builtin_strcpy): Likewise.
15228 (gimple_fold_builtin_strncpy): Likewise.
15229 (gimple_fold_builtin_strcat): Likewise.
15230 (gimple_fold_builtin_fputs): Likewise.
15231 (gimple_fold_builtin_memory_chk): Likewise.
15232 (gimple_fold_builtin_stxcpy_chk): Likewise.
15233 (gimple_fold_builtin_stxncpy_chk): Likewise.
15234 (gimple_fold_builtin_snprintf_chk): Likewise.
15235 (gimple_fold_builtin_sprintf_chk): Likewise.
15236 (gimple_fold_builtin_strlen): New function.
15237 (gimple_fold_builtin_with_strlen): New function split out from
15238 gimple_fold_builtin.
15239 (gimple_fold_builtin): Change signature and handle
15240 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
15241 here. Call gimple_fold_builtin_with_strlen.
15242 (gimple_fold_call): Adjust.
15244 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
15246 * calls.c (precompute_arguments): Check
15247 promoted_for_signed_and_unsigned_p and set the promoted mode.
15248 (promoted_for_signed_and_unsigned_p): New function.
15249 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15250 and set the promoted mode.
15251 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
15252 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
15253 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
15256 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
15258 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
15259 instead of SUBREG_PROMOTED_UNSIGNED_SET.
15260 (expand_call): Likewise.
15261 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
15262 to get promoted mode.
15263 * combine.c (record_promoted_value): Skip > 0 comparison with
15264 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
15265 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
15266 of SUBREG_PROMOTED_UNSIGNED_P.
15267 (convert_modes): Likewise.
15268 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
15269 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
15270 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
15271 SUBREG_PROMOTED_UNSIGNED_SET.
15272 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
15273 instead of SUBREG_PROMOTED_UNSIGNED_SET.
15274 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
15275 SUBREG_PROMOTED_SET.
15276 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
15277 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
15278 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
15279 of SUBREG_PROMOTED_UNSIGNED_P.
15280 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
15281 (SUBREG_PROMOTED_SET): New define.
15282 (SUBREG_PROMOTED_GET): Likewise.
15283 (SUBREG_PROMOTED_SIGN): Likewise.
15284 (SUBREG_PROMOTED_SIGNED_P): Likewise.
15285 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
15286 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
15287 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
15288 instead of SUBREG_PROMOTED_UNSIGNED_GET.
15289 (nonzero_bits1): Skip > 0 comparison with the results as
15290 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
15291 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
15292 of !SUBREG_PROMOTED_UNSIGNED_P.
15293 * simplify-rtx.c (simplify_unary_operation_1): Use new
15294 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
15295 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
15296 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
15297 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
15299 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
15301 * ipa-devirt.c: Include gimple-pretty-print.h
15302 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
15304 (decl_maybe_in_construction_p): Fix conditional on cdtor check
15305 (get_polymorphic_call_info): Fix return value
15306 (type_change_info): New sturcture based on ipa-prop
15308 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
15309 based on ipa-prop variant.
15310 (extr_type_from_vtbl_ptr_store): New function
15311 based on ipa-prop variant.
15312 (record_known_type): New function.
15313 (check_stmt_for_type_change): New function.
15314 (get_dynamic_type): New function.
15315 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
15316 * tree-ssa-pre.c: ipa-utils.h
15317 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
15318 machinery; sanity check with ipa-prop devirtualization.
15319 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
15322 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
15324 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
15325 * alias.c, cfgexpand.c, cgraphbuild.c,
15326 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
15327 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
15328 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
15329 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
15330 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
15331 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15332 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
15333 dse.c, except.c, gengtype.c, gimple-expr.c,
15334 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
15335 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
15336 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
15337 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
15338 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
15339 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
15341 * pointer-set.c: Remove file.
15342 * pointer-set.h: Remove file.
15344 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15346 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
15347 * config/arm/types.md (f_sels, f_seld): Delete.
15349 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15351 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
15352 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
15353 (aarch64_movdi_<mode>high): Likewise.
15354 (aarch64_mov<mode>high_di): Likewise.
15355 (aarch64_movdi_<mode>low): Likewise.
15356 (aarch64_mov<mode>low_di): Likewise.
15357 (aarch64_movtilow_tilow): Likewise.
15358 Add comment explaining usage of fp,simd attributes and of
15359 TARGET_FLOAT and TARGET_SIMD.
15361 2014-08-07 Ian Bolton <ian.bolton@arm.com>
15362 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15364 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
15365 Use MOVN when one of the half-words is 0xffff.
15367 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
15369 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
15371 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15373 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
15374 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
15375 (rfs_str): String corresponding to RFS_* constants.
15376 (rank_for_schedule_stats_t): New typedef.
15377 (rank_for_schedule_stats): New static variable.
15378 (rfs_result): New static function.
15379 (rank_for_schedule): Track statistics for deciding heuristics.
15380 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
15382 (ready_sort): Use them for debug printouts.
15383 (schedule_block): Init statistics state. Print statistics on
15384 rank_for_schedule decisions.
15386 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15388 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
15390 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
15392 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
15395 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
15397 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
15398 function to not conflict.
15399 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
15400 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
15401 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
15402 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
15403 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
15406 2014-08-07 Marek Polacek <polacek@redhat.com>
15408 * fold-const.c (fold_binary_loc): Add folding of
15409 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
15411 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
15413 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
15414 instead of type size.
15415 (ASM_FINISH_DECLARE_OBJECT): Likewise.
15417 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
15419 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
15420 (*thumb1_movqi_insn): Likewise.
15421 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
15423 2014-08-07 Tom de Vries <tom@codesourcery.com>
15425 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
15426 (glibc_2_11_or_earlier): Remove effective-target keywords.
15428 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15430 * config/arm/arm.c (bdesc_2arg): Fix typo.
15431 (arm_atomic_assign_expand_fenv): Remove The default implementation.
15433 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
15435 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
15437 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
15440 * haifa-sched.c (advance_one_cycle): Fix dump.
15441 (schedule_block): Don't advance cycle if we are already at the
15442 beginning of the cycle.
15444 2014-08-06 Martin Jambor <mjambor@suse.cz>
15447 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
15449 2014-08-06 Richard Biener <rguenther@suse.de>
15452 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
15454 (lto_input_tree): Pop SCCs here.
15456 2014-08-06 Richard Biener <rguenther@suse.de>
15458 PR tree-optimization/61320
15459 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
15460 handle misaligned loads.
15462 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
15464 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
15465 (aarch64_expand_vec_perm_const): Check for dup before zip.
15467 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15469 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
15470 CONST_INT_P instead of GET_CODE and compare.
15471 (aarch64_select_cc_mode): Likewise.
15472 (aarch64_print_operand): Likewise.
15473 (aarch64_rtx_costs): Likewise.
15474 (aarch64_simd_valid_immediate): Likewise.
15475 (aarch64_simd_check_vect_par_cnst_half): Likewise.
15476 (aarch64_simd_emit_pair_result_insn): Likewise.
15478 2014-08-05 David Malcolm <dmalcolm@redhat.com>
15480 * gdbhooks.py (find_gcc_source_dir): New helper function.
15481 (class PassNames): New class, locating and parsing passes.def.
15482 (class BreakOnPass): New command "break-on-pass".
15484 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
15486 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
15489 2014-08-05 Richard Biener <rguenther@suse.de>
15491 PR rtl-optimization/61672
15492 * emit-rtl.h (mem_attrs_eq_p): Declare.
15493 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
15494 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
15495 * cfgcleanup.c (merge_memattrs): Likewise.
15496 Include emit-rtl.h.
15498 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15500 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
15501 rather than singleton vectors.
15502 (vqdmlsls_lane_s32): Likewise.
15504 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15506 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
15507 Use VSDQ_HSI mode iterator.
15508 (aarch64_sqrdmulh_laneq<mode>): Likewise.
15509 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
15510 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
15511 Use BUILTIN_VDQHS macro.
15512 (sqrdmulh_laneq): Likewise.
15513 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
15514 (vqdmlals_laneq_s32): Likewise.
15515 (vqdmlslh_laneq_s16): Likewise.
15516 (vqdmlsls_laneq_s32): Likewise.
15517 (vqdmulhh_laneq_s16): Likewise.
15518 (vqdmulhs_laneq_s32): Likewise.
15519 (vqrdmulhh_laneq_s16): Likewise.
15520 (vqrdmulhs_laneq_s32): Likewise.
15522 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15524 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
15525 (vmuld_laneq_f64): Likewise.
15526 (vmuls_laneq_f32): Likewise.
15527 (vmul_n_f64): Likewise.
15528 (vmuld_lane_f64): Reimplement in C.
15529 (vmuls_lane_f32): Likewise.
15531 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15533 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
15535 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
15537 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15539 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
15540 (rbitsi2): Likewise.
15541 (*arm_rev): Set predicable and predicable_short_it attributes.
15543 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15545 * convert.c (convert_to_integer): Guard transformation to lrint by
15548 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15550 * config/aarch64/aarch64-builtins.c
15551 (aarch64_simd_builtin_type_mode): Delete.
15552 (v8qi_UP): Remap to V8QImode.
15553 (v4hi_UP): Remap to V4HImode.
15554 (v2si_UP): Remap to V2SImode.
15555 (v2sf_UP): Remap to V2SFmode.
15556 (v1df_UP): Remap to V1DFmode.
15557 (di_UP): Remap to DImode.
15558 (df_UP): Remap to DFmode.
15559 (v16qi_UP):V16QImode.
15560 (v8hi_UP): Remap to V8HImode.
15561 (v4si_UP): Remap to V4SImode.
15562 (v4sf_UP): Remap to V4SFmode.
15563 (v2di_UP): Remap to V2DImode.
15564 (v2df_UP): Remap to V2DFmode.
15565 (ti_UP): Remap to TImode.
15566 (ei_UP): Remap to EImode.
15567 (oi_UP): Remap to OImode.
15568 (ci_UP): Map to CImode.
15569 (xi_UP): Remap to XImode.
15570 (si_UP): Remap to SImode.
15571 (sf_UP): Remap to SFmode.
15572 (hi_UP): Remap to HImode.
15573 (qi_UP): Remap to QImode.
15574 (aarch64_simd_builtin_datum): Make mode a machine_mode.
15575 (VAR1): Build builtin name.
15576 (aarch64_init_simd_builtins): Remove dead code.
15578 2014-08-05 Roman Gareev <gareevroman@gmail.com>
15580 * graphite-isl-ast-to-gimple.c:
15581 (set_options): New function.
15582 (scop_to_isl_ast): Add calling of set_options.
15584 2014-08-05 Jakub Jelinek <jakub@redhat.com>
15586 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
15587 (analyze_iv_to_split_insn): Don't initialize them.
15588 (get_ivts_expr): Removed.
15589 (allocate_basic_variable, insert_base_initialization): Use
15590 SET_SRC instead of *get_ivts_expr.
15591 (split_iv): Use &SET_SRC instead of get_ivts_expr.
15593 2014-08-05 Roman Gareev <gareevroman@gmail.com>
15595 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
15596 (translate_isl_ast_for_loop): Add checking of the
15597 flag_loop_parallelize_all.
15598 (ast_build_before_for): New function.
15599 (scop_to_isl_ast): Add checking of the
15600 flag_loop_parallelize_all.
15601 * graphite-dependences.c: Move the defenition of the
15602 scop_get_dependences from graphite-optimize-isl.c to this file.
15603 (apply_schedule_on_deps): Add checking of the ux's emptiness.
15604 (carries_deps): Add checking of the x's value.
15605 * graphite-optimize-isl.c: Move the defenition of the
15606 scop_get_dependences to graphite-dependences.c.
15607 * graphite-poly.h: Add declarations of scop_get_dependences
15610 2014-08-04 Rohit <rohitarulraj@freescale.com>
15613 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
15615 (alt_reg_names): Likewise.
15616 (rs6000_dwarf_register_span): For SPE high registers, replace
15617 dwarf register numbers with GCC hard register numbers.
15618 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
15619 (rs6000_dbx_register_number): For SPE high registers, return dwarf
15620 register number for the corresponding GCC hard register number.
15621 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
15622 newly added GCC hard register numbers for SPE high registers.
15623 (DWARF_FRAME_REGISTERS): Likewise.
15624 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
15625 (DWARF_FRAME_REGNUM): Likewise.
15626 (FIXED_REGISTERS): Likewise.
15627 (CALL_USED_REGISTERS): Likewise.
15628 (CALL_REALLY_USED_REGISTERS): Likewise.
15629 (REG_ALLOC_ORDER): Likewise.
15630 (enum reg_class): Likewise.
15631 (REG_CLASS_NAMES): Likewise.
15632 (REG_CLASS_CONTENTS): Likewise.
15633 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
15635 2014-08-04 Richard Biener <rguenther@suse.de>
15637 * gimple-fold.h (gimple_fold_builtin): Remove.
15638 * gimple-fold.c (gimple_fold_builtin): Make static.
15639 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
15640 fold_stmt, not gimple_fold_builtin.
15642 2014-08-04 Martin Liska <mliska@suse.cz>
15644 * cgraph.h (csi_end_p): Removed.
15645 (csi_next): Likewise.
15646 (csi_node): Likewise.
15647 (csi_start): Likewise.
15648 (cgraph_node_in_set_p): Likewise.
15649 (cgraph_node_set_size): Likewise.
15650 (vsi_end_p): Likewise.
15651 (vsi_next): Likewise.
15652 (vsi_node): Likewise.
15653 (vsi_start): Likewise.
15654 (varpool_node_set_size): Likewise.
15655 (cgraph_node_set_nonempty_p): Likewise.
15656 (varpool_node_set_nonempty_p): Likewise.
15657 * cgraphunit.c (cgraph_process_new_functions): vec replaces
15659 * ipa-inline-transform.c: Likewise.
15660 * ipa-utils.c (cgraph_node_set_new): Removed.
15661 (cgraph_node_set_add): Likewise.
15662 (cgraph_node_set_remove): Likewise.
15663 (cgraph_node_set_find): Likewise.
15664 (dump_cgraph_node_set): Likewise.
15665 (debug_cgraph_node_set): Likewise.
15666 (free_cgraph_node_set): Likewise.
15667 (varpool_node_set_new): Likewise.
15668 (varpool_node_set_add): Likewise.
15669 (varpool_node_set_remove): Likewise.
15670 (varpool_node_set_find): Likewise.
15671 (dump_varpool_node_set): Likewise.
15672 (free_varpool_node_set): Likewise.
15673 (debug_varpool_node_set): Likewise.
15674 * tree-emutls.c (struct tls_var_data):
15675 (emutls_index): Removed.
15676 (emutls_decl): Likewise.
15677 (gen_emutls_addr): Function implementation uses newly added
15678 hash_map<varpool_node *, tls_var_data>.
15679 (clear_access_vars): Likewise.
15680 (create_emultls_var): Likewise.
15681 (ipa_lower_emutls): Likewise.
15682 (reset_access): New function.
15684 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15686 * config/i386/i386.c (ix86_option_override_internal): Add
15687 PTA_RDRND and PTA_MOVBE for bdver4.
15689 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15690 James Greenhalgh <james.greenhalgh@arm.com>
15692 * doc/md.texi (clrsb): Document.
15693 (clz): Change reference to x into operand 1.
15695 (popcount): Likewise.
15697 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15700 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
15701 move to subtarget in serial version if result is ignored.
15703 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15704 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15706 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
15707 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
15708 (sched_analyze_insn): Update use of try_group_insn to
15709 sched_macro_fuse_insns.
15710 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
15711 arguments that are not conditional jumps.
15713 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15715 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
15716 family information. Handle BTVER2 cpu with cpuid family value.
15718 2014-08-04 Tom de Vries <tom@codesourcery.com>
15720 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
15721 (glibc_2_11_or_earlier): Document effective-target keywords.
15723 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
15725 * ipa-devirt.c (odr_type_warn_count): Add type.
15726 (possible_polymorphic_call_targets): Set it.
15727 (ipa_devirt): Use it.
15729 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
15731 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
15733 * ipa-devirt.c: Include hash-map.h
15734 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
15735 (clear_speculation): Break out of ...
15736 (get_class_context): ... here; speed up handling obviously useless
15738 (odr_type_warn_count, decl_warn_count): New structures.
15739 (final_warning_record): New structure.
15740 (final_warning_records): New static variable.
15741 (possible_polymorphic_call_targets): Cleanup handling of
15742 speculative info; do not build speculation when user do not care;
15743 record info about warnings when asked for.
15744 (add_decl_warning): New function.
15745 (type_warning_cmp): New function.
15746 (decl_warning_cmp): New function.
15747 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
15748 (gate): Enable pass when warnings are requested.
15749 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
15752 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
15754 * hash-map.h (default_hashmap_traits::mark_key_deleted):
15756 (hash_map::remove): New method.
15757 (hash_map::traverse): New method.
15758 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
15759 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
15760 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
15761 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
15762 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
15763 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
15766 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
15768 * hash-set.h: new File.
15769 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
15770 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
15771 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
15772 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
15773 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
15774 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
15775 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
15776 varpool.c: Use hash_set instead of pointer_set.
15778 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
15780 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
15782 2014-08-01 Jiong Wang <jiong.wang@arm.com>
15784 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
15785 for frame access when strict_p is false.
15787 2014-08-01 Renlin Li <renlin.li@arm.com>
15788 2014-08-01 Jiong Wang <jiong.wang@arm.com>
15790 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
15791 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
15792 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
15794 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
15796 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
15797 aarch64_mem_pair_offset.
15799 2014-08-01 Jiong Wang <jiong.wang@arm.com>
15801 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
15803 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
15804 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
15806 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
15808 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
15810 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
15812 PR regression/61510
15813 * cgraphunit.c (analyze_functions): Use get_create rather than get
15814 for decls which are clones of abstract functions.
15816 2014-08-01 Martin Liska <mliska@suse.cz>
15818 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
15819 * ipa-prop.h (count_formal_params): Global function created from static.
15820 * ipa-prop.c (count_formal_params): Likewise.
15821 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
15822 profiles for semantically equivalent functions.
15823 * passes.c (do_per_function): If we load body of a function
15824 during WPA, this condition should behave same.
15825 * varpool.c (ctor_for_folding): More tolerant assert for variable
15826 aliases created during WPA.
15828 2014-08-01 Martin Liska <mliska@suse.cz>
15830 * doc/invoke.texi (Options That Control Optimization): Documentation
15831 for -foptimize-strlen introduced. Optimization levels default options
15834 2014-08-01 Jakub Jelinek <jakub@redhat.com>
15836 * opts.c (common_handle_option): Handle -fsanitize=alignment.
15837 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
15838 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
15840 * stor-layout.h (min_align_of_type): New prototype.
15841 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
15842 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
15844 * ubsan.c: Include builtins.h.
15845 (ubsan_expand_bounds_ifn): Change return type to bool,
15846 always return true.
15847 (ubsan_expand_null_ifn): Change return type to bool, change
15848 argument to gimple_stmt_iterator *. Handle both null and alignment
15849 sanitization, take type from ckind argument's type rather than
15851 (instrument_member_call): Removed.
15852 (instrument_mem_ref): Remove t argument, add mem and base arguments.
15853 Handle both null and alignment sanitization, don't say whole
15854 struct access is member access. Build 3 argument IFN_UBSAN_NULL
15855 call instead of 2 argument.
15856 (instrument_null): Adjust instrument_mem_ref caller. Don't
15857 instrument calls here.
15858 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
15859 like SANITIZE_NULL.
15860 * stor-layout.c (min_align_of_type): New function.
15861 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
15862 Or it into SANITIZE_UNDEFINED.
15863 * doc/invoke.texi (-fsanitize=alignment): Document.
15865 2014-07-31 Andi Kleen <ak@linux.intel.com>
15867 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
15869 2014-07-31 Andi Kleen <ak@linux.intel.com>
15871 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
15873 (vn_reference_compute_hash): Dito.
15874 (vn_nary_op_compute_hash): Dito.
15875 (vn_phi_compute_hash): Dito.
15876 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
15878 2014-07-31 Andi Kleen <ak@linux.intel.com>
15880 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
15881 Rename to inchash:add_expr_commutative. Convert to inchash.
15882 (iterative_hash_hashable_expr): Rename to
15883 inchash:add_hashable_expr. Convert to inchash.
15884 (avail_expr_hash): Dito.
15886 2014-07-31 Andi Kleen <ak@linux.intel.com>
15888 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
15889 Convert to inchash.
15891 2014-07-31 Andi Kleen <ak@linux.intel.com>
15893 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
15895 2014-07-31 Andi Kleen <ak@linux.intel.com>
15897 * Makefile.in (OBJS): Add rtlhash.o
15898 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
15899 (loc_checksum): Dito.
15900 (loc_checksum_ordered): Dito.
15901 (hash_loc_operands): Dito.
15903 (hash_loc_list): Dito.
15904 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
15905 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
15906 * rtlhash.c: New file.
15907 * rtlhash.h: New file.
15909 2014-07-31 Andi Kleen <ak@linux.intel.com>
15911 * inchash.h (inchash): Change inchash class to namespace.
15912 (class hash): ... Rename from inchash.
15913 (add_object): Move from macro to class template.
15914 * lto-streamer-out.c (hash_tree): Change inchash
15916 * tree.c (build_type_attribute_qual_variant): Dito.
15917 (type_hash_list): Dito.
15918 (attribute_hash_list): Dito.
15919 (iterative_hstate_expr): Rename to inchash::add_expr
15920 (build_range_type_1): Change inchash to inchash::hash
15921 and use hash::add_expr.
15922 (build_array_type_1): Dito.
15923 (build_function_type): Dito
15924 (build_method_type_directly): Dito.
15925 (build_offset_type): Dito.
15926 (build_complex_type): Dito.
15927 (make_vector_type): Dito.
15928 * tree.h (iterative_hash_expr): Dito.
15930 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
15932 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
15934 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
15936 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
15937 correct alphabetical position.
15938 (vpaddd_f64): Rewrite using builtins.
15939 (vpaddd_s64): Move to correct alphabetical position.
15942 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
15945 * config/sh/sh.c (sh_legitimate_address_p,
15946 sh_legitimize_reload_address): Handle reg+reg address modes when
15947 ALLOW_INDEXED_ADDRESS is false.
15948 * config/sh/predicates.md (general_movsrc_operand,
15949 general_movdst_operand): Likewise.
15951 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
15953 * config/aarch64/aarch64-builtins.c
15954 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
15957 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
15959 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
15960 the generated mask based on BYTES_BIG_ENDIAN.
15961 (aarch64_simd_check_vect_par_cnst_half): New.
15962 * config/aarch64/aarch64-protos.h
15963 (aarch64_simd_check_vect_par_cnst_half): New.
15964 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
15965 the check out to aarch64_simd_check_vect_par_cnst_half.
15966 (vect_par_cnst_lo_half): Likewise.
15967 * config/aarch64/aarch64-simd.md
15968 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
15969 (move_hi_quad_<mode>): Always generate a low mask.
15971 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15973 * doc/invoke.texi (AVR Options): Add documentation about
15974 __AVR_DEVICE_NAME__ built-in macro.
15976 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
15979 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
15980 constraints are satisfied.
15981 (<shift>di3_neon): Likewise.
15983 2014-07-31 Richard Biener <rguenther@suse.de>
15985 PR tree-optimization/61964
15986 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
15987 by structural equality.
15989 2014-07-31 Yury Gribov <y.gribov@samsung.com>
15991 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
15992 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
15993 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
15995 * gcc.c (sanitize_spec_function): Support new option.
15996 (SANITIZER_SPEC): Remove now redundant check.
15997 * opts.c (common_handle_option): Support new option.
15998 (finish_options): Check for incompatibilities.
15999 * toplev.c (process_options): Split userspace-specific checks.
16001 2014-07-31 Richard Biener <rguenther@suse.de>
16003 * lto-streamer.h (struct output_block): Remove global.
16004 (struct data_in): Remove labels, num_named_labels and
16005 num_unnamed_labels.
16006 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16007 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16009 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
16012 * common.opt (-Wreturn-local-addr): Moved from c.opt.
16013 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16014 (isolate_path): New argument to avoid inserting a trap.
16015 (find_implicit_erroneous_behaviour): Handle returning the address
16016 of a local variable.
16017 (find_explicit_erroneous_behaviour): Likewise.
16019 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
16022 * toplev.c (init_random_seed): Move piece of code never called to
16024 (set_random_seed): see above.
16026 2014-07-31 Tom de Vries <tom@codesourcery.com>
16028 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16030 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
16032 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16033 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16035 2014-07-31 Richard Biener <rguenther@suse.de>
16037 * data-streamer.h (streamer_write_data_stream): Declare here,
16039 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
16040 * lto-cgraph.c (lto_output_node): Adjust.
16041 (lto_output_varpool_node): Likewise.
16042 * data-streamer-out.c (streamer_string_index): Likewise.
16043 (streamer_write_data_stream, lto_append_block): Move from ...
16044 * lto-section-out.c (lto_output_data_stream,
16045 lto_append_block): ... here.
16047 2014-07-30 Mike Stump <mikestump@comcast.net>
16049 * configure.ac: Also check for popen.
16050 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16051 * configure: Regenerate.
16052 * config.in: Regenerate.
16054 2014-07-30 Martin Jambor <mjambor@suse.cz>
16056 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16057 parameter to gimple.
16059 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16061 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16062 address as second parameter to __tpf_eh_return routine.
16064 2014-07-30 Jiong Wang <jiong.wang@arm.com>
16066 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16069 2014-07-30 Tom Tromey <tromey@redhat.com>
16072 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16073 * doc/extend.texi (Type Attributes): Document designated_init
16076 2014-07-30 Roman Gareev <gareevroman@gmail.com>
16078 * graphite-isl-ast-to-gimple.c:
16079 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16080 (gcc_expression_from_isl_expression): Pass type to
16081 gcc_expression_from_isl_ast_expr_id.
16083 2014-07-30 Richard Biener <rguenther@suse.de>
16085 * lto-streamer.h (lto_write_data): New function.
16086 * langhooks.c (lhd_append_data): Do not free block.
16087 * lto-section-out.c (lto_write_data): New function writing
16088 raw data to the current section.
16089 (lto_write_stream): Adjust for langhook semantic change.
16090 (lto_destroy_simple_output_block): Write header directly.
16091 * lto-opts.c (lto_write_options): Write options directly.
16092 * lto-streamer-out.c (produce_asm): Write heaeder directly.
16093 (lto_output_toplevel_asms): Likewise.
16094 (copy_function_or_variable): Copy data directly.
16095 (write_global_references): Output index table directly.
16096 (lto_output_decl_state_refs): Likewise.
16097 (write_symbol): Write data directly.
16098 (produce_symtab): Adjust.
16099 (produce_asm_for_decls): Output header and refs directly.
16101 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16103 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16104 to speculative_targets
16105 (get_class_context): Fix handling of contextes without outer type;
16106 avoid matching non-polymorphic types in LTO.
16107 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16108 parameter to speculative_targetsp; handle speculation.
16109 (dump_possible_polymorphic_call_targets): Update dumping.
16111 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16113 * common.opt (Wodr): Enable by default.
16115 2014-07-29 Olivier Hainque <hainque@adacore.com>
16117 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16119 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
16122 * gengtype.c (strtoken): New function.
16123 (create_user_defined_type): Replace strtok with strtoken.
16125 2014-07-29 Nathan Sidwell <nathan@acm.org>
16127 * gcov-io.c (gcov_var): Make hidden.
16128 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16129 (gcov_do_dump): Declare.
16130 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16132 2014-07-29 Martin Jambor <mjambor@suse.cz>
16134 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16135 parameter to gimple.
16136 (sra_modify_assign): Likewise.
16138 2014-07-29 Richard Biener <rguenther@suse.de>
16140 PR middle-end/52478
16141 * expr.c (expand_expr_real_2): Revert last change.
16143 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16145 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16146 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16147 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16149 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16150 (contains_type_p): Forward declare.
16151 (polymorphic_call_target_hasher::hash): Hash speculative info.
16152 (polymorphic_call_target_hasher::equal): Compare speculative info.
16153 (get_class_context): Handle speuclation.
16154 (contains_type_p): Update.
16155 (get_polymorphic_call_info_for_decl): Update.
16156 (walk_ssa_copies): Break out from ...
16157 (get_polymorphic_call_info): ... here; set speculative context
16159 * ipa-prop.c (ipa_write_indirect_edge_info,
16160 ipa_read_indirect_edge_info): Stream speculative context.
16161 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
16162 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
16163 SPECULATIVE_MAYBE_DERIVED_TYPE).
16164 (possible_polymorphic_call_targets overriders): Update.
16165 (dump_possible_polymorphic_call_targets overriders): Update.
16166 (dump_possible_polymorphic_call_target_p overriders): Update.
16168 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16170 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
16171 ipa-devirt path; fix thinko there.
16173 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
16175 * config/i386/i386.c (ix86_return_in_memory): Replace one
16176 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
16178 2014-07-28 Marek Polacek <polacek@redhat.com>
16180 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
16182 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
16184 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
16185 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
16186 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
16187 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16188 (USE_LD_AS_NEEDED): Likewise.
16189 (ASM_APP_ON): Likewise.
16190 (ASM_APP_OFF): Likewise.
16191 (TARGET_POSIX_IO): Likewise.
16192 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
16193 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16194 (USE_LD_AS_NEEDED): Likewise.
16195 (ASM_APP_ON): Likewise.
16196 (ASM_APP_OFF): Likewise.
16197 (TARGET_POSIX_IO): Likewise.
16199 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
16201 PR middle-end/61734
16202 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
16203 operators other than the equality operators.
16205 2014-07-28 Richard Biener <rguenther@suse.de>
16207 PR middle-end/52478
16208 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
16209 sure to register SImode ones, not only >= word_mode ones.
16210 * expr.c (expand_expr_real_2): When expanding -ftrapv
16211 binops do not use OPTAB_LIB_WIDEN.
16213 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
16215 PR middle-end/61919
16216 * tree-outof-ssa.c (insert_partition_copy_on_edge)
16217 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
16218 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
16219 inserting them in the insn stream.
16221 2014-07-28 Marek Polacek <polacek@redhat.com>
16223 PR middle-end/61913
16224 * common.opt (Wodr): Add Var.
16226 2014-07-28 Richard Biener <rguenther@suse.de>
16228 PR tree-optimization/61921
16229 * tree-ssa-structalias.c (create_variable_info_for_1): Check
16230 if there is a varpool node before dereferencing it.
16232 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16234 * graphite-sese-to-poly.c:
16235 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
16236 id of the pbb), which contains pointer to the pbb1.
16238 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
16240 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16242 * graphite-isl-ast-to-gimple.c:
16243 (graphite_create_new_guard): New function.
16244 (translate_isl_ast_node_if): New function.
16245 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
16247 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
16249 2014-07-27 Anthony Green <green@moxielogic.com>
16251 * config.gcc: Add moxie-*-moxiebox* configuration.
16252 * config/moxie/moxiebox.h: New file.
16254 2014-07-26 Andrew Pinski <apinski@cavium.com>
16256 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
16257 from the read only register.
16259 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
16261 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
16262 as the allocation class if it isn't likely to be spilled.
16264 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
16266 * rtl.h (tls_referenced_p): Declare.
16267 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
16268 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
16269 (mips_cannot_force_const_mem): Use tls_referenced_p.
16270 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
16271 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
16272 instead of pa_tls_referenced_p.
16273 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
16274 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
16275 (pa_legitimate_constant_p): Likewise.
16276 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
16277 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
16278 (rs6000_cannot_force_const_mem, rs6000_emit_move)
16279 (rs6000_address_for_altivec): Use tls_referenced_p instead of
16280 rs6000_tls_referenced_p.
16281 (rs6000_tls_symbol_ref_1): Delete.
16283 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
16286 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
16287 Optimize inverse of a VEC_CONCAT.
16289 2014-07-25 Xinliang David Li <davidxl@google.com>
16291 * params.def: New parameter.
16292 * coverage.c (get_coverage_counts): Check new flag.
16293 (coverage_compute_profile_id): Check new flag.
16294 (coverage_begin_function): Check new flag.
16295 (coverage_end_function): Check new flag.
16296 * value-prof.c (coverage_node_map_initialized_p): New function.
16297 (init_node_map): Populate map with all functions.
16298 * doc/invoke.texi: Document new parameter.
16300 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
16301 Richard Biener <rguenther@suse.de>
16303 * lto-streamer-out.c (struct sccs): Turn to ...
16304 (class DFS): ... this one; refactor the DFS walk so it can
16305 be re-done on per-SCC basis.
16306 (DFS::DFS): New constructor.
16307 (DFS::~DFS): New destructor.
16308 (hash_tree): Add new MAP argument holding in-SCC hash values;
16309 remove POINTER_TYPE hashing hack.
16310 (scc_entry_compare): Rename to ...
16311 (DFS::scc_entry_compare): ... this one.
16312 (hash_scc): Rename to ...
16313 (DFS::hash_scc): ... this one; pass output_block instead
16314 of streamer_cache; work harder to get unique and stable SCC
16316 (DFS_write_tree): Rename to ...
16317 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
16318 (lto_output_tree): Update.
16320 2014-07-25 Andi Kleen <ak@linux.intel.com>
16322 * lto-streamer-out.c (hash_tree): Convert to inchash.
16324 2014-07-25 Andi Kleen <ak@linux.intel.com>
16326 * tree.c (build_type_attribute_qual_variant): Use inchash.
16327 (type_hash_list): Dito.
16328 (attribute_hash_list): Dito
16329 (iterative_hstate_expr): Dito.
16330 (iterative_hash_expr): Dito.
16331 (build_range_type_1): Dito.
16332 (build_array_type_1): Dito.
16333 (build_function_type): Dito.
16334 (build_method_type_directly): Dito.
16335 (build_offset_type): Dito.
16336 (build_complex_type): Dito.
16337 (make_vector_type): Dito.
16338 * tree.h (iterative_hash_expr): Add compat wrapper.
16339 (iterative_hstate_expr): Add.
16341 2014-07-25 Andi Kleen <ak@linux.intel.com>
16343 * Makefile.in (OBJS): Add inchash.o.
16344 (PLUGIN_HEADERS): Add inchash.h.
16345 * ipa-devirt.c: Include inchash.h.
16346 * lto-streamer-out.c: Dito.
16347 * tree-ssa-dom.c: Dito.
16348 * tree-ssa-pre.c: Dito.
16349 * tree-ssa-sccvn.c: Dito.
16350 * tree-ssa-tail-merge.c: Dito.
16352 * tree.c (iterative_hash_hashval_t): Move to ...
16353 (iterative_hash_host_wide_int): Move to ...
16354 * inchash.c: Here. New file.
16355 * tree.h (iterative_hash_hashval_t): Move to ...
16356 (iterative_hash_host_wide_int): Move to ...
16357 * inchash.h: Here. New file.
16359 2014-07-25 Richard Biener <rguenther@suse.de>
16361 PR middle-end/61762
16362 PR middle-end/61894
16363 * fold-const.c (native_encode_int): Add and handle offset
16364 parameter to do partial encodings of expr.
16365 (native_encode_fixed): Likewise.
16366 (native_encode_real): Likewise.
16367 (native_encode_complex): Likewise.
16368 (native_encode_vector): Likewise.
16369 (native_encode_string): Likewise.
16370 (native_encode_expr): Likewise.
16371 * fold-const.c (native_encode_expr): Add offset parameter
16373 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
16374 (fold_ctor_reference): Handle all reads from tcc_constant
16377 2014-07-25 Richard Biener <rguenther@suse.de>
16379 * tree-inline.c (estimate_move_cost): Mark speed_p argument
16380 as possibly unused.
16382 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16384 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
16386 2014-07-24 Kyle McMartin <kyle@redhat.com>
16388 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
16390 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16392 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
16394 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
16396 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
16397 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
16398 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
16400 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16402 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
16403 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
16404 aggregate types. Instead, *all* aggregate types, except for single-
16405 element or homogeneous float/vector aggregates, are quadword-aligned
16406 if required by their type alignment. Issue -Wpsabi note when a type
16407 is now treated differently than before.
16409 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16411 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
16412 does not fit fully into floating-point registers, and there is still
16413 space in the register parameter area, use GPRs to pass those parts
16414 of the argument. Issue -Wpsabi note if any parameter is now treated
16415 differently than before.
16416 (rs6000_arg_partial_bytes): Update.
16418 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
16420 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
16422 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
16424 * rtl.h (target_rtl): Remove lang_dependent_initialized.
16425 * toplev.c (initialize_rtl): Don't use it. Move previously
16426 "language-dependent" calls to...
16427 (backend_init): ...here.
16428 (lang_dependent_init_target): Don't set lang_dependent_initialized.
16429 Assert that RTL initialization hasn't happend yet.
16431 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
16433 PR rtl-optimization/61629
16434 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
16435 they have already been initialized.
16437 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
16439 PR middle-end/61268
16440 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
16441 DECL_INCOMING_RTL and entry_parm.
16442 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
16443 * calls.c (load_register_parameters): Likewise argument values.
16444 (emit_library_call_value_1, store_one_arg): Likewise argument
16446 * config/i386/i386.c (assign_386_stack_local): Likewise the local
16448 * explow.c (validize_mem): Modify the argument in-place.
16450 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16452 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
16453 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
16455 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16457 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
16458 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
16460 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16462 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
16463 (aarch64_save_callee_saves): New parameter "skip_wb".
16464 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
16466 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16468 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
16470 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
16472 2014-07-24 Roman Gareev <gareevroman@gmail.com>
16474 * graphite-isl-ast-to-gimple.c:
16475 (graphite_create_new_loop): Add calling of isl_id_free to properly
16476 decrement reference counts.
16478 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
16480 2014-07-24 Martin Liska <mliska@suse.cz>
16481 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
16483 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
16484 (rs6000_code_end): Likewise.
16486 2014-07-24 Martin Liska <mliska@suse.cz>
16488 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
16489 symtab_node funtion used.
16490 (rs6000_xcoff_declare_object_name): Likewise.
16492 2014-07-24 Martin Liska <mliska@suse.cz>
16494 * cgraphunit.c (compile): Correct function used.
16496 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
16498 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
16501 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
16504 * varasm.c (bss_initializer_p): Handle offlined ctors.
16505 (align_variable, get_variable_align): Likewise.
16506 (make_decl_one_only): Likewise.
16507 (default_binds_local_p_1): Likewise.
16508 (decl_binds_to_current_def_p): Likewise.
16509 (get_variable_section): Get constructor if it is offlined.
16510 (assemble_variable_contents): Sanity check that the caller
16511 streamed in the ctor in LTO.
16513 2014-07-24 Roman Gareev <gareevroman@gmail.com>
16515 * graphite-isl-ast-to-gimple.c:
16516 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
16517 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
16518 isl_ast_op_pdiv_r to the different case.
16520 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
16522 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16524 PR middle-end/61876
16525 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
16526 when flag_errno_math is on.
16528 2014-07-24 Martin Liska <mliska@suse.cz>
16530 * cgraph.h (varpool_node):
16531 (availability get_availability (void)):
16532 created from cgraph_variable_initializer_availability
16533 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
16534 created from: cgraph_variable_initializer_availability
16535 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
16536 (void finalize_named_section_flags (void)):
16537 created from varpool_finalize_named_section_flags
16538 (bool assemble_decl (void)): created from varpool_assemble_decl
16539 (void analyze (void)): created from varpool_analyze_node
16540 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
16541 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
16542 (void remove_initializer (void)): created from varpool_remove_initializer
16543 (tree get_constructor (void)): created from varpool_get_constructor
16544 (bool externally_visible_p (void)): created from varpool_externally_visible_p
16545 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
16546 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
16547 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
16548 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
16549 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
16550 (static bool output_variables (void)): created from varpool_output_variables
16551 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
16552 created from varpool_extra_name_alias
16553 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
16554 (static void dump_varpool (FILE *f)): created from dump_varpool
16555 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
16556 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
16557 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
16558 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
16559 (void assemble_aliases (void)): created from assemble_aliases
16561 2014-07-24 Martin Liska <mliska@suse.cz>
16563 * cgraph.h (symtab_node):
16564 (void register_symbol (void)): created from symtab_register_node
16565 (void remove (void)): created from symtab_remove_node
16566 (void dump (FILE *f)): created from dump_symtab_node
16567 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
16568 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
16569 (struct ipa_ref *add_reference (symtab_node *referred_node,
16570 enum ipa_ref_use use_type)): created from add_reference
16571 (struct ipa_ref *add_reference (symtab_node *referred_node,
16572 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
16573 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
16574 gimple stmt)): created from maybe_add_reference
16575 (bool semantically_equivalent_p (symtab_node *target)): created from
16576 symtab_semantically_equivalent_p
16577 (void remove_from_same_comdat_group (void)): created from
16578 remove_from_same_comdat_group
16579 (void add_to_same_comdat_group (symtab_node *old_node)): created from
16580 symtab_add_to_same_comdat_group
16581 (void dissolve_same_comdat_group_list (void)): created from
16582 symtab_dissolve_same_comdat_group_list
16583 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
16584 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
16585 created from symtab_alias_ultimate_target
16586 (inline symtab_node *next_defined_symbol (void)): created from
16587 symtab_next_defined_symbol
16588 (bool resolve_alias (symtab_node *target)): created from
16589 symtab_resolve_alias
16590 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
16591 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
16592 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
16593 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
16594 (void set_section (const char *section)): created from set_section_1
16595 (enum availability get_availability (void)): created from symtab_node_availability
16596 (void make_decl_local (void)): created from symtab_make_decl_local
16597 (bool real_symbol_p (void)): created from symtab_read_node
16598 (can_be_discarded_p (void)): created from symtab_can_be_discarded
16599 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
16600 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
16601 symtab_in_same_comdat_p;
16602 (bool address_taken_from_non_vtable_p (void)): created from
16603 address_taken_from_non_vtable_p
16604 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
16605 (static void dump_table (FILE *)): created from dump_symtab
16606 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
16607 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
16608 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
16609 symtab_used_from_object_file_p
16610 (void dump_base (FILE *)): created from dump_symtab_base
16611 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
16612 (void unregister (void)): created from symtab_unregister_node
16613 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
16614 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
16615 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
16616 symtab_nonoverwritable_alias_1
16617 * cgraph.h (cgraph_node):
16618 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
16619 created from cgraph_remove_node_and_inline_clones
16620 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
16621 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
16622 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
16623 (cgraph_node *function_symbol (enum availability *avail = NULL)):
16624 created from cgraph_function_node
16625 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
16626 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
16627 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
16628 created from cgraph_create_clone
16629 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
16630 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
16631 created from cgraph_create_virtual_clone
16632 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
16633 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
16634 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
16635 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
16636 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
16637 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
16638 created from cgraph_function_version_info
16639 (struct cgraph_function_version_info *insert_new_function_version (void)):
16640 created from insert_new_cgraph_node_version
16641 (struct cgraph_function_version_info *function_version (void)): created from
16642 get_cgraph_node_version
16643 (void analyze (void)): created from analyze_function
16644 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
16645 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
16646 tree real_alias) cgraph_add_thunk
16647 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
16648 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
16649 created from cgraph_function_or_thunk_node
16650 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
16651 created from expand_thunk
16652 (void reset (void)): created from cgraph_reset_node
16653 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
16654 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
16655 (void remove (void)): created from cgraph_remove_node
16656 (void dump (FILE *f)): created from dump_cgraph_node
16657 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
16658 (bool get_body (void)): created from cgraph_get_body
16659 (void release_body (void)): created from cgraph_release_function_body
16660 (void unnest (void)): created from cgraph_unnest_node
16661 (void make_local (void)): created from cgraph_make_node_local
16662 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
16663 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
16664 gcov_type count, int freq)): created from cgraph_create_edge
16665 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
16666 gcov_type count, int freq)): created from cgraph_create_indirect_edge
16667 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
16668 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
16669 created from cgraph_create_edge_including_clones
16670 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
16671 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
16672 (void remove_callers (void)): created from cgraph_node_remove_callers
16673 (void remove_callees (void)): created from cgraph_node_remove_callees
16674 (enum availability get_availability (void)): created from cgraph_function_body_availability
16675 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
16676 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
16677 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
16678 (void call_duplication_hooks (cgraph_node *node2)): created from
16679 cgraph_call_node_duplication_hooks
16680 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
16681 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
16682 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
16683 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
16684 (void call_function_insertion_hooks (void)):
16685 created from cgraph_call_function_insertion_hooks
16686 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
16687 (bool local_p (void)): created from cgraph_local_node
16688 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
16689 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
16690 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
16691 (inline bool only_called_directly_or_aliased_p (void)):
16692 created from cgraph_only_called_directly_or_aliased_p
16693 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
16694 created from cgraph_will_be_removed_from_program_if_no_direct_calls
16695 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
16696 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
16697 (bool can_remove_if_no_direct_calls_p (void)):
16698 created from cgraph_can_remove_if_no_direct_calls_p
16699 (inline bool has_gimple_body_p (void)):
16700 created from cgraph_function_with_gimple_body_p
16701 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
16702 (static void dump_cgraph (FILE *f)): created from dump_cgraph
16703 (static inline void debug_cgraph (void)): created from debug_cgraph
16704 (static void record_function_versions (tree decl1, tree decl2)):
16705 created from record_function_versions
16706 (static void delete_function_version (tree decl)):
16707 created from delete_function_version
16708 (static void add_new_function (tree fndecl, bool lowered)):
16709 created from cgraph_add_new_function
16710 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
16711 (static cgraph_node * create (tree decl)): created from cgraph_create_node
16712 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
16713 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
16714 (static cgraph_node *get_for_asmname (tree asmname)):
16715 created from cgraph_node_for_asm
16716 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
16717 created from cgraph_same_body_alias
16718 (static bool used_from_object_file_p_worker (cgraph_node *node,
16719 void *): new function
16720 (static bool non_local_p (cgraph_node *node, void *)):
16721 created from cgraph_non_local_node_p_1
16722 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
16723 created from verify_cgraph
16724 (static bool make_local (cgraph_node *node, void *)):
16725 created from cgraph_make_node_local
16726 (static cgraph_node *create_alias (tree alias, tree target)):
16727 created from cgraph_create_function_alias
16728 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
16729 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
16730 created from cgraph_create_edge_1
16731 * cgraph.h (varpool_node):
16732 (void remove (void)): created from varpool_remove_node
16733 (void dump (FILE *f)): created from dump_varpool_node
16735 2014-07-24 Richard Biener <rguenther@suse.de>
16738 * tree-ssa-structalias.c (create_variable_info_for_1):
16739 Use varpool_get_constructor.
16740 (create_variable_info_for): Likewise.
16742 2014-07-24 Jiong Wang <jiong.wang@arm.com>
16744 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
16745 subtract outgoing area size when restoring stack_pointer_rtx.
16747 2014-07-24 Nick Clifton <nickc@redhat.com>
16749 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
16750 that operations are taking place in parallel.
16751 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
16753 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
16755 * omp-low.c (extract_omp_for_data): Add missing break statement.
16757 2014-07-24 Richard Biener <rguenther@suse.de>
16759 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
16760 * tree-inline.c (estimate_move_cost): Add speed_p parameter
16761 and adjust MOVE_RATIO query accordingly.
16762 (estimate_num_insns): Adjust callers.
16763 * ipa-prop.c (ipa_populate_param_decls): Likewise.
16764 * ipa-cp.c (gather_context_independent_values,
16765 estimate_local_effects): Likewise.
16766 * ipa-split.c (consider_split): Likewise.
16768 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
16770 * config/i386/driver-i386.c: Remove names of unused arguments and
16771 unnecessary unused attributes.
16772 * config/i386/host-mingw32.c: Likewise.
16773 * config/i386/i386.c: Likewise.
16774 * config/i386/winnt-stubs.c: Likewise.
16775 * config/i386/winnt.c: Likewise.
16777 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16779 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
16780 (aarch64_gen_loadwb_pair): New helper function.
16781 (aarch64_expand_epilogue): Simplify code using new helper functions.
16782 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
16784 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16786 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
16787 (aarch64_gen_storewb_pair): New helper function.
16788 (aarch64_expand_prologue): Simplify code using new helper functions.
16789 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
16791 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16793 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
16794 Rename to aarch64_save_callee_saves, remove restore code.
16795 (aarch64_restore_callee_saves): New function.
16797 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16799 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
16800 (aarch64_save_callee_saves): New function to handle reg save
16801 for both core and vectore regs.
16803 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16805 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
16806 (aarch64_gen_store_pair): New helper function.
16807 (aarch64_save_or_restore_callee_save_registers)
16808 (aarch64_save_or_restore_fprs): Use new helper functions.
16810 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16812 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
16813 (aarch64_save_or_restore_callee_save_registers)
16814 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
16816 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16818 * config/aarch64/aarch64.c
16819 (aarch64_save_or_restore_callee_save_registers)
16820 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
16822 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16824 * config/aarch64/aarch64.c
16825 (aarch64_save_or_restore_callee_save_registers)
16826 (aarch64_save_or_restore_fprs): Remove 'increment'.
16828 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16830 * config/aarch64/aarch64.c
16831 (aarch64_save_or_restore_callee_save_registers)
16832 (aarch64_save_or_restore_fprs): Use register offset in
16833 cfun->machine->frame.reg_offset.
16835 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16837 * config/aarch64/aarch64.c
16838 (aarch64_save_or_restore_callee_save_registers)
16839 (aarch64_save_or_restore_fprs): Remove base_rtx.
16841 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16843 * config/aarch64/aarch64.c
16844 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
16845 to 'start_offset'. Remove local variable 'start_offset'.
16847 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16849 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
16850 type to HOST_WIDE_INT.
16852 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16854 * config/aarch64/aarch64.c (aarch64_expand_prologue)
16855 (aarch64_save_or_restore_fprs)
16856 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
16858 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
16860 * config/arm/t-rtems-eabi: Add
16861 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
16862 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
16863 mbig-endian/mthumb/march=armv7-r, and
16864 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
16867 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
16868 Chris Johns <chrisj@rtems.org>
16869 Joel Sherrill <joel.sherrill@oarcorp.com>
16871 * config.gcc: Add nios2-*-rtems*.
16872 * config/nios2/rtems.h: New file.
16873 * gcc/config/nios2/t-rtems: New file.
16875 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
16878 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
16879 constant numbers, not general constants.
16880 (rs6000_expand_vector_init): Ditto.
16882 2014-07-23 Nathan Sidwell <nathan@acm.org>
16884 * gcov-tool.c (gcov_list): Declare here.
16885 (set_gcov_list): Remove.
16886 (gcov_output_files): Set gcov_list directly.
16888 2014-07-23 Host Schirmeier <horst@schirmeier.com>
16890 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
16892 2014-07-23 Jiong Wang <jiong.wang@arm.com>
16894 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
16895 callee-saved registers are available for padding purpose
16896 and r3 is not mandatory, then prefer use those callee-saved
16899 2014-07-23 Richard Biener <rguenther@suse.de>
16901 * params.def (PARAM_MAX_COMBINE_INSNS): New.
16902 * combine.c: Include statistics.h and params.h.
16903 (combine_instructions): Guard three and four insn combines
16904 with max-combine-insns value. Record statistics for combines
16906 * doc/invoke.texi (max-combine-insns): Document new param.
16908 2014-07-23 Roman Gareev <gareevroman@gmail.com>
16910 * graphite-isl-ast-to-gimple.c:
16911 (translate_isl_ast_node_block): New function.
16912 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
16914 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
16915 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
16917 2014-07-23 Roman Gareev <gareevroman@gmail.com>
16919 * graphite-isl-ast-to-gimple.c:
16920 (get_max_schedule_dimensions): New function.
16921 (extend_schedule): Likewise.
16922 (generate_isl_schedule): Add calling of extend_schedule and
16923 get_max_schedule_dimensions.
16925 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16927 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
16928 (case UNSPEC): Handle UNSPEC_RBIT.
16930 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16932 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
16933 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
16935 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16937 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
16939 2014-07-22 Roman Gareev <gareevroman@gmail.com>
16941 * graphite-isl-ast-to-gimple.c:
16942 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
16943 (ivs_params_clear):
16944 (build_iv_mapping): New function.
16945 (translate_isl_ast_node_user): Likewise.
16946 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
16948 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
16949 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
16950 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
16952 2014-07-21 Bin Cheng <bin.cheng@arm.com>
16955 * config/arm/arm.md (setmem): New pattern.
16956 * config/arm/arm-protos.h (struct tune_params): New fields.
16957 (arm_gen_setmem): New prototype.
16958 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
16959 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
16960 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
16961 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
16962 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
16963 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
16964 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
16965 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
16966 (arm_const_inline_cost): New function.
16967 (arm_block_set_max_insns): New function.
16968 (arm_block_set_non_vect_profit_p): New function.
16969 (arm_block_set_vect_profit_p): New function.
16970 (arm_block_set_unaligned_vect): New function.
16971 (arm_block_set_aligned_vect): New function.
16972 (arm_block_set_unaligned_non_vect): New function.
16973 (arm_block_set_aligned_non_vect): New function.
16974 (arm_block_set_vect, arm_gen_setmem): New functions.
16976 2014-07-21 Bin Cheng <bin.cheng@arm.com>
16978 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
16980 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
16983 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
16984 out of #ifdef __OPTIMIZE__.
16986 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
16988 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
16989 different trapping status if -fnon-call-exceptions is enabled.
16991 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
16993 * expr.c (store_field): Handle VOIDmode for calls that return values
16994 in multiple locations.
16996 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16998 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
16999 (altivec_vsldoi_<mode>): Likewise.
17001 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17003 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17004 to the number of characters in the line.
17006 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17008 * graphite-isl-ast-to-gimple.c: Add using of
17009 build_nonstandard_integer_type instead of int128_integer_type_node.
17011 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
17013 * toplev.c (output_stack_usage): Adjust the location of the warning.
17015 2014-07-19 Daniel Cederman <cederman@gaisler.com>
17017 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17018 (*membar_storeload): Disable for LEON3.
17020 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
17022 PR rtl-optimization/61461
17023 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17025 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
17028 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17029 Fix instruction constraint.
17030 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17032 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
17034 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17036 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
17038 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17039 GNU coding standards.
17040 (nds32_register_move_cost): Likewise.
17041 (nds32_memory_move_cost): Likewise.
17042 (nds32_address_cost): Likewise.
17044 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17046 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17048 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
17050 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17051 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17052 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17053 (HAVE_sync_compare_and_swapqi): Define.
17054 (HAVE_sync_compare_and_swaphi): Likewise.
17055 (HAVE_sync_compare_and_swapsi): Likewise.
17057 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
17059 * config/mips/p5600.md: Add missing cpu tests.
17061 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17063 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17064 (vmla_f64): Likewise.
17065 (vfms_f64): Likewise.
17066 (vmls_f64): Likewise.
17068 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17070 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17071 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17073 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17075 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17076 (vmlal_high_lane_s32): Likewise.
17077 (vmlal_high_lane_u16): Likewise.
17078 (vmlal_high_lane_u32): Likewise.
17079 (vmlsl_high_lane_s16): Likewise.
17080 (vmlsl_high_lane_s32): Likewise.
17081 (vmlsl_high_lane_u16): Likewise.
17082 (vmlsl_high_lane_u32): Likewise.
17084 2014-07-17 Terry Guo <terry.guo@arm.com>
17086 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17087 (alus_reg): Renamed to alus_sreg.
17088 * config/arm/arm-fixed.md: Change type of non-dsp instructions
17089 from alu_reg to alu_sreg. Change type of dsp instructions from
17090 alu_reg to alu_dsp_reg.
17091 * config/arm/thumb1.md: Likewise.
17092 * config/arm/thumb2.md: Likewise.
17093 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17094 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17095 with alu_sreg and alus_sreg.
17096 * config/arm/arm1026ejs.md (alu_op): Likewise.
17097 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17098 * config/arm/arm926ejs.md (9_alu_op): Likewise.
17099 * config/arm/fa526.md (526_alu_op): Likewise.
17100 * config/arm/fa606te.md (606te_alu_op): Likewise.
17101 * config/arm/fa626te.md (626te_alu_op): Likewise.
17102 * config/arm/fa726te.md (726te_alu_op): Likewise.
17103 * config/arm/fmp626.md (mp626_alu_op): Likewise.
17104 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17105 alu_sreg, alu_dsp_reg and alus_sreg.
17106 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17107 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17108 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17109 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17110 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17111 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17112 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17113 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17114 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17115 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17116 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17117 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17118 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17119 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17120 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17121 alus_reg to alus_sreg.
17123 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
17125 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17128 2014-07-17 Richard Biener <rguenther@suse.de>
17130 PR rtl-optimization/61801
17131 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17132 don't set reg_pending_barrier if it appears in a debug-insn.
17134 2014-07-16 DJ Delorie <dj@redhat.com>
17136 * config/rx/rx.c (rx_option_override): Fix alignment values.
17137 (rx_align_for_label): Likewise.
17139 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
17142 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17143 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17144 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17146 (cris_print_index, cris_print_operand, cris_constant_index_p)
17147 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17148 (cris_address_cost): Ditto last CONSTANT_P.
17149 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
17150 callers changed. Yield cris_offsettable_symbol for non-PIC
17151 constant symbolic expressions including labels. Yield cris_unspec
17153 (cris_expand_pic_call_address): New parameter MARKERP. Set its
17154 target to pic_offset_table_rtx for calls that will likely go
17155 through PLT, const0_rtx when they can't. All callers changed.
17156 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17157 symbolic expressions to be PICified. Remove second, redundant,
17158 assert on can_create_pseudo_p returning non-zero. Use
17159 replace_equiv_address_nv, not replace_equiv_address, for final
17161 * config/cris/cris.md ("movsi"): Move variable t to pattern
17162 toplevel. Adjust assert for new cris_symbol_type member. Use
17163 CONSTANT_P instead of CONSTANT_ADDRESS_P.
17164 ("*movsi_internal") <case 9>: Make check for valid unspec operands
17166 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
17167 ("call", "call_value"): Use second incoming operand as a marker
17168 for pic-offset-table-register being used.
17169 ("*expanded_call_non_v32", "*expanded_call_v32")
17170 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
17171 second incoming operand to CALL, match cris_call_type_marker.
17172 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
17173 ("*expanded_call_side"): Ditto. Fix typo in comment.
17174 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
17176 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
17177 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
17178 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
17179 users changed. Add members cris_offsettable_symbol and cris_unspec.
17180 (cris_symbol_type): Rename from cris_pic_symbol_type.
17181 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
17183 * config/cris/cris-protos.h (cris_symbol_type_of,
17184 cris_expand_pic_call_address): Adjust prototypes.
17185 (cris_legitimate_constant_p): New prototype.
17187 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
17188 an existing tmake_file. Don't add t-slibgcc and t-linux.
17190 2014-07-17 Jason Merrill <jason@redhat.com>
17193 * symtab.c (symtab_remove_from_same_comdat_group): Also
17194 set_comdat_group to NULL_TREE.
17195 (verify_symtab): Fix diagnostic.
17197 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
17200 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
17202 2014-07-16 Dodji Seketeli <dodji@redhat.com>
17204 Support location tracking for built-in macro tokens
17205 * input.h (is_location_from_builtin_token): New function declaration.
17206 * input.c (is_location_from_builtin_token): New function definition.
17207 * toplev.c (general_init): Tell libcpp what the pre-defined
17208 spelling location for built-in tokens is.
17210 2014-07-16 Jakub Jelinek <jakub@redhat.com>
17212 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
17213 on the FUNCTION_DECL.
17215 2014-07-16 Richard Biener <rguenther@suse.de>
17218 * doc/extend.texi (always_inline): Clarify.
17220 2014-07-15 Eric Christopher <echristo@gmail.com>
17222 * doc/invoke.texi (Link Options): Document -z option.
17224 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
17226 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
17227 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17229 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
17231 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
17233 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
17235 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
17236 varpool_assemble_decl.
17237 * varpool.c (varpool_assemble_decl): Assert that node->definition is
17240 2014-07-15 Michael Matz <matz@suse.de>
17242 PR rtl-optimization/61772
17243 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
17245 2014-07-15 Richard Biener <rguenther@suse.de>
17247 * opts.c (default_options_table): Disable bit-ccp at -Og.
17249 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
17251 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
17253 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
17255 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
17256 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
17257 call langhook for unknown declaration.
17258 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
17259 * tree.h (DECL_ARGUMENTS): Update.
17260 * print-tree.c (print_node): Update.
17261 * tree-core.h (tree_decl_non_common): Remove arguments.
17262 (tree_function_decl): Add arguments.
17264 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
17266 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
17268 2014-07-14 Richard Biener <rguenther@suse.de>
17270 PR tree-optimization/61779
17271 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
17272 simplifying a condition.
17274 2014-07-14 Richard Biener <rguenther@suse.de>
17276 * builtins.c (c_strlen): Make only_value == 2 really only
17277 affect warning generation.
17279 2014-07-14 Richard Biener <rguenther@suse.de>
17281 PR tree-optimization/61757
17282 PR tree-optimization/61783
17283 PR tree-optimization/61787
17284 * tree-ssa-dom.c (record_equality): Revert canonicalization
17285 change and add comment.
17286 (propagate_rhs_into_lhs): Revert previous fix, removing
17287 loop depth restriction again.
17289 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17291 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
17292 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17293 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17294 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
17295 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17296 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17297 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17299 2014-07-14 Richard Biener <rguenther@suse.de>
17301 * cgraph.h (decl_in_symtab_p): Make inline.
17303 2014-07-14 Jakub Jelinek <jakub@redhat.com>
17305 PR middle-end/61294
17306 * doc/invoke.texi (-Wmemset-transposed-args): Document.
17309 * config/i386/i386.c (classify_argument): Don't merge classes above
17312 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
17314 * cgraph.h (symtab_node): Add nonzero_address.
17315 (decl_in_symtab_p): Break out from ...
17316 (symtab_get_node): ... here.
17317 * fold-const.c: Include cgraph.h
17318 (tree_single_nonzero_warnv_p): Use symtab to determine
17319 if symbol is non-zero.
17320 * symtab.c (symtab_node::nonzero_address): New method.
17322 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17324 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
17325 forgotten in previous commit.
17327 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17329 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
17331 * ipa-devirt.c: Include stor-layout.h and intl.h
17332 (odr_subtypes_equivalent_p): New function.
17333 (warn_odr): New function.
17334 (warn_type_mismatch): New function.
17335 (odr_types_equivalent_p): New function.
17336 (add_type_duplicate): Use it.
17337 * common.opt (Wodr): New flag.
17338 * doc/invoke.texi (Wodr): Document new warning.
17340 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17342 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
17343 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
17344 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
17345 (varpool_get_constructor): Push CTORS_IN timevar.
17346 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
17348 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
17350 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
17351 Remove VOID_FTYPE_PUSHORT.
17352 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
17353 Change code to USHORT_FTYPE_VOID.
17354 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
17355 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
17356 (ix86_atomic_assign_expand_fenv): Update for
17357 __builtin_ia32_fnstsw changes.
17358 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
17359 (fnstsw): Change operand 0 to nonimmediate operand.
17361 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17363 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
17364 (varpool_get_constructor): New function.
17365 (varpool_ctor_useable_for_folding_p): Break out from ...
17366 (ctor_for_folding): ... here; use varpool_get_constructor.
17367 (varpool_assemble_decl): Likewise.
17368 * lto-streamer.h (struct output_block): Turn cgraph_node
17370 (lto_input_variable_constructor): Declare.
17371 * ipa-visibility.c (function_and_variable_visibility): Use
17372 varpool_get_constructor.
17373 * cgraph.h (varpool_get_constructor): Declare.
17374 (varpool_ctor_useable_for_folding_p): New function.
17375 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
17376 parameter; return error_mark_node for non-trivial constructors.
17377 (lto_write_tree_1, DFS_write_tree): Update use of
17378 get_symbol_initial_value.
17379 (output_function): Update initialization of symbol.
17380 (output_constructor): New function.
17381 (copy_function): Rename to ..
17382 (copy_function_or_variable): ... this one; handle vars too.
17383 (lto_output): Output variable sections.
17384 * lto-streamer-in.c (input_constructor): New function.
17385 (lto_read_body): Rename from ...
17386 (lto_read_body_or_constructor): ... this one; handle vars too.
17387 (lto_input_variable_constructor): New function.
17388 * ipa-prop.c (ipa_prop_write_jump_functions,
17389 ipa_prop_write_all_agg_replacement): Update.
17390 * lto-cgraph.c (compute_ltrans_boundary): Use it.
17391 (output_cgraph_opt_summary): Set symbol to NULL.
17393 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17395 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
17396 non-polymorphic types.
17397 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
17398 * ipa-devirt.c (types_same_for_odr): Do not explode when one
17399 of types is not polymorphic.
17401 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
17403 * lra-constraints.c (remove_inheritance_pseudos): Process
17404 destination pseudo too.
17406 2014-07-11 Rong Xu <xur@google.com>
17408 * gcov-tool.c (gcov_output_files): Fix build error introduced in
17411 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17413 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
17414 * config/avr/avr-devices.c (AVR_MCU): Same.
17415 (avr_mcu_types): add text start value to end of device list.
17416 * config/avr/avr-mcus.def: Add text section start for all devices.
17417 (ata5782): Add new avr5 device.
17419 * config/avr/avr-tables.opt: Regenerate.
17420 * config/avr/avr.h: Add declaration for text section start handler.
17421 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
17423 (LINK_SPEC): Include text section start handler to linker spec.
17424 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
17425 pass -Ttext option to linker if the text section start for the device
17427 * config/avr/t-multilib: Regenerate.
17428 * doc/avr-mmcu.texi: Regenerate.
17430 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
17432 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
17433 * config/rs6000/aix52.h (LINK_SPEC): Same.
17434 * config/rs6000/aix53.h (LINK_SPEC): Same.
17435 * config/rs6000/aix61.h (LINK_SPEC): Same.
17436 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
17438 2014-07-11 Roman Gareev <gareevroman@gmail.com>
17440 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
17441 (graphite_verify): New function.
17442 (ivs_params_clear): New function.
17443 (gcc_expression_from_isl_ast_expr_id): New function.
17444 (gcc_expression_from_isl_expr_int): New function.
17445 (binary_op_to_tree): New function.
17446 (ternary_op_to_tree): New function.
17447 (unary_op_to_tree): New function.
17448 (nary_op_to_tree): New function.
17449 (gcc_expression_from_isl_expr_op): New function.
17450 (gcc_expression_from_isl_expression): New function.
17451 (graphite_create_new_loop): New function.
17452 (translate_isl_ast_for_loop): New function.
17453 (get_upper_bound): New function.
17454 (graphite_create_new_loop_guard): New function.
17455 (translate_isl_ast_node_for): New function.
17456 (translate_isl_ast): New function.
17457 (add_parameters_to_ivs_params): New function.
17458 (scop_to_isl_ast): New parameter ip.
17459 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
17461 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17463 * config/xtensa/predicates.md (call expander): Update for
17464 DECL_SECTION_NAME being string.
17466 2014-07-11 Richard Biener <rguenther@suse.de>
17468 PR middle-end/61473
17469 * builtins.c (fold_builtin_memory_op): Inline memory moves that
17470 can be implemented with a single load followed by a single store.
17471 (c_strlen): Only warn when only_value is not 2.
17473 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
17475 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
17477 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
17480 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
17481 (*movhi_bytes): Likewise.
17482 (*arm_movqi_insn): Likewise.
17484 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
17487 * config/alpha/alpha.c: Include tree-pass.h, context.h
17488 and pass_manager.h.
17489 (pass_data_handle_trap_shadows): New pass.
17490 (pass_handle_trap_shadows::gate): New pass gate function.
17491 (make_pass_handle_trap_shadows): New function.
17492 (rest_of_handle_trap_shadows): Ditto.
17494 (alpha_align_insns_1): Rename from alpha_align_insns.
17495 (pass_data_align_insns): New pass.
17496 (pass_align_insns::gate): New pass gate function.
17497 (make_pass_aling_insns): New function.
17498 (rest_of_align_insns): Ditto.
17499 (alpha_align_insns): Ditto.
17501 (alpha_option_override): Declare handle_trap_shadows info
17502 and align_insns_info. Register handle_trap_shadows and align_insns
17504 (alpha_reorg): Do not call alpha_trap_shadows and
17505 alpha_align_insn from here.
17507 (alpha_pad_function_end): Do not skip BARRIERs.
17509 2014-07-10 Rong Xu <xur@google.com>
17511 Add gcov-tool: an offline gcda profile processing tool support.
17512 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
17513 (gcov_is_error): Ditto.
17514 (gcov_read_string): Ditto.
17515 (gcov_read_sync): Ditto.
17516 * gcov-io.h: Move counter defines to gcov-counter.def.
17517 * gcov-dump.c (tag_counters): Use gcov-counter.def.
17518 * coverage.c: Ditto.
17519 * gcov-tool.c: Offline gcda profile processing tool.
17520 (unlink_gcda_file): Remove one gcda file.
17521 (unlink_profile_dir): Remove gcda files from the profile path.
17522 (gcov_output_files): Output gcda files to an output dir.
17523 (profile_merge): Merge two profiles in directory.
17524 (print_merge_usage_message): Print merge usage.
17525 (merge_usage): Print merge usage and exit.
17526 (do_merge): Driver for profile merge sub-command.
17527 (profile_rewrite): Rewrite profile.
17528 (print_rewrite_usage_message): Print rewrite usage.
17529 (rewrite_usage): Print rewrite usage and exit.
17530 (do_rewrite): Driver for profile rewrite sub-command.
17531 (print_usage): Print gcov-info usage and exit.
17532 (print_version): Print gcov-info version.
17533 (process_args): Process arguments.
17534 (main): Main routine for gcov-tool.
17535 * Makefile.in: Build and install gcov-tool.
17536 * gcov-counter.def: New file split from gcov-io.h.
17537 * doc/gcc.texi: Include gcov-tool.texi.
17538 * doc/gcov-tool.texi: Document for gcov-tool.
17540 2014-07-10 Richard Biener <rguenther@suse.de>
17542 PR tree-optimization/61757
17543 * tree-ssa-dom.c (loop_depth_of_name): Restore.
17544 (propagate_rhs_into_lhs): Revert part of last change.
17546 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
17548 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
17551 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
17553 PR middle-end/53590
17554 * function.c (allocate_struct_function): Revert r188667 change.
17556 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
17558 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
17560 * doc/install.texi: Remove links to defunct package providers for
17563 2014-07-09 Tom de Vries <tom@codesourcery.com>
17565 * final.c (get_call_fndecl): Declare.
17566 (self_recursive_call_p): New function.
17567 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
17569 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17571 * ipa-devirt.c (record_node): Walk through aliases.
17573 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17575 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
17577 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17580 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17582 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17584 * ipa-visibility.c (function_and_variable_visibility): Remove
17585 temporary hack disabling local aliases on AIX.
17587 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17589 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
17590 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
17592 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17594 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
17595 * rs6000/rs6000.c: Inline output of .set instruction.
17596 (declare_alias_data): New struct.
17597 (rs6000_declare_alias): New function.
17598 (rs6000_xcoff_declare_function_name): Use it.
17599 (rs6000_xcoff_declare_object_name): New function.
17600 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
17601 (ASM_OUTPUT_DEF): Turn to empty definition.
17603 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
17606 * hash-table.h: use hash_table::value_type instead of
17607 Descriptor::value_type in the return types of several methods.
17609 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
17611 * tree-pass.h (pass_data): Remove has_execute member.
17612 * passes.c (execute_one_pass): Don't check pass->has_execute.
17613 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
17614 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
17615 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
17616 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
17617 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
17618 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
17619 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
17620 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
17621 gimple-low.c, gimple-ssa-isolate-paths.c,
17622 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
17623 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
17624 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
17625 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
17626 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
17627 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
17628 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
17629 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
17630 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
17631 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
17632 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
17633 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17634 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
17635 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17636 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17637 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
17638 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
17639 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17640 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17641 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
17642 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
17643 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
17644 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
17645 web.c: Remove initializer for pass_data::has_execute.
17647 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
17649 * graphite-htab.h: Use hash_map instead of hash_table.
17650 * graphite-clast-to-gimple.c: Adjust.
17651 * passes.c: Use hash_map instead of hash_table.
17652 * sese.c: Likewise.
17653 * sese.h: Remove now unused code.
17655 2014-07-08 Sriraman Tallam <tmsriram@google.com>
17658 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
17661 2014-07-08 Jakub Jelinek <jakub@redhat.com>
17663 PR rtl-optimization/61673
17664 * combine.c (simplify_comparison): Test just mode's sign bit
17665 in tmode rather than the sign bit and any bits above it.
17667 2014-07-08 Roman Gareev <gareevroman@gmail.com>
17669 * graphite-isl-ast-to-gimple.c (generate_isl_context):
17670 Add __isl_give to the declaration.
17671 (generate_isl_schedule): Likewise.
17672 (scop_to_isl_ast): Likewise.
17674 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17676 * config/arm/arm.c (cortexa5_extra_costs): New table.
17677 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
17679 2014-07-08 Jakub Jelinek <jakub@redhat.com>
17681 PR tree-optimization/61725
17682 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
17683 range, use range_includes_zerop_p instead of integer_zerop on
17684 vr0->min, only use log2 of max if min is not negative.
17686 2014-07-08 Richard Biener <rguenther@suse.de>
17688 * tree-ssa-dom.h (loop_depth_of_name): Remove.
17689 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
17690 restriction on loop depth difference.
17691 (record_equality): Likewise.
17692 (propagate_rhs_into_lhs): Likewise. Simplify condition.
17693 (loop_depth_of_name): Remove.
17694 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
17695 restriction on loop depth difference.
17696 (init_copy_prop): Likewise.
17698 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
17700 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
17702 (walk_aliased_vdefs): Likewise.
17703 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
17704 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
17705 (detect_type_change_from_memory_writes): Check if entry was reached.
17707 2014-07-08 Richard Biener <rguenther@suse.de>
17709 PR tree-optimization/61681
17710 * tree-ssa-structalias.c (find_what_var_points_to): Expand
17711 NONLOCAL inside ESCAPED.
17713 2014-07-08 Richard Biener <rguenther@suse.de>
17715 PR tree-optimization/61680
17716 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17717 Handle properly all read-write dependences with group accesses.
17719 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
17721 PR tree-optimization/61576
17722 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
17723 block containing reduction statement is predecessor of phi basi block.
17725 2014-07-08 Marek Polacek <polacek@redhat.com>
17728 * fold-const.c (round_up_loc): Change the parameter type.
17730 * fold-const.h (round_up_loc): Adjust declaration.
17731 * stor-layout.c (finalize_record_size): Check for too large types.
17733 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
17735 * symtab.c: Include calls.h.
17736 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
17738 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
17740 * config/rs6000/rs6000.c (output_vec_const_move): Handle
17741 little-endian code generation.
17742 * config/rs6000/spe.md (spe_evmergehi): Rename to...
17743 (vec_perm00_v2si): ... this. Handle little-endian code generation.
17744 (spe_evmergehilo): Rename to...
17745 (vec_perm01_v2si): ... this. Handle little-endian code generation.
17746 (spe_evmergelo): Rename to...
17747 (vec_perm11_v2si): ... this. Handle little-endian code generation.
17748 (spe_evmergelohi): Rename to...
17749 (vec_perm10_v2si): ... this. Handle little-endian code generation.
17750 (spe_evmergehi, spe_evmergehilo): New expanders.
17751 (spe_evmergelo, spe_evmergelohi): Likewise.
17752 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
17753 (*frob_tf_ti): Likewise.
17754 (*frob_<mode>_di_2): Likewise.
17755 (*frob_tf_di_8_2): Likewise.
17756 (*frob_di_<mode>): Likewise.
17757 (*frob_ti_tf): Likewise.
17758 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
17759 (*frob_ti_<mode>_8_2): Likewise.
17760 (*frob_ti_tf_2): Likewise.
17761 (mov_si<mode>_e500_subreg0): Rename to...
17762 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
17764 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
17765 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
17766 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
17767 the big endianness only.
17768 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
17769 (*mov_si<mode>_e500_subreg0_2): Rename to...
17770 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
17771 big big endianness only.
17772 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
17773 (*mov_si<mode>_e500_subreg4): Rename to...
17774 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
17776 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
17777 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
17778 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
17779 the big endianness only.
17780 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
17782 (*mov_si<mode>_e500_subreg4_2): Rename to...
17783 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
17785 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
17786 (*mov_sitf_e500_subreg8): Rename to...
17787 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
17789 (*mov_sitf_e500_subreg8_le): New instruction pattern.
17790 (*mov_sitf_e500_subreg8_2): Rename to...
17791 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
17793 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
17794 (*mov_sitf_e500_subreg12): Rename to...
17795 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
17797 (*mov_sitf_e500_subreg12_le): New instruction pattern.
17798 (*mov_sitf_e500_subreg12_2): Rename to...
17799 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
17801 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
17803 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
17805 * asan.c (instrument_strlen_call): Do not instrument first byte
17806 in strlen if already instrumented.
17808 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17810 * config/arm/arm.opt (mwords-little-endian): Delete.
17811 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
17812 of TARGET_LITTLE_WORDS.
17813 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
17814 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
17816 * doc/invoke.texi: Remove references to -mwords-little-endian.
17818 2014-07-07 Jakub Jelinek <jakub@redhat.com>
17820 * expmed.c (struct init_expmed_rtl): Change all fields but
17821 pow2 and cint from struct rtx_def to rtx.
17822 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
17823 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
17826 2014-07-06 Marek Polacek <polacek@redhat.com>
17829 * doc/invoke.texi: Document -Wsizeof-array-argument.
17831 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
17833 * wide-int.h (wide_int_storage): Change declaration from struct
17836 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
17838 * cgraph.c (cgraph_create_indirect_edge): Update call of
17839 get_polymorphic_call_info.
17840 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
17841 (possible_polymorphic_call_targets): Add parameter call.
17842 (decl_maybe_in_construction_p): New predicate.
17843 (get_polymorphic_call_info): Add parameter call;
17844 use decl_maybe_in_construction_p.
17845 * gimple-fold.c (fold_gimple_assign): Update use of
17846 possible_polymorphic_call_targets.
17847 (gimple_fold_call): Likewise.
17848 * ipa-prop.c: Inlcude calls.h
17849 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
17850 (param_type_may_change_p): New predicate.
17851 (detect_type_change_from_memory_writes): Break out from ...
17852 (detect_type_change): ... this one; use param_type_may_change_p.
17853 (detect_type_change_ssa): Use param_type_may_change_p.
17854 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
17856 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
17859 * config/arm/arm-protos.h (arm_legitimate_address_p,
17860 arm_is_constant_pool_ref): Add prototypes.
17861 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
17862 (arm_is_constant_pool_ref) New function.
17863 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
17864 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
17865 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
17866 operand. Remove pool_range and neg_pool_range attributes.
17867 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
17868 pool_range and neg_pool_range attributes.
17869 * config/arm/constraints.md (Uh): New constraint.
17870 (Uq): Don't allow constant pool references.
17872 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
17874 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
17875 (move_lo_quad_internal_be_<mode>): Likewise.
17876 (move_lo_quad_<mode>): Convert to define_expand.
17877 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
17878 (aarch64_simd_move_hi_quad_be_<mode>): New.
17879 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
17880 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
17881 (aarch64_combinez_be<mode>): New.
17882 (aarch64_combine<mode>): Convert to define_expand.
17883 (aarch64_combine_internal<mode>): New.
17884 (aarch64_simd_combine<mode>): Remove bogus RTL description.
17886 2014-07-04 Tom de Vries <tom@codesourcery.com>
17888 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
17889 combination of earlyclobber and read/write modifiers.
17891 2014-07-04 Tom de Vries <tom@codesourcery.com>
17893 * config/aarch64/aarch64-simd.md
17894 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
17896 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
17899 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
17901 2014-07-04 Jakub Jelinek <jakub@redhat.com>
17903 PR middle-end/61654
17904 * cgraphunit.c (expand_thunk): Call free_dominance_info.
17906 PR tree-optimization/61684
17907 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
17908 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
17910 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
17911 Kito Cheng <kito@0xlab.org>
17912 Monk Chiang <sh.chiang04@gmail.com>
17914 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
17915 (nds32_symbol_load_store_p): Move to ...
17916 (nds32_fp_as_gp_check_available): Move to ...
17917 * config/nds32/nds32-fp-as-gp.c: ... here.
17918 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
17919 extern declaration.
17921 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
17922 Kito Cheng <kito@0xlab.org>
17923 Monk Chiang <sh.chiang04@gmail.com>
17925 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
17926 (nds32_expand_store_multiple): Move to ...
17927 (nds32_expand_movmemqi): Move to ...
17928 * config/nds32/nds32-memory-manipulation.c: ... here.
17930 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
17931 Kito Cheng <kito@0xlab.org>
17932 Monk Chiang <sh.chiang04@gmail.com>
17934 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
17935 (nds32_output_casesi_pc_relative): Move to ...
17936 (nds32_output_casesi): Move to ...
17937 (nds32_mem_format): Move to ...
17938 (nds32_output_16bit_store): Move to ...
17939 (nds32_output_16bit_load): Move to ...
17940 (nds32_output_32bit_store): Move to ...
17941 (nds32_output_32bit_load): Move to ...
17942 (nds32_output_32bit_load_s): Move to ...
17943 (nds32_output_stack_push): Move to ...
17944 (nds32_output_stack_pop): Move to ...
17945 * config/nds32/nds32-md-auxiliary.c: ... here.
17947 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
17948 Ling-Hua Tseng <uranus@tinlans.org>
17950 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
17951 the purpose of this file.
17953 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
17954 Kito Cheng <kito@0xlab.org>
17955 Monk Chiang <sh.chiang04@gmail.com>
17957 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
17958 (nds32_address_cost): Move implementation to ...
17959 * config/nds32/nds32-cost.c: ... here.
17960 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
17961 (nds32_address_cost_impl): Declare.
17963 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
17964 Kito Cheng <kito@0xlab.org>
17965 Monk Chiang <sh.chiang04@gmail.com>
17967 * config/nds32/nds32.c
17968 (nds32_consecutive_registers_load_store_p): Move to ...
17969 (nds32_valid_multiple_load_store): Move to ...
17970 (nds32_valid_stack_push_pop): Move to ...
17971 (nds32_can_use_bclr_p): Move to ...
17972 (nds32_can_use_bset_p): Move to ...
17973 (nds32_can_use_btgl_p): Move to ...
17974 (nds32_can_use_bitci_p): Move to ...
17975 * config/nds32/nds32-predicates.c: ... here.
17977 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
17978 Kito Cheng <kito@0xlab.org>
17979 Monk Chiang <sh.chiang04@gmail.com>
17981 * config/nds32/nds32.c
17982 (nds32_expand_builtin_null_ftype_reg): Move to ...
17983 (nds32_expand_builtin_reg_ftype_imm): Move to ...
17984 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
17985 (nds32_init_builtins): Move implementation to ...
17986 (nds32_expand_builtin): Move implementation to ...
17987 * config/nds32/nds32-intrinsic.c: ... here.
17988 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
17989 (nds32_expand_builtin_impl): Declare.
17991 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
17992 Kito Cheng <kito@0xlab.org>
17993 Monk Chiang <sh.chiang04@gmail.com>
17995 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
17996 (nds32_emit_section_tail_template): Move to ...
17997 (nds32_emit_isr_jmptbl_section): Move to ...
17998 (nds32_emit_isr_vector_section): Move to ...
17999 (nds32_emit_isr_reset_conten): Move to ...
18000 (nds32_check_isr_attrs_conflict): Move to ...
18001 (nds32_construct_isr_vectors_information): Move to ...
18002 (nds32_asm_file_start): Move implementation to ...
18003 (nds32_asm_file_end): Move implementation to ...
18004 * config/nds32/nds32-isr.c: ... here.
18005 * config/nds32/nds32-protos.h
18006 (nds32_check_isr_attrs_conflict): Declare.
18007 (nds32_construct_isr_vectors_information): Declare.
18008 (nds32_asm_file_start_for_isr): Declare.
18009 (nds32_asm_file_end_for_isr): Declare.
18011 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18012 Kito Cheng <kito@0xlab.org>
18013 Monk Chiang <sh.chiang04@gmail.com>
18015 * config.gcc (nds32*): Add new modules to extra_objs.
18016 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18017 (nds32be-*-*): Likewise.
18018 * config/nds32/nds32-cost.c: New file.
18019 * config/nds32/nds32-fp-as-gp.c: New file.
18020 * config/nds32/nds32-intrinsic.c: New file.
18021 * config/nds32/nds32-isr.c: New file.
18022 * config/nds32/nds32-md-auxiliary.c: New file.
18023 * config/nds32/nds32-memory-manipulation.c: New file.
18024 * config/nds32/nds32-pipelines-auxiliary.c: New file.
18025 * config/nds32/nds32-predicates.c: New file.
18026 * config/nds32/t-nds32: New file.
18028 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18030 PR tree-optimization/61682
18031 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18032 using cases and when one of the operands is equal to 1.
18034 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
18036 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18037 ashr<mode>3): Correct mode of operands[2].
18038 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18039 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18040 Correct mode of operands[2]. Fix split condition.
18042 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
18044 * arm.md (arch): Add armv6_or_vfpv3.
18045 (arch_enabled): Add test for the above.
18046 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18048 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18050 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18052 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18053 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18054 HWI 1 and negate the unsigned value.
18055 * expmed.c (expand_sdiv_pow2): For modes wider than word always
18056 use AND instead of shift.
18057 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18059 2014-07-03 Marek Polacek <polacek@redhat.com>
18061 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18062 (-fsanitize=float-divide-by-zero): Move to the table with
18063 -fsanitize=undefined suboptions.
18064 (-fsanitize=float-cast-overflow): Likewise.
18066 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
18068 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18069 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18072 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18074 * loop-invariant.c (struct invariant): Add a new member: eqno;
18075 (find_identical_invariants): Update eqno;
18076 (create_new_invariant): Init eqno;
18077 (get_inv_cost): Compute comp_cost with eqno;
18079 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18081 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18082 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18083 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18084 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18085 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18087 2014-07-02 Christian Bruel <christian.bruel@st.com>
18091 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18092 (make_preds_opaque): Delete.
18093 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18094 (commit_mode_sets): New function.
18095 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18096 Process all modes at once.
18097 * basic-block.h (pre_edge_lcm_avs): Declare.
18098 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18099 Call clear_aux_for_edges. Fix comments.
18100 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18101 (pre_edge_rev_lcm): Idem.
18102 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18104 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18105 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18107 * config/i386/i386.c (x96_emit_mode_set): Idem.
18108 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18109 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
18110 (fpscr_toggle) Disallow from delay slot.
18111 * target.def (emit_mode_set): Add prev_mode parameter.
18112 * doc/tm.texi: Regenerate.
18114 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18116 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18119 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18121 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18122 vtable_pointer_value_to_vtable): Constify.
18123 (contains_polymorphic_type_p): Declare.
18124 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18125 vtable_pointer_value_to_vtable): Constify.
18126 (contains_polymorphic_type_p): New predicate.
18127 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18129 (ipa_set_ancestor_jf): Likewise.
18130 (detect_type_change): Return false in easy cases.
18131 (compute_complex_assign_jump_func): Require type to contain
18133 (compute_known_type_jump_func): Likewise.
18135 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18137 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18139 (type_in_anonymous_namespace_p): Constify argument.
18140 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18141 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18142 (main_odr_variant): New function.
18143 (hash_type_name): Make static; update assert; do not ICE on
18145 (types_same_for_odr): Bring here from tree.c; simplify and remove
18146 old structural comparing code that doesn't work for templates.
18147 (odr_hasher::equal): Update assert.
18148 (add_type_duplicate): Return true when bases should be computed;
18149 replace incomplete loader by complete; do not output duplicated
18150 warnings; do not ICE on non-records; set odr_violated flag.
18151 (get_odr_type): Be ready to replace incomplete type by complete
18152 one; work on ODR variants instead of main variants; reorder item
18153 in array so bases have still smaller indexes.
18154 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18155 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18157 2014-07-01 Cary Coutant <ccoutant@google.com>
18159 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18161 (resolve_addr_in_expr): When replacing the rtx in a location list
18162 entry, get a new address table entry.
18163 (dwarf2out_finish): Call index_location_lists even if there are no
18164 addr_index_table entries yet.
18166 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18168 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
18169 change for not being obvious.
18171 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18173 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
18176 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18178 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
18179 (vcagt_f64): Likewise.
18180 (vcale_f64): Likewise.
18181 (vcaled_f64): Likewise.
18182 (vcales_f32): Likewise.
18183 (vcalt_f64): Likewise.
18184 (vcaltd_f64): Likewise.
18185 (vcalts_f32): Likewise.
18187 2014-07-01 Marek Polacek <polacek@redhat.com>
18189 * doc/invoke.texi: Document -Wint-conversion.
18191 2014-07-01 Marek Polacek <polacek@redhat.com>
18194 * doc/invoke.texi: Document -Wincompatible-pointer-types.
18196 2014-07-01 Martin Liska <mliska@suse.cz>
18198 IPA REF alias refactoring
18199 * cgraph.h (iterate_direct_aliases): New function.
18200 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
18201 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
18202 FOR_EACH_ALIAS added.
18203 (cgraph_for_node_and_aliases): Likewise.
18204 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
18205 * ipa-inline.c (reset_edge_caches): Likewise.
18206 (update_caller_keys): Likewise.
18207 * trans-mem.c (ipa_tm_execute): Likewise.
18208 *varpool.c (varpool_analyze_node): Likewise.
18209 (varpool_for_node_and_aliases): Likewise.
18210 * ipa-ref.h (first_alias): New function.
18211 (last_alias): Likewise.
18212 (has_aliases_p): Likewise.
18213 * ipa-ref.c (ipa_ref::remove_reference): Removal function
18214 is sensitive to IPA_REF_ALIASes.
18215 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
18216 are put at the beginning of the list.
18217 (symtab_node::iterate_direct_aliases): New function.
18219 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18222 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18224 (write_ts_type_common_tree_pointers): Do not stream fields not set
18225 for incomplete types; do not stream duplicated fields for variants;
18226 sanity check that variant and type match.
18227 (write_ts_type_non_common_tree_pointers): Likewise.
18228 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18229 TYPE_SIZE whether type is complete.
18230 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18231 write_ts_type_common_tree_pointers
18232 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18234 2014-06-30 Joseph Myers <joseph@codesourcery.com>
18236 * var-tracking.c (add_stores): Return instead of asserting if old
18237 and new values for conditional store are the same.
18239 2014-06-30 Richard Henderson <rth@redhat.com>
18243 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
18244 the cfg if there were any changes.
18245 * passes.def: Revert move of peephole2 after reorder_blocks;
18246 move duplicate_computed_gotos before peephole2.
18248 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
18250 * except.c (emit_note_eh_region_end): New helper function.
18251 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
18252 emit EH_REGION_END note.
18253 * jump.c (cleanup_barriers): Do not split a call and its
18254 corresponding CALL_ARG_LOCATION note.
18256 2014-06-30 Jeff Law <law@redhat.com>
18258 PR tree-optimization/61607
18259 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
18260 deeper into the SSA_NAME_VALUE chain.
18262 2014-06-30 Marek Polacek <polacek@redhat.com>
18264 * convert.c (convert_to_integer): Don't instrument conversions if the
18265 function has no_sanitize_undefined attribute.
18266 * ubsan.c: Don't run the ubsan pass if the function has
18267 no_sanitize_undefined attribute.
18269 2014-06-30 Jakub Jelinek <jakub@redhat.com>
18271 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
18272 -fsanitize=undefined suboptions.
18274 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
18276 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
18277 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
18278 against bigendian and adjust indices.
18280 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
18282 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
18284 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
18287 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
18288 Add alternative; make early clobber. Adjust both split patterns
18289 to use operand 0 as the working register.
18291 2014-06-30 Jakub Jelinek <jakub@redhat.com>
18293 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
18294 as ira_object_id_map might be NULL, or 1.
18296 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18298 * loop-invariant.c (get_inv_cost): Handle register class.
18299 (gain_for_invariant): Check the register pressure of the inv
18300 and its overlapped register class, other than all.
18302 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
18304 * doc/invoke.texi (Optimize Options): Fix descriptions of
18305 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
18307 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
18309 * doc/extend.texi (Function Attributes): Update 'naked' attribute
18312 2014-06-29 Tobias Grosser <tobias@grosser.es>
18315 * graphite-isl-ast-to-gimple.c: Add missing guards.
18317 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18319 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
18320 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
18321 * flag-types.h: Add new enum fgraphite_generator.
18322 * graphite-isl-ast-to-gimple.c: New.
18323 * graphite-isl-ast-to-gimple.h: New.
18324 * graphite.c (graphite_transform_loops): Add choice of Graphite
18325 code generator, which depends on flag_graphite_code_gen.
18327 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18329 * graphite-dependences.c (subtract_commutative_associative_deps):
18330 Add NULL checking of the following variables: must_raw_no_source,
18331 may_raw_no_source, must_war_no_source, may_war_no_source,
18332 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
18333 must_war, may_war, must_waw, may_waw.
18335 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18337 * graphite-clast-to-gimple.c: gloog is renamed to
18338 graphite_regenerate_ast_cloog. gloog_error is renamed to
18339 graphite_regenerate_error.
18340 * graphite-clast-to-gimple.h: The definition of the struct
18341 bb_pbb_def is moved to graphite-htab.h.
18342 Add inclusion of the hash-table.h.
18343 * graphite-htab.h: The declaration of the function gloog is moved
18344 to graphite-clast-to-gimple.h and renamed to
18345 graphite_regenerate_ast_cloog.
18346 * graphite.c (graphite_transform_loops): gloog is renamed
18347 to graphite_regenerate_ast_cloog.
18349 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18351 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18353 (write_ts_type_common_tree_pointers): Do not stream fields not set
18354 for incomplete types; do not stream duplicated fields for variants;
18355 sanity check that variant and type match.
18356 (write_ts_type_non_common_tree_pointers): Likewise.
18357 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18358 TYPE_SIZE whether type is complete.
18359 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18360 write_ts_type_common_tree_pointers
18361 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18363 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18365 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
18367 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18369 * tree-inline.c (remap_type_1): Do not duplicate fields
18370 that are shared in between type and its main variant.
18372 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18374 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
18376 (ipa_set_ancestor_jf) Likewise.
18377 (check_stmt_for_type_change): Check that we work on main variant.
18378 (detect_type_change): Look into main variant.
18379 (compute_known_type_jump_func): Check that main variant has BINFO.
18381 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18383 * ipa-devirt.c (set_type_binfo): New function.
18384 (add_type_duplicate): Use it.
18385 (get_odr_type): Sanity check that binfos points to main variants.
18386 (get_class_context): Be sure the context's outer_type is main variant.
18387 (contains_type_p): Walk main variant.
18388 (get_polymorphic_call_info_for_decl): Set outer_type to be
18390 (get_polymorphic_call_info): Likewise.
18391 (possible_polymorphic_call_targets): Sanity check that we operate
18394 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18396 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18398 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18400 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
18401 accidental change due to wide-int branch merge.
18403 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18405 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
18406 compressed debug support.
18407 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
18408 * configure: Regenerate.
18409 * config.in: Regenerate.
18410 * common.opt (compressed_debug_sections): New enum.
18411 (gz, gz=): New options.
18412 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
18413 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
18414 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
18415 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
18416 LINK_COMPRESS_DEBUG_SPEC.
18417 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
18418 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
18419 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
18420 (Debugging Options): Document -gz[=type].
18422 2014-06-27 Martin Jambor <mjambor@suse.cz>
18425 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
18426 args_to_skip, use those from node instead. Copy args_to_skip and
18427 combined_args_to_skip from node to the new thunk.
18428 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
18429 (cgraph_create_virtual_clone): Moved computation of
18430 combined_args_to_skip...
18431 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
18433 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
18435 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
18436 redundant diagnostic machinary.
18438 2014-06-27 Richard Biener <rguenther@suse.de>
18440 * tree-ssa-math-opts.c (bswap_replace): Fix
18441 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
18443 2014-06-27 Martin Liska <mliska@suse.cz>
18445 * gimple.h (gimple_location_safe): New function introduced.
18446 * cgraphunit.c (walk_polymorphic_call_targets): Usage
18447 of gimple_location_safe replaces gimple_location.
18448 (gimple_fold_call): Likewise.
18449 * ipa-devirt.c (ipa_devirt): Likewise.
18450 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18451 * ipa.c (walk_polymorphic_call_targets): Likewise.
18452 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18454 2014-06-27 Jakub Jelinek <jakub@redhat.com>
18456 PR tree-optimization/57233
18457 PR tree-optimization/61299
18458 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
18460 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
18461 would be lowered to scalar shifts, check if corresponding
18462 shifts and vector BIT_IOR_EXPR are supported and don't lower
18463 or lower just to narrower vector type in that case.
18464 * expmed.c (expand_shift_1): Fix up handling of vector
18465 shifts and rotates.
18467 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
18470 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
18472 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
18474 * doc/invoke.texi (-fsemantic-interposition): Document.
18475 * common.opt (fsemantic-interposition): New flag.
18476 * varasm.c (decl_replaceable_p): Use it.
18478 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18481 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
18482 extraction other than index 3.
18484 2014-06-26 Teresa Johnson <tejohnson@google.com>
18486 * doc/invoke.texi: Fix typo.
18487 * dumpfile.c: Add support for documented -fdump-* options
18488 optimized/missed/note/optall.
18490 2014-06-26 Martin Jambor <mjambor@suse.cz>
18492 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
18493 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
18494 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
18495 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
18496 * opts.c (default_options_optimization): Set
18497 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
18498 * doc/invoke.texi (allow-load-data-races)
18499 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
18500 (allow-store-data-races): Document the new default.
18502 2014-06-26 Martin Jambor <mjambor@suse.cz>
18504 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
18505 renamed to ipa_impossible_devirt_target. Fix typo.
18506 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
18507 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
18508 ipa_impossible_devirt_target.
18510 2014-06-26 Richard Biener <rguenther@suse.de>
18512 PR tree-optimization/61607
18513 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
18514 explaining why we restrict copies on loop depth.
18515 * tree-ssa-dom.c (cprop_operand): Remove restriction on
18517 (record_equivalences_from_phis): Instead add it here.
18519 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
18521 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
18522 (LTO_WRAPPER_OBJS): New variable.
18523 (lto-wrapper$(exeext)): Use it.
18524 * collect2.c: Include "collect-utils.h".
18525 (verbose, debug): Remove variables.
18526 (at_file_supplied): No longer static.
18527 (tool_name): New variable.
18528 (do_wait, fork_execute, maybe_unlink): Don't declare.
18529 (tool_cleanup): No longer static.
18530 (notice): Remove function.
18531 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
18532 fork_execute calls.
18533 (collect_wait, do_wait, collect_execute): Remove functions.
18534 (maybe_unlink): No longer static.
18535 * collect2.h (verbose, debug): Don't declare.
18536 (at_file_supplied): Declare.
18537 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
18539 (collect_execute): Replace with implementation from collect2, plus a
18540 new arg use_atfile. All callers changed.
18541 (collect_wait): Replace with implementation from collect2.
18542 (maybe_unlink_file): Remove function.
18543 (fork_execute): Replace with implementation from collect2, plus a
18544 new arg use_atfile. All callers changed.
18545 (do_wait): Add call to utils_cleanup to the error path.
18546 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
18547 (tool_cleanup): Adjust declarations.
18548 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
18549 * tlink.c: Include "collect-utils.h".
18550 (tlink_execute): New arg use_atfile. All callers changed.
18551 (tlink_init, tlink_execute): Remove declarations.
18553 * collect-utils.c (save_temps): New variable.
18554 (do_wait): Use it instead of debug. Use fatal_error.
18555 * collect-utils.h (save_temps): Declare.
18556 * collect2.c (verbose): Rename from vflag. All uses changed.
18557 (tool_cleanup): New function, copied from collect_atexit.
18558 (collect_atexit, handler): Just call it.
18559 * collect2.h (verbose): Declaration renamed from vflag.
18560 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
18563 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
18564 (lto-wrapper$(exeext)): Link with collect-utils.o.
18565 * collect-utils.c: New file.
18566 * collect-utils.h: New file.
18567 * lto-wrapper.c: Include "collect-utils.h".
18568 (args_name): Delete variable.
18569 (tool_name): New variable.
18570 (tool_cleanup): New function.
18571 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
18572 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
18573 (fork_execute): Remove functions.
18575 2014-06-26 Nick Clifton <nickc@redhat.com>
18577 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
18579 * doc/extend.texi (Function Attributes): Fix typo in description
18580 of RX vector attribute.
18582 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18584 * config.gcc (supported_defaults): Error when passing either
18585 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
18587 2014-06-26 Richard Biener <rguenther@suse.de>
18589 * tree-ssa-dom.c (cprop_operand): Remove restriction on
18590 propagating volatile pointers.
18592 2014-06-26 Richard Biener <rguenther@suse.de>
18594 PR tree-optimization/61607
18595 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
18596 loop if we redirected its latch edge.
18597 (thread_block_1): Do not cancel loops prematurely.
18599 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
18601 * toplev.c (backend_init_target): Move init_emit_regs and
18603 (backend_init) ... here; skip ira_init_once and backend_init_target.
18604 (target_reinit) ... and here; clear
18605 this_target_rtl->lang_dependent_initialized.
18606 (lang_dependent_init_target): Clear
18607 this_target_rtl->lang_dependent_initialized;
18608 break out rtl initialization to ...
18609 (initialize_rtl): ... here; call also backend_init_target
18611 * toplev.h (initialize_rtl): New function.
18612 * function.c: Include toplev.h
18613 (init_function_start): Call initialize_rtl.
18614 * rtl.h (target_rtl): Add target_specific_initialized,
18615 lang_dependent_initialized.
18617 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
18618 Jakub Jelinek <jakub@redhat.com>
18620 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
18622 2014-06-25 Tom de Vries <tom@codesourcery.com>
18624 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
18626 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
18628 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
18629 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
18630 Issue a strict overflow warning if appropriate.
18632 2014-06-25 Martin Liska <mliska@suse.cz>
18634 IPA REF refactoring
18635 * Makefile.in: Removed header file (ipa-ref-inline.h).
18636 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
18638 (cgraph_speculative_call_info): Likewise.
18639 (cgraph_for_node_thunks_and_aliases): Likewise.
18640 (cgraph_for_node_and_aliases): Likewise.
18641 (verify_cgraph_node): Likewise.
18642 * cgraph.h: Batch of IPA REF functions become member functions of
18643 symtab_node: add_reference, maybe_add_reference, clone_references,
18644 clone_referring, clone_reference, find_reference,
18645 remove_stmt_references, remove_all_references,
18646 remove_all_referring, dump_references, dump_referring,
18647 has_alias_p, iterate_reference, iterate_referring.
18648 * cgraphbuild.c (record_reference): New IPA REF function used.
18649 (record_type_list): Likewise.
18650 (record_eh_tables): Likewise.
18651 (mark_address): Likewise.
18652 (mark_load): Likewise.
18653 (mark_store): Likewise.
18654 (pass_build_cgraph_edges): Likewise.
18655 (rebuild_cgraph_edge): Likewise.
18656 (cgraph_rebuild_references): Likewise.
18657 (pass_remove_cgraph_callee_edges): Likewise.
18658 * cgraphclones.c (cgraph_clone_node): Likewise.
18659 (cgraph_create_virtual_clone): Likewise.
18660 (cgraph_materialize_clone): Likewise.
18661 (cgraph_materialize_all_clones): Likewise.
18662 * cgraphunit.c (cgraph_reset_node): Likewise.
18663 (cgraph_reset_node): Likewise.
18664 (analyze_function): Likewise.
18665 (assemble_thunks_and_aliases): Likewise.
18666 (expand_function): Likewise.
18667 * ipa-comdats.c (propagate_comdat_group): Likewise.
18668 (enqueue_references): Likewise.
18669 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
18670 (create_specialized_node): Likewise.
18671 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
18672 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
18673 * ipa-inline.c (reset_edge_caches): Likewise.
18674 (update_caller_keys): Likewise.
18675 (execute): Likewise.
18676 * ipa-prop.c (remove_described_reference): Likewise.
18677 (propagate_controlled_uses): Likewise.
18678 (ipa_edge_duplication_hook): Likewise.
18679 (ipa_modify_call_arguments): Likewise.
18680 * ipa-pure-const.c (propagate_pure_const): Likewise.
18681 * ipa-ref-inline.h: Header file removed, functions moved
18682 to symtab_node class.
18683 * ipa-ref.c (remove_reference): New class member function.
18684 (cannot_lead_to_return): New class member function.
18685 (referring_ref_list): Likewise.
18686 (referred_ref_list): Likewise.
18687 Rest of functions moved to symtab_node class.
18688 * ipa-ref.h: New member functions remove_reference,
18689 cannot_lead_to_return, referring_ref_list, referred_ref_list added
18691 ipa_ref_list class has new member functions: first_reference,
18692 first_referring, clear, nreferences.
18693 * ipa-reference.c (analyze_function): New IPA REF function used.
18694 (write_node_summary_p): Likewise.
18695 (ipa_reference_write_optimization_summary): Likewise.
18696 * ipa-split.c (split_function): Likewise.
18697 * ipa-utils.c (ipa_reverse_postorder): Likewise.
18698 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
18699 (function_and_variable_visibility): Likewise.
18700 * ipa.c (has_addr_references_p): Likewise.
18701 (process_references): Argument type changed.
18702 (symtab_remove_unreachable_nodes): New IPA REF function used.
18703 (process_references): Likewise.
18704 (set_writeonly_bit): Likewise.
18705 * lto-cgraph.c: Implementation of new symtab_node member functions
18706 that uses new IPA REF functions.
18707 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
18709 * lto-streamer-out.c (output_symbol_p): Likewise.
18710 * lto-streamer.h (referenced_from_this_partition_p): Argument type
18712 * symtab.c: Implementation of new IPA REF API.
18713 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
18714 (ipa_tm_create_version): Likewise.
18715 (ipa_tm_execute): Likewise.
18716 * tree-emutls.c (gen_emutls_addr): Likewise.
18717 * tree-inline.c (copy_bb): Likewise.
18718 (delete_unreachable_blocks_update_callgraph): Likewise.
18719 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
18720 (varpool_for_node_and_aliases): Likewise.
18722 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
18724 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
18726 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
18729 * fold-const.c (fold_checksum_tree): Use a hash_table of const
18730 tree_node * instead of tree_node *.
18732 (print_fold_checksum): Likewise.
18733 (fold_check_failed): Likewise.
18734 (debug_fold_checksum): Likewise.
18735 (fold_build1_stat_loc): Likewise.
18736 (fold_build2_stat_loc): Likewise.
18737 (fold_build3_stat_loc): Likewise.
18738 (fold_build_call_array_loc): Likewise.
18740 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
18742 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
18743 implementation with call to...
18744 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
18746 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
18749 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
18751 PR tree-optimization/57742
18752 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
18753 after replacing the statement.
18755 2014-06-25 Nick Clifton <nickc@redhat.com>
18757 * config/v850/v850.c (GHS_default_section_names): Change to const
18759 (GHS_current_section_names): Likewise.
18760 (v850_insert_attributes): Do not build strings, just assign the
18761 names directly. Change the type of 'chosen_section' to const
18763 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
18764 directly to the array entry.
18765 * config/v850/v850.h (GHS_default_section_names): Change to const
18767 (GHS_current_section_names): Likewise.
18769 2014-06-25 Jakub Jelinek <jakub@redhat.com>
18771 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
18772 (LANG_HOOKS_DECLS): Add it.
18773 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
18775 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
18776 * langhooks.h (struct lang_hooks_for_decls): Add
18777 omp_clause_linear_ctor hook.
18778 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
18779 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
18780 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
18781 combined simd loop use omp_clause_linear_ctor hook.
18783 2014-06-24 Cong Hou <congh@google.com>
18785 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
18786 pattern recognition.
18787 (type_conversion_p): PROMOTION is true if it's a type promotion
18788 conversion, and false otherwise. Return true if the given expression
18789 is a type conversion one.
18790 * tree-vectorizer.h: Adjust the number of patterns.
18791 * tree.def: Add SAD_EXPR.
18792 * optabs.def: Add sad_optab.
18793 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
18794 * expr.c (expand_expr_real_2): Likewise.
18795 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
18796 * gimple.c (get_gimple_rhs_num_ops): Likewise.
18797 * optabs.c (optab_for_tree_code): Likewise.
18798 * tree-cfg.c (estimate_operator_cost): Likewise.
18799 * tree-ssa-operands.c (get_expr_operands): Likewise.
18800 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
18801 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
18802 * doc/generic.texi: Add document for SAD_EXPR.
18803 * doc/md.texi: Add document for ssad and usad.
18805 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
18807 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
18808 qualification in cast.
18810 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
18812 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
18813 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
18814 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
18815 (tree_function_decl): ... here.
18816 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
18817 streaming of vindex to ...
18818 (write_ts_function_decl_tree_pointers): ... here.
18819 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18820 Do not stream DECL_VINDEX.
18821 (lto_input_ts_function_decl_tree_pointers): Stream it here.
18823 2014-06-24 Catherine Moore <clm@codesourcery.com>
18824 Sandra Loosemore <sandra@codesourcery.com>
18826 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
18827 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
18828 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
18830 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
18832 * doc/invoke.texi (Warning Options): Remove duplicated
18833 -Wmaybe-uninitialized.
18835 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
18837 PR tree-optimization/57742
18838 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
18839 (handle_builtin_malloc, handle_builtin_memset): New functions.
18840 (strlen_optimize_stmt): Call them.
18841 * passes.def: Move strlen after loop+dom but before vrp.
18843 2014-06-24 Jakub Jelinek <jakub@redhat.com>
18846 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
18847 model family 6 CPU with has_longmode never use a CPU without
18850 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
18853 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
18856 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
18858 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
18859 * dominance.c (iterate_fix_dominators): Use hash_map instead of
18861 * hash-map.h: New file.
18862 * ipa-comdats.c: Use hash_map instead of pointer_map.
18864 * lto-section-out.c: Adjust.
18865 * lto-streamer.h: Replace pointer_map with hash_map.
18866 * symtab.c (verify_symtab): Likewise.
18867 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
18868 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
18869 * tree-streamer.h: Likewise.
18870 * tree-streamer.c: Adjust.
18871 * pointer-set.h: Remove pointer_map.
18873 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
18875 * hash-table.h: Add a template arg to choose between storing values
18876 and storing pointers to values, and then provide partial
18877 specializations for both.
18878 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
18879 should store, not the type values should point to.
18880 * tree-into-ssa.c (var_info_hasher): Likewise.
18881 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
18882 * tree-complex.c: Adjust.
18883 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
18884 table instead of int_tree_map *.
18885 * tree-parloops.c: Adjust.
18886 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
18887 type is being stored.
18888 * tree-vectorizer.c: Adjust.
18890 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
18892 * hash-table.h: Remove a layer of indirection from hash_table so that
18893 it contains the hash table's data instead of a pointer to the data.
18894 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
18895 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
18896 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
18897 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
18898 fold-const.c, gcse.c, ggc-common.c,
18899 gimple-ssa-strength-reduction.c, gimplify.c,
18900 graphite-clast-to-gimple.c, graphite-dependences.c,
18901 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
18902 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18903 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
18904 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
18905 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
18906 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
18907 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
18908 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
18909 tree-ssa-live.c, tree-ssa-loop-im.c,
18910 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
18911 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
18912 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18913 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
18914 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
18915 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
18916 vtable-verify.c, vtable-verify.h: Adjust.
18918 2014-06-24 Richard Biener <rguenther@suse.de>
18920 PR tree-optimization/61572
18921 * tree-ssa-sink.c (statement_sink_location): Do not sink
18922 loads from hard registers.
18924 2014-06-24 Jakub Jelinek <jakub@redhat.com>
18926 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
18927 not mentioned in clauses use private clause if the iterator is
18928 declared in #pragma omp for simd, and when adding lastprivate
18929 instead, add it to the outer #pragma omp for too. Diagnose
18930 if the variable is private in outer context. For simd collapse > 1
18931 loops, replace all iterators with temporaries.
18932 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
18933 same even in collapse > 1 loops.
18935 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
18936 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
18938 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
18939 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
18941 (gimplify_adjust_omp_clauses): Likewise.
18942 * omp-low.c (lower_rec_simd_input_clauses,
18943 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
18944 safelen the same as safelen(1).
18945 * tree-nested.c (convert_nonlocal_omp_clauses,
18946 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
18947 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
18948 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
18949 Fixup handling of GIMPLE_OMP_TARGET.
18950 (convert_tramp_reference_stmt, convert_gimple_call): Handle
18953 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
18955 PR tree-optimization/61554
18956 * tree-ssa-propagate.c: Include "bitmap.h".
18957 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
18958 properly update constructor/destructor.
18959 (substitute_and_fold_dom_walker::before_dom_children):
18960 Remove call to gimple_purge_dead_eh_edges, add bb->index to
18961 need_eh_cleaup instead.
18962 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
18965 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
18967 * varpool.c (dump_varpool_node): Dump used_by_single_function.
18968 * tree-pass.h (make_pass_ipa_single_use): New pass.
18969 * cgraph.h (used_by_single_function): New flag.
18970 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
18972 * passes.def (pass_ipa_single_use): Scedule.
18973 * ipa.c (BOTTOM): New macro.
18974 (meet): New function
18975 (propagate_single_user): New function.
18976 (ipa_single_use): New function.
18977 (pass_data_ipa_single_use): New pass.
18978 (pass_ipa_single_use): New pass.
18979 (pass_ipa_single_use::gate): New gate.
18980 (make_pass_ipa_single_use): New function.
18982 2014-06-23 Kai Tietz <ktietz@redhat.com>
18985 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
18986 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
18988 2014-06-23 Richard Biener <rguenther@suse.de>
18990 * tree-ssa-loop.c (gate_loop): New function.
18991 (pass_tree_loop::gate): Call it.
18992 (pass_data_tree_no_loop, pass_tree_no_loop,
18993 make_pass_tree_no_loop): New.
18994 * tree-vectorizer.c: Include tree-scalar-evolution.c
18995 (pass_slp_vectorize::execute): Initialize loops and SCEV if
18997 (pass_slp_vectorize::clone): New method.
18998 * timevar.def (TV_TREE_NOLOOP): New.
18999 * tree-pass.h (make_pass_tree_no_loop): Declare.
19000 * passes.def (pass_tree_no_loop): New pass group with
19003 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
19006 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19007 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19009 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19011 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19012 "yes" where needed.
19014 2014-06-23 Alan Modra <amodra@gmail.com>
19017 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19018 to zero on debug statements.
19020 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19023 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19024 Ignore third operand if present by marking qualifier_internal.
19026 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19028 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19030 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19031 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19032 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19033 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19034 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19035 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19036 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19037 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19038 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19039 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19040 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19041 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19042 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19043 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19044 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19045 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19046 logic in GCC vector extensions
19048 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19049 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19050 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19051 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19052 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19053 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19054 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19055 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19056 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19057 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19059 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19061 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19064 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19065 (vget_low_s64): Use __GET_LOW macro.
19066 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19067 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19068 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19069 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19070 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19072 (vcombine_s64): Use GCC vector extensions; remove cast.
19073 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19074 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19075 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19076 Fix type signature; remove cast.
19078 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19081 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19083 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19085 (BUILTIN_VD1): New.
19086 (BUILTIN_VD_RE): Remove.
19087 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19088 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19089 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19090 variant but not df.
19091 (vreinterpretv1df*, vreinterpret*v1df): New.
19092 (vreinterpretdf*, vreinterpret*df): Remove.
19093 * config/aarch64/aarch64-simd.md (aarch64_create,
19094 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19095 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19097 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19098 (vcreate_f64): Remove cast, use v1df builtin.
19099 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19100 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19101 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19102 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19103 vmov_n_f64, vst1_f64): Use gcc vector extensions.
19104 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19105 add range check using __builtin_aarch64_im_lane_boundsi.
19106 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19107 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19108 type signature, use gcc vector extensions.
19109 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19110 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19111 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19112 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19113 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19114 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19115 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19116 vreinterpret_u64_f64): Use v1df builtin not df.
19118 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19120 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19123 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19125 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19128 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19130 * loop-invariant.c (pre_check_invariant_p): New function.
19131 (find_invariant_insn): Call pre_check_invariant_p.
19133 2014-06-22 Richard Henderson <rth@redhat.com>
19136 * compare-elim.c (struct comparison): Add eh_note.
19137 (find_comparison_dom_walker::before_dom_children): Don't eliminate
19138 a redundant comparison in a different EH region. Purge EH edges if
19141 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19143 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19144 (var_shift): Use it.
19145 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19146 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19147 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19148 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19149 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19150 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19151 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19152 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19153 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19154 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19155 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19156 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19157 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19158 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19159 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19160 *rotldi3_internal15be): Use the new attribute. Merge register and
19161 integer alternatives.
19163 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19165 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
19166 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
19167 split, *ashrdi3_internal3 and split): Delete, merge into...
19168 (ashr<mode>3): New expander.
19169 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
19170 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
19172 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19174 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
19175 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
19176 *rotldi3_internal3 and split): Delete, merge into...
19177 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
19178 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
19179 Use "rotlw" extended mnemonic.
19181 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19183 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
19184 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
19185 and split, *ashldi3_internal3 and split): Delete, merge into...
19186 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
19187 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
19189 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19191 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
19192 (lshrsi3, two anonymous define_insns and define_splits,
19193 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
19194 *lshrdi3_internal3 and split): Delete, merge into...
19195 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
19196 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
19198 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19200 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
19201 Remove "O" alternative.
19203 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
19205 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
19206 (mips_move_from_gpr_cost): Likewise.
19207 (mips_register_move_cost): Update accordingly.
19208 (mips_secondary_reload_class): Remove name of in_p.
19210 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
19213 * config/i386/i386.md (x86_64_shrd, x86_shrd,
19214 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
19216 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19218 * config/nios2/nios2.c: Include "builtins.h".
19220 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19222 * cgraph.h (tls_model_names): New variable.
19223 * print-tree.c (print_node): Simplify.
19224 * varpool.c (tls_model_names): New variable.
19225 (dump_varpool_node): Output tls model.
19227 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19229 * ipa-visibility.c (function_and_variable_visibility): Disable
19230 temporarily local aliases for some targets.
19232 2014-06-20 Marek Polacek <polacek@redhat.com>
19234 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
19235 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
19236 into SANITIZE_UNDEFINED.
19237 * doc/invoke.texi: Describe -fsanitize=bounds.
19238 * gimplify.c (gimplify_call_expr): Add gimplification of internal
19239 functions created in the FEs.
19240 * internal-fn.c: Move "internal-fn.h" after "tree.h".
19241 (expand_UBSAN_BOUNDS): New function.
19242 * internal-fn.def (UBSAN_BOUNDS): New internal function.
19243 * internal-fn.h: Don't define internal functions here.
19244 * opts.c (common_handle_option): Add -fsanitize=bounds.
19245 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
19246 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
19247 * tree-core.h: Define internal functions here.
19248 (struct tree_base): Add ifn field.
19249 * tree-pretty-print.c: Include "internal-fn.h".
19250 (dump_generic_node): Handle functions without CALL_EXPR_FN.
19251 * tree.c (get_callee_fndecl): Likewise.
19252 (build_call_expr_internal_loc): New function.
19253 * tree.def (CALL_EXPR): Update description.
19254 * tree.h (CALL_EXPR_IFN): Define.
19255 (build_call_expr_internal_loc): Declare.
19256 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
19258 (ubsan_type_descriptor): Change bool parameter to enum
19259 ubsan_print_style. Adjust the code. Add handling of
19261 (ubsan_expand_bounds_ifn): New function.
19262 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
19263 (ubsan_build_overflow_builtin): Likewise.
19264 (instrument_bool_enum_load): Likewise.
19265 (ubsan_instrument_float_cast): Likewise.
19266 * ubsan.h (enum ubsan_print_style): New enum.
19267 (ubsan_expand_bounds_ifn): Declare.
19268 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
19270 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
19272 * config/rs6000/rs6000.md: Append `DONE' to preparation
19273 statements of `bswap' pattern splitters.
19275 2014-06-20 Tom de Vries <tom@codesourcery.com>
19277 * target.def (call_fusage_contains_non_callee_clobbers): Update
19279 * doc/tm.texi: Regenerate.
19281 2014-06-20 Yury Gribov <y.gribov@samsung.com>
19282 Max Ostapenko <m.ostapenko@partner.samsung.com>
19285 * asan.c (instrument_strlen_call): Fixed instrumentation of
19288 2014-06-20 Martin Jambor <mjambor@suse.cz>
19291 * ipa-prop.c (impossible_devirt_target): New function.
19292 (try_make_edge_direct_virtual_call): Use it, also instead of
19295 2014-06-20 Yury Gribov <y.gribov@samsung.com>
19296 Max Ostapenko <m.ostapenko@partner.samsung.com>
19299 * asan.c (build_check_stmt): Add condition.
19301 2014-06-20 Martin Jambor <mjambor@suse.cz>
19304 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
19307 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19309 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
19311 (VCONQ): Make comment more helpful.
19313 * config/aarch64/aarch64-simd.md
19314 (aarch64_sqdmulh_lane<mode>):
19315 Use VCOND for operands 2. Update lane checking and flipping logic.
19316 (aarch64_sqrdmulh_lane<mode>): Likewise.
19317 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
19318 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
19319 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
19320 attribute of operand 3 to VCOND.
19321 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
19322 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
19323 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
19324 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
19325 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
19326 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
19328 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
19329 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
19330 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
19331 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
19332 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
19333 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
19334 operand to VCOND. Update lane flipping and bounds checking logic.
19335 (aarch64_sqdmlal2_lane<mode>): Likewise.
19336 (aarch64_sqdmlsl_lane<mode>): Likewise.
19337 (aarch64_sqdmull_lane<mode>): Likewise.
19338 (aarch64_sqdmull2_lane<mode>): Likewise.
19339 (aarch64_sqdmlal_laneq<mode>):
19340 Replace VCON usage with VCONQ.
19341 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
19342 (aarch64_sqdmlal2_laneq<mode>): Emit
19343 aarch64_sqdmlal2_laneq<mode>_internal insn.
19344 Replace VCON with VCONQ.
19345 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
19346 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19347 (aarch64_sqdmull_laneq<mode>): Emit
19348 aarch64_sqdmull_laneq<mode>_internal insn.
19349 Replace VCON with VCONQ.
19350 (aarch64_sqdmull2_laneq<mode>): Emit
19351 aarch64_sqdmull2_laneq<mode>_internal insn.
19352 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
19353 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
19354 of 3rd argument to int16x4_t.
19355 (vqdmlalh_lane_s16): Likewise.
19356 (vqdmlslh_lane_s16): Likewise.
19357 (vqdmull_high_lane_s16): Likewise.
19358 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
19359 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
19360 (vqdmlsl_lane_s16): Likewise.
19361 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
19362 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
19363 (vqdmlals_lane_s32): Likewise.
19364 (vqdmlsls_lane_s32): Likewise.
19365 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
19366 (vqdmulls_lane_s32): Likewise.
19367 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
19368 (vqdmlsl_lane_s32): Likewise.
19369 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
19370 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
19371 (vqrdmulhh_lane_s16): Likewise.
19372 (vqdmlsl_high_lane_s16): Likewise.
19373 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
19374 (vqdmlsl_high_lane_s32): Likewise.
19375 (vqrdmulhs_lane_s32): Likewise.
19377 2014-06-20 Tom de Vries <tom@codesourcery.com>
19379 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
19380 get_call_reg_set_usage.
19382 2014-06-20 Tom de Vries <tom@codesourcery.com>
19384 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
19385 it contains all call_used_regs.
19387 2014-06-20 Tom de Vries <tom@codesourcery.com>
19389 * final.c (collect_fn_hard_reg_usage): Add and use variable
19390 function_used_regs.
19392 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19394 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
19395 (set_init_priority, get_init_priority, set_fini_priority,
19396 get_fini_priority): New methods.
19397 * tree.c (init_priority_for_decl): Remove.
19398 (init_ttree): Do not initialize init priority.
19399 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
19400 (decl_priority_info): Remove.
19401 (decl_init_priority_insert): Rewrite.
19402 (decl_fini_priority_insert): Rewrite.
19403 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
19404 tree_priority_map_marked_p): Remove.
19405 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
19406 * lto-streamer-out.c (hash_tree): Do not hash priorities.
19407 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
19408 not output priorities.
19409 (pack_ts_function_decl_value_fields): Likewise.
19410 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
19411 not input priorities.
19412 (unpack_ts_function_decl_value_fields): Likewise.
19413 * symtab.c (symbol_priority_map): Declare.
19414 (init_priority_hash): Declare.
19415 (symtab_unregister_node): Unregister from priority hash, too.
19416 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
19418 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
19419 (symbol_priority_info): New function.
19420 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
19422 * tree-core.h (tree_priority_map): Remove.
19424 2014-06-20 Jakub Jelinek <jakub@redhat.com>
19426 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
19427 0xff to uint64_t before shifting it up.
19429 2014-06-20 Julian Brown <julian@codesourcery.com>
19430 Chung-Lin Tang <cltang@codesourcery.com>
19432 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
19433 TARGET_THUMB1_ONLY. Add comments.
19435 2014-06-19 Tom de Vries <tom@codesourcery.com>
19437 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
19438 return type to void.
19439 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
19441 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19443 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
19444 as "move", from depends_on.
19446 2014-06-19 Terry Guo <terry.guo@arm.com>
19448 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
19451 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
19453 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
19455 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
19457 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
19460 * config/sh/sh.c (prepare_move_operands): Don't process TLS
19461 addresses here if reload in progress or completed.
19463 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
19465 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
19466 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
19467 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
19468 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
19469 (mips_register_priority): New function that implements the target
19470 hook TARGET_REGISTER_PRIORITY.
19471 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
19472 (mips_lra_p): Likewise for TARGET_LRA_P.
19473 (TARGET_REGISTER_PRIORITY): Define macro.
19474 (TARGET_SPILL_CLASS): Likewise.
19475 (TARGET_LRA_P): Likewise.
19476 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
19478 (REG_CLASS_NAMES): Likewise.
19479 (REG_CLASS_CONTENTS): Likewise.
19480 (BASE_REG_CLASS): Use M16_SP_REGS.
19481 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
19482 New set attribute to enable alternatives depending on the register
19484 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
19485 (*lea64): Disable pattern for MIPS16.
19486 * config/mips/mips.opt (mlra): New option.
19488 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
19490 * lra-constraints.c (base_to_reg): New function.
19491 (process_address): Use new function.
19493 2014-06-18 Tom de Vries <tom@codesourcery.com>
19495 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
19496 * config/aarch64/aarch64.c
19497 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
19498 (aarch64_emit_call_insn): New function.
19499 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
19501 * config/aarch64/aarch64.md (define_expand "call_internal")
19502 (define_expand "call_value_internal", define_expand "sibcall_internal")
19503 (define_expand "sibcall_value_internal"): New.
19504 (define_expand "call", define_expand "call_value")
19505 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
19506 expand variant and aarch64_emit_call_insn.
19508 2014-06-18 Radovan Obradovic <robradovic@mips.com>
19509 Tom de Vries <tom@codesourcery.com>
19511 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
19512 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19514 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
19515 clobbers to CALL_INSN_FUNCTION_USAGE.
19516 (define_expand "sibcall_internal")
19517 (define_expand "sibcall_value_internal"): New.
19518 (define_expand "call", define_expand "call_value"): Add argument to
19519 arm_emit_call_insn.
19520 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
19521 (define_expand "sibcall_value"): Use sibcall_value_internal and
19522 arm_emit_call_insn.
19524 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19526 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
19528 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19530 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
19533 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19535 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
19536 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
19537 annotations. Fix DWARF information.
19539 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19541 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
19542 __udivmoddi4, and fixups for negative operands.
19544 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19546 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
19548 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19550 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
19553 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19555 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
19558 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19560 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
19561 describing register usage on function entry and exit.
19563 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19565 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
19566 (__aeabi_ldivmod): Fix whitespace.
19568 2014-06-18 Andreas Schwab <schwab@suse.de>
19570 * doc/md.texi (Standard Names): Use @itemx for grouped items.
19571 Remove blank line after @item.
19573 2014-06-18 Richard Henderson <rth@redhat.com>
19576 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
19578 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
19580 * config/arm/arm.c (neon_vector_mem_operand): Allow register
19581 POST_MODIFY for neon loads and stores.
19582 (arm_print_operand): Output post-index register for neon loads and
19585 2014-06-18 Richard Biener <rguenther@suse.de>
19587 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
19589 2014-06-18 Richard Biener <rguenther@suse.de>
19591 * tree-pass.h (make_pass_dce_loop): Remove.
19592 * passes.def: Replace pass_dce_loop with pass_dce.
19593 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
19594 changed free niter estimates and reset the scev cache.
19595 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
19596 make_pass_dce_loop): Remove.
19597 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
19598 (fini_copy_prop): Return whether something changed. Always
19599 let substitute_and_fold perform DCE and free niter estimates
19600 and reset the scev cache if so.
19601 (execute_copy_prop): If sth changed schedule cleanup-cfg.
19602 (pass_data_copy_prop): Do not unconditionally schedule
19603 cleanup-cfg or update-ssa.
19605 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
19607 PR tree-optimization/61518
19608 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19609 reduction var is used in reduction stmt or phi-function only.
19611 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19613 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
19615 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
19617 PR tree-optimization/61517
19618 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
19619 whose rhs's first tree is the source expression instead of the
19621 (find_bswap_or_nop): Likewise.
19622 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
19623 gimple stmt whose rhs's first tree is the source. In the memory source
19624 case, move the stmt to be replaced close to one of the original load to
19625 avoid the problem of a store between the load and the stmt's original
19627 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
19630 2014-06-18 Andreas Schwab <schwab@suse.de>
19632 PR rtl-optimization/54555
19633 * postreload.c (move2add_use_add2_insn): Substitute
19634 STRICT_LOW_PART only if it is cheaper.
19636 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
19638 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
19639 Do not use unspec as call operand. Use memory_operand instead of
19640 memory_nox32_operand and add "m" operand constraint. Disable
19641 pattern for TARGET_X32.
19642 (*sibcall_pop_memory): Ditto.
19643 (*sibcall_value_memory): Ditto.
19644 (*sibcall_value_pop_memory): Ditto.
19645 (sibcall peepholes): Merge SImode and DImode patterns using
19646 W mode iterator. Use memory_operand instead of memory_nox32_operand.
19647 Disable pattern for TARGET_X32. Check if eliminated register is
19648 really dead after call insn. Generate call RTX without unspec operand.
19649 (sibcall_value peepholes): Ditto.
19650 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
19651 instead of memory_nox32_operand. Check if eliminated register is
19652 really dead after call insn. Generate call RTX without unspec operand.
19653 (sibcall_value_pop peepholes): Ditto.
19654 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
19656 2014-06-18 Terry Guo <terry.guo@arm.com>
19659 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
19662 2014-06-18 Olivier Hainque <hainque@adacore.com>
19664 * tree-core.h (tree_block): Add an "end_locus" field, allowing
19665 memorization of the end of block source location.
19666 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
19667 * gimplify.c (gimplify_bind_expr): Propagate the block start and
19668 end source location info we have on the block entry/exit code we
19671 2014-06-18 Richard Biener <rguenther@suse.de>
19673 * common.opt (fssa-phiopt): New option.
19674 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
19676 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
19677 * doc/invoke.texi (-fssa-phiopt): Document.
19679 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19681 * genattrtab.c (n_bypassed): New variable.
19682 (process_bypasses): Initialise n_bypassed.
19683 Count number of bypassed reservations.
19684 (make_automaton_attrs): Allocate space for bypassed reservations
19685 rather than number of bypasses.
19687 2014-06-18 Richard Biener <rguenther@suse.de>
19689 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
19690 we propagated anything.
19691 (substitute_and_fold_dom_walker::before_dom_children): Something
19692 changed if we propagated into PHI arguments.
19693 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
19696 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
19698 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
19700 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
19701 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
19702 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
19703 Introduces alternative way of loads group permutaions.
19704 (vect_transform_grouped_load): Try alternative way of permutations.
19706 2014-06-18 Jakub Jelinek <jakub@redhat.com>
19708 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
19709 changed in ORT_TARGET region, don't jump to do_outer.
19710 (struct gimplify_adjust_omp_clauses_data): New type.
19711 (gimplify_adjust_omp_clauses_1): Adjust for data being
19712 a struct gimplify_adjust_omp_clauses_data pointer instead
19713 of tree *. Pass pre_p as a new argument to
19714 lang_hooks.decls.omp_finish_clause hook.
19715 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
19716 splay_tree_foreach to pass both list_p and pre_p.
19717 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
19718 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
19719 gimplify_adjust_omp_clauses callers.
19720 * langhooks.c (lhd_omp_finish_clause): New function.
19721 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
19722 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
19723 * langhooks.h (struct lang_hooks_for_decls): Add a new
19724 gimple_seq * argument to omp_finish_clause hook.
19725 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
19726 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
19727 (scan_omp_parallel, lower_omp_for): When adding
19728 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
19729 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
19730 * tree-nested.c (convert_nonlocal_omp_clauses,
19731 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
19732 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
19734 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
19736 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
19737 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
19739 2014-06-17 Xinliang David Li <davidxl@google.com>
19741 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
19742 * passes.c (pass_init_dump_file): Do not set initialize
19743 flag to false unconditionally.
19745 2014-06-17 Richard Biener <rguenther@suse.de>
19747 * genopinit.c (main): Use vec<>::qsort method.
19748 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
19750 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
19752 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
19754 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
19755 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
19756 (mips_move_to_gpr_cost): Remove ST_REGS case.
19757 (mips_move_from_gpr_cost): Likewise.
19758 (mips_register_move_cost): Likewise.
19759 (mips_secondary_reload_class): Likewise.
19761 2014-06-17 Richard Biener <rguenther@suse.de>
19763 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
19764 (pass_all_optimizations): Move 3rd copy-prop pass from after
19765 fre to before ifcombine/phiopt.
19767 2014-06-17 Richard Biener <rguenther@suse.de>
19769 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
19770 and allow all blocks to be forwarders.
19772 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
19775 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
19776 variable 'size'; calculate 'size' right in the front; use
19777 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
19778 pcum->aapcs_stack_words.
19780 2014-06-17 Nick Clifton <nickc@redhat.com>
19782 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
19783 (umulhi3, mulsidi3, umulsidi3): Likewise.
19785 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
19787 PR middle-end/61508
19788 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
19789 check for section name.
19791 2014-06-17 Richard Biener <rguenther@suse.de>
19793 * tree-ssa-propagate.c: Include domwalk.h.
19794 (substitute_and_fold): Outline main worker into a domwalker ...
19795 (substitute_and_fold_dom_walker::before_dom_children): ... here.
19796 Schedule stmts we can fully propagate for removal. Remove
19798 (substitute_and_fold): Apply a dominator walk to perform
19799 substitution. Process stmts scheduled for removal here.
19801 2014-06-17 Richard Biener <rguenther@suse.de>
19803 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
19804 of PHI node moving.
19806 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
19808 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
19809 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
19810 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19811 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
19812 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
19814 (get_fpscr) : Likewise.
19816 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
19818 PR rtl-optimization/61325
19819 * lra-constraints.c (valid_address_p): Add forward declaration.
19820 (simplify_operand_subreg): Check address validity before and after
19821 alter_reg of memory subreg.
19823 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
19825 * config/i386/i386.c (decide_alg): Correctly handle
19826 maximum size of stringop algorithm.
19828 2014-06-16 Yury Gribov <y.gribov@samsung.com>
19830 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
19832 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
19834 PR rtl-optimization/61522
19835 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
19837 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
19840 * symtab.c (symtab_node::reset_section): New method.
19841 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
19843 * cgraph.h (reset_section): Declare.
19844 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
19845 do not consider comdat locals.
19846 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
19848 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
19849 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
19850 reset sections of symbols dragged out of the comdats.
19851 (function_and_variable_visibility): Reset sections of
19854 2014-06-16 Richard Biener <rguenther@suse.de>
19856 PR tree-optimization/61482
19857 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
19858 [-INF(OVF), +INF(OVF)] range.
19860 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
19862 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
19863 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
19864 handling 32-bit multiplication.
19866 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
19868 PR middle-end/61430
19869 * lra-lives.c (process_bb_lives): Skip creating copy during
19870 insn scan when src/dest has constrained to same regno.
19872 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
19874 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
19875 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
19877 2014-06-16 Yury Gribov <y.gribov@samsung.com>
19879 * asan.c (check_func): New function.
19880 (maybe_create_ssa_name): Likewise.
19881 (build_check_stmt_with_calls): Likewise.
19882 (use_calls_p): Likewise.
19883 (report_error_func): Change interface.
19884 (build_check_stmt): Allow non-integer lengths; add support
19886 (asan_instrument): Likewise.
19887 (instrument_mem_region_access): Moved code to build_check_stmt.
19888 (instrument_derefs): Likewise.
19889 (instrument_strlen_call): Likewise.
19890 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
19891 * doc/invoke.texi: Describe new parameter.
19892 * params.def: Define new parameter.
19893 * params.h: Likewise.
19894 * sanitizer.def: Describe new builtins.
19896 2014-06-16 Richard Biener <rguenther@suse.de>
19898 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19899 Make all defs available at the end.
19900 (eliminate): If we remove a PHI node schedule cfg-cleanup.
19902 2014-06-18 Jakub Jelinek <jakub@redhat.com>
19905 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
19907 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
19910 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
19911 initialization. Replace remaining use of uid.
19913 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
19915 * c-family/c-common.c (handle_tls_model_attribute): Use
19916 set_decl_tls_model.
19917 * c-family/c-common.c (handle_tls_model_attribute): Use
19918 set_decl_tls_model.
19919 * cgraph.h (struct varpool_node): Add tls_model.
19920 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
19921 * tree.h (DECL_TLS_MODEL): Update.
19922 (DECL_THREAD_LOCAL_P): Check that variable is static.
19923 (decl_tls_model): Declare.
19924 (set_decl_tls_model): Declare.
19925 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
19926 set symbol prorperties.
19927 (get_emutls_init_templ_addr): Cleanup.
19928 (new_emutls_decl): Update.
19929 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
19930 (lto_input_varpool_node): Likewise.
19931 * lto-streamer-out.c (hash_tree): Likewise.
19932 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
19933 not stream DECL_TLS_MODEL.
19934 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
19935 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
19937 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
19939 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
19941 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
19943 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
19944 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
19946 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
19947 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
19948 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
19949 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
19950 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
19951 (df_get_artificial_defs, df_get_artificial_uses)
19952 (df_single_def, df_single_use): Update accordingly.
19953 (df_refs_chain_dump): Take the first element in a linked list as
19954 parameter, rather than a pointer to an array of pointers.
19955 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
19956 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
19957 (df_chain_create_bb_process_use): Likewise.
19958 (df_md_bb_local_compute_process_def): Likewise.
19959 * fwprop.c (process_defs, process_uses): Likewise.
19960 (register_active_defs, update_uses): Likewise.
19961 (forward_propagate_asm): Update for new df_ref linking.
19962 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
19963 (df_null_ref_rec, df_null_mw_rec): Likewise.
19964 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
19966 (df_scan_free_bb_info): Remove check for null artificial_defs.
19967 (df_install_ref_incremental): Adjust for new df_ref linking.
19968 Use a single-element insertion rather than a full sort.
19969 (df_ref_chain_delete_du_chain): Take the first element
19970 in a linked list as parameter, rather than a pointer to an array of
19972 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
19973 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
19974 (df_insn_info_delete): Remove check for null defs and call to
19975 df_scan_free_mws_vec.
19976 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
19977 null rather than df_null_*_rec.
19978 (df_insn_rescan_debug_internal): Likewise, and update null
19979 checks in the same way. Remove check for null defs.
19980 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
19981 Move a single element rather doing a full sort.
19982 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
19984 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
19985 Initialize df_ref and df_mw_hardreg lists to null rather than
19987 (df_ref_compare): Take df_refs as parameter, transferring the
19988 old interface to...
19989 (df_ref_ptr_compare): ...this new function.
19990 (df_sort_and_compress_refs): Update accordingly.
19991 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
19992 old interface to...
19993 (df_mw_ptr_compare): ...this new function.
19994 (df_sort_and_compress_mws): Update accordingly.
19995 (df_install_refs, df_install_mws): Return a linked list rather than
19996 an array of pointers.
19997 (df_refs_add_to_chains): Assert that old lists are empty rather
19999 (df_insn_refs_verify): Don't handle null defs speciailly.
20000 * web.c (union_match_dups): Update for new df_ref linking.
20002 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20004 * df.h (df_ref_create, df_ref_remove): Delete.
20005 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20006 (df_ref_remove): Likewise.
20008 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20010 * df.h (df_single_def, df_single_use): New functions.
20011 * ira.c (find_moveable_pseudos): Use them.
20013 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20015 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20016 * df-problems.c (df_note_bb_compute): Use it.
20017 * regstat.c (regstat_bb_compute_ri): Likewise.
20019 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20021 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20022 * cse.c (cse_extended_basic_block): Use them.
20023 * dce.c (mark_artificial_use): Likewise.
20024 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20025 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20026 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20027 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20028 (df_simulate_initialize_backwards): Likewise.
20029 (df_simulate_finalize_backwards): Likewise.
20030 (df_simulate_initialize_forwards): Likewise.
20031 (df_md_simulate_artificial_defs_at_top): Likewise.
20032 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20033 * regrename.c (init_rename_info): Likewise.
20034 * regstat.c (regstat_bb_compute_ri): Likewise.
20035 (regstat_bb_compute_calls_crossed): Likewise.
20037 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20039 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20040 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20041 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20042 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20043 * combine.c (create_log_links): Likewise.
20044 * compare-elim.c (find_flags_uses_in_insn): Likewise.
20045 (try_eliminate_compare): Likewise.
20046 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20047 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20048 (remove_reg_equal_equiv_notes_for_defs): Likewise.
20049 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20050 (word_dce_process_block, dce_process_block): Likewise.
20051 * ddg.c (def_has_ccmode_p): Likewise.
20052 * df-core.c (df_bb_regno_first_def_find): Likewise.
20053 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20054 * df-problems.c (df_rd_simulate_one_insn): Likewise.
20055 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20056 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20057 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20058 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20059 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20060 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20061 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20062 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20063 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20064 * fwprop.c (local_ref_killed_between_p): Likewise.
20065 (all_uses_available_at, free_load_extend): Likewise.
20066 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20067 * hw-doloop.c (scan_loop): Likewise.
20068 * ifcvt.c (dead_or_predicable): Likewise.
20069 * init-regs.c (initialize_uninitialized_regs): Likewise.
20070 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20071 (process_bb_node_lives): Likewise.
20072 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20073 (find_moveable_pseudos): Likewise.
20074 * loop-invariant.c (check_dependencies, record_uses): Likewise.
20075 * recog.c (peep2_find_free_register): Likewise.
20076 * ree.c (get_defs): Likewise.
20077 * regstat.c (regstat_bb_compute_ri): Likewise.
20078 (regstat_bb_compute_calls_crossed): Likewise.
20079 * sched-deps.c (find_inc, find_mem): Likewise.
20080 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20081 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20082 * shrink-wrap.c (requires_stack_frame_p): Likewise.
20083 (prepare_shrink_wrap): Likewise.
20084 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20085 * web.c (union_defs, pass_web::execute): Likewise.
20086 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20087 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20089 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
20091 * lra-assign.c (assign_by_spills): Add code to assign vector regs
20092 to inheritance pseudos.
20093 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20095 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
20098 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20099 (BU_MISC_2): Rename to ...
20100 (BU_LDBL128_2): ... this.
20101 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20102 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20103 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20104 RS6000_BTM_LDBL128.
20105 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20106 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20107 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20108 (unpacktf_1): Likewise.
20109 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20110 (__builtin_longdouble_dw1): Likewise.
20111 * doc/sourcebuild.texi (longdouble128): Document.
20113 2014-06-13 Jeff Law <law@redhat.com>
20115 PR rtl-optimization/61094
20116 PR rtl-optimization/61446
20117 * ree.c (combine_reaching_defs): Get the mode for the copy from
20118 the extension insn rather than the defining insn.
20120 2014-06-13 Dehao Chen <dehao@google.com>
20122 * dwarf2out.c (add_linkage_name): Emit more linkage name.
20124 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
20126 * doc/install.texi (--enable-linker-plugin-configure-flags)
20127 (--enable-linker-plugin-flags): Document new flags.
20129 2014-06-13 Martin Jambor <mjambor@suse.cz>
20132 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20133 cache_token if returning early.
20135 2014-06-13 Nick Clifton <nickc@redhat.com>
20137 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20138 requested alignment is active.
20139 (LABEL_ALIGN): Likewise.
20140 (LOOP_ALIGN): Likewise.
20142 2014-06-13 Richard Biener <rguenther@suse.de>
20144 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20145 Rewrite to propagate the VN result into all uses where
20146 possible and to remove stmts becoming dead because of that.
20147 (eliminate): Generalize stmt removal handling, remove in
20148 reverse dominator order to support proper debug stmt
20149 generation. Update stmts before removing stmts.
20150 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20152 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20154 PR tree-optimization/61375
20155 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20156 symbolic number cannot be represented in an uint64_t.
20157 (find_bswap_or_nop_1): Likewise.
20159 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20161 * symtab.c (symtab_node::reset_section): New method.
20162 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20164 * cgraph.h (reset_section): Declare.
20165 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20166 do not consider comdat locals.
20167 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20169 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20170 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20171 reset sections of symbols dragged out of the comdats.
20172 (function_and_variable_visibility): Reset sections of
20175 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20177 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
20178 to use symtab and decl_binds_to_current_def_p
20179 * tree-vectorizer.c (increase_alignment): Increase alignment
20180 of alias target, too.
20182 2014-06-12 Jakub Jelinek <jakub@redhat.com>
20184 PR middle-end/61486
20185 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
20186 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
20187 if outer combined construct is distribute.
20188 (gimplify_omp_for): For OMP_DISTRIBUTE set
20189 gimplify_omp_ctxp->distribute.
20190 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
20191 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
20192 mapping into decl map.
20194 2014-06-12 Jason Merrill <jason@redhat.com>
20196 * common.opt (fabi-version): Change default to 0.
20198 2014-06-12 Jason Merrill <jason@redhat.com>
20200 * toplev.c (process_options): Reject -fabi-version=1.
20202 2014-06-12 Jeff Law <law@redhat.com>
20204 PR tree-optimization/61009
20205 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
20206 value when we stop processing a block due to problematic PHIs.
20208 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
20210 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
20211 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
20212 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
20213 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
20214 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
20215 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
20216 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
20217 are not in the spec.
20219 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
20222 * config/aarch64/aarch64-modes.def: Add V1DFmode.
20223 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
20226 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
20228 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
20230 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
20233 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
20234 loading from address spaces.
20236 2014-06-12 Martin Liska <mliska@suse.cz>
20239 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
20240 statement is reachable.
20242 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
20244 * symtab.c (section_hash): New hash.
20245 (symtab_unregister_node): Clear section before freeing.
20246 (hash_section_hash_entry): New haser.
20247 (eq_sections): New function.
20248 (symtab_node::set_section_for_node): New method.
20249 (set_section_1): Update.
20250 (symtab_node::set_section): Take string instead of tree as parameter.
20251 (symtab_resolve_alias): Update.
20252 * cgraph.h (section_hash_entry_d): New structure.
20253 (section_hash_entry): New typedef.
20254 (cgraph_node): Change comdat_group_ to x_comdat_group,
20255 change section_ to x_section and turn into section_hash_entry;
20256 update accestors; put set_section_for_node offline.
20257 * tree.c (decl_section_name): Turn into string.
20258 (set_decl_section_name): Change parameter to be string.
20259 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
20260 * sdbout.c (sdbout_one_type): Update.
20261 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
20262 * varasm.c (IN_NAMED_SECTION, get_named_section,
20263 resolve_unique_section, hot_function_section, get_named_text_section,
20264 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
20265 make_decl_rtl, default_unique_section): Update.
20266 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
20267 (c6x_elf_unique_section): Update.
20268 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
20269 * config/pa/pa.c (pa_function_section): Update.
20270 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
20271 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
20272 * config/arc/arc.c (arc_in_small_data_p): Update.
20273 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
20274 * config/mcore/mcore.c (mcore_unique_section): Update.
20275 * config/mips/mips.c (mips16_build_function_stub): Update.
20276 (mips16_build_call_stub): Update.
20277 (mips_function_rodata_section): Update.
20278 (mips_in_small_data_p): Update.
20279 * config/score/score.c (score_in_small_data_p): Update.
20280 * config/rx/rx.c (rx_in_small_data): Update.
20281 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
20282 (rs6000_xcoff_asm_named_section): Update.
20283 (rs6000_xcoff_unique_section): Update.
20284 * config/frv/frv.c (frv_string_begins_with): Update.
20285 (frv_in_small_data_p): Update.
20286 * config/v850/v850.c (v850_encode_data_area): Update.
20287 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
20288 (bfin_handle_l1_data_attribute): Update.
20289 (bfin_handle_l2_attribute): Update.
20290 * config/mep/mep.c (mep_unique_section): Update.
20291 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
20293 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
20294 (h8300_handle_tiny_data_attribute): Update.
20295 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
20296 (m32r_in_small_data_p): Update.
20297 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
20298 * config/i386/i386.c (ix86_in_large_data_p): Update.
20299 * config/i386/winnt.c (i386_pe_unique_section): Update.
20300 * config/darwin.c (darwin_function_section): Update.
20301 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
20302 * tree-emutls.c (get_emutls_init_templ_addr): Update.
20303 (new_emutls_decl): Update.
20304 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
20305 input_varpool_node): Update.
20306 (ead_string_cst): Turn to ...
20307 (read_string): ... this one.
20308 * dwarf2out.c (secname_for_decl): Update.
20309 * asan.c (asan_protect_global): Update.
20311 2014-06-11 DJ Delorie <dj@redhat.com>
20313 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
20315 * config/rx/rx.c (rx_option_override): Likewise.
20316 (rx_align_for_label): Likewise.
20318 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
20320 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
20322 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
20325 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20327 * common.md: New file.
20328 * doc/md.texi: Update description of generic, machine-independent
20330 * config/s390/constraints.md (e): Delete.
20331 * Makefile.in (md_file): Include common.md.
20332 * config/m32c/t-m32c (md_file): Likewise.
20333 * genpreds.c (general_mem): New array.
20334 (generic_constraint_letters): Remove constraints now defined by
20336 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20337 Allow the first character to be '<' or '>' as well.
20338 * genoutput.c (general_mem): New array.
20339 (indep_constraints): Remove constraints now defined by common.md.
20340 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20341 Remove special handling of 'm'.
20342 * ira-costs.c (record_reg_classes): Remove special handling of
20343 constraints now defined by common.md.
20344 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20345 * ira-lives.c (single_reg_class): Likewise.
20346 (ira_implicitly_set_insn_hard_regs): Likewise.
20347 * lra-constraints.c (reg_class_from_constraints): Likewise.
20348 (process_alt_operands, process_address, curr_insn_transform): Likewise.
20349 * postreload.c (reload_cse_simplify_operands): Likewise.
20350 * reload.c (push_secondary_reload, scratch_reload_class)
20351 (find_reloads, alternative_allows_const_pool_ref): Likewise.
20352 * reload1.c (maybe_fix_stack_asms): Likewise.
20353 * targhooks.c (default_secondary_reload): Likewise.
20354 * stmt.c (parse_output_constraint): Likewise.
20355 * recog.c (preprocess_constraints): Likewise.
20356 (constrain_operands, peep2_find_free_register): Likewise.
20357 (asm_operand_ok): Likewise, but add a comment saying why 'o'
20358 must be handled specially.
20360 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20362 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
20363 * genpreds.c (have_const_dbl_constraints): Delete.
20364 (add_constraint): Don't set it.
20365 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
20366 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
20367 constraints using the lookup_constraint logic.
20368 * ira-lives.c (single_reg_class): Likewise.
20369 * ira.c (ira_setup_alts): Likewise.
20370 * lra-constraints.c (process_alt_operands): Likewise.
20371 * recog.c (asm_operand_ok, constrain_operands): Likewise.
20372 * reload.c (find_reloads): Likewise.
20374 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20376 * genpreds.c (const_int_start, const_int_end): New variables.
20377 (choose_enum_order): Output CONST_INT constraints before memory
20379 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
20381 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
20382 * ira.c (ira_setup_alts): Likewise.
20383 * lra-constraints.c (process_alt_operands): Likewise.
20384 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20385 * reload.c (find_reloads): Likewise.
20387 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20389 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
20390 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
20391 * recog.c (preprocess_constraints): Update accordingly.
20393 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20395 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
20396 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
20397 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
20398 * genpreds.c (print_type_tree): New function.
20399 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
20400 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
20401 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
20402 Write out enum constraint_type and get_constraint_type.
20403 * lra-constraints.c (satisfies_memory_constraint_p): Take a
20404 constraint_num rather than a constraint string.
20405 (satisfies_address_constraint_p): Likewise.
20406 (reg_class_from_constraints): Avoid old constraint macros.
20407 (process_alt_operands, process_address_1): Likewise.
20408 (curr_insn_transform): Likewise.
20409 * ira-costs.c (record_reg_classes): Likewise.
20410 (record_operand_costs): Likewise.
20411 * ira-lives.c (single_reg_class): Likewise.
20412 (ira_implicitly_set_insn_hard_regs): Likewise.
20413 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20414 * postreload.c (reload_cse_simplify_operands): Likewise.
20415 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
20416 (constrain_operands, peep2_find_free_register): Likewise.
20417 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
20418 (find_reloads, alternative_allows_const_pool_ref): Likewise.
20419 * reload1.c (maybe_fix_stack_asms): Likewise.
20420 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
20421 * targhooks.c (default_secondary_reload): Likewise.
20422 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
20423 to EXTRA_CONSTRAINT_STR.
20424 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
20426 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20428 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
20429 (write_constraint_satisfied_p_array): ...this new function.
20430 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
20432 (write_insn_preds_c): Update accordingly.
20434 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20436 * genpreds.c (write_lookup_constraint): Rename to...
20437 (write_lookup_constraint_1): ...this.
20438 (write_lookup_constraint_array): New function.
20439 (write_tm_preds_h): Define lookup_constraint as an inline function
20440 that uses write_lookup_constraint_array where possible.
20441 (write_insn_preds_c): Update for the changes above.
20443 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20445 * doc/md.texi (regclass_for_constraint): Rename to...
20446 (reg_class_for_constraint): ...this.
20447 * genpreds.c (num_constraints, enum_order, register_start)
20448 (register_end, satisfied_start, memory_start, memory_end)
20449 (address_start, address_end): New variables.
20450 (add_constraint): Count the number of constraints.
20451 (choose_enum_order): New function.
20452 (write_enum_constraint_num): Iterate over enum_order.
20453 (write_regclass_for_constraint): Rename to...
20454 (write_reg_class_for_constraint_1): ...this and update output
20456 (write_constraint_satisfied_p): Rename to...
20457 (write_constraint_satisfied_p_1): ...this and update output
20458 accordingly. Do nothing if all extra constraints are register
20460 (write_insn_extra_memory_constraint): Delete.
20461 (write_insn_extra_address_constraint): Delete.
20462 (write_range_function): New function.
20463 (write_tm_preds_h): Define constraint_satisfied_p and
20464 reg_class_for_constraint as inline functions that do a range check
20465 before calling the out-of-line function. Use write_range_function
20466 to implement insn_extra_{register,memory,address}_constraint,
20467 the first of which is new.
20468 (write_insn_preds_c): Update after above changes to write_* functions.
20469 (main): Call choose_enum_order.
20471 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
20473 PR tree-optimization/61306
20474 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
20475 expression instead of its size.
20476 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
20477 false to prevent optimization when the result is unpredictable due to
20478 arithmetic right shift of signed type with highest byte is set.
20479 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
20480 (init_symbolic_number): Likewise.
20481 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
20482 when the result is unpredictable due to sign extension.
20484 2014-06-11 Terry Guo <terry.guo@arm.com>
20486 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
20487 (*thumb1_addsi3): Ditto.
20488 (*thumb_subdi3): Ditto.
20489 (thumb1_subsi3_insn): Ditto.
20490 (*thumb_mulsi3): Ditto.
20491 (*thumb_mulsi3_v6): Ditto.
20492 (*thumb1_andsi3_insn): Ditto.
20493 (thumb1_bicsi3): Ditto.
20494 (*thumb1_iorsi3_insn): Ditto.
20495 (*thumb1_xorsi3_insn): Ditto.
20496 (*thumb1_ashlsi3): Ditto.
20497 (*thumb1_ashrsi3): Ditto.
20498 (*thumb1_lshrsi3): Ditto.
20499 (*thumb1_rotrsi3): Ditto.
20500 (*thumb1_negdi2): Ditto.
20501 (*thumb1_negsi2): Ditto.
20502 (*thumb1_abssi2): Ditto.
20503 (*thumb1_neg_abssi2): Ditto.
20504 (*thumb1_one_cmplsi2): Ditto.
20505 (*thumb1_zero_extendhisi2): Ditto.
20506 (*thumb1_zero_extendqisi2): Ditto.
20507 (*thumb1_zero_extendqisi2_v6): Ditto.
20508 (thumb1_extendhisi2): Ditto.
20509 (thumb1_extendqisi2): Ditto.
20510 (*thumb1_movdi_insn): Ditto.
20511 (*thumb1_movsi_insn): Ditto.
20512 (*thumb1_movhi_insn): Ditto.
20513 (thumb_movhi_clobber): Ditto.
20514 (*thumb1_movqi_insn): Ditto.
20515 (*thumb1_movhf): Ditto.
20516 (*thumb1_movsf_insn): Ditto.
20517 (*thumb_movdf_insn): Ditto.
20518 (movmem12b): Ditto.
20520 (cbranchqi4): Ditto.
20521 (cbranchsi4_insn): Ditto.
20522 (cbranchsi4_scratch): Ditto.
20523 (*negated_cbranchsi4): Ditto.
20524 (*tbit_cbranch): Ditto.
20525 (*tlobits_cbranch): Ditto.
20526 (*tstsi3_cbranch): Ditto.
20527 (*cbranchne_decr1): Ditto.
20528 (*addsi3_cbranch): Ditto.
20529 (*addsi3_cbranch_scratch): Ditto.
20530 (*thumb_cmpdi_zero): Ditto.
20531 (cstoresi_eq0_thumb1): Ditto.
20532 (cstoresi_ne0_thumb1): Ditto.
20533 (*cstoresi_eq0_thumb1_insn): Ditto.
20534 (*cstoresi_ne0_thumb1_insn): Ditto.
20535 (cstoresi_nltu_thumb1): Ditto.
20536 (cstoresi_ltu_thumb1): Ditto.
20537 (thumb1_addsi3_addgeu): Ditto.
20538 (*thumb_jump): Ditto.
20539 (*call_reg_thumb1_v5): Ditto.
20540 (*call_reg_thumb1): Ditto.
20541 (*call_value_reg_thumb1_v5): Ditto.
20542 (*call_value_reg_thumb1): Ditto.
20543 (*call_insn): Ditto.
20544 (*call_value_insn): Ditto.
20545 (thumb1_casesi_internal_pic): Ditto.
20546 (thumb1_casesi_dispatch): Ditto.
20547 (*thumb1_indirect_jump): Ditto.
20548 (prologue_thumb1_interwork): Ditto.
20549 (*epilogue_insns): Ditto.
20550 (consttable_1): Ditto.
20551 (consttable_2): Ditto.
20552 (tablejump): Ditto.
20553 (*thumb1_tablejump): Ditto.
20554 (thumb_eh_return): Ditto.
20555 (define_peephole2): Two of them are thumb1 only and got moved into
20556 new file thumb1.md.
20557 (define_split): Six of them are thumb1 only and got moved into new
20559 * config/arm/thumb1.md: New file comprised of above thumb1 only
20562 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20564 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
20565 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
20567 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
20568 (aarch64_crc_builtin_datum): New struct.
20569 (aarch64_crc_builtin_data): New.
20570 (aarch64_init_crc32_builtins): New function.
20571 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
20572 (aarch64_crc32_expand_builtin): New.
20573 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
20574 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20575 __ARM_FEATURE_CRC32 when appropriate.
20576 (TARGET_CRC32): Define.
20577 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
20578 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
20579 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
20580 (aarch64_<crc_variant>): New pattern.
20581 * config/aarch64/arm_acle.h: New file.
20582 * config/aarch64/iterators.md (CRC): New int iterator.
20583 (crc_variant, crc_mode): New int attributes.
20584 * doc/aarch64-acle-intrinsics.texi: New file.
20585 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
20586 Include aarch64-acle-intrinsics.texi.
20588 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
20590 * tree-vect-data-refs.c (vect_grouped_store_supported): New
20591 check for stores group of length 3.
20592 (vect_permute_store_chain): New permutations for stores group of
20594 * tree-vect-stmts.c (vect_model_store_cost): Change cost
20595 of vec_perm_shuffle for the new permutations.
20597 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
20599 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
20600 table rewriting temporarily on targets not supporting ONE_ONLY.
20602 2014-06-11 Richard Biener <rguenther@suse.de>
20604 PR middle-end/61437
20606 2014-06-04 Richard Biener <rguenther@suse.de>
20608 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20609 TREE_PUBLIC and DECL_EXTERNAL decls.
20611 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
20613 * varasm.c (set_implicit_section): New function.
20614 (resolve_unique_section): Use it to set implicit section
20616 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
20617 (default_function_section): Likewise.
20618 (decl_binds_to_current_def_p): Constify argument.
20619 * varasm.h (decl_binds_to_current_def_p): Update prototype.
20620 * asan.c (asan_protect_global): Use
20621 symtab_get_node (decl)->implicit_section.
20622 * symtab.c (dump_symtab_base): Dump implicit sections.
20623 (verify_symtab_base): Verify sanity of sectoins and comdats.
20624 (symtab_resolve_alias): Alias share the section of its target.
20625 (set_section_1): New function.
20626 (symtab_node::set_section): Move here, recurse to aliases.
20627 (verify_symtab): Check for duplicated symtab lists.
20628 * tree-core.h (implicit_section_name_p): Remove.
20629 * tree-vect-data-refs.c: Include varasm.h.
20630 (vect_can_force_dr_alignment_p): Fix conditional on when
20631 decl bints to current definition; use
20632 symtab_get_node (decl)->implicit_section.
20633 * cgraph.c (cgraph_make_node_local_1): Fix section set.
20634 * cgraph.h (struct symtab_node): Add implicit_section.
20635 (set_section): Rename to ...
20636 (set_section_for_node): ... this one.
20637 (set_section): Declare.
20638 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
20639 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
20640 input_overwrite_node, input_varpool_node): Stream implicit_section.
20641 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
20642 removal; it will fail in LTO.
20644 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20646 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
20647 Change second alternative type to f_mcr.
20648 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
20649 and 12th alternatives' types to f_mcr and f_mrc.
20650 (*movdi_aarch64): Same for 12th and 13th alternatives.
20651 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
20652 (aarch64_movtilow_tilow): Change type to fmov.
20654 2014-06-10 Jiong Wang <jiong.wang@arm.com>
20656 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
20657 (aarch64_save_or_restore_callee_save_registers): Fix layout.
20659 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20661 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
20663 (aarch64_sqrdmulh_lane<mode>): Likewise.
20664 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20665 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20666 (aarch64_sqdmulh_laneq<mode>): New expander.
20667 (aarch64_sqrdmulh_laneq<mode>): Likewise.
20668 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
20669 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
20670 (aarch64_sqdmulh_lane<mode>): New expander.
20671 (aarch64_sqrdmulh_lane<mode>): Likewise.
20672 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20673 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20674 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
20675 (aarch64_sqdmlal_laneq<mode>): Likewise.
20676 (aarch64_sqdmlsl_lane<mode>): Likewise.
20677 (aarch64_sqdmlsl_laneq<mode>): Likewise.
20678 (aarch64_sqdmlal2_lane<mode>): Likewise.
20679 (aarch64_sqdmlal2_laneq<mode>): Likewise.
20680 (aarch64_sqdmlsl2_lane<mode>): Likewise.
20681 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20682 (aarch64_sqdmull_lane<mode>): Likewise.
20683 (aarch64_sqdmull_laneq<mode>): Likewise.
20684 (aarch64_sqdmull2_lane<mode>): Likewise.
20685 (aarch64_sqdmull2_laneq<mode>): Likewise.
20687 2014-06-10 Richard Biener <rguenther@suse.de>
20689 PR tree-optimization/61438
20690 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
20691 (eliminate_dom_walker::before_dom_children): Only try to inhibit
20692 insertion of IVs if running PRE.
20693 (eliminate): Adjust.
20694 (pass_pre::execute): Likewise.
20695 (pass_fre::execute): Likewise.
20697 2014-06-10 Richard Biener <rguenther@suse.de>
20699 PR middle-end/61456
20700 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20701 Do not use the main variant for the type comparison.
20702 (ncr_compar): Likewise.
20703 (nonoverlapping_component_refs_p): Likewise.
20705 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
20707 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
20708 REG_CFA_RESTORE mode.
20710 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
20712 * config/i386/i386.c (expand_vec_perm_pblendv): New.
20713 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
20714 expand_vec_perm_pblendv.
20716 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20718 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
20720 Simplify description of __crc32d and __crc32cd intrinsics.
20721 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
20724 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
20727 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
20728 * config.in: Regenerate.
20729 * configure: Likewise.
20731 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
20733 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
20735 (intersect_static_var_sets): Remove.
20736 (propagate): Do not prune local statics.
20738 2014-06-10 Jakub Jelinek <jakub@redhat.com>
20741 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
20742 Set lastprivate_firstprivate even if omp_private_outer_ref
20743 langhook returns true.
20744 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
20745 langhook, call unshare_expr on new_var and call
20746 build_outer_var_ref to get the last argument.
20748 2014-06-10 Marek Polacek <polacek@redhat.com>
20751 * doc/extend.texi: Add cindex for transparent_union.
20753 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
20755 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
20756 init_symbolic_number ().
20758 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
20760 PR middle-end/61141
20761 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
20762 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
20763 (verify_rtl_sharing): Likewise.
20765 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
20768 * tree.c (build_qualified_type): Use a canonical type for
20771 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20773 * config/arm/arm-modes.def: Remove XFmode.
20775 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
20778 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
20779 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
20780 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
20781 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
20782 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
20783 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
20784 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
20785 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
20786 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
20788 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
20790 * tree-core.h (tree_decl_with_vis): Remove section_name.
20792 2014-06-09 Kito Cheng <kito@0xlab.org>
20794 * ira.c (ira): Don't call init_caller_save if LRA enabled
20795 since LRA use its own infrastructure to handle that.
20797 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
20799 * symtab.c (dump_symtab_base): Update dumping.
20800 (symtab_make_decl_local): Clear only DECL_COMDAT.
20801 * tree-vect-data-refs.c (Check that variable is static before
20802 tampering with sections.
20803 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
20804 (cgraph_create_virtual_clone): Likewise.
20805 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
20806 (decl_section_name, set_decl_section_name): New accessors.
20807 (find_decls_types_r): Do not walk section name
20808 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
20809 (decl_comdat_group, decl_comdat_group_id): Constify.
20810 (decl_section_name, set_decl_section_name): Update.
20811 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
20812 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
20813 (cgraph_make_node_local_1): Clear section and comdat group.
20814 * cgraph.h (set_comdat_group): Sanity check.
20815 (get_section, set_section): New.
20816 * ipa-comdats.c (ipa_comdats): Use get_section.
20817 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
20818 * lto-streamer-out.c: Do not follow section names.
20819 * c-family/c-common.c (handle_section_attribute): Update.
20820 * lto-cgraph.c (lto_output_node): Output section.
20821 (lto_output_varpool_node): Likewise.
20822 (read_comdat_group): Rename to ...
20823 (read_identifier): ... this one.
20824 (read_string_cst): New function.
20825 (input_node, input_varpool_node): Input section names.
20826 * tree-emutls.c (get_emutls_init_templ_addr): Update.
20827 (new_emutls_decl): Update.
20828 (secname_for_decl): Check section names only of static vars.
20829 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
20830 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
20831 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
20832 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20833 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
20834 * config/mcore/mcore.c (mcore_unique_section): Likewise.
20835 * config/mips/mips.c (mips16_build_function_stub): Likewise.
20836 * config/v850/v850.c (v850_insert_attributes): Likewise.
20837 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
20839 (h8300_handle_tiny_data_attribute): Likewise.
20840 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
20841 (bfin_handle_l2_attribute): Likewise.
20843 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
20845 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
20846 remove static initializer.
20848 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
20850 * varasm.c (use_blocks_for_decl_p): Check symbol table
20851 instead of alias attribute.
20852 (place_block_symbol): Recurse on aliases.
20854 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
20856 * ipa-visibility.c: Include varasm.h
20857 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
20859 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
20861 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
20862 outputting aliases.
20864 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
20866 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
20867 from test_insn into GGC space escape via SET_SRC.
20869 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
20871 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
20872 call statement, if any.
20873 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
20874 statements, if any. Tidy up.
20876 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20879 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
20880 iterators, VSX_D that handles 64-bit types, and VSX_LE that
20881 handles swapping the two 64-bit double words on little endian
20882 systems. Include V1TImode and optionally TImode in VSX_LE so that
20883 these types are properly swapped. Change all of the insns and
20884 splits that do the 64-bit swaps to use VSX_LE.
20885 (vsx_le_perm_load_<mode>): Likewise.
20886 (vsx_le_perm_store_<mode>): Likewise.
20887 (splitters for little endian memory operations): Likewise.
20888 (vsx_xxpermdi2_le_<mode>): Likewise.
20889 (vsx_lxvd2x2_le_<mode>): Likewise.
20890 (vsx_stxvd2x2_le_<mode>): Likewise.
20892 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
20895 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
20896 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
20897 and corresponding splitters. Zero extend general register
20898 or memory input operand to XMM temporary. Enable for
20899 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
20900 (floatunssi<mode>2): Update expander predicate.
20902 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
20904 PR rtl-optimization/61325
20905 * lra-constraints.c (process_address_1): Check scale equal to one
20906 to prevent transformation: base + scale * index => base + new_reg.
20908 2014-06-06 Richard Biener <rguenther@suse.de>
20910 PR tree-optimization/59299
20911 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
20913 (nearest_common_dominator_of_uses): Likewise.
20914 (statement_sink_location): Adjust. Support sinking loads.
20916 2014-06-06 Martin Jambor <mjambor@suse.cz>
20918 * ipa-prop.c (get_place_in_agg_contents_list): New function.
20919 (build_agg_jump_func_from_list): Likewise.
20920 (determine_known_aggregate_parts): Renamed to
20921 determine_locally_known_aggregate_parts. Moved some functionality
20922 to the two functions above, removed bound checks.
20924 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
20926 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
20927 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
20928 (aarch64_progress_pointer): Likewise.
20929 (aarch64_copy_one_part_and_move_pointers): Likewise.
20930 (aarch64_expand_movmen): Likewise.
20931 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
20932 * config/aarch64/aarch64.md (movmem<mode>): New.
20934 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
20936 * targhooks.c (default_add_stmt_cost): Call target specific
20937 hook instead of default one.
20939 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
20941 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
20942 endianness instead of host endianness.
20943 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
20946 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
20949 * function.c (instantiate_decls): Process the saved static chain.
20950 (expand_function_start): If not optimizing, save the static chain
20952 * tree-nested.c (convert_all_function_calls): Always create the static
20953 chain for nested functions if not optimizing.
20955 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
20957 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
20959 2014-06-06 Richard Biener <rguenther@suse.de>
20961 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
20962 (construct_init_block): Likewise.
20963 (construct_exit_block): Likewise.
20964 (pass_expand::execute): Likewise.
20965 * graphite.c (graphite_transforms): Replace check for current_loops
20966 with a check for > 1 loops.
20967 (pass_graphite_transforms::execute): Adjust.
20968 * ipa-split.c (split_function): Remove check for current_loops.
20969 * omp-low.c (expand_parallel_call): Likewise.
20970 (expand_omp_for_init_counts): Likewise.
20971 (extract_omp_for_update_vars): Likewise.
20972 (expand_omp_for_generic): Likewise.
20973 (expand_omp_sections): Likewise.
20974 (expand_omp_target): Likewise.
20975 * tracer.c (tail_duplicate): Likewise.
20976 (pass_tracer::execute): Likewise.
20977 * trans-mem.c (expand_transaction): Likewise.
20978 * tree-complex.c (expand_complex_div_wide): Likewise.
20979 * tree-eh.c (lower_resx): Likewise.
20980 (cleanup_empty_eh_merge_phis): Likewise.
20981 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
20982 current_loops with a check for > 1 loops.
20983 (pass_predcom::execute): Adjust.
20984 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
20985 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
20986 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
20987 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
20988 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
20989 * tree-switch-conversion.c (process_switch): Likewise.
20990 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
20991 * tree-vrp.c (vrp_visit_phi_node): Likewise.
20992 (execute_vrp): Likewise.
20993 * ubsan.c (ubsan_expand_null_ifn): Likewise.
20995 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
20997 * rtl.h (insn_location): Declare.
20998 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
20999 with UNKNOWN_LOCATION.
21000 * emit-rtl.c (insn_location): New function.
21001 * final.c (notice_source_line): Check that the instruction has a
21002 location before retrieving it and use insn_location.
21003 * modulo-sched.c (loop_single_full_bb_p): Likewise.
21004 * print-rtl.c (print_rtx): Likewise.
21006 2014-06-06 Richard Biener <rguenther@suse.de>
21008 * passes.def: Move 2nd VRP pass before phi-only-cprop.
21010 2014-06-06 Christian Bruel <christian.bruel@st.com>
21012 PR tree-optimization/43934
21013 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21016 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
21018 * ira-lives.c (single_reg_class): Add missing break. Explicitly
21019 return NO_REGS for extra address and memory constraints. Handle
21020 operands that match (or are equivalent to something that matches)
21021 extra constant constraints. Ignore other non-register operands.
21023 2014-06-06 Alan Modra <amodra@gmail.com>
21026 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21027 * doc/tm.texi: Regenerate.
21028 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21029 Use throughout in place of REG_PARM_STACK_SPACE.
21030 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21031 "incoming" param. Pass to rs6000_function_parms_need_stack.
21032 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21033 prototype_p when incoming. Use function decl when incoming
21034 to handle K&R style functions.
21035 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21036 (INCOMING_REG_PARM_STACK_SPACE): Define.
21038 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21041 * cfgexpand.c (expand_debug_expr): Use address space of nested
21042 TREE_TYPE for ADDR_EXPR and MEM_REF.
21044 2014-06-05 Jeff Law <law@redhat.com>
21046 PR tree-optimization/61289
21047 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21048 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
21049 looking for those which match LHS. All callers changed.
21050 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21051 parameters and code which manipulated them. All callers changed.
21052 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21053 and DST_MAP parameters. Simplify invalidation code by just calling
21054 invalidate_equivalences. All callers changed.
21055 (thread_across_edge): Simplify now that we don't need to maintain
21056 the map of equivalences to invalidate.
21058 2014-06-05 Kai Tietz <ktietz@redhat.com>
21059 Richard Henderson <rth@redhat.com>
21062 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21063 checking for !TARGET_X32.
21064 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21065 (sibcall_intern): New define_insn, plus required peepholes.
21066 (sibcall_pop_intern): Likewise.
21067 (sibcall_value_intern): Likewise.
21068 (sibcall_value_pop_intern): Likewise.
21070 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
21072 * tree-inline.c (tree_function_versioning): Check DF info existence
21073 before accessing it.
21075 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21077 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21079 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21080 aarch64_frame hard_fp_offset and frame_size.
21081 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21082 frame_size; remove original_frame_size.
21083 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21084 (aarch64_initial_elimination_offset): Remove frame_size and
21085 offset. Use aarch64_frame frame_size.
21087 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21088 Jiong Wang <jiong.wang@arm.com>
21089 Renlin <renlin.li@arm.com>
21091 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21092 initialization of R30 offset. Update offset. Iterate core
21093 regisers upto X30. Remove X29, X30 specific code.
21095 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21096 Jiong Wang <jiong.wang@arm.com>
21098 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21099 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21100 (aarch64_register_saved_on_entry): Adjust test.
21102 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21104 * config/aarch64/aarch64.h (machine_function): Move
21105 saved_varargs_size from here...
21106 (aarch64_frame): ... to here.
21108 * config/aarch64/aarch64.c (aarch64_expand_prologue)
21109 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21110 (aarch64_initial_elimination_offset)
21111 (aarch64_setup_incoming_varargs): Adjust location of
21112 saved_varargs_size.
21114 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21116 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21119 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
21120 Prachi Godbole <Prachi.Godbole@imgtec.com>
21122 * config/mips/mips-cpus.def: Add definition for p5600. Updated
21123 mips32r5 entry to use PROCESSOR_P5600.
21124 * config/mips/mips-tables.opt: Regenerate.
21125 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21126 * config/mips/mips.c (mips_fmadd_bypass): New function.
21127 (mips_rtx_cost_data): Add costs for p5600.
21128 (mips_issue_rate): Add support for p5600.
21129 (mips_multipass_dfa_lookahead): Likewise.
21130 * config/mips/mips.h (TUNE_P5600): New define.
21131 (TUNE_MACC_CHAINS): Add TUNE_P5600.
21132 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21133 * config/mips/mips.md: Include p5600.md.
21134 (processor): Add p5600.
21135 * config/mips/p5600.md: New file.
21137 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
21139 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21140 * config/i386/predicates.md (palignr_operand): New.
21141 Indicates if permutation is suitable for palignr instruction.
21143 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
21145 PR tree-optimization/61319
21146 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21147 stmt belongs to loop.
21149 2014-06-05 Richard Biener <rguenther@suse.de>
21151 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21152 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21153 (lookup_tmp_var): Adjust.
21154 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21156 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21158 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21160 2014-06-05 Marek Polacek <polacek@redhat.com>
21163 * doc/invoke.texi: Document -Wlogical-not-parentheses.
21165 2014-06-04 Tom de Vries <tom@codesourcery.com>
21167 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
21170 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
21172 PR tree-optimization/61385
21173 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
21175 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
21177 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
21178 changed to use fatal_error.
21179 (main): Ensure lto_wrapper_cleanup is run atexit.
21181 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21183 * lra-constraints.c (valid_address_p): Move earlier in file.
21184 (address_eliminator): New structure.
21185 (satisfies_memory_constraint_p): New function.
21186 (satisfies_address_constraint_p): Likewise.
21187 (process_alt_operands, process_address, curr_insn_transform): Use them.
21189 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21191 * lra-int.h (lra_static_insn_data): Make operand_alternative a
21193 (target_lra_int, default_target_lra_int, this_target_lra_int)
21194 (op_alt_data): Delete.
21195 * lra.h (lra_init): Delete.
21196 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
21197 (init_insn_code_data_once): Remove op_alt_data handling.
21198 (finish_insn_code_data_once): Likewise.
21199 (init_op_alt_data): Delete.
21200 (get_static_insn_data): Initialize operand_alternative to null.
21201 (free_insn_recog_data): Cast operand_alternative before freeing it.
21202 (setup_operand_alternative): Take the operand_alternative as
21203 parameter and assume it isn't already cached in the static
21205 (lra_set_insn_recog_data): Update accordingly.
21206 (lra_init): Delete.
21207 * ira.c (ira_init): Don't call lra_init.
21208 * target-globals.h (this_target_lra_int): Declare.
21209 (target_globals): Remove lra_int.
21210 (restore_target_globals): Update accordingly.
21211 * target-globals.c: Don't include lra-int.h.
21212 (default_target_globals, save_target_globals): Remove lra_int.
21214 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21216 * recog.h (operand_alternative): Convert reg_class, reject,
21217 matched and matches into bitfields.
21218 (preprocess_constraints): New overload.
21219 (preprocess_insn_constraints): New function.
21220 (preprocess_constraints): Take the insn as parameter.
21221 (recog_op_alt): Change into a pointer.
21222 (target_recog): Add x_op_alt.
21223 * recog.c (asm_op_alt): New variable.
21224 (recog_op_alt): Change into a pointer.
21225 (preprocess_constraints): New overload, replacing the old function
21226 definition with one that doesn't use global state.
21227 (preprocess_insn_constraints): New function.
21228 (preprocess_constraints): Use them. Take the insn as parameter.
21229 Use asm_op_alt for asms.
21230 (recog_init): Free existing x_op_alt entries.
21231 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
21233 (make_early_clobber_and_input_conflicts): Likewise.
21234 (process_bb_node_lives): Pass the insn to process_constraints.
21235 * reg-stack.c (check_asm_stack_operands): Likewise.
21236 (subst_asm_stack_regs): Likewise.
21237 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21238 * regrename.c (build_def_use): Likewise.
21239 * sched-deps.c (sched_analyze_insn): Likewise.
21240 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
21241 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
21242 (note_invalid_constants): Likewise.
21243 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21244 (ix86_legitimate_combined_insn): Make operand_alternative pointer
21247 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21249 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
21250 * ira-lives.c (check_and_make_def_conflict): Check for disabled
21252 (make_early_clobber_and_input_conflicts): Likewise.
21253 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21255 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21257 * recog.h (alternative_class): New function.
21258 (which_op_alt): Return a const recog_op_alt.
21259 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
21260 (subst_asm_stack_regs): Likewise.
21261 * config/arm/arm.c (note_invalid_constants): Likewise.
21262 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
21263 the operand_alternative; use alternative class instead.
21264 * sel-sched.c (get_reg_class): Likewise.
21265 * regrename.c (build_def_use): Likewise.
21266 (hide_operands, restore_operands, record_out_operands): Update type
21269 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21271 * recog.h (recog_op_alt): Convert to a flat array.
21272 (which_op_alt): New function.
21273 * recog.c (recog_op_alt): Convert to a flat array.
21274 (preprocess_constraints): Update accordingly, grouping all
21275 operands of the same alternative together, rather than the
21277 * ira-lives.c (check_and_make_def_conflict): Likewise.
21278 (make_early_clobber_and_input_conflicts): Likewise.
21279 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21280 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
21281 (subst_asm_stack_regs): Likewise.
21282 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21283 * regrename.c (hide_operands, record_out_operands): Likewise.
21284 (build_def_use): Likewise.
21285 * sel-sched.c (get_reg_class): Likewise.
21286 * config/arm/arm.c (note_invalid_constants): Likewise.
21288 2014-06-04 Jason Merrill <jason@redhat.com>
21292 * gimplify.c (gimplify_arg): Non-static.
21293 * gimplify.h: Declare it.
21295 2014-06-04 Richard Biener <rguenther@suse.de>
21297 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21298 TREE_PUBLIC and DECL_EXTERNAL decls.
21300 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
21302 * regcprop.c (copyprop_hardreg_forward_1): Account for
21303 HARD_REGNO_CALL_PART_CLOBBERED.
21305 2014-06-04 Richard Biener <rguenther@suse.de>
21307 * configure.ac: Check whether the underlying type of int64_t
21308 is long or long long.
21309 * configure: Regenerate.
21310 * config.in: Likewise.
21311 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
21312 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21314 2014-06-04 Richard Biener <rguenther@suse.de>
21316 PR tree-optimization/60098
21317 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
21319 (dse_optimize_stmt): Simplify, now that we found a kill
21322 2014-06-04 Richard Biener <rguenther@suse.de>
21324 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
21325 of accesses with non-invariant address.
21327 2014-06-04 Martin Liska <mliska@suse.cz>
21329 * cgraph.h (cgraph_make_wrapper): New function introduced.
21330 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
21331 * ipa-inline.h (inline_analyze_function): The function is global.
21332 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
21334 2014-06-04 Martin Liska <mliska@suse.cz>
21336 * tree.h (private_lookup_attribute_starting): New function.
21337 (lookup_attribute_starting): Likewise.
21338 * tree.c (private_lookup_attribute_starting): Likewise.
21340 2014-06-04 Martin Liska <mliska@suse.cz>
21342 * cgraph.h (expand_thunk): New argument added.
21343 (address_taken_from_non_vtable_p): New global function.
21344 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
21345 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
21346 * cgraphunit.c (analyze_function): Likewise.
21347 (assemble_thunks_and_aliases): Argument added to call.
21348 (expand_thunk): New argument forces to produce GIMPLE thunk.
21350 2014-06-04 Martin Liska <mliska@suse.cz>
21352 * coverage.h (coverage_compute_cfg_checksum): Argument added.
21353 * coverage.c (coverage_compute_cfg_checksum): Likewise.
21354 * profile.c (branch_prob): Likewise.
21356 2014-06-04 Martin Jambor <mjambor@suse.cz>
21359 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
21360 handler for switch on an ipa_ref_use enum.
21361 * ipa-reference.c (analyze_function): Likewise.
21363 2014-06-04 Kai Tietz <ktietz@redhat.com>
21365 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
21366 from old call-instruction.
21368 2014-06-04 Bin Cheng <bin.cheng@arm.com>
21370 * config/aarch64/aarch64.c (aarch64_classify_address)
21371 (aarch64_legitimize_reload_address): Support full addressing modes
21373 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
21374 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
21376 2014-06-03 Andrew Pinski <apinski@cavium.com>
21378 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
21381 2014-06-03 Andrew Pinski <apinski@cavium.com>
21383 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
21384 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
21386 2014-06-03 Kai Tietz <ktietz@redhat.com>
21388 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
21391 2014-06-03 Dehao Chen <dehao@google.com>
21393 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
21396 2014-06-03 Marek Polacek <polacek@redhat.com>
21399 * doc/invoke.texi: Document -Wswitch-bool.
21400 * function.c (stack_protect_epilogue): Cast controlling expression of
21402 * gengtype.c (walk_type): Generate switch expression with its
21403 controlling expression cast to int.
21405 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
21407 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
21409 * config/avr/avr-tables.opt: Regenerate.
21410 * config/avr/t-multilib: Regenerate.
21411 * doc/avr-mmcu.texi: Regenerate.
21413 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
21414 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21416 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
21417 (ata6617c, ata664251): Add new avr35 devices.
21418 (ata6612c): Add new avr4 device.
21419 (ata6613c, ata6614q): Add new avr5 devices.
21420 * config/avr/avr-tables.opt: Regenerate.
21421 * config/avr/t-multilib: Regenerate.
21422 * doc/avr-mmcu.texi: Regenerate.
21424 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
21426 * gcc/config/aarch64/aarch64-builtins.c
21427 (aarch64_types_binop_ssu_qualifiers): New static data.
21428 (TYPES_BINOP_SSU): Define.
21429 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
21430 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
21431 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
21432 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
21433 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
21434 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
21435 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
21436 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
21437 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
21438 suffix to builtin function name, remove cast.
21439 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
21440 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
21441 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
21443 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
21445 * gcc/config/aarch64/aarch64-builtins.c
21446 (aarch64_types_binop_uus_qualifiers,
21447 aarch64_types_shift_to_unsigned_qualifiers,
21448 aarch64_types_unsigned_shiftacc_qualifiers): Define.
21449 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
21450 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
21451 sqshlu_n, uqshl_n): Update qualifiers.
21452 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
21453 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
21454 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
21455 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
21456 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
21457 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
21458 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
21459 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
21460 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
21461 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
21462 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
21463 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
21464 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
21465 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
21466 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
21467 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
21468 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
21469 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
21470 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
21471 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
21472 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
21473 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
21474 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
21475 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
21476 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
21477 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
21478 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
21480 2014-06-03 Teresa Johnson <tejohnson@google.com>
21482 * tree-sra.c (modify_function): Record caller nodes after rebuild.
21484 2014-06-02 Jason Merrill <jason@redhat.com>
21487 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
21489 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
21491 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
21494 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
21496 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
21498 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
21499 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
21500 * config/aarch64/iterators.md (REVERSE): New iterator.
21501 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
21502 (rev_op): New int_attribute.
21503 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
21504 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
21505 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
21506 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
21507 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
21508 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
21509 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
21510 Replace temporary __asm__ with __builtin_shuffle.
21512 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21514 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
21516 * config/mips/mips-tables.opt: Regenerate.
21517 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
21518 to use mips_isa_rev rather than ISA_MIPS32R2.
21519 * config/mips/mips.h (ISA_MIPS32R3): New define.
21520 (ISA_MIPS32R5): New define.
21521 (ISA_MIPS64R3): New define.
21522 (ISA_MIPS64R5): New define.
21523 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
21524 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
21525 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
21527 (MIPS_ISA_SYNCI_SPEC): Likewise.
21528 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
21529 (LINK_SPEC): Added mips32r3 and mips32r5.
21530 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
21531 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
21532 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
21533 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
21534 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
21535 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
21536 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
21538 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21540 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
21542 * config/mips/mips.opt (mxpa): New option.
21543 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
21546 2014-06-03 Martin Jambor <mjambor@suse.cz>
21549 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
21552 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
21554 PR tree-optimization/61328
21555 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
21556 initialization from find_bswap_or_nop_1.
21557 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
21558 in source_expr2 before using the size value the function sets. Also
21559 make use of init_symbolic_number () in both the old place and
21560 find_bswap_or_nop_load () to avoid reading uninitialized memory when
21561 doing recursion in the GIMPLE_BINARY_RHS case.
21563 2014-06-03 Richard Biener <rguenther@suse.de>
21565 PR tree-optimization/61383
21566 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
21569 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
21571 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
21572 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
21573 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
21574 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
21576 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
21577 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
21578 * system.h: ...here and make it unconditional.
21579 * target.def (conditional_register_usage): Mention
21580 define_register_constraint instead of old-style constraint macros.
21581 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
21582 * doc/tm.texi: Regenerate.
21583 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
21584 protected by !USE_MD_CONSTRAINTS.
21585 * config/frv/frv.md: Remove quote from old version of documentation.
21586 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
21587 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
21588 CONST_DOUBLE_OK_FOR_LETTER.
21589 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
21591 2014-06-02 Andrew Pinski <apinski@cavium.com>
21593 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
21594 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
21595 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
21596 file whose name depends on -mabi= and -mbig-endian.
21597 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
21598 Handle LP64 better and handle ilp32 too.
21599 (MULTILIB_OPTIONS): Delete.
21600 (MULTILIB_DIRNAMES): Delete.
21602 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
21604 * expr.h: Remove prototypes of functions defined in builtins.c.
21605 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
21606 Remove prototypes of functions defined in builtins.c.
21607 * builtins.h: Update prototype list to include all exported functions.
21608 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
21609 no_c99_libc_has_function): Move to targhooks.c
21610 (build_string_literal, build_call_expr_loc_array,
21611 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
21613 (expand_builtin_object_size, fold_builtin_object_size): Make static.
21614 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
21615 no_c99_libc_has_function): Relocate from builtins.c.
21616 * tree.c: Include builtins.h.
21617 (build_call_expr_loc_array, build_call_expr_loc_vec,
21618 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
21620 * fold-const.h (fold_fma): Move prototype to builtins.h.
21621 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
21622 * asan.c: Include builtins.h.
21623 * cfgexpand.c: Likewise.
21624 * convert.c: Likewise.
21625 * emit-rtl.c: Likewise.
21626 * except.c: Likewise.
21627 * expr.c: Likewise.
21628 * fold-const.c: Likewise.
21629 * gimple-fold.c: Likewise.
21630 * gimple-ssa-strength-reduction.c: Likewise.
21631 * gimplify.c: Likewise.
21632 * ipa-inline.c: Likewise.
21633 * ipa-prop.c: Likewise.
21634 * lto-streamer-out.c: Likewise.
21635 * stmt.c: Likewise.
21636 * tree-inline.c: Likewise.
21637 * tree-object-size.c: Likewise.
21638 * tree-sra.c: Likewise.
21639 * tree-ssa-ccp.c: Likewise.
21640 * tree-ssa-forwprop.c: Likewise.
21641 * tree-ssa-loop-ivcanon.c: Likewise.
21642 * tree-ssa-loop-ivopts.c: Likewise.
21643 * tree-ssa-math-opts.c: Likewise.
21644 * tree-ssa-reassoc.c: Likewise.
21645 * tree-ssa-threadedge.c: Likewise.
21646 * tree-streamer-in.c: Likewise.
21647 * tree-vect-data-refs.c: Likewise.
21648 * tree-vect-patterns.c: Likewise.
21649 * tree-vect-stmts.c: Likewise.
21650 * config/aarch64/aarch64.c: Likewise.
21651 * config/alpha/alpha.c: Likewise.
21652 * config/arc/arc.c: Likewise.
21653 * config/arm/arm.c: Likewise.
21654 * config/avr/avr.c: Likewise.
21655 * config/bfin/bfin.c: Likewise.
21656 * config/c6x/c6x.c: Likewise.
21657 * config/cr16/cr16.c: Likewise.
21658 * config/cris/cris.c: Likewise.
21659 * config/epiphany/epiphany.c: Likewise.
21660 * config/fr30/fr30.c: Likewise.
21661 * config/frv/frv.c: Likewise.
21662 * config/h8300/h8300.c: Likewise.
21663 * config/i386/i386.c: Likewise.
21664 * config/i386/winnt.c: Likewise.
21665 * config/ia64/ia64.c: Likewise.
21666 * config/iq2000/iq2000.c: Likewise.
21667 * config/lm32/lm32.c: Likewise.
21668 * config/m32c/m32c.c: Likewise.
21669 * config/m32r/m32r.c: Likewise.
21670 * config/m68k/m68k.c: Likewise.
21671 * config/mcore/mcore.c: Likewise.
21672 * config/mep/mep.c: Likewise.
21673 * config/microblaze/microblaze.c: Likewise.
21674 * config/mips/mips.c: Likewise.
21675 * config/mmix/mmix.c: Likewise.
21676 * config/mn10300/mn10300.c: Likewise.
21677 * config/moxie/moxie.c: Likewise.
21678 * config/msp430/msp430.c: Likewise.
21679 * config/nds32/nds32.c: Likewise.
21680 * config/pa/pa.c: Likewise.
21681 * config/pdp11/pdp11.c: Likewise.
21682 * config/picochip/picochip.c: Likewise.
21683 * config/rl78/rl78.c: Likewise.
21684 * config/rs6000/rs6000.c: Likewise.
21685 * config/rx/rx.c: Likewise.
21686 * config/s390/s390.c: Likewise.
21687 * config/score/score.c: Likewise.
21688 * config/sh/sh.c: Likewise.
21689 * config/sparc/sparc.c: Likewise.
21690 * config/spu/spu.c: Likewise.
21691 * config/stormy16/stormy16.c: Likewise.
21692 * config/tilegx/tilegx.c: Likewise.
21693 * config/tilepro/tilepro.c: Likewise.
21694 * config/v850/v850.c: Likewise.
21695 * config/vax/vax.c: Likewise.
21696 * config/xtensa/xtensa.c: Likewise.
21698 2014-06-02 Jeff Law <law@redhat.com>
21700 PR rtl-optimization/61094
21701 * ree.c (combine_reaching_defs): Do not reextend an insn if it
21702 was marked as do_no_reextend. If a copy is needed to eliminate
21703 an extension, then mark it as do_not_reextend.
21705 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
21707 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
21709 2014-06-02 Richard Henderson <rth@redhat.com>
21712 * config/alpha/alpha.c (print_operand_address): Allow symbolic
21713 addresses inside asms. Use output_operand_lossage instead of
21716 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
21719 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
21720 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
21722 2014-06-02 Tom de Vries <tom@codesourcery.com>
21724 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
21725 case that x has VOIDmode.
21727 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
21729 * varasm.c (copy_constant): Delete function.
21730 (build_constant_desc): Don't call it.
21732 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21735 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
21736 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
21737 with immediate_operand.
21739 2014-06-02 Andreas Schwab <schwab@suse.de>
21741 * config/ia64/ia64.c
21742 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
21743 pending_data_specs first.
21745 2014-06-02 Richard Biener <rguenther@suse.de>
21747 PR tree-optimization/61378
21748 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
21749 valueized_anything.
21751 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
21753 * config/i386/constraints.md (Bw): Rename from 'w'.
21754 (Bz): Rename from 'z'.
21755 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
21757 2014-06-01 Kai Tietz <ktietz@redhat.com>
21760 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
21761 * config/i386/i386.md (sibcall_insn_operand): Use Bs
21762 instead of m constraint.
21764 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
21766 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
21767 a separate alternative where the scratch operand 2 is marked as
21770 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21772 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
21773 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
21774 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
21775 and __builtins_arm_get_fpscr.
21776 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21777 __builtins_arm_get_fpscr.
21778 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
21779 __builtins_arm_ldfpscr.
21780 (arm_atomic_assign_expand_fenv): New function.
21781 * config/arm/vfp.md (set_fpscr): New pattern.
21782 (get_fpscr) : Likewise.
21783 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
21785 * doc/extend.texi (AARCH64 Built-in Functions) : Document
21786 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
21788 2014-05-30 Jakub Jelinek <jakub@redhat.com>
21790 * asan.c (report_error_func): Add SLOW_P argument, use
21791 BUILT_IN_ASAN_*_N if set.
21792 (build_check_stmt): Likewise.
21793 (instrument_derefs): If T has insufficient alignment,
21794 force same handling as for odd sizes.
21796 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
21797 BUILT_IN_ASAN_REPORT_STORE_N): New.
21798 * asan.c (struct asan_mem_ref): Change access_size type to
21800 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
21801 update_mem_ref_hash_table): Likewise.
21802 (asan_mem_ref_hasher::hash): Hash in a HWI.
21803 (report_error_func): Change size_in_bytes argument to HWI.
21804 Use *_N builtins if size_in_bytes is larger than 16 or not power of
21806 (build_shadow_mem_access): New function.
21807 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
21808 Handle size_in_bytes not power of two or larger than 16.
21809 (instrument_derefs): Don't give up if size_in_bytes is not
21810 power of two or is larger than 16.
21812 2014-05-30 Kai Tietz <ktietz@redhat.com>
21815 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
21816 for sibling-tail-calls.
21817 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
21819 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
21820 (sibcall_insn_operand): Add check for sibcall_memory_operand.
21822 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21824 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
21825 * config/avr/avr-tables.opt: Regenerate.
21826 * config/avr/t-multilib: Regenerate.
21827 * doc/avr-mmcu.texi: Regenerate.
21829 2014-05-30 Ian Lance Taylor <iant@google.com>
21831 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
21834 2014-05-30 Tom de Vries <tom@codesourcery.com>
21836 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21839 2014-05-30 Tom de Vries <tom@codesourcery.com>
21841 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
21842 * lra.c (initialize_lra_reg_info_element): Add init of
21843 actual_call_used_reg_set field.
21844 (lra): Call lra_create_live_ranges before lra_inheritance for
21846 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
21848 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
21849 instead of call_used_reg_set for -fuse-caller-save.
21850 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
21852 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21854 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
21856 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
21858 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
21860 * ira.c (ira_get_dup_out_num): Check for output operands at
21861 the start of the loop. Handle cases where an included alternative
21862 follows an excluded one.
21864 2014-05-29 Mike Stump <mikestump@comcast.net>
21867 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
21868 post ld passes when lto is used.
21870 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
21872 PR rtl-optimization/61325
21873 * lra-constraints.c (process_address): Rename to process_address_1.
21874 (process_address): New function.
21876 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
21878 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
21879 TYPES_BINOPV): New static data.
21880 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
21882 * config/aarch64/aarch64-simd.md (aarch64_ext,
21883 aarch64_im_lane_boundsi): New patterns.
21884 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
21886 (aarch64_evpc_ext): New function.
21888 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
21890 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
21891 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
21892 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
21893 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
21894 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
21896 2014-05-29 Tom de Vries <tom@codesourcery.com>
21898 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
21900 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
21901 Richard Sandiford <rdsandiford@googlemail.com>
21903 * arm/iterators.md (shiftable_ops): New code iterator.
21904 (t2_binop0, arith_shift_insn): New code attributes.
21905 * arm/predicates.md (shift_nomul_operator): New predicate.
21906 * arm/arm.md (insn_enabled): Delete.
21907 (enabled): Remove insn_enabled test.
21908 (*arith_shiftsi): Delete. Replace with ...
21909 (*<arith_shift_insn>_multsi): ... new pattern.
21910 (*<arith_shift_insn>_shiftsi): ... new pattern.
21911 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
21913 2014-05-29 Radovan Obradovic <robradovic@mips.com>
21914 Tom de Vries <tom@codesourcery.com>
21916 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
21917 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
21919 (mips_split_call): Use POST_CALL_TMP_REG.
21920 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
21922 2014-05-29 Tom de Vries <tom@codesourcery.com>
21924 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
21925 with #ifdef STACK_REGS.
21927 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
21929 * varasm.c (get_variable_section): Walk aliases.
21930 (place_block_symbol): Walk aliases.
21932 2014-05-28 Tom de Vries <tom@codesourcery.com>
21935 2014-05-28 Tom de Vries <tom@codesourcery.com>
21937 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
21938 * lra.c (initialize_lra_reg_info_element): Add init of
21939 actual_call_used_reg_set field.
21940 (lra): Call lra_create_live_ranges before lra_inheritance for
21942 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
21944 * lra-constraints.c (need_for_call_save_p): Use
21945 actual_call_used_reg_set instead of call_used_reg_set for
21947 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
21949 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
21951 * doc/md.texi: Document that the % constraint character must
21952 be at the beginning of the string.
21953 * genoutput.c (validate_insn_alternatives): Check that '=',
21954 '+' and '%' only appear at the beginning of a constraint.
21955 * ira.c (commutative_constraint_p): Delete.
21956 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
21957 at the start of the string.
21958 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
21960 * config/arm/neon.md (bicdi3_neon): Likewise.
21961 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
21962 (slt_si, sltu_si): Likewise.
21963 * config/vax/vax.md (sbcdi3): Likewise.
21964 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
21965 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
21966 (mul64): Move '%' to beginning of constraint.
21967 * config/arm/arm.md (*xordi3_insn): Likewise.
21968 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
21969 (xorsi3): Likewise.
21971 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
21973 * doc/md.texi: Document the restrictions on the "enabled" attribute.
21975 2014-05-28 Jason Merrill <jason@redhat.com>
21978 * cgraph.h (symtab_node::get_comdat_group_id): New.
21979 * cgraphunit.c (analyze_functions): Call it.
21980 * symtab.c (dump_symtab_node): Likewise.
21981 * tree.c (decl_comdat_group_id): New.
21982 * tree.h: Declare it.
21983 * lto-streamer-out.c (write_symbol): Use it.
21984 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
21986 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
21988 PR bootstrap/PR61146
21989 * wide-int.cc: Do not include longlong.h when compiling with clang.
21991 2014-05-28 Richard Biener <rguenther@suse.de>
21993 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
21994 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
21995 (vrp_visit_assignment_or_call): Print less vertical space.
21996 (vrp_visit_stmt): Likewise.
21997 (vrp_visit_phi_node): Likewise. For a PHI argument with
21998 VR_VARYING range consider recording it as copy.
22000 2014-05-28 Richard Biener <rguenther@suse.de>
22003 2014-05-28 Richard Biener <rguenther@suse.de>
22005 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22007 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22009 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22010 sufficiently aligned and an offset is used at the same time.
22011 (expand_expr_real_1): Likewise.
22013 2014-05-28 Richard Biener <rguenther@suse.de>
22015 PR middle-end/61045
22016 * fold-const.c (fold_comparison): When folding
22017 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22018 the sign of the remaining constant operand stays the same.
22020 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
22022 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22023 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22024 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22026 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22027 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22028 (m32bit-doubles) Likewise.
22029 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22030 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22033 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22035 * configure.ac ($gcc_cv_ld_clearcap): New test.
22036 * configure: Regenerate.
22037 * config.in: Regenerate.
22038 * config/sol2.opt (mclear-hwcap): New option.
22039 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22040 * config/sol2-clearcap.map: Moved here from
22041 testsuite/gcc.target/i386/clearcap.map.
22042 * config/sol2-clearcapv2.map: Move here from
22043 gcc.target/i386/clearcapv2.map.
22044 * config/t-sol2 (install): Depend on install-clearcap-map.
22045 (install-clearcap-map): New target.
22046 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22049 2014-05-28 Richard Biener <rguenther@suse.de>
22051 * hwint.h (*_HALF_WIDE_INT*): Move to ...
22052 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22053 ... here and remove the rest.
22054 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22056 2014-05-28 Richard Biener <rguenther@suse.de>
22058 PR tree-optimization/61335
22059 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22060 new range fails, drop to varying.
22062 2014-05-28 Olivier Hainque <hainque@adacore.com>
22064 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22065 (CPP_SPEC): Add entry for -mcpu=8548.
22066 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22067 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22069 2014-05-28 Tom de Vries <tom@codesourcery.com>
22071 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22072 * lra.c (initialize_lra_reg_info_element): Add init of
22073 actual_call_used_reg_set field.
22074 (lra): Call lra_create_live_ranges before lra_inheritance for
22076 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22078 * lra-constraints.c (need_for_call_save_p): Use
22079 actual_call_used_reg_set instead of call_used_reg_set for
22081 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22083 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22084 Tom de Vries <tom@codesourcery.com>
22086 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22088 (@item -fuse-caller-save): New item.
22090 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22091 Tom de Vries <tom@codesourcery.com>
22093 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22094 OPT_fuse_caller_save.
22096 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22097 Tom de Vries <tom@codesourcery.com>
22099 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22100 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22101 get_call_reg_set_usage.
22102 * resource.c (mark_set_resources, mark_target_live_regs): Use
22103 get_call_reg_set_usage.
22104 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22106 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22107 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22108 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22109 * ira-build.c (ira_create_allocno): Init
22110 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22111 (create_cap_allocno, propagate_allocno_info)
22112 (propagate_some_info_from_allocno)
22113 (copy_info_to_removed_store_destinations): Handle
22114 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22115 * ira-costs.c (ira_tune_allocno_costs): Use
22116 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22118 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22119 Tom de Vries <tom@codesourcery.com>
22121 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22122 and function_used_regs_valid fields.
22123 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22124 find_all_hard_reg_sets.
22125 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22126 (get_call_reg_set_usage): New function.
22127 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22128 * regs.h (get_call_reg_set_usage): Declare.
22130 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22133 * config/dbx.h (License): Add Runtime Library Exception.
22134 * config/newlib-stdint.h (License): Same.
22135 * config/rtems.h (License): Same
22136 * config/initfini-array.h (License): Same
22137 * config/v850/v850.h (License): Same.
22138 * config/v850/v850-opts.h (License): Same
22139 * config/v850/rtems.h (License): Same.
22141 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22144 * doc/extend.texi (Local Labels): Note that label differences are
22145 not supported for AVR.
22147 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22148 Olivier Hainque <hainque@adacore.com>
22150 * rtl.h (set_for_reg_notes): Declare.
22151 * emit-rtl.c (set_for_reg_notes): New function.
22152 (set_unique_reg_note): Use it.
22153 * optabs.c (add_equal_note): Likewise
22155 2014-05-27 Andrew Pinski <apinski@cavium.com>
22157 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22158 Use <w> for the register in assembly template.
22159 (stack_protect_test): Use the mode of operands[0] for the result.
22160 (stack_protect_test_<mode>): Use <w> for the register
22161 in assembly template.
22163 2014-05-27 DJ Delorie <dj@redhat.com>
22165 * config/rx/rx.c (add_vector_labels): New.
22166 (rx_output_function_prologue): Call it.
22167 (rx_handle_func_attribute): Don't require empty arguments.
22168 (rx_handle_vector_attribute): New.
22169 (rx_attribute_table): Add "vector" attribute.
22170 * doc/extend.texi (interrupt, vector): Document new/changed
22171 RX-specific attributes.
22173 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
22175 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22177 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
22178 predicate to detect a negative quotient.
22180 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22182 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
22183 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
22184 Add X - Y CMP 0 to X CMP Y transformation.
22185 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
22187 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
22189 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
22192 2014-05-27 Steve Ellcey <sellcey@mips.com>
22194 * config/mips/mips.c: Add include of cgraph.h.
22196 2014-05-27 Richard Biener <rguenther@suse.de>
22198 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
22200 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22203 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
22204 * config/arm/arm-cores.def (License): Same.
22205 * config/arm/arm-opts.h (License): Same.
22206 * config/arm/aout.h (License): Same.
22207 * config/arm/bpabi.h (License): Same.
22208 * config/arm/elf.h (License): Same.
22209 * config/arm/linux-elf.h (License): Same.
22210 * config/arm/linux-gas.h (License): Same.
22211 * config/arm/netbsd-elf.h (License): Same.
22212 * config/arm/uclinux-eabi.h (License): Same.
22213 * config/arm/uclinux-elf.h (License): Same.
22214 * config/arm/vxworks.h (License): Same.
22216 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22218 * config/arm/neon.md (neon_bswap<mode>): New pattern.
22219 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
22220 (arm_init_neon_builtins): Handle NEON_BSWAP.
22221 Define required type nodes.
22222 (arm_expand_neon_builtin): Handle NEON_BSWAP.
22223 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
22224 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
22225 * config/arm/iterators.md (VDQHSD): New mode iterator.
22227 2014-05-27 Richard Biener <rguenther@suse.de>
22229 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
22230 Try using literal operands when comparing value-ranges failed.
22232 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22234 * ira.c (commutative_operand): Adjust for change to recog_data.
22235 [Missing from previous commit.]
22237 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22239 * system.h (TEST_BIT): New macro.
22240 * recog.h (alternative_mask): New type.
22241 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
22242 (recog_data_d): Replace alternative_enabled_p array with
22243 enabled_alternatives.
22244 (target_recog): New structure.
22245 (default_target_recog, this_target_recog): Declare.
22246 (get_enabled_alternatives, recog_init): Likewise.
22247 * recog.c (default_target_recog, this_target_recog): New variables.
22248 (get_enabled_alternatives): New function.
22249 (extract_insn): Use it.
22250 (recog_init): New function.
22251 (preprocess_constraints, constrain_operands): Adjust for change to
22253 * postreload.c (reload_cse_simplify_operands): Likewise.
22254 * reload.c (find_reloads): Likewise.
22255 * ira-costs.c (record_reg_classes): Likewise.
22256 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
22257 all alternatives after a disabled one would be skipped.
22258 (ira_implicitly_set_insn_hard_regs): Likewise.
22259 * ira.c (ira_setup_alts): Adjust for change to recog_data.
22260 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
22261 with enabled_alternatives.
22262 * lra.c (free_insn_recog_data): Update accordingly.
22263 (lra_update_insn_recog_data): Likewise.
22264 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
22265 * lra-constraints.c (process_alt_operands): Likewise. Handle
22266 only_alternative as part of the enabled mask.
22267 * target-globals.h (this_target_recog): Declare.
22268 (target_globals): Add a recog field.
22269 (restore_target_globals): Restore this_target_recog.
22270 * target-globals.c: Include recog.h.
22271 (default_target_globals): Initialize recog field.
22272 (save_target_globals): Likewise.
22273 * reginfo.c (reinit_regs): Call recog_init.
22274 * toplev.c (backend_init_target): Likewise.
22276 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22278 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
22279 rather than any named insn's code.
22281 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22284 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
22285 * config/arm/arm-cores.def (License): Same.
22287 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
22289 * tree.h (decl_comdat_group): Declare.
22290 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
22291 * tree.c (decl_comdat_group): Here.
22293 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
22295 PR rtl-optimization/61222
22296 * combine.c (simplify_shift_const_1): When moving a PLUS outside
22297 the shift, truncate the PLUS operand to the result mode.
22299 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
22302 * config/i386/i386.c (ix86_rtx_costs)
22303 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
22306 2014-05-26 Martin Jambor <mjambor@suse.cz>
22308 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
22311 2014-05-26 Richard Biener <rguenther@suse.de>
22313 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
22314 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
22315 Provide specializations.
22316 (wi::int_traits <HOST_WIDE_INT>,
22317 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
22319 2014-05-26 Alan Modra <amodra@gmail.com>
22322 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
22323 params and return a bool. Remove dead code. Update comment.
22324 Assert we have a const_int source. Remove bogus code from
22325 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
22326 handling of constants > 2G and reg_equal note, from..
22327 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
22328 return value. Update comment. If we can, use a new pseudo
22329 for intermediate calculations.
22330 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
22332 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
22333 call to rs6000_emit_set_const in splitter.
22334 (movdi_internal64+2, +3): Likewise.
22336 2014-05-26 Richard Biener <rguenther@suse.de>
22338 * system.h: Define __STDC_FORMAT_MACROS before
22339 including inttypes.h.
22340 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
22341 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
22342 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
22343 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
22344 HOST_WIDEST_INT_C): Remove.
22345 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
22346 if C99 inttypes.h is not available.
22347 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
22348 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
22349 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
22350 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
22351 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
22352 (struct output_info): Likewise.
22353 (print_statistics): Adjust.
22354 (dump_bitmap_statistics): Likewise.
22355 * bt-load.c (migrate_btr_defs): Print with PRId64.
22356 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
22357 (MAX_SAFE_MULTIPLIER): Adjust.
22358 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
22359 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
22360 dump_cgraph_node): Likewise.
22361 * final.c (dump_basic_block_info): Likewise.
22362 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
22363 * gcov.c (format_gcov): Likewise.
22364 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
22366 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
22367 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
22368 (inline_small_functions, dump_overall_stats, dump_inline_stats):
22369 Use PRId64 for dumping.
22370 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
22371 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
22372 (add_allocno_hard_regs): Adjust.
22373 * loop-doloop.c (doloop_modify): Print using PRId64.
22374 * loop-iv.c (inverse): Compute in uint64_t.
22375 (determine_max_iter, iv_number_of_iterations): Likewise.
22376 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
22377 Print using PRId64.
22378 * lto-streamer-out.c (write_symbol): Use uint64_t.
22379 * mcf.c (CAP_INFINITY): Use int64_t maximum.
22380 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
22381 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
22382 * modulo-sched.c (const_iteration_count): Use int64_t.
22383 (sms_schedule): Dump using PRId64.
22384 * predict.c (dump_prediction): Likewise.
22385 * pretty-print.h (pp_widest_integer): Remove.
22386 * profile.c (get_working_sets, is_edge_inconsistent,
22387 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
22388 * tree-pretty-print.c (pp_double_int): Remove case handling
22389 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
22390 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
22392 (pass_optimize_bswap::execute): Remove restriction on hosts.
22393 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
22394 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
22395 * tree.c (widest_int_cst_value): Remove.
22396 * tree.h (widest_int_cst_value): Likewise.
22397 * value-prof.c (dump_histogram_value): Print using PRId64.
22398 * gengtype.c (main): Also inject int64_t.
22399 * ggc-page.c (struct max_alignment): Use int64_t.
22400 * alloc-pool.c (struct allocation_object_def): Likewise.
22401 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
22403 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
22404 * doc/tm.texi: Regenerated.
22405 * gengtype-lex.l (IWORD): Handle [u]int64_t.
22406 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
22407 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
22408 mmix_output_register_setting): Use [u]int64_t in prototypes.
22409 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
22410 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
22411 mmix_output_octa, mmix_output_shifted_value): Adjust.
22412 (mmix_intval): Adjust. Remove unreachable case.
22413 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
22415 2014-05-26 Richard Biener <rguenther@suse.de>
22417 * configure.ac: Drop __int64 type check. Insist that we
22418 found uint64_t and int64_t.
22419 * hwint.h (HOST_BITS_PER___INT64): Remove.
22420 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
22421 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
22422 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
22423 (HOST_WIDEST_FAST_INT): Remove __int64 case.
22424 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
22425 for dst_q_src_df_rms_cdt.
22426 * configure: Regenerate.
22427 * config.in: Likewise.
22429 2014-05-26 Michael Tautschnig <mt@debian.org>
22432 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
22433 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
22435 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22437 PR rtl-optimization/61278
22438 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
22440 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22442 PR rtl-optimization/61220
22443 Part of PR rtl-optimization/61225
22444 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
22445 insn; skip split_edge for a block with only one successor.
22447 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22449 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
22452 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22454 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
22455 (update_vtable_references): New function.
22456 (function_and_variable_visibility): Rewrite also vtable initializers.
22457 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
22459 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22461 * ggc.h (ggc_grow): New function.
22462 * ggc-none.c (ggc_grow): New function.
22463 * ggc-page.c (ggc_grow): Likewise.
22465 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22467 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
22468 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
22469 comdat_can_be_unshared_p, cgraph_externally_visible_p,
22470 varpool_externally_visible_p, can_replace_by_local_alias,
22471 update_visibility_by_resolution_info, function_and_variable_visibility,
22472 pass_data_ipa_function_and_variable_visibility,
22473 make_pass_ipa_function_and_variable_visibility,
22474 whole_program_function_and_variable_visibility,
22475 pass_data_ipa_whole_program_visibility,
22476 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
22477 * cgraph.h (cgraph_local_node_p): Declare.
22478 * ipa-visibility.c: New file.
22479 * Makefile.in (OBJS): Add ipa-visiblity.o
22481 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22483 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
22484 that var decl is available.
22486 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22488 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
22489 symtab_node pointer.
22490 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
22491 (find_decls_types_r): Do not walk COMDAT_GROUP.
22492 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
22493 * varasm.c (make_decl_one_only): Use set_comdat_group;
22494 create node if needed.
22495 * ipa-inline-transform.c (save_inline_function_body): Update
22496 way we decl->symtab mapping.
22497 * symtab.c (symtab_hash, hash_node, eq_node
22498 symtab_insert_node_to_hashtable): Remove.
22499 (symtab_register_node): Update.
22500 (symtab_unregister_node): Update.
22501 (symtab_get_node): Reimplement as inline function.
22502 (symtab_add_to_same_comdat_group): Update.
22503 (symtab_dissolve_same_comdat_group_list): Update.
22504 (dump_symtab_base): Update.
22505 (verify_symtab_base): Update.
22506 (symtab_make_decl_local): Update.
22507 (fixup_same_cpp_alias_visibility): Update.
22508 (symtab_nonoverwritable_alias): Update.
22509 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
22510 * ipa.c (update_visibility_by_resolution_info): UPdate.
22511 * bb-reorder.c: Include cgraph.h
22512 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
22513 with comdat groups.
22514 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
22515 * cgraph.c (cgraph_get_create_node): Update.
22516 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
22518 (symtab_get_node): Make inline.
22519 (symtab_insert_node_to_hashtable): Remove.
22520 (symtab_can_be_discarded): Update.
22521 (decl_comdat_group): New function.
22522 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
22524 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
22526 (read_comdat_group): New function.
22527 (input_node, input_varpool_node): Use it.
22528 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
22530 * mips.c (mips_start_unique_function): Likewise.
22531 (ix86_code_end): Likewise.
22532 (rs6000_code_end): Likweise.
22533 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
22535 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22537 * gengtype-state.c (fatal_reading_state): Bring offline.
22538 * optabs.c (widening_optab_handler): Bring offline.
22539 * optabs.h (widening_optab_handler): Likewise.
22540 * final.c (get_attr_length_1): Likewise.
22542 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
22544 * sched-int.h (sd_iterator_cond): Manually tail recurse.
22546 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22548 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
22549 (ppc440-compare): Include shift with dot.
22550 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
22551 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
22553 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
22555 (e6500_sfx2): Include it.
22556 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
22557 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
22558 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
22559 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
22560 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
22561 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
22562 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
22563 *lshiftrt_internal1le, *lshiftrt_internal1be,
22564 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
22565 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
22566 *rotldi3_internal10le, *rotldi3_internal10be,
22567 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
22568 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
22569 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
22570 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
22571 define_insns): Use type "shift" in the appropriate alternatives.
22573 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22575 * config/rs6000/rs6000.md (type): Add "logical". Delete
22577 (dot): Adjust comment.
22578 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
22579 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
22580 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
22581 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
22582 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
22583 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
22584 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
22585 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22587 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22588 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22589 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22590 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22591 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22592 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22593 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22594 * config/rs6000/8540.md (ppc8540_su): Adjust.
22595 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22596 cell-cmp-microcoded): Adjust.
22597 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22598 * config/rs6000/e500mc.md (e500mc_su): Adjust.
22599 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22600 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22601 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22602 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22603 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22604 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22605 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22607 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22608 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
22609 Adjust. Adjust comment.
22610 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22611 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22613 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22615 * config/rs6000/rs6000.md (type): Add "add".
22616 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
22617 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
22618 define_insns): Use it.
22619 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22621 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22622 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22623 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22624 * config/rs6000/601.md (ppc601-integer): Adjust.
22625 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22626 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22627 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22628 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22629 * config/rs6000/8540.md (ppc8540_su): Adjust.
22630 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22631 cell-cmp-microcoded): Adjust.
22632 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22633 * config/rs6000/e500mc.md (e500mc_su): Adjust.
22634 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22635 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22636 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22637 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22638 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22639 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22640 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22642 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22643 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
22644 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22645 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22647 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22649 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
22650 "delayed_compare", "var_delayed_compare".
22651 (var_shift): New attribute.
22652 (cell_micro): Adjust.
22653 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
22654 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
22655 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
22656 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
22657 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
22658 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
22659 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
22660 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
22661 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
22662 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22663 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
22664 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
22665 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
22666 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
22667 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
22668 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
22669 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
22670 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
22671 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
22672 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
22673 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
22674 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
22675 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
22676 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22677 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22679 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22680 * config/rs6000/440.md (ppc440-integer): Adjust.
22681 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22682 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
22683 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22684 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22685 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22686 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22687 * config/rs6000/8540.md (ppc8540_su): Adjust.
22688 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22689 cell-cmp-microcoded): Adjust.
22690 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
22691 * config/rs6000/e500mc.md (e500mc_su): Adjust.
22692 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
22693 e500mc64_delayed): Adjust.
22694 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
22695 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
22696 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22697 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
22698 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
22699 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
22700 power6-delayed-compare, power6-var-delayed-compare): Adjust.
22701 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
22702 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
22704 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22705 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22707 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22709 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
22710 (bits): New mode_attr.
22711 (idiv_ldiv): Delete mode_attr.
22712 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
22713 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22714 rs6000_adjust_priority, is_nonpipeline_insn,
22715 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22717 * config/rs6000/40x.md (ppc403-idiv): Adjust.
22718 * config/rs6000/440.md (ppc440-idiv): Adjust.
22719 * config/rs6000/476.md (ppc476-idiv): Adjust.
22720 * config/rs6000/601.md (ppc601-idiv): Adjust.
22721 * config/rs6000/603.md (ppc603-idiv): Adjust.
22722 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
22723 ppc620-ldiv): Adjust.
22724 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
22725 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
22726 * config/rs6000/8540.md (ppc8540_divide): Adjust.
22727 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
22728 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
22729 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
22730 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
22731 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
22732 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
22733 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
22734 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
22735 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
22736 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
22737 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
22738 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
22739 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
22740 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
22741 * config/rs6000/titan.md (titan_fxu_div): Adjust.
22743 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22745 * config/rs6000/rs6000.md (type): Delete "insert_word",
22746 "insert_dword". Add "insert".
22747 (size): Update comment.
22748 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22749 insn_must_be_first_in_group): Adjust.
22750 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
22751 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
22752 *insvsi_internal6, insvdi_internal): Adjust.
22754 * config/rs6000/40x.md (ppc403-integer): Adjust.
22755 * config/rs6000/440.md (ppc440-integer): Adjust.
22756 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
22757 * config/rs6000/601.md (ppc601-integer): Adjust.
22758 * config/rs6000/603.md (ppc603-integer): Adjust.
22759 * config/rs6000/6xx.md (ppc604-integer): Adjust.
22760 * config/rs6000/7450.md (ppc7450-integer): Adjust.
22761 * config/rs6000/7xx.md (ppc750-integer): Adjust.
22762 * config/rs6000/8540.md (ppc8540_su): Adjust.
22763 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
22764 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
22765 * config/rs6000/e500mc.md (e500mc_su): Adjust.
22766 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
22767 * config/rs6000/e5500.md (e5500_sfx): Adjust.
22768 * config/rs6000/e6500.md (e6500_sfx): Adjust.
22769 * config/rs6000/mpc.md (mpccore-integer): Adjust.
22770 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
22771 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
22772 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
22773 * config/rs6000/power7.md (power7-integer): Adjust.
22774 * config/rs6000/power8.md (power8-1cyc): Adjust.
22775 * config/rs6000/rs64.md (rs64a-integer): Adjust.
22776 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22778 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22780 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
22781 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
22782 (size): New attribute.
22783 (dot): New attribute.
22784 (cell_micro): Adjust.
22785 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
22786 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
22787 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
22788 umuldi3_highpart): Adjust.
22789 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22790 rs6000_adjust_priority, is_nonpipeline_insn,
22791 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22793 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
22794 ppc405-imul3): Adjust.
22795 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
22796 * config/rs6000/476.md (ppc476-imul): Adjust.
22797 * config/rs6000/601.md (ppc601-imul): Adjust.
22798 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
22799 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
22800 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
22801 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
22802 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
22804 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
22805 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
22806 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
22807 cell-imul): Adjust.
22808 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
22809 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
22810 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
22811 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
22812 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
22813 * config/rs6000/mpc.md (mpccore-imul): Adjust.
22814 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
22815 power4-lmul, power4-imul, power4-imul3): Adjust.
22816 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
22817 power5-lmul, power5-imul, power5-imul3): Adjust.
22818 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
22819 power6-lmul, power6-imul, power6-imul3): Adjust.
22820 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
22821 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
22823 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
22824 rs64a-lmul): Adjust.
22825 * config/rs6000/titan.md (titan_imul): Adjust.
22827 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22829 * config/rs6000/rs6000.md (type): Add new value "halfmul".
22830 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
22831 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
22832 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
22833 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
22834 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
22835 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
22836 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
22837 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
22838 * config/rs6000/titan.md: Delete nonsensical comment.
22839 (titan_imul): Add type imul3.
22840 (titan_mulhw): Remove type imul3; add type halfmul.
22842 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
22844 * config/rs6000/rs6000.md (type): Reorder, reformat.
22846 2014-05-23 Martin Jambor <mjambor@suse.cz>
22848 PR tree-optimization/53787
22849 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
22850 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
22851 analysis_done, update all uses.
22852 * ipa-prop.c: Include domwalk.h
22853 (param_analysis_info): Removed.
22854 (param_aa_status): New type.
22855 (ipa_bb_info): Likewise.
22856 (func_body_info): Likewise.
22857 (ipa_get_bb_info): New function.
22858 (aa_overwalked): Likewise.
22859 (find_dominating_aa_status): Likewise.
22860 (parm_bb_aa_status_for_bb): Likewise.
22861 (parm_preserved_before_stmt_p): Changed to use new param AA info.
22862 (load_from_unmodified_param): Accept func_body_info as a parameter
22863 instead of parms_ainfo.
22864 (parm_ref_data_preserved_p): Changed to use new param AA info.
22865 (parm_ref_data_pass_through_p): Likewise.
22866 (ipa_load_from_parm_agg_1): Likewise. Update callers.
22867 (compute_complex_assign_jump_func): Changed to use new param AA info.
22868 (compute_complex_ancestor_jump_func): Likewise.
22869 (ipa_compute_jump_functions_for_edge): Likewise.
22870 (ipa_compute_jump_functions): Removed.
22871 (ipa_compute_jump_functions_for_bb): New function.
22872 (ipa_analyze_indirect_call_uses): Likewise, moved variable
22874 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
22875 and info, moved variable declarations down.
22876 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
22878 (ipa_analyze_stmt_uses): Likewise.
22879 (ipa_analyze_params_uses): Removed.
22880 (ipa_analyze_params_uses_in_bb): New function.
22881 (ipa_analyze_controlled_uses): Likewise.
22882 (free_ipa_bb_info): Likewise.
22883 (analysis_dom_walker): New class.
22884 (ipa_analyze_node): Handle node-specific forbidden analysis,
22885 initialize and free func_body_info, use dominator walker.
22886 (ipcp_modif_dom_walker): New class.
22887 (ipcp_transform_function): Create and free func_body_info, use
22888 ipcp_modif_dom_walker, moved a lot of functionality there.
22890 2014-05-23 Marek Polacek <polacek@redhat.com>
22891 Jakub Jelinek <jakub@redhat.com>
22893 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
22894 * gcc.c (sanitize_spec_function): Likewise.
22895 * convert.c (convert_to_integer): Include "ubsan.h". Add
22896 floating-point to integer instrumentation.
22897 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
22898 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
22899 SANITIZE_NONDEFAULT.
22900 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
22901 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
22902 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
22903 * ubsan.c: Include "realmpfr.h" and "dfp.h".
22904 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
22905 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
22906 float/double/long double.
22907 (ubsan_instrument_float_cast): New function.
22908 * ubsan.h (ubsan_instrument_float_cast): Declare.
22910 2014-05-23 Jiong Wang <jiong.wang@arm.com>
22912 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
22914 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
22915 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
22916 Adjust for tailcalling through registers.
22917 * config/aarch64/aarch64.h (enum reg_class): New caller save
22919 (REG_CLASS_NAMES): Likewise.
22920 (REG_CLASS_CONTENTS): Likewise.
22921 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
22922 Allow tailcalling without decls.
22924 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
22926 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
22927 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
22929 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
22930 gsi, and variables v_* to v*.
22932 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
22934 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
22936 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
22938 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
22939 * omp-low.c: Update accordingly.
22941 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
22942 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
22943 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
22944 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
22945 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
22946 GF_OMP_TARGET_KIND_UPDATE.
22948 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
22949 Explicitly enumerate the expected region types.
22951 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
22954 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
22955 documentation; the old documentation didn't clearly state the
22956 constraints on the contents of the pointed-to storage.
22958 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22960 Fix bootstrap error on ia64
22961 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
22962 Return default value.
22964 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
22966 PR tree-optimization/54733
22967 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
22969 (find_bswap_or_nop_load): New.
22970 (find_bswap_1): Renamed to ...
22971 (find_bswap_or_nop_1): This. Also add support for memory source.
22972 (find_bswap): Renamed to ...
22973 (find_bswap_or_nop): This. Also add support for memory source and
22974 detection of bitwise operations equivalent to load in target
22976 (execute_optimize_bswap): Likewise. Also move its leading comment back
22977 in place and split statement transformation into ...
22978 (bswap_replace): This.
22980 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
22982 PR rtl-optimization/61215
22983 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
22984 simplify_gen_subreg until final substitution.
22986 2014-05-23 Alan Modra <amodra@gmail.com>
22989 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
22990 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
22991 Use "Y" constraint rather than "m".
22993 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
22995 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
22997 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
22998 New function declaration.
22999 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23000 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23001 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23002 (aarch64_init_builtins) : Initialize builtins
23003 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23004 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23005 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23006 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23007 and __builtins_aarch64_set_fpsr.
23008 (aarch64_atomic_assign_expand_fenv): New function.
23009 * config/aarch64/aarch64.md (set_fpcr): New pattern.
23010 (get_fpcr) : Likewise.
23011 (set_fpsr) : Likewise.
23012 (get_fpsr) : Likewise.
23013 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23014 and UNSPECV_SET_FPSR.
23015 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23016 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23017 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23019 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23021 PR rtl-optimization/60969
23022 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23023 constraints. Set up mem cost for NO_REGS case.
23025 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
23027 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23029 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
23031 * config/darwin.c: Include "lto-section-names.h".
23032 (LTO_SEGMENT_NAME): Don't define.
23033 * config/i386/winnt.c: Include "lto-section-names.h".
23034 * lto-streamer.c: Include "lto-section-names.h".
23035 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23036 * lto-wrapper.c: Include "lto-section-names.h".
23037 (LTO_SECTION_NAME_PREFIX): Don't define.
23038 * lto-section-names.h: New file.
23039 * cgraphunit.c: Include "lto-section-names.h".
23041 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
23043 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23045 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
23048 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23050 2014-05-22 Nick Clifton <nickc@redhat.com>
23052 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23054 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
23056 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23057 -> (T)A transformation to integer types.
23059 2014-05-22 Teresa Johnson <tejohnson@google.com>
23061 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23062 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23063 (gcov_rewrite): Use gcov_nonruntime_assert.
23064 (gcov_open): Ditto.
23065 (gcov_write_words): Ditto.
23066 (gcov_write_length): Ditto.
23067 (gcov_read_words): Use gcov_nonruntime_assert, and remove
23068 gcc_assert from IN_LIBGCOV code.
23069 (gcov_read_summary): Use gcov_error to flag profile corruption.
23070 (gcov_sync): Use gcov_nonruntime_assert.
23071 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23072 (gcov_histo_index): Use gcov_nonruntime_assert.
23073 (static void gcov_histogram_merge): Ditto.
23074 (compute_working_sets): Ditto.
23075 * gcov-io.h (gcov_nonruntime_assert): Define.
23076 (gcov_error): Define for !IN_LIBGCOV
23078 2014-05-22 Richard Biener <rguenther@suse.de>
23080 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23081 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23082 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23083 and deallocation site.
23084 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23085 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23086 passing through the incoming points-to set.
23087 (handle_lhs_call): Use flags argument instead of recomputing it.
23088 (find_func_aliases_for_call): Call handle_lhs_call with proper
23091 2014-05-22 Jakub Jelinek <jakub@redhat.com>
23093 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23094 all padding bits in REAL_VALUE_TYPE are cleared.
23096 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23098 Cleanup and improve multipass_dfa_lookahead_guard
23099 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23100 (core2i7_first_cycle_multipass_begin,)
23101 (core2i7_first_cycle_multipass_issue,)
23102 (core2i7_first_cycle_multipass_backtrack): Update signature.
23103 * config/ia64/ia64.c
23104 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23105 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23106 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23108 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23109 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
23111 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23113 * doc/tm.texi: Regenerate.
23115 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23116 * haifa-sched.c (ready_try): Make signed to allow negative values.
23117 (rebug_ready_list_1): Update.
23118 (choose_ready): Simplify.
23119 (sched_extend_ready_list): Update.
23121 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23123 Remove IA64 speculation tweaking flags
23124 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23125 speculation tuning flags.
23126 (msched-prefer-non-data-spec-insns,)
23127 (msched-prefer-non-control-spec-insns): Obsolete options.
23128 * haifa-sched.c (choose_ready): Remove handling of
23129 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23130 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23131 and PREFER_NON_DATA_SPEC.
23132 * sel-sched.c (process_spec_exprs): Remove handling of
23133 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23135 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23137 Improve scheduling debug output
23138 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23139 (advance_one_cycle): Update.
23140 (schedule_insn, queue_to_ready): Add debug printouts.
23141 (debug_ready_list_1): New static function.
23142 (debug_ready_list): Update.
23143 (max_issue): Add debug printouts.
23144 (dump_insn_stream): New static function.
23145 (schedule_block): Use it. Also better indent printouts.
23147 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23149 Fix sched_insn debug counter
23150 * haifa-sched.c (schedule_insn): Update.
23151 (struct haifa_saved_data): Add nonscheduled_insns_begin.
23152 (save_backtrack_point, restore_backtrack_point): Update.
23153 (first_nonscheduled_insn): New static function.
23154 (queue_to_ready, choose_ready): Use it.
23155 (schedule_block): Init nonscheduled_insns_begin.
23156 (sched_emit_insn): Update.
23159 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23161 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
23163 (aarch64_secondary_reload) : LikeWise.
23164 (aarch64_class_max_nregs) : Remove CORE_REGS.
23165 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
23166 (REG_CLASS_NAMES) : Likewise.
23167 (REG_CLASS_CONTENTS) : LikeWise.
23168 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
23170 2014-05-21 Guozhi Wei <carrot@google.com>
23173 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
23175 (vqdmulhq_n_s16): Likewise.
23177 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23179 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
23181 2014-05-21 Marek Polacek <polacek@redhat.com>
23184 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
23186 2014-05-21 Martin Jambor <mjambor@suse.cz>
23188 * doc/invoke.texi (Optimize Options): Document parameters
23189 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
23190 ipa-cp-array-index-hint-bonus.
23192 2014-05-21 Mark Wielaard <mjw@redhat.com>
23195 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
23196 version >= 3 or not strict DWARF.
23197 * langhooks.h (struct lang_hooks_for_types): Add
23198 enum_underlying_base_type.
23199 * langhooks.c (lhd_enum_underlying_base_type): New function.
23200 * gcc/langhooks.h (struct lang_hooks_for_types): Add
23201 enum_underlying_base_type.
23202 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
23203 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
23204 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
23206 2014-05-21 Richard Biener <rguenther@suse.de>
23208 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
23210 2014-05-21 John Marino <gnugcc@marino.st>
23212 * config.gcc (*-*-dragonfly*): New target.
23213 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
23214 * configure: Regenerate.
23215 * config/dragonfly-stdint.h: New.
23216 * config/dragonfly.h: New.
23217 * config/dragonfly.opt: New.
23218 * config/i386/dragonfly.h: New.
23219 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
23221 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23223 * tree.def (VOID_CST): New.
23224 * tree-core.h (TI_VOID): New.
23225 * tree.h (void_node): New.
23226 * tree.c (tree_node_structure_for_code, tree_code_size)
23227 (iterative_hash_expr): Handle VOID_CST.
23228 (build_common_tree_nodes): Initialize void_node.
23230 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
23232 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
23234 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
23236 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
23239 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
23240 flag_reorder_blocks_and_partition.
23241 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
23243 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
23246 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
23248 (*addc_r_t): Add new insn_and_split.
23250 2014-05-21 Jakub Jelinek <jakub@redhat.com>
23252 PR middle-end/61252
23253 * omp-low.c (handle_simd_reference): New function.
23254 (lower_rec_input_clauses): Use it. Defer adding reference
23255 initialization even for reduction without placeholder if in simd,
23256 handle it properly later on.
23258 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23260 PR tree-optimization/60899
23261 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
23262 assume all static symbols will have definition wile parsing and
23263 check the do have definition later in compilation; check that
23264 variable referring symbol will be output before concluding that
23265 reference is safe; be conservative for referring local statics;
23266 be more precise about when comdat is output in other partition.
23268 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23271 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
23273 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
23274 (ipa_inline): Loop inline_to_all_callers until no more aliases
23277 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23279 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
23280 set writeonly flag only for vars actually written to.
23282 2014-05-20 Dehao Chen <dehao@google.com>
23284 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
23285 and callee count to get clone count.
23286 * tree-inline.c (expand_call_inline): Use callee count instead of bb
23287 count in copy_body.
23289 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23291 PR rtl-optimization/61243
23292 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
23294 2014-05-20 Xinliang David Li <davidxl@google.com>
23296 * cgraphunit.c (walk_polymorphic_call_targets): Add
23297 dbgcnt and fopt-info support.
23298 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
23299 * ipa-devirt.c (ipa_devirt): Ditto.
23300 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
23301 * ipa.c (walk_polymorphic_call_targets): Ditto.
23302 * gimple-fold.c (fold_gimple_assign): Ditto.
23303 (gimple_fold_call): Ditto.
23304 * dbgcnt.def: New counter.
23306 2014-05-20 DJ Delorie <dj@redhat.com>
23308 * config/msp430/msp430.md (split): Don't allow subregs when
23309 splitting SImode adds.
23310 (andneghi): Fix subtraction logic.
23311 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
23313 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23315 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
23317 * except.c (switch_to_exception_section, resolve_unique_section,
23318 get_named_text_section, default_function_rodata_section,
23319 align_variable, get_block_for_decl, default_section_type_flags):
23320 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
23321 * symtab.c (symtab_add_to_same_comdat_group,
23322 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
23323 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
23325 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
23326 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
23327 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
23328 (c6x_function_in_section_p): Likewise.
23329 * config/darwin.c (machopic_select_section): Likewise.
23330 * config/arm/arm.c (arm_function_in_section_p): Likewise.
23331 * config/mips/mips.c (mips_function_rodata_section): Likewise.
23332 * config/mep/mep.c (mep_select_section): LIkewise.
23333 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
23335 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
23337 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
23338 EH region of calls to pure functions that can throw an exception.
23339 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
23340 (copy_reference_ops_from_call): Also copy the EH region of the call if
23341 it can throw an exception.
23343 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23345 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
23346 nested VEC_SELECTs that are inverses of each other.
23348 2014-05-20 Richard Biener <rguenther@suse.de>
23350 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
23351 (extract_and_process_scc_for_name): not here.
23352 (cond_dom_walker::before_dom_children): Only process
23353 stmts that end the BB in interesting ways.
23354 (run_scc_vn): Mark param uses as visited.
23356 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23358 * config/arm/arm.md (arith_shiftsi): Do not predicate for
23361 2014-05-20 Nick Clifton <nickc@redhat.com>
23363 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
23364 (msp430_gimplify_va_arg_expr): New function.
23365 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
23367 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
23368 operand 0 in order to prevent confusion about the number of
23369 registers involved.
23371 2014-05-20 Richard Biener <rguenther@suse.de>
23373 PR tree-optimization/61221
23374 * tree-ssa-pre.c (el_to_update): Remove.
23375 (eliminate_dom_walker::before_dom_children): Handle released
23376 VDEFs by value-numbering them to the associated VUSE. Update
23377 stmt immediately for substituted call address.
23378 (eliminate): Remove delayed stmt updating code.
23379 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
23380 possibly late re-numbered vuses.
23381 (vn_reference_lookup_2): Adjust.
23382 (vn_reference_lookup_pieces): Likewise.
23383 (vn_reference_lookup): Likewise.
23385 2014-05-20 Richard Biener <rguenther@suse.de>
23387 * config.gcc: Remove need_64bit_hwint.
23388 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
23389 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
23391 * config.in: Regenerate.
23392 * configure: Likewise.
23394 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
23396 * doc/extend.texi: Create Label Attributes section,
23397 move all label attributes into it and reference it.
23399 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
23401 * arm.c (thumb1_reorg): When scanning backwards skip anything
23402 that's not a proper insn.
23404 2014-05-19 Richard Biener <rguenther@suse.de>
23406 PR tree-optimization/61221
23407 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23408 Do nothing for unreachable blocks.
23409 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
23410 Improve unreachability detection.
23412 2014-05-19 Richard Biener <rguenther@suse.de>
23414 PR tree-optimization/61209
23415 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
23417 2014-05-19 Nick Clifton <nickc@redhat.com>
23419 * except.c (init_eh): Fix computation of builtin setjmp buffer
23420 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
23422 2014-05-19 Richard Biener <rguenther@suse.de>
23424 PR tree-optimization/61184
23425 * tree-vrp.c (is_negative_overflow_infinity): Use
23426 TREE_OVERFLOW_P and do that check first.
23427 (is_positive_overflow_infinity): Likewise.
23428 (is_overflow_infinity): Likewise.
23429 (vrp_operand_equal_p): Properly treat operands with
23430 differing overflow as not equal.
23432 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
23434 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
23435 shift simplification where it was intended.
23437 2014-05-19 Christian Bruel <christian.bruel@st.com>
23440 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
23442 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
23445 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
23448 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23450 * reg-notes.def (CROSSING_JUMP): Likewise.
23451 * rtl.h (rtx_def): Update comment for jump flag.
23452 (CROSSING_JUMP_P): Define.
23453 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
23454 of a REG_CROSSING_JUMP note.
23455 * cfghooks.c (tidy_fallthru_edges): Likewise.
23456 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
23457 * emit-rtl.c (try_split): Likewise.
23458 * haifa-sched.c (sched_create_recovery_edges): Likewise.
23459 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
23460 * jump.c (redirect_jump_2): Likewise.
23461 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
23462 (relax_delay_slots): Likewise.
23463 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
23464 (bbit_di): Likewise.
23465 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
23466 * config/sh/sh.md (jump_compact): Likewise.
23467 * bb-reorder.c (rotate_loop): Likewise.
23468 (pass_duplicate_computed_gotos::execute): Likewise.
23469 (add_reg_crossing_jump_notes): Rename to...
23470 (update_crossing_jump_flags): ...this.
23471 (pass_partition_blocks::execute): Update accordingly.
23473 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23475 * tree.h: Remove extraneous template <>.
23477 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
23479 * ipa.c (symtab_remove_unreachable_nodes): Remove
23480 symbol from comdat group if its body was eliminated.
23481 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
23482 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
23483 (symtab_unregister_node): ... this one.
23484 (verify_symtab_base): More strict checking of comdats.
23485 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
23487 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
23489 * tree-pass.h (make_pass_ipa_comdats): New pass.
23490 * timevar.def (TV_IPA_COMDATS): New timevar.
23491 * passes.def (pass_ipa_comdats): Add.
23492 * Makefile.in (OBJS): Add ipa-comdats.o
23493 * ipa-comdats.c: New file.
23495 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
23497 * ipa.c (update_visibility_by_resolution_info): New function.
23498 (function_and_variable_visibility): Use it.
23500 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
23502 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
23504 (FOR_EACH_DEFINED_SYMBOL): New macro.
23505 (varpool_first_static_initializer, varpool_next_static_initializer,
23506 varpool_first_defined_variable, varpool_next_defined_variable):
23508 (symtab_in_same_comdat_p): Correctly deal with inline functions.
23510 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23512 * ggc-page.c (ggc_handle_finalizers): Add comment.
23514 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23516 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
23517 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
23518 (ggc_internal_cleared_alloc): Likewise.
23519 * ggc-page.c (finalizer): New class.
23520 (vec_finalizer): Likewise.
23521 (globals::finalizers): New member.
23522 (globals::vec_finalizers): Likewise.
23523 (ggc_internal_alloc): Record the finalizer if any for the block being
23525 (ggc_handle_finalizers): New function.
23526 (ggc_collect): Call ggc_handle_finalizers.
23527 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
23529 (ggc_internal_cleared_alloc): Likewise.
23530 (finalize): New function.
23531 (need_finalization_p): Likewise.
23532 (ggc_alloc): Install the type's destructor as the finalizer if it
23533 might do something.
23534 (ggc_cleared_alloc): Likewise.
23535 (ggc_vec_alloc): Likewise.
23536 (ggc_cleared_vec_alloc): Likewise.
23538 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23540 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
23542 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23544 * alias.c (record_alias_subset): Adjust.
23545 * bitmap.c (bitmap_element_allocate): Likewise.
23546 (bitmap_gc_alloc_stat): Likewise.
23547 * cfg.c (init_flow): Likewise.
23548 (alloc_block): Likewise.
23549 (unchecked_make_edge): Likewise.
23550 * cfgloop.c (alloc_loop): Likewise.
23551 (flow_loops_find): Likewise.
23552 (rescan_loop_exit): Likewise.
23553 * cfgrtl.c (init_rtl_bb_info): Likewise.
23554 * cgraph.c (insert_new_cgraph_node_version): Likewise.
23555 (cgraph_allocate_node): Likewise.
23556 (cgraph_create_edge_1): Likewise.
23557 (cgraph_allocate_init_indirect_info): Likewise.
23558 * cgraphclones.c (cgraph_clone_edge): Likewise.
23559 * cgraphunit.c (add_asm_node): Likewise.
23560 (init_lowered_empty_function): Likewise.
23561 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
23562 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
23563 (alpha_use_linkage): Likewise.
23564 * config/arc/arc.c (arc_init_machine_status): Likewise.
23565 * config/arm/arm.c (arm_init_machine_status): Likewise.
23566 * config/avr/avr.c (avr_init_machine_status): Likewise.
23567 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
23568 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
23569 * config/cris/cris.c (cris_init_machine_status): Likewise.
23570 * config/darwin.c (machopic_indirection_name): Likewise.
23571 (darwin_build_constant_cfstring): Likewise.
23572 (darwin_enter_string_into_cfstring_table): Likewise.
23573 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
23574 * config/frv/frv.c (frv_init_machine_status): Likewise.
23575 * config/i386/i386.c (get_dllimport_decl): Likewise.
23576 (ix86_init_machine_status): Likewise.
23577 (assign_386_stack_local): Likewise.
23578 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
23579 (i386_pe_maybe_record_exported_symbol): Likewise.
23580 (i386_pe_record_stub): Likewise.
23581 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
23582 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
23583 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
23584 (m32c_note_pragma_address): Likewise.
23585 * config/mep/mep.c (mep_init_machine_status): Likewise.
23586 (mep_note_pragma_flag): Likewise.
23587 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
23588 (mips16_local_alias): Likewise.
23589 (mips_init_machine_status): Likewise.
23590 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
23591 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
23592 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
23593 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
23594 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
23595 * config/pa/pa.c (pa_init_machine_status): Likewise.
23596 (pa_get_deferred_plabel): Likewise.
23597 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
23598 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
23599 (rs6000_init_machine_status): Likewise.
23600 (output_toc): Likewise.
23601 * config/s390/s390.c (s390_init_machine_status): Likewise.
23602 * config/score/score.c (score_output_external): Likewise.
23603 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
23604 * config/spu/spu.c (spu_init_machine_status): Likewise.
23605 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
23606 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
23607 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
23608 * coverage.c (coverage_end_function): Likewise.
23609 * dbxout.c (dbxout_init): Likewise.
23610 * doc/gty.texi: Don't mention variable_size attribute.
23611 * dwarf2cfi.c (new_cfi): Adjust.
23612 (new_cfi_row): Likewise.
23613 (copy_cfi_row): Likewise.
23614 (create_cie_data): Likewise.
23615 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
23616 (new_loc_descr): Likewise.
23617 (find_AT_string_in_table): Likewise.
23618 (add_addr_table_entry): Likewise.
23619 (new_die): Likewise.
23620 (add_var_loc_to_decl): Likewise.
23621 (clone_die): Likewise.
23622 (clone_as_declaration): Likewise.
23623 (break_out_comdat_types): Likewise.
23624 (new_loc_list): Likewise.
23625 (add_loc_descr_to_each): Likewise.
23626 (add_location_or_const_value_attribute): Likewise.
23627 (add_linkage_name): Likewise.
23628 (lookup_filename): Likewise.
23629 (dwarf2out_var_location): Likewise.
23630 (new_line_info_table): Likewise.
23631 (dwarf2out_init): Likewise.
23632 (mem_loc_descriptor): Likewise.
23633 (loc_descriptor): Likewise.
23634 (add_const_value_attribute): Likewise.
23635 (tree_add_const_value_attribute): Likewise.
23636 (comp_dir_string): Likewise.
23637 (dwarf2out_vms_debug_main_pointer): Likewise.
23638 (string_cst_pool_decl): Likewise.
23639 * emit-rtl.c (set_mem_attrs): Likewise.
23640 (get_reg_attrs): Likewise.
23641 (start_sequence): Likewise.
23642 (init_emit): Likewise.
23643 (init_emit_regs): Likewise.
23644 * except.c (init_eh_for_function): Likewise.
23645 (gen_eh_region): Likewise.
23646 (gen_eh_region_catch): Likewise.
23647 (gen_eh_landing_pad): Likewise.
23648 (add_call_site): Likewise.
23649 * function.c (add_frame_space): Likewise.
23650 (insert_temp_slot_address): Likewise.
23651 (assign_stack_temp_for_type): Likewise.
23652 (get_hard_reg_initial_val): Likewise.
23653 (allocate_struct_function): Likewise.
23654 (prepare_function_start): Likewise.
23655 (types_used_by_var_decl_insert): Likewise.
23656 * gengtype.c (variable_size_p): Remove function.
23657 (enum alloc_quantity): Remove enum.
23658 (write_typed_alloc_def): Remove function.
23659 (write_typed_struct_alloc_def): Likewise.
23660 (write_typed_typedef_alloc_def): Likewise.
23661 (write_typed_alloc_defns): Likewise.
23663 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
23664 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
23665 * ggc.h (ggc_alloc): new function.
23666 (ggc_cleared_alloc): Likewise.
23667 (ggc_vec_alloc): Template on type of vector element, and remove
23668 element size argument.
23669 (ggc_cleared_vec_alloc): Likewise.
23670 * gimple.c (gimple_build_omp_for): Adjust.
23671 (gimple_copy): Likewise.
23672 * ipa-cp.c (get_replacement_map): Likewise.
23673 (find_aggregate_values_for_callers_subset): Likewise.
23674 (known_aggs_to_agg_replacement_list): Likewise.
23675 * ipa-devirt.c (get_odr_type): Likewise.
23676 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
23677 (read_agg_replacement_chain): Likewise.
23678 * loop-iv.c (get_simple_loop_desc): Likewise.
23679 * lto-cgraph.c (input_node_opt_summary): Likewise.
23680 * lto-section-in.c (lto_new_in_decl_state): Likewise.
23681 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
23682 (input_eh_region): Likewise.
23683 (input_eh_lp): Likewise.
23684 (input_cfg): Likewise.
23685 * optabs.c (set_optab_libfunc): Likewise.
23686 (init_tree_optimization_optabs): Likewise.
23687 (set_conv_libfunc): Likewise.
23688 * passes.c (do_per_function_toporder): Likewise.
23689 * rtl.h: Don't use variable_size gty attribute.
23690 * sese.c (if_region_set_false_region): Adjust.
23691 * stringpool.c (gt_pch_save_stringpool): Likewise.
23692 * target-globals.c (save_target_globals): Likewise.
23693 * toplev.c (general_init): Likewise.
23694 * trans-mem.c (record_tm_replacement): Likewise.
23695 (split_bb_make_tm_edge): Likewise.
23696 * tree-cfg.c (move_sese_region_to_fn): Likewise.
23697 * tree-data-ref.h (lambda_vector_new): Likewise.
23698 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
23699 * tree-iterator.c (tsi_link_before): Likewise.
23700 (tsi_link_after): Likewise.
23701 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
23702 * tree-ssa-loop-niter.c (record_estimate): Likewise.
23703 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23704 * tree-ssa-operands.h: Don't use variable_size gty attribute.
23705 * tree-ssa.c (init_tree_ssa): Adjust.
23706 * tree-ssanames.c (set_range_info): Likewise.
23707 (get_ptr_info): Likewise.
23708 (duplicate_ssa_name_ptr_info): Likewise.
23709 (duplicate_ssa_name_range_info): Likewise.
23710 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
23711 (unpack_ts_fixed_cst_value_fields): Likewise.
23712 * tree.c (build_fixed): Likewise.
23713 (build_real): Likewise.
23714 (build_string): Likewise.
23715 (decl_priority_info): Likewise.
23716 (decl_debug_expr_insert): Likewise.
23717 (decl_value_expr_insert): Likewise.
23718 (decl_debug_args_insert): Likewise.
23719 (type_hash_add): Likewise.
23720 (build_omp_clause): Likewise.
23721 * ubsan.c (decl_for_type_insert): Likewise.
23722 * varasm.c (get_unnamed_section): Likewise.
23723 (get_noswitch_section): Likewise.
23724 (get_section): Likewise.
23725 (get_block_for_section): Likewise.
23726 (create_block_symbol): Likewise.
23727 (build_constant_desc): Likewise.
23728 (create_constant_pool): Likewise.
23729 (force_const_mem): Likewise.
23730 (record_tm_clone_pair): Likewise.
23731 * varpool.c (varpool_create_empty_node): Likewise.
23733 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
23735 * dwarf2out.c (tree_add_const_value_attribute): Call
23736 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
23737 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
23738 instead of ggc_internal_<x>alloc_stat.
23739 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
23740 (ggc_realloc): Likewise.
23741 * ggc-none.c (ggc_internal_alloc): Likewise.
23742 (ggc_internal_cleared_alloc): Likewise.
23743 * ggc-page.c: Likewise.
23744 * ggc.h (ggc_internal_alloc_stat): Likewise.
23745 (ggc_internal_alloc): Remove macro.
23746 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
23747 (ggc_internal_cleared_alloc): Remove macro.
23748 (GGC_RESIZEVEC): Adjust.
23749 (ggc_resizevar): Remove macro.
23750 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
23751 (ggc_internal_cleared_vec_alloc_stat): Likewise.
23752 (ggc_internal_vec_cleared_alloc): Remove macro.
23753 (ggc_alloc_atomic_stat): Drop _stat suffix.
23754 (ggc_alloc_atomic): Remove macro.
23755 (ggc_alloc_cleared_atomic): Remove macro.
23756 (ggc_alloc_string_stat): Drop _stat suffix.
23757 (ggc_alloc_string): Remove macro.
23758 (ggc_alloc_rtx_def_stat): Adjust.
23759 (ggc_alloc_tree_node_stat): Likewise.
23760 (ggc_alloc_cleared_tree_node_stat): Likewise.
23761 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
23762 (ggc_alloc_cleared_simd_clone_stat): Likewise.
23763 * gimple.c (gimple_build_omp_for): Likewise.
23764 (gimple_copy): Likewise.
23765 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
23766 * toplev.c (realloc_for_line_map): Adjust.
23767 * tree-data-ref.h (lambda_vector_new): Likewise.
23768 * tree-phinodes.c (allocate_phi_node): Likewise.
23769 * tree.c (grow_tree_vec_stat): Likewise.
23770 * vec.h (va_gc::reserve): Adjust.
23772 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
23774 * config/microblaze/microblaze.c (break_handler): New Declaration.
23775 (microblaze_break_function_p,microblaze_is_break_handler): New.
23776 (compute_frame_size): Use microblaze_break_function_p.
23777 Add the test of break_handler.
23778 (microblaze_function_prologue) : Add the test of variable
23779 break_handler. Check the fnname by BREAK_HANDLER_NAME.
23780 (microblaze_function_epilogue) : Add the test of break_handler.
23781 (microblaze_globalize_label) : Add the test of break_handler.
23782 Check the name by BREAK_HANDLER_NAME.
23784 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
23786 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
23787 microblaze_is_break_handler test.
23788 (call_internal1,call_value_intern): Use microblaze_break_function_p.
23789 Use SYMBOL_REF_DECL.
23791 * config/microblaze/microblaze-protos.h
23792 (microblaze_break_function_p,microblaze_is_break_handler):
23795 * doc/extend.texi (MicroBlaze break_handler Functions): Document
23796 new MicroBlaze break_handler functions.
23798 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
23800 * doc/extend.texi (Size of an asm): Move node text according
23801 to its @menu entry position.
23803 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
23805 PR tree-optimization/61140
23806 PR tree-optimization/61150
23807 PR tree-optimization/61197
23808 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
23810 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
23812 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
23814 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
23816 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
23817 __SIZEOF_INT128__ is defined.
23819 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
23821 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
23822 (rs6000_delegitimize_address): Use it.
23824 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
23826 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
23827 inplace argument. Store the new address in the original MEM when true.
23828 * emit-rtl.c (change_address_1): Likewise.
23829 (adjust_address_1, adjust_automodify_address_1, offset_address):
23830 Update accordingly.
23831 * rtl.h (plus_constant): Add an inplace argument.
23832 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
23833 when true. Avoid generating (plus X (const_int 0)).
23834 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
23835 in-place. Pass true to plus_constant.
23836 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
23838 2014-05-16 Dehao Chen <dehao@google.com>
23840 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
23842 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
23845 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
23847 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
23849 2014-05-16 Dehao Chen <dehao@google.com>
23851 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
23852 optimize_function_for_size_p.
23853 * regs.h (REG_FREQ_FROM_BB): Likewise.
23855 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
23858 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
23859 negt_reg_operand cases.
23860 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
23862 * config/sh/predicates.md (cbranch_treg_value): Simplify.
23864 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
23866 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
23869 2014-05-16 David Malcolm <dmalcolm@redhat.com>
23872 2014-04-29 David Malcolm <dmalcolm@redhat.com>
23874 * tree-cfg.c (dump_function_to_file): Dump the return type of
23875 functions, in a line to itself before the function body, mimicking
23876 the layout of a C function.
23878 2014-05-16 Dehao Chen <dehao@google.com>
23880 * cfghooks.c (make_forwarder_block): Use direct computation to
23881 get fall-through edge's count and frequency.
23883 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
23885 * config/arc/arc.c (arc_init): Fix typo in error message.
23886 * config/i386/i386.c (ix86_expand_builtin): Likewise.
23887 (split_stack_prologue_scratch_regno): Likewise.
23888 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
23889 word from error message.
23891 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23893 * ira-costs.c: Fix typo in comment.
23895 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
23897 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
23899 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
23901 * varpool.c (dump_varpool_node): Dump write-only flag.
23902 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
23904 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
23905 write-only variables.
23906 * ipa.c (process_references): New function.
23907 (set_readonly_bit): New function.
23908 (set_writeonly_bit): New function.
23909 (clear_addressable_bit): New function.
23910 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
23911 fix handling of aliases.
23912 * cgraph.h (struct varpool_node): Add writeonly flag.
23914 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
23916 PR rtl-optimization/60969
23917 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
23918 Calculate costs for this case.
23920 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
23922 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
23923 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
23925 2014-05-16 Richard Biener <rguenther@suse.de>
23927 PR tree-optimization/61194
23928 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
23929 bool patterns ending in a COND_EXPR.
23931 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23933 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
23935 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23937 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
23938 where we were unable to cost an RTX.
23940 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23942 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
23945 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23946 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23948 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
23950 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23951 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23953 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
23954 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
23956 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23957 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23959 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
23962 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23963 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23965 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
23968 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23969 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23971 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
23972 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
23974 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23975 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23977 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
23978 rotates and shifts.
23980 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23981 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23983 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
23984 ZERO_EXTEND and SIGN_EXTEND better.
23986 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23987 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23989 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
23990 logical operations.
23992 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23993 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23995 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
23996 costs when costing loads and stores to memory.
23998 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
23999 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
24001 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24004 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24006 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24008 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24009 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24011 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24013 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24015 (aarch64_rtx_mult_cost): New.
24016 (aarch64_rtx_costs): Use it, refactor as appropriate.
24018 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24019 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24021 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24022 emit instructions, return number of instructions which would
24024 (aarch64_add_constant): Update call to aarch64_build_constant.
24025 (aarch64_output_mi_thunk): Likewise.
24026 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24029 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24031 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24032 (TARGET_RTX_COSTS): Call it.
24034 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24036 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24037 (cortexa57_vector_cost): Likewise.
24038 (cortexa57_tunings): Use them.
24040 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24042 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24043 (cpu_addrcost_table): Use it.
24044 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24045 (aarch64_address_cost): Rewrite using aarch64_classify_address,
24048 2014-05-16 Richard Biener <rguenther@suse.de>
24050 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24051 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24052 (visit_phi): Ignore edges marked as not executable.
24053 (class cond_dom_walker): New.
24054 (cond_dom_walker::before_dom_children): Value-number
24055 control statements and mark successor edges as not
24056 executable if possible.
24057 (run_scc_vn): First walk all control statements in
24058 dominator order, marking edges as not executable.
24059 * tree-inline.c (copy_edges_for_bb): Be not confused
24060 about random edge flags.
24062 2014-05-16 Richard Biener <rguenther@suse.de>
24064 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24066 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
24069 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24070 (__TM_simple_begin): Use it.
24071 (__TM_begin): Likewise.
24073 2014-05-15 Martin Jambor <mjambor@suse.cz>
24076 * ipa-prop.c (update_indirect_edges_after_inlining): Check
24077 type_preserved flag when the indirect edge is polymorphic.
24079 2014-05-15 Martin Jambor <mjambor@suse.cz>
24081 PR tree-optimization/61090
24082 * tree-sra.c (sra_modify_expr): Pass the current gsi to
24083 build_ref_for_model.
24085 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24087 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24088 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24090 2014-05-15 Jakub Jelinek <jakub@redhat.com>
24092 PR tree-optimization/61158
24093 * fold-const.c (fold_binary_loc): If X is zero-extended and
24094 shiftc >= prec, make sure zerobits is all ones instead of
24095 invoking undefined behavior.
24097 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24099 * regcprop.h: New file.
24100 * regcprop.c (skip_debug_insn_p): New decl.
24101 (replace_oldest_value_reg): Check skip_debug_insn_p.
24102 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24103 * shrink-wrap.c: Include regcprop.h.
24104 (prepare_shrink_wrap): Call
24105 copyprop_hardreg_forward_bb_without_debug_insn.
24107 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24109 * shrink-wrap.h: Update comment.
24110 * shrink-wrap.c: Update comment.
24111 (next_block_for_reg): Rename to live_edge_for_reg.
24112 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24113 (move_insn_for_shrink_wrap): Split live_edge.
24114 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24116 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24118 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24120 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24121 * config/sparc/sparc.md (fptype_ut699): New attribute.
24122 (in_branch_delay): Return false if -mfix-ut699 is specified and
24123 fptype_ut699 is set to single.
24124 (truncdfsf2): Add fptype_ut699 attribute.
24125 (fix_truncdfsi2): Likewise.
24126 (floatsisf2): Change fptype attribute.
24127 (fix_truncsfsi2): Likewise.
24128 (negtf2_notv9): Delete.
24129 (negtf2_v9): Likewise.
24130 (negtf2_hq): New instruction.
24131 (negtf2): New instruction and splitter.
24132 (negdf2_notv9): Rewrite.
24133 (abstf2_notv9): Delete.
24134 (abstf2_hq_v9): Likewise.
24135 (abstf2_v9): Likewise.
24136 (abstf2_hq): New instruction.
24137 (abstf2): New instruction and splitter.
24138 (absdf2_notv9): Rewrite.
24140 2014-05-14 Cary Coutant <ccoutant@google.com>
24143 * opts.c (common_handle_option): Don't special-case "-g".
24144 (set_debug_level): Default to at least level 2 with "-g".
24146 2014-05-14 DJ Delorie <dj@redhat.com>
24148 * config/msp430/msp430.c (msp430_builtin): Add
24149 MSP430_BUILTIN_DELAY_CYCLES.
24150 (msp430_init_builtins): Register void __delay_cycles(long long).
24151 (msp430_builtin_decl): Add it.
24152 (cg_magic_constant): New.
24153 (msp430_expand_delay_cycles): New.
24154 (msp430_expand_builtin): Call it.
24155 (msp430_print_operand_raw): Change integer printing from "int" to
24157 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24158 (delay_cycles_start): New.
24159 (delay_cycles_end): New.
24160 (delay_cycles_32): New.
24161 (delay_cycles_32x): New.
24162 (delay_cycles_16): New.
24163 (delay_cycles_16x): New.
24164 (delay_cycles_2): New.
24165 (delay_cycles_1): New.
24166 * doc/extend.texi: Document __delay_cycles().
24168 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
24170 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
24171 length attribute computation.
24173 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
24176 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
24178 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
24181 * config/sparc/sparc.md: Fix types of low and high in DI constant
24182 splitter. Use gen_int_mode in some other splitters.
24184 2014-05-14 Martin Jambor <mjambor@suse.cz>
24187 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
24189 2014-05-14 James Norris <jnorris@codesourcery.com>
24191 * omp-low.c (expand_parallel_call): Remove shadow variable.
24192 (expand_omp_taskreg): Likewise.
24194 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
24196 * common/config/i386/i386-common.c
24197 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
24198 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
24199 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
24200 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
24201 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
24202 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
24203 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
24204 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
24205 xsavecintrin.h, xsavesintrin.h.
24206 (x86_64-*-*): Ditto.
24207 * config/i386/clflushoptintrin.h: New.
24208 * config/i386/xsavecintrin.h: Ditto.
24209 * config/i386/xsavesintrin.h: Ditto.
24210 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
24211 (bit_XSAVES): Ditto.
24212 (bit_XSAVES): Ditto.
24213 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24214 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
24216 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24217 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
24218 OPTION_MASK_ISA_XSAVES.
24219 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
24220 -mxsavec, -mxsaves.
24221 (PTA_CLFLUSHOPT) Define.
24222 (PTA_XSAVEC): Ditto.
24223 (PTA_XSAVES): Ditto.
24224 (ix86_option_override_internal): Handle new options.
24225 (ix86_valid_target_attribute_inner_p): Ditto.
24226 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
24227 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
24228 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
24229 (bdesc_special_args): Add __builtin_ia32_xsaves,
24230 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
24231 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
24232 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
24233 (ix86_expand_builtin): Handle new builtins.
24234 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
24235 (TARGET_CLFLUSHOPT_P): Ditto.
24236 (TARGET_XSAVEC): Ditto.
24237 (TARGET_XSAVEC_P): Ditto.
24238 (TARGET_XSAVES): Ditto.
24239 (TARGET_XSAVES_P): Ditto.
24240 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
24241 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
24242 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
24244 (ANY_XRSTOR64): Ditto.
24246 (xrstor): Change into <xrstor>.
24247 (xrstor_rex64): Change into <xrstor>_rex64.
24248 (xrstor64): Change into <xrstor>64
24250 * config/i386/i386.opt (mclflushopt): New.
24253 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
24255 * doc/invoke.texi: Document new options.
24257 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
24259 PR rtl-optimization/60866
24260 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
24261 Default it to -1. Pass it down to init_simplejump_data.
24262 (init_simplejump_data): New parameter old_seqno. Pass it down
24263 to get_seqno_for_a_jump.
24264 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
24265 initializing new jump seqno as a last resort. Add comment.
24266 (sel_redirect_edge_and_branch): Save old seqno of the conditional
24267 jump and pass it down to sel_init_new_insn.
24268 (sel_redirect_edge_and_branch_force): Likewise.
24270 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
24272 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
24273 shifted values to avoid build warning.
24275 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24277 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
24278 * cfgrtl.c (rtl_merge_blocks): Fix comment.
24279 (cfg_layout_merge_blocks): Likewise.
24280 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
24282 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
24284 PR rtl-optimization/60901
24285 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
24286 bb predecessor belongs to the same scheduling region. Adjust comment.
24288 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
24290 * doc/sourcebuild.texi: (dfp_hw): Document.
24291 (p8vector_hw): Likewise.
24292 (powerpc_eabi_ok): Likewise.
24293 (powerpc_elfv2): Likewise.
24294 (powerpc_htm_ok): Likewise.
24295 (ppc_recip_hw): Likewise.
24296 (vsx_hw): Likewise.
24298 2014-05-13 Cary Coutant <ccoutant@google.com>
24300 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
24302 2014-05-13 David Malcolm <dmalcolm@redhat.com>
24304 * gengtype-parse.c (require3): Eliminate in favor of...
24306 (require_template_declaration): Update to support optional single *
24309 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
24310 (create_user_defined_type): Handle a single level of explicit
24311 pointerness within template arguments.
24312 (struct write_types_data): Add field "kind".
24313 (filter_type_name): Handle "*" character.
24314 (write_user_func_for_structure_ptr): Require a write_types_data
24315 rather than just a prefix string, so that we can look up the kind
24316 of the wtd and use it as an index into wrote_user_func_for_ptr,
24317 ensuring that such functions are written at most once. Support
24318 subclasses by invoking the marking function of the ultimate base class.
24319 (write_user_func_for_structure_body): Require a write_types_data
24320 rather than just a prefix string, so that we can pass this to
24321 write_user_func_for_structure_ptr.
24322 (write_func_for_structure): Likewise.
24323 (ggc_wtd): Add initializer of new "kind" field.
24324 (pch_wtd): Likewise.
24326 * gengtype.h (enum write_types_kinds): New.
24327 (struct type): Add field wrote_user_func_for_ptr to the "s"
24330 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
24332 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
24333 instead of const_binop.
24334 (fold_binary_loc): Likewise.
24336 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
24338 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
24339 calculation to match get_ref_base_and_extent.
24341 2014-05-13 Catherine Moore <clm@codesourcery.com>
24342 Sandra Loosemore <sandra@codesourcery.com>
24344 * configure.ac: Fix assembly for explicit JALR relocation check.
24345 * configure: Regenerate.
24347 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24349 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
24350 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
24351 Remove associated type declarations and initialisations.
24352 (arm_expand_neon_builtin): Likewise.
24353 (neon_emit_pair_result_insn): Delete.
24354 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
24355 * config/arm/neon.md (neon_vtrn<mode>): Delete.
24356 (neon_vzip<mode>): Likewise.
24357 (neon_vuzp<mode>): Likewise.
24359 2014-05-13 Richard Biener <rguenther@suse.de>
24362 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
24363 it needs revisiting whether the call still may be tail-called.
24365 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24367 * rtl.def (SYMBOL_REF): Remove middle "0" field.
24368 * rtl.h (block_symbol): Reduce number of fields to 2.
24369 (rtx_def): Add u2.symbol_ref_flags.
24370 (SYMBOL_REF_FLAGS): Use it.
24371 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
24372 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
24373 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
24374 Lower index of SYMBOL_REF_DATA.
24375 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
24376 Print SYMBOL_REF_FLAGS at the same time.
24377 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
24379 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24381 * rtl.def (VAR_LOCATION): Remove "i" field.
24382 * rtl.h (rtx_def): Add u2.var_location_status.
24383 (PAT_VAR_LOCATION_STATUS): Use it.
24384 (gen_rtx_VAR_LOCATION): Declare.
24385 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
24386 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
24387 * var-tracking.c (emit_note_insn_var_location): Remove casts.
24389 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24391 * rtl.def (scratch): Fix outdated comment and remove "0" field.
24392 * gengtype.c (adjust_field_rtx_def): Update accordingly.
24394 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24396 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
24397 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
24398 * rtl.h (rtx_def): Add insn_uid to u2 field.
24399 (RTX_FLAG_CHECK8): Delete in favor of...
24400 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
24401 (INSN_DELETED_P): Update accordingly.
24402 (INSN_UID): Use u2.insn_uid.
24403 (INSN_CHAIN_CODE_P): Define.
24404 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
24405 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
24406 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
24407 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
24408 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
24409 indices accordingly.
24410 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
24411 Update indices for insn-chain rtxes.
24412 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
24413 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
24414 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
24415 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
24416 * combine.c (try_combine): Likewise.
24417 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24419 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24421 * rtl.def (REG): Remove middle field.
24422 * rtl.h (rtx_def): Add orignal_regno to u2.
24423 (ORIGINAL_REGNO): Use it instead of field 1.
24424 (REG_ATTRS): Lower field index accordingly.
24425 * gengtype.c (adjust_field_rtx_def): Remove handling of
24426 ORIGINAL_REGNO. Move REG_ATTRS index down.
24427 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
24428 code that prints the REGNO.
24430 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24432 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
24435 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24437 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
24439 2014-05-13 Bin Cheng <bin.cheng@arm.com>
24441 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
24442 (alloc_iv): Lower base expressions containing ADDR_EXPR.
24444 2014-05-13 Ian Bolton <ian.bolton@arm.com>
24446 * config/aarch64/aarch64-protos.h
24447 (aarch64_hard_regno_caller_save_mode): New prototype.
24448 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
24450 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
24452 2014-05-13 Christian Bruel <christian.bruel@st.com>
24454 * target.def (mode_switching): New hook vector.
24455 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
24456 (mode_exit, modepriority_to_mode): Likewise.
24457 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
24458 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24459 * target.h: Include tm.h and hard-reg-set.h.
24460 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
24461 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
24462 * doc/tm.texi Regenerate.
24463 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
24464 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24465 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
24466 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
24467 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
24468 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24469 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
24470 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
24471 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
24472 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
24473 (ix86_emit_mode_set): Hookify.
24474 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
24476 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24477 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
24478 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
24479 (epiphany_mode_priority_to_mode): Remove declaration.
24480 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
24481 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
24482 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
24484 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
24485 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
24486 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
24488 2014-05-13 Jakub Jelinek <jakub@redhat.com>
24491 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
24492 is const0_rtx, return immediately. Don't test count == 0 when
24495 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24497 * Makefile.in: add shrink-wrap.o.
24498 * config/i386/i386.c: include "shrink-wrap.h"
24499 * function.c: Likewise.
24500 (requires_stack_frame_p, next_block_for_reg,
24501 move_insn_for_shrink_wrap, prepare_shrink_wrap,
24502 dup_block_and_redirect): Move to shrink-wrap.c
24503 (thread_prologue_and_epilogue_insns): Extract three code segments
24504 as functions in shrink-wrap.c
24505 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
24507 * shrink-wrap.c: New file.
24508 * shrink-wrap.h: New file.
24510 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
24512 * doc/extend.texi: Reflect current numbers of pragmas. Remove
24513 reference to Solaris.
24515 2014-05-12 Mike Stump <mikestump@comcast.net>
24518 * genattrtab.c (filename): Add.
24519 (convert_set_attr_alternative): Improve error message.
24520 (check_defs): Restore read_md_filename for error messages.
24521 (gen_insn): Save filename.
24523 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
24525 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
24526 -fno-local-ivars and -fivar-visibility.
24527 * c-family/c.opt: Make -Wshadow also implicitly enable
24530 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
24532 * doc/tm.texi: Remove reference to deleted macro.
24533 * doc/tm.texi.in: Likewise.
24535 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24538 * config/avr/avr.c (avr_out_store_psi): Use correct constant
24541 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
24544 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
24545 * config/arm/aout.h (License): Same.
24546 * config/arm/bpabi.h (License): Same.
24547 * config/arm/elf.h (License): Same.
24548 * config/arm/linux-elf.h (License): Same.
24549 * config/arm/linux-gas.h (License): Same.
24550 * config/arm/netbsd-elf.h (License): Same.
24551 * config/arm/uclinux-eabi.h (License): Same.
24552 * config/arm/uclinux-elf.h (License): Same.
24553 * config/arm/vxworks.h (License): Same.
24555 2014-05-11 Jakub Jelinek <jakub@redhat.com>
24557 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
24558 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
24559 number of operands to 3.
24560 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
24561 * tree-nested.c (convert_nonlocal_omp_clauses,
24562 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
24563 * gimplify.c (gimplify_scan_omp_clauses): Handle
24564 OMP_CLAUSE_LINEAR_STMT.
24565 * omp-low.c (lower_rec_input_clauses): Fix typo.
24566 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
24567 cast between Fortran boolean_type_node and C _Bool if
24570 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
24572 PR tree-optimization/61136
24573 * wide-int.h (multiple_of_p): Define a version that doesn't return
24575 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
24576 integer_zerop/const_binop pair.
24577 (multiple_of_p): Likewise, converting both operands to widest_int
24580 2014-05-09 Teresa Johnson <tejohnson@google.com>
24582 * cgraphunit.c (analyze_functions): Use correct dump file.
24584 2014-05-09 Florian Weimer <fweimer@redhat.com>
24586 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
24588 (stack_protect_return_slot_p): New function.
24589 (expand_used_vars): Call stack_protect_decl_p and
24590 stack_protect_return_slot_p for -fstack-protector-strong.
24592 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
24593 Andrew Haley <aph@redhat.com>
24594 Richard Sandiford <rdsandiford@googlemail.com>
24596 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
24599 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
24601 PR middle-end/61111
24602 * fold-const.c (fold_binary_loc): Changed width of mask.
24604 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
24606 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
24607 unsigned int initializers for regno_in, regno_out.
24609 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
24612 * config/avr/avr.md (cc): Add new attribute set_vzn.
24613 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
24614 Set cc insn attribute to set_vzn instead of set_zn for alternatives
24615 with INC, DEC or NEG.
24616 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
24617 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
24618 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
24620 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24623 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24625 * wide-int.cc (UTItype): Define.
24626 (UDWtype): Define for appropriate W_TYPE_SIZE.
24628 2014-05-09 Richard Biener <rguenther@suse.de>
24630 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
24631 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
24632 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
24633 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
24634 ssa_propagate): Adjust.
24636 2014-05-08 Jeff Law <law@redhat.com>
24638 PR tree-optimization/61009
24639 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
24640 tri-state rather than a boolean. When a block is too big to
24641 thread through, inform caller via negative return value.
24642 (thread_across_edge): If a block was too big for normal threading,
24643 then it's too big for a joiner too, so remove temporary equivalences
24644 and return immediately.
24646 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
24647 Matthias Klose <doko@ubuntu.com>
24650 * optc-gen.awk: Fix option handling for -Wunused-parameter.
24652 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
24655 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
24657 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
24660 * config/alpha/alpha.c: Include gimple-iterator.h.
24661 (alpha_gimple_fold_builtin): New function. Move
24662 ALPHA_BUILTIN_UMULH folding from ...
24663 (alpha_fold_builtin): ... here.
24664 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
24666 2014-05-08 Wei Mi <wmi@google.com>
24669 * config/i386/i386.c (ix86_compute_frame_layout): Update
24670 preferred_stack_boundary for call, expanded from tls descriptor.
24671 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
24672 to depend on SP register.
24673 (*tls_local_dynamic_base_32_gnu): Ditto.
24674 (*tls_local_dynamic_32_once): Ditto.
24675 (tls_global_dynamic_64_<mode>): Set
24676 ix86_tls_descriptor_calls_expanded_in_cfun.
24677 (tls_local_dynamic_base_64_<mode>): Ditto.
24678 (tls_global_dynamic_32): Set
24679 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
24680 to depend on SP register.
24681 (tls_local_dynamic_base_32): Ditto.
24683 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24685 * config/arm/arm_neon.h: Update comment.
24686 * config/arm/neon-docgen.ml: Delete.
24687 * config/arm/neon-gen.ml: Delete.
24688 * doc/arm-neon-intrinsics.texi: Update comment.
24690 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24692 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
24694 (vand, vorr, veor, vorn, vbic): Remove.
24695 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
24697 (neon_vsub_unspec): Likewise.
24698 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
24700 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24702 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
24703 (vadd_s16): Likewise.
24704 (vadd_s32): Likewise.
24705 (vadd_f32): Likewise.
24706 (vadd_u8): Likewise.
24707 (vadd_u16): Likewise.
24708 (vadd_u32): Likewise.
24709 (vadd_s64): Likewise.
24710 (vadd_u64): Likewise.
24711 (vaddq_s8): Likewise.
24712 (vaddq_s16): Likewise.
24713 (vaddq_s32): Likewise.
24714 (vaddq_s64): Likewise.
24715 (vaddq_f32): Likewise.
24716 (vaddq_u8): Likewise.
24717 (vaddq_u16): Likewise.
24718 (vaddq_u32): Likewise.
24719 (vaddq_u64): Likewise.
24720 (vmul_s8): Likewise.
24721 (vmul_s16): Likewise.
24722 (vmul_s32): Likewise.
24723 (vmul_f32): Likewise.
24724 (vmul_u8): Likewise.
24725 (vmul_u16): Likewise.
24726 (vmul_u32): Likewise.
24727 (vmul_p8): Likewise.
24728 (vmulq_s8): Likewise.
24729 (vmulq_s16): Likewise.
24730 (vmulq_s32): Likewise.
24731 (vmulq_f32): Likewise.
24732 (vmulq_u8): Likewise.
24733 (vmulq_u16): Likewise.
24734 (vmulq_u32): Likewise.
24735 (vsub_s8): Likewise.
24736 (vsub_s16): Likewise.
24737 (vsub_s32): Likewise.
24738 (vsub_f32): Likewise.
24739 (vsub_u8): Likewise.
24740 (vsub_u16): Likewise.
24741 (vsub_u32): Likewise.
24742 (vsub_s64): Likewise.
24743 (vsub_u64): Likewise.
24744 (vsubq_s8): Likewise.
24745 (vsubq_s16): Likewise.
24746 (vsubq_s32): Likewise.
24747 (vsubq_s64): Likewise.
24748 (vsubq_f32): Likewise.
24749 (vsubq_u8): Likewise.
24750 (vsubq_u16): Likewise.
24751 (vsubq_u32): Likewise.
24752 (vsubq_u64): Likewise.
24753 (vand_s8): Likewise.
24754 (vand_s16): Likewise.
24755 (vand_s32): Likewise.
24756 (vand_u8): Likewise.
24757 (vand_u16): Likewise.
24758 (vand_u32): Likewise.
24759 (vand_s64): Likewise.
24760 (vand_u64): Likewise.
24761 (vandq_s8): Likewise.
24762 (vandq_s16): Likewise.
24763 (vandq_s32): Likewise.
24764 (vandq_s64): Likewise.
24765 (vandq_u8): Likewise.
24766 (vandq_u16): Likewise.
24767 (vandq_u32): Likewise.
24768 (vandq_u64): Likewise.
24769 (vorr_s8): Likewise.
24770 (vorr_s16): Likewise.
24771 (vorr_s32): Likewise.
24772 (vorr_u8): Likewise.
24773 (vorr_u16): Likewise.
24774 (vorr_u32): Likewise.
24775 (vorr_s64): Likewise.
24776 (vorr_u64): Likewise.
24777 (vorrq_s8): Likewise.
24778 (vorrq_s16): Likewise.
24779 (vorrq_s32): Likewise.
24780 (vorrq_s64): Likewise.
24781 (vorrq_u8): Likewise.
24782 (vorrq_u16): Likewise.
24783 (vorrq_u32): Likewise.
24784 (vorrq_u64): Likewise.
24785 (veor_s8): Likewise.
24786 (veor_s16): Likewise.
24787 (veor_s32): Likewise.
24788 (veor_u8): Likewise.
24789 (veor_u16): Likewise.
24790 (veor_u32): Likewise.
24791 (veor_s64): Likewise.
24792 (veor_u64): Likewise.
24793 (veorq_s8): Likewise.
24794 (veorq_s16): Likewise.
24795 (veorq_s32): Likewise.
24796 (veorq_s64): Likewise.
24797 (veorq_u8): Likewise.
24798 (veorq_u16): Likewise.
24799 (veorq_u32): Likewise.
24800 (veorq_u64): Likewise.
24801 (vbic_s8): Likewise.
24802 (vbic_s16): Likewise.
24803 (vbic_s32): Likewise.
24804 (vbic_u8): Likewise.
24805 (vbic_u16): Likewise.
24806 (vbic_u32): Likewise.
24807 (vbic_s64): Likewise.
24808 (vbic_u64): Likewise.
24809 (vbicq_s8): Likewise.
24810 (vbicq_s16): Likewise.
24811 (vbicq_s32): Likewise.
24812 (vbicq_s64): Likewise.
24813 (vbicq_u8): Likewise.
24814 (vbicq_u16): Likewise.
24815 (vbicq_u32): Likewise.
24816 (vbicq_u64): Likewise.
24817 (vorn_s8): Likewise.
24818 (vorn_s16): Likewise.
24819 (vorn_s32): Likewise.
24820 (vorn_u8): Likewise.
24821 (vorn_u16): Likewise.
24822 (vorn_u32): Likewise.
24823 (vorn_s64): Likewise.
24824 (vorn_u64): Likewise.
24825 (vornq_s8): Likewise.
24826 (vornq_s16): Likewise.
24827 (vornq_s32): Likewise.
24828 (vornq_s64): Likewise.
24829 (vornq_u8): Likewise.
24830 (vornq_u16): Likewise.
24831 (vornq_u32): Likewise.
24832 (vornq_u64): Likewise.
24834 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24836 * wide-int.cc (UTItype): Define.
24837 (UDWtype): Define for appropriate W_TYPE_SIZE.
24839 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
24841 PR tree-optimization/59100
24842 * tree-ssa-phiopt.c: Include tree-inline.h.
24843 (neutral_element_p, absorbing_element_p): New functions.
24844 (value_replacement): Handle conditional binary operations with a
24845 neutral or absorbing element.
24847 2014-05-08 Richard Biener <rguenther@suse.de>
24849 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
24850 folding the expression.
24851 (valueize_expr): Remove.
24852 (visit_reference_op_load): Do not valueize the result of
24854 (simplify_binary_expression): Likewise.
24855 (simplify_unary_expression): Likewise.
24857 2014-05-08 Richard Biener <rguenther@suse.de>
24859 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
24860 looking at TYPE_ARG_TYPES.
24862 2014-05-08 Richard Biener <rguenther@suse.de>
24864 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
24865 pointer propagation special-case.
24867 2014-05-08 Bin Cheng <bin.cheng@arm.com>
24869 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
24870 core part of address expressions.
24872 2014-05-08 Alan Modra <amodra@gmail.com>
24875 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
24876 loads and stores when -mno-strict-align at any alignment.
24877 (expand_block_clear): Similarly. Also correct calculation of
24880 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
24882 PR middle-end/39246
24883 * tree-complex.c (expand_complex_move): Keep line info when expanding
24885 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
24886 of complex expression. Use new argument to display correct location
24887 for values coming from phi statement.
24888 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
24889 (warn_uninitialized_phi): Pass location of phi argument to
24891 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
24892 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
24894 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24896 * config/rs6000/predicates.md (indexed_address_mem): New.
24897 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
24898 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
24899 fpstore_ux, fpstore_u.
24900 (sign_extend, indexed, update): New.
24901 (cell_micro): Adjust.
24902 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
24903 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
24904 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
24905 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
24906 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
24907 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
24908 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
24909 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
24910 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
24911 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
24912 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
24913 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
24914 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
24915 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
24916 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
24918 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
24919 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
24920 *vsx_extract_<mode>_store): Adjust.
24921 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
24922 is_cracked_insn, insn_must_be_first_in_group,
24923 insn_must_be_last_in_group): Adjust.
24925 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
24927 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
24928 ppc440-fpstore): Adjust.
24929 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
24930 ppc476-fpstore): Adjust.
24931 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
24932 ppc601-fpstore): Adjust.
24933 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
24935 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
24937 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
24938 ppc7450-fpstore): Adjust.
24939 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
24940 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
24941 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
24943 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
24944 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
24945 cell-fpstore, cell-fpstore-update): Adjust.
24946 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
24947 ppce300c3_store, ppce300c3_fpstore): Adjust.
24948 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
24949 e500mc_fpstore): Adjust.
24950 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
24951 e500mc64_store, e500mc64_fpstore): Adjust.
24952 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
24953 e5500_fpstore): Adjust.
24954 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
24955 e6500_fpstore): Adjust.
24956 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
24958 * config/rs6000/power4.md (power4-load, power4-load-ext,
24959 power4-load-ext-update, power4-load-ext-update-indexed,
24960 power4-load-update-indexed, power4-load-update, power4-fpload,
24961 power4-fpload-update, power4-store, power4-store-update,
24962 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
24964 * config/rs6000/power5.md (power5-load, power5-load-ext,
24965 power5-load-ext-update, power5-load-ext-update-indexed,
24966 power5-load-update-indexed, power5-load-update, power5-fpload,
24967 power5-fpload-update, power5-store, power5-store-update,
24968 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
24970 * config/rs6000/power6.md (power6-load, power6-load-ext,
24971 power6-load-update, power6-load-update-indexed,
24972 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
24973 power6-fpload-update, power6-store, power6-store-update,
24974 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
24976 * config/rs6000/power7.md (power7-load, power7-load-ext,
24977 power7-load-update, power7-load-update-indexed,
24978 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
24979 power7-fpload-update, power7-store, power7-store-update,
24980 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
24982 * config/rs6000/power8.md (power8-load, power8-load-update,
24983 power8-load-ext, power8-load-ext-update, power8-fpload,
24984 power8-fpload-update, power8-store, power8-store-update-indexed,
24985 power8-fpstore, power8-fpstore-update): Adjust.
24986 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
24988 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
24989 titan_lsu_store, titan_lsu_fpstore): Adjust.
24990 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
24992 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24995 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
24996 unrolled byte insns. Emit address increments after move insns.
24998 2014-05-07 David Malcolm <dmalcolm@redhat.com>
25000 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25001 const_gimple, rather than a gimple.
25002 (gimple_call_builtin_p): Likewise, for the three variants.
25004 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25005 (gimple_call_builtin_p): Likewise, for the three variants.
25007 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25009 PR tree-optimization/61095
25010 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25012 2014-05-07 Richard Biener <rguenther@suse.de>
25014 PR tree-optimization/61034
25015 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25016 (maybe_skip_until): Use translate to take into account
25017 lattices when trying to do disambiguations.
25018 (get_continuation_for_phi_1): Likewise.
25019 (get_continuation_for_phi): Adjust for added translate arguments.
25020 (walk_non_aliased_vuses): Likewise.
25021 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25022 (walk_non_aliased_vuses): Likewise.
25023 (call_may_clobber_ref_p_1): Declare.
25024 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25025 calls. Stop early if we are only supposed to disambiguate.
25026 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25028 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
25030 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25031 Emit an error when the function has arguments.
25033 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25035 * cfgloop.h (unswitch_loops): Remove.
25036 * doc/passes.texi: Remove references to loop-unswitch.c
25037 * timevar.def (TV_LOOP_UNSWITCH): Remove.
25039 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
25041 * tree-vect-data-refs.c (vect_grouped_load_supported): New
25042 check for loads group of length 3.
25043 (vect_permute_load_chain): New permutations for loads group of
25045 * tree-vect-stmts.c (vect_model_load_cost): Change cost
25046 of vec_perm_shuffle for the new permutations.
25048 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
25050 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25051 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25052 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25053 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25054 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25055 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25056 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25057 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25059 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25061 * loop-unswitch.c: Delete.
25063 2014-05-07 Richard Biener <rguenther@suse.de>
25065 * config.gcc: Always set need_64bit_hwint to yes.
25067 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
25069 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25070 of using optimize_size.
25072 2014-05-06 Mike Stump <mikestump@comcast.net>
25074 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25076 2014-05-06 Joseph Myers <joseph@codesourcery.com>
25078 * config/i386/sse.md (*mov<mode>_internal)
25079 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25080 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25081 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25082 (*<code><mode>3, *andnot<mode>3<mask_name>)
25083 (<mask_codefor><code><mode>3<mask_name>): Only consider
25084 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25086 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25089 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
25091 * lra-constraints.c (valid_address_p): Move earlier in file.
25092 Add a constraint argument to the address_info version.
25093 (satisfies_memory_constraint_p): New function.
25094 (satisfies_address_constraint_p): Likewise.
25095 (process_alt_operands, curr_insn_transform): Use them.
25096 (process_address): Pass the constraint to valid_address_p when
25097 checking address operands.
25099 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
25101 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25102 to their respective blocks. Fix inadvertent use of "node".
25104 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25106 * emit-rtl.c (init_derived_machine_modes): New functionm, split
25108 (init_emit_once): ...here.
25109 * rtl.h (init_derived_machine_modes): Declare.
25110 * toplev.c (do_compile): Call it even if no_backend.
25112 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
25113 Mike Stump <mikestump@comcast.net>
25114 Richard Sandiford <rdsandiford@googlemail.com>
25115 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25117 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25118 (rtx_equal_for_memref_p): Update comment.
25119 (adjust_offset_for_component_ref): Use wide-int interfaces.
25120 * builtins.c (get_object_alignment_2): Likewise.
25121 (c_readstr): Likewise.
25122 (target_char_cast): Add comment.
25123 (determine_block_size): Use wide-int interfaces.
25124 (expand_builtin_signbit): Likewise.
25125 (fold_builtin_int_roundingfn): Likewise.
25126 (fold_builtin_bitop): Likewise.
25127 (fold_builtin_bswap): Likewise.
25128 (fold_builtin_logarithm): Use signop.
25129 (fold_builtin_pow): Likewise.
25130 (fold_builtin_memory_op): Use wide-int interfaces.
25131 (fold_builtin_object_size): Likewise.
25132 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25133 nb_iterations_estimate.
25134 (record_niter_bound): Use wide-int interfaces.
25135 (get_estimated_loop_iterations_int): Likewise.
25136 (get_estimated_loop_iterations): Likewise.
25137 (get_max_loop_iterations): Likewise.
25138 * cfgloop.h: Include wide-int.h.
25139 (struct nb_iter_bound): Change bound to widest_int.
25140 (struct loop): Change nb_iterations_upper_bound and
25141 nb_iterations_estimate to widest_int.
25142 (record_niter_bound): Switch to use widest_int.
25143 (get_estimated_loop_iterations): Likewise.
25144 (get_max_loop_iterations): Likewise.
25145 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25146 update for wide-int.
25147 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25148 * combine.c (try_combine): Likewise.
25149 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25150 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25152 (aarch64_float_const_representable_p): Likewise.
25153 * config/arc/arc.c: Include wide-int.h.
25154 (arc_can_use_doloop_p): Use wide-int interfaces.
25155 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25156 (vfp3_const_double_index): Likewise.
25157 * config/avr/avr.c (avr_out_round): Likewise.
25158 (avr_fold_builtin): Likewise.
25159 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25160 (bfin_can_use_doloop_p): Likewise.
25161 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
25162 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
25163 * config/i386/i386.c: Include wide-int.h.
25164 (ix86_data_alignment): Use wide-int interfaces.
25165 (ix86_local_alignment): Likewise.
25166 (ix86_emit_swsqrtsf): Update real_from_integer.
25167 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
25168 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
25169 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
25170 (zero_constant): Likewise.
25171 (input_operand): Likewise.
25172 (splat_input_operand): Likewise.
25173 (non_logical_cint_operand): Change const_double to const_wide_int.
25174 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
25175 (easy_altivec_constant): Remove comment.
25176 (paired_expand_vector_init): Use CONSTANT_P.
25177 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
25178 (rs6000_emit_move): Update checks.
25179 (rs6000_aggregate_candidate): Use wide-int interfaces.
25180 (rs6000_expand_ternop_builtin): Likewise.
25181 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
25182 (rs6000_assemble_integer): Likewise.
25183 (rs6000_hash_constant): Likewise.
25184 (output_toc): Likewise.
25185 (rs6000_rtx_costs): Likewise.
25186 (rs6000_emit_swrsqrt); Update call to real_from_integer.
25187 * config/rs6000/rs6000-c.c: Include wide-int.h.
25188 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
25189 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
25190 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
25191 Handle CONST_WIDE_INT.
25192 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
25193 Use tree_fits_uhwi_p.
25194 * config/sparc/sparc.c: Include wide-int.h.
25195 (sparc_fold_builtin): Use wide-int interfaces.
25196 * config/vax/vax.c: Include wide-int.h.
25197 (vax_float_literal): Use real_from_integer.
25198 * coretypes.h (struct hwivec_def): New.
25200 (const_hwivec): New.
25201 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
25202 (equiv_constant): Handle CONST_WIDE_INT.
25203 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
25204 (cselib_hash_rtx): Handle CONST_WIDE_INT.
25205 * dbxout.c (stabstr_U): Use wide-int interfaces.
25206 (dbxout_type): Update to use cst_fits_shwi_p.
25207 * defaults.h (LOG2_BITS_PER_UNIT): Define.
25208 (TARGET_SUPPORTS_WIDE_INT): Add default.
25209 * dfp.c: Include wide-int.h.
25210 (decimal_real_to_integer2): Use wide-int interfaces and rename to
25211 decimal_real_to_integer.
25212 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
25213 decimal_real_to_integer.
25214 * doc/generic.texi (Constant expressions): Update for wide_int.
25215 * doc/rtl.texi (const_double): Likewise.
25216 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
25217 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
25218 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
25219 (REAL_VALUE_FROM_INT): Remove.
25220 (TARGET_SUPPORTS_WIDE_INT): New.
25221 * doc/tm.texi: Regenerate.
25222 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
25223 * double-int.h: Include wide-int.h.
25224 (struct wi::int_traits): New.
25225 * dwarf2out.c (get_full_len): New.
25226 (dw_val_equal_p): Add case dw_val_class_wide_int.
25227 (size_of_loc_descr): Likewise.
25228 (output_loc_operands): Likewise.
25229 (insert_double): Remove.
25230 (insert_wide_int): New.
25231 (add_AT_wide): New.
25232 (print_die): Add case dw_val_class_wide_int.
25233 (attr_checksum): Likewise.
25234 (attr_checksum_ordered): Likewise.
25235 (same_dw_val_p): Likewise.
25236 (size_of_die): Likewise.
25237 (value_format): Likewise.
25238 (output_die): Likewise.
25239 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
25241 (clz_loc_descriptor): Use wide-int interfaces.
25242 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
25243 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
25244 (round_up_to_align): Use wide-int interfaces.
25245 (field_byte_offset): Likewise.
25246 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
25247 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
25248 CONST_DOUBLE handling. Use wide-int interfaces.
25249 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
25250 (gen_enumeration_type_die): Use add_AT_wide.
25251 (hash_loc_operands): Add case dw_val_class_wide_int.
25252 (compare_loc_operands): Likewise.
25253 * dwarf2out.h: Include wide-int.h.
25254 (wide_int_ptr): New.
25255 (enum dw_val_class): Add dw_val_class_wide_int.
25256 (struct dw_val_struct): Add val_wide.
25257 * emit-rtl.c (const_wide_int_htab): New.
25258 (const_wide_int_htab_hash): New.
25259 (const_wide_int_htab_eq): New.
25260 (lookup_const_wide_int): New.
25261 (const_double_htab_hash): Use wide-int interfaces.
25262 (const_double_htab_eq): Likewise.
25263 (rtx_to_double_int): Conditionally compile for wide-int.
25264 (immed_double_int_const): Rename to immed_wide_int_const and
25265 update for wide-int.
25266 (immed_double_const): Conditionally compile for wide-int.
25267 (init_emit_once): Use wide-int interfaces.
25268 * explow.c (plus_constant): Likewise.
25269 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
25270 (lshift_value): Use wide-int interfaces.
25271 (expand_mult): Likewise.
25272 (choose_multiplier): Likewise.
25273 (expand_smod_pow2): Likewise.
25274 (make_tree): Likewise.
25275 * expr.c (convert_modes): Consolidate handling of constants.
25276 Use wide-int interfaces.
25277 (emit_group_load_1): Add note.
25278 (store_expr): Update comment.
25279 (get_inner_reference): Use wide-int interfaces.
25280 (expand_constructor): Update comment.
25281 (expand_expr_real_2): Use wide-int interfaces.
25282 (expand_expr_real_1): Likewise.
25283 (reduce_to_bit_field_precision): Likewise.
25284 (const_vector_from_tree): Likewise.
25285 * final.c: Include wide-int-print.h.
25286 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
25287 * fixed-value.c: Include wide-int.h.
25288 (fixed_from_string): Use wide-int interfaces.
25289 (fixed_to_decimal): Likewise.
25290 (fixed_convert_from_real): Likewise.
25291 (real_convert_from_fixed): Likewise.
25292 * fold-const.h (mem_ref_offset): Return an offset_int.
25293 (div_if_zero_remainder): Remove code parameter.
25294 * fold-const.c (div_if_zero_remainder): Remove code parameter.
25295 Use wide-int interfaces.
25296 (may_negate_without_overflow_p): Use wide-int interfaces.
25297 (negate_expr_p): Likewise.
25298 (fold_negate_expr): Likewise.
25299 (int_const_binop_1): Likewise.
25300 (const_binop): Likewise.
25301 (fold_convert_const_int_from_int): Likewise.
25302 (fold_convert_const_int_from_real): Likewise.
25303 (fold_convert_const_int_from_fixed): Likewise.
25304 (fold_convert_const_fixed_from_int): Likewise.
25305 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
25306 (sign_bit_p): Use wide-int interfaces.
25307 (make_range_step): Likewise.
25308 (build_range_check): Likewise. Pass an integer of the correct type
25309 instead of using integer_one_node.
25310 (range_predecessor): Pass an integer of the correct type instead
25311 of using integer_one_node.
25312 (range_successor): Likewise.
25313 (merge_ranges): Likewise.
25314 (unextend): Use wide-int interfaces.
25315 (extract_muldiv_1): Likewise.
25316 (fold_div_compare): Likewise.
25317 (fold_single_bit_test): Likewise.
25318 (fold_sign_changed_comparison): Likewise.
25319 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
25320 (fold_plusminus_mult_expr): Use wide-int interfaces.
25321 (native_encode_int): Likewise.
25322 (native_interpret_int): Likewise.
25323 (fold_unary_loc): Likewise.
25324 (pointer_may_wrap_p): Likewise.
25325 (size_low_cst): Likewise.
25326 (mask_with_tz): Likewise.
25327 (fold_binary_loc): Likewise.
25328 (fold_ternary_loc): Likewise.
25329 (multiple_of_p): Likewise.
25330 (tree_call_nonnegative_warnv_p): Update calls to
25331 tree_int_cst_min_precision and real_from_integer.
25332 (fold_negate_const): Use wide-int interfaces.
25333 (fold_abs_const): Likewise.
25334 (fold_relational_const): Use tree_int_cst_lt.
25335 (round_up_loc): Use wide-int interfaces.
25336 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
25337 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
25338 * gengtype.c: Remove include of double-int.h.
25339 (do_typedef): Use wide-int interfaces.
25340 (open_base_files): Add wide-int.h.
25341 (main): Add offset_int and widest_int typedefs.
25342 * gengtype-lex.l: Handle "^".
25343 (CXX_KEYWORD): Add "static".
25344 * gengtype-parse.c (require3): New.
25345 (require_template_declaration): Handle constant template arguments
25346 and nested templates.
25347 * gengtype-state.c: Don't include "double-int.h".
25348 * genpreds.c (write_one_predicate_function): Update comment.
25349 (write_tm_constrs_h): Add check for hval and lval use in
25351 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
25352 (add_to_sequence): Likewise.
25353 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
25354 and const_double_operand.
25355 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
25357 * gimple-fold.c (get_base_constructor): Likewise.
25358 (fold_array_ctor_reference): Likewise.
25359 (fold_nonarray_ctor_reference): Likewise.
25360 (fold_const_aggregate_ref_1): Likewise.
25361 (gimple_val_nonnegative_real_p): Likewise.
25362 (gimple_fold_indirect_ref): Likewise.
25363 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
25364 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
25365 (struct slsr_cand_d): Change index to be widest_int.
25366 (struct incr_info_d): Change incr to be widest_int.
25367 (alloc_cand_and_find_basis): Use wide-int interfaces.
25368 (slsr_process_phi): Likewise.
25369 (backtrace_base_for_ref): Likewise. Return a widest_int.
25370 (restructure_reference): Take a widest_int instead of a double_int.
25371 (slsr_process_ref): Use wide-int interfaces.
25372 (create_mul_ssa_cand): Likewise.
25373 (create_mul_imm_cand): Likewise.
25374 (create_add_ssa_cand): Likewise.
25375 (create_add_imm_cand): Take a widest_int instead of a double_int.
25376 (slsr_process_add): Use wide-int interfaces.
25377 (slsr_process_cast): Likewise.
25378 (slsr_process_copy): Likewise.
25379 (dump_candidate): Likewise.
25380 (dump_incr_vec): Likewise.
25381 (replace_ref): Likewise.
25382 (cand_increment): Likewise. Return a widest_int.
25383 (cand_abs_increment): Likewise.
25384 (replace_mult_candidate): Take a widest_int instead of a double_int.
25385 (replace_unconditional_candidate): Use wide-int interfaces.
25386 (incr_vec_index): Take a widest_int instead of a double_int.
25387 (create_add_on_incoming_edge): Likewise.
25388 (create_phi_basis): Use wide-int interfaces.
25389 (replace_conditional_candidate): Likewise.
25390 (record_increment): Take a widest_int instead of a double_int.
25391 (record_phi_increments): Use wide-int interfaces.
25392 (phi_incr_cost): Take a widest_int instead of a double_int.
25393 (lowest_cost_path): Likewise.
25394 (total_savings): Likewise.
25395 (analyze_increments): Use wide-int interfaces.
25396 (ncd_with_phi): Take a widest_int instead of a double_int.
25397 (ncd_of_cand_and_phis): Likewise.
25398 (nearest_common_dominator_for_cands): Likewise.
25399 (insert_initializers): Use wide-int interfaces.
25400 (all_phi_incrs_profitable): Likewise.
25401 (replace_one_candidate): Likewise.
25402 (replace_profitable_candidates): Likewise.
25403 * godump.c: Include wide-int-print.h.
25404 (go_output_typedef): Use wide-int interfaces.
25405 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
25406 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
25407 (build_loop_iteration_domains): Likewise.
25408 * hooks.h: Include wide-int.h rather than double-int.h.
25409 (hook_bool_dint_dint_uint_bool_true): Delete.
25410 (hook_bool_wint_wint_uint_bool_true): Declare.
25411 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
25412 (hook_bool_wint_wint_uint_bool_true): New.
25413 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
25415 (ubsan_expand_si_overflow_mul_check): Likewise.
25416 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
25417 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
25418 (get_ancestor_addr_info): Likewise.
25419 (ipa_modify_call_arguments): Likewise.
25420 * loop-doloop.c (doloop_modify): Likewise.
25421 (doloop_optimize): Likewise.
25422 * loop-iv.c (iv_number_of_iterations): Likewise.
25423 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
25424 (unroll_loop_constant_iterations): Likewise.
25425 (decide_unroll_runtime_iterations): Likewise.
25426 (unroll_loop_runtime_iterations): Likewise.
25427 (decide_peel_simple): Likewise.
25428 (decide_unroll_stupid): Likewise.
25429 * lto-streamer-in.c (streamer_read_wi): Add.
25430 (input_cfg): Use wide-int interfaces.
25431 (lto_input_tree_1): Likewise.
25432 * lto-streamer-out.c (streamer_write_wi): Add.
25433 (hash_tree): Use wide-int interfaces.
25434 (output_cfg): Likewise.
25435 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
25436 (GTFILES): Add wide-int.h and signop.h.
25437 (TAGS): Look for .cc files too.
25438 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
25439 * optabs.c (expand_subword_shift): Likewise.
25440 (expand_doubleword_shift): Likewise.
25441 (expand_absneg_bit): Likewise.
25442 (expand_copysign_absneg): Likewise.
25443 (expand_copysign_bit): Likewise.
25444 * postreload.c (reload_cse_simplify_set): Likewise.
25445 * predict.c (predict_iv_comparison): Likewise.
25446 * pretty-print.h: Include wide-int-print.h.
25448 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
25449 * print-tree.c: Include wide-int-print.h.
25450 (print_node_brief): Use wide-int interfaces.
25451 (print_node): Likewise.
25452 * read-rtl.c (validate_const_wide_int): New.
25453 (read_rtx_code): Add CONST_WIDE_INT case.
25454 * real.c: Include wide-int.h.
25455 (real_to_integer2): Delete.
25456 (real_to_integer): New function, returning a wide_int.
25457 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
25458 (ten_to_ptwo): Update call to real_from_integer.
25459 (real_digit): Likewise.
25460 * real.h: Include signop.h, wide-int.h and insn-modes.h.
25461 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
25462 (REAL_VALUE_TO_INT): Delete.
25463 (real_to_integer): Declare a wide-int form.
25464 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
25465 * recog.c (const_int_operand): Improve comment.
25466 (const_scalar_int_operand): New.
25467 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
25468 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
25469 (split_double): Likewise.
25470 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
25471 (rtx_size): Likewise.
25472 (rtx_alloc_stat_v): New.
25473 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
25474 (cwi_output_hex): New.
25475 (iterative_hash_rtx): Handle CONST_WIDE_INT.
25476 (cwi_check_failed_bounds): New.
25477 * rtl.def (CONST_WIDE_INT): New.
25478 * rtl.h: Include <utility> and wide-int.h.
25479 (struct hwivec_def): New.
25480 (CWI_GET_NUM_ELEM): New.
25481 (CWI_PUT_NUM_ELEM): New.
25482 (struct rtx_def): Add num_elem and hwiv.
25483 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
25484 (CASE_CONST_UNIQUE): Likewise.
25485 (CASE_CONST_ANY): Likewise.
25486 (CONST_SCALAR_INT_P): Likewise.
25487 (CONST_WIDE_INT_P): New.
25489 (HWIVEC_CHECK): New.
25490 (cwi_check_failed_bounds): New.
25492 (HWIVEC_CHECK): New.
25493 (CONST_WIDE_INT_VEC) New.
25494 (CONST_WIDE_INT_NUNITS) New.
25495 (CONST_WIDE_INT_ELT) New.
25496 (rtx_mode_t): New type.
25497 (wi::int_traits <rtx_mode_t>): New.
25499 (wi::min_value): New.
25500 (wi::max_value): New.
25502 (const_wide_int_alloc): New.
25503 (immed_wide_int_const): New.
25504 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
25505 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
25506 * signop.h: New file.
25507 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
25508 (simplify_const_unary_operation): Use wide-int interfaces.
25509 (simplify_binary_operation_1): Likewise.
25510 (simplify_const_binary_operation): Likewise.
25511 (simplify_const_relational_operation): Likewise.
25512 (simplify_immed_subreg): Likewise.
25513 * stmt.c (expand_case): Likewise.
25514 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
25515 signop rather than a bool.
25516 * stor-layout.c (layout_type): Use wide-int interfaces.
25517 (initialize_sizetypes): Update calls to
25518 set_min_and_max_values_for_integral_type.
25519 (set_min_and_max_values_for_integral_type): Take a signop rather
25520 than a bool. Use wide-int interfaces.
25521 (fixup_signed_type): Update accordingly. Remove
25522 HOST_BITS_PER_DOUBLE_INT limit.
25523 (fixup_unsigned_type): Likewise.
25524 * system.h (STATIC_CONSTANT_P): New.
25525 (STATIC_ASSERT): New.
25526 * target.def (can_use_doloop_p): Take widest_ints rather than
25528 * target.h: Include wide-int.h rather than double-int.h.
25529 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
25531 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
25532 rather than INT_CST_LT_UNSIGNED.
25533 (can_use_doloop_if_innermost): Take widest_ints rather than
25535 * tree-affine.c: Include wide-int-print.h.
25536 (double_int_ext_for_comb): Delete.
25537 (wide_int_ext_for_comb): New.
25538 (aff_combination_zero): Use wide-int interfaces.
25539 (aff_combination_const): Take a widest_int instead of a double_int.
25540 (aff_combination_elt): Use wide-int interfaces.
25541 (aff_combination_scale): Take a widest_int instead of a double_int.
25542 (aff_combination_add_elt): Likewise.
25543 (aff_combination_add_cst): Likewise.
25544 (aff_combination_add): Use wide-int interfaces.
25545 (aff_combination_convert): Likewise.
25546 (tree_to_aff_combination): Likewise.
25547 (add_elt_to_tree): Take a widest_int instead of a double_int.
25548 (aff_combination_to_tree): Use wide-int interfaces.
25549 (aff_combination_remove_elt): Likewise.
25550 (aff_combination_add_product): Take a widest_int instead of
25552 (aff_combination_mult): Use wide-int interfaces.
25553 (aff_combination_expand): Likewise.
25554 (double_int_constant_multiple_p): Delete.
25555 (wide_int_constant_multiple_p): New.
25556 (aff_combination_constant_multiple_p): Take a widest_int pointer
25557 instead of a double_int pointer.
25558 (print_aff): Use wide-int interfaces.
25559 (get_inner_reference_aff): Take a widest_int pointer
25560 instead of a double_int pointer.
25561 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
25562 * tree-affine.h: Include wide-int.h.
25563 (struct aff_comb_elt): Change type of coef to widest_int.
25564 (struct affine_tree_combination): Change type of offset to widest_int.
25565 (double_int_ext_for_comb): Delete.
25566 (wide_int_ext_for_comb): New.
25567 (aff_combination_const): Use widest_int instead of double_int.
25568 (aff_combination_scale): Likewise.
25569 (aff_combination_add_elt): Likewise.
25570 (aff_combination_constant_multiple_p): Likewise.
25571 (get_inner_reference_aff): Likewise.
25572 (aff_comb_cannot_overlap_p): Likewise.
25573 (aff_combination_zero_p): Use wide-int interfaces.
25574 * tree.c: Include tree.h.
25575 (init_ttree): Use make_int_cst.
25576 (tree_code_size): Removed code for INTEGER_CST case.
25577 (tree_size): Add INTEGER_CST case.
25578 (make_node_stat): Update comment.
25579 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
25580 (build_int_cst_type): Use wide-int interfaces.
25581 (double_int_to_tree): Likewise.
25582 (double_int_fits_to_tree_p): Delete.
25583 (force_fit_type_double): Delete.
25584 (force_fit_type): New.
25585 (int_cst_hash_hash): Use wide-int interfaces.
25586 (int_cst_hash_eq): Likewise.
25587 (build_int_cst_wide): Delete.
25588 (wide_int_to_tree): New.
25589 (cache_integer_cst): Use wide-int interfaces.
25590 (build_low_bits_mask): Likewise.
25591 (cst_and_fits_in_hwi): Likewise.
25592 (real_value_from_int_cst): Likewise.
25593 (make_int_cst_stat): New.
25594 (integer_zerop): Use wide_int interfaces.
25595 (integer_onep): Likewise.
25596 (integer_all_onesp): Likewise.
25597 (integer_pow2p): Likewise.
25598 (integer_nonzerop): Likewise.
25599 (tree_log2): Likewise.
25600 (tree_floor_log2): Likewise.
25601 (tree_ctz): Likewise.
25602 (int_size_in_bytes): Likewise.
25603 (mem_ref_offset): Return an offset_int rather than a double_int.
25604 (build_type_attribute_qual_variant): Use wide_int interfaces.
25605 (type_hash_eq): Likewise
25606 (tree_int_cst_equal): Likewise.
25607 (tree_int_cst_lt): Delete.
25608 (tree_int_cst_compare): Likewise.
25609 (tree_fits_shwi_p): Use wide_int interfaces.
25610 (tree_fits_uhwi_p): Likewise.
25611 (tree_int_cst_sign_bit): Likewise.
25612 (tree_int_cst_sgn): Likewise.
25613 (tree_int_cst_min_precision): Take a signop rather than a bool.
25614 (simple_cst_equal): Use wide_int interfaces.
25615 (compare_tree_int): Likewise.
25616 (iterative_hash_expr): Likewise.
25617 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
25619 (get_type_static_bounds): Use wide_int interfaces.
25620 (tree_int_cst_elt_check_failed): New.
25621 (build_common_tree_nodes): Reordered to set prec before filling in
25623 (int_cst_value): Check cst_and_fits_in_hwi.
25624 (widest_int_cst_value): Use wide_int interfaces.
25625 (upper_bound_in_type): Likewise.
25626 (lower_bound_in_type): Likewise.
25627 (num_ending_zeros): Likewise.
25628 (drop_tree_overflow): Likewise.
25629 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
25630 (gen_conditions_for_pow_cst_base): Likewise.
25631 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
25632 (group_case_labels_stmt): Use wide-int interfaces.
25633 (verify_gimple_assign_binary): Likewise.
25634 (print_loop): Likewise.
25635 * tree-chrec.c (tree_fold_binomial): Likewise.
25636 * tree-core.h (struct tree_base): Add int_length.
25637 (struct tree_int_cst): Change rep of value.
25638 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
25639 (dr_may_alias_p): Likewise.
25640 (max_stmt_executions_tree): Likewise.
25641 * tree.def (INTEGER_CST): Update comment.
25642 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
25643 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
25644 * tree-dump.c: Include wide-int.h and wide-int-print.h.
25645 (dequeue_and_dump): Use wide-int interfaces.
25646 * tree.h: Include wide-int.h.
25647 (NULL_TREE): Moved to earlier loc in file.
25648 (TREE_INT_CST_ELT_CHECK): New.
25649 (tree_int_cst_elt_check_failed): New.
25651 (TREE_INT_CST): Delete.
25652 (TREE_INT_CST_LOW): Use wide-int interfaces.
25653 (TREE_INT_CST_HIGH): Delete.
25654 (TREE_INT_CST_NUNITS): New.
25655 (TREE_INT_CST_EXT_NUNITS): Likewise.
25656 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
25657 (TREE_INT_CST_ELT): Likewise.
25658 (INT_CST_LT): Delete.
25659 (tree_int_cst_elt_check): New (two forms).
25660 (type_code_size): Update comment.
25661 (make_int_cst_stat, make_int_cst): New.
25662 (tree_to_double_int): Delete.
25663 (double_int_fits_to_tree_p): Delete.
25664 (force_fit_type_double): Delete.
25665 (build_int_cstu): Replace with out-of-line function.
25666 (build_int_cst_wide): Delete.
25667 (tree_int_cst_lt): Define inline.
25668 (tree_int_cst_le): New.
25669 (tree_int_cst_compare): Define inline.
25670 (tree_int_cst_min_precision): Take a signop rather than a bool.
25671 (wi::int_traits <const_tree>): New.
25672 (wi::int_traits <tree>): New.
25673 (wi::extended_tree): New.
25674 (wi::int_traits <wi::extended_tree>): New.
25675 (wi::to_widest): New.
25676 (wi::to_offset): New.
25677 (wi::fits_to_tree_p): New.
25678 (wi::min_value): New.
25679 (wi::max_value): New.
25680 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
25681 (copy_tree_body_r): Likewise.
25682 * tree-object-size.c (compute_object_offset): Likewise.
25683 (addr_object_size): Likewise.
25684 * tree-predcom.c: Include wide-int-print.h.
25685 (struct dref_d): Change type of offset to widest_int.
25686 (dump_dref): Call wide-int printer.
25687 (aff_combination_dr_offset): Use wide-int interfaces.
25688 (determine_offset): Take a widest_int pointer rather than a
25689 double_int pointer.
25690 (split_data_refs_to_components): Use wide-int interfaces.
25691 (suitable_component_p): Likewise.
25692 (order_drefs): Likewise.
25693 (add_ref_to_chain): Likewise.
25694 (valid_initializer_p): Likewise.
25695 (determine_roots_comp): Likewise.
25696 * tree-pretty-print.c: Include wide-int-print.h.
25697 (dump_generic_node): Use wide-int interfaces.
25698 * tree-sra.c (sra_ipa_modify_expr): Likewise.
25699 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
25700 (move_fixed_address_to_symbol): Likewise.
25701 (move_hint_to_base): Likewise.
25702 (move_pointer_to_base): Likewise.
25703 (move_variant_to_index): Likewise.
25704 (most_expensive_mult_to_index): Likewise.
25705 (addr_to_parts): Likewise.
25706 (copy_ref_info): Likewise.
25707 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25708 (indirect_refs_may_alias_p): Likewise.
25709 (stmt_kills_ref_p_1): Likewise.
25710 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
25711 * tree-ssa-ccp.c: Update comment at top of file. Include
25713 (struct prop_value_d): Change type of mask to widest_int.
25714 (extend_mask): New function.
25715 (dump_lattice_value): Use wide-int interfaces.
25716 (get_default_value): Likewise.
25717 (set_constant_value): Likewise.
25718 (set_value_varying): Likewise.
25719 (valid_lattice_transition): Likewise.
25720 (set_lattice_value): Likewise.
25721 (value_to_double_int): Delete.
25722 (value_to_wide_int): New.
25723 (get_value_from_alignment): Use wide-int interfaces.
25724 (get_value_for_expr): Likewise.
25725 (do_dbg_cnt): Likewise.
25726 (ccp_finalize): Likewise.
25727 (ccp_lattice_meet): Likewise.
25728 (bit_value_unop_1): Use widest_ints rather than double_ints.
25729 (bit_value_binop_1): Likewise.
25730 (bit_value_unop): Use wide-int interfaces.
25731 (bit_value_binop): Likewise.
25732 (bit_value_assume_aligned): Likewise.
25733 (evaluate_stmt): Likewise.
25734 (ccp_fold_stmt): Likewise.
25735 (visit_cond_stmt): Likewise.
25736 (ccp_visit_stmt): Likewise.
25737 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
25738 (constant_pointer_difference): Likewise.
25739 (associate_pointerplus): Likewise.
25740 (combine_conversions): Likewise.
25741 * tree-ssa-loop.h: Include wide-int.h.
25742 (struct tree_niter_desc): Change type of max to widest_int.
25743 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
25744 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
25745 (remove_redundant_iv_tests): Likewise.
25746 (canonicalize_loop_induction_variables): Likewise.
25747 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
25748 (constant_multiple_of): Take a widest_int pointer instead of
25749 a double_int pointer.
25750 (get_computation_aff): Use wide-int interfaces.
25751 (ptr_difference_cost): Likewise.
25752 (difference_cost): Likewise.
25753 (get_loop_invariant_expr_id): Likewise.
25754 (get_computation_cost_at): Likewise.
25755 (iv_elimination_compare_lt): Likewise.
25756 (may_eliminate_iv): Likewise.
25757 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
25758 instead of double_int.
25759 (max_loop_iterations): Likewise.
25760 (max_stmt_executions): Likewise.
25761 (estimated_stmt_executions): Likewise.
25762 * tree-ssa-loop-niter.c: Include wide-int-print.h.
25763 (split_to_var_and_offset): Use wide-int interfaces.
25764 (determine_value_range): Likewise.
25765 (bound_difference_of_offsetted_base): Likewise.
25766 (bounds_add): Take a widest_int instead of a double_int.
25767 (number_of_iterations_ne_max): Use wide-int interfaces.
25768 (number_of_iterations_ne): Likewise.
25769 (number_of_iterations_lt_to_ne): Likewise.
25770 (assert_loop_rolls_lt): Likewise.
25771 (number_of_iterations_lt): Likewise.
25772 (number_of_iterations_le): Likewise.
25773 (number_of_iterations_cond): Likewise.
25774 (number_of_iterations_exit): Likewise.
25775 (finite_loop_p): Likewise.
25776 (derive_constant_upper_bound_assign): Likewise.
25777 (derive_constant_upper_bound): Return a widest_int.
25778 (derive_constant_upper_bound_ops): Likewise.
25779 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
25780 (record_estimate): Take a widest_int rather than a double_int.
25781 (record_nonwrapping_iv): Use wide-int interfaces.
25782 (double_int_cmp): Delete.
25783 (wide_int_cmp): New.
25784 (bound_index): Take a widest_int rather than a double_int.
25785 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
25786 (maybe_lower_iteration_bound): Likewise.
25787 (estimate_numbers_of_iterations_loop): Likewise.
25788 (estimated_loop_iterations): Take a widest_int pointer than than
25789 a double_int pointer.
25790 (estimated_loop_iterations_int): Use wide-int interfaces.
25791 (max_loop_iterations): Take a widest_int pointer than than
25792 a double_int pointer.
25793 (max_loop_iterations_int): Use wide-int interfaces.
25794 (max_stmt_executions): Take a widest_int pointer than than
25795 a double_int pointer.
25796 (estimated_stmt_executions): Likewise.
25797 (n_of_executions_at_most): Use wide-int interfaces.
25798 (scev_probably_wraps_p): Likewise.
25799 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
25800 to real_to_integer.
25801 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
25803 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
25804 double_ints. Adjust for trailing_wide_ints <3> representation.
25805 (set_nonzero_bits): Likewise.
25806 (get_range_info): Return wide_ints rather than double_ints.
25807 Adjust for trailing_wide_ints <3> representation.
25808 (get_nonzero_bits): Likewise.
25809 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
25811 * tree-ssanames.h (struct range_info_def): Replace min, max and
25812 nonzero_bits with a trailing_wide_ints <3>.
25813 (set_range_info): Use wide_int_refs rather than double_ints.
25814 (set_nonzero_bits): Likewise.
25815 (get_range_info): Return wide_ints rather than double_ints.
25816 (get_nonzero_bits): Likewise.
25817 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
25818 * tree-ssa-pre.c (phi_translate_1): Likewise.
25819 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
25820 (acceptable_pow_call): Likewise.
25821 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
25823 (vn_reference_fold_indirect): Likewise.
25824 (vn_reference_maybe_forwprop_address): Likewise.
25825 (valueize_refs_1): Likewise.
25826 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
25827 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
25828 tree_int_cst_lt and tree_int_cst_le.
25829 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
25831 (streamer_alloc_tree): Likewise.
25832 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
25833 (streamer_write_tree_header): Likewise.
25834 (streamer_write_integer_cst): Likewise.
25835 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
25836 (build_constructors): Likewise.
25837 (array_value_type): Likewise.
25838 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
25839 (vect_check_gather): Likewise.
25840 * tree-vect-generic.c (build_replicated_const): Likewise.
25841 (expand_vector_divmod): Likewise.
25842 * tree-vect-loop.c (vect_transform_loop): Likewise.
25843 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
25844 (vect_do_peeling_for_alignment): Likewise.
25845 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
25846 * tree-vrp.c: Include wide-int.h.
25847 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
25848 (extract_range_from_assert): Use wide-int interfaces.
25849 (vrp_int_const_binop): Likewise.
25850 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
25851 double_int pointers.
25852 (ranges_from_anti_range): Use wide-int interfaces.
25853 (quad_int_cmp): Delete.
25854 (quad_int_pair_sort): Likewise.
25855 (extract_range_from_binary_expr_1): Use wide-int interfaces.
25856 (extract_range_from_unary_expr_1): Likewise.
25857 (adjust_range_with_scev): Likewise.
25858 (masked_increment): Take and return wide_ints rather than double_ints.
25859 (register_edge_assert_for_2): Use wide-int interfaces.
25860 (check_array_ref): Likewise.
25861 (search_for_addr_array): Likewise.
25862 (maybe_set_nonzero_bits): Likewise.
25863 (union_ranges): Pass an integer of the correct type instead of
25864 using integer_one_node.
25865 (intersect_ranges): Likewise.
25866 (simplify_truth_ops_using_ranges): Likewise.
25867 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
25868 (range_fits_type_p): Likewise.
25869 (simplify_cond_using_ranges): Likewise. Take a signop rather than
25871 (simplify_conversion_using_ranges): Use wide-int interfaces.
25872 (simplify_float_conversion_using_ranges): Likewise.
25873 (vrp_finalize): Likewise.
25874 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
25875 (gimple_stringops_transform): Likewise.
25876 * varasm.c (decode_addr_const): Likewise.
25877 (const_hash_1): Likewise.
25878 (const_rtx_hash_1): Likewise
25879 (output_constant): Likewise.
25880 (array_size_for_constructor): Likewise.
25881 (output_constructor_regular_field): Likewise.
25882 (output_constructor_bitfield): Likewise.
25883 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
25884 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
25886 * gencheck.c: Define BITS_PER_UNIT.
25887 * wide-int.cc: New.
25889 * wide-int-print.cc: New.
25890 * wide-int-print.h: New.
25892 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25894 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
25896 2014-05-06 Richard Biener <rguenther@suse.de>
25898 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
25899 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
25900 (TODO_verify_all): Adjust.
25901 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
25902 TODO_verify_stmts and TODO_verify_rtl_sharing.
25903 * bb-reorder.c: Likewise.
25904 * cfgexpand.c: Likewise.
25905 * cprop.c: Likewise.
25907 * function.c: Likewise.
25908 * fwprop.c: Likewise.
25909 * gcse.c: Likewise.
25910 * gimple-ssa-isolate-paths.c: Likewise.
25911 * gimple-ssa-strength-reduction.c: Likewise.
25912 * ipa-split.c: Likewise.
25913 * loop-init.c: Likewise.
25914 * loop-unroll.c: Likewise.
25915 * lower-subreg.c: Likewise.
25916 * modulo-sched.c: Likewise.
25917 * postreload-gcse.c: Likewise.
25918 * predict.c: Likewise.
25919 * recog.c: Likewise.
25920 * sched-rgn.c: Likewise.
25921 * store-motion.c: Likewise.
25922 * tracer.c: Likewise.
25923 * trans-mem.c: Likewise.
25924 * tree-call-cdce.c: Likewise.
25925 * tree-cfg.c: Likewise.
25926 * tree-cfgcleanup.c: Likewise.
25927 * tree-complex.c: Likewise.
25928 * tree-eh.c: Likewise.
25929 * tree-emutls.c: Likewise.
25930 * tree-if-conv.c: Likewise.
25931 * tree-into-ssa.c: Likewise.
25932 * tree-loop-distribution.c: Likewise.
25933 * tree-object-size.c: Likewise.
25934 * tree-parloops.c: Likewise.
25935 * tree-pass.h: Likewise.
25936 * tree-sra.c: Likewise.
25937 * tree-ssa-ccp.c: Likewise.
25938 * tree-ssa-copy.c: Likewise.
25939 * tree-ssa-copyrename.c: Likewise.
25940 * tree-ssa-dce.c: Likewise.
25941 * tree-ssa-dom.c: Likewise.
25942 * tree-ssa-dse.c: Likewise.
25943 * tree-ssa-forwprop.c: Likewise.
25944 * tree-ssa-ifcombine.c: Likewise.
25945 * tree-ssa-loop-ch.c: Likewise.
25946 * tree-ssa-loop-ivcanon.c: Likewise.
25947 * tree-ssa-loop.c: Likewise.
25948 * tree-ssa-math-opts.c: Likewise.
25949 * tree-ssa-phiopt.c: Likewise.
25950 * tree-ssa-phiprop.c: Likewise.
25951 * tree-ssa-pre.c: Likewise.
25952 * tree-ssa-reassoc.c: Likewise.
25953 * tree-ssa-sink.c: Likewise.
25954 * tree-ssa-strlen.c: Likewise.
25955 * tree-ssa-tail-merge.c: Likewise.
25956 * tree-ssa-uncprop.c: Likewise.
25957 * tree-switch-conversion.c: Likewise.
25958 * tree-tailcall.c: Likewise.
25959 * tree-vect-generic.c: Likewise.
25960 * tree-vectorizer.c: Likewise.
25961 * tree-vrp.c: Likewise.
25962 * tsan.c: Likewise.
25963 * var-tracking.c: Likewise.
25964 * bt-load.c: Likewise.
25965 * cfgcleanup.c: Likewise.
25966 * combine-stack-adj.c: Likewise.
25967 * combine.c: Likewise.
25968 * compare-elim.c: Likewise.
25969 * config/epiphany/resolve-sw-modes.c: Likewise.
25970 * config/i386/i386.c: Likewise.
25971 * config/mips/mips.c: Likewise.
25972 * config/s390/s390.c: Likewise.
25973 * config/sh/sh_treg_combine.cc: Likewise.
25974 * config/sparc/sparc.c: Likewise.
25977 * final.c: Likewise.
25978 * ifcvt.c: Likewise.
25979 * mode-switching.c: Likewise.
25980 * passes.c: Likewise.
25981 * postreload.c: Likewise.
25983 * reg-stack.c: Likewise.
25984 * regcprop.c: Likewise.
25985 * regrename.c: Likewise.
25988 2014-05-06 Richard Biener <rguenther@suse.de>
25990 PR middle-end/61070
25991 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
25992 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
25994 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
25997 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
25999 2014-05-05 Radovan Obradovic <robradovic@mips.com>
26000 Tom de Vries <tom@codesourcery.com>
26002 * target.def (call_fusage_contains_non_callee_clobbers): New
26004 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26006 (@node Miscellaneous Register Hooks): New node.
26007 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26008 * doc/tm.texi: Regenerate.
26010 2014-05-05 Marek Polacek <polacek@redhat.com>
26013 * opts.c (common_handle_option): Call error_at instead of warning_at.
26015 2014-05-05 Richard Biener <rguenther@suse.de>
26017 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26018 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
26019 under the TODO_verify_il umbrella.
26021 2014-05-05 Richard Biener <rguenther@suse.de>
26023 * passes.c (execute_function_todo): Move TODO_verify_flow under
26024 the TODO_verify_ul umbrella.
26026 2014-05-05 Richard Biener <rguenther@suse.de>
26028 PR middle-end/61010
26029 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26030 X & CST away from a CST that is the mask of a mode.
26032 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26034 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26035 int argument to enum machine_mode.
26036 (picochip_class_max_nregs): Ditto.
26037 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26038 (picochip_class_max_nregs): Ditto.
26040 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26042 * target.def: Add new target hook.
26043 * doc/tm.texi: Regenerate.
26044 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26045 * targhooks.c (default_keep_leaf_when_profiled): New function.
26047 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26048 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26050 2014-05-05 Bin Cheng <bin.cheng@arm.com>
26052 PR tree-optimization/60363
26053 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26054 (copy_phi_args): New parameters. Call get_value_locus_in_path.
26055 (update_destination_phis): New parameter.
26056 (create_edge_and_update_destination_phis): Ditto.
26057 (ssa_fix_duplicate_block_edges): Pass new arguments.
26058 (thread_single_edge): Ditto.
26060 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
26062 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26063 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26064 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26065 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26066 Use RS6000_BTM_HARD_FLOAT.
26067 (BU_MISC_2): Likewise.
26068 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26069 RS6000_BTM_HARD_FLOAT.
26070 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26071 is explicitly used.
26072 (rs6000_invalid_builtin): Add hard floating builtin support.
26073 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26074 hard float builtins.
26075 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26077 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26079 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26080 Add missing function* argument.
26082 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26084 * lra-constraints.c (valid_address_p): Move earlier in file.
26085 Add a constraint argument to the address_info version.
26086 (satisfies_memory_constraint_p): New function.
26087 (satisfies_address_constraint_p): Likewise.
26088 (process_alt_operands, curr_insn_transform): Use them.
26089 (process_address): Pass the constraint to valid_address_p when
26090 checking address operands.
26092 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26094 * config/mips/mips.c (mips_isa_rev): New variable.
26095 (mips_set_architecture): Set it.
26096 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26098 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26099 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26100 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26101 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26102 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26103 conditions in terms of mips_isa_rev.
26104 (mips_isa_rev): Declare.
26106 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26108 * config/sh/sh-mem.cc: Use tabs instead of spaces.
26109 (prob_unlikely, prob_likely): Make variables const.
26111 2014-05-03 Denis Chertykov <chertykov@gmail.com>
26113 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26115 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26117 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26119 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26121 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26122 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26123 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26125 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26126 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26128 Replace usage of ROUND_REG with sh_round_reg.
26129 Use CEIL instead of ROUND_ADVANCE.
26131 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26134 * config/sh/sh.c: Include stdlib headers before everything else.
26136 2014-05-02 Jakub Jelinek <jakub@redhat.com>
26138 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26139 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26140 (gimplify_adjust_omp_clauses): Simd region is never
26141 directly nested in combined parallel. Instead, for linear
26142 with copyin/copyout, if in combined for simd loop, make decl
26143 firstprivate/lastprivate on OMP_FOR.
26144 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26145 expand_omp_for_static_chunk): When setting endvar, also set
26146 fd->loop.v to the same value.
26148 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26150 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26152 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
26154 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26157 2014-05-02 Marek Polacek <polacek@redhat.com>
26159 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26161 2014-05-02 Kito Cheng <kito@0xlab.org>
26163 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
26164 to a C expression marco.
26165 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
26166 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
26167 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
26168 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
26169 HONOR_REG_ALLOC_ORDER.
26170 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
26172 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26174 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
26176 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26178 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
26180 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26182 * tree-if-conv.c (is_cond_scalar_reduction): New function.
26183 (convert_scalar_cond_reduction): Likewise.
26184 (predicate_scalar_phi): Add recognition and transformation
26185 of simple conditioanl reduction to be vectorizable.
26187 2014-05-01 Marek Polacek <polacek@redhat.com>
26190 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
26192 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
26194 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
26195 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
26196 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
26197 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
26198 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
26199 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
26200 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
26201 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
26203 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
26205 * config/arc/arc.opt (mlra): Move comment above option name
26206 to avoid mis-parsing as language options.
26208 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26210 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
26211 * config/sol2.h: ... here.
26212 * config/sol2-10.h: Remove.
26214 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
26215 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
26216 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
26217 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
26218 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
26219 * config/sol2.h: ... here.
26220 (SECTION_NAME_FORMAT): Don't redefine.
26221 (STARTFILE_ARCH32_SPEC): Rename to ...
26222 (STARTFILE_ARCH_SPEC): ... this.
26223 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
26224 * config/sparc/sol2.h: ... here.
26225 (SECTION_NAME_FORMAT): Don't undef.
26226 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
26227 (SUBTARGET_EXTRA_SPECS): Remove.
26228 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
26230 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
26231 (MD_STARTFILE_PREFIX): Remove.
26232 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
26233 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
26234 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
26235 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
26236 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
26237 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
26238 * config/i386/sol2.h: ... here.
26239 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
26240 * config/i386/sol2-bi.h: Remove.
26241 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
26242 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
26244 * config/i386/t-sol2-64: Rename to ...
26245 * config/i386/t-sol2: ... this.
26246 * config/sparc/t-sol2-64: Rename to ...
26247 * config/sparc/t-sol2: ... this.
26249 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
26250 sol2_tm_file_head, sol2_tm_file_tail.
26251 Include ${cpu_type}/sol2.h before sol2.h.
26253 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
26254 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
26255 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
26256 Reflect i386/t-sol2-64 renaming.
26257 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
26258 Reflect sparc/t-sol2-64 renaming.
26260 2014-04-30 Richard Biener <rguenther@suse.de>
26262 * passes.c (execute_function_todo): Move TODO_verify_stmts
26263 and TODO_verify_ssa under the TODO_verify_il umbrella.
26264 * tree-ssa.h (verify_ssa): Adjust prototype.
26265 * tree-ssa.c (verify_ssa): Add parameter to tell whether
26266 we should verify SSA operands.
26267 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
26268 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
26269 whether we should verify whether not throwing stmts have EH info.
26270 * graphite-scop-detection.c (create_sese_edges): Adjust.
26271 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
26272 * tree-eh.c (lower_try_finally_switch): Do not add the
26273 default case label twice.
26275 2014-04-30 Marek Polacek <polacek@redhat.com>
26277 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
26278 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
26279 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
26280 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
26282 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
26284 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
26285 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
26286 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
26287 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
26288 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
26289 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
26290 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
26291 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
26293 2014-04-29 David Malcolm <dmalcolm@redhat.com>
26295 * tree-cfg.c (dump_function_to_file): Dump the return type of
26296 functions, in a line to itself before the function body, mimicking
26297 the layout of a C function.
26299 2014-04-29 Jakub Jelinek <jakub@redhat.com>
26301 PR tree-optimization/60971
26302 * tree-tailcall.c (process_assignment): Reject conversions which
26305 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26307 * calls.c (initialize_argument_information): Always treat
26308 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
26309 (expand_call): Likewise.
26310 (emit_library_call_calue_1): Likewise.
26311 * expr.c (PUSH_ARGS_REVERSED): Do not define.
26312 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
26315 2014-04-29 Nick Clifton <nickc@redhat.com>
26317 * config/msp430/msp430.md (umulsidi): Fix typo.
26318 (mulhisi3): Enable even inside interrupt handlers.
26319 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
26320 bigger return address pushed in large mode.
26322 2014-04-29 Nick Clifton <nickc@redhat.com>
26324 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
26325 (arc_init_reg_tables): Use a machine_mode enum to iterate over
26327 * config/m32r/m32r.c (init_reg_tables): Likewise.
26328 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
26329 enum to hold the modes.
26331 2014-04-29 Richard Biener <rguenther@suse.de>
26333 * dominance.c (free_dominance_info): Add overload with
26334 function parameter.
26335 (dom_info_state): Likewise.
26336 (dom_info_available_p): Likewise.
26337 * basic-block.h (free_dominance_info, dom_info_state,
26338 dom_info_available_p): Declare overloads.
26339 * passes.c (execute_function_todo): Verify that verifiers
26340 don't change dominator info state. Drop dominator info
26341 for IPA pass invocations.
26342 * cgraph.c (release_function_body): Restore asserts that
26343 dominator information is released.
26345 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
26347 * doc/invoke.texi: Fix typo.
26348 * tree-vrp.c: Fix typos.
26349 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
26351 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26353 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
26355 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
26357 * config/aarch64/aarch64-builtins.c
26358 (aarch64_types_storestruct_lane_qualifiers): New.
26359 (TYPES_STORESTRUCT_LANE): Likewise.
26360 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
26361 (st3_lane): Likewise.
26362 (st4_lane): Likewise.
26363 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
26364 (vec_store_lanesci_lane<mode>): Likewise.
26365 (vec_store_lanesxi_lane<mode>): Likewise.
26366 (aarch64_st2_lane<VQ:mode>): Likewise.
26367 (aarch64_st3_lane<VQ:mode>): Likewise.
26368 (aarch64_st4_lane<VQ:mode>): Likewise.
26369 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
26370 * config/aarch64/arm_neon.h
26371 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
26372 use new macro arguments.
26373 (__ST3_LANE_FUNC): Likewise.
26374 (__ST4_LANE_FUNC): Likewise.
26375 * config/aarch64/iterators.md (V_TWO_ELEM): New.
26376 (V_THREE_ELEM): Likewise.
26377 (V_FOUR_ELEM): Likewise.
26379 2014-04-28 David Malcolm <dmalcolm@redhat.com>
26381 * doc/gimple.texi: Replace the description of the now-defunct
26382 union gimple_statement_d with a diagram showing the
26383 gimple_statement_base class hierarchy and its relationships to
26384 the GSS_ and GIMPLE_ enums.
26386 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
26388 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
26389 * config/aarch64/aarch64.c
26390 (aarch64_cannot_change_mode_class): Weaken conditions.
26391 (aarch64_modes_tieable_p): New.
26392 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
26394 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
26396 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26397 (loadsync_<mode>): Change mode.
26398 (load_quadpti, store_quadpti): New.
26399 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26400 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26402 2014-04-28 Martin Jambor <mjambor@suse.cz>
26404 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
26405 same alias type as the original statement.
26406 (subreplacement_assignment_data): New type.
26407 (handle_unscalarized_data_in_subtree): New type of parameter,
26408 generate new memory accesses with same alias type as the original
26410 (load_assign_lhs_subreplacements): Likewise.
26411 (sra_modify_constructor_assign): Generate new memory accesses with
26412 same alias type as the original statement.
26414 2014-04-28 Richard Biener <rguenther@suse.de>
26416 * tree-pass.h (TODO_verify_il): Define.
26417 (TODO_verify_all): Complete properly.
26418 * passes.c (execute_function_todo): Move existing loop-closed
26419 SSA verification under TODO_verify_il.
26420 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
26421 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
26422 Fix tree sharing issue.
26424 2014-04-28 Richard Biener <rguenther@suse.de>
26426 PR middle-end/60092
26427 * builtins.def (DEF_C11_BUILTIN): Add.
26428 (BUILT_IN_ALIGNED_ALLOC): Likewise.
26429 * coretypes.h (enum function_class): Add function_c11_misc.
26430 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
26431 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
26432 (call_may_clobber_ref_p_1): Likewise.
26433 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
26434 (mark_all_reaching_defs_necessary_1): Likewise.
26435 (propagate_necessity): Likewise.
26436 (eliminate_unnecessary_stmts): Likewise.
26437 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
26439 2014-04-28 Richard Biener <rguenther@suse.de>
26441 * tree-vrp.c (vrp_var_may_overflow): Remove.
26442 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
26443 with overflow immediately bump to one before that value and
26444 let iteration figure out overflow status.
26446 2014-04-28 Richard Biener <rguenther@suse.de>
26448 * configure.ac: Do valgrind header checks unconditionally.
26449 Add --enable-valgrind-annotations.
26450 * system.h: Guard valgrind header inclusion with
26451 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
26452 * alloc-pool.c (pool_alloc, pool_free): Use
26453 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
26454 to guard possibly dead code.
26455 * config.in: Regenerated.
26456 * configure: Likewise.
26458 2014-04-28 Jeff Law <law@redhat.com>
26460 PR tree-optimization/60902
26461 * tree-ssa-threadedge.c
26462 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
26463 over real defs when invalidating outputs from statements that do not
26464 produce useful outputs for threading.
26466 2014-04-28 Richard Biener <rguenther@suse.de>
26468 PR tree-optimization/60979
26469 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
26470 SCOPs that end in a block with a successor with abnormal
26473 2014-04-28 Richard Biener <rguenther@suse.de>
26475 * tree-pass.h (execute_pass_list): Adjust prototype.
26476 * passes.c (pass_manager::execute_early_local_passes): Adjust.
26477 (do_per_function): Change callback signature, push all actual
26478 work to the callbals.
26479 (do_per_function_toporder): Likewise.
26480 (execute_function_dump): Adjust.
26481 (execute_function_todo): Likewise.
26482 (clear_last_verified): Likewise.
26483 (verify_curr_properties): Likewise.
26484 (update_properties_after_pass): Likewise.
26485 (execute_pass_list_1): Split out from ...
26486 (execute_pass_list): ... here. Adjust.
26487 (execute_ipa_pass_list): Likewise.
26488 * cgraphunit.c (cgraph_add_new_function): Adjust.
26489 (analyze_function): Likewise.
26490 (expand_function): Likewise.
26491 * cgraph.c (release_function_body): Free dominance info
26492 here instead of asserting it was magically freed elsewhere.
26494 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
26496 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
26497 * configure: Regenerate.
26498 * config/sparc/sparc.opt (muser-mode): New option.
26499 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
26501 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
26502 * doc/invoke.texi (SPARC options): Document -muser-mode.
26504 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
26506 * cselib.c (find_slot_memmode): Delete.
26507 (cselib_hasher): Change compare_type to a struct.
26508 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
26510 (preserve_constants_and_equivs): Adjust for new compare_type.
26511 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
26512 (wrap_constant): Delete.
26513 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
26515 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
26517 * doc/install.texi (Building with profile feedback): Remove
26520 2014-04-26 Tom de Vries <tom@codesourcery.com>
26522 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
26525 2014-04-25 Cary Coutant <ccoutant@google.com>
26528 * dwarf2out.c (should_move_die_to_comdat): A type definition
26529 can contain a subprogram definition, but don't move it to a
26531 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
26532 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
26534 (clone_tree_hash): Rename to...
26535 (clone_tree_partial): ...this; change callers. Copy
26536 DW_TAG_subprogram DIEs as declarations.
26537 (copy_decls_walk): Don't copy children of a declaration into a
26540 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
26543 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
26546 2014-04-25 Jiong Wang <jiong.wang@arm.com>
26548 * config/arm/predicates.md (call_insn_operand): Add long_call check.
26549 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
26551 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
26554 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26556 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
26558 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26560 PR tree-optimization/60930
26561 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
26562 creating a multiply candidate by folding two constant
26563 multiplicands when the result overflows.
26565 2014-04-25 Jakub Jelinek <jakub@redhat.com>
26567 PR tree-optimization/60960
26568 * tree-vect-generic.c (expand_vector_operation): Only call
26569 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
26571 2014-04-25 Tom de Vries <tom@codesourcery.com>
26573 * expr.c (clobber_reg_mode): New function.
26574 * expr.h (clobber_reg): New function.
26576 2014-04-25 Tom de Vries <tom@codesourcery.com>
26578 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
26581 2014-04-25 Radovan Obradovic <robradovic@mips.com>
26582 Tom de Vries <tom@codesourcery.com>
26584 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
26586 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
26587 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
26588 new argument to find_all_hard_reg_sets call.
26590 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26592 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
26593 Use HOST_WIDE_INT_C for mask literal.
26594 (aarch_rev16_shleft_mask_imm_p): Likewise.
26596 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
26599 * config/sparc/sparc.md (ashlsi3_extend): Delete.
26601 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
26603 PR preprocessor/56540
26604 * config/i386/i386-c.c (ix86_target_macros): Define
26605 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
26607 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26609 * configure.ac (tga_func): Remove.
26610 (LIB_TLS_SPEC): Remove.
26611 * configure: Regenerate.
26612 * config.in: Regenerate.
26613 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
26615 2014-04-25 Richard Biener <rguenther@suse.de>
26618 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
26619 call stmt use/clobber sets during stmt walk instead of
26620 walking the possibly incomplete set of caller edges.
26622 2014-04-25 Richard Biener <rguenther@suse.de>
26625 * passes.c (apply_ipa_transforms): Inline into only caller ...
26626 (execute_one_pass): ... here. Properly bring in function
26627 bodies for nodes we want to apply IPA transforms to.
26629 2014-04-24 Cong Hou <congh@google.com>
26631 PR tree-optimization/60896
26632 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
26633 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
26634 (vect_mark_pattern_stmts): Set the def type of all statements in
26635 PATTERN_DEF_SEQ as vect_internal_def.
26637 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26639 * doc/extend.texi (PowerPC Built-in Functions): Document new
26640 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
26641 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
26643 * config/rs6000/predicates.md (const_0_to_3_operand): New
26644 predicate to match 0..3 integer constants.
26646 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
26647 to support adding miscellaneous builtin functions.
26648 (BU_DFP_MISC_2): Likewise.
26649 (BU_P7_MISC_1): Likewise.
26650 (BU_P7_MISC_2): Likewise.
26651 (BU_P8V_MISC_3): Likewise.
26652 (BU_MISC_1): Likewise.
26653 (BU_MISC_2): Likewise.
26654 (DIVWE): Add extended divide builtin functions.
26655 (DIVWEO): Likewise.
26656 (DIVWEU): Likewise.
26657 (DIVWEUO): Likewise.
26659 (DIVDEO): Likewise.
26660 (DIVDEU): Likewise.
26661 (DIVDEUO): Likewise.
26662 (DXEX): Add decimal floating-point builtin functions.
26664 (DDEDPD): Likewise.
26665 (DDEDPDQ): Likewise.
26666 (DENBCD): Likewise.
26667 (DENBCDQ): Likewise.
26671 (DSCLIQ): Likewise.
26673 (DSCRIQ): Likewise.
26674 (CDTBCD): Add new BCD builtin functions.
26675 (CBCDTD): Likewise.
26676 (ADDG6S): Likewise.
26677 (BCDADD): Likewise.
26678 (BCDADD_LT): Likewise.
26679 (BCDADD_EQ): Likewise.
26680 (BCDADD_GT): Likewise.
26681 (BCDADD_OV): Likewise.
26682 (BCDSUB): Likewise.
26683 (BCDSUB_LT): Likewise.
26684 (BCDSUB_EQ): Likewise.
26685 (BCDSUB_GT): Likewise.
26686 (BCDSUB_OV): Likewise.
26687 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
26688 (UNPACK_TD): Likewise.
26689 (PACK_TF): Likewise.
26690 (UNPACK_TF): Likewise.
26691 (UNPACK_TF_0): Likewise.
26692 (UNPACK_TF_1): Likewise.
26693 (PACK_V1TI): Likewise.
26694 (UNPACK_V1TI): Likewise.
26696 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26697 support for decimal floating point builtin functions.
26698 (rs6000_expand_ternop_builtin): Add checks for the new builtin
26699 functions that take constant arguments.
26700 (rs6000_invalid_builtin): Add decimal floating point builtin support.
26701 (rs6000_init_builtins): Setup long double, _Decimal64, and
26702 _Decimal128 types for new builtin functions.
26703 (builtin_function_type): Set the unsigned flags appropriately for
26704 the new builtin functions.
26705 (rs6000_opt_masks): Add support for decimal floating point builtin
26708 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
26709 floating point builtin functions.
26710 (RS6000_BTM_COMMON): Likewise.
26711 (RS6000_BTI_long_double): Likewise.
26712 (RS6000_BTI_dfloat64): Likewise.
26713 (RS6000_BTI_dfloat128): Likewise.
26714 (long_double_type_internal_node): Likewise.
26715 (dfloat64_type_internal_node): Likewise.
26716 (dfloat128_type_internal_node): Likewise.
26718 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
26719 2.07 bcd arithmetic instructions.
26720 (UNSPEC_BCDSUB): Likewise.
26721 (UNSPEC_BCD_OVERFLOW): Likewise.
26722 (UNSPEC_BCD_ADD_SUB): Likewise.
26723 (bcd_add_sub): Likewise.
26724 (BCD_TEST): Likewise.
26725 (bcd<bcd_add_sub>): Likewise.
26726 (bcd<bcd_add_sub>_test): Likewise.
26727 (bcd<bcd_add_sub>_test2): Likewise.
26728 (bcd<bcd_add_sub>_<code>): Likewise.
26729 (peephole2 for combined bcd ops): Likewise.
26731 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
26732 decimal floating point builtin functions.
26733 (UNSPEC_DENBCD): Likewise.
26734 (UNSPEC_DXEX): Likewise.
26735 (UNSPEC_DIEX): Likewise.
26736 (UNSPEC_DSCLI): Likewise.
26737 (UNSPEC_DSCRI): Likewise.
26738 (D64_D128): Likewise.
26739 (dfp_suffix): Likewise.
26740 (dfp_ddedpd_<mode>): Likewise.
26741 (dfp_denbcd_<mode>): Likewise.
26742 (dfp_dxex_<mode>): Likewise.
26743 (dfp_diex_<mode>): Likewise.
26744 (dfp_dscli_<mode>): Likewise.
26745 (dfp_dscri_<mode>): Likewise.
26747 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
26749 (UNSPEC_CDTBCD): Likewise.
26750 (UNSPEC_CBCDTD): Likewise.
26751 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
26752 (UNSPEC_DIVEO): Likewise.
26753 (UNSPEC_DIVEU): Likewise.
26754 (UNSPEC_DIVEUO): Likewise.
26755 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
26756 pack/unpack 128-bit types.
26757 (UNSPEC_PACK_128BIT): Likewise.
26758 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
26759 (udiv<mode>3): Use idiv_ldiv mode attribute.
26760 (div<mode>3): Likewise.
26761 (addg6s): Add new BCD builtin functions.
26762 (cdtbcd): Likewise.
26763 (cbcdtd): Likewise.
26764 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
26765 (div_extend): Likewise.
26766 (div<div_extend>_<mode>"): Likewise.
26767 (FP128_64): Add support for new builtin functions to pack/unpack
26769 (unpack<mode>): Likewise.
26770 (unpacktf_0): Likewise.
26771 (unpacktf_1): Likewise.
26772 (unpack<mode>_dm): Likewise.
26773 (unpack<mode>_nodm): Likewise.
26774 (pack<mode>): Likewise.
26775 (unpackv1ti): Likewise.
26776 (packv1ti): Likewise.
26778 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
26780 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
26783 2014-04-24 Jakub Jelinek <jakub@redhat.com>
26785 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
26786 * gimplify.c (omp_is_private): Change last argument's type to int.
26787 Only diagnose lastprivate if the simd argument is 1, only diagnose
26788 linear if the simd argument is 2.
26789 (gimplify_omp_for): Adjust omp_is_private callers. When adding
26790 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
26791 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
26792 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
26793 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
26794 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
26795 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
26796 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
26797 * tree-nested.c (convert_nonlocal_omp_clauses,
26798 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
26800 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
26803 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
26806 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
26808 * flag-types.h (enum ivar_visibility): Add.
26810 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
26812 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
26813 function * argument.
26815 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
26817 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
26819 2014-04-24 Radovan Obradovic <robradovic@mips.com>
26820 Tom de Vries <tom@codesourcery.com>
26822 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
26823 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
26825 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
26826 * emit-rtl.c (try_split): Same.
26828 2014-04-24 Radovan Obradovic <robradovic@mips.com>
26829 Tom de Vries <tom@codesourcery.com>
26831 * common.opt (fuse-caller-save): New option.
26833 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
26835 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
26836 elements for big-endian.
26838 2014-04-24 Richard Biener <rguenther@suse.de>
26840 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
26841 during TER and instead use the sepops interface for expanding
26842 non-GIMPLE_SINGLE_RHS.
26844 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26846 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
26847 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
26849 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26851 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
26852 assembler 64-bit option.
26853 * configure: Regenerate.
26855 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26857 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
26858 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
26859 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
26860 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
26861 (TARGET_CRYPTO): Take TARGET_SIMD into account.
26863 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26865 * config/aarch64/aarch64-builtins.c
26866 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
26867 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
26868 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
26869 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
26871 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
26872 (Vrevsuff): New mode attribute.
26874 2014-04-24 Terry Guo <terry.guo@arm.com>
26876 * config/arm/arm.h (machine_function): Define variable
26877 after_arm_reorg here.
26878 * config/arm/arm.c (after_arm_reorg): Remove the definition.
26879 (arm_split_constant): Update the way to access variable
26881 (arm_reorg): Ditto.
26882 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
26884 2014-04-23 Tom de Vries <tom@codesourcery.com>
26886 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
26888 2014-04-23 David Malcolm <dmalcolm@redhat.com>
26890 * is-a.h: Update comments to reflect the following changes to the
26891 "pointerness" of the API, making the template parameter match the
26892 return type, allowing use of is-a.h with typedefs of pointers.
26893 (is_a_helper::cast): Return a T rather then a pointer to a T, so
26894 that the return type matches the parameter to the is_a_helper.
26896 (dyn_cast): Likewise.
26898 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
26899 pointer from the is-a.h API.
26901 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
26902 (is_a_helper <cgraph_node *>::test): ...this, matching change to
26904 (is_a_helper <varpool_node>::test): Likewise, convert to...
26905 (is_a_helper <varpool_node *>::test): ...this.
26907 (varpool_first_variable): Update for removal of implicit pointer
26908 from the is-a.h API.
26909 (varpool_next_variable): Likewise.
26910 (varpool_first_static_initializer): Likewise.
26911 (varpool_next_static_initializer): Likewise.
26912 (varpool_first_defined_variable): Likewise.
26913 (varpool_next_defined_variable): Likewise.
26914 (cgraph_first_defined_function): Likewise.
26915 (cgraph_next_defined_function): Likewise.
26916 (cgraph_first_function): Likewise.
26917 (cgraph_next_function): Likewise.
26918 (cgraph_first_function_with_gimple_body): Likewise.
26919 (cgraph_next_function_with_gimple_body): Likewise.
26920 (cgraph_alias_target): Likewise.
26921 (varpool_alias_target): Likewise.
26922 (cgraph_function_or_thunk_node): Likewise.
26923 (varpool_variable_node): Likewise.
26924 (symtab_real_symbol_p): Likewise.
26925 * cgraphunit.c (referred_to_p): Likewise.
26926 (analyze_functions): Likewise.
26927 (handle_alias_pairs): Likewise.
26928 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
26929 * gimple-ssa.h (gimple_vuse_op): Likewise.
26930 (gimple_vdef_op): Likewise.
26931 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
26932 * gimple.c (gimple_build_asm_1): Likewise.
26933 (gimple_build_try): Likewise.
26934 (gimple_build_resx): Likewise.
26935 (gimple_build_eh_dispatch): Likewise.
26936 (gimple_build_omp_for): Likewise.
26937 (gimple_omp_for_set_clauses): Likewise.
26939 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
26940 (is_a_helper <gimple_statement_asm *>::test): ...this.
26941 (is_a_helper <gimple_statement_bind>::test): Convert to...
26942 (is_a_helper <gimple_statement_bind *>::test): ...this.
26943 (is_a_helper <gimple_statement_call>::test): Convert to...
26944 (is_a_helper <gimple_statement_call *>::test): ...this.
26945 (is_a_helper <gimple_statement_catch>::test): Convert to...
26946 (is_a_helper <gimple_statement_catch *>::test): ...this.
26947 (is_a_helper <gimple_statement_resx>::test): Convert to...
26948 (is_a_helper <gimple_statement_resx *>::test): ...this.
26949 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
26950 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
26951 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
26952 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
26953 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
26954 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
26955 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
26956 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
26957 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
26958 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
26959 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
26960 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
26961 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
26962 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
26963 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
26964 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
26965 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
26966 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
26967 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
26968 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
26969 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
26970 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
26971 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
26972 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
26973 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
26974 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
26975 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
26976 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
26977 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
26978 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
26979 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
26980 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
26981 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
26982 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
26983 (is_a_helper <gimple_statement_phi>::test): Convert to...
26984 (is_a_helper <gimple_statement_phi *>::test): ...this.
26985 (is_a_helper <gimple_statement_transaction>::test): Convert to...
26986 (is_a_helper <gimple_statement_transaction *>::test): ...this.
26987 (is_a_helper <gimple_statement_try>::test): Convert to...
26988 (is_a_helper <gimple_statement_try *>::test): ...this.
26989 (is_a_helper <gimple_statement_wce>::test): Convert to...
26990 (is_a_helper <gimple_statement_wce *>::test): ...this.
26991 (is_a_helper <const gimple_statement_asm>::test): Convert to...
26992 (is_a_helper <const gimple_statement_asm *>::test): ...this.
26993 (is_a_helper <const gimple_statement_bind>::test): Convert to...
26994 (is_a_helper <const gimple_statement_bind *>::test): ...this.
26995 (is_a_helper <const gimple_statement_call>::test): Convert to...
26996 (is_a_helper <const gimple_statement_call *>::test): ...this.
26997 (is_a_helper <const gimple_statement_catch>::test): Convert to...
26998 (is_a_helper <const gimple_statement_catch *>::test): ...this.
26999 (is_a_helper <const gimple_statement_resx>::test): Convert to...
27000 (is_a_helper <const gimple_statement_resx *>::test): ...this.
27001 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27002 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27003 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27004 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27005 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27007 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27009 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27011 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27013 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27014 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27015 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27017 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27018 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27020 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27021 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27022 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27023 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27024 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27025 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27027 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27028 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27029 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27030 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27032 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27033 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27034 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27035 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27036 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27037 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27038 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27039 (is_a_helper <const gimple_statement_phi>::test): Convert to...
27040 (is_a_helper <const gimple_statement_phi *>::test): ...this.
27041 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27042 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27043 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27044 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27045 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27046 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27047 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27049 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27051 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27052 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27054 (gimple_use_ops): Update for removal of implicit pointer from the
27056 (gimple_set_use_ops): Likewise.
27057 (gimple_vuse): Likewise.
27058 (gimple_vdef): Likewise.
27059 (gimple_vuse_ptr): Likewise.
27060 (gimple_vdef_ptr): Likewise.
27061 (gimple_set_vuse): Likewise.
27062 (gimple_set_vdef): Likewise.
27063 (gimple_omp_return_set_lhs): Likewise.
27064 (gimple_omp_return_lhs): Likewise.
27065 (gimple_omp_return_lhs_ptr): Likewise.
27066 (gimple_call_fntype): Likewise.
27067 (gimple_call_set_fntype): Likewise.
27068 (gimple_call_set_internal_fn): Likewise.
27069 (gimple_call_use_set): Likewise.
27070 (gimple_call_clobber_set): Likewise.
27071 (gimple_bind_vars): Likewise.
27072 (gimple_bind_set_vars): Likewise.
27073 (gimple_bind_body_ptr): Likewise.
27074 (gimple_bind_set_body): Likewise.
27075 (gimple_bind_add_stmt): Likewise.
27076 (gimple_bind_block): Likewise.
27077 (gimple_bind_set_block): Likewise.
27078 (gimple_asm_ninputs): Likewise.
27079 (gimple_asm_noutputs): Likewise.
27080 (gimple_asm_nclobbers): Likewise.
27081 (gimple_asm_nlabels): Likewise.
27082 (gimple_asm_input_op): Likewise.
27083 (gimple_asm_input_op_ptr): Likewise.
27084 (gimple_asm_output_op): Likewise.
27085 (gimple_asm_output_op_ptr): Likewise.
27086 (gimple_asm_set_output_op): Likewise.
27087 (gimple_asm_clobber_op): Likewise.
27088 (gimple_asm_set_clobber_op): Likewise.
27089 (gimple_asm_label_op): Likewise.
27090 (gimple_asm_set_label_op): Likewise.
27091 (gimple_asm_string): Likewise.
27092 (gimple_catch_types): Likewise.
27093 (gimple_catch_types_ptr): Likewise.
27094 (gimple_catch_handler_ptr): Likewise.
27095 (gimple_catch_set_types): Likewise.
27096 (gimple_catch_set_handler): Likewise.
27097 (gimple_eh_filter_types): Likewise.
27098 (gimple_eh_filter_types_ptr): Likewise.
27099 (gimple_eh_filter_failure_ptr): Likewise.
27100 (gimple_eh_filter_set_types): Likewise.
27101 (gimple_eh_filter_set_failure): Likewise.
27102 (gimple_eh_must_not_throw_fndecl): Likewise.
27103 (gimple_eh_must_not_throw_set_fndecl): Likewise.
27104 (gimple_eh_else_n_body_ptr): Likewise.
27105 (gimple_eh_else_e_body_ptr): Likewise.
27106 (gimple_eh_else_set_n_body): Likewise.
27107 (gimple_eh_else_set_e_body): Likewise.
27108 (gimple_try_eval_ptr): Likewise.
27109 (gimple_try_cleanup_ptr): Likewise.
27110 (gimple_try_set_eval): Likewise.
27111 (gimple_try_set_cleanup): Likewise.
27112 (gimple_wce_cleanup_ptr): Likewise.
27113 (gimple_wce_set_cleanup): Likewise.
27114 (gimple_phi_capacity): Likewise.
27115 (gimple_phi_num_args): Likewise.
27116 (gimple_phi_result): Likewise.
27117 (gimple_phi_result_ptr): Likewise.
27118 (gimple_phi_set_result): Likewise.
27119 (gimple_phi_arg): Likewise.
27120 (gimple_phi_set_arg): Likewise.
27121 (gimple_resx_region): Likewise.
27122 (gimple_resx_set_region): Likewise.
27123 (gimple_eh_dispatch_region): Likewise.
27124 (gimple_eh_dispatch_set_region): Likewise.
27125 (gimple_omp_critical_name): Likewise.
27126 (gimple_omp_critical_name_ptr): Likewise.
27127 (gimple_omp_critical_set_name): Likewise.
27128 (gimple_omp_for_clauses): Likewise.
27129 (gimple_omp_for_clauses_ptr): Likewise.
27130 (gimple_omp_for_set_clauses): Likewise.
27131 (gimple_omp_for_collapse): Likewise.
27132 (gimple_omp_for_index): Likewise.
27133 (gimple_omp_for_index_ptr): Likewise.
27134 (gimple_omp_for_set_index): Likewise.
27135 (gimple_omp_for_initial): Likewise.
27136 (gimple_omp_for_initial_ptr): Likewise.
27137 (gimple_omp_for_set_initial): Likewise.
27138 (gimple_omp_for_final): Likewise.
27139 (gimple_omp_for_final_ptr): Likewise.
27140 (gimple_omp_for_set_final): Likewise.
27141 (gimple_omp_for_incr): Likewise.
27142 (gimple_omp_for_incr_ptr): Likewise.
27143 (gimple_omp_for_set_incr): Likewise.
27144 (gimple_omp_for_pre_body_ptr): Likewise.
27145 (gimple_omp_for_set_pre_body): Likewise.
27146 (gimple_omp_parallel_clauses): Likewise.
27147 (gimple_omp_parallel_clauses_ptr): Likewise.
27148 (gimple_omp_parallel_set_clauses): Likewise.
27149 (gimple_omp_parallel_child_fn): Likewise.
27150 (gimple_omp_parallel_child_fn_ptr): Likewise.
27151 (gimple_omp_parallel_set_child_fn): Likewise.
27152 (gimple_omp_parallel_data_arg): Likewise.
27153 (gimple_omp_parallel_data_arg_ptr): Likewise.
27154 (gimple_omp_parallel_set_data_arg): Likewise.
27155 (gimple_omp_task_clauses): Likewise.
27156 (gimple_omp_task_clauses_ptr): Likewise.
27157 (gimple_omp_task_set_clauses): Likewise.
27158 (gimple_omp_task_child_fn): Likewise.
27159 (gimple_omp_task_child_fn_ptr): Likewise.
27160 (gimple_omp_task_set_child_fn): Likewise.
27161 (gimple_omp_task_data_arg): Likewise.
27162 (gimple_omp_task_data_arg_ptr): Likewise.
27163 (gimple_omp_task_set_data_arg): Likewise.
27164 (gimple_omp_taskreg_clauses): Likewise.
27165 (gimple_omp_taskreg_clauses_ptr): Likewise.
27166 (gimple_omp_taskreg_set_clauses): Likewise.
27167 (gimple_omp_taskreg_child_fn): Likewise.
27168 (gimple_omp_taskreg_child_fn_ptr): Likewise.
27169 (gimple_omp_taskreg_set_child_fn): Likewise.
27170 (gimple_omp_taskreg_data_arg): Likewise.
27171 (gimple_omp_taskreg_data_arg_ptr): Likewise.
27172 (gimple_omp_taskreg_set_data_arg): Likewise.
27173 (gimple_omp_task_copy_fn): Likewise.
27174 (gimple_omp_task_copy_fn_ptr): Likewise.
27175 (gimple_omp_task_set_copy_fn): Likewise.
27176 (gimple_omp_task_arg_size): Likewise.
27177 (gimple_omp_task_arg_size_ptr): Likewise.
27178 (gimple_omp_task_set_arg_size): Likewise.
27179 (gimple_omp_task_arg_align): Likewise.
27180 (gimple_omp_task_arg_align_ptr): Likewise.
27181 (gimple_omp_task_set_arg_align): Likewise.
27182 (gimple_omp_single_clauses): Likewise.
27183 (gimple_omp_single_clauses_ptr): Likewise.
27184 (gimple_omp_single_set_clauses): Likewise.
27185 (gimple_omp_target_clauses): Likewise.
27186 (gimple_omp_target_clauses_ptr): Likewise.
27187 (gimple_omp_target_set_clauses): Likewise.
27188 (gimple_omp_target_child_fn): Likewise.
27189 (gimple_omp_target_child_fn_ptr): Likewise.
27190 (gimple_omp_target_set_child_fn): Likewise.
27191 (gimple_omp_target_data_arg): Likewise.
27192 (gimple_omp_target_data_arg_ptr): Likewise.
27193 (gimple_omp_target_set_data_arg): Likewise.
27194 (gimple_omp_teams_clauses): Likewise.
27195 (gimple_omp_teams_clauses_ptr): Likewise.
27196 (gimple_omp_teams_set_clauses): Likewise.
27197 (gimple_omp_sections_clauses): Likewise.
27198 (gimple_omp_sections_clauses_ptr): Likewise.
27199 (gimple_omp_sections_set_clauses): Likewise.
27200 (gimple_omp_sections_control): Likewise.
27201 (gimple_omp_sections_control_ptr): Likewise.
27202 (gimple_omp_sections_set_control): Likewise.
27203 (gimple_omp_for_set_cond): Likewise.
27204 (gimple_omp_for_cond): Likewise.
27205 (gimple_omp_atomic_store_set_val): Likewise.
27206 (gimple_omp_atomic_store_val): Likewise.
27207 (gimple_omp_atomic_store_val_ptr): Likewise.
27208 (gimple_omp_atomic_load_set_lhs): Likewise.
27209 (gimple_omp_atomic_load_lhs): Likewise.
27210 (gimple_omp_atomic_load_lhs_ptr): Likewise.
27211 (gimple_omp_atomic_load_set_rhs): Likewise.
27212 (gimple_omp_atomic_load_rhs): Likewise.
27213 (gimple_omp_atomic_load_rhs_ptr): Likewise.
27214 (gimple_omp_continue_control_def): Likewise.
27215 (gimple_omp_continue_control_def_ptr): Likewise.
27216 (gimple_omp_continue_set_control_def): Likewise.
27217 (gimple_omp_continue_control_use): Likewise.
27218 (gimple_omp_continue_control_use_ptr): Likewise.
27219 (gimple_omp_continue_set_control_use): Likewise.
27220 (gimple_transaction_body_ptr): Likewise.
27221 (gimple_transaction_label): Likewise.
27222 (gimple_transaction_label_ptr): Likewise.
27223 (gimple_transaction_set_body): Likewise.
27224 (gimple_transaction_set_label): Likewise.
27226 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
27227 * ipa-inline-analysis.c (inline_write_summary): Likewise.
27228 * ipa-ref.c (ipa_record_reference): Likewise.
27229 * ipa-reference.c (analyze_function): Likewise.
27230 (ipa_reference_write_optimization_summary): Likewise.
27231 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
27232 (address_taken_from_non_vtable_p): Likewise.
27233 (comdat_can_be_unshared_p_1): Likewise.
27234 * lto-cgraph.c (lto_output_ref): Likewise.
27235 (add_references): Likewise.
27236 (compute_ltrans_boundary): Likewise.
27237 (output_symtab): Likewise.
27238 (input_ref): Likewise.
27239 (input_cgraph_1): Likewise.
27240 (output_cgraph_opt_summary): Likewise.
27241 * lto-streamer-out.c (lto_output): Likewise.
27242 (output_symbol_p): Likewise.
27243 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
27244 (lsei_start_function_in_partition): Likewise.
27245 (lsei_next_variable_in_partition): Likewise.
27246 (lsei_start_variable_in_partition): Likewise.
27247 * symtab.c (insert_to_assembler_name_hash): Likewise.
27248 (unlink_from_assembler_name_hash): Likewise.
27249 (symtab_unregister_node): Likewise.
27250 (symtab_remove_node): Likewise.
27251 (dump_symtab_node): Likewise.
27252 (verify_symtab_base): Likewise.
27253 (verify_symtab_node): Likewise.
27254 (symtab_make_decl_local): Likewise.
27255 (symtab_alias_ultimate_target): Likewise.
27256 (symtab_resolve_alias): Likewise.
27257 (symtab_get_symbol_partitioning_class): Likewise.
27258 * tree-phinodes.c (allocate_phi_node): Likewise.
27259 (reserve_phi_args_for_new_edge): Likewise.
27260 (remove_phi_args): Likewise.
27261 * varpool.c (varpool_node_for_asm): Likewise.
27262 (varpool_remove_unreferenced_decls): Likewise.
27264 2014-04-23 Jeff Law <law@redhat.com>
27266 PR tree-optimization/60902
27267 * tree-ssa-threadedge.c
27268 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
27269 invalidate outputs from statements that do not produce useful
27270 outputs for threading.
27272 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
27274 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
27275 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
27276 machine descriptions for Stack Smashing Protector.
27278 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
27280 * aarch64.md (<optab>_rol<mode>3): New pattern.
27281 (<optab>_rolsi3_uxtw): Likewise.
27282 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
27284 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
27286 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
27287 (arm_cortex_a12_tune): Likewise.
27289 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27291 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
27293 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27295 * config/arm/arm.md (arm_rev16si2): New pattern.
27296 (arm_rev16si2_alt): Likewise.
27297 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
27299 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27301 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
27302 (rev16<mode>2_alt): Likewise.
27303 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
27304 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
27305 (aarch_rev16_shleft_mask_imm_p): Likewise.
27306 (aarch_rev16_p_1): Likewise.
27307 (aarch_rev16_p): Likewise.
27308 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
27309 (aarch_rev16_shright_mask_imm_p): Likewise.
27310 (aarch_rev16_shleft_mask_imm_p): Likewise.
27312 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27314 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
27315 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
27317 (cortex_a53_extra_costs): Likewise.
27318 (cortex_a57_extra_costs): Likewise.
27319 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
27320 (cortexa7_extra_costs): Likewise.
27321 (cortexa8_extra_costs): Likewise.
27322 (cortexa12_extra_costs): Likewise.
27323 (cortexa15_extra_costs): Likewise.
27324 (v7m_extra_costs): Likewise.
27325 (arm_new_rtx_costs): Handle BSWAP.
27327 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27329 * config/arm/arm.c (cortexa8_extra_costs): New table.
27330 (arm_cortex_a8_tune): New tuning struct.
27331 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
27333 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27335 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
27337 2014-04-23 Richard Biener <rguenther@suse.de>
27339 * Makefile.in (OBJS): Remove loop-unswitch.o.
27340 * tree-pass.h (make_pass_rtl_unswitch): Remove.
27341 * passes.def (pass_rtl_unswitch): Likewise.
27342 * loop-init.c (gate_rtl_unswitch): Likewise.
27343 (rtl_unswitch): Likewise.
27344 (pass_data_rtl_unswitch): Likewise.
27345 (pass_rtl_unswitch): Likewise.
27346 (make_pass_rtl_unswitch): Likewise.
27347 * rtl.h (reversed_condition): Likewise.
27348 (compare_and_jump_seq): Likewise.
27349 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
27351 * loop-unroll.c (compare_and_jump_seq): Likewise.
27353 2014-04-23 Richard Biener <rguenther@suse.de>
27355 PR tree-optimization/60903
27356 * tree-ssa-loop-im.c (analyze_memory_references): Remove
27357 commented code block.
27358 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
27359 loop flags to newly created BBs and edges.
27361 2014-04-23 Nick Clifton <nickc@redhat.com>
27363 * config/msp430/msp430.c (msp430_handle_option): Move function
27365 (msp430_option_override): Simplify mcu and mcpu option handling.
27366 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
27367 support for -mhwmult command line option.
27368 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
27369 -mhwmult command line option.
27370 (msp430_hwmult_enabled): Delete.
27371 (msp43o_output_labelref): Add support for -mhwmult command line option.
27372 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
27373 (umulsidi3): Likewise.
27374 * config/msp430/msp430.opt (mmcu): Add Report attribute.
27375 (mcpu, mlarge, msmall): Likewise.
27376 (mhwmult): New option.
27377 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
27379 (msp430_is_f5_mcu): Remove prototype.
27380 (msp430_use_f5_series_hwmult): Add prototype.
27381 * config/msp430/msp430-opts.h: New file.
27382 * common/config/msp430: New directory.
27383 * common/config/msp430/msp430-common.c: New file.
27384 * config.gcc (msp430): Remove target_has_targetm_common.
27385 * doc/invoke.texi: Document -mhwmult command line option.
27387 2014-04-23 Nick Clifton <nickc@redhat.com>
27389 * config/i386/cygwin.h (ENDFILE_SPEC): Include
27390 default-manifest.o if it can be found in the search path.
27391 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
27393 2014-04-23 Terry Guo <terry.guo@arm.com>
27395 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
27397 2014-04-23 Richard Biener <rguenther@suse.de>
27399 PR middle-end/60895
27400 * tree-inline.c (declare_return_variable): Use mark_addressable.
27402 2014-04-23 Richard Biener <rguenther@suse.de>
27404 PR middle-end/60891
27405 * loop-init.c (loop_optimizer_init): Make sure to apply
27406 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
27408 2014-04-22 Jakub Jelinek <jakub@redhat.com>
27411 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
27413 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
27414 if flag_sanitize_undefined_trap_on_error.
27415 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
27416 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
27417 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
27418 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
27419 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
27420 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
27421 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
27422 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
27423 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
27424 * ubsan.c (ubsan_instrument_unreachable): Return
27425 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
27426 (ubsan_expand_null_ifn): Emit __builtin_trap ()
27427 if flag_sanitize_undefined_trap_on_error and
27428 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
27429 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
27430 instrument_bool_enum_load): Emit __builtin_trap () if
27431 flag_sanitize_undefined_trap_on_error and
27432 __builtin_handle_*_abort () if !flag_sanitize_recover.
27433 * doc/invoke.texi (-fsanitize-recover,
27434 -fsanitize-undefined-trap-on-error): Document.
27436 2014-04-22 Christian Bruel <christian.bruel@st.com>
27438 * config/sh/sh.md (mov<mode>): Replace movQIHI.
27439 Force immediates to SImode.
27441 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
27443 * config/nios2/nios2.md (UNSPEC_ROUND): New.
27444 (lroundsfsi2): New.
27445 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
27446 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
27447 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
27448 (nios2_fpu_insn): Add entry for round.
27449 (N2FPU_NO_ERRNO_P): Define.
27450 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
27452 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
27454 2014-04-22 Richard Henderson <rth@redhat.com>
27456 * config/aarch64/aarch64 (addti3, subti3): New expanders.
27457 (add<GPI>3_compare0): Remove leading * from name.
27458 (add<GPI>3_carryin): Likewise.
27459 (sub<GPI>3_compare0): Likewise.
27460 (sub<GPI>3_carryin): Likewise.
27461 (<su_optab>mulditi3): New expander.
27462 (multi3): New expander.
27463 (madd<GPI>): Remove leading * from name.
27465 2014-04-22 Martin Jambor <mjambor@suse.cz>
27467 * cgraphclones.c (cgraph_function_versioning): Copy
27468 ipa_transforms_to_apply instead of asserting it is empty.
27470 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
27473 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
27474 on count_exp to get mode.
27476 2014-04-22 Andrew Pinski <apinski@cavium.com>
27478 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27479 Handle TLS for ILP32.
27480 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
27481 (tlsie_small_<mode>): this and handle PTR.
27482 (tlsie_small_sidi): New pattern.
27483 (tlsle_small): Change to an expand to handle ILP32.
27484 (tlsle_small_<mode>): New pattern.
27485 (tlsdesc_small): Rename to ...
27486 (tlsdesc_small_<mode>): this and handle PTR.
27488 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27490 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
27492 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
27494 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
27495 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
27496 (aarch64_types_signed_poly_qualifiers): Likewise.
27497 (aarch64_types_unsigned_signed_qualifiers): Likewise.
27498 (aarch64_types_poly_signed_qualifiers): Likewise.
27499 (TYPES_REINTERP_SS): Type macro added.
27500 (TYPES_REINTERP_SU): Likewise.
27501 (TYPES_REINTERP_SP): Likewise.
27502 (TYPES_REINTERP_US): Likewise.
27503 (TYPES_REINTERP_PS): Likewise.
27504 (aarch64_fold_builtin): New expression folding added.
27505 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
27506 Declarations removed.
27507 (REINTERP_SS): Declarations added.
27508 (REINTERP_US): Likewise.
27509 (REINTERP_PS): Likewise.
27510 (REINTERP_SU): Likewise.
27511 (REINTERP_SP): Likewise.
27512 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
27513 (vreinterpretq_p8_f64): Likewise.
27514 (vreinterpret_p16_f64): Likewise.
27515 (vreinterpretq_p16_f64): Likewise.
27516 (vreinterpret_f32_f64): Likewise.
27517 (vreinterpretq_f32_f64): Likewise.
27518 (vreinterpret_f64_f32): Likewise.
27519 (vreinterpret_f64_p8): Likewise.
27520 (vreinterpret_f64_p16): Likewise.
27521 (vreinterpret_f64_s8): Likewise.
27522 (vreinterpret_f64_s16): Likewise.
27523 (vreinterpret_f64_s32): Likewise.
27524 (vreinterpret_f64_s64): Likewise.
27525 (vreinterpret_f64_u8): Likewise.
27526 (vreinterpret_f64_u16): Likewise.
27527 (vreinterpret_f64_u32): Likewise.
27528 (vreinterpret_f64_u64): Likewise.
27529 (vreinterpretq_f64_f32): Likewise.
27530 (vreinterpretq_f64_p8): Likewise.
27531 (vreinterpretq_f64_p16): Likewise.
27532 (vreinterpretq_f64_s8): Likewise.
27533 (vreinterpretq_f64_s16): Likewise.
27534 (vreinterpretq_f64_s32): Likewise.
27535 (vreinterpretq_f64_s64): Likewise.
27536 (vreinterpretq_f64_u8): Likewise.
27537 (vreinterpretq_f64_u16): Likewise.
27538 (vreinterpretq_f64_u32): Likewise.
27539 (vreinterpretq_f64_u64): Likewise.
27540 (vreinterpret_s64_f64): Likewise.
27541 (vreinterpretq_s64_f64): Likewise.
27542 (vreinterpret_u64_f64): Likewise.
27543 (vreinterpretq_u64_f64): Likewise.
27544 (vreinterpret_s8_f64): Likewise.
27545 (vreinterpretq_s8_f64): Likewise.
27546 (vreinterpret_s16_f64): Likewise.
27547 (vreinterpretq_s16_f64): Likewise.
27548 (vreinterpret_s32_f64): Likewise.
27549 (vreinterpretq_s32_f64): Likewise.
27550 (vreinterpret_u8_f64): Likewise.
27551 (vreinterpretq_u8_f64): Likewise.
27552 (vreinterpret_u16_f64): Likewise.
27553 (vreinterpretq_u16_f64): Likewise.
27554 (vreinterpret_u32_f64): Likewise.
27555 (vreinterpretq_u32_f64): Likewise.
27557 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
27559 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
27560 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
27561 (vreinterpret_p8_s8): Likewise.
27562 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
27563 (vreinterpret_p8_s16): Likewise.
27564 (vreinterpret_p8_s32): Likewise.
27565 (vreinterpret_p8_s64): Likewise.
27566 (vreinterpret_p8_f32): Likewise.
27567 (vreinterpret_p8_u8): Likewise.
27568 (vreinterpret_p8_u16): Likewise.
27569 (vreinterpret_p8_u32): Likewise.
27570 (vreinterpret_p8_u64): Likewise.
27571 (vreinterpret_p8_p16): Likewise.
27572 (vreinterpretq_p8_s8): Likewise.
27573 (vreinterpretq_p8_s16): Likewise.
27574 (vreinterpretq_p8_s32): Likewise.
27575 (vreinterpretq_p8_s64): Likewise.
27576 (vreinterpretq_p8_f32): Likewise.
27577 (vreinterpretq_p8_u8): Likewise.
27578 (vreinterpretq_p8_u16): Likewise.
27579 (vreinterpretq_p8_u32): Likewise.
27580 (vreinterpretq_p8_u64): Likewise.
27581 (vreinterpretq_p8_p16): Likewise.
27582 (vreinterpret_p16_s8): Likewise.
27583 (vreinterpret_p16_s16): Likewise.
27584 (vreinterpret_p16_s32): Likewise.
27585 (vreinterpret_p16_s64): Likewise.
27586 (vreinterpret_p16_f32): Likewise.
27587 (vreinterpret_p16_u8): Likewise.
27588 (vreinterpret_p16_u16): Likewise.
27589 (vreinterpret_p16_u32): Likewise.
27590 (vreinterpret_p16_u64): Likewise.
27591 (vreinterpret_p16_p8): Likewise.
27592 (vreinterpretq_p16_s8): Likewise.
27593 (vreinterpretq_p16_s16): Likewise.
27594 (vreinterpretq_p16_s32): Likewise.
27595 (vreinterpretq_p16_s64): Likewise.
27596 (vreinterpretq_p16_f32): Likewise.
27597 (vreinterpretq_p16_u8): Likewise.
27598 (vreinterpretq_p16_u16): Likewise.
27599 (vreinterpretq_p16_u32): Likewise.
27600 (vreinterpretq_p16_u64): Likewise.
27601 (vreinterpretq_p16_p8): Likewise.
27602 (vreinterpret_f32_s8): Likewise.
27603 (vreinterpret_f32_s16): Likewise.
27604 (vreinterpret_f32_s32): Likewise.
27605 (vreinterpret_f32_s64): Likewise.
27606 (vreinterpret_f32_u8): Likewise.
27607 (vreinterpret_f32_u16): Likewise.
27608 (vreinterpret_f32_u32): Likewise.
27609 (vreinterpret_f32_u64): Likewise.
27610 (vreinterpret_f32_p8): Likewise.
27611 (vreinterpret_f32_p16): Likewise.
27612 (vreinterpretq_f32_s8): Likewise.
27613 (vreinterpretq_f32_s16): Likewise.
27614 (vreinterpretq_f32_s32): Likewise.
27615 (vreinterpretq_f32_s64): Likewise.
27616 (vreinterpretq_f32_u8): Likewise.
27617 (vreinterpretq_f32_u16): Likewise.
27618 (vreinterpretq_f32_u32): Likewise.
27619 (vreinterpretq_f32_u64): Likewise.
27620 (vreinterpretq_f32_p8): Likewise.
27621 (vreinterpretq_f32_p16): Likewise.
27622 (vreinterpret_s64_s8): Likewise.
27623 (vreinterpret_s64_s16): Likewise.
27624 (vreinterpret_s64_s32): Likewise.
27625 (vreinterpret_s64_f32): Likewise.
27626 (vreinterpret_s64_u8): Likewise.
27627 (vreinterpret_s64_u16): Likewise.
27628 (vreinterpret_s64_u32): Likewise.
27629 (vreinterpret_s64_u64): Likewise.
27630 (vreinterpret_s64_p8): Likewise.
27631 (vreinterpret_s64_p16): Likewise.
27632 (vreinterpretq_s64_s8): Likewise.
27633 (vreinterpretq_s64_s16): Likewise.
27634 (vreinterpretq_s64_s32): Likewise.
27635 (vreinterpretq_s64_f32): Likewise.
27636 (vreinterpretq_s64_u8): Likewise.
27637 (vreinterpretq_s64_u16): Likewise.
27638 (vreinterpretq_s64_u32): Likewise.
27639 (vreinterpretq_s64_u64): Likewise.
27640 (vreinterpretq_s64_p8): Likewise.
27641 (vreinterpretq_s64_p16): Likewise.
27642 (vreinterpret_u64_s8): Likewise.
27643 (vreinterpret_u64_s16): Likewise.
27644 (vreinterpret_u64_s32): Likewise.
27645 (vreinterpret_u64_s64): Likewise.
27646 (vreinterpret_u64_f32): Likewise.
27647 (vreinterpret_u64_u8): Likewise.
27648 (vreinterpret_u64_u16): Likewise.
27649 (vreinterpret_u64_u32): Likewise.
27650 (vreinterpret_u64_p8): Likewise.
27651 (vreinterpret_u64_p16): Likewise.
27652 (vreinterpretq_u64_s8): Likewise.
27653 (vreinterpretq_u64_s16): Likewise.
27654 (vreinterpretq_u64_s32): Likewise.
27655 (vreinterpretq_u64_s64): Likewise.
27656 (vreinterpretq_u64_f32): Likewise.
27657 (vreinterpretq_u64_u8): Likewise.
27658 (vreinterpretq_u64_u16): Likewise.
27659 (vreinterpretq_u64_u32): Likewise.
27660 (vreinterpretq_u64_p8): Likewise.
27661 (vreinterpretq_u64_p16): Likewise.
27662 (vreinterpret_s8_s16): Likewise.
27663 (vreinterpret_s8_s32): Likewise.
27664 (vreinterpret_s8_s64): Likewise.
27665 (vreinterpret_s8_f32): Likewise.
27666 (vreinterpret_s8_u8): Likewise.
27667 (vreinterpret_s8_u16): Likewise.
27668 (vreinterpret_s8_u32): Likewise.
27669 (vreinterpret_s8_u64): Likewise.
27670 (vreinterpret_s8_p8): Likewise.
27671 (vreinterpret_s8_p16): Likewise.
27672 (vreinterpretq_s8_s16): Likewise.
27673 (vreinterpretq_s8_s32): Likewise.
27674 (vreinterpretq_s8_s64): Likewise.
27675 (vreinterpretq_s8_f32): Likewise.
27676 (vreinterpretq_s8_u8): Likewise.
27677 (vreinterpretq_s8_u16): Likewise.
27678 (vreinterpretq_s8_u32): Likewise.
27679 (vreinterpretq_s8_u64): Likewise.
27680 (vreinterpretq_s8_p8): Likewise.
27681 (vreinterpretq_s8_p16): Likewise.
27682 (vreinterpret_s16_s8): Likewise.
27683 (vreinterpret_s16_s32): Likewise.
27684 (vreinterpret_s16_s64): Likewise.
27685 (vreinterpret_s16_f32): Likewise.
27686 (vreinterpret_s16_u8): Likewise.
27687 (vreinterpret_s16_u16): Likewise.
27688 (vreinterpret_s16_u32): Likewise.
27689 (vreinterpret_s16_u64): Likewise.
27690 (vreinterpret_s16_p8): Likewise.
27691 (vreinterpret_s16_p16): Likewise.
27692 (vreinterpretq_s16_s8): Likewise.
27693 (vreinterpretq_s16_s32): Likewise.
27694 (vreinterpretq_s16_s64): Likewise.
27695 (vreinterpretq_s16_f32): Likewise.
27696 (vreinterpretq_s16_u8): Likewise.
27697 (vreinterpretq_s16_u16): Likewise.
27698 (vreinterpretq_s16_u32): Likewise.
27699 (vreinterpretq_s16_u64): Likewise.
27700 (vreinterpretq_s16_p8): Likewise.
27701 (vreinterpretq_s16_p16): Likewise.
27702 (vreinterpret_s32_s8): Likewise.
27703 (vreinterpret_s32_s16): Likewise.
27704 (vreinterpret_s32_s64): Likewise.
27705 (vreinterpret_s32_f32): Likewise.
27706 (vreinterpret_s32_u8): Likewise.
27707 (vreinterpret_s32_u16): Likewise.
27708 (vreinterpret_s32_u32): Likewise.
27709 (vreinterpret_s32_u64): Likewise.
27710 (vreinterpret_s32_p8): Likewise.
27711 (vreinterpret_s32_p16): Likewise.
27712 (vreinterpretq_s32_s8): Likewise.
27713 (vreinterpretq_s32_s16): Likewise.
27714 (vreinterpretq_s32_s64): Likewise.
27715 (vreinterpretq_s32_f32): Likewise.
27716 (vreinterpretq_s32_u8): Likewise.
27717 (vreinterpretq_s32_u16): Likewise.
27718 (vreinterpretq_s32_u32): Likewise.
27719 (vreinterpretq_s32_u64): Likewise.
27720 (vreinterpretq_s32_p8): Likewise.
27721 (vreinterpretq_s32_p16): Likewise.
27722 (vreinterpret_u8_s8): Likewise.
27723 (vreinterpret_u8_s16): Likewise.
27724 (vreinterpret_u8_s32): Likewise.
27725 (vreinterpret_u8_s64): Likewise.
27726 (vreinterpret_u8_f32): Likewise.
27727 (vreinterpret_u8_u16): Likewise.
27728 (vreinterpret_u8_u32): Likewise.
27729 (vreinterpret_u8_u64): Likewise.
27730 (vreinterpret_u8_p8): Likewise.
27731 (vreinterpret_u8_p16): Likewise.
27732 (vreinterpretq_u8_s8): Likewise.
27733 (vreinterpretq_u8_s16): Likewise.
27734 (vreinterpretq_u8_s32): Likewise.
27735 (vreinterpretq_u8_s64): Likewise.
27736 (vreinterpretq_u8_f32): Likewise.
27737 (vreinterpretq_u8_u16): Likewise.
27738 (vreinterpretq_u8_u32): Likewise.
27739 (vreinterpretq_u8_u64): Likewise.
27740 (vreinterpretq_u8_p8): Likewise.
27741 (vreinterpretq_u8_p16): Likewise.
27742 (vreinterpret_u16_s8): Likewise.
27743 (vreinterpret_u16_s16): Likewise.
27744 (vreinterpret_u16_s32): Likewise.
27745 (vreinterpret_u16_s64): Likewise.
27746 (vreinterpret_u16_f32): Likewise.
27747 (vreinterpret_u16_u8): Likewise.
27748 (vreinterpret_u16_u32): Likewise.
27749 (vreinterpret_u16_u64): Likewise.
27750 (vreinterpret_u16_p8): Likewise.
27751 (vreinterpret_u16_p16): Likewise.
27752 (vreinterpretq_u16_s8): Likewise.
27753 (vreinterpretq_u16_s16): Likewise.
27754 (vreinterpretq_u16_s32): Likewise.
27755 (vreinterpretq_u16_s64): Likewise.
27756 (vreinterpretq_u16_f32): Likewise.
27757 (vreinterpretq_u16_u8): Likewise.
27758 (vreinterpretq_u16_u32): Likewise.
27759 (vreinterpretq_u16_u64): Likewise.
27760 (vreinterpretq_u16_p8): Likewise.
27761 (vreinterpretq_u16_p16): Likewise.
27762 (vreinterpret_u32_s8): Likewise.
27763 (vreinterpret_u32_s16): Likewise.
27764 (vreinterpret_u32_s32): Likewise.
27765 (vreinterpret_u32_s64): Likewise.
27766 (vreinterpret_u32_f32): Likewise.
27767 (vreinterpret_u32_u8): Likewise.
27768 (vreinterpret_u32_u16): Likewise.
27769 (vreinterpret_u32_u64): Likewise.
27770 (vreinterpret_u32_p8): Likewise.
27771 (vreinterpret_u32_p16): Likewise.
27772 (vreinterpretq_u32_s8): Likewise.
27773 (vreinterpretq_u32_s16): Likewise.
27774 (vreinterpretq_u32_s32): Likewise.
27775 (vreinterpretq_u32_s64): Likewise.
27776 (vreinterpretq_u32_f32): Likewise.
27777 (vreinterpretq_u32_u8): Likewise.
27778 (vreinterpretq_u32_u16): Likewise.
27779 (vreinterpretq_u32_u64): Likewise.
27780 (vreinterpretq_u32_p8): Likewise.
27781 (vreinterpretq_u32_p16): Likewise.
27783 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
27785 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
27787 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
27789 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
27790 (vqnegd_s64): Likewise.
27791 (vqabs_s64): Likewise.
27792 (vqabsd_s64): Likewise.
27794 2014-04-22 Richard Henderson <rth@redhat.com>
27796 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
27797 computation to the top of the loop.
27799 2014-04-22 Renlin <renlin.li@arm.com>
27800 Jiong Wang <jiong.wang@arm.com>
27802 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
27803 * config/aarch64/aarch64.c (aarch64_layout_frame)
27804 (aarch64_initial_elimination_offset): Likewise.
27806 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
27808 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
27811 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
27813 * machmode.h (bitwise_mode_for_mode): Declare.
27814 * stor-layout.h (bitwise_type_for_mode): Likewise.
27815 * stor-layout.c (bitwise_mode_for_mode): New function.
27816 (bitwise_type_for_mode): Likewise.
27817 * builtins.c (fold_builtin_memory_op): Use it instead of
27818 int_mode_for_mode and build_nonstandard_integer_type.
27820 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27822 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
27823 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
27824 (*-*-solaris2*): Simplify.
27825 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
27826 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
27827 *-*-solaris2.9* handling.
27829 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
27831 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
27832 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
27833 handling, simplify.
27834 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
27835 * configure: Regenerate.
27837 * config/i386/sol2-9.h: Remove.
27839 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
27840 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
27841 Remove Solaris 9 references.
27843 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
27845 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
27846 (floatuns<GPI:mode><GPF:mode>2): Remove.
27847 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
27848 and floatuns conversions.
27849 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
27850 and floatuns conversions.
27851 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
27852 (w1,w2): New mode attributes for inequal width conversions.
27854 2014-04-22 Renlin Li <Renlin.Li@arm.com>
27856 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
27857 the output asm format.
27859 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27861 * config/aarch64/aarch64-simd.md
27862 (aarch64_cm<optab>di): Always split.
27863 (*aarch64_cm<optab>di): New.
27864 (aarch64_cmtstdi): Always split.
27865 (*aarch64_cmtstdi): New.
27867 2014-04-22 Jakub Jelinek <jakub@redhat.com>
27869 PR tree-optimization/60823
27870 * omp-low.c (ipa_simd_modify_function_body): Go through
27871 all SSA_NAMEs and for those refering to vector arguments
27872 which are going to be replaced adjust SSA_NAME_VAR and,
27873 if it is a default definition, change it into a non-default
27874 definition assigned at the beginning of function from new_decl.
27875 (ipa_simd_modify_stmt_ops): Rewritten.
27876 * tree-dfa.c (set_ssa_default_def): When removing default def,
27877 check for NULL loc instead of NULL *loc.
27879 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27881 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
27882 restrictions on core registers for DImode values in Thumb2.
27884 2014-04-22 Ian Bolton <ian.bolton@arm.com>
27886 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
27887 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
27889 2014-04-22 Ian Bolton <ian.bolton@arm.com>
27891 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
27892 (*iordi_notzesidi_di): Likewise.
27893 (*iordi_notsesidi_di): Likewise.
27895 2014-04-22 Ian Bolton <ian.bolton@arm.com>
27897 * config/arm/arm-protos.h (tune_params): New struct members.
27898 * config/arm/arm.c: Initialise tune_params per processor.
27899 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
27900 for speed, based on new tune_params.
27902 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
27904 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
27905 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
27906 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
27907 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
27908 * config/aarch64/arm_neon.h (vrnd_f64): Added.
27909 (vrnda_f64): Likewise.
27910 (vrndi_f64): Likewise.
27911 (vrndm_f64): Likewise.
27912 (vrndn_f64): Likewise.
27913 (vrndp_f64): Likewise.
27914 (vrndx_f64): Likewise.
27916 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27918 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
27919 GET_MODE_SIZE argument is enum machine_mode.
27921 2014-04-22 Jakub Jelinek <jakub@redhat.com>
27924 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
27925 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
27927 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
27929 PR middle-end/60281
27930 * asan.c (asan_emit_stack_protection): Force the base to align to
27931 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
27932 appropriate bits if STRICT_ALIGNMENT.
27933 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
27935 (expand_used_vars): Leave a space in the stack frame for alignment
27936 if STRICT_ALIGNMENT.
27938 2014-04-21 David Malcolm <dmalcolm@redhat.com>
27940 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
27942 (gimple_store_p): Likewise.
27943 (gimple_assign_load_p): Likewise.
27944 (gimple_assign_cast_p): Likewise.
27945 (gimple_clobber_p): Likewise.
27947 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
27948 rather than a gimple.
27949 (gimple_assign_cast_p): Likewise.
27951 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
27954 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
27955 If mode is DDmode and TARGET_E500_DOUBLE allow move.
27957 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
27958 more debug information for E500 if -mdebug=reg.
27960 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
27963 * config/i386/i386.c (ix86_expand_builtin)
27964 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
27965 register for target RTX.
27966 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
27968 2014-04-18 Cong Hou <congh@google.com>
27970 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
27971 the widen-mult pattern by handling two operands with different sizes,
27972 and operands whose size is smaller than half of the result type.
27974 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
27976 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
27977 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
27978 (do_estimate_edge_time): Compute it.
27979 * ipa-inline.c (want_inline_small_function_p): Bypass
27980 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
27982 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
27984 * ipa-inline.c (spec_rem): New static variable.
27985 (dump_overall_stats): New function.
27986 (dump_inline_stats): New function.
27988 2014-04-18 Richard Henderson <rth@redhat.com>
27990 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
27991 to GET_MODE_SIZE, not a reg_class_t.
27993 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27995 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
27996 (vsx_xxmrglw_<mode>): Likewise.
27998 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
28001 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28002 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28003 (rs6000_init_hard_regno_mode_ok): Likewise.
28005 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
28007 * ipa-inline.c (inline_small_functions): Account only non-cold
28009 * doc/invoke.texi (inline-unit-growth): Update documentation.
28011 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
28013 * config/rs6000/rs6000.md (addti3, subti3): New.
28015 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
28018 * config/i386/i386.c (ix86_expand_clear): Remove outdated
28019 comment. Check optimize_insn_for_size_p instead of
28020 optimize_insn_for_speed_p.
28022 2014-04-17 Martin Jambor <mjambor@suse.cz>
28024 * gimple-iterator.c (gsi_start_edge): New function.
28025 * gimple-iterator.h (gsi_start_edge): Declare.
28026 * tree-sra.c (single_non_eh_succ): New function.
28027 (disqualify_ops_if_throwing_stmt): Renamed to
28028 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
28029 having one non-EH successor BB.
28030 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28031 generate loads into replacements.
28032 (sra_modify_assign): Likewise and and also use the simple path for
28034 (sra_modify_function_body): Commit statements on edges.
28036 2014-04-17 Richard Biener <rguenther@suse.de>
28038 PR middle-end/60849
28039 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28040 comparison results and add clarifying comment.
28042 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28044 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28045 (blank_mode): Initialize it.
28046 (emit_mode_size_inline, emit_mode_nunits_inline,
28047 emit_mode_inner_inline): New functions.
28048 (emit_insn_modes_h): Call them and surround their output with
28049 #if GCC_VERSION >= 4001 ... #endif.
28050 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28051 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28052 mode_* arrays if the argument is __builtin_constant_p.
28053 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28054 is enum machine_mode.
28056 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28058 * passes.c (opt_pass::execute): Adjust.
28059 (pass_manager::execute_pass_mode_switching): Likewise.
28060 (early_local_passes::execute): Likewise.
28061 (execute_one_pass): Pass cfun to the pass's execute method.
28062 * tree-pass.h (opt_pass::execute): Add function * argument.
28063 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28064 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28065 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28066 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28067 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28068 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28069 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28070 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28071 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28072 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28073 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28074 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28075 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28076 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28077 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28078 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28079 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28080 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28081 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28082 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28083 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28084 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28085 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28086 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28087 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28088 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28089 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28090 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28091 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28094 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28096 * passes.c (opt_pass::gate): Take function * argument.
28097 (gate_all_early_local_passes): Merge into
28098 (early_local_passes::gate): this.
28099 (gate_all_early_optimizations): Merge into
28100 (all_early_optimizations::gate): this.
28101 (gate_all_optimizations): Mege into
28102 (all_optimizations::gate): this.
28103 (gate_all_optimizations_g): Merge into
28104 (all_optimizations_g::gate): this.
28105 (gate_rest_of_compilation): Mege into
28106 (rest_of_compilation::gate): this.
28107 (gate_postreload): Merge into
28108 (postreload::gate): this.
28109 (dump_one_pass): Pass cfun to the pass's gate method.
28110 (execute_ipa_summary_passes): Likewise.
28111 (execute_one_pass): Likewise.
28112 (ipa_write_summaries_2): Likewise.
28113 (ipa_write_optimization_summaries_1): Likewise.
28114 (ipa_read_summaries_1): Likewise.
28115 (ipa_read_optimization_summaries_1): Likewise.
28116 (execute_ipa_stmt_fixups): Likewise.
28117 * tree-pass.h (opt_pass::gate): Add function * argument.
28118 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28119 combine-stack-adj.c, combine.c, compare-elim.c,
28120 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28121 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28122 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28123 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
28124 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28125 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28126 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28127 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28128 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28129 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28130 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28131 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28132 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28133 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28134 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28135 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28136 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28137 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28138 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28139 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28140 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28141 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28142 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28143 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28144 var-tracking.c, vtable-verify.c, web.c: Adjust.
28146 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28148 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28149 * configure: Regenerate.
28151 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28153 * passes.c (dump_one_pass): don't check pass->has_gate.
28154 (execute_ipa_summary_passes): Likewise.
28155 (execute_one_pass): Likewise.
28156 (ipa_write_summaries_2): Likewise.
28157 (ipa_write_optimization_summaries_1): Likewise.
28158 (ipa_read_optimization_summaries_1): Likewise.
28159 (execute_ipa_stmt_fixups): Likewise.
28160 * tree-pass.h (pass_data::has_gate): Remove.
28161 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28162 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28163 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28164 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28165 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28166 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28167 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28168 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28169 gimple-low.c, gimple-ssa-isolate-paths.c,
28170 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28171 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
28172 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28173 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
28174 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
28175 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
28176 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
28177 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
28178 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
28179 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28180 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28181 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28182 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28183 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28184 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28185 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28186 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28187 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28188 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28189 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28190 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28191 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28194 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28196 * pass_manager.h (pass_manager::register_dump_files_1): Remove
28198 * passes.c (pass_manager::register_dump_files_1): Merge into
28199 (pass_manager::register_dump_files): this, and remove its handling of
28200 properties since the pass always has the properties anyway.
28201 (pass_manager::pass_manager): Adjust.
28203 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28205 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
28206 * passes.c (pass_manager::register_dump_files_1): Remove dead code
28207 dealing with properties.
28208 (pass_manager::register_dump_files): Adjust.
28210 2014-03-20 Mark Wielaard <mjw@redhat.com>
28212 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
28213 then represent the bound as normal constant value.
28215 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28218 Forward port from 4.8 branch
28219 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
28221 * config/i386/bmiintrin.h (_blsi_u32): New.
28222 (_blsi_u64): Ditto.
28223 (_blsr_u32): Ditto.
28224 (_blsr_u64): Ditto.
28225 (_blsmsk_u32): Ditto.
28226 (_blsmsk_u64): Ditto.
28227 (_tzcnt_u32): Ditto.
28228 (_tzcnt_u64): Ditto.
28230 2014-04-17 Kito Cheng <kito@0xlab.org>
28232 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
28234 2014-04-17 Richard Biener <rguenther@suse.de>
28236 PR middle-end/60849
28237 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
28238 boolean results for comparisons.
28240 2014-04-17 Richard Biener <rguenther@suse.de>
28242 PR tree-optimization/60836
28243 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
28244 initial PHI args to be gimple values.
28246 2014-04-17 Richard Biener <rguenther@suse.de>
28248 PR tree-optimization/60841
28249 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
28250 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
28251 of stmts to SLP build.
28252 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
28253 (vect_analyze_slp): Likewise.
28254 (vect_analyze_slp_instance): Likewise.
28255 (vect_build_slp_tree): Limit overall SLP tree growth.
28256 * tree-vectorizer.h (vect_analyze_data_refs,
28257 vect_analyze_slp): Adjust prototypes.
28259 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28261 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
28264 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28266 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
28267 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
28268 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
28269 for TARGET_SLOW_PSHUFB
28271 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28273 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
28274 * config/i386/i386.c (intel_cost): Ditto.
28276 2014-04-17 Joey Ye <joey.ye@arm.com>
28278 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
28280 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28282 * opts.c (common_handle_option): Disable -fipa-reference coorectly
28283 with -fuse-profile.
28285 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28287 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
28288 (type_all_derivations_known_p): New predicate.
28289 (type_all_ctors_visible_p): New predicate.
28290 (type_possibly_instantiated_p): New predicate.
28291 (get_odr_type): Compute all_derivations_known.
28292 (dump_odr_type): Dump the flag.
28293 (maybe_record_type): Cleanup.
28294 (record_target_from_binfo): Add bases_to_consider array;
28295 record bases for types w/o instances and skip CXX destructor.
28296 (possible_polymorphic_call_targets_1): Add bases_to_consider
28297 and consider_construction parameters; check if type may have instance.
28298 (get_polymorphic_call_info): Set maybe_in_construction to true
28299 when we know nothing.
28300 (record_targets_from_bases): Skip CXX destructors; they are
28301 never called for types in construction.
28302 (possible_polymorphic_call_targets): Do not record target when
28303 type may not have instance.
28305 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28308 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
28309 external aliases alive, too.
28311 2014-04-16 Andrew Pinski <apinski@cavium.com>
28313 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
28316 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
28318 * final.c (compute_alignments): Do not apply loop alignment to a block
28319 falling through to the exit.
28321 2014-04-16 Catherine Moore <clm@codesourcery.com>
28323 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
28324 Adjust constraints for microMIPS store patterns.
28326 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
28328 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
28330 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
28332 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
28333 (append_use): Run at -O0.
28334 (append_vdef): Likewise.
28335 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
28336 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
28338 2014-04-16 Jakub Jelinek <jakub@redhat.com>
28340 PR tree-optimization/60844
28341 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
28342 (propagate_op_to_single_use, remove_visited_stmt_chain,
28343 linearize_expr, repropagate_negates, reassociate_bb): Use it
28344 instead of gsi_remove.
28346 2014-04-16 Martin Jambor <mjambor@suse.cz>
28348 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
28349 ipa_transforms_to_apply.
28350 (cgraph_function_versioning): Assert that old_node has empty
28351 ipa_transforms_to_apply.
28352 * trans-mem.c (ipa_tm_create_version): Likewise.
28353 * tree-inline.c (tree_function_versioning): Do not duplicate
28354 ipa_transforms_to_apply.
28356 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28359 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
28361 Pass necessary as flags on 64-bit Solaris/x86.
28362 Use lowercase relocs for x86_64-*-*.
28363 * configure: Regenerate.
28365 2014-04-15 Jan Hubicka <jh@suse.cz>
28367 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
28368 (maybe_record_node, likely_target_p): Use it.
28370 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28373 Revert following patch
28375 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28378 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
28379 software floating point or no floating point registers, do not
28380 allow any type in the FPRs. Eliminate a test for SPE SIMD types
28381 in GPRs that occurs after we tested for GPRs that would never be
28384 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
28385 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
28386 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
28387 specifically allow DDmode, since that does not use the SPE SIMD
28390 2014-03-21 Mark Wielaard <mjw@redhat.com>
28392 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
28393 as unsigned or int depending on type and value used.
28395 2014-04-15 Richard Biener <rguenther@suse.de>
28397 PR rtl-optimization/56965
28398 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
28399 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
28401 * alias.c (true_dependence_1): Do not call
28402 nonoverlapping_component_refs_p.
28403 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
28404 nonoverlapping_component_refs_p.
28405 (indirect_refs_may_alias_p): Likewise.
28407 2014-04-15 Teresa Johnson <tejohnson@google.com>
28409 * cfg.c (dump_bb_info): Fix flags check.
28410 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
28412 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28414 PR rtl-optimization/60663
28415 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
28418 2014-04-15 Richard Biener <rguenther@suse.de>
28420 * lto-streamer.h (LTO_major_version): Bump to 4.
28422 2014-04-15 Richard Biener <rguenther@suse.de>
28424 * common.opt (lto_partition_model): New enum.
28425 (flto-partition=): Merge separate options with a single with argument,
28426 add -flto-partition=one support.
28427 * flag-types.h (enum lto_partition_model): Declare.
28428 * opts.c (finish_options): Remove duplicate -flto-partition=
28430 * lto-wrapper.c (run_gcc): Adjust.
28432 2014-04-15 Richard Biener <rguenther@suse.de>
28434 * alias.c (ncr_compar): New function.
28435 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
28437 2014-04-15 Richard Biener <rguenther@suse.de>
28439 * alias.c (record_component_aliases): Do not walk BINFOs.
28441 2014-04-15 Richard Biener <rguenther@suse.de>
28443 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28444 Add struct function argument and adjust.
28445 (find_func_aliases_for_call): Likewise.
28446 (find_func_aliases): Likewise.
28447 (find_func_clobbers): Likewise.
28448 (intra_create_variable_infos): Likewise.
28449 (compute_points_to_sets): Likewise.
28450 (ipa_pta_execute): Adjust. Do not push/pop cfun.
28452 2014-04-15 Richard Biener <rguenther@suse.de>
28454 * tree.c (iterative_hash_expr): Use enum tree_code_class
28455 to store TREE_CODE_CLASS.
28456 (tree_block): Likewise.
28457 (tree_set_block): Likewise.
28458 * tree.h (fold_build_pointer_plus_loc): Use
28459 convert_to_ptrofftype_loc.
28461 2014-04-15 Jakub Jelinek <jakub@redhat.com>
28464 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
28467 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
28469 * cfgloop.h (struct loop): Move force_vectorize down.
28470 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
28471 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
28472 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
28473 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
28474 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
28475 * tree-core.h (enum annot_expr_kind): Add new kind values.
28476 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
28477 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
28479 * tree.def (ANNOTATE_EXPR): Tweak comment.
28481 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
28483 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
28486 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
28488 * tree.h (TYPE_IDENTIFIER): Declare.
28489 * tree.c (subrange_type_for_debug_p): Use it.
28490 * godump.c (go_format_type): Likewise.
28491 * dwarf2out.c (is_cxx_auto, modified_type_die,
28492 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
28493 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
28495 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
28498 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
28500 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
28502 * config/i386/i386.c (examine_argument): Return bool. Return true if
28503 parameter should be passed in memory.
28504 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
28505 (construct_container): Update calls to examine_argument.
28506 (function_arg_advance_64): Ditto.
28507 (return_in_memory_32): Merge with ix86_return_in_memory.
28508 (return_in_memory_64): Ditto.
28509 (return_in_memory_ms_64): Ditto.
28511 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
28513 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
28514 * coverage.c (coverage_compute_profile_id): Handle externally visible
28517 2014-04-14 Martin Jambor <mjambor@suse.cz>
28519 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
28520 DECL_DISREGARD_INLINE_LIMITS functions.
28522 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
28525 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
28527 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
28530 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
28531 optimize_insn_for_speed_p instead of
28532 optimize_function_for_speed_p.
28534 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
28536 * doc/invoke.texi (free): Document AArch64.
28538 2014-04-14 Richard Biener <rguenther@suse.de>
28540 PR tree-optimization/60042
28541 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
28542 (insert_into_preds_of_block): Do not prevent PHI insertion
28543 for REFERENCE exprs here ...
28544 (eliminate_dom_walker::before_dom_children): ... but prevent
28545 their use here under similar conditions when applied to the
28546 IL after PRE optimizations.
28548 2014-04-14 Richard Biener <rguenther@suse.de>
28550 * passes.def: Move early points-to after early SRA.
28552 2014-04-14 Richard Biener <rguenther@suse.de>
28554 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
28555 check for which sign-changes we allow when forwarding
28556 a converted value into a switch.
28558 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
28560 * stor-layout.c (place_field): Finalize non-constant offset for the
28563 2014-04-14 Richard Biener <rguenther@suse.de>
28565 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
28567 (expand_switch_using_bit_tests_p): Likewise.
28568 (process_switch): Compute and pass on speed_p based on the
28570 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
28571 optimize_bb_for_speed_p.
28573 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
28575 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
28576 * function.h (struct function): Rename has_force_vect_loops into
28577 has_force_vectorize_loops.
28578 * lto-streamer-in.c (input_cfg): Adjust for renaming.
28579 (input_struct_function_base): Likewise.
28580 * lto-streamer-out.c (output_cfg): Likewise.
28581 (output_struct_function_base): Likewise.
28582 * omp-low.c (expand_omp_simd): Likewise.
28583 * tree-cfg.c (move_sese_region_to_fn): Likewise.
28584 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
28585 (version_loop_for_if_conversion): Likewise.
28586 (tree_if_conversion): Likewise.
28587 (main_tree_if_conversion): Likewise.
28588 (gate_tree_if_conversion): Likewise.
28589 * tree-inline.c (copy_loops): Likewise.
28590 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
28591 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
28592 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
28593 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
28594 * tree-vectorizer.c (vectorize_loops): Likewise.
28595 * tree-vectorizer.h (unlimited_cost_model): Likewise.
28597 2014-04-14 Richard Biener <rguenther@suse.de>
28600 * lto-streamer-out.c (wrap_refs): New function.
28601 (lto_output): Wrap symbol references in global initializes in
28602 type-preserving MEM_REFs.
28604 2014-04-14 Christian Bruel <christian.bruel@st.com>
28606 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
28608 2014-04-14 Christian Bruel <christian.bruel@st.com>
28610 * config/sh/sh.md (setmemqi): New expand pattern.
28611 * config/sh/sh.h (CLEAR_RATIO): Define.
28612 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
28613 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
28615 2014-04-14 Richard Biener <rguenther@suse.de>
28617 PR middle-end/55022
28618 * fold-const.c (negate_expr_p): Don't negate directional rounding
28620 (fold_negate_expr): Likewise.
28622 2014-04-14 Richard Biener <rguenther@suse.de>
28624 PR tree-optimization/59817
28625 PR tree-optimization/60453
28626 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
28627 recursion to catch all CHRECs in the scalar evolution and restrict
28628 the predicate for the remains appropriately.
28630 2014-04-12 Catherine Moore <clm@codesourcery.com>
28632 * config/mips/constraints.md: Add new register constraint "kb".
28633 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
28634 (*movhi_internal): Likewise.
28635 (*movqi_internal): Likewise.
28636 * config/mips/mips.h (M16_STORE_REGS): New register class.
28637 (REG_CLASS_NAMES): Add M16_STORE_REGS.
28638 (REG_CLASS_CONTENTS): Likewise.
28639 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
28641 2014-04-11 Tobias Burnus <burnus@net-b.de>
28644 * doc/invoke.texi (-Wformat-signedness): Document it.
28645 (Wformat=2): Mention that this enables -Wformat-signedness.
28647 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
28649 * common/config/epiphany/epiphany-common.c
28650 (epiphany_option_optimization_table): Enable section anchors by
28651 default at -O1 or higher.
28652 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
28653 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
28654 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
28655 carries no extra cost.
28656 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
28657 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
28658 * config/epiphany/predicates.md (memclob_operand): New predicate.
28659 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
28660 Use memclob_operand predicate and X constraint for operand 3.
28662 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
28664 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
28665 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
28668 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
28670 PR rtl-optimization/60651
28671 * mode-switching.c (optimize_mode_switching): Make sure to emit
28672 sets of a lower numbered entity before sets of a higher numbered
28673 entity to a mode of the same or lower priority.
28674 When creating a seginfo for a basic block that starts with a code
28675 label, move the insertion point past the code label.
28676 (new_seginfo): Document and enforce requirement that
28677 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
28678 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
28679 * doc/tm.texi: Regenerate.
28681 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
28684 * config/arc/arc.c (arc_save_restore): Fix assert typo.
28686 2013-04-11 Jakub Jelinek <jakub@redhat.com>
28688 * BASE-VER: Set to 4.10.0.
28690 2014-04-11 Tobias Burnus <burnus@net-b.de>
28693 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
28694 * doc/gcc.texi (Service): Update description in the @menu
28695 * doc/invoke.texi (Option Summary): Remove misplaced and
28698 2014-04-11 Steve Ellcey <sellcey@mips.com>
28699 Jakub Jelinek <jakub@redhat.com>
28701 PR middle-end/60556
28702 * expr.c (convert_move): Use emit_store_flag_force instead of
28703 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
28706 2014-04-11 Richard Biener <rguenther@suse.de>
28708 PR middle-end/60797
28709 * varasm.c (assemble_alias): Avoid endless error reporting
28710 recursion by setting TREE_ASM_WRITTEN.
28712 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28714 * config/s390/s390.md: Add a splitter for NOT rtx.
28716 2014-04-11 Jakub Jelinek <jakub@redhat.com>
28718 PR rtl-optimization/60663
28719 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
28721 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
28722 Jakub Jelinek <jakub@redhat.com>
28725 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
28726 flag from decl_node to node.
28728 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28731 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
28732 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
28733 ameliorating the cases where it can be.
28735 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
28738 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
28740 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28741 (loadsync_<mode>): Change mode.
28742 (load_quadpti, store_quadpti): New.
28743 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28744 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28745 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
28747 2014-04-09 Cong Hou <congh@google.com>
28750 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
28753 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28755 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
28756 instead of vnor to exploit possible fusion opportunity in the
28758 (altivec_expand_vec_perm_const_le): Likewise.
28760 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
28762 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28763 (loadsync_<mode>): Change mode.
28764 (load_quadpti, store_quadpti): New.
28765 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28766 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28768 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
28771 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
28772 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
28773 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
28775 2014-04-08 Richard Biener <rguenther@suse.de>
28777 PR middle-end/60706
28778 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
28779 a 64bit widest int print double-int similar to on HWI64 hosts.
28781 2014-04-08 Richard Biener <rguenther@suse.de>
28783 PR tree-optimization/60785
28784 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
28785 default defs properly.
28787 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
28789 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
28790 (Weffc++): Likewise.
28792 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
28794 * ipa-devirt.c (maybe_record_node): When node is not recorded,
28795 set completep to false rather than true.
28797 2014-04-07 Douglas B Rupp <rupp@adacore.com>
28800 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
28801 ARM_TARGET2_DWARF_FORMAT.
28803 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
28806 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
28807 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
28810 2014-04-07 Richard Biener <rguenther@suse.de>
28812 PR tree-optimization/60766
28813 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
28814 (may_eliminate_iv): Convert cand_value_at result to desired type.
28816 2014-04-07 Jason Merrill <jason@redhat.com>
28819 * common.opt (-fno-gnu-unique): Add.
28820 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
28822 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28824 * haifa-sched.c: Fix outdated function reference and minor
28825 grammar errors in introductory comment.
28827 2014-04-07 Richard Biener <rguenther@suse.de>
28829 PR middle-end/60750
28830 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
28831 for noreturn calls.
28832 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
28834 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
28837 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
28838 size accounting for thunks.
28839 (pa_asm_output_mi_thunk): Use final_start_function() and
28840 final_end_function() to output function start and end directives.
28842 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
28844 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
28845 device specific ISA/ feature information. Remove short_sp and
28846 errata_skip ds. Add avr_device_specific_features enum to have device
28848 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
28849 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
28850 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
28851 updated device specific info.
28852 * config/avr/avr-mcus.def: Merge device specific details to
28853 dev_attribute field.
28854 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
28856 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
28857 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
28858 assembler if RMW isa supported by current device.
28859 * config/avr/genmultilib.awk: Update as device info structure changed.
28860 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
28862 2014-04-04 Cong Hou <congh@google.com>
28864 PR tree-optimization/60656
28865 * tree-vect-stmts.c (supportable_widening_operation):
28866 Fix a bug that elements in a vector with vect_used_by_reduction
28867 property are incorrectly reordered when the operation on it is not
28868 consistant with the one in reduction operation.
28870 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
28872 PR rtl-optimization/60155
28873 * gcse.c (record_set_data): New function.
28874 (single_set_gcse): New function.
28875 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
28876 (hoist_code): Likewise.
28877 (get_pressure_class_and_nregs): Likewise.
28879 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
28881 * explow.c (probe_stack_range): Emit a final optimization blockage.
28883 2014-04-04 Anthony Green <green@moxielogic.com>
28885 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
28888 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
28891 * lto-cgraph.c (input_overwrite_node): Check that partitioning
28892 flags are set only during streaming.
28893 * ipa.c (process_references, walk_polymorphic_call_targets,
28894 symtab_remove_unreachable_nodes): Drop bodies of always inline
28895 after early inlining.
28896 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
28898 2014-04-04 Jakub Jelinek <jakub@redhat.com>
28899 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28902 * dwarf2out.c (const_ok_for_output_1): Reject expressions
28905 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28908 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
28910 (cortex_a53_fdivd): Likewise.
28912 2014-04-04 Martin Jambor <mjambor@suse.cz>
28915 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
28916 Adjust all callers.
28917 * cgraph.c (clone_of_p): Also return true if thunks match.
28918 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
28919 cgraph_function_or_thunk_node and an obsolete comment.
28920 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
28922 (build_function_decl_skip_args): Likewise.
28923 (set_new_clone_decl_and_node_flags): New function.
28924 (duplicate_thunk_for_node): Likewise.
28925 (redirect_edge_duplicating_thunks): Likewise.
28926 (cgraph_clone_node): New parameter args_to_skip, pass it to
28927 redirect_edge_duplicating_thunks which is called instead of
28928 cgraph_redirect_edge_callee.
28929 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
28930 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
28932 2014-04-04 Jeff Law <law@redhat.com>
28935 * config/arm/predicates.md (const_int_I_operand): New predicate.
28936 (const_int_M_operand): Similarly.
28937 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
28939 (insv_t2, extv_reg, extzv_t2): Likewise.
28940 (load_multiple_with_writeback): Similarly for const_int_I_operand.
28941 (pop_multiple_with_writeback_and_return): Likewise.
28942 (vfp_pop_multiple_with_writeback): Likewise
28944 2014-04-04 Richard Biener <rguenther@suse.de>
28947 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
28948 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
28950 * gimplify.h (gimple_add_tmp_var_fn): Declare.
28951 * gimplify.c (gimple_add_tmp_var_fn): New function.
28952 * gimple-expr.h (create_tmp_reg_fn): Declare.
28953 * gimple-expr.c (create_tmp_reg_fn): New function.
28954 * gimple-low.c (record_vars_into): Don't change cfun.
28955 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
28956 code generation without cfun.
28958 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
28961 * Makefile.in (install-driver): Fix shell scripting.
28963 2014-04-03 Cong Hou <congh@google.com>
28965 PR tree-optimization/60505
28966 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
28967 threshold of number of iterations below which no vectorization
28969 * tree-vect-loop.c (new_loop_vec_info):
28970 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
28971 * tree-vect-loop.c (vect_analyze_loop_operations):
28972 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
28973 * tree-vect-loop.c (vect_transform_loop):
28974 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
28975 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
28976 of iterations of the loop and see if we should build the epilogue.
28978 2014-04-03 Richard Biener <rguenther@suse.de>
28980 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
28981 (streamer_tree_cache_create): Adjust.
28982 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
28983 to allow optional nodes array.
28984 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
28985 (streamer_tree_cache_append): Likewise.
28986 (streamer_tree_cache_create): Create nodes array optionally
28987 as specified by parameter.
28988 * lto-streamer-out.c (create_output_block): Avoid maintaining
28989 the node array in the writer cache.
28990 (DFS_write_tree): Remove assertion.
28991 (produce_asm_for_decls): Free the out decl state hash table early.
28992 * lto-streamer-in.c (lto_data_in_create): Adjust for
28993 streamer_tree_cache_create prototype change.
28995 2014-04-03 Richard Biener <rguenther@suse.de>
28997 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
28998 set TREE_CHAIN to NULL_TREE.
29000 2014-04-03 Richard Biener <rguenther@suse.de>
29002 PR tree-optimization/60740
29003 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29004 over all GIMPLE_COND operands.
29006 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
29008 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29009 (Weffc++): Remove Scott's numbering, merge lists and reference
29012 2014-04-03 Nick Clifton <nickc@redhat.com>
29014 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29017 2014-04-03 Martin Jambor <mjambor@suse.cz>
29019 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29020 mention gcc_unreachable before failing.
29021 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29024 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
29027 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29028 inconsistent code and instead mark the context inconsistent.
29029 (possible_polymorphic_call_targets): For inconsistent contexts
29030 return empty complete list.
29032 2014-04-02 Anthony Green <green@moxielogic.com>
29034 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29035 (extendqisi2, extendhisi2): Define.
29036 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29037 (WCHAR_TYPE): Change to unsigned int.
29039 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29041 PR tree-optimization/60733
29042 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29043 insertion point for PHI candidates to be the end of the feeding
29044 block for the PHI argument.
29046 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
29048 PR rtl-optimization/60650
29049 * lra-constraints.c (process_alt_operands): Decrease reject for
29050 earlyclobber matching.
29052 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29054 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29056 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29058 * config/spu/spu.c (pad_bb): Do not crash when the last
29059 insn is CODE_FOR_blockage.
29061 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29063 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29064 lies outside the target mode.
29066 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29069 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29070 software floating point or no floating point registers, do not
29071 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29072 in GPRs that occurs after we tested for GPRs that would never be
29075 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29076 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29077 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29078 specifically allow DDmode, since that does not use the SPE SIMD
29081 2014-04-02 Richard Biener <rguenther@suse.de>
29083 PR middle-end/60729
29084 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29085 MODE_INTs. Properly use negv_optab.
29086 (expand_abs): Likewise.
29088 2014-04-02 Richard Biener <rguenther@suse.de>
29091 * Makefile.in (install-driver): Guard extra installs with special
29094 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29096 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29097 Document vec_vgbbd.
29099 2014-04-01 Richard Henderson <rth@redhat.com>
29102 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29103 alternative enabled before register allocation.
29105 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
29107 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29108 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29110 (nios2_large_got_address): Remove unneeded 'sym' parameter.
29111 (nios2_got_address): Update nios2_large_got_address call site.
29112 (nios2_delegitimize_address): New function.
29113 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29114 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29115 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29117 2014-04-01 Martin Husemann <martin@duskware.de>
29119 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29122 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
29124 PR rtl-optimization/60604
29125 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29126 check from register_operand.
29127 (register_operand): Redefine in terms of general_operand.
29128 (nonmemory_operand): Use register_operand for the non-constant cases.
29130 2014-04-01 Richard Biener <rguenther@suse.de>
29132 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29134 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
29136 * doc/invoke.texi (mapp-regs): Clarify.
29138 2014-03-31 Ulrich Drepper <drepper@gmail.com>
29140 * config/i386/avx512fintrin.h (__v32hi): Define type.
29141 (__v64qi): Likewise.
29142 (_mm512_set1_epi8): Define.
29143 (_mm512_set1_epi16): Define.
29144 (_mm512_set4_epi32): Define.
29145 (_mm512_set4_epi64): Define.
29146 (_mm512_set4_pd): Define.
29147 (_mm512_set4_ps): Define.
29148 (_mm512_setr4_epi64): Define.
29149 (_mm512_setr4_epi32): Define.
29150 (_mm512_setr4_pd): Define.
29151 (_mm512_setr4_ps): Define.
29152 (_mm512_setzero_epi32): Define.
29154 2014-03-31 Martin Jambor <mjambor@suse.cz>
29156 PR middle-end/60647
29157 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29158 callsite_arguments_match_p. Updated all callers. Also check types of
29159 corresponding formal parameters and actual arguments.
29160 (not_all_callers_have_enough_arguments_p) Renamed to
29161 some_callers_have_mismatched_arguments_p.
29163 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
29165 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
29167 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
29170 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
29173 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
29175 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
29176 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
29178 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
29179 Use FMAMODE_NOVF512 mode iterator.
29180 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
29181 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
29182 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
29183 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
29185 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
29186 Use VF_128_256 mode iterator.
29187 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
29190 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29192 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
29193 static chain if needed.
29195 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29198 * lra-constraints.c (index_part_to_reg): New.
29199 (process_address): Use it.
29201 2014-03-27 Jeff Law <law@redhat.com>
29202 Jakub Jelinek <jakub@redhat.com>
29205 * expr.c (do_tablejump): Use simplify_gen_binary rather than
29206 gen_rtx_{PLUS,MULT} to build up the address expression.
29208 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
29209 creating non-canonical RTL.
29211 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29214 * ipa-inline.c (want_inline_small_function_p): Short circuit large
29215 functions; reorganize to make cheap checks first.
29216 (inline_small_functions): Do not estimate growth when dumping;
29218 * ipa-inline.h (inline_summary): Add min_size.
29219 (growth_likely_positive): New function.
29220 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
29221 (set_cond_stmt_execution_predicate): Cleanup.
29222 (estimate_edge_size_and_time): Compute min_size.
29223 (estimate_calls_size_and_time): Likewise.
29224 (estimate_node_size_and_time): Likewise.
29225 (inline_update_overall_summary): Update min_size.
29226 (do_estimate_edge_time): Likewise.
29227 (do_estimate_edge_size): Update.
29228 (do_estimate_edge_hints): Update.
29229 (growth_likely_positive): New function.
29231 2014-03-28 Jakub Jelinek <jakub@redhat.com>
29234 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
29235 also if addr has VOIDmode.
29237 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29239 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
29240 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
29242 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
29243 instructions as well as AdvancedSIMD loads.
29245 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29247 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
29248 Use crypto_aese type.
29249 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
29250 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
29251 crypto_aese, crypto_aesmc. Move to types.md.
29252 * config/arm/types.md (crypto_aes): Split into crypto_aese,
29254 * config/arm/iterators.md (crypto_type): Likewise.
29256 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29258 * cgraph.c: Include expr.h and tree-dfa.h.
29259 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
29262 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29265 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
29266 regs from checking multi-reg pseudos.
29268 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29270 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
29272 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29274 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
29275 if it would clobber the stack pointer, even temporarily.
29277 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
29279 * mode-switching.c: Make small adjustments to the top comment.
29281 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
29283 * config/rs6000/constraints.md (wD constraint): New constraint to
29284 match the constant integer to get the top DImode/DFmode out of a
29285 vector in a VSX register.
29287 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
29288 match the constant integer to get the top DImode/DFmode out of a
29289 vector in a VSX register.
29291 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
29294 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29297 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29298 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
29300 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
29301 Optimize vec_extract of 64-bit values, where the value being
29302 extracted is in the top word, where we can use scalar
29303 instructions. Add direct move and store support. Combine the big
29304 endian/little endian vector select load support into a single insn.
29305 (vsx_extract_<mode>_internal1): Likewise.
29306 (vsx_extract_<mode>_internal2): Likewise.
29307 (vsx_extract_<mode>_load): Likewise.
29308 (vsx_extract_<mode>_store): Likewise.
29309 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
29310 combined into vsx_extract_<mode>_load.
29311 (vsx_extract_<mode>_one_le): Likewise.
29313 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
29314 define the top 64-bit vector element.
29316 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
29319 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29320 Document vec_vbpermq builtin.
29323 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
29324 enable use of xxsldwi and xxpermdi builtin functions.
29325 (vec_xxpermdi): Likewise.
29327 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29328 Document use of vec_xxsldwi and vec_xxpermdi builtins.
29330 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
29332 PR rtl-optimization/60650
29333 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
29335 (find_spills_for): New.
29336 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
29337 Spill all pseudos on the second iteration.
29339 2014-03-27 Marek Polacek <polacek@redhat.com>
29342 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
29345 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29347 * config/s390/s390.c (s390_can_use_return_insn): Check for
29348 call-saved FPRs on 31 bit.
29350 2014-03-27 Jakub Jelinek <jakub@redhat.com>
29352 PR middle-end/60682
29353 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
29354 if they need regimplification, just drop them instead of
29355 calling gimple_regimplify_operands on them.
29357 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
29360 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
29361 (aarch64_frame_pointer_required): Adjust logic.
29362 (aarch64_can_eliminate): Adjust logic.
29363 (aarch64_override_options_after_change): Adjust logic.
29365 2014-03-27 Dehao Chen <dehao@google.com>
29367 * ipa-inline.c (early_inliner): Update node's inline info.
29369 2014-03-26 Dehao Chen <dehao@google.com>
29371 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
29372 compiler inserted conditional jumps for NAN float check.
29374 2014-03-26 Jakub Jelinek <jakub@redhat.com>
29376 * ubsan.h (ubsan_create_data): Change second argument's type
29377 to const location_t *.
29378 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
29380 (ubsan_create_data): Change second argument to const location_t *PLOC.
29381 Create Loc field whenever PLOC is non-NULL.
29382 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
29383 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
29387 * real.c (real_to_integer2): Change type of low to UHWI.
29389 2014-03-26 Tobias Burnus <burnus@net-b.de>
29391 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
29392 (CILK_SELF_SPECS): New define.
29393 (driver_self_specs): Use it.
29395 2014-03-26 Richard Biener <rguenther@suse.de>
29397 * tree-pretty-print.c (percent_K_format): Implement special
29398 case for LTO and its stripped down BLOCK tree.
29400 2014-03-26 Jakub Jelinek <jakub@redhat.com>
29403 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
29405 * tree-vrp.c (simplify_internal_call_using_ranges): If only
29406 one range is range_int_cst_p, but not both, at least optimize
29407 addition/subtraction of 0 and multiplication by 0 or 1.
29408 * gimple-fold.c (gimple_fold_call): Fold
29409 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
29410 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
29411 INTEGER_CSTs, try to fold at least x * 0 and y - y.
29413 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
29415 PR rtl-optimization/60452
29416 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
29417 <case REG>: Return 1 for invalid offsets from the frame pointer.
29419 2014-03-26 Marek Polacek <polacek@redhat.com>
29422 * doc/extend.texi (C Extensions): Mention variable-length arrays in
29425 2014-03-26 Marek Polacek <polacek@redhat.com>
29428 * doc/extend.texi (Designated Inits): Describe what happens to omitted
29431 2014-03-26 Marek Polacek <polacek@redhat.com>
29434 * ira-color.c (update_conflict_hard_regno_costs): Perform the
29435 multiplication in unsigned type.
29437 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
29439 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
29441 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
29443 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
29445 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
29448 * cif-code.def (UNREACHABLE) New code.
29449 * ipa-inline.c (inline_small_functions): Skip edges to
29450 __builtlin_unreachable.
29451 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
29452 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
29453 predicate to __bulitin_unreachable.
29454 (set_cond_stmt_execution_predicate): Fix issue when
29455 invert_tree_comparison returns ERROR_MARK.
29456 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
29457 propagate to inline clones.
29458 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
29460 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
29461 * cgraphclones.c (cgraph_clone_node): If call destination is already
29462 ureachable, do not redirect it back.
29463 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
29466 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
29468 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
29469 Do not modify inline clones.
29471 2014-03-25 Jakub Jelinek <jakub@redhat.com>
29473 * config/i386/i386.md (general_sext_operand): New mode attr.
29474 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
29475 don't generate (sign_extend (const_int)).
29476 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
29477 operands[2]. Use We constraint instead of <i> and
29478 <general_sext_operand> predicate instead of <general_operand>.
29479 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
29480 * config/i386/constraints.md (We): New constraint.
29481 * config/i386/predicates.md (x86_64_sext_operand,
29482 sext_operand): New predicates.
29484 2014-03-25 Martin Jambor <mjambor@suse.cz>
29487 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
29488 inconsistent devirtualizations to __builtin_unreachable.
29490 2014-03-25 Marek Polacek <polacek@redhat.com>
29493 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
29495 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
29497 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
29498 order of elements for big-endian.
29500 2014-03-25 Richard Biener <rguenther@suse.de>
29502 PR middle-end/60635
29503 * gimplify-me.c (gimple_regimplify_operands): Update the
29506 2014-03-25 Martin Jambor <mjambor@suse.cz>
29509 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
29510 (lto_output_varpool_node): Likewise.
29511 (input_overwrite_node): Likewise.
29512 (input_varpool_node): Likewise.
29514 2014-03-25 Richard Biener <rguenther@suse.de>
29516 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
29517 (run_gcc): Likewise.
29519 2014-03-25 Jakub Jelinek <jakub@redhat.com>
29521 * combine.c (simplify_compare_const): Add MODE argument.
29522 Handle mode_width 0 as very large mode_width.
29523 (try_combine, simplify_comparison): Adjust callers.
29525 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
29526 type to avoid signed integer overflow.
29527 * explow.c (plus_constant): Likewise.
29529 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
29531 * doc/generic.texi: Correct typos.
29533 2014-03-24 Tobias Burnus <burnus@net-b.de>
29535 * doc/invoke.texi (-flto): Expand section about
29536 using static libraries with LTO.
29538 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29540 PR rtl-optimization/60501
29541 * optabs.def (addptr3_optab): New optab.
29542 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
29543 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
29544 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
29546 * lra.c (emit_add3_insn): Use the addptr pattern if available.
29548 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
29550 2014-03-24 Ulrich Drepper <drepper@gmail.com>
29552 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
29555 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
29556 (_mm256_undefined_ps): Define.
29557 (_mm256_undefined_pd): Define.
29558 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
29559 (_mm_undefined_pd): Define.
29560 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
29561 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
29562 (_mm512_undefined_ps): Define.
29563 (_mm512_undefined_pd): Define.
29564 Use _mm*_undefined_*.
29565 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
29567 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
29569 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
29570 (lshr_simd): DI mode added.
29571 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
29572 (aarch64_ushr_simddi): Likewise.
29573 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
29574 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
29575 (vshrd_n_u64): Likewise.
29577 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29579 * Makefile.in (s-macro_list): Depend on cc1.
29581 2014-03-23 Teresa Johnson <tejohnson@google.com>
29583 * ipa-utils.c (ipa_print_order): Use specified dump file.
29585 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
29587 PR rtl-optimization/60601
29588 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
29590 * gcc.c (eval_spec_function): Initialize save_growing_value.
29592 2014-03-22 Jakub Jelinek <jakub@redhat.com>
29595 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
29596 code == MINUS_EXPR, never swap op0 with op1.
29598 * toplev.c (init_local_tick): Avoid signed integer multiplication
29600 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
29601 shift by first operand's bitsize.
29603 2014-03-21 Jakub Jelinek <jakub@redhat.com>
29606 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
29607 redefine to 1 or 0.
29608 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
29609 TARGET_ISA_64BIT_P(x).
29611 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29613 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
29614 pattern for vector nor instead of subtract from splat(-1).
29615 (altivec_expand_vec_perm_const_le): Likewise.
29617 2014-03-21 Richard Henderson <rth@twiddle.net>
29620 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
29621 related insns after epilogue_completed.
29623 2014-03-21 Martin Jambor <mjambor@suse.cz>
29626 * cgraph.h (symtab_node): New flag body_removed.
29627 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
29628 when removing bodies.
29629 * symtab.c (dump_symtab_base): Dump body_removed flag.
29630 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
29631 had their bodies removed.
29633 2014-03-21 Martin Jambor <mjambor@suse.cz>
29636 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
29639 2014-03-21 Richard Biener <rguenther@suse.de>
29641 PR tree-optimization/60577
29642 * tree-core.h (struct tree_base): Document nothrow_flag use
29643 in DECL_NONALIASED.
29644 * tree.h (DECL_NONALIASED): New.
29645 (may_be_aliased): Adjust.
29646 * coverage.c (build_var): Set DECL_NONALIASED.
29648 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
29650 * expr.c (expand_expr_real_1): Remove outdated comment.
29652 2014-03-20 Jakub Jelinek <jakub@redhat.com>
29654 PR middle-end/60597
29655 * ira.c (adjust_cleared_regs): Call copy_rtx on
29656 *reg_equiv[REGNO (loc)].src_p before passing it to
29657 simplify_replace_fn_rtx.
29660 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
29661 into CONST, put pic register as first operand of PLUS. Use
29662 gen_const_mem for both 32-bit and 64-bit PIC got loads.
29664 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29666 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
29668 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
29670 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
29671 around for store forwarding issue in the FPU on the UT699.
29672 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
29673 loads and operations if -mfix-ut699 is specified.
29674 (divtf3_hq): Tweak attribute.
29675 (sqrttf2_hq): Likewise.
29677 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
29679 * calls.c (store_one_arg): Remove incorrect const qualification on the
29680 type of the temporary.
29681 * cfgexpand.c (expand_return): Likewise.
29682 * expr.c (expand_constructor): Likewise.
29683 (expand_expr_real_1): Likewise.
29685 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29687 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
29690 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
29693 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
29695 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
29697 * config/arm/aarch-common-protos.h
29698 (alu_cost_table): Fix spelling of "extend".
29699 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
29701 2014-03-19 Richard Biener <rguenther@suse.de>
29703 PR middle-end/60553
29704 * tree-core.h (tree_type_common): Re-order pointer members
29705 to reduce recursion depth during GC walks.
29707 2014-03-19 Marek Polacek <polacek@redhat.com>
29710 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
29711 before accessing it.
29713 2014-03-19 Richard Biener <rguenther@suse.de>
29716 * lto-streamer-in.c (input_function): In WPA stage do not drop
29719 2014-03-19 Jakub Jelinek <jakub@redhat.com>
29721 PR tree-optimization/60559
29722 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
29723 with build_zero_cst assignment.
29725 2014-03-18 Kai Tietz <ktietz@redhat.com>
29727 PR rtl-optimization/56356
29728 * sdbout.c (sdbout_parms): Verify that parms'
29729 incoming argument is valid.
29730 (sdbout_reg_parms): Likewise.
29732 2014-03-18 Richard Henderson <rth@redhat.com>
29735 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
29736 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
29737 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
29739 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
29741 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
29742 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
29743 Italicize plugin event names in description. Explain that
29744 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
29745 Remind that no GCC functions should be called after PLUGIN_FINISH.
29746 Explain what pragmas with expansion are.
29748 2014-03-18 Martin Liska <mliska@suse.cz>
29750 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
29751 gimple call statement is update.
29752 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
29753 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
29755 2014-03-18 Jakub Jelinek <jakub@redhat.com>
29758 * ubsan.c (ubsan_instrument_unreachable): Call
29759 initialize_sanitizer_builtins.
29760 (ubsan_pass): Likewise.
29763 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
29764 varpool_finalize_decl instead of rest_of_decl_compilation.
29766 2014-03-18 Richard Biener <rguenther@suse.de>
29768 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
29769 by using bitmap_and_compl instead of bitmap_and_compl_into.
29770 (df_rd_transfer_function): Likewise.
29772 2014-03-18 Richard Biener <rguenther@suse.de>
29774 * doc/lto.texi (fresolution): Fix typo.
29776 2014-03-18 Richard Biener <rguenther@suse.de>
29778 * doc/invoke.texi (flto): Update for changes in 4.9.
29780 2014-03-18 Richard Biener <rguenther@suse.de>
29782 * doc/loop.texi: Remove section on the removed lambda framework.
29783 Update loop docs with recent changes in preserving loop structure.
29785 2014-03-18 Richard Biener <rguenther@suse.de>
29787 * doc/lto.texi (-fresolution): Document.
29789 2014-03-18 Richard Biener <rguenther@suse.de>
29791 * doc/contrib.texi: Adjust my name.
29793 2014-03-18 Jakub Jelinek <jakub@redhat.com>
29796 * internal-fn.c: Include diagnostic-core.h.
29797 (expand_BUILTIN_EXPECT): New function.
29798 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
29799 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
29800 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
29801 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
29802 IFN_BUILTIN_EXPECT.
29803 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
29804 Revert 3 argument __builtin_expect code.
29805 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
29806 * gimple-fold.c (gimple_fold_call): Likewise.
29807 * tree.h (fold_builtin_expect): New prototype.
29808 * builtins.c (build_builtin_expect_predicate): Add predictor
29809 argument, if non-NULL, create 3 argument __builtin_expect.
29810 (fold_builtin_expect): No longer static. Add ARG2 argument,
29811 pass it through to build_builtin_expect_predicate.
29812 (fold_builtin_2): Adjust caller.
29813 (fold_builtin_3): Handle BUILT_IN_EXPECT.
29814 * internal-fn.def (BUILTIN_EXPECT): New.
29816 2014-03-18 Tobias Burnus <burnus@net-b.de>
29819 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
29820 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
29821 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
29823 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
29826 * predict.c (combine_predictions_for_bb): Fix up formatting.
29827 (expr_expected_value_1, expr_expected_value): Add predictor argument,
29828 fill what it points to if non-NULL.
29829 (tree_predict_by_opcode): Adjust caller, use the predictor.
29830 * predict.def (PRED_COMPARE_AND_SWAP): Add.
29832 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
29834 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
29835 proper constant for the store mode.
29837 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
29839 * symtab.c (change_decl_assembler_name): Fix transparent alias
29840 chain construction.
29842 2014-03-16 Renlin Li <Renlin.Li@arm.com>
29844 * config/aarch64/aarch64.c: Correct the comments about the
29845 aarch64 stack layout.
29847 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
29849 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
29850 check for GF_OMP_FOR_KIND_FOR.
29852 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29854 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
29855 ymm and zmm register names.
29857 2014-03-17 Jakub Jelinek <jakub@redhat.com>
29860 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
29861 note creation for the 2010-08-31 changes.
29863 2014-03-17 Marek Polacek <polacek@redhat.com>
29865 PR middle-end/60534
29866 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
29867 as -fno-tree-loop-vectorize.
29868 (expand_omp_simd): Likewise.
29870 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
29872 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
29873 (eligible_for_call_delay): New prototype.
29874 * config/sparc/sparc.c (tls_call_delay): Rename into...
29875 (eligible_for_call_delay): ...this. Return false if the instruction
29876 cannot be put in the delay slot of a branch.
29877 (eligible_for_restore_insn): Simplify.
29878 (eligible_for_return_delay): Return false if the instruction cannot be
29879 put in the delay slot of a branch and simplify.
29880 (eligible_for_sibcall_delay): Return false if the instruction cannot be
29881 put in the delay slot of a branch.
29882 * config/sparc/sparc.md (fix_ut699): New attribute.
29883 (tls_call_delay): Delete.
29884 (in_call_delay): Reimplement.
29885 (eligible_for_sibcall_delay): Rename into...
29886 (in_sibcall_delay): ...this.
29887 (eligible_for_return_delay): Rename into...
29888 (in_return_delay): ...this.
29889 (in_branch_delay): Reimplement.
29890 (in_uncond_branch_delay): Delete.
29891 (in_annul_branch_delay): Delete.
29893 2014-03-14 Richard Henderson <rth@redhat.com>
29896 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
29897 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
29898 (*floathi<X87MODEF>2_i387_with_temp): Remove.
29899 (floathi splitters): Remove.
29900 (float<SWI48x>xf2): New pattern.
29901 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
29902 code that tried to handle DImode for 32-bit, but which was excluded
29903 by the pattern's condition. Drop allocation of stack temporary.
29904 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
29905 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
29906 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
29907 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
29908 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
29909 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
29910 (*float<SWI48><MODEF>2_sse_interunit): Remove.
29911 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
29912 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
29913 (*float<SWI48x><X87MODEF>2_i387): Remove.
29914 (all float _with_temp splitters): Remove.
29915 (*float<SWI48x><MODEF>2_i387): New pattern.
29916 (*float<SWI48><MODEF>2_sse): New pattern.
29917 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
29918 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
29920 2014-03-14 Jakub Jelinek <jakub@redhat.com>
29921 Marek Polacek <polacek@redhat.com>
29923 PR middle-end/60484
29924 * common.opt (dump_base_name_prefixed): New Variable.
29925 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
29926 if x_dump_base_name_prefixed is already set, set it at the end.
29928 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
29930 PR rtl-optimization/60508
29931 * lra-constraints.c (get_reload_reg): Add new parameter
29933 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
29934 Pass the new parameter values.
29936 2014-03-14 Richard Biener <rguenther@suse.de>
29938 * common.opt: Revert unintented changes from r205065.
29939 * opts.c: Likewise.
29941 2014-03-14 Richard Biener <rguenther@suse.de>
29943 PR middle-end/60518
29944 * cfghooks.c (split_block): Properly adjust all loops the
29945 block was a latch of.
29947 2014-03-14 Martin Jambor <mjambor@suse.cz>
29950 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
29953 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
29956 * config/avr/avr.c (avr_set_current_function): Pass function name
29957 through default_strip_name_encoding before sanity checking instead
29958 of skipping the first char of the assembler name.
29960 2014-03-13 Richard Henderson <rth@redhat.com>
29963 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
29964 (ix86_force_to_memory, ix86_free_from_memory): Remove.
29965 * config/i386/i386-protos.h: Likewise.
29966 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
29967 in the expander instead of a splitter.
29968 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
29969 any possibility of requiring a memory.
29970 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
29971 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
29972 (fp branch splitters): Update for ix86_split_fp_branch.
29973 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
29974 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
29975 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
29976 (*fop_<MODEF>_2_i387): Remove f/r alternative.
29977 (*fop_<MODEF>_3_i387): Likewise.
29978 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
29979 (splitters for the fop_* register patterns): Remove.
29980 (fscalexf4_i387): Rename from *fscalexf4_i387.
29981 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
29983 2014-03-13 Jakub Jelinek <jakub@redhat.com>
29985 PR tree-optimization/59779
29986 * tree-dfa.c (get_ref_base_and_extent): Use double_int
29987 type for bitsize and maxsize instead of HOST_WIDE_INT.
29989 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
29991 PR rtl-optimization/57320
29992 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
29993 the CFG after thread_prologue_and_epilogue_insns.
29995 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
29997 PR rtl-optimization/57189
29998 * lra-constraints.c (process_alt_operands): Disfavor spilling
30001 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
30003 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30005 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30007 PR tree-optimization/59025
30008 PR middle-end/60418
30009 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30010 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30012 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
30015 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30016 calls of avr_out_plus_1.
30018 2014-03-13 Bin Cheng <bin.cheng@arm.com>
30020 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30021 BB's single pred and update the father loop's latch info later.
30023 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30025 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30029 (VEC_base): Likewise.
30030 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30031 registers, we need to swap double words in little endian mode.
30033 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30034 to be a container mode for 128-bit integer operations added in ISA
30035 2.07. Unlike TImode and PTImode, the preferred register set is
30036 the Altivec/VMX registers for the 128-bit operations.
30038 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30040 (rs6000_split_128bit_ok_p): Likewise.
30042 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30043 macros for creating ISA 2.07 normal and overloaded builtin
30044 functions with 3 arguments.
30045 (BU_P8V_OVERLOAD_3): Likewise.
30046 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30047 for use as overloaded functions.
30048 (VPERM_1TI_UNS): Likewise.
30049 (VSEL_1TI): Likewise.
30050 (VSEL_1TI_UNS): Likewise.
30051 (ST_INTERNAL_1ti): Likewise.
30052 (LD_INTERNAL_1ti): Likewise.
30053 (XXSEL_1TI): Likewise.
30054 (XXSEL_1TI_UNS): Likewise.
30055 (VPERM_1TI): Likewise.
30056 (VPERM_1TI_UNS): Likewise.
30057 (XXPERMDI_1TI): Likewise.
30058 (SET_1TI): Likewise.
30059 (LXVD2X_V1TI): Likewise.
30060 (STXVD2X_V1TI): Likewise.
30061 (VEC_INIT_V1TI): Likewise.
30062 (VEC_SET_V1TI): Likewise.
30063 (VEC_EXT_V1TI): Likewise.
30064 (EQV_V1TI): Likewise.
30065 (NAND_V1TI): Likewise.
30066 (ORC_V1TI): Likewise.
30067 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30068 added in ISA 2.07. Add both normal 'altivec' builtins, and the
30069 overloaded builtin.
30070 (VADDUQM): Likewise.
30071 (VSUBCUQ): Likewise.
30072 (VADDEUQM): Likewise.
30073 (VADDECUQ): Likewise.
30074 (VSUBEUQM): Likewise.
30075 (VSUBECUQ): Likewise.
30077 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30078 __int128_t and __uint128_t types.
30079 (__uint128_type): Likewise.
30080 (altivec_categorize_keyword): Add support for vector __int128_t,
30081 vector __uint128_t, vector __int128, and vector unsigned __int128
30082 as a container type for TImode operations that need to be done in
30083 VSX/Altivec registers.
30084 (rs6000_macro_to_expand): Likewise.
30085 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30086 to support 128-bit integer instructions vaddcuq, vadduqm,
30087 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30088 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30090 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30091 for V1TImode, and set up preferences to use VSX/Altivec registers.
30092 Setup VSX reload handlers.
30093 (rs6000_debug_reg_global): Likewise.
30094 (rs6000_init_hard_regno_mode_ok): Likewise.
30095 (rs6000_preferred_simd_mode): Likewise.
30096 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30097 (easy_altivec_constant): Likewise.
30098 (output_vec_const_move): Likewise.
30099 (rs6000_expand_vector_set): Convert V1TImode set and extract to
30101 (rs6000_expand_vector_extract): Likewise.
30102 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30104 (rs6000_const_vec): Add support for V1TImode.
30105 (rs6000_emit_le_vsx_load): Swap double words when loading or
30106 storing TImode/V1TImode.
30107 (rs6000_emit_le_vsx_store): Likewise.
30108 (rs6000_emit_le_vsx_move): Likewise.
30109 (rs6000_emit_move): Add support for V1TImode.
30110 (altivec_expand_ld_builtin): Likewise.
30111 (altivec_expand_st_builtin): Likewise.
30112 (altivec_expand_vec_init_builtin): Likewise.
30113 (altivec_expand_builtin): Likewise.
30114 (rs6000_init_builtins): Add support for V1TImode type. Add
30115 support for ISA 2.07 128-bit integer builtins. Define type names
30116 for the VSX/Altivec vector types.
30117 (altivec_init_builtins): Add support for overloaded vector
30118 functions with V1TImode type.
30119 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30120 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30122 (rs6000_split_128bit_ok_p): Likewise.
30123 (rs6000_handle_altivec_attribute): Create V1TImode from vector
30124 __int128_t and vector __uint128_t.
30126 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30127 and mode attributes.
30129 (VSX_M2): Likewise.
30134 (VS_scalar): Likewise.
30135 (VS_double): Likewise.
30136 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30138 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30139 we support the ISA 2.07 128-bit integer arithmetic instructions.
30140 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30141 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30142 and TImode types for use with the builtin functions.
30143 (V1TI_type_node): Likewise.
30144 (unsigned_V1TI_type_node): Likewise.
30145 (intTI_type_internal_node): Likewise.
30146 (uintTI_type_internal_node): Likewise.
30148 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30149 128-bit builtin functions.
30150 (UNSPEC_VADDEUQM): Likewise.
30151 (UNSPEC_VADDECUQ): Likewise.
30152 (UNSPEC_VSUBCUQ): Likewise.
30153 (UNSPEC_VSUBEUQM): Likewise.
30154 (UNSPEC_VSUBECUQ): Likewise.
30155 (VM): Add V1TImode to vector mode iterators.
30157 (VI_unit): Likewise.
30158 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30159 (altivec_vaddcuq): Likewise.
30160 (altivec_vsubuqm): Likewise.
30161 (altivec_vsubcuq): Likewise.
30162 (altivec_vaddeuqm): Likewise.
30163 (altivec_vaddecuq): Likewise.
30164 (altivec_vsubeuqm): Likewise.
30165 (altivec_vsubecuq): Likewise.
30167 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
30169 (BOOL_128): Likewise.
30170 (BOOL_REGS_OUTPUT): Likewise.
30171 (BOOL_REGS_OP1): Likewise.
30172 (BOOL_REGS_OP2): Likewise.
30173 (BOOL_REGS_UNARY): Likewise.
30174 (BOOL_REGS_AND_CR0): Likewise.
30176 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
30177 128-bit integer builtin support.
30178 (vec_vadduqm): Likewise.
30179 (vec_vaddecuq): Likewise.
30180 (vec_vaddeuqm): Likewise.
30181 (vec_vsubecuq): Likewise.
30182 (vec_vsubeuqm): Likewise.
30183 (vec_vsubcuq): Likewise.
30184 (vec_vsubuqm): Likewise.
30186 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30187 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
30188 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
30189 128-bit integer add/subtract to ISA 2.07.
30191 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
30193 * config/arc/arc.c (arc_predicate_delay_insns):
30194 Fix third argument passed to conditionalize_nonjump.
30196 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
30198 * config/aarch64/aarch64-builtins.c
30199 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
30200 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
30201 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
30202 instead of __builtin_lfloor.
30203 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
30205 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30207 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
30208 (tree_ssa_ifcombine_bb_1): New function.
30209 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
30210 is an empty forwarder block to then_bb or vice versa and then_bb
30211 and else_bb are effectively swapped.
30213 2014-03-12 Christian Bruel <christian.bruel@st.com>
30216 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
30217 REG_CFA_DEF_CFA note.
30218 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
30219 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
30221 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30223 PR tree-optimization/60454
30224 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
30226 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30228 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
30229 Do not define target_cpu_default2 to generic.
30230 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
30231 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
30232 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
30234 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30235 Marc Glisse <marc.glisse@inria.fr>
30237 PR tree-optimization/60502
30238 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
30239 instead of build_low_bits_mask.
30241 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30243 PR middle-end/60482
30244 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
30245 if there are multiple uses, but op doesn't live on E edge.
30246 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
30247 clobber stmts before __builtin_unreachable.
30249 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
30251 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
30252 hard_frame_pointer_rtx.
30253 * cse.c (cse_insn): Remove volatile check.
30254 * cselib.c (cselib_process_insn): Likewise.
30255 * dse.c (scan_insn): Likewise.
30257 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
30259 * config/arc/arc.c (conditionalize_nonjump): New function,
30261 (arc_ifcvt): ... this.
30262 (arc_predicate_delay_insns): Use it.
30264 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
30266 * config/arc/predicates.md (extend_operand): During/after reload,
30267 allow const_int_operand.
30268 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
30269 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
30270 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
30272 (umulsi3_highpart_i): Likewise.
30274 2014-03-11 Richard Biener <rguenther@suse.de>
30276 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
30277 Add asserts to guard possible wrong-code bugs.
30279 2014-03-11 Richard Biener <rguenther@suse.de>
30281 PR tree-optimization/60429
30282 PR tree-optimization/60485
30283 * tree-ssa-structalias.c (set_union_with_increment): Properly
30284 take into account all fields that overlap the shifted vars.
30285 (do_sd_constraint): Likewise.
30286 (do_ds_constraint): Likewise.
30287 (get_constraint_for_ptr_offset): Likewise.
30289 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
30291 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
30292 (nios2_compute_frame_layout):
30293 Add calculation of cfun->machine->fp_save_offset.
30294 (nios2_expand_prologue): Correct setting of frame pointer register
30296 (nios2_expand_epilogue): Update recovery of stack pointer from
30297 frame pointer accordingly.
30298 (nios2_initial_elimination_offset): Update calculation of offset
30299 for eliminating to HARD_FRAME_POINTER_REGNUM.
30301 2014-03-10 Jakub Jelinek <jakub@redhat.com>
30304 * ipa.c (symtab_remove_unreachable_nodes): Don't call
30305 cgraph_get_create_node on VAR_DECLs.
30307 2014-03-10 Richard Biener <rguenther@suse.de>
30309 PR middle-end/60474
30310 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
30312 2014-03-08 Douglas B Rupp <rupp@gnat.com>
30314 * config/vms/vms.opt (vms_float_format): New variable.
30316 2014-03-08 Tobias Burnus <burnus@net-b.de>
30318 * doc/invoke.texi (-fcilkplus): Update implementation status.
30320 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
30321 Richard Biener <rguenther@suse.de>
30323 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
30324 consistently accross all TUs.
30325 (run_gcc): Enable -fshort-double automatically at link at link-time
30326 and disallow override.
30328 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
30331 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
30332 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
30333 if they can't be used.
30335 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30337 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
30338 for Solaris 11/x86 ld.
30339 * configure: Regenerate.
30341 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30343 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
30344 (LIB_TLS_SPEC): Save as ld_tls_libs.
30345 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
30346 (HAVE_AS_IX86_TLSLDM): New test.
30347 * configure, config.in: Regenerate.
30348 * config/i386/i386.c (legitimize_tls_address): Fall back to
30349 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
30350 cannot support TLS_MODEL_LOCAL_DYNAMIC.
30351 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
30352 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
30354 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
30356 * common.opt (fira-loop-pressure): Mark as optimization.
30358 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
30360 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
30361 an OpenMP mappable type.
30363 2014-03-06 Matthias Klose <doko@ubuntu.com>
30365 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
30366 MULTILIB_OSDIRNAMES is not defined.
30368 2014-03-06 Jakub Jelinek <jakub@redhat.com>
30369 Meador Inge <meadori@codesourcery.com>
30372 * config/arm/arm.c (arm_tls_symbol_p): Remove.
30373 (arm_legitimize_address): Call legitimize_tls_address for any
30374 arm_tls_referenced_p expression, handle constant addend. Call it
30375 before testing for !TARGET_ARM.
30376 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
30378 2014-03-06 Richard Biener <rguenther@suse.de>
30380 PR middle-end/60445
30384 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
30386 * tree-streamer.c (record_common_node): Assert we don't record
30387 nodes with type double.
30388 (preload_common_node): Skip type double, complex double and double
30389 pointer since it is now frontend dependent due to fshort-double option.
30391 2014-03-06 Richard Biener <rguenther@suse.de>
30393 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
30394 or -fno-lto is specified and the linker has full plugin support.
30395 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
30396 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
30397 * lto-wrapper.c (merge_and_complain): Merge compile-time
30398 optimization levels.
30399 (run_gcc): And pass it through to the link options.
30401 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
30405 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
30407 * cselib.c (remove_useless_values): Skip to avoid quadratic
30408 behavior if the condition moved from...
30409 (cselib_process_insn): ... here holds.
30411 2014-03-05 Jakub Jelinek <jakub@redhat.com>
30414 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
30415 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
30418 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
30419 (TM_H): Add x86-tune.def.
30421 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30423 * config/aarch64/aarch64.c (generic_tunings):
30424 Use cortexa57_extra_costs.
30426 2014-03-05 Jakub Jelinek <jakub@redhat.com>
30429 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
30430 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
30431 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
30434 2014-03-04 Heiher <r@hev.cc>
30436 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
30437 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
30439 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
30441 * config/i386/predicates.md (const2356_operand): Change to ...
30442 (const2367_operand): ... this.
30443 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
30445 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30446 (*avx512pf_scatterpf<mode>sf): Ditto.
30447 (avx512pf_scatterpf<mode>df): Ditto.
30448 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30449 (*avx512pf_scatterpf<mode>df): Ditto.
30450 * config/i386/i386.c (ix86_expand_builtin): Update
30451 incorrect hint operand error message.
30453 2014-03-04 Richard Biener <rguenther@suse.de>
30455 * lto-section-in.c (lto_get_section_data): Fix const cast.
30457 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
30459 * tree-streamer.c (record_common_node): Assert we don't record
30460 nodes with type double.
30461 (preload_common_node): Skip type double, complex double and double
30462 pointer since it is now frontend dependent due to fshort-double option.
30464 2014-03-04 Richard Biener <rguenther@suse.de>
30467 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
30468 (lto_input_toplevel_asms): Likewise.
30469 * lto-section-in.c (lto_get_section_data): Instead do it here
30472 2014-03-04 Richard Biener <rguenther@suse.de>
30474 PR tree-optimization/60382
30475 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
30476 dead PHIs a reduction.
30478 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
30480 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
30482 (_mm_prefetch): Move out of GCC target("sse") pragma.
30483 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
30484 GCC target("prfchw") pragma.
30485 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
30487 * config/i386/i386.c (ix86_option_override_internal): Enable
30488 -mprfchw with -mprefetchwt1.
30490 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
30492 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
30495 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
30497 * opts.h (CL_PCH_IGNORE): Define.
30498 * targhooks.c (option_affects_pch_p):
30499 Return false for options that have CL_PCH_IGNORE set.
30500 * opt-functions.awk: Process PchIgnore.
30501 * doc/options.texi: Document PchIgnore.
30503 * config/arc/arc.opt (misize): Add PchIgnore property.
30505 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30507 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
30508 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
30509 constraint on constants to permit them being loaded into
30510 GENERAL_REGS or BASE_REGS.
30512 2014-03-03 Nick Clifton <nickc@redhat.com>
30514 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
30515 anti-cacnonical alternatives.
30516 (negandhi3_real): New pattern.
30517 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
30519 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30521 * config/avr/avr-mcus.def: Remove atxmega16x1.
30522 * config/avr/avr-tables.opt: Regenerate.
30523 * config/avr/t-multilib: Regenerate.
30524 * doc/avr-mmcu.texi: Regenerate.
30526 2014-03-03 Tobias Grosser <tobias@grosser.es>
30527 Mircea Namolaru <mircea.namolaru@inria.fr>
30529 PR tree-optimization/58028
30530 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
30533 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30535 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
30536 not handled by recognizers.
30538 2014-03-03 Jakub Jelinek <jakub@redhat.com>
30540 PR middle-end/60175
30541 * function.c (expand_function_end): Don't emit
30542 clobber_return_register sequence if clobber_after is a BARRIER.
30543 * cfgexpand.c (construct_exit_block): Append instructions before
30544 return_label to prev_bb.
30546 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30548 * config/rs6000/constraints.md: Document reserved use of "wc".
30550 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
30553 * ipa.c (function_and_variable_visibility): When dissolving comdat
30554 group, also set all symbols to local.
30556 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
30561 2013-12-14 Jan Hubicka <jh@suse.cz>
30562 PR middle-end/58477
30563 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
30565 2014-03-02 Jon Beniston <jon@beniston.com>
30571 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
30572 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
30573 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
30574 (simple_return, *simple_return): New patterns
30575 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
30576 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
30578 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
30580 * dwarf2out.c (gen_subprogram_die): Tidy.
30582 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
30585 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
30586 (*mov_t_msb_neg_negc): ... this new insn.
30588 2014-02-28 Jason Merrill <jason@redhat.com>
30591 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
30594 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
30597 * dwarf2out.c (decltype_auto_die): New static.
30598 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
30599 (gen_type_die_with_usage): Handle 'decltype(auto)'.
30600 (is_cxx_auto): Likewise.
30602 2014-02-28 Ian Bolton <ian.bolton@arm.com>
30604 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
30605 we are not using general regs only.
30607 2014-02-28 Richard Biener <rguenther@suse.de>
30610 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
30611 previous fix and only allow to remove trivial pre-headers
30612 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
30613 (remove_forwarder_block): Properly update the latch of a loop.
30615 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
30618 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
30619 (cselib_preserved_hash_table): New.
30620 (preserve_constants_and_equivs): Move preserved vals to it.
30621 (cselib_find_slot): Look it up first.
30622 (cselib_init): Initialize it.
30623 (cselib_finish): Release it.
30624 (dump_cselib_table): Dump it.
30626 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
30629 * cselib.c (remove_useless_values): Skip to avoid quadratic
30630 behavior if the condition moved from...
30631 (cselib_process_insn): ... here holds.
30633 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
30636 * var-tracking.c (vt_initialize): Apply the same condition to
30637 preserve the CFA base value.
30639 2014-02-28 Joey Ye <joey.ye@arm.com>
30642 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
30643 if reload in progress or completed.
30645 2014-02-28 Tobias Burnus <burnus@net-b.de>
30647 PR middle-end/60147
30648 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
30651 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
30653 * doc/tm.texi.in (Condition Code Status): Update documention for
30654 relative locations of cc0-setter and cc0-user.
30656 2014-02-27 Jeff Law <law@redhat.com>
30658 PR rtl-optimization/52714
30659 * combine.c (try_combine): When splitting an unrecognized PARALLEL
30660 into two independent simple sets, if I3 is a jump, ensure the
30661 pattern we place into I3 is a (set (pc) ...).
30663 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
30664 Jeff Law <law@redhat.com>
30666 PR rtl-optimization/49847
30667 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
30668 are in different blocks.
30669 * doc/tm.texi (Condition Code Status): Update documention for
30670 relative locations of cc0-setter and cc0-user.
30672 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
30675 * lra.c (lra_emit_add): Check SUBREG too.
30677 2014-02-27 Andreas Schwab <schwab@suse.de>
30679 * config/m68k/m68k.c (m68k_option_override): Disable
30680 -flive-range-shrinkage for classic m68k.
30681 (m68k_override_options_after_change): Likewise.
30683 2014-02-27 Marek Polacek <polacek@redhat.com>
30685 PR middle-end/59223
30686 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
30687 -Wmaybe-uninitialized.
30689 2014-02-27 Alan Modra <amodra@gmail.com>
30692 * reload1.c (emit_input_reload_insns): When reload_override_in,
30693 set old to rl->in_reg when rl->in_reg is a subreg.
30695 2014-02-26 Richard Biener <rguenther@suse.de>
30698 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
30700 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
30702 * common/config/i386/predicates.md (const1256_operand): Remove.
30703 (const2356_operand): New.
30704 (const_1_to_2_operand): Remove.
30705 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30706 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30707 (*avx512pf_gatherpf<mode>sf): Ditto.
30708 (avx512pf_gatherpf<mode>df): Ditto.
30709 (*avx512pf_gatherpf<mode>df_mask): Ditto.
30710 (*avx512pf_gatherpf<mode>df): Ditto.
30711 (avx512pf_scatterpf<mode>sf): Ditto.
30712 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30713 (*avx512pf_scatterpf<mode>sf): Ditto.
30714 (avx512pf_scatterpf<mode>df): Ditto.
30715 (*avx512pf_scatterpf<mode>df_mask): Ditto.
30716 (*avx512pf_scatterpf<mode>df): Ditto.
30717 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
30719 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
30721 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
30722 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
30723 (_mm512_mask_testn_epi64_mask): Move to ...
30724 * config/i386/avx512cdintrin.h: Here.
30725 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
30726 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
30727 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
30728 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
30729 TARGET_AVX512F from TARGET_AVX512CD.
30731 2014-02-26 Richard Biener <rguenther@suse.de>
30734 * ipa.c (walk_polymorphic_call_targets): Properly guard
30735 call to inline_update_overall_summary.
30737 2014-02-26 Bin Cheng <bin.cheng@arm.com>
30740 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
30741 and latches only if requested. Fix latch if it is removed.
30742 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
30743 LOOPS_HAVE_PREHEADERS.
30745 2014-02-25 Andrew Pinski <apinski@cavium.com>
30747 * builtins.c (expand_builtin_thread_pointer): Create a new target
30748 when the target is NULL.
30750 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
30752 PR rtl-optimization/60317
30753 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
30754 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
30755 * lra-assigns.c: Include params.h.
30756 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
30757 other reload pseudos considerations.
30759 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30761 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
30762 to use canonical form for nor<mode>3.
30764 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30767 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
30770 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
30772 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
30773 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
30774 (ix86_handle_option): Handle OPT_mprefetchwt1.
30775 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
30776 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
30778 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30779 OPTION_MASK_ISA_PREFETCHWT1.
30780 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
30781 (PTA_PREFETCHWT1): New.
30782 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
30783 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
30784 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
30785 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
30786 (*prefetch_avx512pf_<mode>_: Change into ...
30787 (*prefetch_prefetchwt1_<mode>: This.
30788 * config/i386/i386.opt (mprefetchwt1): New.
30789 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
30790 (_mm_prefetch): Handle intent to write.
30791 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
30793 2014-02-25 Richard Biener <rguenther@suse.de>
30795 PR middle-end/60291
30796 * emit-rtl.c (mem_attrs_htab): Remove.
30797 (mem_attrs_htab_hash): Likewise.
30798 (mem_attrs_htab_eq): Likewise.
30799 (set_mem_attrs): Always allocate new mem-attrs when something changed.
30800 (init_emit_once): Do not allocate mem_attrs_htab.
30802 2014-02-25 Richard Biener <rguenther@suse.de>
30805 * lto-opts.c (lto_write_options): Output non-explicit conservative
30806 -fwrapv, -fno-trapv and -fno-strict-overflow.
30807 * lto-wrapper.c (merge_and_complain): Handle merging those options.
30808 (run_gcc): And pass them through.
30810 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
30812 * sel-sched.c (calculate_new_fences): New parameter ptime.
30813 Calculate it as a maximum over all fence cycles.
30814 (sel_sched_region_2): Adjust the call to calculate_new_fences.
30815 Print the final schedule timing when sched_verbose.
30817 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
30819 PR rtl-optimization/60292
30820 * sel-sched.c (fill_vec_av_set): Do not reset target availability
30821 bit fot the fence instruction.
30823 2014-02-24 Alangi Derick <alangiderick@gmail.com>
30825 * calls.h: Fix typo in comment.
30827 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
30829 * config/pa/pa.c (pa_output_move_double): Don't valididate when
30830 adjusting offsetable addresses.
30832 2014-02-24 Guozhi Wei <carrot@google.com>
30834 * sparseset.h (sparseset_pop): Fix the wrong index.
30836 2014-02-24 Walter Lee <walt@tilera.com>
30838 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
30839 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
30841 * common/config/tilegx/tilegx-common.c
30842 (TARGET_DEFAULT_TARGET_FLAGS): Define.
30843 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
30844 (LINK_SPEC): Ditto.
30845 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
30846 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
30847 (tilegx_gimplify_va_arg_expr): Handle big endian.
30848 (tilegx_expand_unaligned_load): Ditto.
30849 (tilegx_expand_unaligned_store): Ditto.
30850 (TARGET_RETURN_IN_MSB): New.
30851 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
30852 (TARGET_ENDIAN_DEFAULT): New.
30853 (TARGET_BIG_ENDIAN): Handle big endian.
30854 (BYTES_BIG_ENDIAN): Ditto.
30855 (WORDS_BIG_ENDIAN): Ditto.
30856 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
30857 (ENDIAN_SPEC): New.
30858 (EXTRA_SPECS): New.
30859 * config/tilegx/tilegx.md (extv): Handle big endian.
30861 (insn_st<n>): Ditto.
30862 (insn_st<n>_add<bitsuffix>): Ditto.
30863 (insn_stnt<n>): Ditto.
30864 (insn_stnt<n>_add<bitsuffix>):Ditto.
30865 (vec_interleave_highv8qi): Handle big endian.
30866 (vec_interleave_highv8qi_be): New.
30867 (vec_interleave_highv8qi_le): New.
30868 (insn_v1int_h): Handle big endian.
30869 (vec_interleave_lowv8qi): Handle big endian.
30870 (vec_interleave_lowv8qi_be): New.
30871 (vec_interleave_lowv8qi_le): New.
30872 (insn_v1int_l): Handle big endian.
30873 (vec_interleave_highv4hi): Handle big endian.
30874 (vec_interleave_highv4hi_be): New.
30875 (vec_interleave_highv4hi_le): New.
30876 (insn_v2int_h): Handle big endian.
30877 (vec_interleave_lowv4hi): Handle big endian.
30878 (vec_interleave_lowv4hi_be): New.
30879 (vec_interleave_lowv4hi_le): New.
30880 (insn_v2int_l): Handle big endian.
30881 (vec_interleave_highv2si): Handle big endian.
30882 (vec_interleave_highv2si_be): New.
30883 (vec_interleave_highv2si_le): New.
30884 (insn_v4int_h): Handle big endian.
30885 (vec_interleave_lowv2si): Handle big endian.
30886 (vec_interleave_lowv2si_be): New.
30887 (vec_interleave_lowv2si_le): New.
30888 (insn_v4int_l): Handle big endian.
30889 * config/tilegx/tilegx.opt (mbig-endian): New option.
30890 (mlittle-endian): New option.
30891 * doc/install.texi: Document tilegxbe-linux.
30892 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
30894 2014-02-24 Martin Jambor <mjambor@suse.cz>
30897 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
30898 there are no parameter descriptors.
30900 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
30902 PR rtl-optimization/60268
30903 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
30904 initialization to ...
30905 (sched_rgn_init): ... here.
30906 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
30908 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
30910 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
30913 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
30915 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
30918 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
30920 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
30921 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
30923 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
30925 * config/microblaze/predicates.md: Add cmp_op predicate.
30926 * config/microblaze/microblaze.md: Add branch_compare instruction
30927 which uses cmp_op predicate and emits cmp insn before branch.
30928 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
30929 to microblaze_expand_conditional_branch and consolidate logic.
30930 (microblaze_expand_conditional_branch): emit branch_compare
30931 insn instead of handling cmp op separate from branch insn.
30933 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30935 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
30938 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30940 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
30941 define_insn with define_expand and new define_insn
30942 *altivec_lve<VI_char>x_internal.
30943 (altivec_stve<VI_char>x): Replace define_insn with define_expand
30944 and new define_insn *altivec_stve<VI_char>x_internal.
30945 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
30947 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
30949 (altivec_expand_stvex_be): New function.
30951 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
30953 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
30954 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
30955 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
30956 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
30958 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
30961 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
30962 instead of emit_move_insn.
30964 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30966 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
30967 vspltw with vsldoi.
30968 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
30969 gen_altivec_vsumsws.
30971 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30973 * config/rs6000/altivec.md (altivec_lvxl): Rename as
30974 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
30975 (altivec_lvxl_<mode>): New define_expand incorporating
30976 -maltivec=be semantics where needed.
30977 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
30978 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
30979 semantics where needed.
30980 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
30981 (altivec_stvx_<mode>): New define_expand incorporating
30982 -maltivec=be semantics where needed.
30983 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
30984 VM2 iterator instead of V4SI.
30985 (altivec_stvxl_<mode>): New define_expand incorporating
30986 -maltivec=be semantics where needed.
30987 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
30988 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
30989 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
30990 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
30991 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
30992 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
30993 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
30994 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
30995 ALTIVEC_BUILTIN_STVXL.
30996 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
30997 (altivec_expand_stvx_be): Likewise.
30998 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
30999 (altivec_expand_lvx_be): Likewise.
31000 (altivec_expand_stvx_be): Likewise.
31001 (altivec_expand_builtin): Add cases for
31002 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31003 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31004 (altivec_init_builtins): Add definitions for
31005 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31006 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31008 2014-02-21 Catherine Moore <clm@codesourcery.com>
31010 * doc/invoke.texi (mvirt, mno-virt): Document.
31011 * config/mips/mips.opt (mvirt): New option.
31012 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31014 2014-02-21 Richard Biener <rguenther@suse.de>
31016 PR tree-optimization/60276
31017 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31018 (STMT_VINFO_MIN_NEG_DIST): New macro.
31019 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31020 STMT_VINFO_MIN_NEG_DIST.
31021 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31022 made for negative dependence distances still hold.
31024 2014-02-21 Richard Biener <rguenther@suse.de>
31026 PR middle-end/60291
31027 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31028 DECL_INITIAL for globals not in the current function context.
31030 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31032 PR tree-optimization/56490
31033 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31034 * tree-ssa-uninit.c: Include params.h.
31035 (compute_control_dep_chain): Add num_calls argument, return false
31036 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31037 num_calls to recursive call.
31038 (find_predicates): Change dep_chain into normal array,
31039 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31040 variable and adjust compute_control_dep_chain caller.
31041 (find_def_preds): Likewise.
31043 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
31045 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31046 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31048 2014-02-21 Nick Clifton <nickc@redhat.com>
31050 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31051 (pushhi1): Likewise.
31052 (popqi1): Add mode to pre_dec.
31053 (pophi1): Likewise.
31055 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31057 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31058 mode for mask of V8SFmode permutation.
31060 2014-02-20 Richard Henderson <rth@redhat.com>
31063 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31064 a new pseudo for OLDVAL.
31066 2014-02-20 Jakub Jelinek <jakub@redhat.com>
31069 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31070 gen_reg_rtx if d->testing_p.
31071 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31072 if d->testing_p and we will certainly return true.
31073 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
31076 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
31078 * emit-rtl.c (gen_reg_rtx): Assert that
31079 crtl->emit.regno_pointer_align_length is non-zero.
31081 2014-02-20 Richard Henderson <rth@redhat.com>
31084 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31085 on failure the store back into EXPECT.
31087 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
31088 Sandra Loosemore <sandra@codesourcery.com>
31090 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31091 * config/nios2/nios2.c (nios2_function_profiler): Add
31092 -fPIC (flag_pic == 2) support.
31093 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31094 (nios2_large_offset_p): New function.
31095 (nios2_unspec_reloc_p): Move up position, update to use
31096 nios2_large_offset_p.
31097 (nios2_unspec_address): Remove function.
31098 (nios2_unspec_offset): New function.
31099 (nios2_large_got_address): New function.
31100 (nios2_got_address): Add large offset support.
31101 (nios2_legitimize_tls_address): Update usage of removed and new
31103 (nios2_symbol_binds_local_p): New function.
31104 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31105 (nios2_legitimize_address): Update to use nios2_large_offset_p.
31106 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31107 (nios2_print_operand): Merge H/L processing, add hiadj/lo
31108 processing for (const (unspec ...)).
31109 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31111 2014-02-20 Richard Biener <rguenther@suse.de>
31113 * tree-cfg.c (replace_uses_by): Mark altered BBs before
31114 doing the substitution.
31115 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31117 2014-02-20 Martin Jambor <mjambor@suse.cz>
31120 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31121 info when checking whether lattices are bottom.
31123 2014-02-20 Richard Biener <rguenther@suse.de>
31125 PR middle-end/60221
31126 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31129 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
31132 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31133 parameter specifying the scaling.
31134 (inline_call): Update.
31135 (want_inline_recursively): Guard division by zero.
31136 (recursive_inlining): Update.
31137 * ipa-inline.h (clone_inlined_nodes): Update.
31139 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31142 * config/i386/i386.c (classify_argument): Pass structures of size
31143 64 bytes or less in register.
31145 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31146 Kirill Yukhin <kirill.yukhin@intel.com>
31148 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31149 (_mm_rcp28_round_ss): Ditto.
31150 (_mm_rsqrt28_round_sd): Ditto.
31151 (_mm_rsqrt28_round_ss): Ditto.
31152 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31153 (_mm_rcp14_round_ss): Ditto.
31154 (_mm_rsqrt14_round_sd): Ditto.
31155 (_mm_rsqrt14_round_ss): Ditto.
31156 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31157 the first input operand, get rid of match_dup.
31158 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31160 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31162 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
31163 operand as the first input operand, set type attribute.
31164 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31165 Set type attribute.
31166 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
31167 operand as the first input operand, set type attribute.
31169 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31171 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
31174 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
31177 * config/i386/i386.c (construct_container): Remove TFmode check
31178 for X86_64_INTEGER_CLASS.
31180 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
31183 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
31184 only when -Wpsabi is enabled.
31186 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
31189 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
31190 passing arrays in registers are the same as for structs, so remove the
31191 special case for them.
31193 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
31195 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
31196 destination type, extract only the valid bits if the source type is not
31197 integral and has a different mode.
31199 2014-02-19 Richard Biener <rguenther@suse.de>
31202 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
31205 2014-02-19 Richard Biener <rguenther@suse.de>
31208 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
31209 (ipa_modify_call_arguments): Emit an argument load explicitely and
31210 preserve virtual SSA form there and for the replacement call.
31211 Do not update SSA form nor free dominance info.
31213 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31215 * ipa.c (function_and_variable_visibility): Also clear WEAK
31216 flag when disolving COMDAT_GROUP.
31218 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31220 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
31221 * ipa-prop.c (ipa_set_jf_known_type): Return early when
31222 not devirtualizing.
31223 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
31224 do more sanity checks.
31225 (detect_type_change): Return true when giving up early.
31226 (compute_complex_assign_jump_func): Fix type parameter of
31227 ipa_set_ancestor_jf.
31228 (compute_complex_ancestor_jump_func): Likewise.
31229 (update_jump_functions_after_inlining): Fix updating of
31231 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
31233 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31235 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
31236 inline clones when edge disappears.
31238 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31241 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
31242 Split 64-bit moves into 2 patterns. Do not allow the use of
31243 direct move for TDmode in little endian, since the decimal value
31244 has little endian bytes within a word, but the 64-bit pieces are
31245 ordered in a big endian fashion, and normal subreg's of TDmode are
31247 (mov<mode>_64bit_dm): Likewise.
31248 (movtd_64bit_nodm): Likewise.
31250 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
31252 PR tree-optimization/60174
31253 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
31254 statement of an SSA_NAME that occurs in an abnormal PHI node.
31256 2014-02-18 Jakub Jelinek <jakub@redhat.com>
31259 * final.c (SEEN_BB): Remove.
31260 (SEEN_NOTE, SEEN_EMITTED): Renumber.
31261 (final_scan_insn): Don't force_source_line on second
31262 NOTE_INSN_BASIC_BLOCK.
31264 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
31267 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
31268 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
31269 (type_natural_mode): Warn ABI change when %zmm register is not
31270 available for AVX512F vector value passing.
31272 2014-02-18 Kai Tietz <ktietz@redhat.com>
31275 * config/i386/i386.c (ix86_expand_prologue): Use value in
31276 rax register as displacement when restoring %r10 or %rax.
31277 Fix wrong offset when restoring both registers.
31279 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
31281 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
31282 assertion with conditional return.
31284 2014-02-18 Jakub Jelinek <jakub@redhat.com>
31285 Uros Bizjak <ubizjak@gmail.com>
31288 * config/i386/driver-i386.c (host_detect_local_cpu): If
31289 YMM state is not saved by the OS, also clear has_f16c. Move
31290 CPUID 0x80000001 handling before YMM state saving checking.
31292 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
31294 PR rtl-optimization/58960
31295 * haifa-sched.c (alloc_global_sched_pressure_data): New,
31296 factored out from ...
31297 (sched_init): ... here.
31298 (free_global_sched_pressure_data): New, factored out from ...
31299 (sched_finish): ... here.
31300 * sched-int.h (free_global_sched_pressure_data): Declare.
31301 * sched-rgn.c (nr_regions_initial): New static global.
31302 (haifa_find_rgns): Initialize it.
31303 (schedule_region): Disable sched-pressure for the newly
31306 2014-02-17 Richard Biener <rguenther@suse.de>
31308 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
31309 release SSA defs of pattern stmts.
31311 2014-02-17 Richard Biener <rguenther@suse.de>
31313 * tree-inline.c (expand_call_inline): Release the virtual
31314 operand defined by the call we are about to inline.
31316 2014-02-17 Richard Biener <rguenther@suse.de>
31318 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
31320 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
31321 Ilya Tocar <ilya.tocar@intel.com>
31323 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
31324 arguments order in builtin.
31325 (_mm512_permutexvar_epi64): Ditto.
31326 (_mm512_mask_permutexvar_epi64): Ditto
31327 (_mm512_maskz_permutexvar_epi32): Ditto
31328 (_mm512_permutexvar_epi32): Ditto
31329 (_mm512_mask_permutexvar_epi32): Ditto
31331 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31333 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
31334 (p8_vmrgow): Likewise.
31336 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31338 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
31341 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
31344 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
31345 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
31346 into 64-bit and 32-bit moves. On 64-bit moves, add support for
31347 using direct move instructions on ISA 2.07. Also adjust
31348 instruction length for 64-bit.
31349 (mov<mode>_64bit, TFmode/TDmode): Likewise.
31350 (mov<mode>_32bit, TFmode/TDmode): Likewise.
31352 2014-02-15 Alan Modra <amodra@gmail.com>
31356 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31357 find_replacement on parts of insn rtl that might be reloaded.
31359 2014-02-15 Richard Biener <rguenther@suse.de>
31361 PR tree-optimization/60183
31362 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
31363 (tree_ssa_phiprop): Calculate and free post-dominators.
31365 2014-02-14 Jeff Law <law@redhat.com>
31367 PR rtl-optimization/60131
31368 * ree.c (get_extended_src_reg): New function.
31369 (combine_reaching_defs): Use it rather than assuming location of REG.
31370 (find_and_remove_re): Verify first operand of extension is
31371 a REG before adding the insns to the copy list.
31373 2014-02-14 Roland McGrath <mcgrathr@google.com>
31375 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
31376 * configure: Regenerated.
31377 * config.in: Regenerated.
31378 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
31379 instead of ASM_SHORT.
31381 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
31382 Richard Earnshaw <rearnsha@arm.com>
31384 PR rtl-optimization/59535
31385 * lra-constraints.c (process_alt_operands): Encourage alternative
31386 when unassigned pseudo class is superset of the alternative class.
31387 (inherit_reload_reg): Don't inherit when optimizing for code size.
31388 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
31389 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
31390 modes not less than 4 for Thumb1.
31392 2014-02-14 Kyle McMartin <kyle@redhat.com>
31395 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
31397 2014-02-14 Richard Biener <rguenther@suse.de>
31399 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
31400 (get_frame_arg): Drop the assert with langhook types_compatible_p.
31401 Do not strip INDIRECT_REFs.
31403 2014-02-14 Richard Biener <rguenther@suse.de>
31406 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
31407 DECL_FUNCTION_SPECIFIC_TARGET.
31408 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
31409 * tree-streamer-out.c (pack_ts_target_option): Remove.
31410 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
31411 (write_ts_function_decl_tree_pointers): Do not stream
31412 DECL_FUNCTION_SPECIFIC_TARGET.
31413 * tree-streamer-in.c (unpack_ts_target_option): Remove.
31414 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
31415 (lto_input_ts_function_decl_tree_pointers): Do not stream
31416 DECL_FUNCTION_SPECIFIC_TARGET.
31418 2014-02-14 Jakub Jelinek <jakub@redhat.com>
31420 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
31421 (get_initial_def_for_induction, vectorizable_induction): Ignore
31422 debug stmts when looking for exit_phi.
31423 (vectorizable_live_operation): Fix up condition.
31425 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
31427 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
31428 nreverse() because it changes the content of original tree list.
31430 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
31432 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
31433 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
31435 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
31437 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
31438 GNU coding standards.
31440 2014-02-13 Jakub Jelinek <jakub@redhat.com>
31443 * dwarf2out.c (gen_subprogram_die): Don't call
31444 add_calling_convention_attribute if subr_die is old_die.
31446 2014-02-13 Sharad Singhai <singhai@google.com>
31448 * doc/optinfo.texi: Fix order of nodes.
31450 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
31452 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
31453 operands[2], not operands[3].
31455 2014-02-13 Richard Biener <rguenther@suse.de>
31458 * doc/install.texi (ISL): Update recommended version to 0.12.2,
31459 mention the possibility of an in-tree build.
31460 (CLooG): Update recommended version to 0.18.1, mention the
31461 possibility of an in-tree build and clarify that the ISL
31462 bundled with CLooG does not work.
31464 2014-02-13 Jakub Jelinek <jakub@redhat.com>
31467 * expr.c (compress_float_constant): If x is a hard register,
31468 extend into a pseudo and then move to x.
31470 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
31472 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
31473 caused by bad second argument to warning_at() with -mhotpatch and
31474 nested functions (e.g. with gfortran).
31476 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
31478 * opts.c (option_name): Remove "enabled by default" rider.
31480 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
31482 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
31484 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
31485 Uros Bizjak <ubizjak@gmail.com>
31488 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
31489 * configure: Regenerated.
31491 2014-02-12 Richard Biener <rguenther@suse.de>
31493 * vec.c (vec_prefix::calculate_allocation): Move as
31494 inline variant to vec.h.
31495 (vec_prefix::calculate_allocation_1): New out-of-line version.
31496 * vec.h (vec_prefix::calculate_allocation_1): Declare.
31497 (vec_prefix::m_has_auto_buf): Rename to ...
31498 (vec_prefix::m_using_auto_storage): ... this.
31499 (vec_prefix::calculate_allocation): Inline the easy cases
31500 and dispatch to calculate_allocation_1 which doesn't need the
31502 (va_heap::reserve): Use gcc_checking_assert.
31503 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
31504 m_using_auto_storage.
31505 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
31507 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
31508 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
31509 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
31511 2014-02-12 Richard Biener <rguenther@suse.de>
31513 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
31514 when we found a dependence.
31516 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
31518 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
31520 (maybe_fold_stmt): ... into this new function.
31521 * omp-low.c (lower_omp): Update comment.
31523 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
31526 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
31529 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
31531 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
31532 identifiers in comments.
31533 (cortexa53_extra_costs): Likewise.
31534 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
31535 (cortexa7_extra_costs): Likewise.
31536 (cortexa12_extra_costs): Likewise.
31537 (cortexa15_extra_costs): Likewise.
31538 (v7m_extra_costs): Likewise.
31540 2014-02-12 Richard Biener <rguenther@suse.de>
31542 PR middle-end/60092
31543 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
31544 of posix_memalign being successful.
31545 (lower_stmt): Restrict lowering of posix_memalign to when
31546 -ftree-bit-ccp is enabled.
31548 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31550 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
31552 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
31554 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
31556 PR rtl-optimization/60116
31557 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
31558 other_insn once the combination has been validated.
31560 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
31563 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
31565 * ipa-devirt.c: Include demangle.h
31566 (odr_violation_reported): New static variable.
31567 (add_type_duplicate): Update odr_violations.
31568 (maybe_record_node): Add completep parameter; update it.
31569 (record_target_from_binfo): Add COMPLETEP parameter;
31570 update it as needed.
31571 (possible_polymorphic_call_targets_1): Likewise.
31572 (struct polymorphic_call_target_d): Add nonconstruction_targets;
31573 rename FINAL to COMPLETE.
31574 (record_targets_from_bases): Sanity check we found the binfo;
31575 fix COMPLETEP updating.
31576 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
31577 parameter, fix computing of COMPLETEP.
31578 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
31579 at LTO time do demangling.
31580 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
31581 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
31583 (gimple_get_virt_method_for_binfo): Likewise.
31584 * gimple-fold.h (gimple_get_virt_method_for_binfo,
31585 gimple_get_virt_method_for_vtable): Update prototypes.
31587 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
31590 * genautomata.c (add_presence_absence): Fix typo with
31591 {final_}presence_list.
31593 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31596 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
31597 for VSX/Altivec vectors that land in GPR registers.
31599 2014-02-11 Richard Henderson <rth@redhat.com>
31600 Jakub Jelinek <jakub@redhat.com>
31603 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
31604 around drhs if type conversion to lacc->type is not useless.
31606 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31608 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
31610 (cortex-a57.cortex-a53): Likewise.
31611 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
31613 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31615 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
31618 2014-02-11 Renlin Li <Renlin.Li@arm.com>
31620 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
31621 add_options_for_arm_vfp3.
31623 2014-02-11 Jeff Law <law@redhat.com>
31625 PR middle-end/54041
31626 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
31627 object with an undesirable mode.
31629 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31632 * config/i386/sol2-9.h: New file.
31633 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
31634 *-*-solaris2.9*): Use it.
31636 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
31638 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
31639 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
31641 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
31643 * config/microblaze/microblaze.c: Extend mcpu version format
31645 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
31647 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
31649 2014-02-10 Richard Henderson <rth@redhat.com>
31652 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
31653 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
31654 ms-abi vs -mno-accumulate-outgoing-args.
31655 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
31656 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
31659 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
31661 PR middle-end/60080
31662 * cfgexpand.c (expand_asm_operands): Attach source location to
31663 ASM_INPUT rtx objects.
31664 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
31666 2014-02-10 Nick Clifton <nickc@redhat.com>
31668 * config/mn10300/mn10300.c (popcount): New function.
31669 (mn10300_expand_prologue): Include saved registers in stack usage
31672 2014-02-10 Jeff Law <law@redhat.com>
31674 PR middle-end/52306
31675 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
31676 when changing the SET_DEST of a prior insn to avoid an input reload.
31678 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31680 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
31681 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
31682 -mcall-openbsd, or -mcall-linux.
31683 (CC1_ENDIAN_BIG_SPEC): Remove.
31684 (CC1_ENDIAN_LITTLE_SPEC): Remove.
31685 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31686 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
31687 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
31688 and %cc1_endian_default.
31689 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31691 2014-02-10 Richard Biener <rguenther@suse.de>
31693 PR tree-optimization/60115
31694 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
31695 MEM_REF handling. Properly verify that the accesses are not
31696 out of the objects bound.
31698 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31700 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
31703 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
31705 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
31706 proper constants and fix formatting.
31707 (possible_polymorphic_call_targets): Fix formatting.
31709 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
31710 Ilya Tocar <ilya.tocar@intel.com>
31712 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
31713 (_mm512_loadu_epi32): Renamed into...
31714 (_mm512_loadu_si512): This.
31715 (_mm512_storeu_epi32): Renamed into...
31716 (_mm512_storeu_si512): This.
31717 (_mm512_maskz_ceil_ps): Removed.
31718 (_mm512_maskz_ceil_pd): Ditto.
31719 (_mm512_maskz_floor_ps): Ditto.
31720 (_mm512_maskz_floor_pd): Ditto.
31721 (_mm512_floor_round_ps): Ditto.
31722 (_mm512_floor_round_pd): Ditto.
31723 (_mm512_ceil_round_ps): Ditto.
31724 (_mm512_ceil_round_pd): Ditto.
31725 (_mm512_mask_floor_round_ps): Ditto.
31726 (_mm512_mask_floor_round_pd): Ditto.
31727 (_mm512_mask_ceil_round_ps): Ditto.
31728 (_mm512_mask_ceil_round_pd): Ditto.
31729 (_mm512_maskz_floor_round_ps): Ditto.
31730 (_mm512_maskz_floor_round_pd): Ditto.
31731 (_mm512_maskz_ceil_round_ps): Ditto.
31732 (_mm512_maskz_ceil_round_pd): Ditto.
31733 (_mm512_expand_pd): Ditto.
31734 (_mm512_expand_ps): Ditto.
31735 * config/i386/i386.c (ix86_builtins): Remove
31736 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
31737 (bdesc_args): Ditto.
31738 * config/i386/predicates.md (const1256_operand): New.
31739 (const_1_to_2_operand): Ditto.
31740 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31741 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31742 (*avx512pf_gatherpf<mode>sf): Ditto.
31743 (avx512pf_gatherpf<mode>df): Ditto.
31744 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31745 (*avx512pf_gatherpf<mode>df): Ditto.
31746 (avx512pf_scatterpf<mode>sf): Ditto.
31747 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31748 (*avx512pf_scatterpf<mode>sf): Ditto.
31749 (avx512pf_scatterpf<mode>df): Ditto.
31750 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31751 (*avx512pf_scatterpf<mode>df): Ditto.
31752 (avx512f_expand<mode>): Removed.
31753 (<shift_insn><mode>3<mask_name>): Change predicate type.
31755 2014-02-08 Jakub Jelinek <jakub@redhat.com>
31757 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
31758 not at the end of datarefs vector use ordered_remove to avoid
31759 reordering datarefs vector.
31762 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
31763 mark local addressable non-static vars as GOVD_PRIVATE
31764 instead of GOVD_LOCAL.
31765 * omp-low.c (lower_omp_for): Move gimple_bind_vars
31766 and BLOCK_VARS of gimple_bind_block to new_stmt rather
31769 PR middle-end/60092
31770 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
31771 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
31772 assume_aligned or alloc_align attributes.
31773 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
31774 arguments. Handle also assume_aligned and alloc_align attributes.
31775 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
31776 calls to functions with assume_aligned or alloc_align attributes.
31777 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
31779 2014-02-08 Terry Guo <terry.guo@arm.com>
31781 * doc/invoke.texi: Document ARM -march=armv7e-m.
31783 2014-02-08 Jakub Jelinek <jakub@redhat.com>
31785 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
31786 flag on __cilkrts_rethrow builtin.
31789 * ipa-cp.c (determine_versionability): Fail at -O0
31790 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
31791 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
31794 2014-02-04 Jakub Jelinek <jakub@redhat.com>
31797 * tree-inline.c (copy_forbidden): Fail for
31798 __attribute__((optimize (0))) functions.
31800 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
31802 * varpool.c: Include pointer-set.h.
31803 (varpool_remove_unreferenced_decls): Variables in other partitions
31804 will not be output; be however careful to not lose information
31805 about partitioning.
31807 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
31809 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
31810 lookup in the vtable constructor.
31812 2014-02-07 Jeff Law <law@redhat.com>
31815 * config/m68k/m68k.md (ashldi_extsi): Turn into a
31816 define_insn_and_split.
31818 * ipa-inline.c (inline_small_functions): Fix typos.
31820 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31822 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
31823 (s390_can_use_return_insn): Declare.
31824 * config/s390/s390.h (EPILOGUE_USES): Define.
31825 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
31827 (s390_chunkify_start): Handle return JUMP_LABELs.
31828 (s390_early_mach): Emit a main_pool instruction on the entry edge.
31829 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
31830 (s390_can_use_return_insn): New functions.
31831 (s390_fix_long_loop_prediction): Handle conditional returns.
31832 (TARGET_SET_UP_BY_PROLOGUE): Define.
31833 * config/s390/s390.md (ANY_RETURN): New code iterator.
31834 (*creturn, *csimple_return, return, simple_return): New patterns.
31836 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31838 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
31839 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
31840 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
31841 REG_CFA_RESTORE list when deciding not to restore a register.
31843 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31845 * config/s390/s390.c: Include tree-pass.h and context.h.
31846 (s390_early_mach): New function, split out from...
31847 (s390_emit_prologue): ...here.
31848 (pass_data_s390_early_mach): New pass structure.
31849 (pass_s390_early_mach): New class.
31850 (s390_option_override): Create and register early_mach pass.
31851 Move to end of file.
31853 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31855 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
31856 to match for the exit block.
31858 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31860 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
31861 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
31862 Reject misaligned operands.
31864 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31866 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
31868 2014-02-07 Richard Biener <rguenther@suse.de>
31870 PR middle-end/60092
31871 * gimple-low.c (lower_builtin_posix_memalign): New function.
31872 (lower_stmt): Call it to lower posix_memalign in a way
31873 to make alignment info accessible.
31875 2014-02-07 Jakub Jelinek <jakub@redhat.com>
31878 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
31879 __builtin_setjmp_receiver.
31881 2014-02-07 Richard Biener <rguenther@suse.de>
31883 PR middle-end/60092
31884 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
31885 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
31886 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31887 Handle BUILT_IN_POSIX_MEMALIGN.
31888 (find_func_clobbers): Likewise.
31889 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31890 (call_may_clobber_ref_p_1): Likewise.
31892 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
31895 * ipa-devirt.c (record_target_from_binfo): Remove overactive
31898 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
31901 * lto-cgraph.c (lto_output_node): Use
31902 symtab_get_symbol_partitioning_class.
31903 (lto_output_varpool_node): likewise.
31904 (symtab_get_symbol_partitioning_class): Move here from
31905 lto/lto-partition.c
31906 * cgraph.h (symbol_partitioning_class): Likewise.
31907 (symtab_get_symbol_partitioning_class): Declare.
31909 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
31911 * ggc.h (ggc_internal_cleared_alloc): New macro.
31912 * vec.h (vec_safe_copy): Handle memory stats.
31913 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
31914 * target-globals.c (save_target_globals): Likewise.
31916 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
31919 * expr.c (emit_move_resolve_push): Export; be bit more selective
31920 on when to clear alias set.
31921 * expr.h (emit_move_resolve_push): Declare.
31922 * function.h (struct function): Add tail_call_marked.
31923 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
31924 * config/i386/i386-protos.h (ix86_expand_push): Remove.
31925 * config/i386/i386.md (TImode move expander): De not call
31927 (FP push expanders): Preserve memory attributes.
31928 * config/i386/sse.md (push<mode>1): Remove.
31929 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
31930 (ix86_expand_push): Remove.
31931 * config/i386/mmx.md (push<mode>1): Remove.
31933 2014-02-06 Jakub Jelinek <jakub@redhat.com>
31935 PR rtl-optimization/60030
31936 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
31937 lopart with paradoxical subreg before shifting it up by hprec.
31939 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31941 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
31942 Remove extra newline at end of file.
31943 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
31944 (arm_issue_rate): Handle cortexa57.
31945 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
31946 (cortex-a57.cortex-a53): Likewise.
31948 2014-02-06 Jakub Jelinek <jakub@redhat.com>
31951 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
31952 don't record in REG_FRAME_RELATED_EXPR registers not set in that
31954 (arm_expand_prologue): Adjust all callers.
31955 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
31956 info, registers also at the lowest numbered registers side. Use
31957 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
31961 * var-tracking.c (adjust_mems): Before adding a SET to
31962 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
31964 2014-02-06 Alan Modra <amodra@gmail.com>
31967 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
31968 change SDmode to DDmode when lra_in_progress.
31970 2014-02-06 Jakub Jelinek <jakub@redhat.com>
31972 PR middle-end/59150
31973 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
31974 free_data_ref on the dr first, and before goto again also set dr
31975 to the next dr. For simd_lane_access, free old datarefs[i] before
31976 overwriting it. For get_vectype_for_scalar_type failure, don't
31977 free_data_ref if simd_lane_access.
31979 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
31982 * tree.h (opts_for_fn): New inline function.
31983 (opt_for_fn): Define.
31984 * config/i386/i386.c (ix86_function_regparm): Use
31985 opt_for_fn (decl, optimize) instead of optimize.
31987 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
31989 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
31990 for SYMBOL_REF in large memory model.
31992 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31994 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
31995 and crypto support.
31996 (cortex-a57): Likewise.
31997 (cortex-a57.cortex-a53): Likewise.
31999 2014-02-06 Yury Gribov <y.gribov@samsung.com>
32000 Kugan Vivekanandarajah <kuganv@linaro.org>
32002 * config/arm/arm.c (arm_vector_alignment_reachable): Check
32004 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32006 2014-02-06 Richard Biener <rguenther@suse.de>
32008 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32009 set_loop_copy and initialize_original_copy_tables.
32011 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
32013 * config/aarch64/aarch64-simd.md
32014 (aarch64_ashr_simddi): Change QI to SI.
32016 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32017 Jakub Jelinek <jakub@redhat.com>
32019 PR middle-end/60013
32020 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32023 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32025 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32026 CODE_FOR_altivec_vpku[hw]um to
32027 CODE_FOR_altivec_vpku[hw]um_direct.
32028 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32029 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32030 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32031 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32033 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32035 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32036 generation for -maltivec=be.
32037 (altivec_vsumsws): Simplify redundant test.
32039 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32041 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32042 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32043 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32044 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32045 gen_altivec_vpkuwum.
32046 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32048 (altivec_vpks<VI_char>ss): Likewise.
32049 (altivec_vpks<VI_char>us): Likewise.
32050 (altivec_vpku<VI_char>us): Likewise.
32051 (altivec_vpku<VI_char>um): Likewise.
32052 (altivec_vpku<VI_char>um_direct): New (copy of
32053 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32055 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32056 target is little endian and -maltivec=be is not specified.
32057 (*altivec_vupkhs<VU_char>_direct): New (copy of
32058 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32059 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32060 target is little endian and -maltivec=be is not specified.
32061 (*altivec_vupkls<VU_char>_direct): New (copy of
32062 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32063 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32064 little endian and -maltivec=be is not specified.
32065 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32066 little endian and -maltivec=be is not specified.
32068 2014-02-05 Richard Henderson <rth@redhat.com>
32071 * combine-stack-adj.c: Revert r206943.
32072 * sched-int.h (struct deps_desc): Add last_args_size.
32073 * sched-deps.c (init_deps): Initialize it.
32074 (sched_analyze_insn): Add OUTPUT dependencies between insns that
32075 contain REG_ARGS_SIZE notes.
32077 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32079 * lto-cgraph.c (asm_nodes_output): Make global.
32080 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32081 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32082 (driver_handle_option): Handle OPT_fwpa.
32084 2014-02-05 Jakub Jelinek <jakub@redhat.com>
32087 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32088 a comment typo and formatting issue. If odr_hash hasn't been
32089 created, return vNULL and set *completep to false.
32091 PR middle-end/57499
32092 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32093 bb with no successors.
32095 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
32098 * doc/invoke.texi (-march): Clarify documentation for ARM.
32099 (-mtune): Likewise.
32102 2014-02-05 Richard Biener <rguenther@suse.de>
32104 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32105 when not vectorizing because of too many alias checks.
32106 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32107 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32109 2014-02-05 Nick Clifton <nickc@redhat.com>
32111 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32112 accept extended registers in any mode when compiling for the MN10300.
32114 2014-02-05 Yury Gribov <y.gribov@samsung.com>
32116 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32117 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32118 sanitization attributes.
32119 (can_inline_edge_p): Likewise.
32120 (sanitize_attrs_match_for_inline_p): New function.
32122 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32124 * ipa-prop.c (detect_type_change): Shor circuit testing of
32125 type changes on THIS pointer.
32127 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
32130 * config/pa/pa.c (legitimize_tls_address): Return original address
32131 if not passed a SYMBOL_REF rtx.
32132 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32134 (pa_emit_move_sequence): Simplify TLS source operands.
32135 (pa_legitimate_constant_p): Reject all TLS constants.
32136 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32137 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32139 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32141 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32142 groups when we know they are controlled by LTO.
32143 * varasm.c (default_binds_local_p_1): If object is in other partition,
32144 it will be resolved locally.
32146 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32148 * config/host-linux.c (linux_gt_pch_use_address): Don't
32149 use SSIZE_MAX because it is not always defined.
32151 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
32154 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32155 threshold for pseudo splitting.
32156 (update_ebb_live_info): Process call argument hard registers and
32157 hard registers from insn definition too.
32158 (max_small_class_regs_num): New constant.
32159 (inherit_in_ebb): Update live hard regs through EBBs. Update
32160 reloads_num only for small register classes. Don't split for
32163 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
32166 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
32169 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32171 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
32172 visibility is safe.
32174 2014-02-04 Marek Polacek <polacek@redhat.com>
32176 * gdbinit.in (pel): Define.
32178 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32180 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
32183 2014-02-04 Richard Biener <rguenther@suse.de>
32186 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
32187 in function context local.
32188 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
32189 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
32190 similar to LTO_imported_decl_ref.
32192 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32194 PR tree-optimization/60002
32195 * cgraphclones.c (build_function_decl_skip_args): Clear
32196 DECL_LANG_SPECIFIC.
32198 PR tree-optimization/60023
32199 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
32200 false to gsi_replace.
32201 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
32202 has been in some EH region and vec_stmt could throw, add
32203 vec_stmt into the same EH region.
32204 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
32205 has no lhs, ignore it.
32206 * internal-fn.c (expand_MASK_LOAD): Likewise.
32209 * tree-inline.c (copy_forbidden): Fail for
32210 __attribute__((optimize (0))) functions.
32213 * omp-low.c (simd_clone_struct_copy): If from->inbranch
32214 is set, copy one less argument.
32215 (expand_simd_clones): Don't subtract clone_info->inbranch
32216 from simd_clone_struct_alloc argument.
32218 PR rtl-optimization/57915
32219 * recog.c (simplify_while_replacing): If all unary/binary/relational
32220 operation arguments are constant, attempt to simplify those.
32222 PR middle-end/59261
32223 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
32224 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
32226 2014-02-04 Richard Biener <rguenther@suse.de>
32228 PR tree-optimization/60012
32229 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
32230 TBAA disambiguation to all DDRs.
32232 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32235 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
32236 (LINK_SPEC): Use it for -shared, -shared-libgcc.
32238 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32241 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
32243 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32245 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
32246 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
32248 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32251 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
32252 to figure out targets of polymorphic calls with known decl.
32253 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32254 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
32255 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
32256 (get_polymorphic_call_info): ... here.
32257 (get_polymorphic_call_info_from_invariant): New function.
32259 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32261 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
32262 lookup via vtable pointer; check for type consistency
32263 and turn inconsitent facts into UNREACHABLE.
32264 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32265 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
32266 type inconsistent querries; return UNREACHABLE instead.
32268 2014-02-03 Richard Henderson <rth@twiddle.net>
32271 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
32272 already processed this node.
32273 (normalize_one_pred_1): Pass along mark_set.
32274 (normalize_one_pred): Create and destroy a pointer_set_t.
32275 (normalize_one_pred_chain): Likewise.
32277 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
32279 PR gcov-profile/58602
32280 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
32282 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32285 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
32286 -fno-devirtualize; try to devirtualize by the knowledge of
32287 virtual table pointer given by aggregate propagation.
32288 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32289 (ipa_print_node_jump_functions): Dump also offset that
32290 is relevant for polymorphic calls.
32291 (determine_known_aggregate_parts): Add arg_type parameter; use it
32292 instead of determining the type from pointer type.
32293 (ipa_compute_jump_functions_for_edge): Update call of
32294 determine_known_aggregate_parts.
32295 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
32296 (gimple_get_virt_method_for_binfo): ... here; simplify using
32297 vtable_pointer_value_to_vtable.
32298 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
32299 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
32300 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
32301 (vtable_pointer_value_to_vtable): Break out from ...; handle also
32303 (vtable_pointer_value_to_binfo): ... here.
32304 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
32306 2014-02-03 Teresa Johnson <tejohnson@google.com>
32308 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
32309 redef of outer loop index variable.
32311 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
32315 * doc/extend.texi (Function Attributes): Typo.
32317 2014-02-03 Cong Hou <congh@google.com>
32319 PR tree-optimization/60000
32320 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
32321 if the vectorized statement is a store. A store statement can only
32322 appear at the end of pattern statements.
32324 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
32326 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
32327 (ix86_option_override_internal): Default long double to 64-bit for
32328 32-bit Bionic and to 128-bit for 64-bit Bionic.
32330 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
32331 TARGET_LONG_DOUBLE_128 is true.
32332 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
32334 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
32335 (mlong-double-64): Negate -mlong-double-128.
32336 (mlong-double-128): New option.
32338 * config/i386/i386-c.c (ix86_target_macros): Define
32339 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
32341 * doc/invoke.texi: Document -mlong-double-128.
32343 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
32345 PR rtl-optimization/60024
32346 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
32348 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
32350 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
32352 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
32354 PR rtl-optimization/57662
32355 * sel-sched.c (code_motion_path_driver): Do not mark already not
32356 existing blocks in the visiting bitmap.
32358 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
32360 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
32361 on the insn being emitted.
32363 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
32364 Will Deacon <will.deacon@arm.com>
32366 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
32368 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32370 * config/arm/arm-tables.opt: Regenerate.
32372 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32374 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
32375 for vector types other than V16QImode.
32376 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
32377 define_expand, and call altivec_expand_vec_perm_le when producing
32378 code with little endian element order.
32379 (*altivec_vperm_<mode>_internal): New insn having previous
32380 behavior of altivec_vperm_<mode>.
32381 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
32382 altivec_expand_vec_perm_le when producing code with little endian
32384 (*altivec_vperm_<mode>_uns_internal): New insn having previous
32385 behavior of altivec_vperm_<mode>_uns.
32387 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32389 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
32390 (altivec_vsumsws): Add handling for -maltivec=be with a little
32392 (altivec_vsumsws_direct): New.
32393 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
32394 gen_altivec_vsumsws.
32396 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
32398 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
32399 vtable_pointer_value_to_binfo): New functions.
32400 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
32401 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
32403 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
32405 * config/nios2/nios2.md (load_got_register): Initialize GOT
32406 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
32407 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
32409 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
32411 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
32412 preserverd by passthrough, do not propagate the type.
32414 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
32416 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
32417 (mips_atomic_assign_expand_fenv): New function.
32418 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
32420 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
32422 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
32423 (__builtin_mips_set_fcsr): Likewise.
32424 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
32425 MIPS_USI_FTYPE_VOID.
32426 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
32427 (mips16_expand_set_fcsr): Likewise.
32428 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
32429 (mips16_set_fcsr_stub): Likewise.
32430 (mips16_get_fcsr_one_only_stub): New class.
32431 (mips16_set_fcsr_one_only_stub): Likewise.
32432 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
32433 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
32434 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
32435 (hard_float): New availability predicate.
32436 (mips_builtins): Add get_fcsr and set_fcsr.
32437 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
32438 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
32439 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
32440 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
32441 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
32444 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
32446 * config/mips/mips.c (mips_one_only_stub): New class.
32447 (mips_need_mips16_rdhwr_p): Replace with...
32448 (mips16_rdhwr_stub): ...this new variable.
32449 (mips16_stub_call_address): New function.
32450 (mips16_rdhwr_one_only_stub): New class.
32451 (mips_expand_thread_pointer): Use mips16_stub_call_address.
32452 (mips_output_mips16_rdhwr): Delete.
32453 (mips_finish_stub): New function.
32454 (mips_code_end): Use it to handle rdhwr stubs.
32456 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
32459 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
32460 when calculating size of integer atomic types.
32462 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
32464 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
32466 2014-02-01 Jakub Jelinek <jakub@redhat.com>
32468 PR tree-optimization/60003
32469 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
32470 * profile.c (branch_prob): Use gimple_call_builtin_p
32471 to check for BUILT_IN_SETJMP_RECEIVER.
32472 * tree-inline.c (copy_bb): Call notice_special_calls.
32474 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
32477 * lra-constraints.c (process_alt_operands): Update reload_sum only
32480 2014-01-31 Richard Henderson <rth@redhat.com>
32482 PR middle-end/60004
32483 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
32484 until after else_eh is processed.
32486 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
32488 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
32489 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
32490 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
32491 in smmintrin.h, remove them.
32492 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
32493 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
32494 * config/i386/i386.md (ROUND_SAE): Fix value.
32495 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
32496 (const48_operand): New.
32497 * config/i386/subst.md (round), (round_expand): Use
32498 const_4_or_8_to_11_operand.
32499 (round_saeonly), (round_saeonly_expand): Use const48_operand.
32501 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
32503 * config/i386/constraints.md (Yk): Swap meaning with k.
32504 * config/i386/i386.md (movhi_internal): Change Yk to k.
32505 (movqi_internal): Ditto.
32506 (*k<logic><mode>): Ditto.
32509 (kandn<mode>): Ditto.
32510 (*<code>hi_1): Ditto.
32511 (*<code>qi_1): Ditto.
32512 (kxnor<mode>): Ditto.
32513 (kortestzhi): Ditto.
32514 (kortestchi): Ditto.
32516 (*one_cmplhi2_1): Ditto.
32517 (*one_cmplqi2_1): Ditto.
32518 * config/i386/sse.md (): Change k to Yk.
32519 (avx512f_load<mode>_mask): Ditto.
32520 (avx512f_blendm<mode>): Ditto.
32521 (avx512f_store<mode>_mask): Ditto.
32522 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
32523 (avx512f_storedqu<mode>_mask): Ditto.
32524 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
32526 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
32527 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
32528 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
32529 (avx512f_maskcmp<mode>3): Ditto.
32530 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
32531 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
32532 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
32533 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
32534 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
32535 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
32536 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
32537 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
32538 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
32539 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
32540 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
32541 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
32542 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
32543 (vec_extract_lo_<mode>_maskm): Ditto.
32544 (vec_extract_hi_<mode>_maskm): Ditto.
32545 (avx512f_vternlog<mode>_mask): Ditto.
32546 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
32547 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
32548 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
32549 (avx512f_<code>v8div16qi2_mask): Ditto.
32550 (avx512f_<code>v8div16qi2_mask_store): Ditto.
32551 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
32552 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
32553 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
32554 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
32555 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32556 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32557 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32558 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32559 (avx512cd_maskb_vec_dupv8di): Ditto.
32560 (avx512cd_maskw_vec_dupv16si): Ditto.
32561 (avx512f_vpermi2var<mode>3_maskz): Ditto.
32562 (avx512f_vpermi2var<mode>3_mask): Ditto.
32563 (avx512f_vpermi2var<mode>3_mask): Ditto.
32564 (avx512f_vpermt2var<mode>3_maskz): Ditto.
32565 (*avx512f_gathersi<mode>): Ditto.
32566 (*avx512f_gathersi<mode>_2): Ditto.
32567 (*avx512f_gatherdi<mode>): Ditto.
32568 (*avx512f_gatherdi<mode>_2): Ditto.
32569 (*avx512f_scattersi<mode>): Ditto.
32570 (*avx512f_scatterdi<mode>): Ditto.
32571 (avx512f_compress<mode>_mask): Ditto.
32572 (avx512f_compressstore<mode>_mask): Ditto.
32573 (avx512f_expand<mode>_mask): Ditto.
32574 * config/i386/subst.md (mask): Change k to Yk.
32575 (mask_scalar_merge): Ditto.
32578 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
32580 * doc/extend.texi (Vector Extensions): Document ?: in C++.
32582 2014-01-31 Richard Biener <rguenther@suse.de>
32584 PR middle-end/59990
32585 * builtins.c (fold_builtin_memory_op): Make sure to not
32586 use a floating-point mode or a boolean or enumeral type for
32587 the copy operation.
32589 2014-01-30 DJ Delorie <dj@redhat.com>
32591 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
32592 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
32593 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
32594 whenever main() has an epilogue.
32596 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32598 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
32599 unused variable "field".
32600 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
32601 (vsx_mergeh_<mode>): Likewise.
32602 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
32603 (altivec_vmrghh): Likewise.
32604 (altivec_vmrghw): Likewise.
32605 (altivec_vmrglb): Likewise.
32606 (altivec_vmrglh): Likewise.
32607 (altivec_vmrglw): Likewise.
32608 (altivec_vspltb): Add missing uses.
32609 (altivec_vsplth): Likewise.
32610 (altivec_vspltw): Likewise.
32611 (altivec_vspltsf): Likewise.
32613 2014-01-30 Jakub Jelinek <jakub@redhat.com>
32616 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
32617 frame related instructions.
32619 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
32621 PR rtl-optimization/59959
32622 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
32623 any reload of register whose subreg is invalid.
32625 2014-01-30 Jakub Jelinek <jakub@redhat.com>
32627 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
32628 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
32629 Add missing return type - void.
32631 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32633 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
32634 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
32635 remove element index adjustment for endian (now handled in vsx.md
32637 (altivec_expand_vec_perm_const): Use
32638 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
32639 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
32640 (vsx_xxspltw_<mode>): Adjust element index for little endian.
32641 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
32642 define_expand and a new define_insn *altivec_vspltb_internal;
32643 adjust for -maltivec=be on a little endian target.
32644 (altivec_vspltb_direct): New.
32645 (altivec_vsplth): Divide into a define_expand and a new
32646 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
32647 little endian target.
32648 (altivec_vsplth_direct): New.
32649 (altivec_vspltw): Divide into a define_expand and a new
32650 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
32651 little endian target.
32652 (altivec_vspltw_direct): New.
32653 (altivec_vspltsf): Divide into a define_expand and a new
32654 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
32655 a little endian target.
32657 2014-01-30 Richard Biener <rguenther@suse.de>
32659 PR tree-optimization/59993
32660 * tree-ssa-forwprop.c (associate_pointerplus): Check we
32661 can propagate form the earlier stmt and avoid the transform
32662 when the intermediate result is needed.
32664 2014-01-30 Alangi Derick <alangiderick@gmail.com>
32666 * README.Portability: Fix typo.
32668 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
32670 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
32671 comparison_operator with ordered_comparison_operator.
32673 2014-01-30 Nick Clifton <nickc@redhat.com>
32675 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
32676 Rename to mn10300_store_multiple_regs.
32677 * config/mn10300/mn10300.c: Likewise.
32678 * config/mn10300/mn10300.md (store_movm): Fix typo: call
32679 store_multiple_regs.
32680 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
32681 Call mn10300_store_multiple_regs.
32683 2014-01-30 Nick Clifton <nickc@redhat.com>
32684 DJ Delorie <dj@redhat.com>
32686 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
32687 %fp 2 to keep registers after it properly word-aligned.
32688 (rl78_alloc_physical_registers_umul): Handle the case where both
32689 input operands are the same.
32691 2014-01-30 Richard Biener <rguenther@suse.de>
32693 PR tree-optimization/59903
32694 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
32697 2014-01-30 Jason Merrill <jason@redhat.com>
32700 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
32703 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
32705 2014-01-30 Richard Biener <rguenther@suse.de>
32707 PR tree-optimization/59951
32708 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
32710 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
32713 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
32714 SFmode to DFmode case.
32716 2014-01-29 DJ Delorie <dj@redhat.com>
32718 * config/msp430/msp430.opt (-minrt): New.
32719 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
32721 (ENDFILE_SPEC): Likewise.
32723 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
32725 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
32726 (estimate_function_body_sizes): Use it.
32728 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
32731 * dwarf2out.c (is_cxx_auto): New.
32732 (is_base_type): Use it.
32733 (gen_type_die_with_usage): Likewise.
32735 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32737 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
32738 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
32739 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
32740 -maltivec=be with LE targets.
32741 (vsx_mergeh_<mode>): Likewise.
32742 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
32743 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
32744 (altivec_vmrghb): Replace with define_expand and new
32745 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
32746 (altivec_vmrghb_direct): New define_insn.
32747 (altivec_vmrghh): Replace with define_expand and new
32748 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
32749 (altivec_vmrghh_direct): New define_insn.
32750 (altivec_vmrghw): Replace with define_expand and new
32751 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
32752 (altivec_vmrghw_direct): New define_insn.
32753 (*altivec_vmrghsf): Adjust for endianness.
32754 (altivec_vmrglb): Replace with define_expand and new
32755 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
32756 (altivec_vmrglb_direct): New define_insn.
32757 (altivec_vmrglh): Replace with define_expand and new
32758 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
32759 (altivec_vmrglh_direct): New define_insn.
32760 (altivec_vmrglw): Replace with define_expand and new
32761 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
32762 (altivec_vmrglw_direct): New define_insn.
32763 (*altivec_vmrglsf): Adjust for endianness.
32764 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
32765 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
32766 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
32767 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
32768 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
32769 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
32770 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
32771 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
32773 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
32775 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
32776 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
32779 2014-01-29 Richard Biener <rguenther@suse.de>
32781 PR tree-optimization/58742
32782 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
32783 associate_pointerplus_align.
32784 (associate_pointerplus_diff): New function.
32785 (associate_pointerplus): Likewise. Call associate_pointerplus_align
32786 and associate_pointerplus_diff.
32788 2014-01-29 Richard Biener <rguenther@suse.de>
32790 * lto-streamer.h (LTO_major_version): Bump to 3.
32791 (LTO_minor_version): Reset to 0.
32793 2014-01-29 Renlin Li <Renlin.Li@arm.com>
32795 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
32796 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
32797 (arm_file_start): Generate correct asm header for armv7ve.
32798 * config/arm/bpabi.h: Add multilib support for armv7ve.
32799 * config/arm/driver-arm.c: Change the architectures of cortex-a7
32800 and cortex-a15 to armv7ve.
32801 * config/arm/t-aprofile: Add multilib support for armv7ve.
32802 * doc/invoke.texi: Document -march=armv7ve.
32804 2014-01-29 Richard Biener <rguenther@suse.de>
32806 PR tree-optimization/58742
32807 * tree-ssa-forwprop.c (associate_plusminus): Return true
32808 if we changed sth, defer EH cleanup to ...
32809 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
32810 (simplify_mult): New function.
32812 2014-01-29 Jakub Jelinek <jakub@redhat.com>
32814 PR middle-end/59917
32815 PR tree-optimization/59920
32816 * tree.c (build_common_builtin_nodes): Remove
32817 __builtin_setjmp_dispatcher initialization.
32818 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
32819 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
32820 instead of gsi_after_labels + manually skipping debug stmts.
32821 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
32822 ignore bbs with IFN_ABNORMAL_DISPATCHER.
32823 * tree-inline.c (copy_edges_for_bb): Remove
32824 can_make_abnormal_goto argument, instead add abnormal_goto_dest
32825 argument. Ignore computed_goto_p stmts. Don't call
32826 make_abnormal_goto_edges. If a call might need abnormal edges
32827 for non-local gotos, see if it already has an edge to
32828 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
32829 with true argument, don't do anything then, otherwise add
32830 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
32831 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
32833 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
32834 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
32835 (lower_stmt): Don't set data->calls_builtin_setjmp.
32836 (lower_builtin_setjmp): Adjust comment.
32837 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
32838 * tree-cfg.c (found_computed_goto): Remove.
32839 (factor_computed_gotos): Remove.
32840 (make_goto_expr_edges): Return bool, true for computed gotos.
32841 Don't call make_abnormal_goto_edges.
32842 (build_gimple_cfg): Don't set found_computed_goto, don't call
32843 factor_computed_gotos.
32844 (computed_goto_p): No longer static.
32845 (make_blocks): Don't set found_computed_goto.
32846 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
32847 (make_edges): If make_goto_expr_edges returns true, push bb
32848 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
32849 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
32850 vector. Record mapping between bbs and OpenMP regions if there
32851 are any, adjust make_gimple_omp_edges caller. Call
32852 handle_abnormal_edges.
32853 (make_abnormal_goto_edges): Remove.
32854 * tree-cfg.h (make_abnormal_goto_edges): Remove.
32855 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
32856 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
32857 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
32858 * internal-fn.def (ABNORMAL_DISPATCHER): New.
32859 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
32860 filling *region also set *region_idx to (*region)->entry->index.
32863 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
32864 For REGs set ORIGINAL_REGNO.
32866 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
32868 * doc/md.texi: Mention that a target shouldn't implement
32869 vec_widen_(s|u)mul_even/odd pair if it is less efficient
32872 2014-01-29 Jakub Jelinek <jakub@redhat.com>
32874 PR tree-optimization/59594
32875 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
32876 a copy of the datarefs vector rather than the vector itself.
32878 2014-01-28 Jason Merrill <jason@redhat.com>
32881 * dwarf2out.c (auto_die): New static.
32882 (gen_type_die_with_usage): Handle C++1y 'auto'.
32883 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
32886 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
32889 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
32890 (SPEC_X32): Likewise.
32891 (SPEC_64): Likewise.
32892 * config/i386/i386.c (ix86_option_override_internal): Turn off
32893 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
32895 (x86_file_start): Output .code16gcc for TARGET_16BIT.
32896 * config/i386/i386.h (TARGET_16BIT): New macro.
32897 (TARGET_16BIT_P): Likewise.
32898 * config/i386/i386.opt: Add m16.
32899 * doc/invoke.texi: Document -m16.
32901 2014-01-28 Jakub Jelinek <jakub@redhat.com>
32903 PR preprocessor/59935
32904 * input.c (location_get_source_line): Bail out on when line number
32905 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
32907 2014-01-28 Richard Biener <rguenther@suse.de>
32909 PR tree-optimization/58742
32910 * tree-ssa-forwprop.c (associate_plusminus): Handle
32911 pointer subtraction of the form (T)(P + A) - (T)P.
32913 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32915 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
32918 2014-01-28 Richard Biener <rguenther@suse.de>
32921 2014-01-28 Richard Biener <rguenther@suse.de>
32923 PR rtl-optimization/45364
32924 PR rtl-optimization/59890
32925 * var-tracking.c (local_get_addr_clear_given_value): Handle
32926 already cleared slot.
32927 (val_reset): Handle not allocated local_get_addr_cache.
32928 (vt_find_locations): Use post-order on the inverted CFG.
32930 2014-01-28 Richard Biener <rguenther@suse.de>
32932 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
32934 2014-01-28 Richard Biener <rguenther@suse.de>
32936 PR rtl-optimization/45364
32937 PR rtl-optimization/59890
32938 * var-tracking.c (local_get_addr_clear_given_value): Handle
32939 already cleared slot.
32940 (val_reset): Handle not allocated local_get_addr_cache.
32941 (vt_find_locations): Use post-order on the inverted CFG.
32943 2014-01-28 Alan Modra <amodra@gmail.com>
32945 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
32946 * configure.ac <recursive call for build != host>: Define
32947 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
32948 and LD_FOR_BUILD too.
32949 * configure: Regenerate.
32951 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
32953 * config/i386/i386.c (get_builtin_code_for_version): Separate
32954 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
32955 Broadwell from Haswell.
32957 2014-01-27 Steve Ellcey <sellcey@mips.com>
32959 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32960 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
32961 * config/mips/mips.c (mips_option_override): Change setting
32963 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
32964 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
32965 Change from Mask to Var.
32967 2014-01-27 Jeff Law <law@redhat.com>
32969 * ipa-inline.c (inline_small_functions): Fix typo.
32971 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
32973 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
32974 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
32975 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
32976 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
32977 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
32978 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
32979 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
32980 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
32981 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
32982 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
32983 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
32984 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
32985 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
32986 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
32987 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
32988 (_mm512_storeu_epi64): Ditto.
32989 (_mm512_cmpge_epi32_mask): Ditto.
32990 (_mm512_cmpge_epu32_mask): Ditto.
32991 (_mm512_cmpge_epi64_mask): Ditto.
32992 (_mm512_cmpge_epu64_mask): Ditto.
32993 (_mm512_cmple_epi32_mask): Ditto.
32994 (_mm512_cmple_epu32_mask): Ditto.
32995 (_mm512_cmple_epi64_mask): Ditto.
32996 (_mm512_cmple_epu64_mask): Ditto.
32997 (_mm512_cmplt_epi32_mask): Ditto.
32998 (_mm512_cmplt_epu32_mask): Ditto.
32999 (_mm512_cmplt_epi64_mask): Ditto.
33000 (_mm512_cmplt_epu64_mask): Ditto.
33001 (_mm512_cmpneq_epi32_mask): Ditto.
33002 (_mm512_cmpneq_epu32_mask): Ditto.
33003 (_mm512_cmpneq_epi64_mask): Ditto.
33004 (_mm512_cmpneq_epu64_mask): Ditto.
33005 (_mm512_expand_pd): Ditto.
33006 (_mm512_expand_ps): Ditto.
33007 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33008 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33009 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33010 * config/i386/i386.c (ix86_builtins): Add
33011 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33012 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33013 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33014 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33015 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33016 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33017 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33018 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33019 IX86_BUILTIN_PMOVUSQW512_MEM.
33020 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33021 __builtin_ia32_pmovsqd512mem_mask,
33022 __builtin_ia32_pmovqd512mem_mask,
33023 __builtin_ia32_pmovusqw512mem_mask,
33024 __builtin_ia32_pmovsqw512mem_mask,
33025 __builtin_ia32_pmovqw512mem_mask,
33026 __builtin_ia32_pmovusdw512mem_mask,
33027 __builtin_ia32_pmovsdw512mem_mask,
33028 __builtin_ia32_pmovdw512mem_mask,
33029 __builtin_ia32_pmovqb512mem_mask,
33030 __builtin_ia32_pmovusqb512mem_mask,
33031 __builtin_ia32_pmovsqb512mem_mask,
33032 __builtin_ia32_pmovusdb512mem_mask,
33033 __builtin_ia32_pmovsdb512mem_mask,
33034 __builtin_ia32_pmovdb512mem_mask.
33035 (bdesc_args): Add __builtin_ia32_expanddf512,
33036 __builtin_ia32_expandsf512.
33037 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33038 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33039 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33040 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33041 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33042 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33043 (avx512f_<code>v8div16qi2_mask_store): This.
33044 (avx512f_expand<mode>): New.
33046 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
33048 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33050 (_mm512_mask_prefetch_i64gather_pd): Ditto.
33051 (_mm512_prefetch_i32scatter_pd): Ditto.
33052 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33053 (_mm512_prefetch_i64scatter_pd): Ditto.
33054 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33055 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33056 (_mm512_mask_prefetch_i64gather_ps): Ditto.
33057 (_mm512_prefetch_i32scatter_ps): Ditto.
33058 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33059 (_mm512_prefetch_i64scatter_ps): Ditto.
33060 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33061 * config/i386/i386-builtin-types.def: Define
33062 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33063 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33064 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33065 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33066 IX86_BUILTIN_SCATTERPFQPD.
33067 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33068 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33069 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33070 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33071 __builtin_ia32_scatterpfqps.
33072 (ix86_expand_builtin): Expand new built-ins.
33073 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33074 fix memory access data type.
33075 (*avx512pf_gatherpf<mode>_mask): Ditto.
33076 (*avx512pf_gatherpf<mode>): Ditto.
33077 (avx512pf_scatterpf<mode>): Ditto.
33078 (*avx512pf_scatterpf<mode>_mask): Ditto.
33079 (*avx512pf_scatterpf<mode>): Ditto.
33080 (GATHER_SCATTER_SF_MEM_MODE): New.
33081 (avx512pf_gatherpf<mode>df): Ditto.
33082 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33083 (*avx512pf_scatterpf<mode>df): Ditto.
33085 2014-01-27 Jakub Jelinek <jakub@redhat.com>
33088 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33089 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33092 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33094 * common/config/arm/arm-common.c
33095 (arm_rewrite_mcpu): Handle multiple names.
33097 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33099 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33101 * gimple-builder.h (create_gimple_tmp): Delete.
33103 2014-01-27 Christian Bruel <christian.bruel@st.com>
33105 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33108 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
33110 * config/pa/pa.md (call): Generate indirect long calls to non-local
33111 functions when outputing 32-bit code.
33112 (call_value): Likewise except for special call to buggy powf function.
33114 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33115 portable runtime and PIC indirect calls.
33116 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33117 and PIC call sequences. Use ldo instead of blr to set return register
33118 in PIC call sequence.
33120 2014-01-25 Walter Lee <walt@tilera.com>
33122 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33123 avoid clobbering a live register.
33125 2014-01-25 Walter Lee <walt@tilera.com>
33127 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33128 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33129 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33130 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33132 2014-01-25 Walter Lee <walt@tilera.com>
33134 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33135 arguments on even registers.
33136 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33138 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33139 (BIGGEST_ALIGNMENT): Ditto.
33140 (BIGGEST_FIELD_ALIGNMENT): Ditto.
33142 2014-01-25 Walter Lee <walt@tilera.com>
33144 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33145 insns before bundling.
33146 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33148 2014-01-25 Walter Lee <walt@tilera.com>
33150 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33151 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33152 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33154 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33156 * config/mips/constraints.md (kl): Delete.
33157 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33158 define expands, using...
33159 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33160 instructions for MIPS16.
33161 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
33162 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
33164 2014-01-25 Walter Lee <walt@tilera.com>
33166 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
33170 2014-01-25 Walter Lee <walt@tilera.com>
33172 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
33173 (TARGET_EXPAND_TO_RTL_HOOK): Define.
33175 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33177 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
33180 2014-01-25 Jakub Jelinek <jakub@redhat.com>
33182 * print-rtl.c (in_call_function_usage): New var.
33183 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
33184 EXPR_LIST mode as mode and not as reg note name.
33186 PR middle-end/59561
33187 * cfgloopmanip.c (copy_loop_info): If
33188 loop->warned_aggressive_loop_optimizations, make sure
33189 the flag is set in target loop too.
33191 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
33193 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
33195 * builtins.def: Likewise.
33196 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
33197 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
33198 * ira.c (ira_setup_eliminable_regset): Likewise.
33199 * omp-low.c (gate_expand_omp): Likewise.
33200 (execute_lower_omp): Likewise.
33201 (diagnose_sb_0): Likewise.
33202 (gate_diagnose_omp_blocks): Likewise.
33203 (simd_clone_clauses_extract): Likewise.
33206 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33208 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
33209 correction for little endian...
33210 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
33213 2014-01-24 Jeff Law <law@redhat.com>
33215 PR tree-optimization/59919
33216 * tree-vrp.c (find_assert_locations_1): Do not register asserts
33217 for non-returning calls.
33219 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
33221 * common/config/aarch64/aarch64-common.c
33222 (aarch64_rewrite_mcpu): Handle multiple names.
33223 * config/aarch64/aarch64.h
33224 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33226 2014-01-24 Dodji Seketeli <dodji@redhat.com>
33228 * input.c (add_file_to_cache_tab): Handle the case where fopen
33231 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
33234 * config/i386/i386.md (pushsf splitter): Get stack adjustment
33235 from push operand if code of push isn't PRE_DEC.
33237 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
33240 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
33241 -mquad-memory-atomic. Update -mquad-memory documentation to say
33242 it is only used for non-atomic loads/stores.
33244 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
33245 -mquad-memory or -mquad-memory-atomic switches.
33247 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
33248 -mquad-memory-atomic to ISA 2.07 support.
33250 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
33251 to separate support of normal quad word memory operations (ldq, stq)
33252 from the atomic quad word memory operations.
33254 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
33255 support to separate non-atomic quad word operations from atomic
33256 quad word operations. Disable non-atomic quad word operations in
33257 little endian mode so that we don't have to swap words after the
33258 load and before the store.
33259 (quad_load_store_p): Add comment about atomic quad word support.
33260 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
33261 options printed with -mdebug=reg.
33263 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
33264 -mquad-memory-atomic as the test for whether we have quad word
33265 atomic instructions.
33266 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
33267 or -mp8-vector are used, allow byte/half-word atomic operations.
33269 * config/rs6000/sync.md (load_lockedti): Insure that the address
33270 is a proper indexed or indirect address for the lqarx instruction.
33271 On little endian systems, swap the hi/lo registers after the lqarx
33273 (load_lockedpti): Use indexed_or_indirect_operand predicate to
33274 insure the address is valid for the lqarx instruction.
33275 (store_conditionalti): Insure that the address is a proper indexed
33276 or indirect address for the stqcrx. instruction. On little endian
33277 systems, swap the hi/lo registers before doing the stqcrx.
33279 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
33280 insure the address is valid for the stqcrx. instruction.
33282 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
33283 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
33284 type of quad memory support is available.
33286 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
33288 PR regression/59915
33289 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
33290 there is a danger of looping.
33292 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
33294 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
33295 force flag_ira_loop_pressure if set via command line.
33297 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
33299 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
33300 (ashr_simd): New builtin handling DI mode.
33301 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
33302 (aarch64_sshr_simddi): New match pattern.
33303 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
33304 (vshrd_n_s64): Likewise.
33305 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
33307 2014-01-23 Nick Clifton <nickc@redhat.com>
33309 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
33310 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
33311 favour of mcu specific scripts.
33312 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
33315 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
33316 Alex Velenko <Alex.Velenko@arm.com>
33318 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
33319 (vaddv_s16): Likewise.
33320 (vaddv_s32): Likewise.
33321 (vaddv_u8): Likewise.
33322 (vaddv_u16): Likewise.
33323 (vaddv_u32): Likewise.
33324 (vaddvq_s8): Likewise.
33325 (vaddvq_s16): Likewise.
33326 (vaddvq_s32): Likewise.
33327 (vaddvq_s64): Likewise.
33328 (vaddvq_u8): Likewise.
33329 (vaddvq_u16): Likewise.
33330 (vaddvq_u32): Likewise.
33331 (vaddvq_u64): Likewise.
33332 (vaddv_f32): Likewise.
33333 (vaddvq_f32): Likewise.
33334 (vaddvq_f64): Likewise.
33335 (vmaxv_f32): Likewise.
33336 (vmaxv_s8): Likewise.
33337 (vmaxv_s16): Likewise.
33338 (vmaxv_s32): Likewise.
33339 (vmaxv_u8): Likewise.
33340 (vmaxv_u16): Likewise.
33341 (vmaxv_u32): Likewise.
33342 (vmaxvq_f32): Likewise.
33343 (vmaxvq_f64): Likewise.
33344 (vmaxvq_s8): Likewise.
33345 (vmaxvq_s16): Likewise.
33346 (vmaxvq_s32): Likewise.
33347 (vmaxvq_u8): Likewise.
33348 (vmaxvq_u16): Likewise.
33349 (vmaxvq_u32): Likewise.
33350 (vmaxnmv_f32): Likewise.
33351 (vmaxnmvq_f32): Likewise.
33352 (vmaxnmvq_f64): Likewise.
33353 (vminv_f32): Likewise.
33354 (vminv_s8): Likewise.
33355 (vminv_s16): Likewise.
33356 (vminv_s32): Likewise.
33357 (vminv_u8): Likewise.
33358 (vminv_u16): Likewise.
33359 (vminv_u32): Likewise.
33360 (vminvq_f32): Likewise.
33361 (vminvq_f64): Likewise.
33362 (vminvq_s8): Likewise.
33363 (vminvq_s16): Likewise.
33364 (vminvq_s32): Likewise.
33365 (vminvq_u8): Likewise.
33366 (vminvq_u16): Likewise.
33367 (vminvq_u32): Likewise.
33368 (vminnmv_f32): Likewise.
33369 (vminnmvq_f32): Likewise.
33370 (vminnmvq_f64): Likewise.
33372 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
33374 * config/aarch64/aarch64-simd.md
33375 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
33376 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
33377 (*aarch64_mul3_elt<mode>): Likewise.
33378 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
33379 (*aarch64_mul3_elt_to_64v2df): Likewise.
33380 (*aarch64_mla_elt<mode>): Likewise.
33381 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
33382 (*aarch64_mls_elt<mode>): Likewise.
33383 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
33384 (*aarch64_fma4_elt<mode>): Likewise.
33385 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
33386 (*aarch64_fma4_elt_to_64v2df): Likewise.
33387 (*aarch64_fnma4_elt<mode>): Likewise.
33388 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
33389 (*aarch64_fnma4_elt_to_64v2df): Likewise.
33390 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
33391 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
33392 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
33393 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
33394 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
33395 (aarch64_sqdmull_lane<mode>_internal): Likewise.
33396 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
33398 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
33400 * config/aarch64/aarch64-simd.md
33401 (aarch64_be_checked_get_lane<mode>): New define_expand.
33402 * config/aarch64/aarch64-simd-builtins.def
33403 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
33404 New builtin definition.
33405 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
33406 Use new safe be builtin.
33408 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
33410 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
33412 (aarch64_be_st1<mode>): Likewise.
33413 (aarch_ld1<VALL:mode>): Define_expand modified.
33414 (aarch_st1<VALL:mode>): Likewise.
33415 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
33416 (UNSPEC_ST1): Likewise.
33418 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
33420 * config/microblaze/microblaze.md: Add trap insn and attribute
33422 2014-01-23 Dodji Seketeli <dodji@redhat.com>
33424 PR preprocessor/58580
33425 * input.h (location_get_source_line): Take an additional line_size
33427 (void diagnostics_file_cache_fini): Declare new function.
33428 * input.c (struct fcache): New type.
33429 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
33430 New static constants.
33431 (diagnostic_file_cache_init, total_lines_num)
33432 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
33433 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
33434 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
33435 (get_next_line, read_next_line, goto_next_line, read_line_num):
33436 New static function definitions.
33437 (diagnostic_file_cache_fini): New function.
33438 (location_get_source_line): Take an additional output line_len
33439 parameter. Re-write using lookup_or_add_file_to_cache_tab and
33441 * diagnostic.c (diagnostic_finish): Call
33442 diagnostic_file_cache_fini.
33443 (adjust_line): Take an additional input parameter for the length
33444 of the line, rather than calculating it with strlen.
33445 (diagnostic_show_locus): Adjust the use of
33446 location_get_source_line and adjust_line with respect to their new
33447 signature. While displaying a line now, do not stop at the first
33448 null byte. Rather, display the zero byte as a space and keep
33449 going until we reach the size of the line.
33450 * Makefile.in: Add vec.o to OBJS-libcommon
33452 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
33453 Ilya Tocar <ilya.tocar@intel.com>
33455 * config/i386/avx512fintrin.h (_mm512_kmov): New.
33456 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
33457 (__builtin_ia32_kmov16): Ditto.
33458 * config/i386/i386.md (UNSPEC_KMOV): New.
33461 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
33463 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
33464 (_mm512_storeu_si512): Ditto.
33466 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
33469 * rtl.h (get_referenced_operands): Declare.
33470 * recog.c (get_referenced_operands): New function.
33471 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
33472 operands have been referenced when recording LO_SUM references.
33474 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
33476 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
33478 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
33480 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
33481 Enable for generic and recent AMD targets.
33483 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
33485 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
33486 ARG_SIZE note when adjustment was eliminated.
33488 2014-01-22 Jeff Law <law@redhat.com>
33490 PR tree-optimization/59597
33491 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
33492 in file. Accept new argument REGISTERING and use it to modify
33493 dump output appropriately.
33494 (register_jump_thread): Corresponding changes.
33495 (mark_threaded_blocks): Reinstate code to cancel unprofitable
33496 thread paths involving joiner blocks. Add code to dump cancelled
33497 jump threading paths.
33499 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
33501 PR rtl-optimization/59477
33502 * lra-constraints.c (inherit_in_ebb): Process call for living hard
33503 regs. Update reloads_num and potential_reload_hard_regs for all insns.
33505 2014-01-22 Tom Tromey <tromey@redhat.com>
33507 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
33509 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
33511 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
33513 PR rtl-optimization/59896
33514 * lra-constraints.c (process_alt_operands): Check unused note for
33515 matched operands of insn with no output reloads.
33517 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
33519 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
33520 (mips_move_from_gpr_cost): Likewise.
33522 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
33524 PR rtl-optimization/59858
33525 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
33526 ira_class_hard_regs_num.
33527 (process_alt_operands): Increase reject for dying matched operand.
33529 2014-01-21 Jakub Jelinek <jakub@redhat.com>
33532 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
33533 smaller than size, perform several stores or loads and stores
33534 at dst + count - size to store or copy all of size bytes, rather
33535 than just last modesize bytes.
33537 2014-01-20 DJ Delorie <dj@redhat.com>
33539 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
33540 that CLOBBERs are REGs before propogating their values.
33542 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
33544 PR middle-end/59789
33545 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
33546 (cgraph_inline_failed_type): New function.
33547 * cgraph.h (DEFCIFCODE): Add type.
33548 (cgraph_inline_failed_type_t): New enum.
33549 (cgraph_inline_failed_type): New prototype.
33550 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
33551 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33552 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
33553 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
33554 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
33555 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
33556 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
33557 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
33558 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
33559 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
33560 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
33561 OPTIMIZATION_MISMATCH.
33562 * tree-inline.c (expand_call_inline): Emit errors during
33563 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
33565 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
33568 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
33569 mode attribute in insn output.
33571 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
33573 * output.h (output_constant): Delete.
33574 * varasm.c (output_constant): Make private.
33576 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
33578 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
33580 2014-01-20 Jakub Jelinek <jakub@redhat.com>
33582 PR middle-end/59860
33583 * tree.h (fold_builtin_strcat): New prototype.
33584 * builtins.c (fold_builtin_strcat): No longer static. Add len
33585 argument, if non-NULL, don't call c_strlen. Optimize
33586 directly into __builtin_memcpy instead of __builtin_strcpy.
33587 (fold_builtin_2): Adjust fold_builtin_strcat caller.
33588 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
33590 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
33592 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33593 for SImode_address_operand operands, having only a REG argument.
33595 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
33597 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
33598 loader name using mbig-endian.
33599 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
33601 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
33603 * doc/invoke.texi (-march): Clarify documentation for AArch64.
33604 (-mtune): Likewise.
33607 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
33609 * config/aarch64/aarch64-protos.h
33610 (aarch64_cannot_change_mode_class_ptr): Declare.
33611 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
33612 aarch64_cannot_change_mode_class_ptr): New.
33613 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
33614 backend hook aarch64_cannot_change_mode_class.
33616 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
33618 * common/config/aarch64/aarch64-common.c
33619 (aarch64_handle_option): Don't handle any option order logic here.
33620 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
33621 selected_cpu, warn on architecture version mismatch.
33622 (aarch64_override_options): Fix parsing order for option strings.
33624 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33625 Iain Sandoe <iain@codesourcery.com>
33628 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
33629 warning. Amend comment to reflect current functionality.
33631 2014-01-20 Richard Biener <rguenther@suse.de>
33633 PR middle-end/59860
33634 * builtins.c (fold_builtin_strcat): Remove case better handled
33635 by tree-ssa-strlen.c.
33637 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
33639 * config/aarch64/aarch64.opt
33640 (mcpu, march, mtune): Make case-insensitive.
33642 2014-01-20 Jakub Jelinek <jakub@redhat.com>
33645 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33646 if operands[1] is a REG or ZERO_EXTEND of a REG.
33648 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
33650 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
33652 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
33654 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
33655 long non-pic millicode calls.
33657 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33659 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
33661 2014-01-19 Kito Cheng <kito@0xlab.org>
33663 * builtins.c (expand_movstr): Check movstr expand done or fail.
33665 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
33666 H.J. Lu <hongjiu.lu@intel.com>
33669 * config/i386/i386.md (*lea<mode>): Zero-extend return register
33670 to DImode for zero-extended addresses.
33672 2014-01-19 Jakub Jelinek <jakub@redhat.com>
33674 PR rtl-optimization/57763
33675 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
33676 on the new indirect jump_insn and increment LABEL_NUSES (label).
33678 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
33682 * config.gcc (x86_archs): New variable.
33683 (x86_64_archs): Likewise.
33684 (x86_cpus): Likewise.
33685 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
33686 --with-arch/--with-cpu= options.
33687 Support --with-arch=/--with-cpu={nehalem,westmere,
33688 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
33690 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
33692 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
33693 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
33695 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
33697 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
33699 2014-01-18 Jakub Jelinek <jakub@redhat.com>
33702 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
33703 clear cpp_get_options (parse_in)->warn_unused_macros for
33704 ix86_target_macros_internal with cpp_define.
33706 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
33708 * jump.c (delete_related_insns): Keep (use (insn))s.
33709 * reorg.c (redundant_insn): Check for barriers too.
33711 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
33713 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
33715 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
33717 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
33718 call to $$dyncall when TARGET_LONG_CALLS is true.
33720 2014-01-17 Jeff Law <law@redhat.com>
33722 * ree.c (combine_set_extension): Temporarily disable test for
33723 changing number of hard registers.
33725 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
33727 PR middle-end/58125
33728 * ipa-inline-analysis.c (inline_free_summary):
33729 Do not free summary of aliases.
33731 2014-01-17 Jakub Jelinek <jakub@redhat.com>
33733 PR middle-end/59706
33734 * gimplify.c (gimplify_expr): Use create_tmp_var
33735 instead of create_tmp_var_raw. If cond doesn't have
33736 integral type, don't add the IFN_ANNOTATE builtin at all.
33738 2014-01-17 Martin Jambor <mjambor@suse.cz>
33741 * ipa-cp.c (prev_edge_clone): New variable.
33742 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
33743 Also resize prev_edge_clone vector.
33744 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
33745 (ipcp_edge_removal_hook): New function.
33746 (ipcp_driver): Register ipcp_edge_removal_hook.
33748 2014-01-17 Andrew Pinski <apinski@cavium.com>
33749 Steve Ellcey <sellcey@mips.com>
33752 * config/mips/mips.c (mips_print_operand): Check operand mode instead
33755 2014-01-17 Jeff Law <law@redhat.com>
33757 PR middle-end/57904
33758 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
33759 so that pass_ccp runs first.
33761 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
33763 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
33764 (ix86_adjust_cost): Use !TARGET_XXX.
33765 (do_reorder_for_imul): Likewise.
33766 (swap_top_of_ready_list): Likewise.
33767 (ix86_sched_reorder): Likewise.
33769 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
33771 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
33772 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
33773 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
33774 (intel_memset): New. Duplicate slm_memset.
33775 (intel_cost): New. Duplicate slm_cost.
33776 (m_INTEL): New macro.
33777 (processor_target_table): Add "intel".
33778 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
33779 with PROCESSOR_INTEL for "intel".
33780 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
33781 PROCESSOR_SILVERMONT.
33782 (ix86_issue_rate): Likewise.
33783 (ix86_adjust_cost): Likewise.
33784 (ia32_multipass_dfa_lookahead): Likewise.
33785 (swap_top_of_ready_list): Likewise.
33786 (ix86_sched_reorder): Likewise.
33787 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
33788 instead of TARGET_OPT_AGU.
33789 * config/i386/i386.h (TARGET_INTEL): New.
33790 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
33791 (processor_type): Add PROCESSOR_INTEL.
33792 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
33793 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
33795 2014-01-17 Marek Polacek <polacek@redhat.com>
33798 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
33801 2014-01-17 Richard Biener <rguenther@suse.de>
33803 PR tree-optimization/46590
33804 * opts.c (default_options_table): Add entries for
33805 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
33806 all enabled at -O1 but not for -Og.
33807 * common.opt (fbranch-count-reg): Remove Init(1).
33808 (fmove-loop-invariants): Likewise.
33809 (ftree-pta): Likewise.
33811 2014-01-17 Jakub Jelinek <jakub@redhat.com>
33813 * config/i386/i386.c (ix86_data_alignment): For compatibility with
33814 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
33815 decls to at least the GCC 4.8 used alignments.
33818 * tree-nested.c (convert_nonlocal_reference_stmt,
33819 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
33820 of GIMPLE_BIND stmts, adjust associated decls.
33822 2014-01-17 Richard Biener <rguenther@suse.de>
33824 PR tree-optimization/46590
33825 * vec.h (vec<>::bseach): New member function implementing
33826 binary search according to C89 bsearch.
33827 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
33828 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
33829 bitmap pointer again. Make accesses_in_loop a flat array.
33830 (mem_ref_obstack): New global.
33831 (outermost_indep_loop): Adjust for mem_ref->stored changes.
33832 (mark_ref_stored): Likewise.
33833 (ref_indep_loop_p_2): Likewise.
33834 (set_ref_stored_in_loop): New helper function.
33835 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
33836 (memref_free): Adjust.
33837 (record_mem_ref_loc): Simplify.
33838 (gather_mem_refs_stmt): Adjust.
33839 (sort_locs_in_loop_postorder_cmp): New function.
33840 (analyze_memory_references): Sort accesses_in_loop after
33841 loop postorder number.
33842 (find_ref_loc_in_loop_cmp): New function.
33843 (for_all_locs_in_loop): Find relevant cluster of locs in
33844 accesses_in_loop and iterate without recursion.
33845 (execute_sm): Avoid uninit warning.
33846 (struct ref_always_accessed): Simplify.
33847 (ref_always_accessed::operator ()): Likewise.
33848 (ref_always_accessed_p): Likewise.
33849 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
33850 loop postorder numbers here.
33851 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
33854 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
33857 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
33858 on decls for which assemble_alias has been called.
33860 2014-01-17 Nick Clifton <nickc@redhat.com>
33862 * config/msp430/msp430.opt: (mcpu): New option.
33863 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
33864 (msp430_option_override): Parse target_cpu. If the MCU name
33865 matches a generic string, clear target_mcu.
33866 (msp430_attr): Allow numeric interrupt values up to 63.
33867 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
33868 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
33870 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
33872 * config/msp430/msp430.md (popm): Use %J rather than %I.
33873 (addsi3): Use msp430_nonimmediate_operand for operand 2.
33874 (addhi_cy_i): Use immediate_operand for operand 2.
33875 * doc/invoke.texi: Document -mcpu option.
33877 2014-01-17 Richard Biener <rguenther@suse.de>
33879 PR rtl-optimization/38518
33880 * df.h (df_analyze_loop): Declare.
33881 * df-core.c: Include cfgloop.h.
33882 (df_analyze_1): Split out main part of df_analyze.
33883 (df_analyze): Adjust.
33884 (loop_inverted_post_order_compute): New function.
33885 (loop_post_order_compute): Likewise.
33886 (df_analyze_loop): New function avoiding whole-function
33887 postorder computes.
33888 * loop-invariant.c (find_defs): Use df_analyze_loop.
33889 (find_invariants): Adjust.
33890 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
33892 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
33894 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
33895 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
33897 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33899 * ipa-ref.c (ipa_remove_stmt_references): Fix references
33900 traversal when removing references.
33902 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
33905 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
33907 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
33909 PR middle-end/56791
33910 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
33911 pushing a reload for an autoinc when we had previously reloaded an
33912 inner part of the address.
33914 2014-01-16 Jakub Jelinek <jakub@redhat.com>
33916 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
33918 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
33919 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
33920 when not giving up or versioning for alias only because of
33922 (vect_analyze_data_ref_dependences): Set to true.
33923 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
33925 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
33926 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
33929 PR middle-end/58344
33930 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
33933 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
33934 operand 0 predicate for gathers, use a new pseudo as subtarget.
33936 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
33938 PR middle-end/59609
33939 * lra-constraints.c (process_alt_operands): Add printing debug info.
33940 Check absence of input/output reloads for matched operands too.
33942 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
33944 PR rtl-optimization/59835
33945 * ira.c (ira_init_register_move_cost): Increase cost for
33948 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
33950 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
33952 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
33955 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
33956 non-register objects. Use gen_(high/low)part more consistently.
33959 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
33962 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
33963 endian support, remove tests for WORDS_BIG_ENDIAN.
33964 (p8_mfvsrd_3_<mode>): Likewise.
33965 (reload_gpr_from_vsx<mode>): Likewise.
33966 (reload_gpr_from_vsxsf): Likewise.
33967 (p8_mfvsrd_4_disf): Likewise.
33969 2014-01-16 Richard Biener <rguenther@suse.de>
33971 PR rtl-optimization/46590
33972 * lcm.c (compute_antinout_edge): Use postorder iteration.
33973 (compute_laterin): Use inverted postorder iteration.
33975 2014-01-16 Nick Clifton <nickc@redhat.com>
33977 PR middle-end/28865
33978 * varasm.c (output_constant): Return the number of bytes actually
33980 (output_constructor_array_range): Update the field size with the
33981 number of bytes emitted by output_constant.
33982 (output_constructor_regular_field): Likewise. Also do not
33983 complain if the total number of bytes emitted is now greater
33984 than the expected fieldpos.
33985 * output.h (output_constant): Update prototype and descriptive comment.
33987 2014-01-16 Marek Polacek <polacek@redhat.com>
33989 PR middle-end/59827
33990 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
33991 it is error_mark_node.
33993 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
33995 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
33996 VALID_AVX256_REG_OR_OI_MODE.
33998 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
34000 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34001 current procedure should be profiled.
34003 2014-01-15 Andrew Pinski <apinski@cavium.com>
34005 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34006 of moving from/to the STACK_REG register class.
34008 2014-01-15 Richard Henderson <rth@redhat.com>
34011 * reginfo.c (global_regs_decl): Globalize.
34012 * rtl.h (global_regs_decl): Declare.
34013 * ira.c (do_reload): Diagnose frame_pointer_needed and it
34014 reserved via global_regs.
34016 2014-01-15 Teresa Johnson <tejohnson@google.com>
34018 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34020 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
34022 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34023 and vmulosh rather than call gen_vec_widen_smult_*.
34024 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34025 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34026 (vec_widen_smult_even_v16qi): Likewise.
34027 (vec_widen_umult_even_v8hi): Likewise.
34028 (vec_widen_smult_even_v8hi): Likewise.
34029 (vec_widen_umult_odd_v16qi): Likewise.
34030 (vec_widen_smult_odd_v16qi): Likewise.
34031 (vec_widen_umult_odd_v8hi): Likewise.
34032 (vec_widen_smult_odd_v8hi): Likewise.
34033 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34034 vmuloub rather than call gen_vec_widen_umult_*.
34035 (vec_widen_umult_lo_v16qi): Likewise.
34036 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34037 vmulosb rather than call gen_vec_widen_smult_*.
34038 (vec_widen_smult_lo_v16qi): Likewise.
34039 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34040 rather than call gen_vec_widen_umult_*.
34041 (vec_widen_umult_lo_v8hi): Likewise.
34042 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34043 rather than call gen_vec_widen_smult_*.
34044 (vec_widen_smult_lo_v8hi): Likewise.
34046 2014-01-15 Jeff Law <law@redhat.com>
34048 PR tree-optimization/59747
34049 * ree.c (find_and_remove_re): Properly handle case where a second
34050 eliminated extension requires widening a copy created for elimination
34051 of a prior extension.
34052 (combine_set_extension): Ensure that the number of hard regs needed
34053 for a destination register does not change when we widen it.
34055 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34057 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34058 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34059 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34060 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34061 (avr-*-rtems*): Likewise.
34062 (bfin*-rtems*): Likewise.
34063 (moxie-*-rtems*): Likewise.
34064 (h8300-*-rtems*): Likewise.
34065 (i[34567]86-*-rtems*): Likewise.
34066 (lm32-*-rtems*): Likewise.
34067 (m32r-*-rtems*): Likewise.
34068 (m68k-*-rtems*): Likewise.
34069 (microblaze*-*-rtems*): Likewise.
34070 (mips*-*-rtems*): Likewise.
34071 (powerpc-*-rtems*): Likewise.
34072 (sh-*-rtems*): Likewise.
34073 (sparc-*-rtems*): Likewise.
34074 (sparc64-*-rtems*): Likewise.
34075 (v850-*-rtems*): Likewise.
34076 (m32c-*-rtems*): Likewise.
34078 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
34080 PR rtl-optimization/59511
34081 * ira.c (ira_init_register_move_cost): Use memory costs for some
34082 cases of register move cost calculations.
34083 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34084 instead of BB frequency.
34085 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34086 * lra-assigns.c (find_hard_regno_for): Ditto.
34088 2014-01-15 Richard Biener <rguenther@suse.de>
34090 PR tree-optimization/59822
34091 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34092 (vectorizable_load): Use it to hoist defs of uses of invariant
34093 loads out of the loop.
34095 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34096 Kugan Vivekanandarajah <kuganv@linaro.org>
34099 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34102 2014-01-15 Richard Biener <rguenther@suse.de>
34104 PR rtl-optimization/59802
34105 * lcm.c (compute_available): Use inverted postorder to seed
34106 the initial worklist.
34108 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34111 * config/s390/s390.c (s390_preferred_reload_class): Don't return
34112 ADDR_REGS for invalid symrefs in non-PIC code.
34114 2014-01-15 Jakub Jelinek <jakub@redhat.com>
34117 * builtins.c (determine_block_size): Initialize *probable_max_size
34118 even if len_rtx is CONST_INT.
34120 2014-01-14 Andrew Pinski <apinski@cavium.com>
34122 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34123 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34124 (cortexa53_tunings): Likewise.
34125 (aarch64_sched_issue_rate): New function.
34126 (TARGET_SCHED_ISSUE_RATE): Define.
34128 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34130 * ira-costs.c (find_costs_and_classes): Add missed
34131 ira_init_register_move_cost_if_necessary.
34133 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34136 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34138 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
34141 * config/i386/i386.c (type_natural_mode): Add a bool parameter
34142 to indicate if type is used for function return value. Warn ABI
34143 change if the vector mode isn't available for function return value.
34144 (ix86_function_arg_advance): Pass false to type_natural_mode.
34145 (ix86_function_arg): Likewise.
34146 (ix86_gimplify_va_arg): Likewise.
34147 (function_arg_32): Don't warn ABI change.
34148 (ix86_function_value): Pass true to type_natural_mode.
34149 (ix86_return_in_memory): Likewise.
34150 (ix86_struct_value_rtx): Removed.
34151 (TARGET_STRUCT_VALUE_RTX): Likewise.
34153 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34155 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34156 converting a conditional jump into a conditional return.
34158 2014-01-14 Richard Biener <rguenther@suse.de>
34160 PR tree-optimization/58921
34161 PR tree-optimization/59006
34162 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
34163 hoisting invariant stmts.
34164 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
34165 invariant loads on the preheader edge if possible.
34167 2014-01-14 Joey Ye <joey.ye@arm.com>
34169 * doc/plugin.texi (Building GCC plugins): Update to C++.
34171 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
34173 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
34174 (_mm_rcp28_round_ss): Ditto.
34175 (_mm_rsqrt28_round_sd): Ditto.
34176 (_mm_rsqrt28_round_ss): Ditto.
34177 (_mm_rcp28_sd): Ditto.
34178 (_mm_rcp28_ss): Ditto.
34179 (_mm_rsqrt28_sd): Ditto.
34180 (_mm_rsqrt28_ss): Ditto.
34181 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
34182 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
34183 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
34184 (IX86_BUILTIN_RCP28SD): Ditto.
34185 (IX86_BUILTIN_RCP28SS): Ditto.
34186 (IX86_BUILTIN_RSQRT28SD): Ditto.
34187 (IX86_BUILTIN_RSQRT28SS): Ditto.
34188 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
34189 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
34190 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
34191 (ix86_expand_special_args_builtin): Expand new FTYPE.
34192 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
34193 (srcp14<mode>): Make insn unary.
34194 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
34195 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
34196 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
34197 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
34198 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
34199 Fix rounding: make it SAE only.
34200 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
34202 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
34204 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
34205 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
34206 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
34207 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
34208 (round_saeonly_mask_scalar_operand4): Ditto.
34209 (round_saeonly_mask_scalar_op3): Ditto.
34210 (round_saeonly_mask_scalar_op4): Ditto.
34212 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34214 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
34215 Implement -maltivec=be for vec_insert and vec_extract.
34217 2014-01-10 DJ Delorie <dj@redhat.com>
34219 * config/msp430/msp430.md (call_internal): Don't allow memory
34220 references with SP as the base register.
34221 (call_value_internal): Likewise.
34222 * config/msp430/constraints.md (Yc): New. For memory references
34223 that don't use SP as a base register.
34225 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
34226 "an integer without a # prefix"
34227 * config/msp430/msp430.md (epilogue_helper): Use it.
34229 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34232 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
34233 AVX512F gather builtins.
34234 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
34235 on gather decls with INTEGER_TYPE masktype.
34236 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
34237 directly into the builtin rather than hoisting it before loop.
34239 PR tree-optimization/59387
34240 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
34241 (scev_const_prop): If folded_casts and type has undefined overflow,
34242 use force_gimple_operand instead of force_gimple_operand_gsi and
34243 for each added stmt if it is assign with
34244 arith_code_with_undefined_signed_overflow, call
34245 rewrite_to_defined_overflow.
34246 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
34247 gimple-fold.h instead.
34248 (arith_code_with_undefined_signed_overflow,
34249 rewrite_to_defined_overflow): Moved to ...
34250 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
34251 rewrite_to_defined_overflow): ... here. No longer static.
34252 Include gimplify-me.h.
34253 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
34254 rewrite_to_defined_overflow): New prototypes.
34256 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34258 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
34260 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
34262 * builtins.c (get_object_alignment_2): Minor tweak.
34263 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
34265 2014-01-13 Christian Bruel <christian.bruel@st.com>
34267 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
34268 optimized non constant lengths.
34270 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34273 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
34274 load as __atomic_load_N if possible.
34276 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
34278 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
34280 (rs6000_expand_builtin): Adjust call.
34282 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
34285 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
34286 * config/rs6000/rs6000.c: Include target-globals.h.
34287 (rs6000_set_current_function): Instead of doing target_reinit
34288 unconditionally, use save_target_globals_default_opts and
34289 restore_target_globals.
34291 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
34293 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
34294 (rs6000_expand_builtin): Handle mffs and mtfsf.
34295 (rs6000_init_builtins): Define mffs and mtfsf.
34296 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
34297 (rs6000_mffs): New pattern.
34298 (rs6000_mtfsf): New pattern.
34300 2014-01-11 Bin Cheng <bin.cheng@arm.com>
34302 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
34303 Start narrowing with START. Apply candidate-use pair
34304 and check overall cost in narrowing.
34305 (iv_ca_prune): Pass new argument.
34307 2014-01-10 Jeff Law <law@redhat.com>
34309 PR middle-end/59743
34310 * ree.c (combine_reaching_defs): Ensure the defining statement
34311 occurs before the extension when optimizing extensions with
34312 different source and destination hard registers.
34314 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
34317 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
34318 vtables into the type inheritance graph.
34320 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34322 PR rtl-optimization/59754
34323 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
34324 modes in the REGNO != REGNO case.
34326 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34328 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
34330 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34332 PR tree-optimization/59745
34333 * tree-predcom.c (tree_predictive_commoning_loop): Call
34334 free_affine_expand_cache if giving up because components is NULL.
34336 * target-globals.c (save_target_globals): Allocate < 4KB structs using
34337 GC in payload of target_globals struct instead of allocating them on
34338 the heap and the larger structs separately using GC.
34339 * target-globals.h (struct target_globals): Make regs, hard_regs,
34340 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
34341 of GTY((skip)) and change type to void *.
34342 (reset_target_globals): Cast loads from those fields to corresponding
34345 2014-01-10 Steve Ellcey <sellcey@mips.com>
34348 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
34349 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
34350 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
34352 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
34355 * aarch64-modes.def (CC_Zmode): New flags mode.
34356 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
34357 represents an equality.
34358 (aarch64_get_condition_code): Handle CC_Zmode.
34359 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
34361 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34363 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
34364 extraction in good case.
34366 2014-01-10 Richard Biener <rguenther@suse.de>
34368 PR tree-optimization/59374
34369 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
34370 checking after SLP discovery. Mark stmts not participating
34371 in any SLP instance properly.
34373 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34375 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
34376 when handling a SET rtx.
34378 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34380 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
34381 (cortex-a57): Likewise.
34382 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
34384 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34386 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
34387 non-iwmmxt builtins.
34389 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
34393 * ipa-devirt.c record_target_from_binfo): Take as argument
34394 stack of binfos and lookup matching one for virtual inheritance.
34395 (possible_polymorphic_call_targets_1): Update.
34397 2014-01-10 Huacai Chen <chenhc@lemote.com>
34399 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
34400 kernel strings for Loongson-2E/2F/3A.
34402 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34404 PR middle-end/59670
34405 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
34406 is_gimple_call before calling gimple_call_internal_p.
34408 2014-01-09 Steve Ellcey <sellcey@mips.com>
34410 * Makefile.in (TREE_FLOW_H): Remove.
34411 (TREE_SSA_H): Add file names from tree-flow.h.
34412 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
34413 * tree.h: Remove tree-flow.h reference.
34414 * hash-table.h: Remove tree-flow.h reference.
34415 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
34416 reference with tree-ssa-loop.h.
34418 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34420 * doc/invoke.texi: Add -maltivec={be,le} options, and document
34421 default element-order behavior for -maltivec.
34422 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
34423 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
34424 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
34425 when targeting big endian, at least for now.
34426 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
34428 2014-01-09 Jakub Jelinek <jakub@redhat.com>
34430 PR middle-end/47735
34431 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
34432 var satisfies use_register_for_decl, just take into account type
34433 alignment, rather than decl alignment.
34435 PR tree-optimization/59622
34436 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
34437 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
34438 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
34439 Don't devirtualize for inplace at all. For targets.length () == 1,
34440 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
34442 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
34444 * config/i386/i386.md (cpu): Remove the unused btver1.
34446 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
34448 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
34450 2014-01-09 Jakub Jelinek <jakub@redhat.com>
34453 * tree-core.h (struct target_globals): New forward declaration.
34454 (struct tree_target_option): Add globals field.
34455 * tree.h (TREE_TARGET_GLOBALS): Define.
34456 (prepare_target_option_nodes_for_pch): New prototype.
34457 * target-globals.h (struct target_globals): Define even if
34458 !SWITCHABLE_TARGET.
34459 * tree.c (prepare_target_option_node_for_pch,
34460 prepare_target_option_nodes_for_pch): New functions.
34461 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
34462 * config/i386/i386.c: Include target-globals.h.
34463 (ix86_set_current_function): Instead of doing target_reinit
34464 unconditionally, use save_target_globals_default_opts and
34465 restore_target_globals.
34467 2014-01-09 Richard Biener <rguenther@suse.de>
34469 PR tree-optimization/59715
34470 * tree-cfg.h (split_critical_edges): Declare.
34471 * tree-cfg.c (split_critical_edges): Export.
34472 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
34474 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
34476 * cfgexpand.c (expand_stack_vars): Optionally disable
34477 asan stack protection.
34478 (expand_used_vars): Likewise.
34479 (partition_stack_vars): Likewise.
34480 * asan.c (asan_emit_stack_protection): Optionally disable
34481 after return stack usage.
34482 (instrument_derefs): Optionally disable memory access instrumentation.
34483 (instrument_builtin_call): Likewise.
34484 (instrument_strlen_call): Likewise.
34485 (asan_protect_global): Optionally disable global variables protection.
34486 * doc/invoke.texi: Added doc for new options.
34487 * params.def: Added new options.
34488 * params.h: Likewise.
34490 2014-01-09 Jakub Jelinek <jakub@redhat.com>
34492 PR rtl-optimization/59724
34493 * ifcvt.c (cond_exec_process_if_block): Don't call
34494 flow_find_head_matching_sequence with 0 longest_match.
34495 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
34496 non-active insns if !stop_after.
34497 (try_head_merge_bb): Revert 2014-01-07 changes.
34499 2014-01-08 Jeff Law <law@redhat.com>
34501 * ree.c (get_sub_rtx): New function, extracted from...
34502 (merge_def_and_ext): Here.
34503 (combine_reaching_defs): Use get_sub_rtx.
34505 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
34507 * cgraph.h (varpool_variable_node): Do not choke on null node.
34509 2014-01-08 Catherine Moore <clm@codesourcery.com>
34511 * config/mips/mips.md (simple_return): Attempt to use JRC
34513 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
34515 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
34517 PR rtl-optimization/59137
34518 * reorg.c (steal_delay_list_from_target): Call update_block for
34520 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
34522 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34524 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
34525 two duplicate entries.
34527 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
34530 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
34532 * config/mips/mips.c (mips_truncated_op_cost): New function.
34533 (mips_rtx_costs): Adjust test for BADDU.
34534 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
34536 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
34538 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
34539 (*baddu_si): ...this new pattern.
34541 2014-01-08 Jakub Jelinek <jakub@redhat.com>
34544 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
34546 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
34548 PR middle-end/57748
34549 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
34551 (expand_expr, expand_normal): Adjust.
34552 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
34553 inner_reference_p. Use inner_reference_p to expand inner references.
34554 (store_expr): Adjust.
34555 * cfgexpand.c (expand_call_stmt): Adjust.
34557 2014-01-08 Rong Xu <xur@google.com>
34559 * gcov-io.c (gcov_var): Move from gcov-io.h.
34560 (gcov_position): Ditto.
34561 (gcov_is_error): Ditto.
34562 (gcov_rewrite): Ditto.
34563 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
34564 only part to libgcc/libgcov.h.
34566 2014-01-08 Marek Polacek <polacek@redhat.com>
34568 PR middle-end/59669
34569 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
34571 2014-01-08 Marek Polacek <polacek@redhat.com>
34574 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
34576 2014-01-08 Jakub Jelinek <jakub@redhat.com>
34578 PR rtl-optimization/59649
34579 * stor-layout.c (get_mode_bounds): For BImode return
34580 0 and STORE_FLAG_VALUE.
34582 2014-01-08 Richard Biener <rguenther@suse.de>
34584 PR middle-end/59630
34585 * gimple.h (is_gimple_builtin_call): Remove.
34586 (gimple_builtin_call_types_compatible_p): New.
34587 (gimple_call_builtin_p): New overload.
34588 * gimple.c (is_gimple_builtin_call): Remove.
34589 (validate_call): Rename to ...
34590 (gimple_builtin_call_types_compatible_p): ... this and export. Also
34591 check return types.
34592 (validate_type): New static function.
34593 (gimple_call_builtin_p): New overload and adjust.
34594 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
34595 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
34596 (gimple_fold_stmt_to_constant_1): Likewise.
34597 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
34599 2014-01-08 Richard Biener <rguenther@suse.de>
34601 PR middle-end/59471
34602 * gimplify.c (gimplify_expr): Gimplify register-register type
34603 VIEW_CONVERT_EXPRs to separate stmts.
34605 2014-01-07 Jeff Law <law@redhat.com>
34607 PR middle-end/53623
34608 * ree.c (combine_set_extension): Handle case where source
34609 and destination registers in an extension insn are different.
34610 (combine_reaching_defs): Allow source and destination registers
34611 in extension to be different under limited circumstances.
34612 (add_removable_extension): Remove restriction that the
34613 source and destination registers in the extension are the same.
34614 (find_and_remove_re): Emit a copy from the extension's
34615 destination to its source after the defining insn if
34616 the source and destination registers are different.
34618 PR middle-end/59285
34619 * ifcvt.c (merge_if_block): If we are merging a block with more than
34620 one successor with a block with no successors, remove any BARRIER
34621 after the second block.
34623 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
34625 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
34627 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
34630 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
34631 for 14-bit register offsets when INT14_OK_STRICT is false.
34633 2014-01-07 Roland Stigge <stigge@antcom.de>
34634 Michael Meissner <meissner@linux.vnet.ibm.com>
34637 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
34638 Only check TFmode for SPE constants. Don't check TImode or TDmode.
34640 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34642 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
34645 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
34647 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
34648 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
34649 rtx is const0_rtx or not.
34651 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
34654 * target-globals.c (save_target_globals): Remove this_fn_optab
34656 * toplev.c: Include optabs.h.
34657 (target_reinit): Temporarily restore the global options if another
34658 set of options are in force.
34660 2014-01-07 Jakub Jelinek <jakub@redhat.com>
34662 PR rtl-optimization/58668
34663 * cfgcleanup.c (flow_find_cross_jump): Don't count
34664 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
34665 to determine what is counted.
34666 (flow_find_head_matching_sequence): Use active_insn_p to determine
34668 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
34670 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
34671 determine what is counted.
34673 PR tree-optimization/59643
34674 * tree-predcom.c (split_data_refs_to_components): If one dr is
34675 read and one write, determine_offset fails and the write isn't
34676 in the bad component, just put the read into the bad component.
34678 2014-01-07 Mike Stump <mikestump@comcast.net>
34679 Jakub Jelinek <jakub@redhat.com>
34682 * tree-core.h (struct tree_optimization_option): Change optabs
34683 type from unsigned char * to void *.
34684 * optabs.c (init_tree_optimization_optabs): Adjust
34685 TREE_OPTIMIZATION_OPTABS initialization.
34687 2014-01-06 Jakub Jelinek <jakub@redhat.com>
34690 * config/i386/i386.h (struct machine_function): Add
34691 no_drap_save_restore field.
34692 * config/i386/i386.c (ix86_save_reg): Use
34693 !cfun->machine->no_drap_save_restore instead of
34694 crtl->stack_realign_needed.
34695 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
34696 this function clears frame_pointer_needed. Set
34697 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
34698 and DRAP reg is needed.
34700 2014-01-06 Marek Polacek <polacek@redhat.com>
34703 * doc/implement-c.texi: Mention that other integer types are
34704 permitted as bit-field types in strictly conforming mode.
34706 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
34708 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
34709 is newly allocated.
34711 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
34713 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
34715 2014-01-06 Martin Jambor <mjambor@suse.cz>
34718 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
34720 * ipa-prop.c (ipa_print_node_params): Fix indentation.
34722 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
34726 * var-tracking.c (add_stores): Preserve the value of the source even if
34727 we don't record the store.
34729 2014-01-06 Terry Guo <terry.guo@arm.com>
34731 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
34733 2014-01-05 Iain Sandoe <iain@codesourcery.com>
34736 * config/darwin.c (darwin_function_section): Adjust return values to
34737 correspond to optimisation changes made in r206070.
34739 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
34741 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
34742 from prefetch_block tune setting.
34743 (nocona_cost): Correct size of prefetch block to 64.
34745 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
34747 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
34748 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
34749 used to save the static chain register in the computation of the offset
34750 from which the FP registers need to be restored.
34752 2014-01-04 Jakub Jelinek <jakub@redhat.com>
34754 PR tree-optimization/59519
34755 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
34756 ICE if get_current_def (current_new_name) is already non-NULL, as long
34757 as it is a phi result of some other phi in *new_exit_bb that has
34760 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
34761 or vmovdqu* for misaligned_operand.
34762 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
34763 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
34764 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
34765 aligned_mem for AVX512F masked aligned load and store builtins and for
34766 non-temporal moves.
34768 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
34770 PR tree-optimization/59651
34771 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34772 Address range for negative step should be added by TYPE_SIZE_UNIT.
34774 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
34776 * config/m68k/m68k.c (handle_move_double): Handle pushes with
34777 overlapping registers also for registers other than the stack pointer.
34779 2014-01-03 Marek Polacek <polacek@redhat.com>
34782 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
34785 2014-01-03 Jakub Jelinek <jakub@redhat.com>
34788 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
34791 * config/i386/i386.md (MODE_SIZE): New mode attribute.
34792 (push splitter): Use <P:MODE_SIZE> instead of
34793 GET_MODE_SIZE (<P:MODE>mode).
34794 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
34795 (mov -1, reg peephole2): Likewise.
34796 * config/i386/sse.md (*mov<mode>_internal,
34797 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
34798 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
34799 *<code><mode>3, *andnot<mode>3<mask_name>,
34800 <mask_codefor><code><mode>3<mask_name>): Likewise.
34801 * config/i386/subst.md (mask_mode512bit_condition,
34802 sd_mask_mode512bit_condition): Likewise.
34804 2014-01-02 Xinliang David Li <davidxl@google.com>
34806 PR tree-optimization/59303
34807 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
34808 (dump_predicates): Better output format.
34809 (pred_equal_p): New function.
34810 (is_neq_relop_p): Ditto.
34811 (is_neq_zero_form_p): Ditto.
34812 (pred_expr_equal_p): Ditto.
34813 (pred_neg_p): Ditto.
34814 (simplify_pred): Ditto.
34815 (simplify_preds_2): Ditto.
34816 (simplify_preds_3): Ditto.
34817 (simplify_preds_4): Ditto.
34818 (simplify_preds): Ditto.
34819 (push_pred): Ditto.
34820 (push_to_worklist): Ditto.
34821 (get_pred_info_from_cmp): Ditto.
34822 (is_degenerated_phi): Ditto.
34823 (normalize_one_pred_1): Ditto.
34824 (normalize_one_pred): Ditto.
34825 (normalize_one_pred_chain): Ditto.
34826 (normalize_preds): Ditto.
34827 (normalize_cond_1): Remove function.
34828 (normalize_cond): Ditto.
34829 (is_gcond_subset_of): Ditto.
34830 (is_subset_of_any): Ditto.
34831 (is_or_set_subset_of): Ditto.
34832 (is_and_set_subset_of): Ditto.
34833 (is_norm_cond_subset_of): Ditto.
34834 (pred_chain_length_cmp): Ditto.
34835 (convert_control_dep_chain_into_preds): Type change.
34836 (find_predicates): Ditto.
34837 (find_def_preds): Ditto.
34838 (destroy_predicates_vecs): Ditto.
34839 (find_matching_predicates_in_rest_chains): Ditto.
34840 (use_pred_not_overlap_with_undef_path_pred): Ditto.
34841 (is_pred_expr_subset): Ditto.
34842 (is_pred_chain_subset_of): Ditto.
34843 (is_included_in): Ditto.
34844 (is_superset_of): Ditto.
34846 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34848 Update copyright years.
34850 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34852 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
34853 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
34854 config/arc/arc.md, config/arc/arc.opt,
34855 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
34856 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
34857 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
34858 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
34859 config/linux-protos.h, config/linux.c, config/winnt-c.c,
34860 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
34861 vtable-verify.c, vtable-verify.h: Use the standard form for the
34864 2014-01-02 Tobias Burnus <burnus@net-b.de>
34866 * gcc.c (process_command): Update copyright notice dates.
34867 * gcov-dump.c: Ditto.
34869 * doc/cpp.texi: Bump @copying's copyright year.
34870 * doc/cppinternals.texi: Ditto.
34871 * doc/gcc.texi: Ditto.
34872 * doc/gccint.texi: Ditto.
34873 * doc/gcov.texi: Ditto.
34874 * doc/install.texi: Ditto.
34875 * doc/invoke.texi: Ditto.
34877 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34879 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
34881 2014-01-01 Jakub Jelinek <jakub@redhat.com>
34883 * config/i386/sse.md (*mov<mode>_internal): Guard
34884 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
34886 PR rtl-optimization/59647
34887 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
34888 new_rtx into UNSIGNED_FLOAT rtxes.
34890 Copyright (C) 2014 Free Software Foundation, Inc.
34892 Copying and distribution of this file, with or without modification,
34893 are permitted in any medium without royalty provided the copyright
34894 notice and this notice are preserved.